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/mrallen1/pygett/refresh
LDU_FT
[ "<BEGIN>\n## `get`", "**get**", " Make a GET call to a remote endpoint", " Input:\n * An endpoint relative to the ``base_url``", " Output:\n * A :py:mod:`pygett.request.GettResponse` object\n<END>", "<BEGIN>\n## `post`", "**post**", " Make a POST call ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the refresh API. 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 refresh API. 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...
**refresh** Refresh this user object with data from the Gett service Input: * None Output: * ``True`` Example:: if client.user.refresh(): print "User data refreshed!" print "You have %s bytes of storage remaining." ...
"**refresh**\n\n Refresh this user object with data from the Gett service\n\n Input:\n * None\n\n Output:\n * ``True``\n\n Example::\n\n if client.user.refresh():\n print \"User data refreshed!\"\n print \"You have %s bytes of st...
117
false
mrallen1/pygett
refresh
16,173
LDU_FT/izacus/pysolarized/more_like_this
LDU_FT
[ "<BEGIN>\n## `add`", "Adds documents to Solr index\n documents - Single item or list of items to add\n<END>", "<BEGIN>\n## `deleteAll`", "Deletes whole Solr index. Use with care.\n<END>", "<BEGIN>\n## `delete`", "Deletes document with ID on all Solr cores\n<END>", "<BEGIN>\n## `commit`", "Flush...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the more_like_this API. 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 more_like_this API. 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...
Retrieves "more like this" results for a passed query document query - query for a document on which to base similar documents fields - fields on which to base similarity estimation (either comma delimited string or a list) columns - columns to return (list of strings) start - start num...
"Retrieves \"more like this\" results for a passed query document\n\n query - query for a document on which to base similar documents\n fields - fields on which to base similarity estimation (either comma delimited string or a list)\n columns - columns to return (list of strings)\n start - s...
18
false
izacus/pysolarized
more_like_this
16,174
LDU_FT/maceoutliner/django-fiction-outlines/add_child
LDU_FT
[ "<BEGIN>\n## `mk_dropdown_tree`", "Override of ``treebeard`` method to enforce the same root.\n<END>", "<BEGIN>\n## `length_estimate`", "Calculates and estimated word count based on number of characters, locations,\n and arcs. For reference see:\n http://www.writingexcuses.com/2017/07/02/12-27-c...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_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 extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_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 extract...
An override of the treebeard add_child() method so we can send a signal.
"An override of the treebeard add_child() method so we can send a signal."
61
false
maceoutliner/django-fiction-outlines
add_child
16,175
LDU_FT/openai/universe/modifiers_string
LDU_FT
[ "<BEGIN>\n## `send_KeyEvent`", "For most ordinary keys, the \"keysym\" is the same as the\n corresponding ASCII value. Other common keys are shown in the\n KEY_ constants.\n<END>", "<BEGIN>\n## `send_PointerEvent`", "Indicates either pointer movement or a pointer button press or\n rel...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the modifiers_string API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the modifiers_string API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Return a string describing a set of modifiers. Example:: >>> modifiers_string(MOD_SHIFT | MOD_CTRL) 'MOD_SHIFT|MOD_CTRL' :Parameters: `modifiers` : int Bitwise combination of modifier constants. :rtype: str
"Return a string describing a set of modifiers.\n\n Example::\n\n >>> modifiers_string(MOD_SHIFT | MOD_CTRL)\n 'MOD_SHIFT|MOD_CTRL'\n\n :Parameters:\n `modifiers` : int\n Bitwise combination of modifier constants.\n\n :rtype: str"
126
false
openai/universe
modifiers_string
16,176
LDU_FT/globality-corp/microcosm-flask/update_and_reencrypt
LDU_FT
[ "<BEGIN>\n## `_serialize`", "Serialize value as a timestamp, either as a Unix timestamp (in float second) or a UTC isoformat string.\n<END>", "<BEGIN>\n## `_deserialize`", "Deserialize value as a Unix timestamp (in float seconds).", " Handle both numeric and UTC isoformat strings.\n<END>", "<BEGIN>...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update_and_reencrypt 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 update_and_reencrypt API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Support re-encryption by enforcing that every update triggers a new encryption call, even if the the original call does not update the encrypted field.
"Support re-encryption by enforcing that every update triggers a\n new encryption call, even if the the original call does not update\n the encrypted field."
309
false
globality-corp/microcosm-flask
update_and_reencrypt
16,177
LDU_FT/orbeckst/RecSQL/merge
LDU_FT
[ "<BEGIN>\n## `make_python_name`", "Returns a unicode string that can be used as a legal python identifier.", " :Arguments:\n *s*\n string\n *default*\n use *default* if *s* is ``None``\n *number_prefix*\n string to prepend if *s* starts with a number\n<END>", "<BEGIN>...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the merge API. 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 merge API. 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...
Merge another recarray with the same columns into this table. :Arguments: recarray numpy record array that describes the layout and initializes the table :Returns: n number of inserted rows :Raises: Raises an exception if ...
"Merge another recarray with the same columns into this table.\n\n :Arguments:\n recarray\n numpy record array that describes the layout and initializes the\n table\n\n :Returns:\n n number of inserted rows\n\n :Raises:\n Raises an e...
96
false
orbeckst/RecSQL
merge
16,178
LDU_FT/BD2KGenomics/toil-scripts/adam_convert
LDU_FT
[ "<BEGIN>\n## `kmer_dag`", "Optionally launches a Spark cluster and then runs ADAM to count k-mers on an\n input file.", " :param job: Toil job\n :param input_file: URL/path to input file to count k-mers on\n :param output_path: URL/path to save k-mer counts at\n :param kmer_length: The length of ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the adam_convert API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the adam_convert API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
Convert input sam/bam file and known SNPs file into ADAM format
"Convert input sam/bam file and known SNPs file into ADAM format"
278
false
BD2KGenomics/toil-scripts
adam_convert
16,179
LDU_FT/click-contrib/click-configfile/open
LDU_FT
[ "<BEGIN>\n## `find_packages_by_root_package`", "Better than excluding everything that is not needed,\n collect only what is needed.\n<END>", "<BEGIN>\n## `make_long_description`", "click_ is a framework to simplify writing composable commands for\n command-line tools. This package extends the click_ fun...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the open API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the open API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
Open the file pointed by this path and return a file object, as the built-in open() function does.
"Open the file pointed by this path and return a file object, as\n the built-in open() function does."
181
false
click-contrib/click-configfile
open
16,180
LDU_FT/Kensuke-Mitsuzawa/JapaneseTokenizers/__convert_string_type
LDU_FT
[ "<BEGIN>\n## `__check_mecab_dict_path`", "check path to dict of Mecab in system environment\n<END>", "<BEGIN>\n## `__feature_parser`", "Parse the POS feature output by Mecab\n :param uni_feature unicode:\n :return ( (pos1, pos2, pos3), word_stem ):\n<END>", "<BEGIN>\n## `__postprocess_analyzed...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the __convert_string_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 __convert_string_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. ...
* What you can do - it normalizes string types into str
"* What you can do\n - it normalizes string types into str"
58
false
Kensuke-Mitsuzawa/JapaneseTokenizers
__convert_string_type
16,181
LDU_FT/barrust/mediawiki/images
LDU_FT
[ "<BEGIN>\n## `timeout`", "Set request timeout in seconds (or fractions of a second)\n<END>", "<BEGIN>\n## `language`", "Set the language to use; attempts to change the API URL\n<END>", "<BEGIN>\n## `login`", "Login as specified user", " Args:\n username (str): The username to l...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the images API. 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 images API. 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 ...
list: Images on the page Note: Not settable
"list: Images on the page\n\n Note:\n Not settable"
107
false
barrust/mediawiki
images
16,182
LDU_FT/callowayproject/django-categories/get_indent
LDU_FT
[ "<BEGIN>\n## `_process_registry`", "Given a dictionary, and a registration function, process the registry\n<END>", "<BEGIN>\n## `register_model`", "Process for Django 1.7 +\n app: app name/label\n model_name: name of the model\n field_definitions: a string, tuple or list of field configur...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_indent API. 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_indent API. 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...
Look through the string and count the spaces
"Look through the string and count the spaces"
73
false
callowayproject/django-categories
get_indent
16,183
LDU_FT/spacetelescope/acstools/check_overscan
LDU_FT
[ "<BEGIN>\n## `extract_dark`", "Extract superdark data from ``DARKFILE`` or ``DRKCFILE``.", " Parameters\n ----------\n prihdr : obj\n FITS primary header HDU.", " scihdu : obj\n Extension HDU of the science image.\n This is only used to extract subarray data.", " Returns\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the check_overscan API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the check_overscan API. 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...
Check image for bias columns. Parameters ---------- xstart : int Starting column of the readout in detector coordinates. xsize : int Number of columns in the readout. total_prescan_pixels : int Total prescan pixels for a single amplifier on a detector. Default is 2...
"Check image for bias columns.\n\n Parameters\n ----------\n xstart : int\n Starting column of the readout in detector coordinates.\n\n xsize : int\n Number of columns in the readout.\n\n total_prescan_pixels : int\n Total prescan pixels for a single amplifier on a detector.\n ...
319
false
spacetelescope/acstools
check_overscan
16,184
LDU_FT/Fizzadar/pyinfra/run_ops
LDU_FT
[ "<BEGIN>\n## `agent`", "Run puppet agent", " + server: master server URL\n + port: puppet master port\n<END>", "<BEGIN>\n## `load_deploy_config`", "Loads any local config overrides in the deploy file.\n<END>", "<BEGIN>\n## `_parse_mode`", "Converts ls mode output (rwxrwxrwx) -> integer (755).\n<EN...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the run_ops API. 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 run_ops API. 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...
Runs all operations across all servers in a configurable manner. Args: state (``pyinfra.api.State`` obj): the deploy state to execute serial (boolean): whether to run operations host by host no_wait (boolean): whether to wait for all hosts between operations
"Runs all operations across all servers in a configurable manner.\n\n Args:\n state (``pyinfra.api.State`` obj): the deploy state to execute\n serial (boolean): whether to run operations host by host\n no_wait (boolean): whether to wait for all hosts between operations"
336
false
Fizzadar/pyinfra
run_ops
16,185
LDU_FT/CitrineInformatics/dftparse/_parse_eloss
LDU_FT
[ "<BEGIN>\n## `_parse_refraction`", "Parse Energy [eV] ref_ind_xx ref_ind_zz extinct_xx extinct_zz\n<END>", "<BEGIN>\n## `_is_kpoint`", "Is this line the start of a new k-point block\n<END>", "<BEGIN>\n## `_parse_kpoint`", "Parse the k-point and then continue to iterate over the band energies and...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _parse_eloss API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _parse_eloss API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
Parse Energy [eV] eloss_xx eloss_zz
"Parse Energy [eV] eloss_xx eloss_zz"
25
false
CitrineInformatics/dftparse
_parse_eloss
16,186
LDU_FT/lk-geimfari/mimesis/_hex_to_rgb
LDU_FT
[ "<BEGIN>\n## `content_type`", "Get a random HTTP content type.", " :return: Content type.", " :Example:\n Content-Type: application/json\n<END>", "<BEGIN>\n## `ip_v4`", "Generate a random IPv4 address.", " :param with_port: Add port to IP.\n :return: Random IPv4 ad...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _hex_to_rgb API. 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 _hex_to_rgb API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
Convert hex color to RGB format. :param color: Hex color. :return: RGB tuple.
"Convert hex color to RGB format.\n\n :param color: Hex color.\n :return: RGB tuple."
559
false
lk-geimfari/mimesis
_hex_to_rgb
16,187
LDU_FT/uw-it-aca/uw-restclients-sws/get_section_by_label
LDU_FT
[ "<BEGIN>\n## `get_term_by_year_and_quarter`", "Returns a uw_sws.models.Term object,\n for the passed year and quarter.\n<END>", "<BEGIN>\n## `get_current_term`", "Returns a uw_sws.models.Term object,\n for the current term.\n<END>", "<BEGIN>\n## `get_term_before`", "Returns a uw_sws.models.Term obje...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_section_by_label 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_section_by_label API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Returns a uw_sws.models.Section object for the passed section label.
"Returns a uw_sws.models.Section object for\n the passed section label."
74
false
uw-it-aca/uw-restclients-sws
get_section_by_label
16,188
LDU_FT/watson-developer-cloud/python-sdk/create_classifier
LDU_FT
[ "<BEGIN>\n## `synthesize_using_websocket`", "Synthesizes text to spoken audio using web sockets. It supports the use of\n the SSML <mark> element to identify the location of user-specified markers in the audio.\n It can also return timing information for all strings of the input text.\n Note:...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_classifier API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_classifier API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Create a classifier. Train a new multi-faceted classifier on the uploaded image data. Create your custom classifier with positive or negative examples. Include at least two sets of examples, either two positive example files or one positive and one negative file. You can upload a maximu...
"Create a classifier.\n\n Train a new multi-faceted classifier on the uploaded image data. Create your\n custom classifier with positive or negative examples. Include at least two sets of\n examples, either two positive example files or one positive and one negative file.\n You can upload a ...
1,254
true
watson-developer-cloud/python-sdk
create_classifier
16,189
LDU_FT/znerol/txexiftool/dataReceived
LDU_FT
[ "<BEGIN>\n## `dataReceived`", "Parses chunks of bytes into responses.", " Whenever a complete response is received, this method extracts its\n payload and calls L{responseReceived} to process it.", " @param data: A chunk of data representing a (possibly partial) response\n @type da...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the dataReceived API. 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 dataReceived API. 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...
Parses chunks of bytes into responses. Whenever a complete response is received, this method extracts its payload and calls L{responseReceived} to process it. @param data: A chunk of data representing a (possibly partial) response @type data: C{bytes}
"Parses chunks of bytes into responses.\n\n Whenever a complete response is received, this method extracts its\n payload and calls L{responseReceived} to process it.\n\n @param data: A chunk of data representing a (possibly partial) response\n @type data: C{bytes}"
19
false
znerol/txexiftool
dataReceived
16,190
LDU_FT/usrlocalben/pydux/combine_reducers
LDU_FT
[ "<BEGIN>\n## `log_middleware`", "log all actions to console as they are dispatched\n<END>", "<BEGIN>\n## `extend`", "shallow dictionary merge", " Args:\n a: dict to extend\n b: dict to apply to a", " Returns:\n new instance of the same type as _a_, with _a_ and _b_ merged.\n<END...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the combine_reducers API. 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 combine_reducers API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
composition tool for creating reducer trees. Args: reducers: dict with state keys and reducer functions that are responsible for each key Returns: a new, combined reducer function
"composition tool for creating reducer trees.\n \n Args:\n reducers: dict with state keys and reducer functions\n that are responsible for each key\n\n Returns:\n a new, combined reducer function"
25
false
usrlocalben/pydux
combine_reducers
16,191
LDU_FT/ungarj/s2reader/_pvi_path
LDU_FT
[ "<BEGIN>\n## `_pvi_path`", "Determine the PreView Image (PVI) path inside the SAFE pkg.\n<END>", "<BEGIN>\n## `_granule_identifier_to_xml_name`", "Very ugly way to convert the granule identifier.", " e.g.\n From\n Granule Identifier:\n S2A_OPER_MSI_L1C_TL_SGS__20150817T131818_A000792_T28QBG_N01....
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _pvi_path API. 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 _pvi_path API. 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...
Determine the PreView Image (PVI) path inside the SAFE pkg.
"Determine the PreView Image (PVI) path inside the SAFE pkg."
18
false
ungarj/s2reader
_pvi_path
16,192
LDU_FT/BreakingBytes/simkit/f_ac_power
LDU_FT
[ "<BEGIN>\n## `register`", "Register outputs and metadata.", " * ``initial_value`` - used in dynamic calculations\n * ``size`` - number of elements per timestep\n * ``uncertainty`` - in percent of nominal value\n * ``variance`` - dictionary of covariances, diagonal is square of\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the f_ac_power API. 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 f_ac_power API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
Calculate AC power :param inverter: :param v_mp: :param p_mp: :return: AC power [W]
"Calculate AC power\n\n :param inverter:\n :param v_mp:\n :param p_mp:\n :return: AC power [W]"
227
false
BreakingBytes/simkit
f_ac_power
16,193
LDU_FT/jut-io/jut-python-tools/create_deployment
LDU_FT
[ "<BEGIN>\n## `_print_jobs`", "internal method to print the provided jobs array in a nice tabular\n format\n<END>", "<BEGIN>\n## `debug`", "debug output goes to stderr so you can still redirect the stdout to a file\n or another program. Controlled by the JUT_DEBUG environment variable being\n present\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_deployment API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_deployment API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
create a deployment with the specified name
"create a deployment with the specified name"
72
false
jut-io/jut-python-tools
create_deployment
16,194
LDU_FT/skojaku/core-periphery-detection/detect
LDU_FT
[ "<BEGIN>\n## `detect`", "Detect a single core-periphery pair.", "\t\tParameters\n\t\t----------\n\t\tG : NetworkX graph object", "\t\tExamples\n\t\t--------\n\t\t>>> import networkx as nx\n\t\t>>> import cpalgorithm as cpa\n\t\t>>> G = nx.karate_club_graph() # load the karate club network. \n\t\t>>> rb = cp....
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the detect API. 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 detect API. 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 ...
Detect a single core-periphery pair. Parameters ---------- G : NetworkX graph object Examples -------- >>> import networkx as nx >>> import cpalgorithm as cpa >>> G = nx.karate_club_graph() # load the karate club network. >>> rb = cp.Rombach(algorithm='ls') # label switching algorithm >>> rb....
"Detect a single core-periphery pair.\n\t\n\t\tParameters\n\t\t----------\n\t\tG : NetworkX graph object\n\t\t\n\t\tExamples\n\t\t--------\n\t\t>>> import networkx as nx\n\t\t>>> import cpalgorithm as cpa\n\t\t>>> G = nx.karate_club_graph() # load the karate club network. \n\t\t>>> rb = cp.Rombach(algorithm='ls') # la...
24
false
skojaku/core-periphery-detection
detect
16,195
LDU_FT/pytroll/satpy/_find_reader_dataset
LDU_FT
[ "<BEGIN>\n## `_get_coarse_dataset`", "Get the coarse dataset refered to by `key` from the XML data.\n<END>", "<BEGIN>\n## `get_dataset`", "Get output data and metadata of specified dataset.\n<END>", "<BEGIN>\n## `find_coefficient_index`", "Return index in to coefficient arrays for this band's wavelength."...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _find_reader_dataset API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _find_reader_dataset API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Attempt to find a `DatasetID` in the available readers. Args: dataset_key (str, float, DatasetID): Dataset name, wavelength, or a combination of `DatasetID` parameters to use in searching for the dataset from the available readers. **dfilt...
"Attempt to find a `DatasetID` in the available readers.\n\n Args:\n dataset_key (str, float, DatasetID):\n Dataset name, wavelength, or a combination of `DatasetID`\n parameters to use in searching for the dataset from the\n available readers.\n ...
924
false
pytroll/satpy
_find_reader_dataset
16,196
LDU_FT/sernst/cauldron/write_to_console
LDU_FT
[ "<BEGIN>\n## `set_executing`", "Toggle whether or not the current thread is executing a step file. This\n will only apply when the current thread is a CauldronThread. This function\n has no effect when run on a Main thread.", " :param on:\n Whether or not the thread should be annotated as execut...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the write_to_console API. 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 write_to_console API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Writes the specified message to the console stdout without including it in the notebook display.
"Writes the specified message to the console stdout without including\n it in the notebook display."
534
false
sernst/cauldron
write_to_console
16,197
LDU_FT/geographika/mappyfile/validate
LDU_FT
[ "<BEGIN>\n## `standardise_quotes`", "Change the quotes used to wrap a value to the pprint default\n E.g. \"val\" to 'val' or 'val' to \"val\"\n<END>", "<BEGIN>\n## `process_key_dict`", "Process key value dicts e.g. METADATA \"key\" \"value\"\n<END>", "<BEGIN>\n## `process_repeated_list`", "Process ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the validate API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the validate API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
verbose - also return the jsonschema error details
"verbose - also return the jsonschema error details"
184
false
geographika/mappyfile
validate
16,198
LDU_FT/langloisjp/tstore/list
LDU_FT
[ "<BEGIN>\n## `get`", "Return record of given type with key `rid`", " >>> s = teststore()\n >>> s.create('tstoretest', {'id': '1', 'name': 'Toto'})\n >>> r = s.get('tstoretest', '1')\n >>> r['name']\n 'Toto'\n >>> s.get('badcls', '1')\n Traceback (most recent call...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the list API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the list API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
Return list of matching records. criteria is a dict of {field: value} >>> s = teststore() >>> s.list('tstoretest') []
"Return list of matching records. criteria is a dict of {field: value}\n\n >>> s = teststore()\n >>> s.list('tstoretest')\n []"
61
false
langloisjp/tstore
list
16,199
LDU_FT/explosion/thinc/sink_return
LDU_FT
[ "<BEGIN>\n## `compounding`", "Yield an infinite series of compounding values. Each time the\n generator is called, a value is produced by multiplying the previous\n value by the compound rate.", " EXAMPLE:\n >>> sizes = compounding(1., 10., 1.5)\n >>> assert next(sizes) == 1.\n >>> asser...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the sink_return API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the sink_return API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
Transform a function `func` that returns tuples into a function that returns single values. Call a function `sink` on the unused values.
"Transform a function `func` that returns tuples into a function that returns\n single values. Call a function `sink` on the unused values."
75
false
explosion/thinc
sink_return
16,200
LDU_FT/lipoja/URLExtract/set_stop_chars
LDU_FT
[ "<BEGIN>\n## `_get_default_cache_dir`", "Returns default cache directory (data directory)", " :raises: CacheFileError when default cached file does not is exist\n :return: path to default cache directory\n :rtype: str\n<END>", "<BEGIN>\n## `_get_default_cache_file_path`", "Returns defau...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_stop_chars API. 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_stop_chars API. 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...
Set stop characters used when determining end of URL. .. deprecated:: 0.7 Use :func:`set_stop_chars_left` or :func:`set_stop_chars_right` instead. :param list stop_chars: list of characters
"Set stop characters used when determining end of URL.\n\n .. deprecated:: 0.7\n Use :func:`set_stop_chars_left` or :func:`set_stop_chars_right`\n instead.\n\n :param list stop_chars: list of characters"
71
false
lipoja/URLExtract
set_stop_chars
16,201
LDU_FT/Jaymon/prom/make_dict
LDU_FT
[ "<BEGIN>\n## `fields`", "return all the fields and their raw values for this Orm instance. This\n property returns a dict with the field names and their current values", " if you want to control the values for outputting to an api, use .jsonable()\n<END>", "<BEGIN>\n## `create`", "create an in...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the make_dict API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the make_dict API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
lot's of methods take a dict or kwargs, this combines those Basically, we do a lot of def method(fields, **kwargs) and we want to merge those into one super dict with kwargs taking precedence, this does that fields -- dict -- a passed in dict fields_kwargs -- dict -- usually a **kwargs dict from anoth...
"lot's of methods take a dict or kwargs, this combines those\n\n Basically, we do a lot of def method(fields, **kwargs) and we want to merge\n those into one super dict with kwargs taking precedence, this does that\n\n fields -- dict -- a passed in dict\n fields_kwargs -- dict -- usually a **kwargs dict fro...
241
false
Jaymon/prom
make_dict
16,202
LDU_FT/MacHu-GWU/uszipcode-project/sql_to_csv
LDU_FT
[ "<BEGIN>\n## `from_query`", "Execute an ORM style query, and return the result in\n :class:`prettytable.PrettyTable`.", " :param query: an ``sqlalchemy.orm.Query`` object.\n :param engine: an ``sqlalchemy.engine.base.Engine`` object.\n :param limit: int, limit rows to return.", " :return: a ``p...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the sql_to_csv API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the sql_to_csv API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
Export sql result to csv file. :param sql: :class:`sqlalchemy.sql.selectable.Select` instance. :param engine: :class:`sqlalchemy.engine.base.Engine`. :param filepath: file path. :param chunksize: number of rows write to csv each time. :param overwrite: bool, if True, avoid to overite existing file....
"Export sql result to csv file.\n\n :param sql: :class:`sqlalchemy.sql.selectable.Select` instance.\n :param engine: :class:`sqlalchemy.engine.base.Engine`.\n :param filepath: file path.\n :param chunksize: number of rows write to csv each time.\n :param overwrite: bool, if True, avoid to overite existin...
208
false
MacHu-GWU/uszipcode-project
sql_to_csv
16,203
LDU_FT/matthewdeanmartin/jiggle_version/is_canonical
LDU_FT
[ "<BEGIN>\n## `require_python`", "Require at least a minimum Python version.", " The version number is expressed in terms of `sys.hexversion`. E.g. to\n require a minimum of Python 2.6, use::", " >>> require_python(0x206000f0)", " :param minimum: Minimum Python version supported.\n :type mini...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_canonical API. 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 is_canonical API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
Return whether or not the version string is canonical according to Pep 440
"Return whether or not the version string is canonical according to Pep 440"
124
false
matthewdeanmartin/jiggle_version
is_canonical
16,204
LDU_FT/graphql-python/graphql-core-next/find_values_added_to_enums
LDU_FT
[ "<BEGIN>\n## `uni_char_code`", "Convert unicode characters to integers.", " Converts four hexadecimal chars to the integer that the string represents.\n For example, uni_char_code('0','0','0','f') will return 15,\n and uni_char_code('0','0','f','f') returns 255.", " Returns a negative number on er...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_values_added_to_enums 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 find_values_added_to_enums API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclus...
Find values added to enums. Given two schemas, returns a list containing descriptions of any dangerous changes in the new_schema related to adding values to an enum type.
"Find values added to enums.\n\n Given two schemas, returns a list containing descriptions of any dangerous changes\n in the new_schema related to adding values to an enum type."
470
false
graphql-python/graphql-core-next
find_values_added_to_enums
16,205
LDU_FT/tdegeus/GooseMPL/subplots
LDU_FT
[ "<BEGIN>\n## `find_latex_font_serif`", "r'''\nFind an available font to mimic LaTeX, and return its name.\n<END>", "<BEGIN>\n## `copy_style`", "r'''\nWrite all goose-styles to the relevant matplotlib configuration directory.\n<END>", "<BEGIN>\n## `set_decade_lims`", "r'''\nSet limits the the floor/ceil va...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the subplots API. 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 subplots API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
r''' Run ``matplotlib.pyplot.subplots`` with ``figsize`` set to the correct multiple of the default. :additional options: **scale, scale_x, scale_y** (``<float>``) Scale the figure-size (along one of the dimensions).
"r'''\nRun ``matplotlib.pyplot.subplots`` with ``figsize`` set to the correct multiple of the default.\n\n:additional options:\n\n **scale, scale_x, scale_y** (``<float>``)\n Scale the figure-size (along one of the dimensions)."
159
false
tdegeus/GooseMPL
subplots
16,206
LDU_FT/QunarOPS/qg.core/formatException
LDU_FT
[ "<BEGIN>\n## `import_class`", "Returns a class from a string including module and class.\n<END>", "<BEGIN>\n## `import_object_ns`", "Tries to import object from default namespace.", " Imports a class and return an instance of it, first by trying\n to find the class in a default namespace, then failing...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the formatException API. 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 formatException API. 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...
Format exception output with CONF.logging_exception_prefix.
"Format exception output with CONF.logging_exception_prefix."
74
false
QunarOPS/qg.core
formatException
16,207
LDU_FT/jsommers/switchyard/from_bytes
LDU_FT
[ "<BEGIN>\n## `router_main`", "Main method for router; we stay in a loop in this method, receiving\n packets until the end of time.\n<END>", "<BEGIN>\n## `from_bytes`", "Takes a byte string as a parameter and returns a list of\n IPOption objects.\n<END>", "<BEGIN>\n## `to_bytes`", "Takes a li...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the from_bytes API. 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 from_bytes API. 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 an Ethernet object reconstructed from raw bytes, or an Exception if we can't resurrect the packet.
"Return an Ethernet object reconstructed from raw bytes, or an\n Exception if we can't resurrect the packet."
192
false
jsommers/switchyard
from_bytes
16,208
LDU_FT/NicolasLM/spinach/schedule_at
LDU_FT
[ "<BEGIN>\n## `_reset`", "Initialization that must happen before the arbiter is (re)started\n<END>", "<BEGIN>\n## `attach_tasks`", "Attach a set of tasks.", " A task cannot be scheduled or executed before it is attached to an\n Engine.", " >>> tasks = Tasks()\n >>> spin.attach_t...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the schedule_at API. 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 schedule_at API. 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...
Schedule a job to be executed in the future. :arg task: the task or its name to execute in the background :arg at: Date at which the job should start. It is advised to pass a timezone aware datetime to lift any ambiguity. However if a timezone naive datetime if given, ...
"Schedule a job to be executed in the future.\n\n :arg task: the task or its name to execute in the background\n :arg at: Date at which the job should start. It is advised to pass a\n timezone aware datetime to lift any ambiguity. However if a\n timezone naive datetime if g...
93
false
NicolasLM/spinach
schedule_at
16,209
LDU_FT/praw-dev/prawtools/top_comments
LDU_FT
[ "<BEGIN>\n## `main`", "Provide the entry point to the subreddit_stats command.\n<END>", "<BEGIN>\n## `basic_stats`", "Return a markdown representation of simple statistics.\n<END>", "<BEGIN>\n## `fetch_recent_submissions`", "Fetch recent submissions in subreddit with boundaries.", " Does not incl...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the top_comments API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the top_comments API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
Return a markdown representation of the top comments.
"Return a markdown representation of the top comments."
48
false
praw-dev/prawtools
top_comments
16,210
LDU_FT/google/budou/preprocess
LDU_FT
[ "<BEGIN>\n## `get_parser`", "Gets a parser.", " Args:\n segmenter (str): Segmenter to use.\n options (:obj:`dict`, optional): Optional settings.", " Returns:\n Parser (:obj:`budou.parser.Parser`)", " Raises:\n ValueError: If unsupported segmenter is specified.\n<END>", "<BEGIN>\n## `parse_a...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the preprocess API. 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 preprocess API. 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...
Removes unnecessary break lines and white spaces. Args: source (str): Input sentence. Returns: Preprocessed sentence. (str)
"Removes unnecessary break lines and white spaces.\n\n Args:\n source (str): Input sentence.\n\n Returns:\n Preprocessed sentence. (str)"
89
false
google/budou
preprocess
16,211
LDU_FT/eonpatapon/contrail-api-cli/from_dict
LDU_FT
[ "<BEGIN>\n## `expand_paths`", "Return an unique list of resources or collections from a list of paths.\n Supports fq_name and wilcards resolution.", " >>> expand_paths(['virtual-network',\n 'floating-ip/2a0a54b4-a420-485e-8372-42f70a627ec9'])\n [Collection('virtual-network'),\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the from_dict API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the from_dict API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
Populate the resource from a python dict :param recursive: level of recursion for fetching resources :type recursive: int
"Populate the resource from a python dict\n\n :param recursive: level of recursion for fetching resources\n :type recursive: int"
138
false
eonpatapon/contrail-api-cli
from_dict
16,212
LDU_FT/WimpyAnalytics/pynt-of-django/clean
LDU_FT
[ "<BEGIN>\n## `setup_pod`", "This must be called by the project's build.py for pyntofdjango to function.", " You can specify it directly with the optional manage_dir kwarg.", " :param build_file_path: E.g. os.path.abspath(__file__)\n :param manage_dir: Optional, Searched for if None.\n :param local...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the clean API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the clean API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
Wipes compiled and cached python files. To simulate: pynt clean[dry_run=y]
"Wipes compiled and cached python files. To simulate: pynt clean[dry_run=y]"
16
false
WimpyAnalytics/pynt-of-django
clean
16,213
LDU_FT/eallik/spinoff/waitForDeferred
LDU_FT
[ "<BEGIN>\n## `deferToGreenletPool`", "Call function using a greenlet from the given pool and return the result as a Deferred\n<END>", "<BEGIN>\n## `deferToGreenlet`", "Call function using a greenlet and return the result as a Deferred\n<END>", "<BEGIN>\n## `callMultipleInGreenlet`", "Call a list of functi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the waitForDeferred API. 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 waitForDeferred API. 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...
Block current greenlet for Deferred, waiting until result is not a Deferred or a failure is encountered
"Block current greenlet for Deferred, waiting until result is not a Deferred or a failure is encountered"
60
false
eallik/spinoff
waitForDeferred
16,214
LDU_FT/jamesturk/django-honeypot/check_honeypot
LDU_FT
[ "<BEGIN>\n## `honeypot_equals`", "Default verifier used if HONEYPOT_VERIFIER is not specified.\n Ensures val == HONEYPOT_VALUE or HONEYPOT_VALUE() if it's a callable.\n<END>", "<BEGIN>\n## `verify_honeypot_value`", "Verify that request.POST[field_name] is a valid honeypot.", " Ensures that the...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the check_honeypot API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the check_honeypot API. 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...
Check request.POST for valid honeypot field. Takes an optional field_name that defaults to HONEYPOT_FIELD_NAME if not specified.
"Check request.POST for valid honeypot field.\n\n Takes an optional field_name that defaults to HONEYPOT_FIELD_NAME if\n not specified."
12
false
jamesturk/django-honeypot
check_honeypot
16,215
LDU_FT/kivy/python-for-android/generate
LDU_FT
[ "<BEGIN>\n## `dist_dir`", "The dist dir at which to place the finished distribution.\n<END>", "<BEGIN>\n## `check_recipe_choices`", "Checks what recipes are being built to see which of the alternative\n and optional dependencies are being used,\n and returns a list of these.\n<END>", "<BEGIN>\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the generate API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the generate API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
For very large templates it can be useful to not render the whole template at once but evaluate each statement after another and yield piece for piece. This method basically does exactly that and returns a generator that yields one item after another as unicode strings. It accepts the ...
"For very large templates it can be useful to not render the whole\n template at once but evaluate each statement after another and yield\n piece for piece. This method basically does exactly that and returns\n a generator that yields one item after another as unicode strings.\n\n It accept...
404
false
kivy/python-for-android
generate
16,216
LDU_FT/NICTA/revrand/loglike
LDU_FT
[ "<BEGIN>\n## `fit`", "r\"\"\"\n Learn the parameters of a Bayesian generalized linear model (GLM).", " Parameters\n ----------\n X : ndarray\n (N, d) array input dataset (N samples, d dimensions).\n y : ndarray\n (N,) array targets (N samples)\n li...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the loglike API. 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 loglike API. 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...
r""" Bernoulli log likelihood. Parameters ---------- y: ndarray array of 0, 1 valued integers of targets f: ndarray latent function from the GLM prior (:math:`\mathbf{f} = \boldsymbol\Phi \mathbf{w}`) Returns ------- l...
"r\"\"\"\n Bernoulli log likelihood.\n\n Parameters\n ----------\n y: ndarray\n array of 0, 1 valued integers of targets\n f: ndarray\n latent function from the GLM prior (:math:`\\mathbf{f} =\n \\boldsymbol\\Phi \\mathbf{w}`)\n\n Returns\n ...
535
false
NICTA/revrand
loglike
16,217
LDU_FT/taborlab/FlowCal/get_transform_fxn
LDU_FT
[ "<BEGIN>\n## `clustering_gmm`", "Find clusters in an array using a Gaussian Mixture Model.", " Before clustering, `data` can be automatically rescaled as specified by\n the `scale` argument.", " Parameters\n ----------\n data : FCSData or array_like\n Data to cluster.\n n_clusters : i...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_transform_fxn API. 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_transform_fxn API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Get a transformation function to convert flow cytometry data to MEF. Parameters ---------- data_beads : FCSData object Flow cytometry data describing calibration beads. mef_values : sequence of sequences Known MEF values for the calibration bead subpopulations, for each channel ...
"Get a transformation function to convert flow cytometry data to MEF.\n\n Parameters\n ----------\n data_beads : FCSData object\n Flow cytometry data describing calibration beads.\n mef_values : sequence of sequences\n Known MEF values for the calibration bead subpopulations, for each\n ...
418
false
taborlab/FlowCal
get_transform_fxn
16,218
LDU_FT/roboogle/gtkmvc3/adapt
LDU_FT
[ "<BEGIN>\n## `__create_log_props`", "Creates all the logical property.", " The list of names of properties to be created is passed\n with frozenset log_props. The getter/setter information is\n taken from _{get,set}dict.", " This method resolves also wildcards in names, and perform...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the adapt API. 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 adapt API. 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...
There are five ways to call this: .. method:: adapt() :noindex: Take properties from the model for which ``adapt`` has not yet been called, match them to the view by name, and create adapters fitting for the respective widget type. That information comes...
"There are five ways to call this:\n\n .. method:: adapt()\n :noindex:\n\n Take properties from the model for which ``adapt`` has not yet been\n called, match them to the view by name, and create adapters fitting\n for the respective widget type.\n\n That informa...
300
false
roboogle/gtkmvc3
adapt
16,219
LDU_FT/nion-software/nionswift-instrumentation-kit/handle_play_pause_clicked
LDU_FT
[ "<BEGIN>\n## `initialize_state`", "Call this to initialize the state of the UI after everything has been connected.\n<END>", "<BEGIN>\n## `handle_play_clicked`", "Call this when the user clicks the play/pause button.\n<END>", "<BEGIN>\n## `set_probe_position`", "Set the probe position, in normalized coord...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the handle_play_pause_clicked 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 handle_play_pause_clicked API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi...
Call this when the user clicks the play/pause button.
"Call this when the user clicks the play/pause button."
37
false
nion-software/nionswift-instrumentation-kit
handle_play_pause_clicked
16,220
LDU_FT/lablup/backend.ai-client-py/keypair
LDU_FT
[ "<BEGIN>\n## `generate_signature`", "Generates the API request signature from the given parameters.\n<END>", "<BEGIN>\n## `list_with_limit`", "Fetches the list of agents with the given status with limit and offset for\n pagination.", " :param limit: number of agents to get\n :param offs...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the keypair API. 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 keypair API. 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...
Show the server-side information of the currently configured access key.
"Show the server-side information of the currently configured access key."
207
false
lablup/backend.ai-client-py
keypair
16,221
LDU_FT/oauthlib/oauthlib/check_access_token
LDU_FT
[ "<BEGIN>\n## `signature_base_string`", "**Construct the signature base string.**\n Per `section 3.4.1.1`_ of the spec.", " For example, the HTTP request::", " POST /request?b5=%3D%253D&a3=a&c%40=&a2=r%20b HTTP/1.1\n Host: example.com\n Content-Type: application/x-www-form-urlencoded...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the check_access_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. Th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the check_access_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. Th...
Checks that the token contains only safe characters and is no shorter than lower and no longer than upper.
"Checks that the token contains only safe characters\n and is no shorter than lower and no longer than upper."
651
false
oauthlib/oauthlib
check_access_token
16,222
LDU_FT/bmcfee/pumpp/decode_events
LDU_FT
[ "<BEGIN>\n## `sample`", "Sample a patch from the data object", " Parameters\n ----------\n data : dict\n A data dict as produced by pumpp.Pump.transform", " interval : slice\n The time interval to sample", " Returns\n -------\n data_slic...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the decode_events API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the decode_events API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
Decode labeled events into (time, value) pairs Real-valued inputs are thresholded at 0.5. Optionally, viterbi decoding can be applied to each event class. Parameters ---------- encoded : np.ndarray, shape=(n_frames, m) Frame-level annotation encodings as produced b...
"Decode labeled events into (time, value) pairs\n\n Real-valued inputs are thresholded at 0.5.\n\n Optionally, viterbi decoding can be applied to each event class.\n\n Parameters\n ----------\n encoded : np.ndarray, shape=(n_frames, m)\n Frame-level annotation encodings as ...
291
false
bmcfee/pumpp
decode_events
16,223
LDU_FT/mrstephenneal/dirutility/set_permissions_mode_from_octal
LDU_FT
[ "<BEGIN>\n## `connect`", "Connect and login to an FTP server and return ftplib.FTP object.\n<END>", "<BEGIN>\n## `get`", "Download a remote file on the fto sever to a local directory.", " :param remote: File path of remote source file\n :param local: Directory of local destination directory\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_permissions_mode_from_octal API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its co...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_permissions_mode_from_octal API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its co...
Set permissions for a file or directory. :param file_path: Path to a file or directory :param code: Permission code in absolute notation (octal) :return:
"Set permissions for a file or directory.\n\n :param file_path: Path to a file or directory\n :param code: Permission code in absolute notation (octal)\n :return:"
92
false
mrstephenneal/dirutility
set_permissions_mode_from_octal
16,224
LDU_FT/thieman/dagobah/add_job_from_json
LDU_FT
[ "<BEGIN>\n## `run`", "Continually monitors Jobs of the parent Dagobah.\n<END>", "<BEGIN>\n## `set_backend`", "Manually set backend after construction.\n<END>", "<BEGIN>\n## `from_backend`", "Reconstruct this Dagobah instance from the backend.\n<END>", "<BEGIN>\n## `_construct_from_json`", "Construct t...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_job_from_json API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_job_from_json API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Construct a new Job from an imported JSON spec.
"Construct a new Job from an imported JSON spec."
120
false
thieman/dagobah
add_job_from_json
16,225
LDU_FT/closeio/tasktiger/set_queue_system_lock
LDU_FT
[ "<BEGIN>\n## `set_system_lock`", "Set system lock for the semaphore.", " Sets a system lock that will expire in timeout seconds. This\n overrides all other locks. Existing locks cannot be renewed\n and no new locks will be permitted until the system lock\n expires.", " Argum...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_queue_system_lock 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 set_queue_system_lock API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Set system lock on a queue. Max workers for this queue must be used for this to have any effect. This will keep workers from processing tasks for this queue until the timeout has expired. Active tasks will continue processing their current task. timeout is number of seconds to...
"Set system lock on a queue.\n\n Max workers for this queue must be used for this to have any effect.\n\n This will keep workers from processing tasks for this queue until\n the timeout has expired. Active tasks will continue processing their\n current task.\n\n timeout is number of s...
124
false
closeio/tasktiger
set_queue_system_lock
16,226
LDU_FT/CitrineInformatics/pif-dft/archive_to_pif
LDU_FT
[ "<BEGIN>\n## `generate_from_directory`", "Create a parser by defining which input files it will read from.", " Input:\n directory - str, directory to read from\n files - str, list of files from which to search.\n<END>", "<BEGIN>\n## `get_composition`", "Get composition of output...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the archive_to_pif API. 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 archive_to_pif API. 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...
Given a archive file that contains output from a DFT calculation, parse the data and return a PIF object. Input: filename - String, Path to the file to process. verbose - int, How much status messages to print Output: pif - ChemicalSystem, Results and settings of the DFT ca...
"Given a archive file that contains output from a DFT calculation, parse the data and return a PIF object.\n\n Input:\n filename - String, Path to the file to process.\n verbose - int, How much status messages to print\n\n Output:\n pif - ChemicalSystem, Results and settings of\n t...
55
false
CitrineInformatics/pif-dft
archive_to_pif
16,227
LDU_FT/geoadmin/lib-gatilegrid/totalNumberOfTiles
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 totalNumberOfTiles 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 totalNumberOfTiles API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
Return the total number of tiles for this instance extent
"Return the total number of tiles for this instance extent"
28
false
geoadmin/lib-gatilegrid
totalNumberOfTiles
16,228
LDU_FT/PyCQA/prospector/filter_messages
LDU_FT
[ "<BEGIN>\n## `get_noqa_suppressions`", "Finds all pep8/flake8 suppression messages", " :param file_contents:\n A list of file lines\n :return:\n A pair - the first is whether to ignore the whole file, the\n second is a set of (0-indexed) line numbers to ignore.\n<END>", "<BEGIN>\n##...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the filter_messages API. 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 filter_messages API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
This method post-processes all messages output by all tools, in order to filter out any based on the overall output. The main aim currently is to use information about messages suppressed by pylint due to inline comments, and use that to suppress messages from other tools representing the same problem....
"This method post-processes all messages output by all tools, in order to filter\n out any based on the overall output.\n\n The main aim currently is to use information about messages suppressed by\n pylint due to inline comments, and use that to suppress messages from other\n tools representing the same pr...
23
false
PyCQA/prospector
filter_messages
16,229
LDU_FT/mjirik/imtools/getVersionString
LDU_FT
[ "<BEGIN>\n## `get_superpxl_intensities`", "Calculates mean intensities of pixels in superpixels\n inputs:\n im ... grayscale image, ndarray [MxN]\n suppxls ... image with suppxls labels, ndarray -same shape as im\n outputs:\n suppxl_intens ... vector with suppxls mean intensities\n<END>...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the getVersionString API. 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 getVersionString API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Function return string with version information. It is performed by use one of three procedures: git describe, file in .git dir and file __VERSION__.
"Function return string with version information.\n It is performed by use one of three procedures: git describe,\n file in .git dir and file __VERSION__."
75
false
mjirik/imtools
getVersionString
16,230
LDU_FT/Pylons/plaster_pastedeploy/get_settings
LDU_FT
[ "<BEGIN>\n## `get_settings`", "Gets a named section from the configuration source.", " :param section: a :class:`str` representing the section you want to\n retrieve from the configuration source. If ``None`` this will\n fallback to the :attr:`plaster.PlasterURL.fragment`.\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_settings API. 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_settings API. 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...
Gets a named section from the configuration source. :param section: a :class:`str` representing the section you want to retrieve from the configuration source. If ``None`` this will fallback to the :attr:`plaster.PlasterURL.fragment`. :param defaults: a :class:`dict` that will g...
"Gets a named section from the configuration source.\n\n :param section: a :class:`str` representing the section you want to\n retrieve from the configuration source. If ``None`` this will\n fallback to the :attr:`plaster.PlasterURL.fragment`.\n :param defaults: a :class:`dict` that ...
24
false
Pylons/plaster_pastedeploy
get_settings
16,231
LDU_FT/azogue/dataweb/get_data_en_intervalo
LDU_FT
[ "<BEGIN>\n## `request_data_url`", "Realiza sucesivos intentos de request a una url dada, intentándolo hasta que recibe un status 200 (OK)\n y el texto recibido es mayor que MIN_LEN_REQUEST (=10).\n Resulta útil cuando se están realizando múltiples requests al mismo servidor (por velocidad), y no siempre\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_data_en_intervalo 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_data_en_intervalo API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Obtiene los datos en bruto de la red realizando múltiples requests al tiempo Procesa los datos en bruto obtenidos de la red convirtiendo a Pandas DataFrame
"Obtiene los datos en bruto de la red realizando múltiples requests al tiempo\n Procesa los datos en bruto obtenidos de la red convirtiendo a Pandas DataFrame"
26
false
azogue/dataweb
get_data_en_intervalo
16,232
LDU_FT/wylee/runcommands/complete
LDU_FT
[ "<BEGIN>\n## `confirm`", "Prompt for confirmation.", " Confirmation can be aborted by typing in a no value instead of one\n of the yes values or with Ctrl-C.", " Args:\n prompt (str): Prompt to present user [\"Really?\"]\n color (string|Color|bool) Color to print prompt string; can be\n...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the complete API. 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 complete API. 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...
Find completions for current command. This assumes that we'll handle all completion logic here and that the shell's automatic file name completion is disabled. Args: command_line: Command line current_token: Token at cursor position: Current cursor position shell: Name of s...
"Find completions for current command.\n\n This assumes that we'll handle all completion logic here and that\n the shell's automatic file name completion is disabled.\n\n Args:\n command_line: Command line\n current_token: Token at cursor\n position: Current cursor position\n shell:...
111
false
wylee/runcommands
complete
16,233
LDU_FT/TC01/python-xkcd/getRandomWhatIf
LDU_FT
[ "<BEGIN>\n## `getRandomComic`", "Produces a :class:`Comic` object for a random xkcd comic. Uses the\n\t\tPython standard library random number generator in order to select\n\t\ta comic.", "\t\tReturns the resulting comic object.\n<END>", "<BEGIN>\n## `getComic`", "Produces a :class:`Comic` object with index...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the getRandomWhatIf API. 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 getRandomWhatIf API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
Returns a randomly generated :class:`WhatIf` object, using the Python standard library random number generator to select the object. The object is returned from the dictionary produced by :func:`getWhatIfArchive`; like the other What If routines, this function is called first in order to get a list of all previou...
"Returns a randomly generated :class:`WhatIf` object, using the Python standard library\n\t\trandom number generator to select the object. The object is returned\n\t\tfrom the dictionary produced by :func:`getWhatIfArchive`; like the other What If\n\t\troutines, this function is called first in order to get a list of a...
31
false
TC01/python-xkcd
getRandomWhatIf
16,234
LDU_FT/Atomistica/atomistica/get_shear_distance
LDU_FT
[ "<BEGIN>\n## `read`", "Convenience function: Detect file extension and read via Atomistica or ASE.\n If reading a NetCDF files, frame numbers can be appended via '@'.\n e.g., a = read('traj.nc@5')\n<END>", "<BEGIN>\n## `write`", "Convenience function: Detect file extension and write via Atomistica or AS...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_shear_distance API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_shear_distance API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
Returns the distance a volume has moved during simple shear. Considers either Lees-Edwards boundary conditions or sheared cells.
"Returns the distance a volume has moved during simple shear. Considers\n either Lees-Edwards boundary conditions or sheared cells."
40
false
Atomistica/atomistica
get_shear_distance
16,235
LDU_FT/pyros-dev/pyzmp/run
LDU_FT
[ "<BEGIN>\n## `discover`", "discovers a service. If timeout is specified, waits for at least minimum_providers service instance to be available.\n Note : we do not want to make the discovery block undefinitely since we never know for sure if a service is running or not\n TODO : improve with future......
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the run API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the run API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
The Node main method, running in a child process (similar to Process.run() but also accepts args) A children class can override this method, but it needs to call super().run(*args, **kwargs) for the node to start properly and call update() as expected. :param args: arguments to pass to update() ...
"The Node main method, running in a child process (similar to Process.run() but also accepts args)\n A children class can override this method, but it needs to call super().run(*args, **kwargs)\n for the node to start properly and call update() as expected.\n :param args: arguments to pass to updat...
19
false
pyros-dev/pyzmp
run
16,236
LDU_FT/jreinhardt/constraining-order/satisfied
LDU_FT
[ "<BEGIN>\n## `ac3`", "AC-3 algorithm. This reduces the domains of the variables by\n propagating constraints to ensure arc consistency.", " :param Space space: The space to reduce\n<END>", "<BEGIN>\n## `_unary`", "Reduce the domain of variable name to be node-consistent with this\n constraint, i.e....
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the satisfied API. 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 satisfied API. 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 whether the labeling satisfies all constraints
"Check whether the labeling satisfies all constraints"
53
false
jreinhardt/constraining-order
satisfied
16,237
LDU_FT/piglei/uwsgi-sloth/seek_line_forward
LDU_FT
[ "<BEGIN>\n## `merge_with`", "Merge this ``ValuesAggregation`` with another one\n<END>", "<BEGIN>\n## `force_bytes`", "A function turns \"s\" into bytes object, similar to django.utils.encoding.force_bytes\n<END>", "<BEGIN>\n## `force_text`", "A function turns \"s\" into text type, similar to django.utils....
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the seek_line_forward API. 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 seek_line_forward API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
\ Searches forward from the current file position for a line terminator and seeks to the charachter after it.
"\\\n Searches forward from the current file position for a line terminator\n and seeks to the charachter after it."
25
false
piglei/uwsgi-sloth
seek_line_forward
16,238
LDU_FT/HIPS/autograd/init_nn_params
LDU_FT
[ "<BEGIN>\n## `make_gp_funs`", "Functions that perform Gaussian process regression.\n cov_func has signature (cov_params, x, x')\n<END>", "<BEGIN>\n## `def_linear`", "Flags that a function is linear wrt all args\n<END>", "<BEGIN>\n## `project`", "Project the velocity field to be approximately mass-co...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the init_nn_params API. 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 init_nn_params API. 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...
Build a list of (weights, biases) tuples, one for each layer.
"Build a list of (weights, biases) tuples, one for each layer."
79
false
HIPS/autograd
init_nn_params
16,239
LDU_FT/floydhub/floyd-cli/create_tarfile
LDU_FT
[ "<BEGIN>\n## `init`", "Initialize new project at the current path.", " After this you can run other FloydHub commands like status and run.\n<END>", "<BEGIN>\n## `status`", "View status of all jobs in a project.", " The command also accepts a specific job name.\n<END>", "<BEGIN>\n## `print_experime...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_tarfile API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_tarfile API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
Create a tar file with the contents of the current directory
"Create a tar file with the contents of the current directory"
84
false
floydhub/floyd-cli
create_tarfile
16,240
LDU_FT/SpamScope/mail-parser/get_mail_keys
LDU_FT
[ "<BEGIN>\n## `sanitize`", "NFC is the normalization form recommended by W3C.\n<END>", "<BEGIN>\n## `ported_string`", "Give as input raw data and output a str in Python 3\n and unicode in Python 2.", " Args:\n raw_data: Python 2 str, Python 3 bytes or str to porting\n encoding: string giv...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_mail_keys API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_mail_keys API. 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...
Given an email.message.Message, return a set with all email parts to get Args: message (email.message.Message): email message object complete (bool): if True returns all email headers Returns: set with all email parts
"Given an email.message.Message, return a set with all email parts to get\n\n Args:\n message (email.message.Message): email message object\n complete (bool): if True returns all email headers\n\n Returns:\n set with all email parts"
90
false
SpamScope/mail-parser
get_mail_keys
16,241
LDU_FT/inveniosoftware/invenio-communities/get
LDU_FT
[ "<BEGIN>\n## `format_item`", "Render a template to a string with the provided item in context.\n<END>", "<BEGIN>\n## `index`", "Index page with uploader and list of existing depositions.\n<END>", "<BEGIN>\n## `generic_item`", "Index page with uploader and list of existing depositions.\n<END>", "<BEGIN>\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
Get the details of the specified community. .. http:get:: /communities/(string:id) Returns a JSON dictionary with the details of the specified community. **Request**: .. sourcecode:: http GET /communities/communities/comm1 HTTP/1.1 ...
"Get the details of the specified community.\n\n .. http:get:: /communities/(string:id)\n Returns a JSON dictionary with the details of the specified\n community.\n **Request**:\n .. sourcecode:: http\n GET /communities/communities/comm1 HTTP/1.1\n ...
89
false
inveniosoftware/invenio-communities
get
16,242
LDU_FT/corydodt/Crosscap/representCleanOpenAPIParameter
LDU_FT
[ "<BEGIN>\n## `enter`", "Delegate a rule to another class which instantiates a Klein app", " This also memoizes the resource instance on the handler function itself\n<END>", "<BEGIN>\n## `openAPIDoc`", "Update a function's docstring to include the OpenAPI Yaml generated by running the openAPIGraph object\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the representCleanOpenAPIParameter API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its con...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the representCleanOpenAPIParameter API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its con...
Rename python reserved keyword fields before representing an OpenAPIParameter
"Rename python reserved keyword fields before representing an OpenAPIParameter"
26
false
corydodt/Crosscap
representCleanOpenAPIParameter
16,243
LDU_FT/graphql-python/graphql-core-next/collect_fields
LDU_FT
[ "<BEGIN>\n## `uni_char_code`", "Convert unicode characters to integers.", " Converts four hexadecimal chars to the integer that the string represents.\n For example, uni_char_code('0','0','0','f') will return 15,\n and uni_char_code('0','0','f','f') returns 255.", " Returns a negative number on er...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the collect_fields API. 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 collect_fields API. 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...
Collect fields. Given a selection_set, adds all of the fields in that selection to the passed in map of fields, and returns it at the end. collect_fields requires the "runtime type" of an object. For a field which returns an Interface or Union type, the "runtime type" will be the actua...
"Collect fields.\n\n Given a selection_set, adds all of the fields in that selection to the passed in\n map of fields, and returns it at the end.\n\n collect_fields requires the \"runtime type\" of an object. For a field which\n returns an Interface or Union type, the \"runtime type\" will b...
470
false
graphql-python/graphql-core-next
collect_fields
16,244
LDU_FT/brian-rose/climlab/Planck_wavelength
LDU_FT
[ "<BEGIN>\n## `default_absorbers`", "Initialize a dictionary of well-mixed radiatively active gases\n All values are volumetric mixing ratios.", " Ozone is set to a climatology.", " All other gases are assumed well-mixed:", " - CO2\n - CH4\n - N2O\n - O2\n - CFC11\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the Planck_wavelength API. 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 Planck_wavelength API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
The Planck function (flux density for blackbody radiation) in wavelength space l is wavelength in meters T is temperature in Kelvin Formula (3.3) from Raymond Pierrehumbert, "Principles of Planetary Climate"
"The Planck function (flux density for blackbody radiation)\n in wavelength space\n l is wavelength in meters\n T is temperature in Kelvin\n\n Formula (3.3) from Raymond Pierrehumbert, \"Principles of Planetary Climate\""
571
false
brian-rose/climlab
Planck_wavelength
16,245
LDU_FT/pseudo-lang/pseudo/generate_main
LDU_FT
[ "<BEGIN>\n## `safe_serialize_type`", "serialize only with letters, numbers and _\n<END>", "<BEGIN>\n## `generate`", "generates code based on templates and gen functions\n defined in the <x> lang generator\n<END>", "<BEGIN>\n## `_parse_template`", "Pare smart indented templates", " Takes a ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the generate_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 ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the generate_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 ext...
generate output code for main in `language` `main` is a dict/Node or a list of dicts/Nodes with pseudo ast e.g. > print(generate_main({'type': 'int', 'value': 0, 'pseudo_type': 'Int'}, 'rb')) 2 > print(generate_main([pseudo.pseudo_tree.to_node('a'), pseudo.pseudo_tree.to_node(0)], 'js')) 'a'; ...
"generate output code for main in `language`\n\n `main` is a dict/Node or a list of dicts/Nodes with pseudo ast\n\n e.g.\n > print(generate_main({'type': 'int', 'value': 0, 'pseudo_type': 'Int'}, 'rb'))\n 2\n > print(generate_main([pseudo.pseudo_tree.to_node('a'), pseudo.pseudo_tree.to_node(0)], 'js'))\n...
34
false
pseudo-lang/pseudo
generate_main
16,246
LDU_FT/inveniosoftware-contrib/invenio-workflows/start_workflow
LDU_FT
[ "<BEGIN>\n## `create`", "Create a new Workflow Object with given content.\n<END>", "<BEGIN>\n## `query`", "Wrap sqlalchemy query methods.", " A wrapper for the filter and filter_by functions of sqlalchemy.\n Define a dict with which columns should be filtered by which values.", " .. c...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the start_workflow API. 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 start_workflow API. 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...
Run the workflow specified on the object. :param workflow_name: name of workflow to run :type workflow_name: str :param delayed: should the workflow run asynchronously? :type delayed: bool :return: UUID of WorkflowEngine (or AsyncResult).
"Run the workflow specified on the object.\n\n :param workflow_name: name of workflow to run\n :type workflow_name: str\n\n :param delayed: should the workflow run asynchronously?\n :type delayed: bool\n\n :return: UUID of WorkflowEngine (or AsyncResult)."
135
false
inveniosoftware-contrib/invenio-workflows
start_workflow
16,247
LDU_FT/tilde-lab/tilde/get_hierarchy
LDU_FT
[ "<BEGIN>\n## `wrap_cell`", "Cell wrappers\n for customizing the GUI data table", " TODO : must coincide with hierarchy!\n TODO : simplify this!\n<END>", "<BEGIN>\n## `meminfo`", "Get the amount of memory and swap, Mebibytes\n<END>", "<BEGIN>\n## `serial_number`", "Get the serial number. Require...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_hierarchy API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_hierarchy API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
Gets main mapping source according to what a data classification is made Gets the hierarchy groups (only for GUI) Gets the hierarchy values
"Gets main mapping source according to what a data classification is made\n Gets the hierarchy groups (only for GUI)\n Gets the hierarchy values"
68
false
tilde-lab/tilde
get_hierarchy
16,248
LDU_FT/Parsely/probably/_get_rho
LDU_FT
[ "<BEGIN>\n## `_get_rho`", "Return the least signifiant bit\n O(N) in the worst case\n<END>", "<BEGIN>\n## `hash64`", "Wrapper around mmh3.hash64 to get us single 64-bit value.", " This also does the extra work of ensuring that we always treat the\n returned values as big-endian unsigned lon...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_rho API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_rho API. 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 least signifiant bit O(N) in the worst case
"Return the least signifiant bit\n O(N) in the worst case"
33
false
Parsely/probably
_get_rho
16,249
LDU_FT/pallets/werkzeug/escape
LDU_FT
[ "<BEGIN>\n## `mimetype`", "The mimetype (content type without charset etc.)\n<END>", "<BEGIN>\n## `mimetype_params`", "The mimetype parameters as dict. For example if the\n content type is ``text/html; charset=utf-8`` the params would be\n ``{'charset': 'utf-8'}``.", " .. versionadded::...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the escape API. 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 escape API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Replace special characters "&", "<", ">" and (") to HTML-safe sequences. There is a special handling for `None` which escapes to an empty string. .. versionchanged:: 0.9 `quote` is now implicitly on. :param s: the string to escape. :param quote: ignored.
"Replace special characters \"&\", \"<\", \">\" and (\") to HTML-safe sequences.\n\n There is a special handling for `None` which escapes to an empty string.\n\n .. versionchanged:: 0.9\n `quote` is now implicitly on.\n\n :param s: the string to escape.\n :param quote: ignored."
541
false
pallets/werkzeug
escape
16,250
LDU_FT/ska-sa/kittens/collapseuser
LDU_FT
[ "<BEGIN>\n## `load_icons`", "load all icons found in path, subdirs '<package>/icons/<appname>'.\n Package is optional.\n<END>", "<BEGIN>\n## `assign`", "Reassign pixmap or xpm string array to wrapper\n<END>", "<BEGIN>\n## `_load`", "load all icons found in path, subdirs 'icons/appname\n<END>", "<BEGI...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the collapseuser API. 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 collapseuser API. 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...
If path begins with the home directory, replaces the start of the path with "~/". Essentially the reverse of os.path.expanduser()
"If path begins with the home directory, replaces the start of the path with \"~/\". Essentially the reverse of os.path.expanduser()"
16
false
ska-sa/kittens
collapseuser
16,251
LDU_FT/MakerReduxCorp/PLOD/select
LDU_FT
[ "<BEGIN>\n## `dropKey`", "Drop an attribute/element/key-value pair from all the dictionaries.", " If the dictionary key does not exist in a particular dictionary, then\n that dictionary is left unchanged.", " Side effect: if the key is a number and it matches a list (interpreted\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the select API. 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 select API. 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 ...
Modifies the table and index_track lists based on the comparison.
"Modifies the table and index_track lists based on the comparison."
199
false
MakerReduxCorp/PLOD
select
16,252
LDU_FT/snbuback/django_services/wrap_accordion
LDU_FT
[ "<BEGIN>\n## `get_view_doc`", "Build view documentation. Return in html format.\n If you want in markdown format, use html=False\n<END>", "<BEGIN>\n## `wrap_accordion`", "Wrap text_body_list in twitter bootstrap accordion. text_body_list must be list with tuple with title and body\n<END>", "<BEGIN>\n## `...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the wrap_accordion API. 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 wrap_accordion API. 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...
Wrap text_body_list in twitter bootstrap accordion. text_body_list must be list with tuple with title and body
"Wrap text_body_list in twitter bootstrap accordion. text_body_list must be list with tuple with title and body"
43
false
snbuback/django_services
wrap_accordion
16,253
LDU_FT/waleedka/hiddenlayer/_load
LDU_FT
[ "<BEGIN>\n## `format_step`", "Return the step value in format suitable for display.\n<END>", "<BEGIN>\n## `log`", "Record metrics at a specific step. E.g.", " my_history.log(34, loss=2.3, accuracy=0.2)", " Okay to call multiple times for the same step. New values overwrite\n older one...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _load API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _load API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
Load the data in memory. Args: dataset: string in ['train', 'test']
"Load the data in memory.\n Args:\n dataset: string in ['train', 'test']"
50
false
waleedka/hiddenlayer
_load
16,254
LDU_FT/cbrand/vpnchooser/check
LDU_FT
[ "<BEGIN>\n## `check`", "Checks the given password with the one stored\n in the database\n<END>", "<BEGIN>\n## `connect`", "Connects the client to the server and\n returns it.\n<END>", "<BEGIN>\n## `server_rules`", "Reads the server rules from the client\n and returns it.\n<END>", "<...
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...
Checks the given password with the one stored in the database
"Checks the given password with the one stored\n in the database"
38
false
cbrand/vpnchooser
check
16,255
LDU_FT/onelogin/python-saml/get_request
LDU_FT
[ "<BEGIN>\n## `is_valid`", "Validates the response object.", " :param request_data: Request Data\n :type request_data: dict", " :param request_id: Optional argument. The ID of the AuthNRequest sent by this SP to the IdP\n :type request_id: string", " :param raise_exceptions...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_request API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_request API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
Returns the Logout Request deflated, base64encoded :param deflate: It makes the deflate process optional :type: bool :return: Logout Request maybe deflated and base64 encoded :rtype: str object
"Returns the Logout Request deflated, base64encoded\n :param deflate: It makes the deflate process optional\n :type: bool\n :return: Logout Request maybe deflated and base64 encoded\n :rtype: str object"
229
false
onelogin/python-saml
get_request
16,256
LDU_FT/noxdafox/vminspect/parse_journal
LDU_FT
[ "<BEGIN>\n## `keys`", "Iterates over the hive's keys.", " Yields WinRegKey namedtuples containing:", " path: path of the key \"RootKey\\\\Key\\\\...\"\n timestamp: date and time of last modification\n values: list of values ((\"ValueKey\", \"ValueType\", ValueValue), .....
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_journal API. 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 parse_journal API. 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...
Parses the USN Journal content removing duplicates and corrupted records.
"Parses the USN Journal content removing duplicates\n and corrupted records."
123
false
noxdafox/vminspect
parse_journal
16,257
LDU_FT/mesosphere/deimos/serialize
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 serialize API. 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 serialize API. 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...
With a Protobuf class and properties as keyword arguments, sets all the properties on a new instance of the class and serializes the resulting value.
"With a Protobuf class and properties as keyword arguments, sets all the\n properties on a new instance of the class and serializes the resulting\n value."
23
false
mesosphere/deimos
serialize
16,258
LDU_FT/cuihantao/andes/get_command
LDU_FT
[ "<BEGIN>\n## `check`", "Check config data consistency", " Returns\n -------\n<END>", "<BEGIN>\n## `read`", "Read a dm format file and elem_add to system\n<END>", "<BEGIN>\n## `register_element`", "Register a device element to the group list", " Parameters\n ----------\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_command API. 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_command API. 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...
Collect the command-line interface names by querying ``hook`` in ``all_pkg`` Parameters ---------- all_pkg: list list of package files hook: str A variable where the command is stored. ``__cli__`` by default. Returns ------- list
"Collect the command-line interface names by querying ``hook`` in ``all_pkg``\n\n Parameters\n ----------\n all_pkg: list\n list of package files\n hook: str\n A variable where the command is stored. ``__cli__`` by default.\n Returns\n -------\n list"
614
false
cuihantao/andes
get_command
16,259
LDU_FT/dbcli/athenacli/prompt
LDU_FT
[ "<BEGIN>\n## `refresher`", "Decorator to add the decorated function to the dictionary of\n refreshers. Any function decorated with a @refresher will be executed as\n part of the completion refresh routine.\n<END>", "<BEGIN>\n## `refresh`", "Creates a SQLCompleter object and populates it with the relevan...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the prompt API. 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 prompt API. 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 ...
Prompt the user for input and handle any abort exceptions.
"Prompt the user for input and handle any abort exceptions."
95
false
dbcli/athenacli
prompt
16,260
LDU_FT/tomplus/kubernetes_asyncio/replace_namespaced_persistent_volume_claim
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_persistent_volume_claim API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indic...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the replace_namespaced_persistent_volume_claim API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indic...
replace_namespaced_persistent_volume_claim # noqa: E501 replace the specified PersistentVolumeClaim # 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_persistent_vol...
"replace_namespaced_persistent_volume_claim # noqa: E501\n\n replace the specified PersistentVolumeClaim # 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_persiste...
1,540
true
tomplus/kubernetes_asyncio
replace_namespaced_persistent_volume_claim
16,261
LDU_FT/klmitch/aversion/_proc_ctype_header
LDU_FT
[ "<BEGIN>\n## `quoted_split`", "Split a string on the given separation character, but respecting\n double-quoted sections of the string. Returns an iterator.", " :param string: The string to split.\n :param sep: The character separating sections of the string.\n :param quotes: A string specifying al...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _proc_ctype_header API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _proc_ctype_header API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
Process the Content-Type header rules for the request. Only the desired API version can be determined from those rules. :param request: The Request object provided by WebOb. :param result: The Result object to store the results in.
"Process the Content-Type header rules for the request. Only\n the desired API version can be determined from those rules.\n\n :param request: The Request object provided by WebOb.\n :param result: The Result object to store the results in."
47
false
klmitch/aversion
_proc_ctype_header
16,262
LDU_FT/sloria/environs/_dict2schema
LDU_FT
[ "<BEGIN>\n## `_dict2schema`", "Generate a `marshmallow.Schema` class given a dictionary of\n `Fields <marshmallow.fields.Field>`.\n<END>", "<BEGIN>\n## `read_env`", "Read a .env file into os.environ.", " If .env is not found in the directory from which this method is called,\n the default b...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _dict2schema API. 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 _dict2schema API. 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...
Generate a `marshmallow.Schema` class given a dictionary of `Fields <marshmallow.fields.Field>`.
"Generate a `marshmallow.Schema` class given a dictionary of\n `Fields <marshmallow.fields.Field>`."
17
false
sloria/environs
_dict2schema
16,263
LDU_FT/sixty-north/asq/order_by
LDU_FT
[ "<BEGIN>\n## `add_method`", "Add an existing function to a class as a method.\r", " Note: Consider using the extend decorator as a more readable alternative\r\n to using this function directly.\r", " Args:\r\n function: The function to be added to the class klass.\r", " klass: The...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the order_by API. 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 order_by API. 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...
Sorts by a key in ascending order. Introduces a primary sorting order to the sequence. Additional sort criteria should be specified by subsequent calls to then_by() and then_by_descending(). Calling order_by() or order_by_descending() on the results of a call to order_by() will introdu...
"Sorts by a key in ascending order.\n\n Introduces a primary sorting order to the sequence. Additional sort\n criteria should be specified by subsequent calls to then_by() and\n then_by_descending(). Calling order_by() or order_by_descending() on\n the results of a call to order_by() will i...
407
false
sixty-north/asq
order_by
16,264
LDU_FT/spacetelescope/acstools/clean
LDU_FT
[ "<BEGIN>\n## `extract_dark`", "Extract superdark data from ``DARKFILE`` or ``DRKCFILE``.", " Parameters\n ----------\n prihdr : obj\n FITS primary header HDU.", " scihdu : obj\n Extension HDU of the science image.\n This is only used to extract subarray data.", " Returns\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the clean API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the clean API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
r"""Remove horizontal stripes from ACS WFC post-SM4 data. Parameters ---------- input : str or list of str Input filenames in one of these formats: * a Python list of filenames * a partial filename with wildcards ('\*flt.fits') * filename of an ASN table ('j1234...
"r\"\"\"Remove horizontal stripes from ACS WFC post-SM4 data.\n\n Parameters\n ----------\n input : str or list of str\n Input filenames in one of these formats:\n\n * a Python list of filenames\n * a partial filename with wildcards ('\\*flt.fits')\n * filename of an ASN...
319
false
spacetelescope/acstools
clean
16,265
LDU_FT/PythonicNinja/pydrill/profile_cancel
LDU_FT
[ "<BEGIN>\n## `is_active`", ":param timeout: int\n :return: boolean\n<END>", "<BEGIN>\n## `query`", "Submit a query and return results.", " :param sql: string\n :param timeout: int\n :return: pydrill.client.ResultQuery\n<END>", "<BEGIN>\n## `plan`", ":param sql: string\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the profile_cancel API. 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 profile_cancel API. 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...
Cancel the query that has the given queryid. :param query_id: The UUID of the query in standard UUID format that Drill assigns to each query. :param timeout: int :return: pydrill.client.Result
"Cancel the query that has the given queryid.\n\n :param query_id: The UUID of the query in standard UUID format that Drill assigns to each query.\n :param timeout: int\n :return: pydrill.client.Result"
30
false
PythonicNinja/pydrill
profile_cancel
16,266
LDU_FT/lltk/lltk/warning
LDU_FT
[ "<BEGIN>\n## `pos`", "Tries to decide about the part of speech.\n<END>", "<BEGIN>\n## `articles`", "Tries to scrape the correct articles for singular and plural from uitmuntend.nl.\n<END>", "<BEGIN>\n## `plural`", "Tries to scrape the plural version from uitmuntend.nl.\n<END>", "<BEGIN>\n## `warning`", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the warning API. 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 warning API. 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...
Prints a message if warning mode is enabled.
"Prints a message if warning mode is enabled."
80
false
lltk/lltk
warning
16,267
LDU_FT/smdabdoub/phylotoast/otu_name
LDU_FT
[ "<BEGIN>\n## `sample_group`", "Iterate through all categories in an OrderedDict and return category name if SampleID\n present in that category.", " :type sid: str\n :param sid: SampleID from dataset.", " :type groups: OrderedDict\n :param groups: Returned dict from phylotoast.util.gather_categ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the otu_name API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the otu_name API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
Determine a simple Genus-species identifier for an OTU, if possible. If OTU is not identified to the species level, name it as Unclassified (familly/genus/etc...). :type tax: list :param tax: QIIME-style taxonomy identifiers, e.g. ["k__Bacteria", u"p__Firmicutes", u"c__Bacilli", ... ...
"Determine a simple Genus-species identifier for an OTU, if possible.\n If OTU is not identified to the species level, name it as\n Unclassified (familly/genus/etc...).\n\n :type tax: list\n :param tax: QIIME-style taxonomy identifiers, e.g.\n [\"k__Bacteria\", u\"p__Firmicutes\", u\"c__Baci...
200
false
smdabdoub/phylotoast
otu_name
16,268
LDU_FT/pip-services3-python/pip-services3-commons-python/get_all
LDU_FT
[ "<BEGIN>\n## `equals_as`", "Compares this object value to specified specified value.\n When direct comparison gives negative results it converts\n values to type specified by type code and compare them again.", " :param value_type: the Typecode type that defined the type of the result", "...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_all API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_all API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
Gets all component references registered in this reference map. :return: a list with component references.
"Gets all component references registered in this reference map.\n\n :return: a list with component references."
811
false
pip-services3-python/pip-services3-commons-python
get_all
16,269
LDU_FT/Parquery/icontract/_find_self
LDU_FT
[ "<BEGIN>\n## `_collapse_invariants`", "Collect invariants from the bases and merge them with the invariants in the namespace.\n<END>", "<BEGIN>\n## `_collapse_preconditions`", "Collapse function preconditions with the preconditions collected from the base classes.", " :param base_preconditions: precondit...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _find_self API. 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 _find_self API. 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...
Find the instance of ``self`` in the arguments.
"Find the instance of ``self`` in the arguments."
122
false
Parquery/icontract
_find_self
16,270
LDU_FT/mikemaccana/python-docx/paragraph
LDU_FT
[ "<BEGIN>\n## `opendocx`", "Open a docx file, return a document XML tree\n<END>", "<BEGIN>\n## `pagebreak`", "Insert a break, default 'page'.\n See http://openxmldeveloper.org/forums/thread/4075.aspx\n Return our page break element.\n<END>", "<BEGIN>\n## `paragraph`", "Return a new paragraph element ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the paragraph API. 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 paragraph API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
Return a new paragraph element containing *paratext*. The paragraph's default style is 'Body Text', but a new style may be set using the *style* parameter. @param string jc: Paragraph alignment, possible values: left, center, right, both (justified), ... see http...
"Return a new paragraph element containing *paratext*. The paragraph's\n default style is 'Body Text', but a new style may be set using the\n *style* parameter.\n\n @param string jc: Paragraph alignment, possible values:\n left, center, right, both (justified), ...\n s...
51
false
mikemaccana/python-docx
paragraph
16,271
LDU_FT/sentinelsat/sentinelsat/download
LDU_FT
[ "<BEGIN>\n## `cli`", "Search for Sentinel products and, optionally, download all the results\n and/or create a geojson file with the search result footprints.\n Beyond your Copernicus Open Access Hub user and password, you must pass a geojson file\n containing the geometry of the area you want to search ...
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 a product. Uses the filename on the server for the downloaded file, e.g. "S1A_EW_GRDH_1SDH_20141003T003840_20141003T003920_002658_002F54_4DD1.zip". Incomplete downloads are continued and complete files are skipped. Parameters ---------- id : string ...
"Download a product.\n\n Uses the filename on the server for the downloaded file, e.g.\n \"S1A_EW_GRDH_1SDH_20141003T003840_20141003T003920_002658_002F54_4DD1.zip\".\n\n Incomplete downloads are continued and complete files are skipped.\n\n Parameters\n ----------\n id : string...
90
false
sentinelsat/sentinelsat
download
16,272