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/FactoryBoy/factory_boy/declarations
LDU_FT
[ "<BEGIN>\n## `set_random_state`", "Force-set the state of factory.fuzzy's random generator.\n<END>", "<BEGIN>\n## `reseed_random`", "Reseed factory.fuzzy's random generator.\n<END>", "<BEGIN>\n## `_lazy_load_get_model`", "Lazy loading of get_model.", " get_model loads django.conf.settings, which may ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the declarations API. 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 declarations API. 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...
Retrieve a copy of the declared attributes. Args: extra_defs (dict): additional definitions to insert into the retrieved DeclarationDict.
"Retrieve a copy of the declared attributes.\n\n Args:\n extra_defs (dict): additional definitions to insert into the\n retrieved DeclarationDict."
120
false
FactoryBoy/factory_boy
declarations
15,673
LDU_FT/eternnoir/pyTelegramBotAPI/answer_pre_checkout_query
LDU_FT
[ "<BEGIN>\n## `split_string`", "Splits one string into multiple strings, with a maximum amount of `chars_per_string` characters per string.\n This is very useful for splitting one giant message into multiples.", " :param text: The text to split\n :param chars_per_string: The number of characters per lin...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the answer_pre_checkout_query 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 answer_pre_checkout_query API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi...
Once the user has confirmed their payment and shipping details, the Bot API sends the final confirmation in the form of an Update with the field pre_checkout_query. Use this method to respond to such pre-checkout queries. On success, True is returned. Note: The Bot API must receive an answer within 10 seconds after the...
"Once the user has confirmed their payment and shipping details, the Bot API sends the final confirmation in the form of an Update with the field pre_checkout_query. Use this method to respond to such pre-checkout queries. On success, True is returned. Note: The Bot API must receive an answer within 10 seconds after th...
187
false
eternnoir/pyTelegramBotAPI
answer_pre_checkout_query
15,674
LDU_FT/Ffisegydd/whatis/extract_type
LDU_FT
[ "<BEGIN>\n## `get_type`", "Return the type of an object. Do some regex to remove the \"<class...\" bit.\n<END>", "<BEGIN>\n## `get_parents`", "Return the MRO of an object. Do regex on each element to remove the \"<class...\" bit.\n<END>", "<BEGIN>\n## `extract_type`", "Extract the type string from str(typ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the extract_type API. 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 extract_type API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
Extract the type string from str(type(obj)) to remove the "<class..." bit.
"Extract the type string from str(type(obj)) to remove the \"<class...\" bit."
13
false
Ffisegydd/whatis
extract_type
15,675
LDU_FT/trendels/rhino/response
LDU_FT
[ "<BEGIN>\n## `parse_etag_header`", "Parse a header containing one or more ETags or a wildcard ('*').", " Returns the string '*' or a list of ETags as (weak, etag) tuples.\n `weak` is the prefix designating a weak ETag, or the empty string.\n `etag` is the ETag (including quotes) with the weak prefix st...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the response API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the response API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
Helper to build an HTTP response. Parameters: code : An integer status code. body : The response body. See `Response.__init__` for details. etag : A value for the ETag header. Double quotes will be added unless the string starts and ends with a double quote. last_modified...
"Helper to build an HTTP response.\n\n Parameters:\n\n code\n : An integer status code.\n body\n : The response body. See `Response.__init__` for details.\n etag\n : A value for the ETag header. Double quotes will be added unless the\n string starts and ends with a double quote.\n l...
158
false
trendels/rhino
response
15,676
LDU_FT/rackerlabs/simpl/git_fetch
LDU_FT
[ "<BEGIN>\n## `scrub`", "Verify and clean data. Raise error if input fails.\n<END>", "<BEGIN>\n## `build_text_search`", "Build mongodb query that performs text search for string(s).", " This is the backend implementation of the front-end search box on a list.\n It performs text search on a text index a...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the git_fetch API. 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 git_fetch API. 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...
Do a git fetch of `refspec` in `repo_dir`. If 'remote' is None, all remotes will be fetched.
"Do a git fetch of `refspec` in `repo_dir`.\n\n If 'remote' is None, all remotes will be fetched."
313
false
rackerlabs/simpl
git_fetch
15,677
LDU_FT/fchauvel/MAD/of_think
LDU_FT
[ "<BEGIN>\n## `_execute`", "This method is ASSIGNED during the evaluation to control how to resume it once it has been paused\n<END>", "<BEGIN>\n## `of_think`", "Simulate the worker processing the task for the specified amount of time.\n The worker is not released and the task is not paused.\n<END>", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the of_think API. 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 of_think API. 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...
Simulate the worker processing the task for the specified amount of time. The worker is not released and the task is not paused.
"Simulate the worker processing the task for the specified amount of time.\n The worker is not released and the task is not paused."
34
false
fchauvel/MAD
of_think
15,678
LDU_FT/peterservice-rnd/robotframework-jsonvalidator/validate_jsonschema_from_file
LDU_FT
[ "<BEGIN>\n## `_validate_json`", "Validate JSON according to JSONSchema", " *Args*:\\n\n _checked_json_: validated JSON.\n _schema_: schema that used for validation.\n<END>", "<BEGIN>\n## `validate_jsonschema_from_file`", "Validate JSON according to schema, loaded from a file.", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the validate_jsonschema_from_file API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the validate_jsonschema_from_file API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conc...
Validate JSON according to schema, loaded from a file. *Args:*\n _json_string_ - JSON string;\n _path_to_schema_ - path to file with JSON schema; *Raises:*\n JsonValidatorError *Example:*\n | *Settings* | *Value* | | Library | JsonValidator | ...
"Validate JSON according to schema, loaded from a file.\n\n *Args:*\\n\n _json_string_ - JSON string;\\n\n _path_to_schema_ - path to file with JSON schema;\n\n *Raises:*\\n\n JsonValidatorError\n\n *Example:*\\n\n | *Settings* | *Value* |\n | Library | JsonVal...
67
false
peterservice-rnd/robotframework-jsonvalidator
validate_jsonschema_from_file
15,679
LDU_FT/PSPC-SPAC-buyandsell/von_anchor/reseed_apply
LDU_FT
[ "<BEGIN>\n## `least_role`", "Return the TRUSTEE indy-sdk role for an anchor acting in an AnchorSmith capacity.", " :return: TRUSTEE role\n<END>", "<BEGIN>\n## `send_nym`", "Send input anchor's cryptonym (including DID, verification key, plus optional alias and role)\n to the distributed ledger...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the reseed_apply API. 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 reseed_apply API. 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...
Replace verification key with new verification key from reseed operation. Raise WalletState if wallet is closed. :return: DIDInfo with new verification key and metadata for DID
"Replace verification key with new verification key from reseed operation.\n Raise WalletState if wallet is closed.\n\n :return: DIDInfo with new verification key and metadata for DID"
734
false
PSPC-SPAC-buyandsell/von_anchor
reseed_apply
15,680
LDU_FT/jenanwise/codequality/check
LDU_FT
[ "<BEGIN>\n## `_temp_filename`", "Make a temporary file with `contents`.", " The file will be cleaned up on exit.\n<END>", "<BEGIN>\n## `register`", "Decorator to register a class as a checker for extensions.\n<END>", "<BEGIN>\n## `check`", "Return list of error dicts for all found errors in paths.", ...
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 d...
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 d...
Return list of error dicts for all found errors in paths. The default implementation expects `tool`, and `tool_err_re` to be defined. tool: external binary to use for checking. tool_err_re: regexp that can match output of `tool` -- must provide a groupdict with at least "fi...
"Return list of error dicts for all found errors in paths.\n\n The default implementation expects `tool`, and `tool_err_re` to be\n defined.\n\n tool: external binary to use for checking.\n tool_err_re: regexp that can match output of `tool` -- must provide\n a groupdict with at l...
19
false
jenanwise/codequality
check
15,681
LDU_FT/CyberZHG/keras-word-char-embd/set_dicts
LDU_FT
[ "<BEGIN>\n## `update_dicts`", "Add new sentence to generate dictionaries.", " :param sentence: A list of strings representing the sentence.\n<END>", "<BEGIN>\n## `set_dicts`", "Set with custom dictionaries.", " :param word_dict: The word dictionary.\n :param char_dict: The character d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_dicts API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_dicts API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
Set with custom dictionaries. :param word_dict: The word dictionary. :param char_dict: The character dictionary.
"Set with custom dictionaries.\n\n :param word_dict: The word dictionary.\n :param char_dict: The character dictionary."
39
false
CyberZHG/keras-word-char-embd
set_dicts
15,682
LDU_FT/NetworkAutomation/jaide/unlock
LDU_FT
[ "<BEGIN>\n## `check_instance`", "Wrapper that tests the type of _session.", " Purpose: This decorator function is used by all functions within\n | the Jaide class that interact with a device to ensure the\n | proper session type is in use. If it is not, it will\n | ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the unlock API. 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 unlock API. 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 ...
Unlock the candidate config. Purpose: Unlocks the candidate configuration, so that other people can | edit the device. Requires the _session private variable to be | a type of a ncclient.manager.Manager.
"Unlock the candidate config.\n\n Purpose: Unlocks the candidate configuration, so that other people can\n | edit the device. Requires the _session private variable to be\n | a type of a ncclient.manager.Manager."
191
false
NetworkAutomation/jaide
unlock
15,683
LDU_FT/welchbj/sublemon/stdout
LDU_FT
[ "<BEGIN>\n## `spawn`", "Spawn the command wrapped in this object as a subprocess.\n<END>", "<BEGIN>\n## `wait_done`", "Coroutine to wait for subprocess run completion.", " Returns:\n The exit code of the subprocess.\n<END>", "<BEGIN>\n## `_poll`", "Check the status of the wrapped runni...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the stdout API. 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 stdout API. 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 ...
Asynchronous generator for lines from subprocess stdout.
"Asynchronous generator for lines from subprocess stdout."
35
false
welchbj/sublemon
stdout
15,684
LDU_FT/BD2KOnFHIR/i2b2model/_db_urls
LDU_FT
[ "<BEGIN>\n## `change_column_length`", "Change the column length in the supplied table\n<END>", "<BEGIN>\n## `_db_urls`", "Return the crc and ontology db urls\n :param opts: options\n :return: Tuple w/ crc and ontology url\n<END>", "<BEGIN>\n## `_tables`", "Return a list of all known tables a...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _db_urls API. 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 _db_urls API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
Return the crc and ontology db urls :param opts: options :return: Tuple w/ crc and ontology url
"Return the crc and ontology db urls\n :param opts: options\n :return: Tuple w/ crc and ontology url"
64
false
BD2KOnFHIR/i2b2model
_db_urls
15,685
LDU_FT/monarch-initiative/dipper/_process_voc_annot_view
LDU_FT
[ "<BEGIN>\n## `_process_phenotype_hpoa`", "see info on format here:\n http://www.human-phenotype-ontology.org/contao/index.php/annotation-guide.html", " :param raw:\n :param limit:\n :return:\n<END>", "<BEGIN>\n## `get_common_files`", "Fetch the hpo-annotation-data\n [repos...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _process_voc_annot_view 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 _process_voc_annot_view API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion...
This MGI table represents associations between things. We add the internal annotation id to the idhashmap. It is expected that the genotypes have already been added to the idhash :param limit: :return:
"This MGI table represents associations between things.\n\n We add the internal annotation id to the idhashmap.\n It is expected that the genotypes have already been added to the idhash\n\n :param limit:\n :return:"
848
false
monarch-initiative/dipper
_process_voc_annot_view
15,686
LDU_FT/rckclmbr/pyportify/perform_oauth
LDU_FT
[ "<BEGIN>\n## `perform_master_login`", "Perform a master login, which is what Android does when you first add a\n Google account.", " Return a dict, eg::", " {\n 'Auth': '...',\n 'Email': 'email@gmail.com',\n 'GooglePlusUpgrade': '1',\n 'LSID': '...',\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the perform_oauth API. 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 perform_oauth API. 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...
Use a master token from master_login to perform OAuth to a specific Google service. Return a dict, eg:: { 'Auth': '...', 'LSID': '...', 'SID': '..', 'issueAdvice': 'auto', 'services': 'hist,mail,googleme,...' } To authenticate re...
"Use a master token from master_login to perform OAuth to a specific Google\n service.\n\n Return a dict, eg::\n\n {\n 'Auth': '...',\n 'LSID': '...',\n 'SID': '..',\n 'issueAdvice': 'auto',\n 'services': 'hist,mail,googleme,...'\n }\n\n To a...
57
false
rckclmbr/pyportify
perform_oauth
15,687
LDU_FT/manodeep/Corrfunc/stderr_redirected
LDU_FT
[ "<BEGIN>\n## `strip_line`", "Removes occurrence of character (sep) from a line of text\n<END>", "<BEGIN>\n## `get_dict_from_buffer`", "Parses a string buffer for key-val pairs for the supplied keys.", " Returns: Python dictionary with all the keys (all keys in buffer\n if None is passed for k...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the stderr_redirected API. 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 stderr_redirected API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
import os with stderr_redirected(to=filename): print("from Python") os.system("echo non-Python applications are also supported")
"import os\n \n with stderr_redirected(to=filename):\n print(\"from Python\")\n os.system(\"echo non-Python applications are also supported\")"
21
false
manodeep/Corrfunc
stderr_redirected
15,688
LDU_FT/biosignalsnotebooks/biosignalsnotebooks/argrelmin
LDU_FT
[ "<BEGIN>\n## `windowing`", "-----\n Brief\n -----\n Function to window the input signal, that return the windowed signal.", " -----------\n Description\n -----------\n Machine learning pipelines usually use features to represent each sample of the input signals.\n In order to extract tho...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the argrelmin API. 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 argrelmin API. 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...
Calculate the relative minima of `data`. .. versionadded:: 0.11.0 Parameters ---------- data : ndarray Array in which to find the relative minima. axis : int, optional Axis over which to select from `data`. Default is 0. order : int, optional How many points on each si...
"Calculate the relative minima of `data`.\n\n .. versionadded:: 0.11.0\n\n Parameters\n ----------\n data : ndarray\n Array in which to find the relative minima.\n axis : int, optional\n Axis over which to select from `data`. Default is 0.\n order : int, optional\n How many point...
800
false
biosignalsnotebooks/biosignalsnotebooks
argrelmin
15,689
LDU_FT/mozilla/elasticutils/_process_filters
LDU_FT
[ "<BEGIN>\n## `chunked`", "Returns chunks of n length of iterable", " If len(iterable) % n != 0, then the last chunk will have length\n less than n.", " Example:", " >>> chunked([1, 2, 3, 4, 5], 2)\n [(1, 2), (3, 4), (5,)]\n<END>", "<BEGIN>\n## `format_explanation`", "Return explanation in...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _process_filters API. 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 _process_filters API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Takes a list of filters and returns ES JSON API :arg filters: list of F, (key, val) tuples, or dicts :returns: list of ES JSON API filters
"Takes a list of filters and returns ES JSON API\n\n :arg filters: list of F, (key, val) tuples, or dicts\n\n :returns: list of ES JSON API filters"
208
false
mozilla/elasticutils
_process_filters
15,690
LDU_FT/Preston-Landers/concurrent-log-handler/get_all_logger_names
LDU_FT
[ "<BEGIN>\n## `get_all_logger_names`", "Return ``list`` of names of all loggers than have been accessed.", " Warning: this is sensitive to internal structures in the standard logging module.\n<END>", "<BEGIN>\n## `queuify_logger`", "Replace logger's handlers with a queue handler while adding existing\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_all_logger_names API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_all_logger_names API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Return ``list`` of names of all loggers than have been accessed. Warning: this is sensitive to internal structures in the standard logging module.
"Return ``list`` of names of all loggers than have been accessed.\n\n Warning: this is sensitive to internal structures in the standard logging module."
24
false
Preston-Landers/concurrent-log-handler
get_all_logger_names
15,691
LDU_FT/justquick/django-native-tags/highlight
LDU_FT
[ "<BEGIN>\n## `calendar`", "Creates a formatted ``HTMLCalendar``. \n Argument ``format`` can be one of ``month``, ``year``, or ``yearpage``\n Keyword arguments are collected and passed into ``HTMLCalendar.formatmonth``, \n ``HTMLCalendar.formatyear``, and ``HTMLCalendar.formatyearpage``", " Synta...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the highlight API. 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 highlight API. 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...
Returns highlighted code ``div`` tag from ``HtmlFormatter`` Lexer is guessed by ``lexer`` name arguments are passed into the formatter Syntax:: {% highlight [source code] [lexer name] [formatter options] %} Example:: {% highlight 'print "Hello World"' python linenos=t...
"Returns highlighted code ``div`` tag from ``HtmlFormatter``\n Lexer is guessed by ``lexer`` name\n arguments are passed into the formatter\n\n Syntax::\n\n {% highlight [source code] [lexer name] [formatter options] %}\n\n Example::\n\n {% highlight 'print \"Hello World\"' pyt...
161
false
justquick/django-native-tags
highlight
15,692
LDU_FT/testing-cabal/mock/_get_signature_object
LDU_FT
[ "<BEGIN>\n## `_get_signature_object`", "Given an arbitrary, possibly callable object, try to create a suitable\n signature object.\n Return a (reduced func, signature) tuple, or None.\n<END>", "<BEGIN>\n## `_instance_callable`", "Given an object, return True if the object is callable.\n For classes, ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_signature_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. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_signature_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. ...
Given an arbitrary, possibly callable object, try to create a suitable signature object. Return a (reduced func, signature) tuple, or None.
"Given an arbitrary, possibly callable object, try to create a suitable\n signature object.\n Return a (reduced func, signature) tuple, or None."
30
false
testing-cabal/mock
_get_signature_object
15,693
LDU_FT/twoolie/NBT/get_chunk_coords
LDU_FT
[ "<BEGIN>\n## `stats_per_chunk`", "Given a chunk, increment the block types with the number of blocks found\n<END>", "<BEGIN>\n## `bounded_stats_per_chunk`", "Given a chunk, return the number of blocks types within the specified selection\n<END>", "<BEGIN>\n## `process_region_file`", "Given a region, retur...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_chunk_coords API. 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_chunk_coords API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Return the x,z coordinates and length of the chunks that are defined in te regionfile. This includes chunks which may not be readable for whatever reason. This method is deprecated. Use :meth:`get_metadata` instead.
"Return the x,z coordinates and length of the chunks that are defined in te regionfile.\n This includes chunks which may not be readable for whatever reason.\n \n This method is deprecated. Use :meth:`get_metadata` instead."
84
false
twoolie/NBT
get_chunk_coords
15,694
LDU_FT/mbr/data/annotate
LDU_FT
[ "<BEGIN>\n## `annotate`", "Set function annotations (on Python2 and 3).\n<END>", "<BEGIN>\n## `auto_instantiate`", "Creates a decorator that will instantiate objects based on function\n parameter annotations.", " The decorator will check every argument passed into ``f``. If ``f`` has an\n annotatio...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the annotate API. 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 annotate API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
Set function annotations (on Python2 and 3).
"Set function annotations (on Python2 and 3)."
33
false
mbr/data
annotate
15,695
LDU_FT/ask/redish/difference
LDU_FT
[ "<BEGIN>\n## `save`", "Save this entry.", " If the entry does not have an :attr:`id`, a new id will be assigned,\n and the :attr:`id` attribute set accordingly.", " Pre-save processing of the fields saved can be done by\n overriding the :meth:`prepare_save` method.", " Add...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the 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. The extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the 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. The extrac...
Return the difference of two or more sets as a new :class:`set`. (i.e. all elements that are in this set but not the others.) Operates on either redish.types.Set or __builtins__.set.
"Return the difference of two or more sets as a new :class:`set`.\n\n (i.e. all elements that are in this set but not the others.)\n\n Operates on either redish.types.Set or __builtins__.set."
88
false
ask/redish
difference
15,696
LDU_FT/splitkeycoffee/pyhottop/set_heater
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_heater API. 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 set_heater API. 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...
Set the heater config. :param heater: Value to set the heater :type heater: int [0-100] :returns: None :raises: InvalidInput
"Set the heater config.\n\n :param heater: Value to set the heater\n :type heater: int [0-100]\n :returns: None\n :raises: InvalidInput"
89
false
splitkeycoffee/pyhottop
set_heater
15,697
LDU_FT/Nike-Inc/cerberus-python-client/_set_token
LDU_FT
[ "<BEGIN>\n## `throw_if_bad_response`", "Throw an exception if the Cerberus response is not successful.\n<END>", "<BEGIN>\n## `_add_slash`", "if a string doesn't end in a '/' add one\n<END>", "<BEGIN>\n## `_set_token`", "Set the Cerberus token based on auth type\n<END>", "<BEGIN>\n## `get_roles`", "Ret...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _set_token API. 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 _set_token API. 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...
Set the Cerberus token based on auth type
"Set the Cerberus token based on auth type"
86
false
Nike-Inc/cerberus-python-client
_set_token
15,698
LDU_FT/honeynet/beeswarm/setup_db
LDU_FT
[ "<BEGIN>\n## `setup_db`", "Sets up the database schema and adds defaults.\n :param connection_string: Database URL. e.g: sqlite:///filename.db\n This is usually taken from the config file.\n<END>", "<BEGIN>\n## `start_pty_request`", "Start a PTY - intended to run it a (green)th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the setup_db API. 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 setup_db API. 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 up the database schema and adds defaults. :param connection_string: Database URL. e.g: sqlite:///filename.db This is usually taken from the config file.
"Sets up the database schema and adds defaults.\n :param connection_string: Database URL. e.g: sqlite:///filename.db\n This is usually taken from the config file."
112
false
honeynet/beeswarm
setup_db
15,699
LDU_FT/Metatab/metatab/get_or_new_child
LDU_FT
[ "<BEGIN>\n## `split_term`", "Split a term in to parent and record term components\n :param term: combined term text\n :return: Tuple of parent and record term\n<END>", "<BEGIN>\n## `split_term_lower`", "Like split_term, but also lowercases both parent and record term\n :param term: combin...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_or_new_child API. 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_or_new_child API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Find a term, using find_first, and set it's value and properties, if it exists. If it does not, create a new term and children.
"Find a term, using find_first, and set it's value and properties, if it exists. If\n it does not, create a new term and children."
102
false
Metatab/metatab
get_or_new_child
15,700
LDU_FT/BerkeleyAutomation/autolab_core/linear_trajectory_to
LDU_FT
[ "<BEGIN>\n## `copy`", "Returns a copy of the RigidTransform.", " Returns\n -------\n :obj:`RigidTransform`\n A deep copy of the RigidTransform.\n<END>", "<BEGIN>\n## `_check_valid_rotation`", "Checks that the given rotation matrix is valid.\n<END>", "<BEGIN>\n## `_check_val...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the linear_trajectory_to 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 linear_trajectory_to 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 a trajectory of poses linearly interpolated from this tf to a target tf. Parameters ---------- target_tf : :obj:`RigidTransform` The RigidTransform to interpolate to. traj_len : int The number of RigidTransforms in the returned trajectory. Return...
"Creates a trajectory of poses linearly interpolated from this tf to a target tf.\n\n Parameters\n ----------\n target_tf : :obj:`RigidTransform`\n The RigidTransform to interpolate to.\n traj_len : int\n The number of RigidTransforms in the returned trajectory.\n\n ...
518
false
BerkeleyAutomation/autolab_core
linear_trajectory_to
15,701
LDU_FT/eleme/meepo/query
LDU_FT
[ "<BEGIN>\n## `zmq_sub`", "0mq fanout sub.", " This sub will use zeromq to fanout the events.", " :param bind: the zmq pub socket or zmq device socket.\n :param tables: the events of tables to follow.\n :param forwarder: set to True if zmq pub to a forwarder device.\n :param green: weather to us...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the query API. 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 query API. 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...
Query the last update timestamp of an event pk. You can pass a timestamp to only look for events later than that within the same namespace. :param event: the event name. :param pk: the pk value for query. :param ts: query event pk after ts, default to None which will query ...
"Query the last update timestamp of an event pk.\n\n You can pass a timestamp to only look for events later than that\n within the same namespace.\n\n :param event: the event name.\n :param pk: the pk value for query.\n :param ts: query event pk after ts, default to None which will qu...
110
false
eleme/meepo
query
15,702
LDU_FT/mesosphere/deimos/construct
LDU_FT
[ "<BEGIN>\n## `dirs`", "Provider a generator of container state directories.", " If exited is None, all are returned. If it is False, unexited\n containers are returned. If it is True, only exited containers are\n returned.\n<END>", "<BEGIN>\n## `methods`", "Names of operations provided ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the construct API. 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 construct API. 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...
Selects an appropriate CGroup subclass for the given CGroup path.
"Selects an appropriate CGroup subclass for the given CGroup path."
23
false
mesosphere/deimos
construct
15,703
LDU_FT/WZBSocialScienceCenter/tmtoolkit/get_term_proportions
LDU_FT
[ "<BEGIN>\n## `compute_models_parallel`", "Compute several Topic Models in parallel using the \"lda\" package. Use a single or multiple document term matrices\n `data` and optionally a list of varying parameters `varying_parameters`. Pass parameters in `constant_parameters`\n dict to each model calculation. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_term_proportions 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_term_proportions 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 term proportions given the document-term matrix `dtm`
"Return the term proportions given the document-term matrix `dtm`"
135
false
WZBSocialScienceCenter/tmtoolkit
get_term_proportions
15,704
LDU_FT/Metatab/metapack/iterdict
LDU_FT
[ "<BEGIN>\n## `_load_resource`", "The CSV package has no reseources, so we just need to resolve the URLs to them. Usually, the\n CSV package is built from a file system ackage on a publically acessible server.\n<END>", "<BEGIN>\n## `set_s3_profile`", "Load the credentials for an s3 profile into envi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the iterdict API. 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 iterdict API. 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...
Iterate over the resource in dict records
"Iterate over the resource in dict records"
261
false
Metatab/metapack
iterdict
15,705
LDU_FT/geoadmin/lib-gatilegrid/getClosestZoom
LDU_FT
[ "<BEGIN>\n## `tileBounds`", "Returns the bounds of a tile in LV03 (EPSG:21781)\n<END>", "<BEGIN>\n## `tileAddress`", "Returns a tile address based on a zoom level and \\\n a point in the tile\n<END>", "<BEGIN>\n## `intersectsExtent`", "Determine if an extent intersects this instance extent\n<END>",...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the getClosestZoom API. 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 getClosestZoom API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
Return the closest zoom level for a given resolution Parameters: resolution -- max. resolution unit -- unit for output (default='meters')
"Return the closest zoom level for a given resolution\n Parameters:\n resolution -- max. resolution\n unit -- unit for output (default='meters')"
28
false
geoadmin/lib-gatilegrid
getClosestZoom
15,706
LDU_FT/serhatbolsu/robotframework-appiumlibrary/element_should_be_disabled
LDU_FT
[ "<BEGIN>\n## `zoom`", "Zooms in on an element a certain amount.\n<END>", "<BEGIN>\n## `swipe`", "Swipe from one point to another point, for an optional duration.\r", " Args:\r\n - start_x - x-coordinate at which to start\r\n - start_y - y-coordinate at which to start\r\n - off...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the element_should_be_disabled 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 element_should_be_disabled API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclus...
Verifies that element identified with locator is disabled. Key attributes for arbitrary elements are `id` and `name`. See `introduction` for details about locating elements.
"Verifies that element identified with locator is disabled.\r\n\r\n Key attributes for arbitrary elements are `id` and `name`. See\r\n `introduction` for details about locating elements."
217
false
serhatbolsu/robotframework-appiumlibrary
element_should_be_disabled
15,707
LDU_FT/thespacedoctor/qubits/plotLightCurves
LDU_FT
[ "<BEGIN>\n## `setup`", "*setup the workspace in the requested location*", " **Return:**\n - ``None``\n<END>", "<BEGIN>\n## `random_redshift_array`", "*Generate a NumPy array of random distances given a sample number and distance limit*", " **Key Arguments:**\n - ``log`` -- logg...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the plotLightCurves API. 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 plotLightCurves API. 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...
*plot lightcurve(s) given an list of magnitude, time pairs* **Key Arguments:** - ``log`` -- logger - ``lightCurves`` -- list of magnitude, time numPy arrays - ``polyOrder`` -- order of polynomial used to fit the model lightcurves extracted from spectra - ``pathToOutputDirectory`` --...
"*plot lightcurve(s) given an list of magnitude, time pairs*\n\n **Key Arguments:**\n - ``log`` -- logger\n - ``lightCurves`` -- list of magnitude, time numPy arrays\n - ``polyOrder`` -- order of polynomial used to fit the model lightcurves extracted from spectra\n - ``pathToOutputDirecto...
152
false
thespacedoctor/qubits
plotLightCurves
15,708
LDU_FT/flo-compbio/genometools/get_heatmap
LDU_FT
[ "<BEGIN>\n## `sum`", "Sum over rows or columns.", " Overrides the default `pandas.DataFrame.sum()` function to prevent\n temporary in-memory copies.\n<END>", "<BEGIN>\n## `get_heatmap`", "Generate a heatmap (`ExpHeatmap`) of the matrix.", " See :class:`ExpHeatmap` constructor for keyw...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_heatmap API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_heatmap API. 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...
Generate a heatmap (`ExpHeatmap`) of the matrix. See :class:`ExpHeatmap` constructor for keyword arguments. Parameters ---------- highlight_genes : list of str List of genes to highlight highlight_color : str Color to use for highlighting Return...
"Generate a heatmap (`ExpHeatmap`) of the matrix.\n\n See :class:`ExpHeatmap` constructor for keyword arguments.\n\n Parameters\n ----------\n highlight_genes : list of str\n List of genes to highlight\n highlight_color : str\n Color to use for highlighting\n\n ...
496
false
flo-compbio/genometools
get_heatmap
15,709
LDU_FT/mogproject/mog-commons-python/__convert_env
LDU_FT
[ "<BEGIN>\n## `_detect_encoding`", "Detect the default encoding for the terminal's output.\n :return: string: encoding string\n<END>", "<BEGIN>\n## `_get_restore_function`", "Return the binary function for restoring terminal attributes.\n :return: function (signal, frame) => None:\n<END>", "<BE...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the __convert_env API. 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 __convert_env API. 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...
Environment variables should be bytes not unicode on Windows.
"Environment variables should be bytes not unicode on Windows."
49
false
mogproject/mog-commons-python
__convert_env
15,710
LDU_FT/MoseleyBioinformaticsLab/ctfile/_to_ctfile_atom_block
LDU_FT
[ "<BEGIN>\n## `tokenizer`", "A lexical analyzer for the `CTfile` formatted files.", " :param str text: `CTfile` formatted text.\n :return: Tuples of data.\n :rtype: py:class:`~collections.namedtuple`\n<END>", "<BEGIN>\n## `_molfile`", "Process ``Molfile``.", " :param stream: Queue containing li...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _to_ctfile_atom_block 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 _to_ctfile_atom_block API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Create atom block in `CTfile` format. :param str key: Ctab atom block key. :return: Ctab atom block. :rtype: :py:class:`str`
"Create atom block in `CTfile` format.\n\n :param str key: Ctab atom block key. \n :return: Ctab atom block.\n :rtype: :py:class:`str`"
93
false
MoseleyBioinformaticsLab/ctfile
_to_ctfile_atom_block
15,711
LDU_FT/20c/vodka/render
LDU_FT
[ "<BEGIN>\n## `is_config_container`", "checks whether v is of type list,dict or Config\n<END>", "<BEGIN>\n## `check`", "Checks that the config values specified in key name is\n sane according to config attributes defined as properties\n on this class\n<END>", "<BEGIN>\n## `validate`", "Valida...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the render API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the render API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Render the specified template and return the output. Args: tmpl_name (str): file name of the template request_env (dict): request environment Returns: str - the rendered template
"Render the specified template and return the output.\n\n Args:\n tmpl_name (str): file name of the template\n request_env (dict): request environment\n\n\n Returns:\n str - the rendered template"
56
false
20c/vodka
render
15,712
LDU_FT/spotify/snakebite/copyToLocal
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 copyToLocal API. 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 copyToLocal API. 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...
Copy files that match the file source pattern to the local name. Source is kept. When copying multiple, files, the destination must be a directory. :param paths: Paths to copy :type paths: list of strings :param dst: Destination path :type dst: string :param ch...
"Copy files that match the file source pattern\n to the local name. Source is kept. When copying multiple,\n files, the destination must be a directory.\n\n :param paths: Paths to copy\n :type paths: list of strings\n :param dst: Destination path\n :type dst: string\n ...
148
false
spotify/snakebite
copyToLocal
15,713
LDU_FT/plivo/plivo-python/update
LDU_FT
[ "<BEGIN>\n## `validate_signature`", "Validates requests made by Plivo to your servers.", " :param uri: Your server URL\n :param nonce: X-Plivo-Signature-V2-Nonce\n :param signature: X-Plivo-Signature-V2 header\n :param auth_token: Plivo Auth token\n :return: True if the request matches signature,...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Test Update :param params: :param path: :param random:
"Test Update\n :param params:\n :param path:\n :param random:"
13
false
plivo/plivo-python
update
15,714
LDU_FT/mattja/nsim/order_param
LDU_FT
[ "<BEGIN>\n## `merge`", "Merge several timeseries\n Arguments:\n tup: sequence of Timeseries, with the same shape except for axis 0\n Returns: \n Resulting merged timeseries which can have duplicate time points.\n<END>", "<BEGIN>\n## `add_analyses`", "Dynamically add new analysis methods to the...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the order_param API. 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 order_param API. 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...
Order parameter of phase synchronization
"Order parameter of phase synchronization"
427
false
mattja/nsim
order_param
15,715
LDU_FT/inveniosoftware/invenio-jsonschemas/jsonresolver_loader
LDU_FT
[ "<BEGIN>\n## `jsonresolver_loader`", "JSON resolver plugin that loads the schema endpoint.", " Injected into Invenio-Records JSON resolver.\n<END>", "<BEGIN>\n## `resolve_schema`", "Transform JSON schemas \"allOf\".", " This is the default schema resolver.", " This function was created because ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the jsonresolver_loader 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 jsonresolver_loader 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...
JSON resolver plugin that loads the schema endpoint. Injected into Invenio-Records JSON resolver.
"JSON resolver plugin that loads the schema endpoint.\n\n Injected into Invenio-Records JSON resolver."
42
false
inveniosoftware/invenio-jsonschemas
jsonresolver_loader
15,716
LDU_FT/django-dbbackup/django-dbbackup/create_spooled_temporary_file
LDU_FT
[ "<BEGIN>\n## `_cleanup_old_backups`", "Cleanup old backups, keeping the number of backups specified by\n DBBACKUP_CLEANUP_KEEP and any backups that occur on first of the month.\n<END>", "<BEGIN>\n## `_explore_storage`", "Generator of all files contained in media storage.\n<END>", "<BEGIN>\n## `backup...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_spooled_temporary_file API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_spooled_temporary_file API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conc...
Create a spooled temporary file. if ``filepath`` or ``fileobj`` is defined its content will be copied into temporary file. :param filepath: Path of input file :type filepath: str :param fileobj: Input file object :type fileobj: file :returns: Spooled temporary file :rtype: :class:`tempfil...
"Create a spooled temporary file. if ``filepath`` or ``fileobj`` is\n defined its content will be copied into temporary file.\n\n :param filepath: Path of input file\n :type filepath: str\n\n :param fileobj: Input file object\n :type fileobj: file\n\n :returns: Spooled temporary file\n :rtype: :cla...
99
false
django-dbbackup/django-dbbackup
create_spooled_temporary_file
15,717
LDU_FT/troeger/opensubmit/duplicate_files
LDU_FT
[ "<BEGIN>\n## `read_config`", "Read configuration file, perform sanity check and return configuration\n dictionary used by other functions.\n<END>", "<BEGIN>\n## `check_config`", "Check the executor config file for consistency.\n<END>", "<BEGIN>\n## `has_config`", "Determine if the given config file...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the duplicate_files API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the duplicate_files API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
Search for duplicates of submission file uploads for this assignment. This includes the search in other course, whether inactive or not. Returns a list of lists, where each latter is a set of duplicate submissions with at least on of them for this assignment
"Search for duplicates of submission file uploads for this assignment.\n This includes the search in other course, whether inactive or not.\n Returns a list of lists, where each latter is a set of duplicate submissions\n with at least on of them for this assignment"
254
false
troeger/opensubmit
duplicate_files
15,718
LDU_FT/python-fedex-devs/python-fedex/transfer_config_dict
LDU_FT
[ "<BEGIN>\n## `transfer_config_dict`", "This is a utility function used in the certification modules to transfer\n the data dicts above to SOAP objects. This avoids repetition and allows\n us to store all of our variable configuration here rather than in\n each certification script.\n<END>", "<BEGIN>\n#...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the transfer_config_dict API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the transfer_config_dict API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
This is a utility function used in the certification modules to transfer the data dicts above to SOAP objects. This avoids repetition and allows us to store all of our variable configuration here rather than in each certification script.
"This is a utility function used in the certification modules to transfer\n the data dicts above to SOAP objects. This avoids repetition and allows\n us to store all of our variable configuration here rather than in\n each certification script."
92
false
python-fedex-devs/python-fedex
transfer_config_dict
15,719
LDU_FT/glitchassassin/lackey/log
LDU_FT
[ "<BEGIN>\n## `_check_count`", "Private function to return ctypes errors cleanly\n<END>", "<BEGIN>\n## `getScreenBounds`", "Returns the screen size of the specified monitor (0 being the main monitor).\n<END>", "<BEGIN>\n## `getScreenDetails`", "Return list of attached monitors", " For each monitor...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the log API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the log API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
Records a Debug-level log message Uses the log path defined by ``Debug.setUserLogFile()``. If no log file is defined, sends to STDOUT
"Records a Debug-level log message\n Uses the log path defined by ``Debug.setUserLogFile()``. If no log file is\n defined, sends to STDOUT"
378
false
glitchassassin/lackey
log
15,720
LDU_FT/danpaquin/coinbasepro-python/get_fundings
LDU_FT
[ "<BEGIN>\n## `get_account_history`", "List account activity. Account activity either increases or\n decreases your account balance.", " Entry type indicates the reason for the account change.\n * transfer:\tFunds moved to/from Coinbase to cbpro\n * match:\tFunds moved as a result of ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_fundings API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_fundings API. 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...
Every order placed with a margin profile that draws funding will create a funding record. This method returns a generator which may make multiple HTTP requests while iterating through it. Args: status (list/str): Limit funding records to these statuses. ** O...
"Every order placed with a margin profile that draws funding\n will create a funding record.\n\n This method returns a generator which may make multiple HTTP requests\n while iterating through it.\n\n Args:\n status (list/str): Limit funding records to these statuses.\n ...
127
false
danpaquin/coinbasepro-python
get_fundings
15,721
LDU_FT/toidi/hadoop-yarn-api-python-client/cluster_application_kill
LDU_FT
[ "<BEGIN>\n## `node_applications`", "With the Applications API, you can obtain a collection of resources,\n each of which represents an application.", " :param str state: application state\n :param str user: user name\n :returns: API response object with JSON data\n :rtype: :py...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the cluster_application_kill 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 cluster_application_kill API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio...
With the application kill API, you can kill an application that is not in FINISHED or FAILED state. :param str application_id: The application id :returns: API response object with JSON data :rtype: :py:class:`yarn_api_client.base.Response`
"With the application kill API, you can kill an application\n that is not in FINISHED or FAILED state.\n\n :param str application_id: The application id\n :returns: API response object with JSON data\n :rtype: :py:class:`yarn_api_client.base.Response`"
71
false
toidi/hadoop-yarn-api-python-client
cluster_application_kill
15,722
LDU_FT/globocom/GloboNetworkAPI-client-python/get_access
LDU_FT
[ "<BEGIN>\n## `deploy`", "Deploy network in equipments and set column 'active = 1' in tables redeipv4", " :param id_networkv4: ID for NetworkIPv4", " :return: Equipments configuration output\n<END>", "<BEGIN>\n## `get_by_id`", "Get IPv4 network", " :param id_networkv4: ID for Network...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_access API. 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_access API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
Get Equipment Access by id. :return: Dictionary with following: :: {'equipamento_acesso': {'id_equipamento': < id_equipamento >, 'fqdn': < fqdn >, 'user': < user >, 'pass': < pass >, 'id_tipo_acesso': < id_tipo_acesso >, ...
"Get Equipment Access by id.\n\n :return: Dictionary with following:\n\n ::\n\n {'equipamento_acesso':\n {'id_equipamento': < id_equipamento >,\n 'fqdn': < fqdn >,\n 'user': < user >,\n 'pass': < pass >,\n 'id_tipo_acesso': < id_tipo_acesso...
1,966
true
globocom/GloboNetworkAPI-client-python
get_access
15,723
LDU_FT/wickman/compactor/link
LDU_FT
[ "<BEGIN>\n## `encode_request`", "Encode a request into a raw HTTP request. This function returns a string\n of bytes that represent a valid HTTP/1.0 request, including any libprocess\n headers required for communication.", " Use the `legacy` option (set to True) to use the legacy User-Agent based\n libproce...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the link API. 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 link API. 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...
Link a local process to a possibly remote process. Note: It is more idiomatic to call ``link`` directly on the bound Process object instead. When ``pid`` is linked to ``to``, the termination of the ``to`` process (or the severing of its connection from the Process ``pid``) will result in the local...
"Link a local process to a possibly remote process.\n\n Note: It is more idiomatic to call ``link`` directly on the bound Process\n object instead.\n\n When ``pid`` is linked to ``to``, the termination of the ``to`` process\n (or the severing of its connection from the Process ``pid``) will result\n in t...
96
false
wickman/compactor
link
15,724
LDU_FT/adamreeve/npTDMS/as_dataframe
LDU_FT
[ "<BEGIN>\n## `to_file`", "Wrapper around ndarray.tofile to support any file-like object\n<END>", "<BEGIN>\n## `write_segment`", "Write a segment of data to a TDMS file", " :param objects: A list of TdmsObject instances to write\n<END>", "<BEGIN>\n## `fromfile`", "Wrapper around np.fromfile to sup...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the as_dataframe API. 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 as_dataframe API. 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...
Converts the TDMS file to a DataFrame :param time_index: Whether to include a time index for the dataframe. :param absolute_time: If time_index is true, whether the time index values are absolute times or relative to the start time. :return: The full TDMS file data. :rtype: ...
"Converts the TDMS file to a DataFrame\n\n :param time_index: Whether to include a time index for the dataframe.\n :param absolute_time: If time_index is true, whether the time index\n values are absolute times or relative to the start time.\n :return: The full TDMS file data.\n :...
65
false
adamreeve/npTDMS
as_dataframe
15,725
LDU_FT/simpleenergy/env-excavator/env_iso8601
LDU_FT
[ "<BEGIN>\n## `env_int`", "Pulls an environment variable out of the environment and casts it to an\n integer. If the name is not present in the environment and no default is\n specified then a ``ValueError`` will be raised. Similarly, if the\n environment value is not castable to an integer, a ``ValueErro...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the env_iso8601 API. 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 env_iso8601 API. 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...
Pulls an environment variable out of the environment and parses it to a ``datetime.datetime`` object. The environment variable is expected to be an iso8601 formatted string. If the name is not present in the environment and no default is specified then a ``ValueError`` will be raised. :param name:...
"Pulls an environment variable out of the environment and parses it to a\n ``datetime.datetime`` object. The environment variable is expected to be an\n iso8601 formatted string.\n\n If the name is not present in the environment and no default is specified\n then a ``ValueError`` will be raised.\n\n :par...
45
false
simpleenergy/env-excavator
env_iso8601
15,726
LDU_FT/shidenggui/easytrader/do
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 do API. 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 docu...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the do API. 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 docu...
发起对 api 的请求并过滤返回结果 :param params: 交易所需的动态参数
"发起对 api 的请求并过滤返回结果\n :param params: 交易所需的动态参数"
93
false
shidenggui/easytrader
do
15,727
LDU_FT/moonso/loqusdb/check_par
LDU_FT
[ "<BEGIN>\n## `update_database`", "Update a case in the database", " Args:\n adapter: Connection to database\n variant_file(str): Path to variant file\n sv_file(str): Path to sv variant file\n family_file(str): Path to family file\n family_type(str): Format of fami...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the check_par API. 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 check_par API. 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...
Check if a coordinate is in the PAR region Args: chrom(str) pos(int) Returns: par(bool)
"Check if a coordinate is in the PAR region\n \n Args:\n chrom(str)\n pos(int)\n \n Returns:\n par(bool)"
216
false
moonso/loqusdb
check_par
15,728
LDU_FT/sibirrer/lenstronomy/mass_3d
LDU_FT
[ "<BEGIN>\n## `array2image`", "maps a 1d array into a (nx, ny) 2d grid with array populating the idex_mask indices\n :param array: 1d array\n :param idex_mask: 1d array of length nx*ny\n :param nx: x-axis of 2d grid\n :param ny: y-axis of 2d grid\n :return:\n<END>", "<BEGIN>\n#...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the mass_3d API. 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 mass_3d API. 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...
mass enclosed a 3d sphere or radius r :param r: :param a: :param s: :return:
"mass enclosed a 3d sphere or radius r\n :param r:\n :param a:\n :param s:\n :return:"
886
false
sibirrer/lenstronomy
mass_3d
15,729
LDU_FT/ponty/eagexp/raw_partlist
LDU_FT
[ "<BEGIN>\n## `export_image3d`", "Exporting eagle .brd file into 3D image file\n using Eagle3D and povray.\n GUI is not displayed if ``pyvirtualdisplay`` is installed.\n If export is blocked somehow (e.g. popup window is displayed) then after timeout operation is canceled with exception.\n Problem can ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the raw_partlist API. 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 raw_partlist API. 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...
export partlist by eagle, then return it :param input: .sch or .brd file name :param timeout: int :param showgui: Bool, True -> do not hide eagle GUI :rtype: string
"export partlist by eagle, then return it\n\n :param input: .sch or .brd file name\n :param timeout: int\n :param showgui: Bool, True -> do not hide eagle GUI\n :rtype: string"
35
false
ponty/eagexp
raw_partlist
15,730
LDU_FT/ChristopherRabotin/bungiesearch/get_index
LDU_FT
[ "<BEGIN>\n## `update_index`", "Updates the index for the provided model_items.\n :param model_items: a list of model_items (django Model instances, or proxy instances) which are to be indexed/updated or deleted.\n If action is 'index', the model_items must be serializable objects. If action is 'delete', the...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_index API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_index API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
Returns the index name (as a string) for the given model as a class or a string. :param model: model name or model class if via_class set to True. :param via_class: set to True if parameter model is a class. :raise KeyError: If the provided model does not have any index associated.
"Returns the index name (as a string) for the given model as a class or a string.\n :param model: model name or model class if via_class set to True.\n :param via_class: set to True if parameter model is a class.\n :raise KeyError: If the provided model does not have any index associated."
46
false
ChristopherRabotin/bungiesearch
get_index
15,731
LDU_FT/OnroerendErfgoed/crabpy_pyramid/add_route
LDU_FT
[ "<BEGIN>\n## `range_return`", "Determine what range of objects to return.", " Will check fot both `Range` and `X-Range` headers in the request and\n set both `Content-Range` and 'X-Content-Range' headers.", " :rtype: list\n<END>", "<BEGIN>\n## `set_http_caching`", "Set an HTTP Cache Control heade...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_route API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_route API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
Adds a pyramid route to the config. All args and kwargs will be passed on to config.add_route. This exists so the default behaviour of including crabpy will still be to cache all crabpy routes.
"Adds a pyramid route to the config. All args and kwargs will be\n passed on to config.add_route.\n\n This exists so the default behaviour of including crabpy will still be to\n cache all crabpy routes."
72
false
OnroerendErfgoed/crabpy_pyramid
add_route
15,732
LDU_FT/google/pinject/provide
LDU_FT
[ "<BEGIN>\n## `new`", "Creates a _InjectionContext.", " Args:\n injection_site_fn: the initial function being injected into\n Returns:\n a new empty _InjectionContext in the default scope\n<END>", "<BEGIN>\n## `get_child`", "Creates a child injection context.", " A \"...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the provide API. 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 provide API. 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...
Provides an instance of the given class. Args: cls: a class (not an instance) Returns: an instance of cls Raises: Error: an instance of cls is not providable
"Provides an instance of the given class.\n\n Args:\n cls: a class (not an instance)\n Returns:\n an instance of cls\n Raises:\n Error: an instance of cls is not providable"
58
false
google/pinject
provide
15,733
LDU_FT/aerkalov/ebooklib/get_items_of_media_type
LDU_FT
[ "<BEGIN>\n## `write_epub`", "Creates epub file with the content defined in EpubBook.", " >>> ebooklib.write_epub('book.epub', book)", " :Args:\n - name: file name for the output file\n - book: instance of EpubBook\n - options: extra opions as dictionary (optional)\n<END>", "<BEGIN>\n## ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_items_of_media_type 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_items_of_media_type API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion...
Returns all items of specified media type. :Args: - media_type: Media type for items we are searching for :Returns: Returns found items as tuple.
"Returns all items of specified media type.\n\n :Args:\n - media_type: Media type for items we are searching for\n\n :Returns:\n Returns found items as tuple."
66
false
aerkalov/ebooklib
get_items_of_media_type
15,734
LDU_FT/andrewramsay/sk8-drivers/set_extana_led
LDU_FT
[ "<BEGIN>\n## `update`", "Update the device name and/or RSSI.", " During an ongoing scan, multiple records from the same device can be \n received during the scan. Each time that happens this method is \n called to update the :attr:`name` and/or :attr:`rssi` attributes.\n<END>", "<BEGIN>\n...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_extana_led API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_extana_led API. 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...
Update the colour of the RGB LED on the SK8-ExtAna board. Args: r (int): red channel, 0-255 g (int): green channel, 0-255 b (int): blue channel, 0-255 check_state (bool): if True (default) and the locally cached LED state matches the given (r, g, ...
"Update the colour of the RGB LED on the SK8-ExtAna board.\n\n Args:\n r (int): red channel, 0-255\n g (int): green channel, 0-255\n b (int): blue channel, 0-255\n check_state (bool): if True (default) and the locally cached LED state matches\n the given...
193
false
andrewramsay/sk8-drivers
set_extana_led
15,735
LDU_FT/rflamary/POT/line_search_armijo
LDU_FT
[ "<BEGIN>\n## `plot1D_mat`", "Plot matrix M with the source and target 1D distribution", " Creates a subplot with the source distribution a on the left and\n target distribution b on the tot. The matrix M is shown in between.", " Parameters\n ----------\n a : np.array, shape (na,)\n Sour...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the line_search_armijo 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 line_search_armijo 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...
Armijo linesearch function that works with matrices find an approximate minimum of f(xk+alpha*pk) that satifies the armijo conditions. Parameters ---------- f : function loss function xk : np.ndarray initial position pk : np.ndarray descent direction gfk : np.n...
"Armijo linesearch function that works with matrices\n\n find an approximate minimum of f(xk+alpha*pk) that satifies the\n armijo conditions.\n\n Parameters\n ----------\n\n f : function\n loss function\n xk : np.ndarray\n initial position\n pk : np.ndarray\n descent direction\...
711
false
rflamary/POT
line_search_armijo
15,736
LDU_FT/ResilienceTesting/gremlinsdk-python/check_assertions
LDU_FT
[ "<BEGIN>\n## `add_rule`", "@param args keyword argument list, consisting of:", " source: <source service name>,\n dest: <destination service name>,\n messagetype: <request|response|publish|subscribe|stream>", " headerpattern: <regex to match against the value of the X-Gremlin-ID tr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the check_assertions API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the check_assertions API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Check a set of assertions @param all boolean if False, stop at first failure @return: False if any assertion fails.
"Check a set of assertions\n @param all boolean if False, stop at first failure\n @return: False if any assertion fails."
31
false
ResilienceTesting/gremlinsdk-python
check_assertions
15,737
LDU_FT/klen/graphite-beacon/_get_loader
LDU_FT
[ "<BEGIN>\n## `_get_loader`", "Determine which config file type and loader to use based on a filename.", " :param config str: filename to config file\n :return: a tuple of the loader type and callable to load\n :rtype: (str, Callable)\n<END>", "<BEGIN>\n## `start`", "Start all the things.", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_loader API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_loader API. 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...
Determine which config file type and loader to use based on a filename. :param config str: filename to config file :return: a tuple of the loader type and callable to load :rtype: (str, Callable)
"Determine which config file type and loader to use based on a filename.\n\n :param config str: filename to config file\n :return: a tuple of the loader type and callable to load\n :rtype: (str, Callable)"
34
false
klen/graphite-beacon
_get_loader
15,738
LDU_FT/xolox/python-verboselogs/spam
LDU_FT
[ "<BEGIN>\n## `add_log_level`", "Add a new log level to the :mod:`logging` module.", " :param value: The log level's number (an integer).\n :param name: The name for the log level (a string).\n<END>", "<BEGIN>\n## `notice`", "Log a message with level :data:`NOTICE`. The arguments are interpreted as for...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the spam API. 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 spam API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
Log a message with level :data:`SPAM`. The arguments are interpreted as for :func:`logging.debug()`.
"Log a message with level :data:`SPAM`. The arguments are interpreted as for :func:`logging.debug()`."
15
false
xolox/python-verboselogs
spam
15,739
LDU_FT/evhub/coconut/single_import
LDU_FT
[ "<BEGIN>\n## `single_import`", "Generate import statements from a fully qualified import and the name to bind it to.\n<END>", "<BEGIN>\n## `universal_import`", "Generate code for a universal import of imports from imp_from on target.\n imports = [[imp1], [imp2, as], ...]\n<END>", "<BEGIN>\n## `bind`", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the single_import API. 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 single_import API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
Generate import statements from a fully qualified import and the name to bind it to.
"Generate import statements from a fully qualified import and the name to bind it to."
219
false
evhub/coconut
single_import
15,740
LDU_FT/bachiraoun/pysimplelog/set_log_type_level
LDU_FT
[ "<BEGIN>\n## `__stream_format_allowed`", "Check whether a stream allows formatting such as coloring.\n Inspired from Python cookbook, #475186\n<END>", "<BEGIN>\n## `lastLogged`", "Get a dictionary of last logged messages.\n Keys are log types and values are the the last messages.\n<END>", "<BE...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_log_type_level 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 set_log_type_level API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
Set a logtype logging level. :Parameters: #. logType (string): A defined logging type. #. level (number): The level of logging.
"Set a logtype logging level.\n\n :Parameters:\n #. logType (string): A defined logging type.\n #. level (number): The level of logging."
56
false
bachiraoun/pysimplelog
set_log_type_level
15,741
LDU_FT/jantman/awslimitchecker/_get_check_result
LDU_FT
[ "<BEGIN>\n## `_last_step`", "If ``self._savepath`` doesn't exist, can't be read as JSON, or doesn't\n match ``VERSION``, return 0. Otherwise, return the step which that file\n lists as the last-run step for this release.", " :return: last-run step from the release or 0\n :rtype: int\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_check_result API. 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_check_result API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Directly wrap :py:meth:`Support.Client.describe_trusted_advisor_check_result`; return a 2-tuple of the result dict and the last refresh DateTime. :param check_id: the Trusted Advisor check ID :type check_id: str :return: 2-tuple of (result dict, last refresh DateTime). If the la...
"Directly wrap\n :py:meth:`Support.Client.describe_trusted_advisor_check_result`;\n return a 2-tuple of the result dict and the last refresh DateTime.\n\n :param check_id: the Trusted Advisor check ID\n :type check_id: str\n :return: 2-tuple of (result dict, last refresh DateTime). If...
372
false
jantman/awslimitchecker
_get_check_result
15,742
LDU_FT/ContextLab/hypertools/_init_structures
LDU_FT
[ "<BEGIN>\n## `default_params`", "Loads and updates default model parameters", " Parameters\n ----------", " model : str\n The name of a model", " update_dict : dict\n A dict to update default parameters", " Returns\n ----------", " params : dict\n A dictionary o...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _init_structures API. 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 _init_structures API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Initializes data structures for SRM and preprocess the data. Parameters ---------- data : list of 2D arrays, element i has shape=[voxels_i, samples] Each element in the list contains the fMRI data of one subject. subjects : int The total number of subjects in `...
"Initializes data structures for SRM and preprocess the data.\n\n\n Parameters\n ----------\n data : list of 2D arrays, element i has shape=[voxels_i, samples]\n Each element in the list contains the fMRI data of one subject.\n\n subjects : int\n The total number of sub...
239
false
ContextLab/hypertools
_init_structures
15,743
LDU_FT/seme0021/python-zillow/set_data
LDU_FT
[ "<BEGIN>\n## `GetSearchResults`", "The GetSearchResults API finds a property for a specified address.\n The content returned contains the address for the property or properties as well as the Zillow Property ID (ZPID) and current Zestimate.\n It also includes the date the Zestimate was computed, a v...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_data API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_data API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
:source_data": Data from data.get('SearchResults:searchresults', None)['response']['results']['result'] :param source_data: :return:
":source_data\": Data from data.get('SearchResults:searchresults', None)['response']['results']['result']\n :param source_data:\n :return:"
22
false
seme0021/python-zillow
set_data
15,744
LDU_FT/wdecoster/nanoget/readfq
LDU_FT
[ "<BEGIN>\n## `process_summary`", "Extracting information from an albacore summary file.", " Only reads which have a >0 length are returned.", " The fields below may or may not exist, depending on the type of sequencing performed.\n Fields 1-14 are for 1D sequencing.\n Fields 1-23 for 2D sequencing...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the readfq API. 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 readfq API. 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 ...
Generator function adapted from https://github.com/lh3/readfq.
"Generator function adapted from https://github.com/lh3/readfq."
63
false
wdecoster/nanoget
readfq
15,745
LDU_FT/sci-bots/serial-device/_get_serial_ports_windows
LDU_FT
[ "<BEGIN>\n## `_comports`", "Returns\n -------\n pandas.DataFrame\n Table containing descriptor, and hardware ID of each available COM\n port, indexed by port (e.g., \"COM4\").\n<END>", "<BEGIN>\n## `comports`", ".. versionchanged:: 0.9\n Add :data:`check_available` keyword argument ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_serial_ports_windows 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_serial_ports_windows API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi...
Uses the Win32 registry to return a iterator of serial (COM) ports existing on this computer. See http://stackoverflow.com/questions/1205383/listing-serial-com-ports-on-windows
"Uses the Win32 registry to return a iterator of serial (COM) ports existing\n on this computer.\n\n See http://stackoverflow.com/questions/1205383/listing-serial-com-ports-on-windows"
63
false
sci-bots/serial-device
_get_serial_ports_windows
15,746
LDU_FT/tomplus/kubernetes_asyncio/replace_namespaced_service_account
LDU_FT
[ "<BEGIN>\n## `raw`", "Sets the raw of this RuntimeRawExtension.", " Raw is the underlying serialization of this object. # noqa: E501", " :param raw: The raw of this RuntimeRawExtension. # noqa: E501\n :type: str\n<END>", "<BEGIN>\n## `delete_namespaced_cron_job`", "delete_namespaced...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the replace_namespaced_service_account 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 replace_namespaced_service_account API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its...
replace_namespaced_service_account # noqa: E501 replace the specified ServiceAccount # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.replace_namespaced_service_account(name, namespa...
"replace_namespaced_service_account # noqa: E501\n\n replace the specified ServiceAccount # noqa: E501\n This method makes a synchronous HTTP request by default. To make an\n asynchronous HTTP request, please pass async_req=True\n >>> thread = api.replace_namespaced_service_account(name, n...
1,540
true
tomplus/kubernetes_asyncio
replace_namespaced_service_account
15,747
LDU_FT/pricingassistant/mrq/memoize
LDU_FT
[ "<BEGIN>\n## `group_iter`", "Given an iterator, it returns sub-lists made of n items.\n (except the last that can have len < n)\n<END>", "<BEGIN>\n## `memoize`", "Memoization decorator for a function taking one or more arguments.\n<END>", "<BEGIN>\n## `memoize_single_argument`", "Memoization decorator ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the memoize API. 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 memoize API. 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...
Memoization decorator for a function taking one or more arguments.
"Memoization decorator for a function taking one or more arguments."
123
false
pricingassistant/mrq
memoize
15,748
LDU_FT/moble/quaternion/minimal_rotation
LDU_FT
[ "<BEGIN>\n## `slerp`", "Spherical linear interpolation of rotors", " This function uses a simpler interface than the more fundamental\n `slerp_evaluate` and `slerp_vectorized` functions. The latter\n are fast, being implemented at the C level, but take input `tau`\n instead of time. This function ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the minimal_rotation API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the minimal_rotation API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Adjust frame so that there is no rotation about z' axis The output of this function is a frame that rotates the z axis onto the same z' axis as the input frame, but with minimal rotation about that axis. This is done by pre-composing the input rotation with a rotation about the z axis through an angle gam...
"Adjust frame so that there is no rotation about z' axis\n\n The output of this function is a frame that rotates the z axis onto the same z' axis as the\n input frame, but with minimal rotation about that axis. This is done by pre-composing the input\n rotation with a rotation about the z axis through an angl...
113
false
moble/quaternion
minimal_rotation
15,749
LDU_FT/metagriffin/morph/xform
LDU_FT
[ "<BEGIN>\n## `isseq`", "Returns True if `obj` is a sequence-like object (but not a string or\n dict); i.e. a tuple, list, subclass thereof, or having an interface\n that supports iteration.\n<END>", "<BEGIN>\n## `isdict`", "Returns True if `obj` is a dict-like object (but not a string or\n list); i.e. a di...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the xform API. 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 xform API. 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...
Recursively transforms `value` by calling `xformer` on all keys & values in dictionaries and all values in sequences. Note that `xformer` will be passed each value to transform as the first parameter and other keyword parameters based on type. All transformers MUST support arbitrary additional parameters to sta...
"Recursively transforms `value` by calling `xformer` on all\n keys & values in dictionaries and all values in sequences. Note\n that `xformer` will be passed each value to transform as the\n first parameter and other keyword parameters based on type. All\n transformers MUST support arbitrary additional parameters t...
23
false
metagriffin/morph
xform
15,750
LDU_FT/toumorokoshi/sprinter/write
LDU_FT
[ "<BEGIN>\n## `whitespace_smart_split`", "Split a command by whitespace, taking care to not split on\n whitespace within quotes.", " >>> whitespace_smart_split(\"test this \\\\\\\"in here\\\\\\\" again\")\n ['test', 'this', '\"in here\"', 'again']\n<END>", "<BEGIN>\n## `sync`", "execute the steps re...
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 the current state to a file manifest
"write the current state to a file manifest"
150
false
toumorokoshi/sprinter
write
15,751
LDU_FT/tradenity/python-sdk/update_discount_coupon_by_id
LDU_FT
[ "<BEGIN>\n## `data_type`", "Sets the data_type of this Option.", " :param data_type: The data_type of this Option.\n :type: str\n<END>", "<BEGIN>\n## `create_option`", "Create Option", " Create a new Option\n This method makes a synchronous HTTP request by default. To make an\n...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update_discount_coupon_by_id API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its concl...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update_discount_coupon_by_id API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its concl...
Update DiscountCoupon Update attributes of DiscountCoupon This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async=True >>> thread = api.update_discount_coupon_by_id(discount_coupon_id, discount_coupon, async=True) >>> resu...
"Update DiscountCoupon\n\n Update attributes of DiscountCoupon\n This method makes a synchronous HTTP request by default. To make an\n asynchronous HTTP request, please pass async=True\n >>> thread = api.update_discount_coupon_by_id(discount_coupon_id, discount_coupon, async=True)\n >...
1,216
true
tradenity/python-sdk
update_discount_coupon_by_id
15,752
LDU_FT/pulumi/pulumi/configure
LDU_FT
[ "<BEGIN>\n## `do_rpc`", "Wraps a given RPC function by producing an awaitable function suitable to be run in the asyncio\n event loop. The wrapped function catches all unhandled exceptions and reports them to the exception\n future, which consumers can await upon to listen for unhandled exceptions."...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the configure API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the configure API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
Configure sets the current ambient settings bag to the one given.
"Configure sets the current ambient settings bag to the one given."
98
false
pulumi/pulumi
configure
15,753
LDU_FT/kellerza/pyqwikswitch/set_qs_value
LDU_FT
[ "<BEGIN>\n## `_legacy_status`", "Legacy status method from the 'qsmobile.js' library.", " Pass in the 'val' from &devices or the\n 'data' received after calling a specific ID.\n<END>", "<BEGIN>\n## `decode_qwikcord`", "Extract the qwikcord current measurements from val (CTavg, CTsum).\n<END>", "<BEG...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_qs_value API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_qs_value API. 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...
Push state to QSUSB, retry with backoff.
"Push state to QSUSB, retry with backoff."
25
false
kellerza/pyqwikswitch
set_qs_value
15,754
LDU_FT/MoseleyBioinformaticsLab/mwtab/_many_to_many
LDU_FT
[ "<BEGIN>\n## `read`", "Read data into a :class:`~mwtab.mwtab.MWTabFile` instance.", " :param filehandle: file-like object.\n :type filehandle: :py:class:`io.TextIOWrapper`, :py:class:`gzip.GzipFile`,\n :py:class:`bz2.BZ2File`, :py:class:`zipfile.ZipFile`\n :return: ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _many_to_many API. 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 _many_to_many API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
Perform many-to-many files conversion. :return: None :rtype: :py:obj:`None`
"Perform many-to-many files conversion.\n :return: None\n :rtype: :py:obj:`None`"
74
false
MoseleyBioinformaticsLab/mwtab
_many_to_many
15,755
LDU_FT/sdispater/backpack/where
LDU_FT
[ "<BEGIN>\n## `avg`", "Get the average value of a given key.", " :param key: The key to get the average for\n :type key: mixed", " :rtype: float or int\n<END>", "<BEGIN>\n## `chunk`", "Chunk the underlying collection.", " :param size: The chunk size\n :type size: int", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the where API. 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 where API. 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...
Filter items by the given key value pair. :param key: The key to filter by :type key: str :param value: The value to filter by :type value: mixed :rtype: Collection
"Filter items by the given key value pair.\n\n :param key: The key to filter by\n :type key: str\n\n :param value: The value to filter by\n :type value: mixed\n\n :rtype: Collection"
137
false
sdispater/backpack
where
15,756
LDU_FT/dmgass/baseline/_dedent
LDU_FT
[ "<BEGIN>\n## `main`", "Command line interface.", " :param list args: command line options (defaults to sys.argv)\n :returns: exit code\n :rtype: int\n<END>", "<BEGIN>\n## `showpath`", "Return path in form most convenient for user to read.", " Return relative path when input path is within ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _dedent API. 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 _dedent API. 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...
Remove common indentation from each line in a text block. When text block is a single line, return text block. Otherwise determine common indentation from last line, strip common indentation from each line, and return text block consisting of inner lines (don't include first and last li...
"Remove common indentation from each line in a text block.\n\n When text block is a single line, return text block. Otherwise\n determine common indentation from last line, strip common\n indentation from each line, and return text block consisting of\n inner lines (don't include first and l...
29
false
dmgass/baseline
_dedent
15,757
LDU_FT/scivision/astrometry_azel/download
LDU_FT
[ "<BEGIN>\n## `meanstack`", "some methods handled individually to improve efficiency with huge files\n<END>", "<BEGIN>\n## `download`", "Download star index files.\n The default range was useful for my cameras.\n<END>", "<BEGIN>\n## `add_plot`", "Astrometry.net makes file \".new\" with the image and the...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the download API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the download API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
Download star index files. The default range was useful for my cameras.
"Download star index files.\n The default range was useful for my cameras."
11
false
scivision/astrometry_azel
download
15,758
LDU_FT/getpelican/pelican-plugins/get_commits_and_names_iter
LDU_FT
[ "<BEGIN>\n## `get_gif`", "Returns dict with gif informations from the API.\n<END>", "<BEGIN>\n## `main`", "Doing the regex parsing and running the create_html function.\n<END>", "<BEGIN>\n## `filetime_from_git`", "Update modification and creation times from git\n<END>", "<BEGIN>\n## `update_hash_from_st...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_commits_and_names_iter 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_commits_and_names_iter 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 all commits including a given path following renames
"Get all commits including a given path following renames"
247
false
getpelican/pelican-plugins
get_commits_and_names_iter
15,759
LDU_FT/rigetti/quantumflow/w16_circuit
LDU_FT
[ "<BEGIN>\n## `load_stdgraphs`", "Load standard graph validation sets", " For each size (from 6 to 32 graph nodes) the dataset consists of\n 100 graphs drawn from the Erdős-Rényi ensemble with edge\n probability 50%.\n<END>", "<BEGIN>\n## `load_mnist`", "Download and rescale the MNIST database of ha...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the w16_circuit API. 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 w16_circuit API. 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 a circuit that prepares the the 16-qubit W state using\ sqrt(iswaps) and local gates, respecting linear topology
"Return a circuit that prepares the the 16-qubit W state using\\\n sqrt(iswaps) and local gates, respecting linear topology"
374
false
rigetti/quantumflow
w16_circuit
15,760
LDU_FT/jamieleshaw/lurklib/away
LDU_FT
[ "<BEGIN>\n## `find`", "Finds needle in haystack.\n If needle is found return True, if not return False.\n Required arguments:\n * haystack - Text to search in.\n * needle - Text to search for.\n<END>", "<BEGIN>\n## `send`", "Send a raw string with the CR-LF appended to it.\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the 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 extracted do...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the 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 extracted do...
Sets/unsets your away status. Optional arguments: * msg='' - Away reason.
"Sets/unsets your away status.\n Optional arguments:\n * msg='' - Away reason."
112
false
jamieleshaw/lurklib
away
15,761
LDU_FT/kgaughan/dbkit/query_proc_row
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 query_proc_row API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the query_proc_row API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
Execute a stored procedure. Returns the first row of the result set, or `None`.
"Execute a stored procedure. Returns the first row of the result set,\n or `None`."
55
false
kgaughan/dbkit
query_proc_row
15,762
LDU_FT/inspirehep/inspire-schemas/add_document
LDU_FT
[ "<BEGIN>\n## `filter_empty_parameters`", "Decorator that is filtering empty parameters.", " :param func: function that you want wrapping\n :type func: function\n<END>", "<BEGIN>\n## `author_id_normalize_and_schema`", "Detect and normalize an author UID schema.", " Args:\n uid (string): a U...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_document API. 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 add_document API. 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...
Adds document to record Args: key (string): document key url (string): document url Keyword Args: description (string): simple description fulltext (bool): mark if this is a full text hidden (bool): is document should be hidden mate...
"Adds document to record\n Args:\n key (string): document key\n url (string): document url\n Keyword Args:\n description (string): simple description\n fulltext (bool): mark if this is a full text\n hidden (bool): is document should be hidden\n ...
290
false
inspirehep/inspire-schemas
add_document
15,763
LDU_FT/wdecoster/nanoget/check_bam
LDU_FT
[ "<BEGIN>\n## `process_summary`", "Extracting information from an albacore summary file.", " Only reads which have a >0 length are returned.", " The fields below may or may not exist, depending on the type of sequencing performed.\n Fields 1-14 are for 1D sequencing.\n Fields 1-23 for 2D sequencing...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the check_bam API. 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 check_bam API. 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...
Check if bam file is valid. Bam file should: - exists - has an index (create if necessary) - is sorted by coordinate - has at least one mapped read
"Check if bam file is valid.\n\n Bam file should:\n - exists\n - has an index (create if necessary)\n - is sorted by coordinate\n - has at least one mapped read"
63
false
wdecoster/nanoget
check_bam
15,764
LDU_FT/hayd/pep8radius/modified_lines_from_udiff
LDU_FT
[ "<BEGIN>\n## `fix_file`", "Calls fix_code on the source code from the passed in file over the given\n line_ranges.", " - If diff then this returns the udiff for the changes, otherwise\n returns the fixed code.\n - If in_place the changes are written to the file.\n<END>", "<BEGIN>\n## `fix_code`", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the modified_lines_from_udiff 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 modified_lines_from_udiff API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi...
Extract from a udiff an iterator of tuples of (start, end) line numbers.
"Extract from a udiff an iterator of tuples of (start, end) line\n numbers."
57
false
hayd/pep8radius
modified_lines_from_udiff
15,765
LDU_FT/chimera0/accel-brain-code/Main
LDU_FT
[ "<BEGIN>\n## `draw`", "Draws samples from the `true` distribution.\r", " Returns:\r\n `np.ndarray` of samples.\n<END>", "<BEGIN>\n## `generate`", "Generate noise samples.\r", " Returns:\r\n `np.ndarray` of samples.\n<END>", "<BEGIN>\n## `generate`", "Draws samples f...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the Main API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the Main API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
Entry Point. Args: url: PDF url.
"Entry Point.\n \n Args:\n url: PDF url."
550
false
chimera0/accel-brain-code
Main
15,766
LDU_FT/anomaly/vishnu/decode_sid
LDU_FT
[ "<BEGIN>\n## `google_app_engine_ndb_delete_expired_sessions`", "Deletes expired sessions\n A session is expired if it expires date is set and has passed or\n if it has not been accessed for a given period of time.", " :param dormant_for: seconds since last access to delete sessions, defaults to 24 hour...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the decode_sid API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the decode_sid API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
Decodes a cookie value and returns the sid if value or None if invalid.
"Decodes a cookie value and returns the sid if value or None if invalid."
22
false
anomaly/vishnu
decode_sid
15,767
LDU_FT/cthorey/pdsimage/cylindrical_window
LDU_FT
[ "<BEGIN>\n## `_category`", "Type of the image: LOLA or WAC", " Note: Specify the attribute ``grid``, ``img`` and ``lbl`\n<END>", "<BEGIN>\n## `_user_yes_no_query`", "Helper asking if the user want to download the file", " Note:\n Dowloading huge file can take a while\n<END>", "<...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the cylindrical_window 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 cylindrical_window 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...
Cylindrical projection of a window centered at (lat0, long0) with a given radius (km). Args: radius(float): Radius of the window (km). lat0(float): Latitude at the center (degree). long0(float): Longitude at the center (degree). Returns: A tuple ...
"Cylindrical projection of a window centered\n at (lat0, long0) with a given radius (km).\n\n Args:\n radius(float): Radius of the window (km).\n lat0(float): Latitude at the center (degree).\n long0(float): Longitude at the center (degree).\n\n Returns:\n ...
106
false
cthorey/pdsimage
cylindrical_window
15,768
LDU_FT/Synerty/peek-plugin-base/addMobileResource
LDU_FT
[ "<BEGIN>\n## `addServerResource`", "Add Server Resource", " Add a cusotom implementation of a served http resource.", " :param pluginSubPath: The resource path where you want to serve this resource.\n :param resource: The resource to serve.\n :return: None\n<END>", "<BEGIN>\n## `...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the addMobileResource API. 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 addMobileResource API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Add Site Resource Add a cusotom implementation of a served http resource. :param pluginSubPath: The resource path where you want to serve this resource. :param resource: The resource to serve. :return: None
"Add Site Resource\n\n Add a cusotom implementation of a served http resource.\n\n :param pluginSubPath: The resource path where you want to serve this resource.\n :param resource: The resource to serve.\n :return: None"
66
false
Synerty/peek-plugin-base
addMobileResource
15,769
LDU_FT/firstprayer/monsql/is_table_existed
LDU_FT
[ "<BEGIN>\n## `MonSQL`", "Initialize and return a Database instance\n<END>", "<BEGIN>\n## `build_select`", "Given a Query obj, return the corresponding sql\n<END>", "<BEGIN>\n## `build_insert`", "Given the table_name and the data, return the sql to insert the data\n<END>", "<BEGIN>\n## `set_foreign_key_c...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_table_existed API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_table_existed API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Check whether the given table name exists in this database. Return boolean.
"Check whether the given table name exists in this database. Return boolean."
76
false
firstprayer/monsql
is_table_existed
15,770
LDU_FT/bretth/woven/upload_etc
LDU_FT
[ "<BEGIN>\n## `setupnode`", "Install a baseline host. Can be run multiple times\n<END>", "<BEGIN>\n## `add_repositories`", "Adds additional sources as defined in LINUX_PACKAGE_REPOSITORIES.\n<END>", "<BEGIN>\n## `change_ssh_port`", "For security woven changes the default ssh port.\n<END>", "<BEGIN>\n## `...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the upload_etc API. 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 upload_etc API. 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...
Upload and render all templates in the woven/etc directory to the respective directories on the nodes Only configuration for installed packages will be uploaded where that package creates it's own subdirectory in /etc/ ie /etc/apache2. For configuration that falls in some other non package directo...
"Upload and render all templates in the woven/etc directory to the respective directories on the nodes\n \n Only configuration for installed packages will be uploaded where that package creates it's own subdirectory\n in /etc/ ie /etc/apache2.\n \n For configuration that falls in some other non package d...
140
false
bretth/woven
upload_etc
15,771
LDU_FT/romanz/trezor-agent/create_identity
LDU_FT
[ "<BEGIN>\n## `create_default_options_getter`", "Return current TTY and DISPLAY settings for GnuPG pinentry.\n<END>", "<BEGIN>\n## `write`", "Send and flush a single line to the subprocess' stdin.\n<END>", "<BEGIN>\n## `expect`", "Read a line and return it without required prefix.\n<END>", "<BEGIN>\n## `...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_identity API. 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 create_identity API. 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...
Create GPG identity for hardware device.
"Create GPG identity for hardware device."
235
false
romanz/trezor-agent
create_identity
15,772