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/DEIB-GECO/PyGMQL/regs_group
LDU_FT
[ "<BEGIN>\n## `preprocess_path`", "Given a dataset path, the following structure is to be expected:\n - path/\n - files/\n - S_00000.gdm\n - S_00000.gdm.meta\n - S_00001.gdm\n - S_00001.gdm.meta\n - ...\n - ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the regs_group API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the regs_group API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
*Wrapper of* ``GROUP`` Group operation only for region data. For further information check :meth:`~.group`
"*Wrapper of* ``GROUP``\n\n Group operation only for region data. For further information check :meth:`~.group`"
422
false
DEIB-GECO/PyGMQL
regs_group
13,973
LDU_FT/chr-1x/ananas/report_error
LDU_FT
[ "<BEGIN>\n## `_expand_scheduledict`", "Converts a dict of items, some of which are scalar and some of which are\n lists, to a list of dicts with scalar items.\n<END>", "<BEGIN>\n## `interval_next`", "Calculate the number of seconds from now until the function should next run.\n This function handles bot...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the report_error API. 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 report_error API. 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...
Report an error that occurred during bot operations. The default handler tries to DM the bot admin, if one is set, but more handlers can be added by using the @error_reporter decorator.
"Report an error that occurred during bot operations. The default\n handler tries to DM the bot admin, if one is set, but more handlers can\n be added by using the @error_reporter decorator."
19
false
chr-1x/ananas
report_error
13,974
LDU_FT/robotpy/pyfrc/draw_text
LDU_FT
[ "<BEGIN>\n## `compute`", "Call this when vision processing should be enabled", " :param now: The value passed to ``update_sim``\n :param x: Returned from physics_controller.get_position\n :param y: Returned from physics_controller.get_position\n :param angle...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the draw_text API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the draw_text API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
:param text: Text to render :param pt: A tuple of (x,y) in field units (which are measured in feet) :param color: The color of the text, expressed as a 6-digit hex color :param robot_coordinates: If True, the pt will be adjusted such that the poi...
":param text: Text to render\n :param pt: A tuple of (x,y) in field units (which are measured in feet)\n :param color: The color of the text, expressed as a 6-digit hex color\n :param robot_coordinates: If True, the pt will be adjusted such that\n th...
109
false
robotpy/pyfrc
draw_text
13,975
LDU_FT/yeraydiazdiaz/lunr.py/query
LDU_FT
[ "<BEGIN>\n## `get_nltk_builder`", "Returns a builder with stemmers for all languages added to it.", " Args:\n languages (list): A list of supported languages.\n<END>", "<BEGIN>\n## `register_languages`", "Register all supported languages to ensure compatibility.\n<END>", "<BEGIN>\n## `Tokenizer`...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the query API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the query API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
Performs a query against the index using the passed lunr.Query object. If performing programmatic queries against the index, this method is preferred over `lunr.Index.search` so as to avoid the additional query parsing overhead. Args: query (lunr.Query): A configure...
"Performs a query against the index using the passed lunr.Query\n object.\n\n If performing programmatic queries against the index, this method is\n preferred over `lunr.Index.search` so as to avoid the additional query\n parsing overhead.\n\n Args:\n query (lunr.Query): A ...
128
false
yeraydiazdiaz/lunr.py
query
13,976
LDU_FT/canonical-ols/acceptable/validate_output
LDU_FT
[ "<BEGIN>\n## `metadata_lint`", "Run the linter over the new metadata, comparing to the old.\n<END>", "<BEGIN>\n## `bind`", "Bind the service API urls to a flask app.\n<END>", "<BEGIN>\n## `serialize`", "Serialize into JSONable dict, and associated locations data.\n<END>", "<BEGIN>\n## `api`", "Add an ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the validate_output API. 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 validate_output API. 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...
Validate the body of a response from a flask view. Like `validate_body`, this function compares a json document to a jsonschema specification. However, this function applies the schema to the view response. Instead of the view returning a flask response object, it should instead return a Python li...
"Validate the body of a response from a flask view.\n\n Like `validate_body`, this function compares a json document to a\n jsonschema specification. However, this function applies the schema to the\n view response.\n\n Instead of the view returning a flask response object, it should instead\n return a P...
61
false
canonical-ols/acceptable
validate_output
13,977
LDU_FT/bdastur/rex/match_file
LDU_FT
[ "<BEGIN>\n## `reformat_pattern`", "Apply the filters on user pattern to generate a new regular expression\n pattern.\n A user provided variable, should start with an alphabet, can be\n alphanumeric and can have _.\n<END>", "<BEGIN>\n## `populate_resobj`", "Popuate the result object and append it to t...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the match_file API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the match_file API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
The function will match a pattern in a file and return a rex object, which will have all the matches found in the file.
"The function will match a pattern in a file and return\n a rex object, which will have all the matches found in the file."
15
false
bdastur/rex
match_file
13,978
LDU_FT/portfors-lab/sparkle/tukey
LDU_FT
[ "<BEGIN>\n## `purgeDeletedWidgets`", "Finds old references to stashed fields and deletes them\n<END>", "<BEGIN>\n## `set_calibration`", "See :meth:`AbstractAcquisitionRunner<sparkle.run.abstract_acquisition.AbstractAcquisitionRunner.set_calibration>`\n<END>", "<BEGIN>\n## `set_current_stim_parameter`", "S...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the tukey API. 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 tukey API. 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...
Generate a tukey (tapered cosine) window :param winlen: length of the window, in samples :type winlen: int :param alpha: proportion of the window to be tapered. 0 = rectangular window 1.0 = hann window :type alpha: float
"Generate a tukey (tapered cosine) window\n :param winlen: length of the window, in samples\n :type winlen: int\n :param alpha: proportion of the window to be tapered. \n 0 = rectangular window\n 1.0 = hann window\n :type alpha: float"
834
false
portfors-lab/sparkle
tukey
13,979
LDU_FT/Min-ops/cruddy/delete
LDU_FT
[ "<BEGIN>\n## `describe`", "Returns descriptive information about this cruddy handler and the\n methods supported by it.\n<END>", "<BEGIN>\n## `search`", "Cruddy provides a limited but useful interface to search GSI indexes in\n DynamoDB with the following limitations (hopefully some of these wil...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the delete API. 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 delete API. 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 ...
Deletes the item corresponding to ``id``.
"Deletes the item corresponding to ``id``."
36
false
Min-ops/cruddy
delete
13,980
LDU_FT/taxpon/pymesh/translate_y
LDU_FT
[ "<BEGIN>\n## `set_initial_values`", "Set initial values form existing self.data value\n :return: None\n<END>", "<BEGIN>\n## `rotate_x`", "Rotate mesh around x-axis", " :param float deg: Rotation angle (degree)\n :return:\n<END>", "<BEGIN>\n## `translate_x`", "Translate mesh for x-di...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the translate_y API. 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 translate_y API. 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...
Translate mesh for y-direction :param float d: Amount to translate
"Translate mesh for y-direction\n\n :param float d: Amount to translate"
28
false
taxpon/pymesh
translate_y
13,981
LDU_FT/jstitch/MambuPy/get_conf
LDU_FT
[ "<BEGIN>\n## `convertDict2Attrs`", "The trick for iterable Mambu Objects comes here:", " You iterate over each element of the responded List from Mambu,\n and create a Mambu Activity object for each one, initializing\n them one at a time, and changing the attrs attribute (which just\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_conf API. 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_conf API. 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...
Gets a config 'opt' from 'conf' file, under section 'sect'. If no 'opt' exists under 'sect', it looks for option on the default_configs dictionary If there exists an environmental variable named MAMBUPY_{upper_case_opt}, it overrides whatever the conf files or default_configs dict says. But if yo...
"Gets a config 'opt' from 'conf' file, under section 'sect'.\n\n If no 'opt' exists under 'sect', it looks for option on the default_configs\n dictionary\n\n If there exists an environmental variable named MAMBUPY_{upper_case_opt},\n it overrides whatever the conf files or default_configs dict says.\n\n ...
357
false
jstitch/MambuPy
get_conf
13,982
LDU_FT/jaumebonet/libconfig/reset_options
LDU_FT
[ "<BEGIN>\n## `_get_repo`", "Identify the path to the repository origin.\n<END>", "<BEGIN>\n## `_entry_must_exist`", "Evaluate key-subkey existence.", " Checks that the key-subkey combo exists in the\n configuration options.\n<END>", "<BEGIN>\n## `_entry_must_not_exist`", "Evaluate key-subkey non-e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the reset_options API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the reset_options API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
Empty ALL options. :param bool empty: When :data:`True`, completelly removes all options; when :data:`False`, sets them back to its original value. This function skips ``locked`` control.
"Empty ALL options.\n\n :param bool empty: When :data:`True`, completelly removes all options;\n when :data:`False`, sets them back to its original value.\n\n This function skips ``locked`` control."
104
false
jaumebonet/libconfig
reset_options
13,983
LDU_FT/LabKey/labkey-api-python/create_user
LDU_FT
[ "<BEGIN>\n## `create`", "Create a domain\n :param server_context: A LabKey server context. See utils.create_server_context.\n :param domain_definition: A domain definition.\n :param container_path: labkey container path if not already set in context\n :return: Domain\n<END>", "<BEGIN>\n## `drop`", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_user API. 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 create_user API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
Create new account :param server_context: A LabKey server context. See utils.create_server_context. :param email: :param container_path: :param send_email: true to send email notification to user :return:
"Create new account\n :param server_context: A LabKey server context. See utils.create_server_context.\n :param email:\n :param container_path:\n :param send_email: true to send email notification to user\n :return:"
60
false
LabKey/labkey-api-python
create_user
13,984
LDU_FT/adaptive-learning/proso-apps/get_leaves
LDU_FT
[ "<BEGIN>\n## `process_answer`", "This method is used during the answer streaming and is called after the\n predictive model for each answer.", " Args:\n user (int):\n identifier of ther user answering the question\n asked (int):\n identifier of t...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_leaves API. 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_leaves API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
Get mapping of items to their reachable leaves. Leaves having inactive relations to other items are omitted. Args: item_ids (list): items which are taken as roots for the reachability language (str): if specified, filter out items which are not available in the g...
"Get mapping of items to their reachable leaves. Leaves having\n inactive relations to other items are omitted.\n\n Args:\n item_ids (list): items which are taken as roots for the reachability\n language (str): if specified, filter out items which are not\n available i...
276
false
adaptive-learning/proso-apps
get_leaves
13,985
LDU_FT/awickert/gFlex/loadFile
LDU_FT
[ "<BEGIN>\n## `elasprep`", "dx4, dy4, dx2dy2, D = elasprep(dx,dy,Te,E=1E11,nu=0.25)", " Defines the variables that are required to create the 2D finite \n difference solution coefficient matrix\n<END>", "<BEGIN>\n## `BC_selector_and_coeff_matrix_creator`", "Selects the boundary conditions\n E-W is f...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the loadFile API. 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 loadFile API. 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...
A special function to replate a variable name that is a string file path with the loaded file. var is a string on input output is a numpy array or a None-type object (success vs. failure)
"A special function to replate a variable name that is a string file path\n with the loaded file.\n var is a string on input\n output is a numpy array or a None-type object (success vs. failure)"
78
false
awickert/gFlex
loadFile
13,986
LDU_FT/googledatalab/pydatalab/_table_cell
LDU_FT
[ "<BEGIN>\n## `ml`", "Implements the datalab cell magic for MLWorkbench operations.", " Args:\n line: the contents of the ml command line.\n Returns:\n The results of executing the cell.\n<END>", "<BEGIN>\n## `from_csv`", "Create a Metrics instance from csv file pattern.", " Args:\n input_c...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _table_cell API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _table_cell API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
Implements the BigQuery table magic subcommand used to operate on tables The supported syntax is: %%bq tables <command> <args> Commands: {list, create, delete, describe, view} Args: args: the optional arguments following '%%bq tables command'. cell_body: optional contents of the cell interprete...
"Implements the BigQuery table magic subcommand used to operate on tables\n\n The supported syntax is:\n %%bq tables <command> <args>\n\n Commands:\n {list, create, delete, describe, view}\n\n Args:\n args: the optional arguments following '%%bq tables command'.\n cell_body: optional contents of the cell...
1,652
true
googledatalab/pydatalab
_table_cell
13,987
LDU_FT/priestc/moneywagon/replay_block
LDU_FT
[ "<BEGIN>\n## `supported_currencies`", "Returns a list of all currencies that are supported by the passed in project.\n and support level. Support level can be: \"block\", \"transaction\", \"address\"\n or \"full\".\n<END>", "<BEGIN>\n## `not_supported_currencies`", "Returns a list of all currenc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the replay_block API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the replay_block API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
Replay all transactions in parent currency to passed in "source" currency. Block_to_replay can either be an integer or a block object.
"Replay all transactions in parent currency to passed in \"source\" currency.\n Block_to_replay can either be an integer or a block object."
135
false
priestc/moneywagon
replay_block
13,988
LDU_FT/peterdemin/pip-compile-multi/merged_packages
LDU_FT
[ "<BEGIN>\n## `create_lockfile`", "Write recursive dependencies list to outfile\n with hard-pinned versions.\n Then fix it.\n<END>", "<BEGIN>\n## `parse_references`", "Read filename line by line searching for pattern:", " -r file.in\n or\n --requirement file.in", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the merged_packages API. 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 merged_packages API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
Return union set of environment packages with given names >>> sorted(merged_packages( ... { ... 'a': {'x': 1, 'y': 2}, ... 'b': {'y': 2, 'z': 3}, ... 'c': {'z': 3, 'w': 4} ... }, ... ['a', 'b'] ... ).items()) [('x', 1), ('y', 2), ('z', 3)]
"Return union set of environment packages with given names\n\n >>> sorted(merged_packages(\n ... {\n ... 'a': {'x': 1, 'y': 2},\n ... 'b': {'y': 2, 'z': 3},\n ... 'c': {'z': 3, 'w': 4}\n ... },\n ... ['a', 'b']\n ... ).items())\n [('x', 1), ('y', 2), ('z', ...
61
false
peterdemin/pip-compile-multi
merged_packages
13,989
LDU_FT/ponty/eagexp/print_partlist
LDU_FT
[ "<BEGIN>\n## `export_image3d`", "Exporting eagle .brd file into 3D image file\n using Eagle3D and povray.\n GUI is not displayed if ``pyvirtualdisplay`` is installed.\n If export is blocked somehow (e.g. popup window is displayed) then after timeout operation is canceled with exception.\n Problem can ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the print_partlist API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the print_partlist API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
print partlist text delivered by eagle :param input: .sch or .brd file name :param timeout: int :param showgui: Bool, True -> do not hide eagle GUI :rtype: None
"print partlist text delivered by eagle\n\n :param input: .sch or .brd file name\n :param timeout: int\n :param showgui: Bool, True -> do not hide eagle GUI\n :rtype: None"
35
false
ponty/eagexp
print_partlist
13,990
LDU_FT/political-memory/django-representatives/touch_model
LDU_FT
[ "<BEGIN>\n## `create_parl_websites`", "Prepare for remote_id removal by creating WebSite entities from it.\n<END>", "<BEGIN>\n## `migrate_constituencies`", "Re-save constituencies to recompute fingerprints\n<END>", "<BEGIN>\n## `_get_path`", "Get value at specific path in dictionary. Path is specified by ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the touch_model API. 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 touch_model API. 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...
This method create or look up a model with the given data it saves the given model if it exists, updating its updated field
"This method create or look up a model with the given data\n it saves the given model if it exists, updating its\n updated field"
22
false
political-memory/django-representatives
touch_model
13,991
LDU_FT/IrvKalb/pygwidgets/handleEvent
LDU_FT
[ "<BEGIN>\n## `setLoc`", "Sets a new location (and changes the rect loc) for this widget.\n<END>", "<BEGIN>\n## `handleEvent`", "This method should be called every time through the main loop.\r", " It handles showing the up, over, and down states of the button.\r", " Parameters:\r\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the handleEvent API. 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 handleEvent API. 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...
This method should be called every time through the main loop. It handles showing the up, over, and down states of the button. Parameters: | eventObj - the event object obtained by calling pygame.event.get() Returns: | False most of the time | True...
"This method should be called every time through the main loop.\r\n\r\n It handles showing the up, over, and down states of the button.\r\n\r\n Parameters:\r\n | eventObj - the event object obtained by calling pygame.event.get()\r\n\r\n Returns:\r\n | False most of the time\r\...
70
false
IrvKalb/pygwidgets
handleEvent
13,992
LDU_FT/sveetch/py-css-styleguide/consume
LDU_FT
[ "<BEGIN>\n## `digest_prelude`", "Walk on rule prelude (aka CSS selector) tokens to return a string of\n the value name (from css selector).", " Actually only simple selector and selector with descendant combinator\n are supported. Using any other selector kind may leads to unexpected\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the consume API. 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 consume API. 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...
Parse source and consume tokens from tinycss2. Arguments: source (string): Source content to parse. Returns: dict: Retrieved rules.
"Parse source and consume tokens from tinycss2.\n\n Arguments:\n source (string): Source content to parse.\n\n Returns:\n dict: Retrieved rules."
98
false
sveetch/py-css-styleguide
consume
13,993
LDU_FT/earwig/mwparserfromhell/_read
LDU_FT
[ "<BEGIN>\n## `normalize`", "Return the unicode character represented by the HTML entity.\n<END>", "<BEGIN>\n## `inheritdoc`", "Set __doc__ of *method* to __doc__ of *method* in its parent class.", " Since this is used on :class:`.SmartList`, the \"parent class\" used is\n ``list``. This function can b...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _read API. 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 _read API. 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...
Read the value at a relative point in the wikicode. The value is read from :attr:`self._head <_head>` plus the value of *delta* (which can be negative). If *wrap* is ``False``, we will not allow attempts to read from the end of the string if ``self._head + delta`` is negative. If *stric...
"Read the value at a relative point in the wikicode.\n\n The value is read from :attr:`self._head <_head>` plus the value of\n *delta* (which can be negative). If *wrap* is ``False``, we will not\n allow attempts to read from the end of the string if ``self._head +\n delta`` is negative. If ...
291
false
earwig/mwparserfromhell
_read
13,994
LDU_FT/csirtgadgets/csirtgsdk-py/setup_logging
LDU_FT
[ "<BEGIN>\n## `show`", "Show a specific indicator by id", " :param user: feed username\n :param feed: feed name\n :param id: indicator endpoint id [INT]\n :return: dict", " Example:\n ret = Indicator.show('csirtgadgets','port-scanners', '1234')\n<END>", "<BEGIN>\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the setup_logging API. 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 setup_logging API. 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...
Sets up basic logging :param args: ArgParse arguments :return: nothing. sets logger up globally
"Sets up basic logging\n\n :param args: ArgParse arguments\n :return: nothing. sets logger up globally"
52
false
csirtgadgets/csirtgsdk-py
setup_logging
13,995
LDU_FT/lvh/maxims/creationTime
LDU_FT
[ "<BEGIN>\n## `powerupIndirector`", "A decorator for a powerup indirector from a single interface to a single\n in-memory implementation.", " The in-memory implementation that is being indirected to must be created\n in the ``activate`` callback, and then assigned to ``self.indirected``,\n which is a...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the creationTime API. 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 creationTime API. 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...
Returns the creation time of the given item.
"Returns the creation time of the given item."
13
false
lvh/maxims
creationTime
13,996
LDU_FT/cocaine/cocaine-tools/access_add
LDU_FT
[ "<BEGIN>\n## `reelect_app`", "tries to connect to the same app on differnet host from dist-info\n<END>", "<BEGIN>\n## `expr`", "expr ::= term ((AND | OR) term)*\n term ::= factor ((EQ | NE) factor)*\n factor ::= func | const | LPAREN expr RPAREN\n func ::= lit LPAREN expr (,expr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the access_add API. 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 access_add API. 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...
Creates a new record with specified cid/uid in the event authorization. Requests with token that contains such cid/uid will have access to the specified event of a service.
"Creates a new record with specified cid/uid in the event authorization.\n\n Requests with token that contains such cid/uid will have access to the specified event of a\n service."
127
false
cocaine/cocaine-tools
access_add
13,997
LDU_FT/Pixelapse/pyglass/preview
LDU_FT
[ "<BEGIN>\n## `embedded_preview`", "Returns path to temporary copy of embedded QuickLook preview, if it exists\n<END>", "<BEGIN>\n## `thumbnail_preview`", "Returns the path to small thumbnail preview.\n<END>", "<BEGIN>\n## `export_cmd`", "Executes a `sketchtool export` command and returns formatted output"...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the preview API. 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 preview API. 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...
Generates a preview of src_path in the requested format. :returns: A list of preview paths, one for each page.
"Generates a preview of src_path in the requested format.\n :returns: A list of preview paths, one for each page."
33
false
Pixelapse/pyglass
preview
13,998
LDU_FT/gopalkoduri/intonation/compute_hist
LDU_FT
[ "<BEGIN>\n## `compute_hist`", "Computes histogram from the pitch data in Pitch object (pitch), and creates\n a Data object (pypeaks).", " :param bins: Refers to number of bins in the histogram, determines the granularity.\n If it is not set, the number of bins which gives the highest granul...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the compute_hist API. 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 compute_hist API. 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...
Computes histogram from the pitch data in Pitch object (pitch), and creates a Data object (pypeaks). :param bins: Refers to number of bins in the histogram, determines the granularity. If it is not set, the number of bins which gives the highest granularity is chosen automatically. ...
"Computes histogram from the pitch data in Pitch object (pitch), and creates\n a Data object (pypeaks).\n\n :param bins: Refers to number of bins in the histogram, determines the granularity.\n If it is not set, the number of bins which gives the highest granularity is chosen\n automatically...
24
false
gopalkoduri/intonation
compute_hist
13,999
LDU_FT/inveniosoftware/invenio-github/_dev_api
LDU_FT
[ "<BEGIN>\n## `get`", "Return a repository.", " :param integer user_id: User identifier.\n :param integer github_id: GitHub repository identifier.\n :param str name: GitHub repository full name.\n :returns: The repository object.\n :raises: :py:exc:`~sqlalchemy.orm.exc.NoResult...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _dev_api API. 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 _dev_api API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
Get a developer instance for GitHub API access.
"Get a developer instance for GitHub API access."
42
false
inveniosoftware/invenio-github
_dev_api
14,000
LDU_FT/neptune-ml/steppy/adapt
LDU_FT
[ "<BEGIN>\n## `initialize_logger`", "Initialize steppy logger.", " This logger is used throughout the steppy library to report computation progress.", " Example:", " Simple use of steppy logger:", " .. code-block:: python", " initialize_logger()\n logger = get_lo...
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...
Adapt inputs for the transformer included in the step. Args: all_ouputs: Dict of outputs from parent steps. The keys should match the names of these steps and the values should be their respective outputs. Returns: Dictionary with the same keys a...
"Adapt inputs for the transformer included in the step.\n\n Args:\n all_ouputs: Dict of outputs from parent steps. The keys should\n match the names of these steps and the values should be their\n respective outputs.\n\n Returns:\n Dictionary with the sa...
57
false
neptune-ml/steppy
adapt
14,001
LDU_FT/dhondta/tinyscript/new
LDU_FT
[ "<BEGIN>\n## `_filtered_actions`", "Get actions filtered on a list of action types.", " :param a_type: argparse.Action instance name (e.g. count, append)\n<END>", "<BEGIN>\n## `_input_arg`", "Ask the user for input of a single argument.", " :param a: argparse.Action instance\n :return...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the new API. 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 new API. 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...
Function for creating a template script or tool. :param template: template to be used ; one of TEMPLATES :param target: type of script/tool to be created :param name: name of the new script/tool
"Function for creating a template script or tool.\n \n :param template: template to be used ; one of TEMPLATES\n :param target: type of script/tool to be created\n :param name: name of the new script/tool"
74
false
dhondta/tinyscript
new
14,002
LDU_FT/anomaly/vishnu/is_signature_equal
LDU_FT
[ "<BEGIN>\n## `google_app_engine_ndb_delete_expired_sessions`", "Deletes expired sessions\n A session is expired if it expires date is set and has passed or\n if it has not been accessed for a given period of time.", " :param dormant_for: seconds since last access to delete sessions, defaults to 24 hour...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_signature_equal 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 is_signature_equal 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...
Compares two signatures using a constant time algorithm to avoid timing attacks.
"Compares two signatures using a constant time algorithm to avoid timing attacks."
22
false
anomaly/vishnu
is_signature_equal
14,003
LDU_FT/terrycain/aioboto3/download_fileobj
LDU_FT
[ "<BEGIN>\n## `download_file`", "Download an S3 object to a file.", " Usage::", " import boto3\n s3 = boto3.resource('s3')\n s3.meta.client.download_file('mybucket', 'hello.txt', '/tmp/hello.txt')", " Similar behavior as S3Transfer's download_file() method,\n except that paramet...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the download_fileobj API. 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 download_fileobj API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Download an object from S3 to a file-like object. The file-like object must be in binary mode. This is a managed transfer which will perform a multipart download in multiple threads if necessary. Usage:: import boto3 s3 = boto3.client('s3') with open('filename', 'wb') as dat...
"Download an object from S3 to a file-like object.\n\n The file-like object must be in binary mode.\n\n This is a managed transfer which will perform a multipart download in\n multiple threads if necessary.\n\n Usage::\n\n import boto3\n s3 = boto3.client('s3')\n\n with open('filename',...
74
false
terrycain/aioboto3
download_fileobj
14,004
LDU_FT/malramsay64/experi/uniqueify
LDU_FT
[ "<BEGIN>\n## `parse_setup`", "Convert potentially a list of commands into a single string.", " This creates a single string with newlines between each element of the list\n so that they will all run after each other in a bash script.\n<END>", "<BEGIN>\n## `create_scheduler_file`", "Substitute values i...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the uniqueify API. 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 uniqueify API. 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...
Remove duplicate entries in a list retaining order.
"Remove duplicate entries in a list retaining order."
52
false
malramsay64/experi
uniqueify
14,005
LDU_FT/boatd/python-boatd/set_rudder
LDU_FT
[ "<BEGIN>\n## `from_radians`", "Return a new instance of Point from a pair of coordinates in radians.\n<END>", "<BEGIN>\n## `distance_to`", "Return the distance between this point and another point in meters.", " :param point: Point to measure distance to\n :type point: Point", " :retu...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_rudder API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_rudder API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
Set the angle of the rudder to be `angle` degrees. :param angle: rudder angle :type angle: float between -90 and 90
"Set the angle of the rudder to be `angle` degrees.\n\n :param angle: rudder angle\n :type angle: float between -90 and 90"
49
false
boatd/python-boatd
set_rudder
14,006
LDU_FT/pytroll/pyorbital/olci
LDU_FT
[ "<BEGIN>\n## `gmst`", "Greenwich mean sidereal utc_time, in radians.", " As defined in the AIAA 2006 implementation:\n http://www.celestrak.com/publications/AIAA/2006-6753/\n<END>", "<BEGIN>\n## `sun_ecliptic_longitude`", "Ecliptic longitude of the sun at *utc_time*.\n<END>", "<BEGIN>\n## `sun_ra_de...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the olci API. 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 olci API. 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...
Definition of the OLCI instrument. Source: Sentinel-3 OLCI Coverage https://sentinel.esa.int/web/sentinel/user-guides/sentinel-3-olci/coverage
"Definition of the OLCI instrument.\n\n Source: Sentinel-3 OLCI Coverage\n https://sentinel.esa.int/web/sentinel/user-guides/sentinel-3-olci/coverage"
83
false
pytroll/pyorbital
olci
14,007
LDU_FT/sbarham/dsrt/dataset_prepare
LDU_FT
[ "<BEGIN>\n## `predict`", "Take in an integer-vectorized (i.e., index) vector, and predict the maximally\n likely response, returning it as an integer-vectorized (i.e., index) vector.\n<END>", "<BEGIN>\n## `pad_dialogues`", "Pad the entire dataset.\n This involves adding padding at the end of eac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the dataset_prepare API. 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 dataset_prepare API. 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...
Subcommand of dataset for processing a corpus into a dataset
"Subcommand of dataset for processing a corpus into a dataset"
77
false
sbarham/dsrt
dataset_prepare
14,008
LDU_FT/rmorshea/spectate/expose
LDU_FT
[ "<BEGIN>\n## `views`", "Return a model's views keyed on what events they respond to.", " Model views are added by calling :func:`view` on a model.\n<END>", "<BEGIN>\n## `view`", "A decorator for registering a callback to a model", " Parameters:\n model: the model object whose changes the call...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the expose API. 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 expose API. 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 ...
A decorator for exposing the methods of a class. Parameters ---------- *methods : str A str representation of the methods that should be exposed to callbacks. Returns ------- decorator : function A function accepting one argument - the class whose methods will be expose...
"A decorator for exposing the methods of a class.\n\n Parameters\n ----------\n *methods : str\n A str representation of the methods that should be exposed to callbacks.\n\n Returns\n -------\n decorator : function\n A function accepting one argument - the class whose methods will be\n ...
94
false
rmorshea/spectate
expose
14,009
LDU_FT/jucacrispim/pylint-mongoengine/get_field_embedded_doc
LDU_FT
[ "<BEGIN>\n## `node_is_subclass`", "Checks if cls node has parent with subclass_name.\n<END>", "<BEGIN>\n## `is_field_method`", "Checks if a call to a field instance method is valid. A call is\n valid if the call is a method of the underlying type. So, in a StringField\n the methods from str are valid, i...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_field_embedded_doc 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_field_embedded_doc 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 de ClassDef for the related embedded document in a embedded document field.
"Returns de ClassDef for the related embedded document in a\n embedded document field."
22
false
jucacrispim/pylint-mongoengine
get_field_embedded_doc
14,010
LDU_FT/andrenarchy/krypy/arnoldi_projected
LDU_FT
[ "<BEGIN>\n## `find_common_dtype`", "Returns common dtype of numpy and scipy objects.", " Recognizes ndarray, spmatrix and LinearOperator. All other objects are\n ignored (most notably None).\n<END>", "<BEGIN>\n## `shape_vecs`", "Reshape all ndarrays with ``shape==(n,)`` to ``shape==(n,1)``.", " R...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the arnoldi_projected API. 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 arnoldi_projected API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Compute (perturbed) Arnoldi relation for projected operator. Assume that you have computed an Arnoldi relation .. math :: A V_n = V_{n+1} \\underline{H}_n where :math:`V_{n+1}\\in\\mathbb{C}^{N,n+1}` has orthogonal columns (with respect to an inner product :math:`\\langle\\cdot,\\cdot\\rangl...
"Compute (perturbed) Arnoldi relation for projected operator.\n\n Assume that you have computed an Arnoldi relation\n\n .. math ::\n\n A V_n = V_{n+1} \\\\underline{H}_n\n\n where :math:`V_{n+1}\\\\in\\\\mathbb{C}^{N,n+1}` has orthogonal columns\n (with respect to an inner product :math:`\\\\langle\\...
194
false
andrenarchy/krypy
arnoldi_projected
14,011
LDU_FT/Grunny/zap-cli/enable_scanners_by_group
LDU_FT
[ "<BEGIN>\n## `list_scanners`", "Get a list of scanners and whether or not they are enabled.\n<END>", "<BEGIN>\n## `list_policies`", "Get a list of policies and whether or not they are enabled.\n<END>", "<BEGIN>\n## `enable_policies`", "Set the enabled policies to use in a scan.", " When you enable a ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the enable_scanners_by_group API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the enable_scanners_by_group API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio...
Enables the scanners in the group if it matches one in the scanner_group_map.
"Enables the scanners in the group if it matches one in the scanner_group_map."
63
false
Grunny/zap-cli
enable_scanners_by_group
14,012
LDU_FT/mobiusklein/brainpy/max_variants
LDU_FT
[ "<BEGIN>\n## `give_repr`", "r\"\"\"Patch a class to give it a generic __repr__ method\n that works by inspecting the instance dictionary.", " Parameters\n ----------\n cls: type\n The class to add a generic __repr__ to.", " Returns\n -------\n cls: type\n The passed class is...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the max_variants API. 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 max_variants API. 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...
Calculates the maximum number of isotopic variants that could be produced by a composition. Parameters ---------- composition : Mapping Any Mapping type where keys are element symbols and values are integers Returns ------- max_n_variants : int
"Calculates the maximum number of isotopic variants that could be produced by a\n composition.\n\n Parameters\n ----------\n composition : Mapping\n Any Mapping type where keys are element symbols and values are integers\n\n Returns\n -------\n max_n_variants : int"
33
false
mobiusklein/brainpy
max_variants
14,013
LDU_FT/rikrd/inspire/create_language_model
LDU_FT
[ "<BEGIN>\n## `load_parameter`", "Load HTK parameter/feature file.", " :param input_filename:\n :param only_header: only load the metadata\n :return: a named tuple representing the HTK parmeter file\n<END>", "<BEGIN>\n## `create_parameter`", "Create a HTK Parameter object from an array of samples an...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_language_model API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_language_model API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Create a language model (wdnet) for HTK using a very simple single-word grammar
"Create a language model (wdnet) for HTK using a very simple single-word grammar"
91
false
rikrd/inspire
create_language_model
14,014
LDU_FT/kxgames/vecrec/get_rounded
LDU_FT
[ "<BEGIN>\n## `random`", "Create a unit vector pointing in a random direction.\n<END>", "<BEGIN>\n## `from_rectangle`", "Create a vector randomly within the given rectangle.\n<END>", "<BEGIN>\n## `interpolate`", "Move this vector towards the given towards the target by the given \n extent. The exte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_rounded API. 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_rounded API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
Return a vector with the elements rounded to the given number of digits.
"Return a vector with the elements rounded to the given number of digits."
49
false
kxgames/vecrec
get_rounded
14,015
LDU_FT/harabchuk/kibana-dashboard-api/append_panel
LDU_FT
[ "<BEGIN>\n## `add_visualization`", "Adds the visualization to the dashboard. Leave col and row = 0 for automatic placement of the visualization.\n Visualizations are placed on a grid with 12 columns and unlimited rows.\n :param visualization: previously loaded visualization\n :param size_x wi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the append_panel API. 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 append_panel API. 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...
Appends a panel to the list of panels. Finds the highest palce at the left for the new panel. :param panels: :param size_x: :param size_y: :param max_col: :return: a new panel or None if it is not possible to place a panel with such size_x
"Appends a panel to the list of panels. Finds the highest palce at the left for the new panel.\n :param panels:\n :param size_x:\n :param size_y:\n :param max_col:\n :return: a new panel or None if it is not possible to place a panel with such size_x"
20
false
harabchuk/kibana-dashboard-api
append_panel
14,016
LDU_FT/partofthething/ace/_compute_sorted_indices
LDU_FT
[ "<BEGIN>\n## `run_friedman82_super`", "Run Friedman's test of fixed-span smoothers from Figure 2b.\n<END>", "<BEGIN>\n## `validate_supersmoother_bass`", "Validate the supersmoother with extra bass.\n<END>", "<BEGIN>\n## `unsort_vector`", "Upermutate 1-D data that is sorted by indices_of_increasing.\n<END>...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _compute_sorted_indices 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 _compute_sorted_indices API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion...
The smoothers need sorted data. This sorts it from the perspective of each column. if self._x[0][3] is the 9th-smallest value in self._x[0], then _xi_sorted[3] = 8 We only have to sort the data once.
"The smoothers need sorted data. This sorts it from the perspective of each column.\n\n if self._x[0][3] is the 9th-smallest value in self._x[0], then _xi_sorted[3] = 8\n\n We only have to sort the data once."
115
false
partofthething/ace
_compute_sorted_indices
14,017
LDU_FT/jspricke/python-icstask/move_vobject
LDU_FT
[ "<BEGIN>\n## `task2ics`", "Command line tool to convert from Taskwarrior to iCalendar\n<END>", "<BEGIN>\n## `ics2task`", "Command line tool to convert from iCalendar to Taskwarrior\n<END>", "<BEGIN>\n## `_update`", "Reload Taskwarrior files if the mtime is newer\n<END>", "<BEGIN>\n## `to_vobjects`", "...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the move_vobject API. 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 move_vobject API. 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...
Update the project of the task with the UID uuid
"Update the project of the task with the UID uuid"
26
false
jspricke/python-icstask
move_vobject
14,018
LDU_FT/joeyespo/gitpress/remove_directory
LDU_FT
[ "<BEGIN>\n## `remove_directory`", "Deletes a directory and its contents.\n Returns a list of errors in form (function, path, excinfo).\n<END>", "<BEGIN>\n## `copy_files`", "Copies a list of files to the specified directory.\n If source_directory is provided, it will be prepended to each source file.\n<E...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the remove_directory API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the remove_directory API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Deletes a directory and its contents. Returns a list of errors in form (function, path, excinfo).
"Deletes a directory and its contents.\n Returns a list of errors in form (function, path, excinfo)."
36
false
joeyespo/gitpress
remove_directory
14,019
LDU_FT/ContinuumIO/menuinst/make_directory_entry
LDU_FT
[ "<BEGIN>\n## `folder_path`", "This function implements all heuristics and workarounds for messed up\n KNOWNFOLDERID registry values. It's also verbose (OutputDebugStringW)\n about whether fallbacks worked or whether they would have worked if\n check_other_mode had been allowed.\n<END>", "<B...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the make_directory_entry API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the make_directory_entry API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Create a directory entry that conforms to the format of the Desktop Entry Specification by freedesktop.org. See: http://freedesktop.org/Standards/desktop-entry-spec These should work for both KDE and Gnome2 An entry is a .directory file that includes the display name, icon, etc. It will be...
"Create a directory entry that conforms to the format of the Desktop Entry\n Specification by freedesktop.org. See:\n http://freedesktop.org/Standards/desktop-entry-spec\n These should work for both KDE and Gnome2\n\n An entry is a .directory file that includes the display name, icon, etc.\n It ...
12
false
ContinuumIO/menuinst
make_directory_entry
14,020
LDU_FT/contains-io/typet/_get_bases
LDU_FT
[ "<BEGIN>\n## `_get_bases`", "Get the base and meta classes to use in creating a subclass.", " Args:\n type_: The type to subclass.", " Returns:\n A tuple containing two values: a base class, and a metaclass.\n<END>", "<BEGIN>\n## `_instantiate`", "Instantiate the object...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_bases API. 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_bases API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
Get the base and meta classes to use in creating a subclass. Args: type_: The type to subclass. Returns: A tuple containing two values: a base class, and a metaclass.
"Get the base and meta classes to use in creating a subclass.\n\n Args:\n type_: The type to subclass.\n\n Returns:\n A tuple containing two values: a base class, and a metaclass."
78
false
contains-io/typet
_get_bases
14,021
LDU_FT/amsehili/auditok/is_valid
LDU_FT
[ "<BEGIN>\n## `set_mode`", ":Parameters:", " `mode` : *(int)*\n New mode, must be one of:", " - `StreamTokenizer.STRICT_MIN_LENGTH`", " - `StreamTokenizer.DROP_TRAILING_SILENCE`", " - `StreamTokenizer.STRICT_MIN_LENGTH | StreamTokenizer.DROP_TRAILI...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_valid API. 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 is_valid API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
Check if data is valid. Audio data will be converted into an array (of signed values) of which the log energy is computed. Log energy is computed as follows: .. code:: python arr = AudioEnergyValidator._convert(signal, sample_width) energy = float(numpy.dot(arr, arr)) /...
"Check if data is valid. Audio data will be converted into an array (of\n signed values) of which the log energy is computed. Log energy is computed\n as follows:\n\n .. code:: python\n\n arr = AudioEnergyValidator._convert(signal, sample_width)\n energy = float(numpy.dot(arr,...
84
false
amsehili/auditok
is_valid
14,022
LDU_FT/xenadevel/PyXenaManager/ports
LDU_FT
[ "<BEGIN>\n## `sendQuery`", "Send command, wait for response (single or multi lines), test for errors and return the returned code.", " :param cmd: command to send\n :param multilines: True - multiline response, False - single line response.\n :return: command return value.\n<END>", "<BEGI...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the ports API. 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 ports API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
:return: dictionary {index: object} of all ports.
":return: dictionary {index: object} of all ports."
140
false
xenadevel/PyXenaManager
ports
14,023
LDU_FT/mlperf/training/evaluate_model
LDU_FT
[ "<BEGIN>\n## `sorted_product_set`", "Compute the product set of array_a and array_b and sort it.\n<END>", "<BEGIN>\n## `set_low_quality_matches_`", "Produce additional matches for predictions that have only low-quality matches.\n Specifically, for each ground-truth find the set of predictions that have...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the evaluate_model API. 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 evaluate_model API. 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...
Evaluate one model against a target. Args: eval_model_path: the path to the model to evaluate. target_model_path: the path to the model to compare to. sgf_dif: directory path to write SGF output to. seed: random seed to use when running eval. Returns: The win-rate of eval_model against target_...
"Evaluate one model against a target.\n\n Args:\n eval_model_path: the path to the model to evaluate.\n target_model_path: the path to the model to compare to.\n sgf_dif: directory path to write SGF output to.\n seed: random seed to use when running eval.\n\n Returns:\n The win-rate of eval_model again...
1,285
true
mlperf/training
evaluate_model
14,024
LDU_FT/Crypto-toolbox/bitex/_register_diff_order_book_channels
LDU_FT
[ "<BEGIN>\n## `_restart_thread`", "Restarts subscription threads if their connection drops.\n :return:\n<END>", "<BEGIN>\n## `_subscription_thread`", "Thread Method, running the connection for each endpoint.\n :param endpoint:\n :return:\n<END>", "<BEGIN>\n## `start`", "Starts threads....
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _register_diff_order_book_channels API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _register_diff_order_book_channels API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its...
Registers the binding for the diff_order_book channels. :return:
"Registers the binding for the diff_order_book channels.\n :return:"
79
false
Crypto-toolbox/bitex
_register_diff_order_book_channels
14,025
LDU_FT/mugurbil/gnm/prior
LDU_FT
[ "<BEGIN>\n## `update_params`", "Update parameters\n updates mean and precision to the step size\n Inputs:\n state :\n mu :\n mean\n L :\n cholesky factor of the precision matrix\n t : \n step size\n Outputs:\n mu :\n...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the prior API. 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 prior API. 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...
Set prior Set prior values Inputs : m : mean of the prior H : precision matrix of the prior Hiddens : ln_H_ : log(det(H))/2 calculate this once to use everytime log prior is called Hm : < H, m > calculate this once ...
"Set prior\n Set prior values\n Inputs : \n m : \n mean of the prior\n H : \n precision matrix of the prior\n Hiddens :\n ln_H_ : log(det(H))/2\n calculate this once to use everytime log prior is called\n Hm : < H, m >\n calculat...
42
false
mugurbil/gnm
prior
14,026
LDU_FT/PedalPi/PluginsManager/save
LDU_FT
[ "<BEGIN>\n## `load`", "Load the index file and reorder the banks based in order listed in index", " :param list[Indexable] indexables: Banks that will be reordered based in index file\n :return list[Bank]: Banks reordered\n<END>", "<BEGIN>\n## `register`", "Register an observer for it be notif...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the save API. 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 save API. 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...
Save all data from a banks_manager :param BanksManager banks_manager: BanksManager that your banks data will be persisted
"Save all data from a banks_manager\n\n :param BanksManager banks_manager: BanksManager that your banks data will be persisted"
139
false
PedalPi/PluginsManager
save
14,027
LDU_FT/ethan92429/onshapepy/get_params
LDU_FT
[ "<BEGIN>\n## `log`", "Logs a message to the console, with optional level paramater", " Args:\n - msg (str): message to send to console\n - level (int): log level; 0 for info, 1 for error (default = 0)\n<END>", "<BEGIN>\n## `parse_quantity`", "Parse an OnShape units definition\n Args:\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_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 extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_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 extrac...
Manually pull params defined in config from OnShape and return a python representation of the params. Quantities are converted to pint quantities, Bools are converted to python bools and Enums are converted to strings. Note that Enum names are autogenerated by OnShape and do not match the name on the On...
"Manually pull params defined in config from OnShape and return a python representation of the params.\n Quantities are converted to pint quantities, Bools are converted to python bools and Enums are converted\n to strings. Note that Enum names are autogenerated by OnShape and do not match the name on the...
93
false
ethan92429/onshapepy
get_params
14,028
LDU_FT/OpenGov/python_data_wrap/GetCellStyle
LDU_FT
[ "<BEGIN>\n## `read`", "Loads an arbitrary file type (xlsx, xls, or csv like) and returns\n a list of 2D tables. For csv files this will be a list of one table,\n but excel formats can have many tables/worksheets.", " TODO:\n Add wrapper which can be closed/exited on each file type which cleans\n...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the GetCellStyle API. 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 GetCellStyle API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
get the "style" of a cell note: this merges default, column, row and the cell's style into the actual style for you returning a dictionary of styles The values directly from excel with the relavent XML element appended to the name. Examples of style key/value pairs ...
"get the \"style\" of a cell\r\n note: this merges default, column, row and the cell's style into the actual style for you returning a dictionary of styles\r\n The values directly from excel with the relavent XML element appended to the name. Examples of style key/value pai...
94
false
OpenGov/python_data_wrap
GetCellStyle
14,029
LDU_FT/lawsie/guizero/insert
LDU_FT
[ "<BEGIN>\n## `value_text`", "Sets or returns the option selected in a ButtonGroup by its text value.\n<END>", "<BEGIN>\n## `resize`", "Resizes the widget.", " :param int width:\n The width of the widget.", " :param int height:\n The height of the widget.\n<END>", "<BE...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the insert API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the insert API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Insert a new `option` in the ButtonGroup at `index`. :param int option: The index of where to insert the option. :param string/List option: The option to append to the ButtonGroup. If a 2D list is specified, the first element is the text, the second is the value.
"Insert a new `option` in the ButtonGroup at `index`.\n\n :param int option:\n The index of where to insert the option.\n\n :param string/List option:\n The option to append to the ButtonGroup. If a 2D list is specified,\n the first element is the text, the second is the v...
173
false
lawsie/guizero
insert
14,030
LDU_FT/computational-metabolomics/msp2db/insert_query_m
LDU_FT
[ "<BEGIN>\n## `create_db`", "Create an empty SQLite database for library spectra.", " Example:\n >>> from msp2db.db import create_db\n >>> db_pth = 'library.db'\n >>> create_db(file_pth=db_pth)", " Args:\n file_pth (str): File path for SQLite database\n<END>", "<BEGIN>\n## `...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the insert_query_m API. 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 insert_query_m API. 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...
Insert python list of tuples into SQL table Args: data (list): List of tuples table (str): Name of database table conn (connection object): database connection object columns (str): String of column names to use if not assigned then all columns are presumed to be used [Optional] ...
"Insert python list of tuples into SQL table\n\n Args:\n data (list): List of tuples\n table (str): Name of database table\n conn (connection object): database connection object\n columns (str): String of column names to use if not assigned then all columns are presumed to be used [Option...
79
false
computational-metabolomics/msp2db
insert_query_m
14,031
LDU_FT/Kaggle/kaggle-api/parameters_to_tuples
LDU_FT
[ "<BEGIN>\n## `language`", "Sets the language of this KernelPushRequest.", " The language that the kernel is written in # noqa: E501", " :param language: The language of this KernelPushRequest. # noqa: E501\n :type: str\n<END>", "<BEGIN>\n## `kernel_type`", "Sets the kernel_type of t...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parameters_to_tuples 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 parameters_to_tuples API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Get parameters as list of tuples, formatting collections. :param params: Parameters as dict or list of two-tuples :param dict collection_formats: Parameter collection formats :return: Parameters as list of tuples, collections formatted
"Get parameters as list of tuples, formatting collections.\n\n :param params: Parameters as dict or list of two-tuples\n :param dict collection_formats: Parameter collection formats\n :return: Parameters as list of tuples, collections formatted"
304
false
Kaggle/kaggle-api
parameters_to_tuples
14,032
LDU_FT/secure-systems-lab/securesystemslib/format_keyval_to_metadata
LDU_FT
[ "<BEGIN>\n## `get_password`", "<Purpose>\n Return the password entered by the user. If 'confirm' is True, the user is\n asked to enter the previously entered password once again. If they match,\n the password is returned to the caller.", " <Arguments>\n prompt:\n The text of the password pro...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the format_keyval_to_metadata 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 format_keyval_to_metadata API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi...
<Purpose> Return a dictionary conformant to 'securesystemslib.formats.KEY_SCHEMA'. If 'private' is True, include the private key. The dictionary returned has the form: {'keytype': keytype, 'scheme' : scheme, 'keyval': {'public': '...', 'private': '...'}} or if 'private' ...
"<Purpose>\n Return a dictionary conformant to 'securesystemslib.formats.KEY_SCHEMA'.\n If 'private' is True, include the private key. The dictionary\n returned has the form:\n\n {'keytype': keytype,\n 'scheme' : scheme,\n 'keyval': {'public': '...',\n 'private': '...'}}\n\n or if...
663
false
secure-systems-lab/securesystemslib
format_keyval_to_metadata
14,033
LDU_FT/PrefPy/prefpy/CopelandWinner
LDU_FT
[ "<BEGIN>\n## `mse`", "Description:\r\n Calculates the Mean Squared Error (MSE) of\r\n an estimation on flat numpy ndarrays.\r\n Parameters:\r\n mean: actual value (numpy ndarray)\r\n estimator: estimated value of the mean (numpy ndarray)\n<END>", "<BEGIN>\n## `sse`", "Descr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the CopelandWinner API. 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 CopelandWinner API. 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...
Returns an integer that represents the winning candidate given an election profile. Tie-breaking rule: numerically increasing order :ivar Profile profile: A Profile object that represents an election profile.
"Returns an integer that represents the winning candidate given an election profile.\n Tie-breaking rule: numerically increasing order\n\n :ivar Profile profile: A Profile object that represents an election profile."
316
false
PrefPy/prefpy
CopelandWinner
14,034
LDU_FT/TissueMAPS/TmClient/register_microscope_files
LDU_FT
[ "<BEGIN>\n## `map_logging_verbosity`", "Parameters\n ----------\n verbosity: int\n logging verbosity level (0-4)", " Returns\n -------\n A logging level as exported by `logging` module.\n By default returns logging.NOTSET", " Raises\n ------\n TypeError\n when `verbosi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the register_microscope_files 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 register_microscope_files API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi...
Register microscope files contained in `path` (Server side). If `path` is a directory, upload all files contained in it. Parameters ---------- plate_name: str name of the parent plate acquisition_name: str name of the parent acquisition path: str ...
"Register microscope files contained in `path` (Server side).\n If `path` is a directory, upload all files contained in it.\n\n Parameters\n ----------\n plate_name: str\n name of the parent plate\n acquisition_name: str\n name of the parent acquisition\n ...
203
false
TissueMAPS/TmClient
register_microscope_files
14,035
LDU_FT/jjgomera/iapws/_tab_P
LDU_FT
[ "<BEGIN>\n## `_Tb`", "Procedure to calculate the boiling temperature of seawater", " Parameters\n ----------\n P : float\n Pressure, [MPa]\n S : float\n Salinity, [kg/kg]", " Returns\n -------\n Tb : float\n Boiling temperature, [K]", " References\n ----------...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _tab_P API. 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 _tab_P API. 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 ...
Define the boundary between Region 3a-3b, T=f(P) Parameters ---------- P : float Pressure, [MPa] Returns ------- T : float Temperature, [K] References ---------- IAPWS, Revised Supplementary Release on Backward Equations for Specific Volume as a Function of Pre...
"Define the boundary between Region 3a-3b, T=f(P)\n\n Parameters\n ----------\n P : float\n Pressure, [MPa]\n\n Returns\n -------\n T : float\n Temperature, [K]\n\n References\n ----------\n IAPWS, Revised Supplementary Release on Backward Equations for Specific\n Volume as a...
574
false
jjgomera/iapws
_tab_P
14,036
LDU_FT/asascience-open/paegan-transport/__reverse
LDU_FT
[ "<BEGIN>\n## `export`", "Export particle data to CF trajectory convention\n netcdf file\n<END>", "<BEGIN>\n## `export`", "Export particle and datetime data to Pickled objects.\n This can be used to debug or to generate different output\n in the future.\n<END>", "<BEGIN>\n## ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the __reverse API. 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 __reverse API. 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...
If we hit the bathymetry, set the location to where we came from.
"If we hit the bathymetry, set the location to where we came from."
98
false
asascience-open/paegan-transport
__reverse
14,037
LDU_FT/Pegase745/sqlalchemy-datatables/home
LDU_FT
[ "<BEGIN>\n## `clean_regex`", "Escape any regex special characters other than alternation.", " :param regex: regex from datatables interface\n :type regex: str\n :rtype: str with regex to use with database\n<END>", "<BEGIN>\n## `output_result`", "Output results in the format needed by DataTables.\n<...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the home API. 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 home API. 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...
Try to connect to database, and list available examples.
"Try to connect to database, and list available examples."
17
false
Pegase745/sqlalchemy-datatables
home
14,038
LDU_FT/ikalnytskyi/dooku/to_iso8601
LDU_FT
[ "<BEGIN>\n## `to_iso8601`", "Returns an ISO-8601 representation of a given datetime instance.", " >>> to_iso8601(datetime.datetime.now())\n '2014-10-01T23:21:33.718508Z'", " :param dt: a :class:`~datetime.datetime` instance\n :param tz: a :class:`~datetime.tzinfo` to use; if None - use a d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the to_iso8601 API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the to_iso8601 API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
Returns an ISO-8601 representation of a given datetime instance. >>> to_iso8601(datetime.datetime.now()) '2014-10-01T23:21:33.718508Z' :param dt: a :class:`~datetime.datetime` instance :param tz: a :class:`~datetime.tzinfo` to use; if None - use a default one
"Returns an ISO-8601 representation of a given datetime instance.\n\n >>> to_iso8601(datetime.datetime.now())\n '2014-10-01T23:21:33.718508Z'\n\n :param dt: a :class:`~datetime.datetime` instance\n :param tz: a :class:`~datetime.tzinfo` to use; if None - use a default one"
36
false
ikalnytskyi/dooku
to_iso8601
14,039
LDU_FT/evandempsey/fp-growth/tree_has_single_path
LDU_FT
[ "<BEGIN>\n## `find_frequent_patterns`", "Given a set of transactions, find the patterns in it\n over the specified support threshold.\n<END>", "<BEGIN>\n## `generate_association_rules`", "Given a set of frequent itemsets, return a dict\n of association rules in the form\n {(left): ((right), confidenc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the tree_has_single_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. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the tree_has_single_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. ...
If there is a single path in the tree, return True, else return False.
"If there is a single path in the tree,\n return True, else return False."
22
false
evandempsey/fp-growth
tree_has_single_path
14,040
LDU_FT/jeongyoonlee/Kaggler/func
LDU_FT
[ "<BEGIN>\n## `fit`", "Train a network with the quasi-Newton method.", " Args:\n X (np.array of float): feature matrix for training\n y (np.array of float): target values for training\n X_val (np.array of float): feature matrix for validation\n y_val (np.array o...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the func API. 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 func API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
Return the costs of the neural network for predictions. Args: w (array of float): weight vectors such that: w[:-h1] -- weights between the input and h layers w[-h1:] -- weights between the h and output layers args: features (args[0]) and target (args[1]) ...
"Return the costs of the neural network for predictions.\n\n Args:\n w (array of float): weight vectors such that:\n w[:-h1] -- weights between the input and h layers\n w[-h1:] -- weights between the h and output layers\n args: features (args[0]) and target (ar...
114
false
jeongyoonlee/Kaggler
func
14,041
LDU_FT/pyscaffold/configupdater/read
LDU_FT
[ "<BEGIN>\n## `add_before`", "Returns a builder inserting a new block before the current block\n<END>", "<BEGIN>\n## `add_after`", "Returns a builder inserting a new block after the current block\n<END>", "<BEGIN>\n## `comment`", "Creates a comment block", " Args:\n text (str): content ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the read API. 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 read API. 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...
Read and parse a filename. Args: filename (str): path to file encoding (str): encoding of file, default None
"Read and parse a filename.\n\n Args:\n filename (str): path to file\n encoding (str): encoding of file, default None"
78
false
pyscaffold/configupdater
read
14,042
LDU_FT/Godley/MuseParse/clear
LDU_FT
[ "<BEGIN>\n## `get`", "method to fetch all contents as a list", " :return: list\n<END>", "<BEGIN>\n## `toLily`", "Method which converts the object instance and its attributes to a string of lilypond code", " :return: str of lilypond code\n<END>", "<BEGIN>\n## `Find`", "method for finding ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the clear API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the clear API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
Method which resets any variables held by this class, so that the parser can be used again :return: Nothing
"Method which resets any variables held by this class, so that the parser can be used again\n :return: Nothing"
113
false
Godley/MuseParse
clear
14,043
LDU_FT/diffeo/yakonfig/overlay_config
LDU_FT
[ "<BEGIN>\n## `create`", "Create a sub-object of this factory.", " Instantiates the `configurable` object with the current saved\n :attr:`config`. This essentially translates to\n ``configurable(**config)``, except services defined in the\n parent and requested by `configurable` (by ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the overlay_config API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the overlay_config API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
Overlay one configuration over another. This overlays `overlay` on top of `base` as follows: * If either isn't a dictionary, returns `overlay`. * Any key in `base` not present in `overlay` is present in the result with its original value. * Any key in `overlay` with value :const:`None` is not pr...
"Overlay one configuration over another.\n\n This overlays `overlay` on top of `base` as follows:\n\n * If either isn't a dictionary, returns `overlay`.\n * Any key in `base` not present in `overlay` is present in the\n result with its original value.\n * Any key in `overlay` with value :const:`None` i...
114
false
diffeo/yakonfig
overlay_config
14,044
LDU_FT/bmwcarit/zubbi/parse_job_files
LDU_FT
[ "<BEGIN>\n## `verify_signature`", "Verify that the payload was sent from our GitHub instance.\n<END>", "<BEGIN>\n## `parse_job_files`", "Check for job definitions in known zuul files.\n<END>", "<BEGIN>\n## `_initialize_repo_cache`", "Initialize the repository cache used for scraping.", " Retrieves a ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_job_files API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_job_files API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
Check for job definitions in known zuul files.
"Check for job definitions in known zuul files."
22
false
bmwcarit/zubbi
parse_job_files
14,045
LDU_FT/ivelum/graphql-py/p_field_optional1_1
LDU_FT
[ "<BEGIN>\n## `p_operation_definition1`", "operation_definition : operation_type name variable_definitions directives selection_set\n<END>", "<BEGIN>\n## `p_operation_definition2`", "operation_definition : operation_type name variable_definitions selection_set\n<END>", "<BEGIN>\n## `p_operation_definition3`"...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the p_field_optional1_1 API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the p_field_optional1_1 API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
field : name arguments directives selection_set
"field : name arguments directives selection_set"
36
false
ivelum/graphql-py
p_field_optional1_1
14,046
LDU_FT/jonaprieto/ponywhoosh/delete_field
LDU_FT
[ "<BEGIN>\n## `add_field`", "Add a field in the index of the model.", " Args:\n fieldname (Text): This parameters register a new field in specified model.\n fieldspec (Name, optional): This option adds various options as were described before.", " Returns:\n TYPE: The new schema afte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the delete_field API. 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 delete_field API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
This function deletes one determined field using the command MODEL.pw.delete_field(FIELD) Args: field_name (string): This argument let you delete some field for some model registered in the index. Returns: (WhooshSchema): The new schema after deleted is returned.
"This function deletes one determined field using the command MODEL.pw.delete_field(FIELD)\n\n Args:\n field_name (string): This argument let you delete some field for some model registered in the index.\n\n Returns:\n (WhooshSchema): The new schema after deleted is returned."
35
false
jonaprieto/ponywhoosh
delete_field
14,047
LDU_FT/atlassian-api/atlassian-python-api/tempo_account_associate_with_jira_project
LDU_FT
[ "<BEGIN>\n## `clean_draft_pages_from_space`", "Remove draft pages from space using datetime.now\n :param confluence:\n :param space_key:\n :param count:\n :param date_now:\n :return: int counter\n<END>", "<BEGIN>\n## `clean_all_draft_pages_from_all_spaces`", "Remove all draft pages for all spac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the tempo_account_associate_with_jira_project API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indica...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the tempo_account_associate_with_jira_project API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indica...
The AccountLinkBean for associate Account with project Adds a link to an Account. { scopeType:PROJECT defaultAccount:boolean linkType:IMPORTED | MANUAL name:string key:string accountId:number scope:number id:...
"The AccountLinkBean for associate Account with project\n Adds a link to an Account.\n {\n scopeType:PROJECT\n defaultAccount:boolean\n linkType:IMPORTED | MANUAL\n name:string\n key:string\n accountId:number\n scope:number\n ...
414
false
atlassian-api/atlassian-python-api
tempo_account_associate_with_jira_project
14,048
LDU_FT/UpCloudLtd/upcloud-python-api/prepare_post_body
LDU_FT
[ "<BEGIN>\n## `get_storages`", "Return a list of Storage objects from the API.", " Storage types: public, private, normal, backup, cdrom, template, favorite\n<END>", "<BEGIN>\n## `create_storage`", "Create a Storage object. Returns an object based on the API's response.\n<END>", "<BEGIN>\n## `modify...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the prepare_post_body API. 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 prepare_post_body API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Prepare a JSON serializable dict from a Server instance with nested. Storage instances.
"Prepare a JSON serializable dict from a Server instance with nested.\n\n Storage instances."
153
false
UpCloudLtd/upcloud-python-api
prepare_post_body
14,049
LDU_FT/ResidentMario/geoplot/kdeplot
LDU_FT
[ "<BEGIN>\n## `load`", "A moderately mind-bendy meta-method which abstracts the internals of individual projections' load procedures.", " Parameters\n ----------\n proj : geoplot.crs object instance\n A disguised reference to ``self``.\n df : GeoDataFrame\n The G...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the kdeplot API. 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 kdeplot API. 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...
Spatial kernel density estimate plot. Parameters ---------- df : GeoDataFrame The data being plotted. projection : geoplot.crs object instance, optional A geographic projection. For more information refer to `the tutorial page on projections <https://nbviewer.jupyter.org/github/...
"Spatial kernel density estimate plot.\n\n Parameters\n ----------\n df : GeoDataFrame\n The data being plotted.\n projection : geoplot.crs object instance, optional\n A geographic projection. For more information refer to `the tutorial page on projections\n <https://nbviewer.jupyter.or...
404
false
ResidentMario/geoplot
kdeplot
14,050
LDU_FT/hmmlearn/hmmlearn/_log_multivariate_normal_density_diag
LDU_FT
[ "<BEGIN>\n## `log_multivariate_normal_density`", "Compute the log probability under a multivariate Gaussian distribution.\n Parameters\n ----------\n X : array_like, shape (n_samples, n_features)\n List of n_features-dimensional data points. Each row corresponds to a\n single data point.\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _log_multivariate_normal_density_diag API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _log_multivariate_normal_density_diag API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates ...
Compute Gaussian log-density at X for a diagonal model.
"Compute Gaussian log-density at X for a diagonal model."
108
false
hmmlearn/hmmlearn
_log_multivariate_normal_density_diag
14,051
LDU_FT/moonso/ped_parser/to_json
LDU_FT
[ "<BEGIN>\n## `get_individual`", "Return a individual object based on the indata.", " Arguments:\n family_id (str): The id for this family\n sample_id (str): The id for this sample\n father_id (str): The id for this samples father\n mother_id (str): The id for t...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the to_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 extracted...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the to_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 extracted...
Return the individual info in a dictionary for json.
"Return the individual info in a dictionary for json."
79
false
moonso/ped_parser
to_json
14,052
LDU_FT/aws/sagemaker-python-sdk/_initialize
LDU_FT
[ "<BEGIN>\n## `deploy`", "Deploy this ``Model`` to an ``Endpoint`` and optionally return a ``Predictor``.", " Create a SageMaker ``Model`` and ``EndpointConfig``, and deploy an ``Endpoint`` from this ``Model``.\n If ``self.predictor_cls`` is not None, this method returns a the result of invoking\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _initialize API. 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 _initialize API. 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...
Initialize this SageMaker Session. Creates or uses a boto_session, sagemaker_client and sagemaker_runtime_client. Sets the region_name.
"Initialize this SageMaker Session.\n\n Creates or uses a boto_session, sagemaker_client and sagemaker_runtime_client.\n Sets the region_name."
796
false
aws/sagemaker-python-sdk
_initialize
14,053
LDU_FT/release-engineering/productmd/_validate_version
LDU_FT
[ "<BEGIN>\n## `parse_nvra`", "Parse RPM N-E:V-R.A string to a dict.", " :param nvra: N-E:V-R.A string. This can be a file name or a file path including the '.rpm' suffix.\n :type nvra: str\n :rtype: dict, with \"name\", \"epoch\", \"version\", \"release\", and \"arch\" elements.\n<END>", "<BEGIN>\n## ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _validate_version API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _validate_version API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
If the version starts with a digit, it must be a sematic-versioning style string.
"If the version starts with a digit, it must be a sematic-versioning\n style string."
61
false
release-engineering/productmd
_validate_version
14,054
LDU_FT/spencerahill/aospy/_get_all_data
LDU_FT
[ "<BEGIN>\n## `_preprocess_and_rename_grid_attrs`", "Call a custom preprocessing method first then rename grid attrs.", " This wrapper is needed to generate a single function to pass to the\n ``preprocesss`` of xr.open_mfdataset. It makes sure that the\n user-specified preprocess function is called on ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_all_data API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_all_data API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
Get the needed data from all of the vars in the calculation.
"Get the needed data from all of the vars in the calculation."
323
false
spencerahill/aospy
_get_all_data
14,055
LDU_FT/ui/django-post_office/get_email_template
LDU_FT
[ "<BEGIN>\n## `get_upload_path`", "Overriding to store the original filename\n<END>", "<BEGIN>\n## `get_prep_value`", "We need to accomodate queries where a single email,\n or list of email addresses is supplied as arguments. For example:", " - Email.objects.filter(to='mail@example.com')\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_email_template 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_email_template 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...
Function that returns an email template instance, from cache or DB.
"Function that returns an email template instance, from cache or DB."
40
false
ui/django-post_office
get_email_template
14,056
LDU_FT/mbodenhamer/syn/assert_type_equivalent
LDU_FT
[ "<BEGIN>\n## `assign`", "Assigns B to A.attr, yields, and then assigns A.attr back to its\n original value.\n<END>", "<BEGIN>\n## `nearest_base`", "Returns the closest ancestor to cls in bases.\n<END>", "<BEGIN>\n## `get_typename`", "Returns the name of the type of x, if x is an object. Otherwise, ret...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the assert_type_equivalent 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 assert_type_equivalent API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
Asserts that o1 and o2 are distinct, yet equivalent objects of the same type
"Asserts that o1 and o2 are distinct, yet equivalent objects of the same type"
71
false
mbodenhamer/syn
assert_type_equivalent
14,057
LDU_FT/phaethon/kamene/deactivateAaPdpContextRequest
LDU_FT
[ "<BEGIN>\n## `post_build`", "Called implicitly before a packet is sent.\n<END>", "<BEGIN>\n## `float_encode`", "Convert the integer value to its IGMPv3 encoded time value if needed.", " If value < 128, return the value specified. If >= 128, encode as a floating \n point value. Value can be 0 - 31744.\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the deactivateAaPdpContextRequest API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the deactivateAaPdpContextRequest API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conc...
DEACTIVATE AA PDP CONTEXT REQUEST Section 9.5.13
"DEACTIVATE AA PDP CONTEXT REQUEST Section 9.5.13"
477
false
phaethon/kamene
deactivateAaPdpContextRequest
14,058
LDU_FT/siznax/wptools/_load_response
LDU_FT
[ "<BEGIN>\n## `_add_members`", "Adds category members and subcategories to data\n<END>", "<BEGIN>\n## `_set_data`", "Set category member data from API response\n<END>", "<BEGIN>\n## `get_members`", "GET Mediawiki:API (action=query) category members\n https://www.mediawiki.org/wiki/API:Categorymember...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _load_response API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _load_response API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
returns API reponse from cache or raises ValueError
"returns API reponse from cache or raises ValueError"
179
false
siznax/wptools
_load_response
14,059
LDU_FT/qiniu/python-sdk/enable_ap_port
LDU_FT
[ "<BEGIN>\n## `execute`", "执行持久化处理:", " Args:\n key: 待处理的源文件\n fops: 处理详细操作,规格详见 https://developer.qiniu.com/dora/manual/1291/persistent-data-processing-pfop\n force: 强制执行持久化处理开关", " Returns:\n 一个dict变量,返回持久化处理的persistentId,类似{\"persistentId\": 54...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the enable_ap_port API. 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 enable_ap_port API. 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...
开启接入点端口 开启临时关闭的接入点端口,仅对公网域名,公网ip有效。 Args: - apid: 接入点ID - port: 要设置的端口号 Returns: 返回一个tuple对象,其格式为(<result>, <ResponseInfo>) - result 成功返回空dict{},失败返回{"error": "<errMsg string>"} - ResponseInfo 请求的Response信息
"开启接入点端口\n\n 开启临时关闭的接入点端口,仅对公网域名,公网ip有效。\n\n Args:\n - apid: 接入点ID\n - port: 要设置的端口号\n\n Returns:\n 返回一个tuple对象,其格式为(<result>, <ResponseInfo>)\n - result 成功返回空dict{},失败返回{\"error\": \"<errMsg string>\"}\n - ResponseInfo 请求的Response信...
337
false
qiniu/python-sdk
enable_ap_port
14,060
LDU_FT/chop-dbhi/varify/get_assessment_data
LDU_FT
[ "<BEGIN>\n## `set_cell_value`", "Convenience method for setting the value of an openpyxl cell", " This is necessary since the value property changed from internal_value\n to value between version 1.* and 2.*.\n<END>", "<BEGIN>\n## `get_change_type`", "Given ref, allele1, and allele2, returns the type ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_assessment_data API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_assessment_data API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
Calculates and sets the following data for the supplied queryset: data = { 'count': <the number of items in the queryset> 'percentage': <percentage of total_count queryset represents> 'is_user_call': <true if user made this call, false otherwise> ...
"Calculates and sets the following data for the supplied queryset:\n data = {\n 'count': <the number of items in the queryset>\n 'percentage': <percentage of total_count queryset represents>\n 'is_user_call': <true if user made this call, false otherwise>\n ...
27
false
chop-dbhi/varify
get_assessment_data
14,061
LDU_FT/michaelaye/pyciss/spiceinit
LDU_FT
[ "<BEGIN>\n## `get_config`", "Read the configfile and return config dict.", " Returns\n -------\n dict\n Dictionary with the content of the configpath file.\n<END>", "<BEGIN>\n## `set_database_path`", "Use to write the database path into the config.", " Parameters\n ----------\n db...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the spiceinit API. 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 spiceinit API. 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...
Perform either normal spiceinit or one for ringdata. Note how Python name-spacing can distinguish between the method and the function with the same name. `spiceinit` from the outer namespace is the one imported from pysis.
"Perform either normal spiceinit or one for ringdata.\n\n Note how Python name-spacing can distinguish between the method\n and the function with the same name. `spiceinit` from the outer\n namespace is the one imported from pysis."
83
false
michaelaye/pyciss
spiceinit
14,062
LDU_FT/ocadotechnology/django-closuretree/_toplevel
LDU_FT
[ "<BEGIN>\n## `create_closure_model`", "Creates a <Model>Closure model in the same module as the model.\n<END>", "<BEGIN>\n## `_toplevel`", "Find the top level of the chain we're in.", " For example, if we have:\n C inheriting from B inheriting from A inheriting from ClosureModel\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _toplevel API. 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 _toplevel API. 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...
Find the top level of the chain we're in. For example, if we have: C inheriting from B inheriting from A inheriting from ClosureModel C._toplevel() will return A.
"Find the top level of the chain we're in.\n\n For example, if we have:\n C inheriting from B inheriting from A inheriting from ClosureModel\n C._toplevel() will return A."
17
false
ocadotechnology/django-closuretree
_toplevel
14,063
LDU_FT/sdss/tree/get_requirements
LDU_FT
[ "<BEGIN>\n## `set_roots`", "Set the roots of the tree in the os environment", " Parameters:\n uproot_with (str):\n A new TREE_DIR path used to override an existing TREE_DIR environment variable\n<END>", "<BEGIN>\n## `load_config`", "loads a config file", " Parameter...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_requirements API. 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_requirements API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Get the proper requirements file based on the optional argument
"Get the proper requirements file based on the optional argument"
70
false
sdss/tree
get_requirements
14,064
LDU_FT/tyiannak/pyAudioAnalysis/flags2segs
LDU_FT
[ "<BEGIN>\n## `recordAnalyzeAudio`", "recordAnalyzeAudio(duration, outputWavFile, midTermBufferSizeSec, modelName, modelType)", "\tThis function is used to record and analyze audio segments, in a fix window basis.", "\tARGUMENTS: \n\t- duration\t\t\ttotal recording duration\n\t- outputWavFile\t\t\tpath of the ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the flags2segs API. 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 flags2segs API. 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...
ARGUMENTS: - flags: a sequence of class flags (per time window) - window: window duration (in seconds) RETURNS: - segs: a sequence of segment's limits: segs[i,0] is start and segs[i,1] are start and end point of segment i - classes: a sequence of class flags...
"ARGUMENTS:\n - flags: a sequence of class flags (per time window)\n - window: window duration (in seconds)\n\n RETURNS:\n - segs: a sequence of segment's limits: segs[i,0] is start and\n segs[i,1] are start and end point of segment i\n - classes: a sequence of cla...
99
false
tyiannak/pyAudioAnalysis
flags2segs
14,065
LDU_FT/tus/tus-py-client/get_offset
LDU_FT
[ "<BEGIN>\n## `headers`", "Return headers of the uploader instance. This would include the headers of the\n client instance.\n<END>", "<BEGIN>\n## `headers_as_list`", "Does the same as 'headers' except it is returned as a list.\n<END>", "<BEGIN>\n## `get_offset`", "Return offset from tus server.", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_offset API. 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_offset API. 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 offset from tus server. This is different from the instance attribute 'offset' because this makes an http request to the tus server to retrieve the offset.
"Return offset from tus server.\n\n This is different from the instance attribute 'offset' because this makes an\n http request to the tus server to retrieve the offset."
34
false
tus/tus-py-client
get_offset
14,066
LDU_FT/volafiled/python-volapi/listen
LDU_FT
[ "<BEGIN>\n## `register_callback`", "Register callback that we will have to wait for\n<END>", "<BEGIN>\n## `_handle_callback`", "Handle lain's callback. Only used with getFileinfo so far\n<END>", "<BEGIN>\n## `_handle_config`", "Handle initial config push and config changes\n<END>", "<BEGIN>\n## `find_ve...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the listen API. 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 listen API. 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 ...
Listen for changes in all registered listeners.
"Listen for changes in all registered listeners."
78
false
volafiled/python-volapi
listen
14,067
LDU_FT/PythonOptimizers/cygenja/find_files
LDU_FT
[ "<BEGIN>\n## `set_parent`", "Attach node to its parent.", " Args:\n node: Parent node.", " Note:\n ``node`` can be ``None``. In that case, the node is detached from its previous parent.\n<END>", "<BEGIN>\n## `set_child_node`", "Add one child node to this node.", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_files API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_files API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
Yield a list of files with their base directories, recursively or not. Returns: A list of (base_directory, filename) Args: directory: base directory to start the search. pattern: fnmatch pattern for filenames. complete_filename: return complete filename or not? recursiv...
"Yield a list of files with their base directories, recursively or not.\n\n Returns:\n A list of (base_directory, filename)\n\n Args:\n directory: base directory to start the search.\n pattern: fnmatch pattern for filenames.\n complete_filename: return complete filename or not?\n ...
132
false
PythonOptimizers/cygenja
find_files
14,068
LDU_FT/uw-it-aca/uw-restclients-nws/get_subscriptions_by_channel_id_and_person_id
LDU_FT
[ "<BEGIN>\n## `get_endpoint_by_subscriber_id_and_protocol`", "Get an endpoint by subscriber_id and protocol\n<END>", "<BEGIN>\n## `get_endpoints_by_subscriber_id`", "Search for all endpoints by a given subscriber\n<END>", "<BEGIN>\n## `resend_sms_endpoint_verification`", "Calls NWS function to resend verif...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_subscriptions_by_channel_id_and_person_id API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> in...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_subscriptions_by_channel_id_and_person_id API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> in...
Search for all subscriptions by a given channel and person
"Search for all subscriptions by a given channel and person"
44
false
uw-it-aca/uw-restclients-nws
get_subscriptions_by_channel_id_and_person_id
14,069
LDU_FT/ska-sa/purr/y_pos
LDU_FT
[ "<BEGIN>\n## `rotate`", "Rotate a coordinate around point (0,0).\n - x and y specify the coordinate.\n - degree is a number from 0 to 360.\n Returns a new coordinate.\n<END>", "<BEGIN>\n## `_compute_bounding_box`", "Given the list of coordinates (x,y), this procedure computes\n the smallest rectan...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the y_pos API. 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 y_pos API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
Return the y position (on the canvas) corresponding to YVAL.
"Return the y position (on the canvas) corresponding to YVAL."
265
false
ska-sa/purr
y_pos
14,070
LDU_FT/suds-community/suds/promotePrefixes
LDU_FT
[ "<BEGIN>\n## `xml`", "Get xml representation of the object.\n @return: The root node.\n @rtype: L{Element}\n<END>", "<BEGIN>\n## `skip`", "Get whether to skip (filter-out) the specified attribute.\n @param attr: An attribute.\n @type attr: I{Attribute}\n @return: True if sho...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the promotePrefixes API. 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 promotePrefixes API. 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...
Push prefix declarations up the tree as far as possible. Prefix mapping are pushed to its parent unless the parent has the prefix mapped to another URI or the parent has the prefix. This is propagated up the tree until the top is reached. @return: self @rtype: L{Element}
"Push prefix declarations up the tree as far as possible.\n\n Prefix mapping are pushed to its parent unless the parent has the\n prefix mapped to another URI or the parent has the prefix. This is\n propagated up the tree until the top is reached.\n\n @return: self\n @rtype: L{Element...
466
false
suds-community/suds
promotePrefixes
14,071
LDU_FT/Addvilz/hemp/create_temporary_workspace
LDU_FT
[ "<BEGIN>\n## `release_local`", "Tag given repository with a new semver tag (bump version),\n optionally merging a integration branch.", " This will:\n - clone the repository to temporary directory\n - checkout branch indicated via base argument\n - retrieve all the tags, sort them in ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_temporary_workspace 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 create_temporary_workspace API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclus...
Create a temporary directory, optionally by placing a subdirectory: version :rtype: str :return: Directory path
"Create a temporary directory, optionally by placing a subdirectory: version\n :rtype: str\n :return: Directory path"
13
false
Addvilz/hemp
create_temporary_workspace
14,072