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/WebarchivCZ/WA-KAT/_to_date_in_588
LDU_FT
[ "<BEGIN>\n## `_convert_metadata`", "Convert metadata from WA-KAT to Dublin core dictionary like structure,\n which may be easily converted to xml using :mod:`xmltodict` module.", " Args:\n data (dict): Nested WA-KAT data. See tests for example.", " Returns:\n dict: Dict in dublin core f...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _to_date_in_588 API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _to_date_in_588 API. 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...
Convert date in the format ala 03.02.2017 to 3.2.2017. Viz #100 for details.
"Convert date in the format ala 03.02.2017 to 3.2.2017.\n\n Viz #100 for details."
401
false
WebarchivCZ/WA-KAT
_to_date_in_588
140,573
LDU_FT/taborlab/FlowCal/hist1d
LDU_FT
[ "<BEGIN>\n## `clustering_gmm`", "Find clusters in an array using a Gaussian Mixture Model.", " Before clustering, `data` can be automatically rescaled as specified by\n the `scale` argument.", " Parameters\n ----------\n data : FCSData or array_like\n Data to cluster.\n n_clusters : i...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the hist1d API. 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 hist1d API. 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 ...
Plot one 1D histogram from one or more flow cytometry data sets. Parameters ---------- data_list : FCSData or numpy array or list of FCSData or numpy array Flow cytometry data to plot. channel : int or str, optional Channel from where to take the events to plot. If ndim == 1, ch...
"Plot one 1D histogram from one or more flow cytometry data sets.\n\n Parameters\n ----------\n data_list : FCSData or numpy array or list of FCSData or numpy array\n Flow cytometry data to plot.\n channel : int or str, optional\n Channel from where to take the events to plot. If ndim == 1,\n ...
418
false
taborlab/FlowCal
hist1d
140,574
LDU_FT/cltrudeau/wrench/default_logging_dict
LDU_FT
[ "<BEGIN>\n## `configure_file_logger`", "Configures logging to use the :class:`SizeRotatingFileHandler`\n<END>", "<BEGIN>\n## `default_logging_dict`", "Returns a logging configuration dictionary with reasonable defaults.\n Defines two handlers: \"default\" and \"file\", that go to STDOUT and a\n :class:`...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the default_logging_dict API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the default_logging_dict API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Returns a logging configuration dictionary with reasonable defaults. Defines two handlers: "default" and "file", that go to STDOUT and a :class:`SizeRotatingFileHandler`. :param log_dir: Directory for logs to go into. :param handlers: Which logging handlers to use. Defaults to only 'fi...
"Returns a logging configuration dictionary with reasonable defaults.\n Defines two handlers: \"default\" and \"file\", that go to STDOUT and a\n :class:`SizeRotatingFileHandler`.\n\n :param log_dir:\n Directory for logs to go into.\n :param handlers:\n Which logging handlers to use. Defaults...
27
false
cltrudeau/wrench
default_logging_dict
140,575
LDU_FT/Kuniwak/vint/is_builtin_function
LDU_FT
[ "<BEGIN>\n## `normalize_variable_name`", "Returns normalized variable name.\n Normalizing means that variable names get explicit visibility by\n visibility prefix such as: \"g:\", \"s:\", ...", " Returns None if the specified node is unanalyzable.\n A node is unanalyzable if:", " - the node is ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_builtin_function 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 is_builtin_function 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...
Whether the specified node is a builtin function name identifier. The given identifier should be a child node of NodeType.CALL.
"Whether the specified node is a builtin function name identifier.\n The given identifier should be a child node of NodeType.CALL."
37
false
Kuniwak/vint
is_builtin_function
140,576
LDU_FT/Josef-Friedrich/tmep/tmpl_if
LDU_FT
[ "<BEGIN>\n## `ex_literal`", "An int, float, long, bool, string, or None literal with the given\n value.\n<END>", "<BEGIN>\n## `ex_varassign`", "Assign an expression into a single variable. The expression may\n either be an `ast.expr` object or a value to be used as a literal.\n<END>", "<BEGIN>\n## `ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the tmpl_if API. 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 tmpl_if API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
If ``condition`` is nonempty and nonzero, emit ``trueval``; otherwise, emit ``falseval`` (if provided). * synopsis: ``%if{condition,truetext}`` or \ ``%if{condition,truetext,falsetext}`` * description: If condition is nonempty (or nonzero, if it’s a \ number), then retur...
"If ``condition`` is nonempty and nonzero, emit ``trueval``;\n otherwise, emit ``falseval`` (if provided).\n\n * synopsis: ``%if{condition,truetext}`` or \\\n ``%if{condition,truetext,falsetext}``\n * description: If condition is nonempty (or nonzero, if it’s a \\\n number), t...
72
false
Josef-Friedrich/tmep
tmpl_if
140,577
LDU_FT/noirbizarre/minibench/end
LDU_FT
[ "<BEGIN>\n## `load_module`", "Load a module into name given its filename\n<END>", "<BEGIN>\n## `humanize`", "Transform code conventions to human readable strings\n<END>", "<BEGIN>\n## `end`", "Dump the report into the output file.", " If the file directory does not exists, it will be created.\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the end API. 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 end API. 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...
Dump the report into the output file. If the file directory does not exists, it will be created. The open file is then given as parameter to :meth:`~minibench.report.FileReporter.output`.
"Dump the report into the output file.\n\n If the file directory does not exists, it will be created.\n The open file is then given as parameter to :meth:`~minibench.report.FileReporter.output`."
17
false
noirbizarre/minibench
end
140,578
LDU_FT/lltk/lltk/language
LDU_FT
[ "<BEGIN>\n## `pos`", "Tries to decide about the part of speech.\n<END>", "<BEGIN>\n## `articles`", "Tries to scrape the correct articles for singular and plural from uitmuntend.nl.\n<END>", "<BEGIN>\n## `plural`", "Tries to scrape the plural version from uitmuntend.nl.\n<END>", "<BEGIN>\n## `warning`", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the language API. 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 language API. 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...
Use this as a decorator (implicitly or explicitly).
"Use this as a decorator (implicitly or explicitly)."
80
false
lltk/lltk
language
140,579
LDU_FT/hyde/fswrap/write
LDU_FT
[ "<BEGIN>\n## `fully_expanded_path`", "Returns the absolutely absolute path. Calls os.(\n normpath, normcase, expandvars and expanduser).\n<END>", "<BEGIN>\n## `depth`", "Returns the number of ancestors of this directory.\n<END>", "<BEGIN>\n## `ancestors`", "Generates the parents until stop or the a...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the write API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the write API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
Writes the given text to the file using the given encoding.
"Writes the given text to the file using the given encoding."
43
false
hyde/fswrap
write
140,580
LDU_FT/alan-turing-institute/topic-modelling-tools/set_seed
LDU_FT
[ "<BEGIN>\n## `set_priors`", "Override default values for Dirichlet hyperparameters.\n alpha: hyperparameter for distribution of topics within documents.\n beta: hyperparameter for distribution of tokens within topics.\n<END>", "<BEGIN>\n## `set_sampled_topics`", "Allocate sampled topics to the d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_seed API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_seed API. 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...
Override default values for random initial topic assignment, set to "seed" instead. seed is 2-d array (number of samples in LDA model x number of tokens in LDA model)
"Override default values for random initial topic assignment,\n set to \"seed\" instead.\n seed is 2-d array (number of samples in LDA model x number\n of tokens in LDA model)"
44
false
alan-turing-institute/topic-modelling-tools
set_seed
140,581
LDU_FT/python-wink/python-wink/set_auto_shutoff
LDU_FT
[ "<BEGIN>\n## `set_mode`", ":param mode: a str, one of [home, away, night]\n :return: nothing\n<END>", "<BEGIN>\n## `set_privacy`", ":param state: True or False\n :return: nothing\n<END>", "<BEGIN>\n## `_update_state_from_response`", ":param response_json: the json obj returned from query\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_auto_shutoff API. 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 set_auto_shutoff API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
:param timer: an int, one of [None (never), -1, 30, 60, 120] :return: nothing
":param timer: an int, one of [None (never), -1, 30, 60, 120]\r\n :return: nothing"
133
false
python-wink/python-wink
set_auto_shutoff
140,582
LDU_FT/slackapi/python-slackclient/_get_user_agent
LDU_FT
[ "<BEGIN>\n## `run_on`", "A decorator to store and link a callback to an event.\n<END>", "<BEGIN>\n## `on`", "Stores and links the callback(s) to the event.", " Args:\n event (str): A string that specifies a Slack or websocket event.\n e.g. 'channel_joined' or 'open'\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_user_agent API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_user_agent API. 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...
Construct the user-agent header with the package info, Python version and OS version. Returns: The user agent string. e.g. 'Python/3.6.7 slack/2.0.0 Darwin/17.7.0'
"Construct the user-agent header with the package info,\n Python version and OS version.\n\n Returns:\n The user agent string.\n e.g. 'Python/3.6.7 slack/2.0.0 Darwin/17.7.0'"
222
false
slackapi/python-slackclient
_get_user_agent
140,583
LDU_FT/jonathansick/paperweight/inline_blob
LDU_FT
[ "<BEGIN>\n## `read_git_blob`", "Get text from a git blob.", " Parameters\n ----------\n commit_ref : str\n Any SHA or git tag that can resolve into a commit in the\n git repository.\n path : str\n Path to the document in the git repository, relative to the root\n of the r...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the inline_blob API. 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 inline_blob API. 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...
Inline all input latex files that exist as git blobs in a tree object. The inlining is accomplished recursively. All files are opened as UTF-8 unicode files. Parameters ---------- commit_ref : str String identifying a git commit/tag. root_text : unicode Text of tex document whe...
"Inline all input latex files that exist as git blobs in a tree object.\n\n The inlining is accomplished recursively. All files are opened as UTF-8\n unicode files.\n\n Parameters\n ----------\n commit_ref : str\n String identifying a git commit/tag.\n root_text : unicode\n Text of tex d...
60
false
jonathansick/paperweight
inline_blob
140,584
LDU_FT/daknuett/py_register_machine2/get_flash
LDU_FT
[ "<BEGIN>\n## `int_to_bytes`", ".. _int_to_bytes:", "\tConverts the ``int`` ``int_`` to a ``bytes`` object.\n\t``len(result) == width``.", "\tIf ``width`` is None, a number of bytes that is able to hold the\n\tnumber is choosen, depending on ``int_.bit_length()``.", "\tSee also: bytes_to_int_\n<END>", "<BE...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_flash API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_flash API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
return a string representations of the flash
"return a string representations of the flash"
154
false
daknuett/py_register_machine2
get_flash
140,585
LDU_FT/bkabrda/flask-whooshee/prep_search_string
LDU_FT
[ "<BEGIN>\n## `whooshee_search`", "Do a fulltext search on the query.\n Returns a query filtered with results of the fulltext search.", " :param search_string: The string to search for.\n :param group: The whoosh group to use for searching.\n Defaults to :class:`whoosh.q...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the prep_search_string API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the prep_search_string API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
Prepares search string as a proper whoosh search string. :param search_string: The search string which should be prepared. :param match_substrings: ``True`` if you want to match substrings, ``False`` otherwise.
"Prepares search string as a proper whoosh search string.\n\n :param search_string: The search string which should be prepared.\n :param match_substrings: ``True`` if you want to match substrings,\n ``False`` otherwise."
30
false
bkabrda/flask-whooshee
prep_search_string
140,586
LDU_FT/Captricity/captools/_generate_url
LDU_FT
[ "<BEGIN>\n## `_encode_multipart_formdata`", "Create a multipart encoded form for use in PUTing and POSTing.", " fields is a sequence of (name, value) elements for regular form fields.\n files is a sequence of (name, filename, value) elements for data to be uploaded as files\n Return (content_type, body...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _generate_url API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _generate_url API. 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...
Uses the regex (of the type defined in Django's url patterns) and the arguments to return a relative URL For example, if the regex is '^/api/shreddr/job/(?P<id>[\d]+)$' and arguments is ['23'] then return would be '/api/shreddr/job/23'
"Uses the regex (of the type defined in Django's url patterns) and the arguments to return a relative URL\n For example, if the regex is '^/api/shreddr/job/(?P<id>[\\d]+)$' and arguments is ['23']\n then return would be '/api/shreddr/job/23'"
25
false
Captricity/captools
_generate_url
140,587
LDU_FT/albu/albumentations/filter_bboxes_by_visibility
LDU_FT
[ "<BEGIN>\n## `add_snow`", "Bleaches out pixels, mitation snow.", " From https://github.com/UjjwalSaxena/Automold--Road-Augmentation-Library", " Args:\n img:\n snow_point:\n brightness_coeff:", " Returns:\n<END>", "<BEGIN>\n## `add_fog`", "Add fog to the image.", " From...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the filter_bboxes_by_visibility API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclu...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the filter_bboxes_by_visibility API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclu...
Filter bounding boxes and return only those boxes whose visibility after transformation is above the threshold and minimal area of bounding box in pixels is more then min_area. Args: original_shape (tuple): original image shape bboxes (list): original bounding boxes transformed_shape(tu...
"Filter bounding boxes and return only those boxes whose visibility after transformation is above\n the threshold and minimal area of bounding box in pixels is more then min_area.\n\n Args:\n original_shape (tuple): original image shape\n bboxes (list): original bounding boxes\n transformed_s...
100
false
albu/albumentations
filter_bboxes_by_visibility
140,588
LDU_FT/diamondman/proteusisc/prepare
LDU_FT
[ "<BEGIN>\n## `_get_adv_trans_stats`", "Utility function to fetch the transfer statistics for the last\n advanced transfer. Checking the stats appears to sync the\n controller. For details on the advanced transfer please refer\n to the documentation at\n http://diamondman.github.io/Adap...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the 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 extracted...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the 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 extracted...
Extract the composite array's data into a usable bitarray based on if NoCare bits should be rendered as True or False. This method does the heavy lifting of producing a bitarray that is more efficient for tdo bits when that optimization is available. KWArgs: primef: A contr...
"Extract the composite array's data into a usable bitarray based on if NoCare bits should be rendered as True or False.\n\n This method does the heavy lifting of producing a bitarray\n that is more efficient for tdo bits when that optimization is\n available.\n\n KWArgs:\n primef:...
114
false
diamondman/proteusisc
prepare
140,589
LDU_FT/mobolic/facebook-sdk/debug_access_token
LDU_FT
[ "<BEGIN>\n## `get_user_from_cookie`", "Parses the cookie set by the official Facebook JavaScript SDK.", " cookies should be a dictionary-like object mapping cookie names to\n cookie values.", " If the user is logged in via Facebook, we return a dictionary with\n the keys \"uid\" and \"access_token...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the debug_access_token API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the debug_access_token API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
Gets information about a user access token issued by an app. See <https://developers.facebook.com/docs/facebook-login/ access-tokens/debugging-and-error-handling> We can generate the app access token by concatenating the app id and secret: <https://developers.facebook.com/docs/ ...
"Gets information about a user access token issued by an app. See\n <https://developers.facebook.com/docs/facebook-login/\n access-tokens/debugging-and-error-handling>\n\n We can generate the app access token by concatenating the app\n id and secret: <https://developers.facebook.com/docs/\n ...
56
false
mobolic/facebook-sdk
debug_access_token
140,590
LDU_FT/StorjOld/pyp2p/attend_fight
LDU_FT
[ "<BEGIN>\n## `set_keep_alive`", "This function instructs the TCP socket to send a heart beat every n\n seconds to detect dead connections. It's the TCP equivalent of the\n IRC ping-pong protocol and allows for better cleanup / detection\n of dead TCP connections.", " It activates aft...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the attend_fight API. 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 attend_fight API. 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 is for starting and managing a fight once the details are known. It also handles the task of returning any valid connections (if any) that may be returned from threads in the simultaneous_fight function.
"This function is for starting and managing a fight\r\n once the details are known. It also handles the\r\n task of returning any valid connections (if any) that\r\n may be returned from threads in the simultaneous_fight function."
88
false
StorjOld/pyp2p
attend_fight
140,591
LDU_FT/nlm/nagplug/get_code
LDU_FT
[ "<BEGIN>\n## `set_timeout`", "set the timeout for plugin operations\n when timeout is reached, exit properly with nagios-compliant output", " arguments:\n timeout: timeout in seconds\n code: exit status code\n<END>", "<BEGIN>\n## `exit`", "manual exit from the plugin", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_code API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_code API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
the final code for multi-checks arguments: the worst-case code from all added results, or UNKNOWN if none were added
"the final code for multi-checks\n\n arguments:\n the worst-case code from all added results,\n or UNKNOWN if none were added"
37
false
nlm/nagplug
get_code
140,592
LDU_FT/lionheart/django-pyodbc/_name_to_index
LDU_FT
[ "<BEGIN>\n## `_get_sql_server_ver`", "Returns the version of the SQL Server in use:\n<END>", "<BEGIN>\n## `_switch_tz_offset_sql`", "Returns the SQL that will convert field_name to UTC from tzname.\n<END>", "<BEGIN>\n## `datetime_trunc_sql`", "Given a lookup_type of 'year', 'month', 'day', 'hour', 'minute...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _name_to_index API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _name_to_index API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
Returns a dictionary of {field_name: field_index} for the given table. Indexes are 0-based.
"Returns a dictionary of {field_name: field_index} for the given table.\n Indexes are 0-based."
51
false
lionheart/django-pyodbc
_name_to_index
140,593
LDU_FT/Robpol86/appveyor-artifacts/with_log
LDU_FT
[ "<BEGIN>\n## `setup_logging`", "Setup console logging. Info and below go to stdout, others go to stderr.", " :param bool verbose: Print debug statements.\n :param str logger: Which logger to set handlers to. Used for testing.\n<END>", "<BEGIN>\n## `with_log`", "Automatically adds a named logger to a f...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the with_log API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the with_log API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
Automatically adds a named logger to a function upon function call. :param func: Function to decorate. :return: Decorated function. :rtype: function
"Automatically adds a named logger to a function upon function call.\n\n :param func: Function to decorate.\n\n :return: Decorated function.\n :rtype: function"
54
false
Robpol86/appveyor-artifacts
with_log
140,594
LDU_FT/feliperyan/EinsteinVisionPython/get_url_image_prediction
LDU_FT
[ "<BEGIN>\n## `get_token`", "Acquires a token for futher API calls, unless you already have a token this will be the first thing\n you do before you use this.\n :param email: string, the username for your EinsteinVision service, usually in email form\n :para pem_file: string, file ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_url_image_prediction 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 get_url_image_prediction API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio...
Gets a prediction from a supplied picture url based on a previously trained model. :param model_id: string, once you train a model you'll be given a model id to use. :param picture_url: string, in the form of a url pointing to a publicly accessible image file. returns: re...
"Gets a prediction from a supplied picture url based on a previously trained model.\n :param model_id: string, once you train a model you'll be given a model id to use.\n :param picture_url: string, in the form of a url pointing to a publicly accessible\n image file.\n return...
34
false
feliperyan/EinsteinVisionPython
get_url_image_prediction
140,595
LDU_FT/ray-project/ray/sync_results_to_new_location
LDU_FT
[ "<BEGIN>\n## `_agent_import_failed`", "Returns dummy agent class for if PyTorch etc. is not installed.\n<END>", "<BEGIN>\n## `run`", "Executes training.", " Args:\n run_or_experiment (function|class|str|Experiment): If\n function|class|str, this is the algorithm or model to train.\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the sync_results_to_new_location API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its concl...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the sync_results_to_new_location API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its concl...
Sends the current log directory to the remote node. Syncing will not occur if the cluster is not started with the Ray autoscaler.
"Sends the current log directory to the remote node.\n\n Syncing will not occur if the cluster is not started\n with the Ray autoscaler."
1,706
true
ray-project/ray
sync_results_to_new_location
140,596
LDU_FT/etgalloway/fullqualname/fullqualname_py2
LDU_FT
[ "<BEGIN>\n## `fullqualname_py3`", "Fully qualified name for objects in Python 3.\n<END>", "<BEGIN>\n## `_fullqualname_builtin_py3`", "Fully qualified name for 'builtin_function_or_method' objects in\n Python 3.\n<END>", "<BEGIN>\n## `_fullqualname_function_py3`", "Fully qualified name for 'function' ob...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the fullqualname_py2 API. 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 fullqualname_py2 API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Fully qualified name for objects in Python 2.
"Fully qualified name for objects in Python 2."
14
false
etgalloway/fullqualname
fullqualname_py2
140,597
LDU_FT/theislab/anndata/chunk_X
LDU_FT
[ "<BEGIN>\n## `read_csv`", "Read ``.csv`` file.", " Same as :func:`~anndata.read_text` but with default delimiter ``','``.", " Parameters\n ----------\n filename\n Data file.\n delimiter\n Delimiter that separates data within text file. If ``None``, will split at\n arbitrary...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the chunk_X API. 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 chunk_X API. 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 a chunk of the data matrix :attr:`X` with random or specified indices. Parameters ---------- select If select is an integer, a random chunk of row size = select will be returned. If select is a list, tuple or numpy array of integers, then a chunk with ...
"Return a chunk of the data matrix :attr:`X` with random or specified indices.\n\n Parameters\n ----------\n select\n If select is an integer, a random chunk of row size = select will be returned.\n If select is a list, tuple or numpy array of integers, then a chunk\n ...
143
false
theislab/anndata
chunk_X
140,598
LDU_FT/python-cmd2/cmd2/add_help_to_file
LDU_FT
[ "<BEGIN>\n## `rmrf`", "Silently remove a list of directories or files\n<END>", "<BEGIN>\n## `livehtml`", "Launch webserver on http://localhost:8000 with rendered documentation\n<END>", "<BEGIN>\n## `validatetag`", "Check to make sure that a tag exists for the current HEAD and it looks like a valid version...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_help_to_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 ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_help_to_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 ...
Write help text for commands and topics to the output file :param item: what is having its help text saved :param outfile: file being written to :param is_command: tells if the item is a command and not just a help topic
"Write help text for commands and topics to the output file\n :param item: what is having its help text saved\n :param outfile: file being written to\n :param is_command: tells if the item is a command and not just a help topic"
425
false
python-cmd2/cmd2
add_help_to_file
140,599
LDU_FT/pymoca/pymoca/concatenate
LDU_FT
[ "<BEGIN>\n## `call`", "Convenience method for calling methods with walker.\n<END>", "<BEGIN>\n## `der`", "Get the derivative of the variable, create it if it doesn't exist.\n<END>", "<BEGIN>\n## `log`", "Convenience function for printing indenting debug output.\n<END>", "<BEGIN>\n## `flatten_component_r...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the concatenate API. 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 concatenate API. 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...
Helper function to append two component references to eachother, e.g. a "within" component ref and an "object type" component ref. :return: New component reference, with other appended to self.
"Helper function to append two component references to eachother, e.g.\n a \"within\" component ref and an \"object type\" component ref.\n :return: New component reference, with other appended to self."
61
false
pymoca/pymoca
concatenate
140,600
LDU_FT/django-import-export/django-import-export/get_value
LDU_FT
[ "<BEGIN>\n## `has_import_permission`", "Returns whether a request has import permission.\n<END>", "<BEGIN>\n## `get_import_resource_kwargs`", "Prepares/returns kwargs used when initializing Resource\n<END>", "<BEGIN>\n## `process_import`", "Perform the actual import action (after the user has confirmed th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_value API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_value API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
Returns the value of the object's attribute.
"Returns the value of the object's attribute."
84
false
django-import-export/django-import-export
get_value
140,601
LDU_FT/izacus/pysolarized/query
LDU_FT
[ "<BEGIN>\n## `add`", "Adds documents to Solr index\n documents - Single item or list of items to add\n<END>", "<BEGIN>\n## `deleteAll`", "Deletes whole Solr index. Use with care.\n<END>", "<BEGIN>\n## `delete`", "Deletes document with ID on all Solr cores\n<END>", "<BEGIN>\n## `commit`", "Flush...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the 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...
Queries Solr and returns results query - Text query to search for filters - dictionary of filters to apply when searching in form of { "field":"filter_value" } columns - columns to return, list of strings sort - list of fields to sort on in format of ["field asc", "field desc", ... ] ...
"Queries Solr and returns results\n\n query - Text query to search for\n filters - dictionary of filters to apply when searching in form of { \"field\":\"filter_value\" }\n columns - columns to return, list of strings\n sort - list of fields to sort on in format of [\"field asc\", \"field de...
18
false
izacus/pysolarized
query
140,602
LDU_FT/dourvaris/nano-python/wallet_representative
LDU_FT
[ "<BEGIN>\n## `signature_unsafe`", "Not safe to use with secret keys or secret data.\n See module docstring. This function should be used for testing only.\n<END>", "<BEGIN>\n## `checkvalid`", "Not safe to use when any argument is secret.\n See module docstring. This function should be used only for\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the wallet_representative 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 wallet_representative 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 the default representative for **wallet** :param wallet: Wallet to get default representative account for :type wallet: str :raises: :py:exc:`nano.rpc.RPCException` >>> rpc.wallet_representative( ... wallet="000D1BAEC8EC208142C99059B393051BAC8380F9B5A2E6B2489A277D8...
"Returns the default representative for **wallet**\n\n :param wallet: Wallet to get default representative account for\n :type wallet: str\n\n :raises: :py:exc:`nano.rpc.RPCException`\n\n >>> rpc.wallet_representative(\n ... wallet=\"000D1BAEC8EC208142C99059B393051BAC8380F9B5A2E6B...
574
false
dourvaris/nano-python
wallet_representative
140,603
LDU_FT/ryanvarley/ExoData/_findNearest
LDU_FT
[ "<BEGIN>\n## `load_db_from_url`", "Loads the database from a gzipped version of the system folder, by default the one located in the oec_gzip repo\n in the OpenExoplanetCatalogue GitHub group.", " The database is loaded from the url in memory", " :param url: url to load (must be gzipped version of sy...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _findNearest API. 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 _findNearest API. 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...
Finds the value in arr that value is closest to
"Finds the value in arr that value is closest to"
133
false
ryanvarley/ExoData
_findNearest
140,604
LDU_FT/bioidiap/bob.ip.facedetect/bounding_box_from_annotation
LDU_FT
[ "<BEGIN>\n## `add`", "Adds a new strong classifier with the given threshold to the cascade.", " **Parameters:**", " classifier : :py:class:`bob.learn.boosting.BoostedMachine`\n A strong classifier to add", " ``threshold`` : float\n The classification threshold for this cascade step", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the bounding_box_from_annotation API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its concl...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the bounding_box_from_annotation API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its concl...
bounding_box_from_annotation(source, padding, **kwargs) -> bounding_box Creates a bounding box from the given parameters, which are, in general, annotations read using :py:func:`bob.ip.facedetect.read_annotation_file`. Different kinds of annotations are supported, given by the ``source`` keyword: * ``direct`` :...
"bounding_box_from_annotation(source, padding, **kwargs) -> bounding_box\n\n Creates a bounding box from the given parameters, which are, in general, annotations read using :py:func:`bob.ip.facedetect.read_annotation_file`.\n Different kinds of annotations are supported, given by the ``source`` keyword:\n\n * ``dire...
246
false
bioidiap/bob.ip.facedetect
bounding_box_from_annotation
140,605
LDU_FT/MacHu-GWU/single_file_module-project/set_legend
LDU_FT
[ "<BEGIN>\n## `use`", "Change the hash algorithm you gonna use.\n<END>", "<BEGIN>\n## `of_bytes`", "Use default hash method to return hash value of bytes.", " :type py_bytes: binary_type\n :param py_bytes: a binary object\n<END>", "<BEGIN>\n## `of_text`", "Use default hash method to return ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_legend API. 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_legend API. 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 line legend. **中文文档** 设置图例。
"Set line legend.\n\n **中文文档**\n\n 设置图例。"
297
false
MacHu-GWU/single_file_module-project
set_legend
140,606
LDU_FT/JelteF/PyLaTeX/dumps
LDU_FT
[ "<BEGIN>\n## `fill_document`", "Add a section, a subsection and some text to the document.", " :param doc: the document\n :type doc: :class:`pylatex.document.Document` instance\n<END>", "<BEGIN>\n## `dumps_content`", "r\"\"\"Represent the container as a string in LaTeX syntax.", " Args\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the dumps API. 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 dumps API. 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...
Turn the tabu object into a string in Latex format.
"Turn the tabu object into a string in Latex format."
183
false
JelteF/PyLaTeX
dumps
140,607
LDU_FT/openfisca/openfisca-core/get_memory_usage
LDU_FT
[ "<BEGIN>\n## `apply_thresholds`", "Return one of the choices depending on the input position compared to thresholds, for each input.", " >>> apply_thresholds(np.array([4]), [5, 7], [10, 15, 20])\n array([10])\n >>> apply_thresholds(np.array([5]), [5, 7], [10, 15, 20])\n array([10])\n >>> apply_th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_memory_usage API. 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_memory_usage API. 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 data about the virtual memory usage of the simulation
"Get data about the virtual memory usage of the simulation"
322
false
openfisca/openfisca-core
get_memory_usage
140,608
LDU_FT/fhcrc/nestly/add_target
LDU_FT
[ "<BEGIN>\n## `_delim_accum`", "Accumulator for delimited files", " Combines each file with values from JSON dictionary in same directory", " :param iterable control_files: Iterable of control files\n :param filename_template: A template for the file to nest_map\n :param keys: List of keys to selec...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_target API. 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 add_target API. 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...
Add an SCons target to this nest. The function decorated will be immediately called with each of the output directories and current control dictionaries. Each result will be added to the respective control dictionary for later nests to access. :param name: Name for the target i...
"Add an SCons target to this nest.\n\n The function decorated will be immediately called with each of the\n output directories and current control dictionaries. Each result will\n be added to the respective control dictionary for later nests to\n access.\n\n :param name: Name for the ...
73
false
fhcrc/nestly
add_target
140,609
LDU_FT/sepandhaghighi/pycm/save_csv
LDU_FT
[ "<BEGIN>\n## `print_report`", "Print Compare report.", " :return: None\n<END>", "<BEGIN>\n## `save_report`", "Save Compare report in .comp (flat file format).", " :param name: filename\n :type name : str\n :param address: flag for address return\n :type address : bool\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the save_csv API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the save_csv API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
Save ConfusionMatrix in CSV file. :param name: filename :type name : str :param address: flag for address return :type address : bool :param class_param : class parameters list for save, Example : ["TPR","TNR","AUC"] :type class_param : list :param class_name : c...
"Save ConfusionMatrix in CSV file.\n\n :param name: filename\n :type name : str\n :param address: flag for address return\n :type address : bool\n :param class_param : class parameters list for save, Example : [\"TPR\",\"TNR\",\"AUC\"]\n :type class_param : list\n :param...
259
false
sepandhaghighi/pycm
save_csv
140,610
LDU_FT/astropy/photutils/_isophote_list_to_table
LDU_FT
[ "<BEGIN>\n## `_move_tuple_axes_first`", "Bottleneck can only take integer axis, not tuple, so this function\n takes all the axes to be operated on and combines them into the\n first dimension of the array so that we can then use axis=0\n<END>", "<BEGIN>\n## `_nanmean`", "Bottleneck nanmean function that...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _isophote_list_to_table API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _isophote_list_to_table API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion...
Convert an `~photutils.isophote.IsophoteList` instance to a `~astropy.table.QTable`. Parameters ---------- isophote_list : list of `~photutils.isophote.Isophote` or a `~photutils.isophote.IsophoteList` instance A list of isophotes. Returns ------- result : `~astropy.table.QTable` ...
"Convert an `~photutils.isophote.IsophoteList` instance to\n a `~astropy.table.QTable`.\n\n Parameters\n ----------\n isophote_list : list of `~photutils.isophote.Isophote` or a `~photutils.isophote.IsophoteList` instance\n A list of isophotes.\n\n Returns\n -------\n result : `~astropy.tabl...
1,397
true
astropy/photutils
_isophote_list_to_table
140,611
LDU_FT/NYUCCL/psiTurk/_estimate_expenses
LDU_FT
[ "<BEGIN>\n## `check_auth`", "This function is called to check if a username password combination\n is valid.\n<END>", "<BEGIN>\n## `requires_auth`", "Decorator to prompt for user name and password. Useful for data dumps,\n etc. That you don't want to be public.\n<END>", "<BEGIN>\n## `get_...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _estimate_expenses 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 _estimate_expenses API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
Returns tuple describing expenses: amount paid to workers amount paid to amazon
"Returns tuple describing expenses:\n amount paid to workers\n amount paid to amazon"
65
false
NYUCCL/psiTurk
_estimate_expenses
140,612
LDU_FT/af/turrentine/get_template_names
LDU_FT
[ "<BEGIN>\n## `create`", "Allow an 'author' kwarg to automatically fill in the created_by and last_modified_by fields.\n<END>", "<BEGIN>\n## `get_template_options`", "Returns a list of all templates that can be used for CMS pages.\n The paths that are returned are relative to TURRENTINE_TEMPLATE_ROOT.\n...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_template_names API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_template_names API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
Return the page's specified template name, or a fallback if one hasn't been chosen.
"Return the page's specified template name, or a fallback if one hasn't been chosen."
19
false
af/turrentine
get_template_names
140,613
LDU_FT/raiden-network/raiden/batch_query_event_records
LDU_FT
[ "<BEGIN>\n## `events_for_onchain_secretreveal`", "Emits the event for revealing the secret on-chain if the transfer\n can not be settled off-chain.\n<END>", "<BEGIN>\n## `handle_inittarget`", "Handles an ActionInitTarget state change.\n<END>", "<BEGIN>\n## `handle_offchain_secretreveal`", "Validates an...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the batch_query_event_records 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 batch_query_event_records API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi...
Batch query event records with a given batch size and an optional filter This is a generator function returning each batch to the caller to work with.
"Batch query event records with a given batch size and an optional filter\n\n This is a generator function returning each batch to the caller to work with."
1,120
true
raiden-network/raiden
batch_query_event_records
140,614
LDU_FT/deontologician/restnavigator/get_cached
LDU_FT
[ "<BEGIN>\n## `cache`", "Stores a navigator in the identity map for the current\n api. Can take a link or a bare uri\n<END>", "<BEGIN>\n## `get_cached`", "Retrieves a cached navigator from the id_map.", " Either a Link object or a bare uri string may be passed in.\n<END>", "<BEGIN>\n## `is_ca...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_cached API. 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_cached API. 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...
Retrieves a cached navigator from the id_map. Either a Link object or a bare uri string may be passed in.
"Retrieves a cached navigator from the id_map.\n\n Either a Link object or a bare uri string may be passed in."
72
false
deontologician/restnavigator
get_cached
140,615
LDU_FT/loanzen/falcon-auth/get_auth_header
LDU_FT
[ "<BEGIN>\n## `parse_auth_token_from_request`", "Parses and returns Auth token from the request header. Raises\n `falcon.HTTPUnauthoried exception` with proper error message\n<END>", "<BEGIN>\n## `get_auth_header`", "Returns the value for authorization header\n Args:\n user_payload(dic...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_auth_header API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_auth_header API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
Returns the value for authorization header Args: user_payload(dict, required): A `dict` containing required information to create authentication token
"Returns the value for authorization header\n Args:\n user_payload(dict, required): A `dict` containing required information\n to create authentication token"
15
false
loanzen/falcon-auth
get_auth_header
140,616
LDU_FT/tsroten/pynlpir/_get_pos_name
LDU_FT
[ "<BEGIN>\n## `open`", "Initializes the NLPIR API.", " This calls the function :func:`~pynlpir.nlpir.Init`.", " :param str data_dir: The absolute path to the directory that has NLPIR's\n `Data` directory (defaults to :data:`pynlpir.nlpir.PACKAGE_DIR`).\n :param str encoding: The encoding that t...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_pos_name API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_pos_name API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
Gets the part of speech name for *code*. Joins the names together with *delimiter* if *name* is ``'all'``. See :func:``pynlpir.pos_map.get_pos_name`` for more information.
"Gets the part of speech name for *code*.\n\n Joins the names together with *delimiter* if *name* is ``'all'``.\n\n See :func:``pynlpir.pos_map.get_pos_name`` for more information."
40
false
tsroten/pynlpir
_get_pos_name
140,617
LDU_FT/timothydmorton/VESPA/traptransit_MCMC
LDU_FT
[ "<BEGIN>\n## `from_df`", "Builds TripleOrbitPopulation from DataFrame", " ``DataFrame`` objects must be of appropriate form to pass\n to :func:`OrbitPopulation.from_df`.", " :param df_long, df_short:\n :class:`pandas.DataFrame` objects to pass to\n :func:`OrbitPopula...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the traptransit_MCMC API. 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 traptransit_MCMC API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Fit trapezoidal model to provided ts, fs, [dfs] using MCMC. Standard emcee usage.
"Fit trapezoidal model to provided ts, fs, [dfs] using MCMC.\n\n Standard emcee usage."
495
false
timothydmorton/VESPA
traptransit_MCMC
140,618
LDU_FT/thriftrw/thriftrw-python/resolve_service_spec
LDU_FT
[ "<BEGIN>\n## `add_include`", "Adds a module as an included module.", " :param name:\n Name under which the included module should be exposed in the\n current module.\n :param module_spec:\n ModuleSpec of the included module.\n<END>", "<BEGIN>\n## `link`", "Link...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the resolve_service_spec 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 resolve_service_spec API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Finds and links the ServiceSpec with the given name.
"Finds and links the ServiceSpec with the given name."
135
false
thriftrw/thriftrw-python
resolve_service_spec
140,619
LDU_FT/lappis-unb/salic-ml/indicator_details
LDU_FT
[ "<BEGIN>\n## `approved_funds`", "Verifica se o valor total de um projeto é um\n outlier em relação\n aos projetos do mesmo seguimento cultural\n Dataframes: planilha_orcamentaria\n<END>", "<BEGIN>\n## `complexidade`", "Returns a value that indicates project health, currently FinancialIndicator\n i...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the indicator_details API. 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 indicator_details API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Return a dictionary with all metrics in FinancialIndicator, if there aren't values for that Indicator, it is filled with default values
"Return a dictionary with all metrics in FinancialIndicator,\n if there aren't values for that Indicator, it is filled with default values"
102
false
lappis-unb/salic-ml
indicator_details
140,620
LDU_FT/phoebe-project/phoebe2/from_json
LDU_FT
[ "<BEGIN>\n## `lc`", "Create parameters for a new light curve dataset.", " Generally, this will be used as an input to the kind argument in\n :meth:`phoebe.frontend.bundle.Bundle.add_dataset`", " :parameter **kwargs: defaults for the values of any of the parameters\n :return: a :class:`phoebe.param...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the from_json API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the from_json API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
load an nparray object from a json-formatted string @parameter str j: json-formatted string
"load an nparray object from a json-formatted string\n\n @parameter str j: json-formatted string"
1,080
true
phoebe-project/phoebe2
from_json
140,621
LDU_FT/czepluch/pysecp256k1/ecdsa_verify_compact
LDU_FT
[ "<BEGIN>\n## `_ecdsa_sign_recoverable`", "Takes a message of 32 bytes and a private key\n Returns a recoverable signature of length 64\n<END>", "<BEGIN>\n## `_parse_to_recoverable_signature`", "Returns a parsed recoverable signature of length 65 bytes\n<END>", "<BEGIN>\n## `ecdsa_sign_compact`", "T...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the ecdsa_verify_compact 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 ecdsa_verify_compact API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Takes a message of length 32 and a signed message and a pubkey Returns True if the signature is valid
"Takes a message of length 32 and a signed message and a pubkey\n Returns True if the signature is valid"
14
false
czepluch/pysecp256k1
ecdsa_verify_compact
140,622
LDU_FT/RedHatInsights/insights-core/add_filter
LDU_FT
[ "<BEGIN>\n## `get_shared_data`", "Returns the actual list of component data based on how data is\n stored in component, either from the `data` attribute or from the\n `data['content']` attribute.", " Returns:\n list: List of component data.\n<END>", "<BEGIN>\n## `merge_lvm_data`", "Returns a...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_filter API. 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 add_filter API. 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...
Add a filter or list of filters to a datasource. A filter is a simple string, and it matches if it is contained anywhere within a line. Args: ds (@datasource component): The datasource to filter patterns (str, [str]): A string, list of strings, or set of strings to add to the datasour...
"Add a filter or list of filters to a datasource. A filter is a simple\n string, and it matches if it is contained anywhere within a line.\n\n Args:\n ds (@datasource component): The datasource to filter\n patterns (str, [str]): A string, list of strings, or set of strings to\n add to the d...
912
false
RedHatInsights/insights-core
add_filter
140,623
LDU_FT/BD2KOnFHIR/i2b2model/_freeze
LDU_FT
[ "<BEGIN>\n## `change_column_length`", "Change the column length in the supplied table\n<END>", "<BEGIN>\n## `_db_urls`", "Return the crc and ontology db urls\n :param opts: options\n :return: Tuple w/ crc and ontology url\n<END>", "<BEGIN>\n## `_tables`", "Return a list of all known tables a...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _freeze API. 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 _freeze API. 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...
Evaluate all of the column values and return the result :return: column/value tuples
"Evaluate all of the column values and return the result\n :return: column/value tuples"
64
false
BD2KOnFHIR/i2b2model
_freeze
140,624
LDU_FT/goldsborough/ecstasy/escape_meta
LDU_FT
[ "<BEGIN>\n## `codify`", "Gets escape-codes for flag combinations.", "\tArguments:\n\t\tcombination (int): Either a single integer-convertible flag\n\t\t\t\t\t\t or an OR'd flag-combination.\n\tReturns:\n\t\tA semi-colon-delimited string of appropriate escape sequences.", "\tRaises:\n\t\terrors.FlagError if ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the escape_meta API. 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 escape_meta API. 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...
Checks if a meta character is escaped or else warns about it. If the meta character has an escape character ('\') preceding it, the meta character is escaped. If it does not, a warning is emitted that the user should escape it. Arguments: string (str): The relevant string in which the character was found. ...
"Checks if a meta character is escaped or else warns about it.\n\n\t\tIf the meta character has an escape character ('\\') preceding it,\n\t\tthe meta character is escaped. If it does not, a warning is emitted\n\t\tthat the user should escape it.\n\n\t\tArguments:\n\t\t\tstring (str): The relevant string in which the c...
71
false
goldsborough/ecstasy
escape_meta
140,625
LDU_FT/ev3dev/ev3dev-lang-python/delay_off
LDU_FT
[ "<BEGIN>\n## `list_motors`", "This is a generator function that enumerates all tacho motors that match\n the provided arguments.", " Parameters:\n name_pattern: pattern that device name should match.\n For example, 'motor*'. Default value: '*'.\n keyword arguments: used for matchi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the delay_off API. 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 delay_off API. 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...
The `timer` trigger will periodically change the LED brightness between 0 and the current brightness setting. The `off` time can be specified via `delay_off` attribute in milliseconds.
"The `timer` trigger will periodically change the LED brightness between\n 0 and the current brightness setting. The `off` time can\n be specified via `delay_off` attribute in milliseconds."
452
false
ev3dev/ev3dev-lang-python
delay_off
140,626
LDU_FT/LettError/MutatorMath/isOnAxis
LDU_FT
[ "<BEGIN>\n## `makeUnicodeMapFromSources`", "Create a dict with glyphName -> unicode value pairs\n using the data in the sources. \n If all master glyphs have the same unicode value\n this value will be used in the map.\n If master glyphs have conflicting value, a warnin...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the isOnAxis API. 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 isOnAxis API. 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...
Returns statements about this location: * False if the location is not on-axis * The name of the axis if it is on-axis * None if the Location is at the origin Note: this is only valid for an unbiased location. :: >>> l = Location(pop=1) ...
"Returns statements about this location:\n \n * False if the location is not on-axis\n * The name of the axis if it is on-axis\n * None if the Location is at the origin\n\n Note: this is only valid for an unbiased location.\n ::\n\n >>> l = Location...
169
false
LettError/MutatorMath
isOnAxis
140,627
LDU_FT/vallis/libstempo/get_an
LDU_FT
[ "<BEGIN>\n## `calczeta`", "Calculate the angular separation between position (phi1, theta1) and\n (phi2, theta2)\n<END>", "<BEGIN>\n## `dlmk`", "returns value of d^l_mk as defined in allen, ottewill 97.\n Called by Dlmk\n<END>", "<BEGIN>\n## `Dlmk`", "returns value of D^l_mk as defined in allen, ott...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_an API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_an API. 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 ...
Compute a_n from Eq. 22 of Taylor et al. (2015). :param n: Harmonic number :param mc: Chirp mass of binary [Solar Mass] :param dl: Luminosity distance [Mpc] :param F: Orbital frequency of binary [Hz] :param e: Orbital Eccentricity :returns: a_n
"Compute a_n from Eq. 22 of Taylor et al. (2015).\n \n :param n: Harmonic number\n :param mc: Chirp mass of binary [Solar Mass]\n :param dl: Luminosity distance [Mpc]\n :param F: Orbital frequency of binary [Hz]\n :param e: Orbital Eccentricity\n \n :returns: a_n"
160
false
vallis/libstempo
get_an
140,628
LDU_FT/hfaran/piazza-api/remove_users
LDU_FT
[ "<BEGIN>\n## `user_login`", "Login with email, password and get back a session cookie", " :type email: str\n :param email: The email used for authentication\n :type password: str\n :param password: The password used for authentication\n<END>", "<BEGIN>\n## `demo_login`", "Authe...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the remove_users API. 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 remove_users API. 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...
Remove users from a network `nid` :type user_ids: list of str :param user_ids: a list of user ids. These are the same ids that are returned by get_all_users. :type nid: str :param nid: This is the ID of the network to remove students from. This is optional and ...
"Remove users from a network `nid`\n\n :type user_ids: list of str\n :param user_ids: a list of user ids. These are the same\n ids that are returned by get_all_users.\n :type nid: str\n :param nid: This is the ID of the network to remove students\n from. This is optio...
100
false
hfaran/piazza-api
remove_users
140,629
LDU_FT/hannes-brt/hebel/parameters
LDU_FT
[ "<BEGIN>\n## `parameters`", "A property that returns all of the model's parameters.\n<END>", "<BEGIN>\n## `parameters`", "Used to set all of the model's parameters to new values.", " **Parameters:**", " value : array_like\n New values for the model parameters. Must be of length\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parameters API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parameters API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
Used to set all of the model's parameters to new values. **Parameters:** value : array_like New values for the model parameters. Must be of length ``self.n_parameters``.
"Used to set all of the model's parameters to new values.\n\n **Parameters:**\n\n value : array_like\n New values for the model parameters. Must be of length\n ``self.n_parameters``."
372
false
hannes-brt/hebel
parameters
140,630
LDU_FT/wkentaro/pytorch-fcn/get_upsampling_weight
LDU_FT
[ "<BEGIN>\n## `setup`", "Setup data layer according to parameters:", " - nyud_dir: path to NYUDv2 dir\n - split: train / val / test\n - tops: list of tops to output from {color, depth, hha, label}\n - randomize: load in random order (default: True)\n - seed: seed for randomizat...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_upsampling_weight 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_upsampling_weight API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Make a 2D bilinear kernel suitable for upsampling
"Make a 2D bilinear kernel suitable for upsampling"
47
false
wkentaro/pytorch-fcn
get_upsampling_weight
140,631
LDU_FT/siemens/django-dingos/get_user_data
LDU_FT
[ "<BEGIN>\n## `set_dict`", "set_dict takes a dictionary, the value to\n enter into the dictionary, a command of what\n to do with the value, and a sequence of keys.", " d = {}", " set_dict(d,1,'append','level 1','level 2')", " -> d['level 1']['level 2'] = [1]", " set_dict(d,2,'append','le...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_user_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_user_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...
Extracts user data, either from user session or from database (for each User, an InfoObject is used to store data of a certain kind (e.g., user customization, saved searches, etc.). If for a given user, no InfoObject exists for a given type of user-specific data, the default data...
"Extracts user data, either from user session or from\n database (for each User, an InfoObject is used to\n store data of a certain kind (e.g., user customization,\n saved searches, etc.). If for a given user,\n no InfoObject exists for a given type of user-specific data,\n the defaul...
139
false
siemens/django-dingos
get_user_data
140,632
LDU_FT/publysher/rdflib-django/_get_named_graph
LDU_FT
[ "<BEGIN>\n## `_get_query_sets_for_object`", "Determines the correct query set based on the object.", " If the object is a literal, it will return a query set over LiteralStatements.\n If the object is a URIRef or BNode, it will return a query set over Statements.\n If the object is unknown, it will ret...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_named_graph API. 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_named_graph API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Returns the named graph for this context.
"Returns the named graph for this context."
17
false
publysher/rdflib-django
_get_named_graph
140,633
LDU_FT/signaturit/python-sdk/remove_user
LDU_FT
[ "<BEGIN>\n## `get_signature`", "Get a concrete Signature\n @return Signature data\n<END>", "<BEGIN>\n## `download_audit_trail`", "Get the audit trail of concrete document\n @signature_id: Id of signature\n @document_id: Id of document\n<END>", "<BEGIN>\n## `download_signed_document`", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the remove_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 remove_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...
Remove a user from your team :param user_id: Id of user
"Remove a user from your team\n :param user_id: Id of user"
52
false
signaturit/python-sdk
remove_user
140,634
LDU_FT/tornadoweb/tornado/_handle_websocket_headers
LDU_FT
[ "<BEGIN>\n## `start`", "Begins watching source files for changes.", " .. versionchanged:: 5.0\n The ``io_loop`` argument (deprecated since version 4.1) has been removed.\n<END>", "<BEGIN>\n## `main`", "Command-line wrapper to re-run a script whenever its source changes.", " Scripts may be spec...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _handle_websocket_headers API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _handle_websocket_headers API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi...
Verifies all invariant- and required headers If a header is missing or have an incorrect value ValueError will be raised
"Verifies all invariant- and required headers\n\n If a header is missing or have an incorrect value ValueError will be\n raised"
1,291
true
tornadoweb/tornado
_handle_websocket_headers
140,635
LDU_FT/kmike/port-for/ranges_to_set
LDU_FT
[ "<BEGIN>\n## `_write_unassigned_ranges`", "Downloads ports data from IANA & Wikipedia and converts\n it to a python module. This function is used to generate _ranges.py.\n<END>", "<BEGIN>\n## `_unassigned_ports`", "Returns a set of all unassigned ports (according to IANA and Wikipedia)\n<END>", "<BEGIN>\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the ranges_to_set API. 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 ranges_to_set API. 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...
Convert a list of ranges to a set of numbers:: >>> ranges = [(1,3), (5,6)] >>> sorted(list(ranges_to_set(ranges))) [1, 2, 3, 5, 6]
"Convert a list of ranges to a set of numbers::\n\n >>> ranges = [(1,3), (5,6)]\n >>> sorted(list(ranges_to_set(ranges)))\n [1, 2, 3, 5, 6]"
31
false
kmike/port-for
ranges_to_set
140,636
LDU_FT/klen/pylama/write
LDU_FT
[ "<BEGIN>\n## `run`", "MCCabe code checking.", " :return list: List of errors.\n<END>", "<BEGIN>\n## `split_csp_str`", "Split comma separated string into unique values, keeping their order.", " :returns: list of splitted values\n<END>", "<BEGIN>\n## `parse_linters`", "Initialize choosen linte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the write API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the write API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
Write namespace as INI file. :param f: File object or path to file.
"Write namespace as INI file.\n\n :param f: File object or path to file."
81
false
klen/pylama
write
140,637
LDU_FT/OLC-Bioinformatics/sipprverse/find_out_pattern
LDU_FT
[ "<BEGIN>\n## `cmd2list`", "Executes a command through the operating system and returns the output\n as a list, or on error a string with the standard error.\n EXAMPLE:\n >>> from subprocess import Popen, PIPE\n >>> CMDout2array('ls -l')\n<END>", "<BEGIN>\n## `print_timers`", "PRINT EXECUTION TIM...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_out_pattern API. 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 find_out_pattern API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
This function will read the standard error of the program and return a matching pattern if found. EG. prog_obj.FindErrPattern("Update of mySQL failed")
"This function will read the standard error of the program and return\n a matching pattern if found.\n\n EG. prog_obj.FindErrPattern(\"Update of mySQL failed\")"
255
false
OLC-Bioinformatics/sipprverse
find_out_pattern
140,638
LDU_FT/tamasgal/km3pipe/com
LDU_FT
[ "<BEGIN>\n## `count_multiplicities`", "Calculate an array of multiplicities and corresponding coincidence IDs", " Note that this algorithm does not take care about DOM IDs, so it has to\n be fed with DOM hits.", " Parameters\n ----------\n times: array[float], shape=(n,)\n Hit times for ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the com API. 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 com API. 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...
Center of mass, calculated from the mean of the PMT positions
"Center of mass, calculated from the mean of the PMT positions"
418
false
tamasgal/km3pipe
com
140,639
LDU_FT/PatrikValkovic/grammpy/_controlSide
LDU_FT
[ "<BEGIN>\n## `reverse_cyk_transforms`", "Reverse transformation made to grammar before CYK.\n Performs following steps:\n - transform from chomsky normal form\n - restore unit rules\n - restore epsilon rules\n :param root: Root node of the parsed tree.\n :return: Restored...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _controlSide API. 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 _controlSide API. 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...
Validate one side of the rule. :param side: Iterable side of the rule. :param grammar: Grammar on which to validate. :raise RuleSyntaxException: If invalid syntax is use. :raise UselessEpsilonException: If useless epsilon is used. :raise TerminalDoesNotExistsException: If termina...
"Validate one side of the rule.\n :param side: Iterable side of the rule.\n :param grammar: Grammar on which to validate.\n :raise RuleSyntaxException: If invalid syntax is use.\n :raise UselessEpsilonException: If useless epsilon is used.\n :raise TerminalDoesNotExistsException: If t...
126
false
PatrikValkovic/grammpy
_controlSide
140,640
LDU_FT/humilis/humilis-lambdautils/_get_secret_from_vault
LDU_FT
[ "<BEGIN>\n## `unpack_kinesis_event`", "Extracts events (a list of dicts) from a Kinesis event.\n<END>", "<BEGIN>\n## `send_to_delivery_stream`", "Sends a list of events to a Firehose delivery stream.\n<END>", "<BEGIN>\n## `_secrets_table_name`", "Name of the secrets table associated to a humilis deploymen...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_secret_from_vault 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_secret_from_vault API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
Retrieves a secret from the secrets vault.
"Retrieves a secret from the secrets vault."
40
false
humilis/humilis-lambdautils
_get_secret_from_vault
140,641
LDU_FT/maartenbreddels/ipyvolume/plot_wireframe
LDU_FT
[ "<BEGIN>\n## `volshow`", "Deprecated: please use ipyvolume.quickvolshow or use the ipyvolume.pylab interface.\n<END>", "<BEGIN>\n## `quickvolshow`", "Visualize a 3d array using volume rendering.", " :param data: 3d numpy array\n :param lighting: boolean, to use lighting or not, if set to false, lighti...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the plot_wireframe API. 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 plot_wireframe API. 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...
Draws a 2d wireframe in 3d, defines by the 2d ordered arrays x,y,z. See also :any:`ipyvolume.pylab.plot_mesh` :param x: {x2d} :param y: {y2d} :param z: {z2d} :param color: {color2d} :param bool wrapx: when True, the x direction is assumed to wrap, and polygons are drawn between the begin and e...
"Draws a 2d wireframe in 3d, defines by the 2d ordered arrays x,y,z.\n\n See also :any:`ipyvolume.pylab.plot_mesh`\n\n :param x: {x2d}\n :param y: {y2d}\n :param z: {z2d}\n :param color: {color2d}\n :param bool wrapx: when True, the x direction is assumed to wrap, and polygons are drawn between the be...
141
false
maartenbreddels/ipyvolume
plot_wireframe
140,642
LDU_FT/proycon/clam/addinputfile
LDU_FT
[ "<BEGIN>\n## `convertforinput`", "Convert from target format into one of the source formats. Relevant if converters are used in InputTemplates. Metadata already is metadata for the to-be-generated file. 'filepath' is both the source and the target file, the source file will be erased and overwritten with the conv...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the addinputfile API. 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 addinputfile API. 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...
Add a new input file, this invokes the actual uploader
"Add a new input file, this invokes the actual uploader"
194
false
proycon/clam
addinputfile
140,643
LDU_FT/dunovank/jupyter-themes/get_theme_style
LDU_FT
[ "<BEGIN>\n## `install_theme`", "Install theme to jupyter_customcss with specified font, fontsize,\n md layout, and toolbar pref\n<END>", "<BEGIN>\n## `infer_theme`", "checks jupyter_config_dir() for text file containing theme name\n (updated whenever user installs a new theme)\n<END>", "<BEGIN>\n## `s...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_theme_style API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_theme_style API. 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...
read-in theme style info and populate styleMap (dict of with mpl.rcParams) and clist (list of hex codes passed to color cylcler) ::Arguments:: theme (str): theme name ::Returns:: styleMap (dict): dict containing theme-specific colors for figure properties clist (list): list of colors...
"read-in theme style info and populate styleMap (dict of with mpl.rcParams)\n and clist (list of hex codes passed to color cylcler)\n ::Arguments::\n theme (str): theme name\n ::Returns::\n styleMap (dict): dict containing theme-specific colors for figure properties\n clist (list): list of...
38
false
dunovank/jupyter-themes
get_theme_style
140,644
LDU_FT/berkerpeksag/astor/pretty_string
LDU_FT
[ "<BEGIN>\n## `convert`", "Walk the srctree, and convert/copy all python files\n into the dsttree\n<END>", "<BEGIN>\n## `split_lines`", "Split inputs according to lines.\n If a line is short enough, just yield it.\n Otherwise, fix it.\n<END>", "<BEGIN>\n## `wrap_line`", "We have a line that ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the pretty_string API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the pretty_string API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
There are a lot of reasons why we might not want to or be able to return a triple-quoted string. We can always punt back to the default normal string.
"There are a lot of reasons why we might not want to or\n be able to return a triple-quoted string. We can always\n punt back to the default normal string."
63
false
berkerpeksag/astor
pretty_string
140,645
LDU_FT/deep-compute/logagg/start_daemon_thread
LDU_FT
[ "<BEGIN>\n## `start_daemon_thread`", "starts a deamon thread for a given target function and arguments.\n<END>", "<BEGIN>\n## `serialize_dict_keys`", "returns all the keys in a dictionary.", " >>> serialize_dict_keys({\"a\": {\"b\": {\"c\": 1, \"b\": 2} } })\n ['a', 'a.b', 'a.b.c', 'a.b.b']\n<END>", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the start_daemon_thread 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 start_daemon_thread 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...
starts a deamon thread for a given target function and arguments.
"starts a deamon thread for a given target function and arguments."
59
false
deep-compute/logagg
start_daemon_thread
140,646
LDU_FT/celery/django-celery/naturaldate
LDU_FT
[ "<BEGIN>\n## `transaction_retry`", "Decorator for methods doing database operations.", " If the database operation fails, it will retry the operation\n at most ``max_retries`` times.\n<END>", "<BEGIN>\n## `get_task`", "Get task meta for task by ``task_id``.", " :keyword exception_retry_count:...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the naturaldate API. 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 naturaldate API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
Convert datetime into a human natural date string.
"Convert datetime into a human natural date string."
65
false
celery/django-celery
naturaldate
140,647
LDU_FT/mitodl/edx-api-client/_get_enrollments_list_page
LDU_FT
[ "<BEGIN>\n## `get_detail`", "Fetches course details.", " Args:\n course_id (str): An edx course id.", " Returns:\n CourseDetail\n<END>", "<BEGIN>\n## `get_user_info`", "Returns a UserInfo object for the logged in user.", " Returns:\n UserInfo: object...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_enrollments_list_page API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclus...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_enrollments_list_page API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclus...
Submit request to retrieve enrollments list. Args: params (dict): Query parameters to use in the request. Valid parameters are: * course_id: Filters the result to course enrollments for the course corresponding to the given course ID. The value must be URL encode...
"Submit request to retrieve enrollments list.\n\n Args:\n params (dict): Query parameters to use in the request. Valid parameters are:\n * course_id: Filters the result to course enrollments for the course\n corresponding to the given course ID. The value must be URL ...
55
false
mitodl/edx-api-client
_get_enrollments_list_page
140,648
LDU_FT/nuSTORM/gnomon/CreateVertices
LDU_FT
[ "<BEGIN>\n## `objwalk`", "Traverse a dictionary recursively and save path", " Taken from:\n http://code.activestate.com/recipes/577982-recursively-walk-python-objects/\n<END>", "<BEGIN>\n## `lookup_cc_partner`", "Lookup the charge current partner", " Takes as an input neutrino nu_pid is a PDG c...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the CreateVertices API. 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 CreateVertices API. 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 a dictionary object with keys that are 2tuples represnting a point.
"Returns a dictionary object with keys that are 2tuples\n represnting a point."
43
false
nuSTORM/gnomon
CreateVertices
140,649
LDU_FT/jjjake/internetarchive/prepare_headers
LDU_FT
[ "<BEGIN>\n## `prepare_metadata`", "Prepare a metadata dict for an\n :class:`S3PreparedRequest <S3PreparedRequest>` or\n :class:`MetadataPreparedRequest <MetadataPreparedRequest>` object.", " :type metadata: dict\n :param metadata: The metadata dict to be prepared.", " :type source_metadata: dic...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the prepare_headers API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the prepare_headers API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
Convert a dictionary of metadata into S3 compatible HTTP headers, and append headers to ``headers``. :type metadata: dict :param metadata: Metadata to be converted into S3 HTTP Headers and appended to ``headers``. :type headers: dict :param headers: (op...
"Convert a dictionary of metadata into S3 compatible HTTP\n headers, and append headers to ``headers``.\n\n :type metadata: dict\n :param metadata: Metadata to be converted into S3 HTTP Headers\n and appended to ``headers``.\n\n :type headers: dict\n :param hea...
281
false
jjjake/internetarchive
prepare_headers
140,650
LDU_FT/mrcagney/gtfstk/valid_str
LDU_FT
[ "<BEGIN>\n## `get_stop_times`", "Return a subset of ``feed.stop_times``.", " Parameters\n ----------\n feed : Feed\n date : string\n YYYYMMDD date string restricting the output to trips active\n on the date", " Returns\n -------\n DataFrame\n Subset of ``feed.stop_tim...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the valid_str API. 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 valid_str API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
Return ``True`` if ``x`` is a non-blank string; otherwise return ``False``.
"Return ``True`` if ``x`` is a non-blank string;\n otherwise return ``False``."
474
false
mrcagney/gtfstk
valid_str
140,651
LDU_FT/byroot/pysrt/save
LDU_FT
[ "<BEGIN>\n## `slice`", "slice([starts_before][, starts_after][, ends_before][, ends_after]) \\\n-> SubRipFile clone", " All arguments are optional, and should be coercible to SubRipTime\n object.", " It reduce the set of subtitles to those that match match given time\n constraints....
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([path][, encoding][, eol]) Use initial path if no other provided. Use initial encoding if no other provided. Use initial eol if no other provided.
"save([path][, encoding][, eol])\n\n Use initial path if no other provided.\n Use initial encoding if no other provided.\n Use initial eol if no other provided."
55
false
byroot/pysrt
save
140,652
LDU_FT/xenadevel/PyXenaManager/reserve_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 reserve_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 ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the reserve_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 ext...
Reserve ports and reset factory defaults. XenaManager-2G -> Reserve/Relinquish Port. XenaManager-2G -> Reset port. :param locations: list of ports locations in the form <module/port> to reserve :param force: True - take forcefully, False - fail if port is reserved by other user ...
"Reserve ports and reset factory defaults.\n\n XenaManager-2G -> Reserve/Relinquish Port.\n XenaManager-2G -> Reset port.\n\n :param locations: list of ports locations in the form <module/port> to reserve\n :param force: True - take forcefully, False - fail if port is reserved by other user\...
140
false
xenadevel/PyXenaManager
reserve_ports
140,653
LDU_FT/ytjia/utils-py/dt_delta
LDU_FT
[ "<BEGIN>\n## `class_check_para`", "force check accept and return,\n decorator, @class_check_para(accept=, returns=, mail=)\n :param kw:\n :return:\n<END>", "<BEGIN>\n## `decorator_info`", "Convenience function returns nicely formatted error/warning msg.\n :param f_name:\n :param expected:\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the dt_delta API. 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 dt_delta API. 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...
获取dt相隔delta的日期 :param dt: :param delta: :return:
"获取dt相隔delta的日期\n :param dt:\n :param delta:\n :return:"
31
false
ytjia/utils-py
dt_delta
140,654
LDU_FT/fozzle/python-brotherprint/alignment
LDU_FT
[ "<BEGIN>\n## `initialize`", "Calling this function initializes the printer.", " Args:\n None\n Returns:\n None\n Raises:\n None\n<END>", "<BEGIN>\n## `select_charset`", "Select international character set and changes codes in code table accordingly", "...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the alignment API. 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 alignment API. 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...
Sets the alignment of the printer. Args: align: desired alignment. Options are 'left', 'center', 'right', and 'justified'. Anything else will throw an error. Returns: None Raises: RuntimeError: Invalid alignment.
"Sets the alignment of the printer.\n \n Args:\n align: desired alignment. Options are 'left', 'center', 'right', and 'justified'. Anything else\n will throw an error.\n Returns:\n None\n Raises:\n RuntimeError: Invalid alignment."
113
false
fozzle/python-brotherprint
alignment
140,655
LDU_FT/etingof/pysnmp/getCmd
LDU_FT
[ "<BEGIN>\n## `getMibSymbol`", "Returns MIB variable symbolic identification.", " Returns\n -------\n str\n MIB module name\n str\n MIB variable symbolic name\n : :py:class:`~pysnmp.proto.rfc1902.ObjectName`\n class instance representing MIB ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the getCmd API. 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 getCmd API. 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 ...
Creates a generator to perform one or more SNMP GET queries. On each iteration, new SNMP GET request is send (:RFC:`1905#section-4.2.1`). The iterator blocks waiting for response to arrive or error to occur. Parameters ---------- snmpDispatcher: :py:class:`~pysnmp.hlapi.v1arch.asyncore.SnmpDispatc...
"Creates a generator to perform one or more SNMP GET queries.\n\n On each iteration, new SNMP GET request is send (:RFC:`1905#section-4.2.1`).\n The iterator blocks waiting for response to arrive or error to occur.\n\n Parameters\n ----------\n snmpDispatcher: :py:class:`~pysnmp.hlapi.v1arch.asyncore.Snm...
708
false
etingof/pysnmp
getCmd
140,656
LDU_FT/twosigma/beakerx/is_stale
LDU_FT
[ "<BEGIN>\n## `create_cmdclass`", "Create a command class with the given optional wrappers.\n Parameters\n ----------\n develop_wrapper: list(str), optional\n The cmdclass names to run before running other commands\n distribute_wrappers: list(str), optional\n The cmdclass names to run bef...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_stale API. 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_stale API. 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...
Test whether the target file/directory is stale based on the source file/directory.
"Test whether the target file/directory is stale based on the source\n file/directory."
20
false
twosigma/beakerx
is_stale
140,657
LDU_FT/python-bonobo/bonobo/open_fs
LDU_FT
[ "<BEGIN>\n## `run`", "Main entry point of bonobo. It takes a graph and creates all the necessary plumbing around to execute it.", " The only necessary argument is a :class:`Graph` instance, containing the logic you actually want to execute.", " By default, this graph will be executed using the \"threadp...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the open_fs API. 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 open_fs API. 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...
Wraps :obj:`fs.opener.registry.Registry.open_fs`, with default to local current working directory and expanding ~ in path. :param str fs_url: A filesystem URL :param parse_result: A parsed filesystem URL. :type parse_result: :class:`ParseResult` :param bool writeable: True if the filesystem must be...
"Wraps :obj:`fs.opener.registry.Registry.open_fs`, with default to local current working directory and expanding ~ in\n path.\n\n :param str fs_url: A filesystem URL\n :param parse_result: A parsed filesystem URL.\n :type parse_result: :class:`ParseResult`\n :param bool writeable: True if the filesystem ...
140
false
python-bonobo/bonobo
open_fs
140,658
LDU_FT/NeuroML/NeuroMLlite/generate_and_run
LDU_FT
[ "<BEGIN>\n## `create_new_model`", "net.projections.append(Projection(id='proj0',\n presynaptic=p0.id, \n postsynaptic=p1.id,\n synapse='ampa'))", " net.projections[0].random_connectivity=RandomConne...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the generate_and_run API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the generate_and_run API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Generates the network in the specified simulator and runs, if appropriate
"Generates the network in the specified simulator and runs, if appropriate"
35
false
NeuroML/NeuroMLlite
generate_and_run
140,659
LDU_FT/arviz-devs/arviz/treeplot
LDU_FT
[ "<BEGIN>\n## `generate_dims_coords`", "Generate default dimensions and coordinates for a variable.", " Parameters\n ----------\n shape : tuple[int]\n Shape of the variable\n var_name : str\n Name of the variable. Used in the default name, if necessary\n dims : list\n List of ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the treeplot API. 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 treeplot API. 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 data for each treeplot for the variable.
"Get data for each treeplot for the variable."
674
false
arviz-devs/arviz
treeplot
140,660
LDU_FT/theosysbio/means/close
LDU_FT
[ "<BEGIN>\n## `simulate_system`", "Perform Gillespie SSA simulations and returns trajectories for of each species.\n Each trajectory is interpolated at the given time points.\n By default, the average amounts of species for all simulations is returned.", " :param parameters: list of the init...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the close API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the close API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
In MFK, replaces symbol for high order (order == max_order+1) by parametric expressions. That is expressions depending on lower order moments such as means, variances, covariances and so on. :param mfk: the right hand side equations containing symbols for high order central moments :param centr...
"In MFK, replaces symbol for high order (order == max_order+1) by parametric expressions.\n That is expressions depending on lower order moments such as means, variances, covariances and so on.\n\n :param mfk: the right hand side equations containing symbols for high order central moments\n :param ...
244
false
theosysbio/means
close
140,661
LDU_FT/memphis-iis/GLUDB/DBObject
LDU_FT
[ "<BEGIN>\n## `read_rec`", "Generator that yields keyed recs from store.\n<END>", "<BEGIN>\n## `set_db_application_prefix`", "Set the global app prefix and separator.\n<END>", "<BEGIN>\n## `find_by_index`", "Find records matching index query - defer to backend.\n<END>", "<BEGIN>\n## `_auto_init`", "Our...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the DBObject API. 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 DBObject API. 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...
Classes annotated with DBObject gain persistence methods.
"Classes annotated with DBObject gain persistence methods."
57
false
memphis-iis/GLUDB
DBObject
140,662
LDU_FT/scottgigante/tasklogger/log_error
LDU_FT
[ "<BEGIN>\n## `set_level`", "Set the logging level", " Parameters\n ----------\n level : `int` or `bool` (optional, default: 1)\n If False or 0, prints WARNING and higher messages.\n If True or 1, prints INFO and higher messages.\n If 2 or higher, prints all ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the log_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 extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the log_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 extract...
Log an ERROR message Convenience function to log a message to the default Logger Parameters ---------- msg : str Message to be logged logger : str, optional (default: "TaskLogger") Unique name of the logger to retrieve Returns ------- logger : TaskLogger
"Log an ERROR message\n\n Convenience function to log a message to the default Logger\n\n Parameters\n ----------\n msg : str\n Message to be logged\n logger : str, optional (default: \"TaskLogger\")\n Unique name of the logger to retrieve\n\n Returns\n -------\n logger : TaskLogge...
65
false
scottgigante/tasklogger
log_error
140,663
LDU_FT/OLC-Bioinformatics/ConFindr/run_cmd
LDU_FT
[ "<BEGIN>\n## `bbduk_trim`", "Wrapper for using bbduk to quality trim reads. Contains arguments used in OLC Assembly Pipeline, but these can\n be overwritten by using keyword parameters.\n :param forward_in: Forward reads you want to quality trim.\n :param returncmd: If set to true, function will return t...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the run_cmd API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the run_cmd API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
Runs a command using subprocess, and returns both the stdout and stderr from that command If exit code from command is non-zero, raises subproess.CalledProcessError :param cmd: command to run as a string, as it would be called on the command line :return: out, err: Strings that are the stdout and stderr fro...
"Runs a command using subprocess, and returns both the stdout and stderr from that command\n If exit code from command is non-zero, raises subproess.CalledProcessError\n :param cmd: command to run as a string, as it would be called on the command line\n :return: out, err: Strings that are the stdout and stderr...
56
false
OLC-Bioinformatics/ConFindr
run_cmd
140,664
LDU_FT/Parsely/birding/initialize
LDU_FT
[ "<BEGIN>\n## `main`", "Do the default action of `twitter` command.\n<END>", "<BEGIN>\n## `from_oauth_file`", "Get an object bound to the Twitter API using your own credentials.", " The `twitter` library ships with a `twitter` command that uses PIN\n OAuth. Generate your own OAuth credentials b...
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 extrac...
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 extrac...
Initialization steps: 1. Prepare sequence of terms based on config: TermCycleSpout/terms.
"Initialization steps:\n\n 1. Prepare sequence of terms based on config: TermCycleSpout/terms."
88
false
Parsely/birding
initialize
140,665
LDU_FT/Brightmd/TxPx/outLineReceived
LDU_FT
[ "<BEGIN>\n## `registerLoggers`", "Add logging functions to this module.", " Functions will be called on various severities (log, error, or debug\n respectively).", " Each function must have the signature:\n fn(message, **kwargs)", " If Python str.format()-style placeholders are in message...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the outLineReceived API. 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 outLineReceived API. 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...
Handle data via stdout linewise. This is useful if you turned off buffering. In your subclass, override this if you want to handle the line as a protocol line in addition to logging it. (You may upcall this function safely.)
"Handle data via stdout linewise. This is useful if you turned off\n buffering.\n\n In your subclass, override this if you want to handle the line as a\n protocol line in addition to logging it. (You may upcall this function\n safely.)"
18
false
Brightmd/TxPx
outLineReceived
140,666
LDU_FT/drericstrong/pyedna/GetPoints
LDU_FT
[ "<BEGIN>\n## `write_relationships`", "This module will output the eDNA tags which are used inside each\n calculation.", " If flat=True, data will be written flat, like:\n ADE1CA01, ADE1PI01, ADE1PI02", " If flat=False, data will be written in the non-flat way, like:\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the GetPoints API. 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 GetPoints API. 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...
Obtains all the points in the edna_service, including real-time values. :param edna_service: The full Site.Service name of the eDNA service. :return: A pandas DataFrame of points in the form [Tag, Value, Time, Description, Units]
"Obtains all the points in the edna_service, including real-time values.\r\n\r\n :param edna_service: The full Site.Service name of the eDNA service.\r\n :return: A pandas DataFrame of points in the form [Tag, Value, Time,\r\n Description, Units]"
70
false
drericstrong/pyedna
GetPoints
140,667
LDU_FT/autokey/autokey/list_menu_multi
LDU_FT
[ "<BEGIN>\n## `save`", "Called by the parent settings dialog when the user clicks on the Save button.\n Stores the current settings in the ConfigManager.\n<END>", "<BEGIN>\n## `_settings_str`", "Returns a human readable settings representation for logging purposes.\n<END>", "<BEGIN>\n## `_should_trigg...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the list_menu_multi API. 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 list_menu_multi API. 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...
Show a multiple-selection list menu Usage: C{dialog.list_menu_multi(options, title="Choose one or more values", message="Choose one or more values", defaults=[], **kwargs)} @param options: list of options (strings) for the dialog @param title: window title for the dialog ...
"Show a multiple-selection list menu\n \n Usage: C{dialog.list_menu_multi(options, title=\"Choose one or more values\", message=\"Choose one or more values\", defaults=[], **kwargs)}\n \n @param options: list of options (strings) for the dialog\n @param title: window title for the dia...
363
false
autokey/autokey
list_menu_multi
140,668
LDU_FT/rorr73/LifeSOSpy/as_dict
LDU_FT
[ "<BEGIN>\n## `has_value`", "True if specified value exists in int enum; otherwise, False.\n<END>", "<BEGIN>\n## `parse_name`", "Parse specified name for IntEnum; return default if not found.\n<END>", "<BEGIN>\n## `parse_value`", "Parse specified value for IntEnum; return default if not found.\n<END>", "...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the as_dict API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the as_dict API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
Converts to a dict of attributes for easier serialization.
"Converts to a dict of attributes for easier serialization."
84
false
rorr73/LifeSOSpy
as_dict
140,669
LDU_FT/perrygeo/simanneal/load
LDU_FT
[ "<BEGIN>\n## `distance`", "Calculates distance between two latitude-longitude coordinates.\n<END>", "<BEGIN>\n## `round_figures`", "Returns x rounded to n significant figures.\n<END>", "<BEGIN>\n## `set_schedule`", "Takes the output from `auto` and sets the attributes\n<END>", "<BEGIN>\n## `copy_state`"...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
Opens a shapefile from a filename or file-like object. Normally this method would be called by the constructor with the file object or file name as an argument.
"Opens a shapefile from a filename or file-like\r\n object. Normally this method would be called by the\r\n constructor with the file object or file name as an\r\n argument."
67
false
perrygeo/simanneal
load
140,670
LDU_FT/openstack/python-scciclient/elcm_profile_get
LDU_FT
[ "<BEGIN>\n## `scci_cmd`", "execute SCCI command", " This function calls SCCI server modules\n :param host: hostname or IP of iRMC\n :param userid: userid for iRMC with administrator privileges\n :param password: password for userid\n :param cmd: SCCI command\n :param port: port number of iRMC\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the elcm_profile_get API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the elcm_profile_get API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
send an eLCM request to get profile data :param irmc_info: node info :param profile_name: name of profile :returns: dict object of profile data if succeed :raises: ELCMProfileNotFound if profile does not exist :raises: SCCIClientError if SCCI failed
"send an eLCM request to get profile data\n\n :param irmc_info: node info\n :param profile_name: name of profile\n :returns: dict object of profile data if succeed\n :raises: ELCMProfileNotFound if profile does not exist\n :raises: SCCIClientError if SCCI failed"
194
false
openstack/python-scciclient
elcm_profile_get
140,671
LDU_FT/CamDavidsonPilon/lifelines/plot
LDU_FT
[ "<BEGIN>\n## `right_censor_lifetimes`", "Right censor the deaths, uniformly\n lifetimes: (n,) array of positive random variables\n max_: the max time a censorship can occur\n min_: the min time a censorship can occur", " Returns\n The actual observations including uniform right censoring,...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the plot API. 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 plot API. 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...
A wrapper around plotting. Matplotlib plot arguments can be passed in, plus: Parameters ----------- columns: string or list-like, optional If not empty, plot a subset of columns from the ``cumulative_hazards_``. Default all. loc: iloc: slice, optional specif...
"A wrapper around plotting. Matplotlib plot arguments can be passed in, plus:\n\n Parameters\n -----------\n columns: string or list-like, optional\n If not empty, plot a subset of columns from the ``cumulative_hazards_``. Default all.\n loc:\n\n iloc: slice, optional\n ...
603
false
CamDavidsonPilon/lifelines
plot
140,672