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/sentinel-hub/sentinelhub-py/get_available_sources
LDU_FT
[ "<BEGIN>\n## `_get_utm_code`", "Get UTM code given a zone and direction", " Direction is encoded as NORTH=6, SOUTH=7, while zone is the UTM zone number zero-padded.\n For instance, the code 32604 is returned for zone number 4, north direction.", " :param zone: UTM zone number\n :type zone: int\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_available_sources 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_available_sources 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 which data sources are available for configured Sentinel Hub OGC URL :return: List of available data sources :rtype: list(sentinelhub.DataSource)
"Returns which data sources are available for configured Sentinel Hub OGC URL\n\n :return: List of available data sources\n :rtype: list(sentinelhub.DataSource)"
559
false
sentinel-hub/sentinelhub-py
get_available_sources
11,073
LDU_FT/NyashniyVladya/RusPhonetic/set_prev_hard
LDU_FT
[ "<BEGIN>\n## `set_prev_sonorus`", "Выставляет параметры звонкости/глухости, для предыдущих согласных.\n<END>", "<BEGIN>\n## `set_prev_hard`", "Выставляет параметры твёрдости/мягкости, для предыдущих согласных.\n<END>", "<BEGIN>\n## `get_prev_letter`", "Возвращает предыдущий объект буквы, если она не являе...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_prev_hard API. 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 set_prev_hard API. 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...
Выставляет параметры твёрдости/мягкости, для предыдущих согласных.
"Выставляет параметры твёрдости/мягкости, для предыдущих согласных."
14
false
NyashniyVladya/RusPhonetic
set_prev_hard
11,074
LDU_FT/stuaxo/mnd/unbind
LDU_FT
[ "<BEGIN>\n## `bind`", ":param handler: a function with\n :param argspec:\n :return:\n<END>", "<BEGIN>\n## `unbind`", "handler will no longer be called if args match argspec", " :param argspec: instance of ArgSpec - args to be matched\n<END>", "<BEGIN>\n## `dispatch`", "Call handlers...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the unbind API. 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 unbind API. 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 ...
handler will no longer be called if args match argspec :param argspec: instance of ArgSpec - args to be matched
"handler will no longer be called if args match argspec\n\n :param argspec: instance of ArgSpec - args to be matched"
36
false
stuaxo/mnd
unbind
11,075
LDU_FT/Min-ops/cruddy/cli
LDU_FT
[ "<BEGIN>\n## `describe`", "Returns descriptive information about this cruddy handler and the\n methods supported by it.\n<END>", "<BEGIN>\n## `search`", "Cruddy provides a limited but useful interface to search GSI indexes in\n DynamoDB with the following limitations (hopefully some of these wil...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the cli API. 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 cli API. 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...
cruddy is a CLI interface to the cruddy handler. It can be used in one of two ways. First, you can pass in a ``--config`` option which is a JSON file containing all of your cruddy parameters and the CLI will create a cruddy handler to manipulate the DynamoDB table directly. Alternatively, you can...
"cruddy is a CLI interface to the cruddy handler. It can be used in one\n of two ways.\n\n First, you can pass in a ``--config`` option which is a JSON file\n containing all of your cruddy parameters and the CLI will create a cruddy\n handler to manipulate the DynamoDB table directly.\n\n Alternatively,...
36
false
Min-ops/cruddy
cli
11,076
LDU_FT/modlinltd/django-advanced-filters/filter_by_user
LDU_FT
[ "<BEGIN>\n## `changelist_view`", "Add advanced_filters form to changelist context\n<END>", "<BEGIN>\n## `filter_by_user`", "All filters that should be displayed to a user (by users/group)\n<END>", "<BEGIN>\n## `query`", "De-serialize, decode and return an ORM query stored in b64_query.\n<END>", "<BEGIN>...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the filter_by_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 ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the filter_by_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 ex...
All filters that should be displayed to a user (by users/group)
"All filters that should be displayed to a user (by users/group)"
37
false
modlinltd/django-advanced-filters
filter_by_user
11,077
LDU_FT/gsi-upm/soil/run_trial_exceptions
LDU_FT
[ "<BEGIN>\n## `save_record`", "Save a collection of records to the database.\n Database writes are cached.\n<END>", "<BEGIN>\n## `convert`", "Get the serialized value for a given key.\n<END>", "<BEGIN>\n## `recover`", "Get the deserialized value for a given key, and the serialized version.\n<END>", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the run_trial_exceptions 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 run_trial_exceptions API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
A wrapper for run_trial that catches exceptions and returns them. It is meant for async simulations
"A wrapper for run_trial that catches exceptions and returns them.\n It is meant for async simulations"
63
false
gsi-upm/soil
run_trial_exceptions
11,078
LDU_FT/jbeluch/xbmcswift2/set_resolved_url
LDU_FT
[ "<BEGIN>\n## `display_listitems`", "Displays a list of items along with the index to enable a user\n to select an item.\n<END>", "<BEGIN>\n## `display_video`", "Prints a message for a playing video and displays the parent\n listitem.\n<END>", "<BEGIN>\n## `get_user_choice`", "Returns the selected it...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_resolved_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 ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_resolved_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 ...
Takes a url or a listitem to be played. Used in conjunction with a playable list item with a path that calls back into your addon. :param item: A playable list item or url. Pass None to alert XBMC of a failure to resolve the item. .. warning:: When using set_r...
"Takes a url or a listitem to be played. Used in conjunction with a\n playable list item with a path that calls back into your addon.\n\n :param item: A playable list item or url. Pass None to alert XBMC of a\n failure to resolve the item.\n\n .. warning:: When usin...
164
false
jbeluch/xbmcswift2
set_resolved_url
11,079
LDU_FT/improbable-research/keanu/Power
LDU_FT
[ "<BEGIN>\n## `BooleanSlice`", "Takes the slice along a given dimension and index of a vertex", " :param input_vertex: the input vertex\n :param dimension: the dimension to extract along\n :param index: the index of extraction\n<END>", "<BEGIN>\n## `BooleanTake`", "A vertex that extracts a scalar at...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the Power API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the Power API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
Raises a vertex to the power of another :param base: the base vertex :param exponent: the exponent vertex
"Raises a vertex to the power of another\n \n :param base: the base vertex\n :param exponent: the exponent vertex"
185
false
improbable-research/keanu
Power
11,080
LDU_FT/mrtazz/simplenote.py/get_note
LDU_FT
[ "<BEGIN>\n## `authenticate`", "Method to get simplenote auth token", " Arguments:\n - user (string): simplenote email address\n - password (string): simplenote password", " Returns:\n Simplenote API token as string\n<END>", "<BEGIN>\n## `get_token`", "Met...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_note API. 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_note API. 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...
Method to get a specific note Arguments: - noteid (string): ID of the note to get - version (int): optional version of the note to get Returns: A tuple `(note, status)` - note (dict): note object - status (int): 0 on success and -1 otherwise
"Method to get a specific note\n\n Arguments:\n - noteid (string): ID of the note to get\n - version (int): optional version of the note to get\n\n Returns:\n A tuple `(note, status)`\n\n - note (dict): note object\n - status (int): 0 on success and -...
40
false
mrtazz/simplenote.py
get_note
11,081
LDU_FT/bitlabstudio/django-libs/get_verbose
LDU_FT
[ "<BEGIN>\n## `add_form_widget_attr`", "Adds widget attributes to a bound form field.", " This is helpful if you would like to add a certain class to all your forms\n (i.e. `form-control` to all form fields when you are using Bootstrap)::", " {% load libs_tags %}\n {% for field in form.fiel...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_verbose API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_verbose API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
Returns the verbose name of an object's field. :param obj: A model instance. :param field_name: The requested field value in string format.
"Returns the verbose name of an object's field.\n\n :param obj: A model instance.\n :param field_name: The requested field value in string format."
101
false
bitlabstudio/django-libs
get_verbose
11,082
LDU_FT/Autodesk/cryptorito/gpg_error
LDU_FT
[ "<BEGIN>\n## `polite_string`", "Returns a \"proper\" string that should work in both Py3/Py2\n<END>", "<BEGIN>\n## `not_a_string`", "It's probably not a string, in the sense\n that Python2/3 get confused about these things\n<END>", "<BEGIN>\n## `actually_flatten`", "Flatten iterables\n This is super...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the gpg_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 gpg_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...
Handles the output of subprocess errors in a way that is compatible with the log level
"Handles the output of subprocess errors\n in a way that is compatible with the log level"
36
false
Autodesk/cryptorito
gpg_error
11,083
LDU_FT/aouyar/PyMunin/getVoicemailStats
LDU_FT
[ "<BEGIN>\n## `parse_value`", "Parse input string and return int, float or str depending on format.", " @param val: Input string.\n @param parsebool: If True parse yes / no, on / off as boolean.\n @return: Value of type int, float or str.\n<END>", "<BEGIN>\n## `socket_read`", "Buffere...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the getVoicemailStats API. 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 getVoicemailStats API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Query Asterisk Manager Interface for Voicemail Stats. CLI Command - voicemail show users @return: Dictionary of statistics counters for Voicemail Accounts.
"Query Asterisk Manager Interface for Voicemail Stats.\n \n CLI Command - voicemail show users\n\n @return: Dictionary of statistics counters for Voicemail Accounts."
491
false
aouyar/PyMunin
getVoicemailStats
11,084
LDU_FT/perrygeo/simanneal/__dbfHeader
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 __dbfHeader API. 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 __dbfHeader API. 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...
Writes the dbf header and field descriptors.
"Writes the dbf header and field descriptors."
67
false
perrygeo/simanneal
__dbfHeader
11,085
LDU_FT/tBaxter/django-fretboard/get_topic_list
LDU_FT
[ "<BEGIN>\n## `update_forum_votes`", "When a Vote is added, re-saves the topic or post to update vote count.\r\n Since Votes can be assigned\r\n to any content type, first makes sure we are dealing with a forum post or topic.\r", " Deprecated 1-6-14 by storing score as cached property\n<END>", "<BEGIN...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_topic_list API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_topic_list API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
Returns a list of top recent topics, excluding less valuable forums. Default is 10 topics. Can be sorted for most active topics by votes and post count. Usage: {% get_topic_list 5 as topics %} {% get_topic_list 7 top_items=True as topics %}
"Returns a list of top recent topics, excluding less valuable forums.\n Default is 10 topics.\n Can be sorted for most active topics by votes and post count.\n Usage:\n {% get_topic_list 5 as topics %}\n {% get_topic_list 7 top_items=True as topics %}"
29
false
tBaxter/django-fretboard
get_topic_list
11,086
LDU_FT/codeinthehole/purl/remove_query_param
LDU_FT
[ "<BEGIN>\n## `to_utf8`", "Encode a string as a UTF8 bytestring. This function could be passed a\n bytestring or unicode string so must distinguish between the two.\n<END>", "<BEGIN>\n## `dict_to_unicode`", "Ensure all keys and values in a dict are unicode.", " The passed dict is assumed to have lists...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the remove_query_param API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the remove_query_param API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
Remove a query param from a URL Set the value parameter if removing from a list. :param string key: The key to delete :param string value: The value of the param to delete (of more than one)
"Remove a query param from a URL\n\n Set the value parameter if removing from a list.\n\n :param string key: The key to delete\n :param string value: The value of the param to delete (of more than one)"
75
false
codeinthehole/purl
remove_query_param
11,087
LDU_FT/davisd50/sparc.cache/first
LDU_FT
[ "<BEGIN>\n## `schema_map`", "Return a valid ICachedItemMapper.map for schema\n<END>", "<BEGIN>\n## `items`", "Returns a generator of available ICachableItem in the ICachableSource\n<END>", "<BEGIN>\n## `getById`", "Returns ICachableItem that matches id", " Args:\n id: String that ident...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the first API. 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 first API. 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...
Returns the first ICachableItem in the ICachableSource
"Returns the first ICachableItem in the ICachableSource"
37
false
davisd50/sparc.cache
first
11,088
LDU_FT/SuryaSankar/flask-sqlalchemy-booster/create_all
LDU_FT
[ "<BEGIN>\n## `_isinstance`", "Checks if the specified model instance matches the class model.\n By default this method will raise a `ValueError` if the model is not of\n expected type.", " Args:", " model (Model) : The instance to be type checked", " raise_error (b...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_all API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_all API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
Batch method for creating a list of instances Args: list_of_kwargs(list of dicts): hereA list of dicts where each dict denotes the keyword args that you would pass to the create method separately Examples: >>> Customer.create_all([ ....
"Batch method for creating a list of instances\n\n Args:\n list_of_kwargs(list of dicts): hereA list of dicts where\n each dict denotes the keyword args that you would pass\n to the create method separately\n\n Examples:\n\n >>> Customer.create_all([\n ...
177
false
SuryaSankar/flask-sqlalchemy-booster
create_all
11,089
LDU_FT/jschaf/ideone-api/create_submission
LDU_FT
[ "<BEGIN>\n## `_transform_to_dict`", "Transform the array from Ideone into a Python dictionary.\n<END>", "<BEGIN>\n## `_collapse_language_array`", "Convert the Ideone language list into a Python dictionary.\n<END>", "<BEGIN>\n## `_translate_language_name`", "Translate a human readable langauge name into it...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_submission API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_submission API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Create a submission and upload it to Ideone. Keyword Arguments ----------------- * source_code: a string of the programs source code * language_name: the human readable language string (e.g. 'python') * language_id: the ID of the programming language * std_input: the st...
"Create a submission and upload it to Ideone.\n\n Keyword Arguments\n -----------------\n\n * source_code: a string of the programs source code\n * language_name: the human readable language string (e.g. 'python')\n * language_id: the ID of the programming language\n * std_inpu...
45
false
jschaf/ideone-api
create_submission
11,090
LDU_FT/simon-anders/htseq/parse_GFF_attribute_string
LDU_FT
[ "<BEGIN>\n## `parse_GFF_attribute_string`", "Parses a GFF attribute string and returns it as a dictionary.", " If 'extra_return_first_value' is set, a pair is returned: the dictionary\n and the value of the first attribute. This might be useful if this is the\n ID.\n<END>", "<BEGIN>\n## `make_feature...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_GFF_attribute_string 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 parse_GFF_attribute_string API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclus...
Parses a GFF attribute string and returns it as a dictionary. If 'extra_return_first_value' is set, a pair is returned: the dictionary and the value of the first attribute. This might be useful if this is the ID.
"Parses a GFF attribute string and returns it as a dictionary.\n\n If 'extra_return_first_value' is set, a pair is returned: the dictionary\n and the value of the first attribute. This might be useful if this is the\n ID."
28
false
simon-anders/htseq
parse_GFF_attribute_string
11,091
LDU_FT/Workiva/furious/set_execution_context
LDU_FT
[ "<BEGIN>\n## `_handle_task`", "Pass request info to the async framework.\n<END>", "<BEGIN>\n## `_init`", "Initialize the furious context and registry.", " NOTE: Do not directly run this method.\n<END>", "<BEGIN>\n## `run_job`", "Takes an async object and executes its job.\n<END>", "<BEGIN>\n## `_ha...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_execution_context API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_execution_context API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Set the ExecutionContext this async is executing under.
"Set the ExecutionContext this async is executing under."
211
false
Workiva/furious
set_execution_context
11,092
LDU_FT/kytos/python-openflow/append
LDU_FT
[ "<BEGIN>\n## `in_port`", "Retrieve the 'in_port' that generated the PacketIn.", " This method will look for the OXM_TLV with type OFPXMT_OFB_IN_PORT on\n the `oxm_match_fields` field from `match` field and return its value,\n if the OXM exists.", " Returns:\n The integer...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the append API. 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 append API. 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 ...
Append one item to the list. Args: item: Item to be appended. Raises: :exc:`~.exceptions.WrongListItemType`: If an item has a different type than the first item to be stored.
"Append one item to the list.\n\n Args:\n item: Item to be appended.\n\n Raises:\n :exc:`~.exceptions.WrongListItemType`: If an item has a different\n type than the first item to be stored."
348
false
kytos/python-openflow
append
11,093
LDU_FT/necaris/python3-openid/renderXRDS
LDU_FT
[ "<BEGIN>\n## `parseExtensionArgs`", "Set the state of this request to be that expressed in these\n PAPE arguments", " @param args: The PAPE arguments without a namespace", " @rtype: None", " @raises ValueError: When the max_auth_age is not parseable as\n an integer\n<E...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the renderXRDS API. 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 renderXRDS API. 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...
Render an XRDS page with the specified type URIs and endpoint URLs in one service block, and return a response with the appropriate content-type.
"Render an XRDS page with the specified type URIs and endpoint\n URLs in one service block, and return a response with the\n appropriate content-type."
164
false
necaris/python3-openid
renderXRDS
11,094
LDU_FT/divio/django-filer/handle
LDU_FT
[ "<BEGIN>\n## `get_deleted_objects`", "Find all objects related to ``objs`` that should also be deleted. ``objs``\n must be a homogeneous iterable of objects (e.g. a QuerySet).\n Returns a nested list of strings suitable for display in the\n template with the ``unordered_list`` filter.\n<END>", "<BEGIN>...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the handle API. 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 handle API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Generates image thumbnails NOTE: To keep memory consumption stable avoid iteration over the Image queryset
"Generates image thumbnails\n\n NOTE: To keep memory consumption stable avoid iteration over the Image queryset"
80
false
divio/django-filer
handle
11,095
LDU_FT/metapensiero/metapensiero.signal/connect
LDU_FT
[ "<BEGIN>\n## `get_subscribers`", "Get per-instance subscribers from the signal.\n<END>", "<BEGIN>\n## `notify_prepared`", "Like notify allows to pass more options to the underlying\n `Signal.prepare_notification()` method.", " The allowed options are:", " notify_external : bool\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the connect API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the connect API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
Add a function or a method as an handler of this signal. Any handler added can be a coroutine. :param cback: the callback (or *handler*) to be added to the set :returns: ``None`` or the value returned by the corresponding wrapper
"Add a function or a method as an handler of this signal.\n Any handler added can be a coroutine.\n\n :param cback: the callback (or *handler*) to be added to the set\n :returns: ``None`` or the value returned by the corresponding wrapper"
47
false
metapensiero/metapensiero.signal
connect
11,096
LDU_FT/mkaz/termgraph/check_data
LDU_FT
[ "<BEGIN>\n## `find_max_label_length`", "Return the maximum length for the labels.\n<END>", "<BEGIN>\n## `horiz_rows`", "Prepare the horizontal graph.\n Each row is printed through the print_row function.\n<END>", "<BEGIN>\n## `print_row`", "A method to print a row for a horizontal graphs.", " i...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the check_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 extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the check_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 extrac...
Check that all data were inserted correctly. Return the colors.
"Check that all data were inserted correctly. Return the colors."
21
false
mkaz/termgraph
check_data
11,097
LDU_FT/DBuildService/dockerfile-parse/_add_instruction
LDU_FT
[ "<BEGIN>\n## `image_from`", ":param from_value: string like \"image:tag\" or \"image:tag AS name\"\n :return: tuple of the image and stage name, e.g. (\"image:tag\", None)\n<END>", "<BEGIN>\n## `lines`", ":return: list containing lines (unicode) from Dockerfile\n<END>", "<BEGIN>\n## `lines`", "Fill Doc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _add_instruction API. 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_instruction API. 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 instruction: instruction name to be added :param value: instruction value
":param instruction: instruction name to be added\n :param value: instruction value"
58
false
DBuildService/dockerfile-parse
_add_instruction
11,098
LDU_FT/kytos/kytos-utils/_check_module
LDU_FT
[ "<BEGIN>\n## `get_napp`", "Return napp metadata or None if not found.\n<END>", "<BEGIN>\n## `reload_napps`", "Reload a specific NApp or all Napps.", " Args:\n napp (list): NApp list to be reload.\n Raises:\n requests.HTTPError: When there's a server error.\n<END>", "<BE...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _check_module API. 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 _check_module API. 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...
Create module folder with empty __init__.py if it doesn't exist. Args: folder (pathlib.Path): Module path.
"Create module folder with empty __init__.py if it doesn't exist.\n\n Args:\n folder (pathlib.Path): Module path."
128
false
kytos/kytos-utils
_check_module
11,099
LDU_FT/edx/pa11ycrawler/after_auto_auth
LDU_FT
[ "<BEGIN>\n## `make_parser`", "Returns an argparse instance for this script.\n<END>", "<BEGIN>\n## `main`", "Validates script arguments and calls the render_html() function with them.\n<END>", "<BEGIN>\n## `wcag_refs`", "Given a `code` from pa11y, return a list of the WCAG references.\n These references...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the after_auto_auth API. 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 after_auto_auth API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
This method is called *only* if the crawler is started without an email and password combination. It parses the response from the "auto auth" feature, and saves the email and password combination. Then it generates requests from `self.start_urls`.
"This method is called *only* if the crawler is started without an\n email and password combination. It parses the response from the\n \"auto auth\" feature, and saves the email and password combination.\n Then it generates requests from `self.start_urls`."
56
false
edx/pa11ycrawler
after_auto_auth
11,100
LDU_FT/jenisys/parse_type/make_format
LDU_FT
[ "<BEGIN>\n## `build_type_dict`", "Builds type dictionary for user-defined type converters,\n used by :mod:`parse` module.\n This requires that each type converter has a \"name\" attribute.", " :param converters: List of type converters (parse_types)\n :return: Type converter dictionary\n<END>", "<...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the make_format API. 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 make_format API. 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...
Build format string from a format specification. :param format_spec: Format specification (as FormatSpec object). :return: Composed format (as string).
"Build format string from a format specification.\n\n :param format_spec: Format specification (as FormatSpec object).\n :return: Composed format (as string)."
115
false
jenisys/parse_type
make_format
11,101
LDU_FT/honeynet/beeswarm/start_pty_request
LDU_FT
[ "<BEGIN>\n## `setup_db`", "Sets up the database schema and adds defaults.\n :param connection_string: Database URL. e.g: sqlite:///filename.db\n This is usually taken from the config file.\n<END>", "<BEGIN>\n## `start_pty_request`", "Start a PTY - intended to run it a (green)th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the start_pty_request API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the start_pty_request API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Start a PTY - intended to run it a (green)thread.
"Start a PTY - intended to run it a (green)thread."
112
false
honeynet/beeswarm
start_pty_request
11,102
LDU_FT/jay-johnson/network-pipeline/find_all_headers
LDU_FT
[ "<BEGIN>\n## `publish_processed_network_packets`", "# Redis/RabbitMQ/SQS messaging endpoints for pub-sub\n routing_key = ev(\"PUBLISH_EXCHANGE\",\n \"reporting.accounts\")\n queue_name = ev(\"PUBLISH_QUEUE\",\n \"reporting.accounts\")\n auth_url = ev(\"PUB_BROKER_UR...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_all_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 ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_all_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 ...
find_all_headers :param pipeline_files: files to process :param label_rules: labeling rules
"find_all_headers\n\n :param pipeline_files: files to process\n :param label_rules: labeling rules"
140
false
jay-johnson/network-pipeline
find_all_headers
11,103
LDU_FT/aichaos/rivescript-python/substitute
LDU_FT
[ "<BEGIN>\n## `format_message`", "Format a user's message for safe processing.", " This runs substitutions on the message and strips out any remaining\n symbols (depending on UTF-8 mode).", " :param str msg: The user's message.\n :param bool botreply: Whether this formatting is bein...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the substitute API. 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 substitute API. 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...
Run a kind of substitution on a message. :param str msg: The message to run substitutions against. :param str kind: The kind of substitution to run, one of ``subs`` or ``person``.
"Run a kind of substitution on a message.\n\n :param str msg: The message to run substitutions against.\n :param str kind: The kind of substitution to run,\n one of ``subs`` or ``person``."
218
false
aichaos/rivescript-python
substitute
11,104
LDU_FT/antocuni/pdb/error
LDU_FT
[ "<BEGIN>\n## `xpm`", "To be used inside an except clause, enter a post-mortem pdb\n related to the just catched exception.\n<END>", "<BEGIN>\n## `refresh_stack`", "Recompute the stack after e.g. show_hidden_frames has been modified\n<END>", "<BEGIN>\n## `complete`", "Handle completions from fancycomple...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the 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 extracted d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the 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 extracted d...
Override/enhance default error method to display tracebacks.
"Override/enhance default error method to display tracebacks."
36
false
antocuni/pdb
error
11,105
LDU_FT/gamechanger/mongothon/find_by_id
LDU_FT
[ "<BEGIN>\n## `register`", "Registers the given function as a handler to be applied\n in response to the the given event.\n<END>", "<BEGIN>\n## `apply`", "Applies all middleware functions registered against the given\n event in order to the given document.\n<END>", "<BEGIN>\n## `deregister`", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_by_id API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_by_id API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
Finds a single document by its ID. Throws a NotFoundException if the document does not exist (the assumption being if you've got an id you should be pretty certain the thing exists)
"Finds a single document by its ID. Throws a\n NotFoundException if the document does not exist (the\n assumption being if you've got an id you should be\n pretty certain the thing exists)"
59
false
gamechanger/mongothon
find_by_id
11,106
LDU_FT/tgbugs/pyontutils/clean_pred
LDU_FT
[ "<BEGIN>\n## `build_transgenic_lines`", "init class | \"transgenic_line_source_name\":\"stock_number\" a Class\n add superClass | rdfs:subClassOf ilxtr:transgenicLine\n add *order* | ilxtr:useObjectProperty ilxtr:<order>\n add name | rdfs:label \"name\"\n add def ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the clean_pred API. 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 clean_pred API. 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...
Takes the predicate and returns the suffix, lower case, stripped version
"Takes the predicate and returns the suffix, lower case, stripped version"
301
false
tgbugs/pyontutils
clean_pred
11,107
LDU_FT/muckamuck/stackility/list
LDU_FT
[ "<BEGIN>\n## `_init_boto3_clients`", "The utililty requires boto3 clients to CloudFormation.", " Args:\n None", " Returns:\n Good or Bad; True or False\n<END>", "<BEGIN>\n## `determine_drift`", "Determine the drift of the stack.", " Args:\n None", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the list API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the list API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
List the existing stacks in the indicated region Args: None Returns: True if True Todo: Figure out what could go wrong and take steps to hanlde problems.
"List the existing stacks in the indicated region\n\n Args:\n None\n\n Returns:\n True if True\n\n Todo:\n Figure out what could go wrong and take steps\n to hanlde problems."
89
false
muckamuck/stackility
list
11,108
LDU_FT/tyiannak/pyAudioAnalysis/convertFsDirWavToWav
LDU_FT
[ "<BEGIN>\n## `recordAnalyzeAudio`", "recordAnalyzeAudio(duration, outputWavFile, midTermBufferSizeSec, modelName, modelType)", "\tThis function is used to record and analyze audio segments, in a fix window basis.", "\tARGUMENTS: \n\t- duration\t\t\ttotal recording duration\n\t- outputWavFile\t\t\tpath of the ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the convertFsDirWavToWav 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 convertFsDirWavToWav API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
This function converts the WAV files stored in a folder to WAV using a different sampling freq and number of channels. ARGUMENTS: - dirName: the path of the folder where the WAVs are stored - Fs: the sampling rate of the generated WAV files - nC: the number of channesl of the ge...
"This function converts the WAV files stored in a folder to WAV using a different sampling freq and number of channels.\n ARGUMENTS:\n - dirName: the path of the folder where the WAVs are stored\n - Fs: the sampling rate of the generated WAV files\n - nC: the number of channesl of t...
99
false
tyiannak/pyAudioAnalysis
convertFsDirWavToWav
11,109
LDU_FT/prompt-toolkit/pymux/set_active_window_from_pane_id
LDU_FT
[ "<BEGIN>\n## `read_message_from_pipe`", "(coroutine)\n Read message from this pipe. Return text.\n<END>", "<BEGIN>\n## `read_message_bytes_from_pipe`", "(coroutine)\n Read message from this pipe. Return bytes.\n<END>", "<BEGIN>\n## `wait_for_event`", "Wraps a win32 event into a `Future` and wait for...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_active_window_from_pane_id API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its con...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_active_window_from_pane_id API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its con...
Make the window with this pane ID the active Window.
"Make the window with this pane ID the active Window."
147
false
prompt-toolkit/pymux
set_active_window_from_pane_id
11,110
LDU_FT/chriskiehl/Gooey/fetchDynamicProperties
LDU_FT
[ "<BEGIN>\n## `applyStyleRules`", "Conditionally disabled/enables form fields based on the current\r\n section in the radio group\n<END>", "<BEGIN>\n## `handleImplicitCheck`", "Checkboxes are hidden when inside of a RadioGroup as a selection of\r\n the Radio button is an implicit selection of the...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the fetchDynamicProperties 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 fetchDynamicProperties API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
Sends a gooey-seed-ui request to the client program it retrieve dynamically generated defaults with which to seed the UI
"Sends a gooey-seed-ui request to the client program it retrieve\r\n dynamically generated defaults with which to seed the UI"
60
false
chriskiehl/Gooey
fetchDynamicProperties
11,111
LDU_FT/KeplerGO/K2fov/computePointing
LDU_FT
[ "<BEGIN>\n## `angSepVincenty`", "Vincenty formula for distances on a sphere\n<END>", "<BEGIN>\n## `parse_file`", "Parse a comma-separated file with columns \"ra,dec,magnitude\".\n<END>", "<BEGIN>\n## `K2onSilicon`", "Checks whether targets are on silicon during a given campaign.", " This function wil...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the computePointing API. 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 computePointing API. 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...
Compute a pointing model without changing the internal object pointing
"Compute a pointing model without changing the internal object pointing"
185
false
KeplerGO/K2fov
computePointing
11,112
LDU_FT/bitlabstudio/django-development-fabfile/import_db
LDU_FT
[ "<BEGIN>\n## `require_server`", "Checks if the user has called the task with a server name.", " Fabric tasks decorated with this decorator must be called like so::", " fab <server name> <task name>", " If no server name is given, the task will not be executed.\n<END>", "<BEGIN>\n## `run_deplo...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the import_db API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the import_db API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
Imports the database. Make sure that you have this in your ``~/.pgpass`` file: localhost:5433:*:publishizer_publishizer:publishizer Also make sure that the file has ``chmod 0600 .pgpass``. Usage:: fab import_db fab import_db:filename=foobar.dump
"Imports the database.\n\n Make sure that you have this in your ``~/.pgpass`` file:\n\n localhost:5433:*:publishizer_publishizer:publishizer\n\n Also make sure that the file has ``chmod 0600 .pgpass``.\n\n Usage::\n\n fab import_db\n fab import_db:filename=foobar.dump"
77
false
bitlabstudio/django-development-fabfile
import_db
11,113
LDU_FT/dpgaspar/Flask-AppBuilder/auth_user_remote_user
LDU_FT
[ "<BEGIN>\n## `dict_to_json`", "Converts a list of dicts from datamodel query results\n to google chart json data.", " :param xcol:\n The name of a string column to be used has X axis on chart\n :param ycols:\n A list with the names of series cols, that can be used as n...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the auth_user_remote_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. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the auth_user_remote_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. ...
REMOTE_USER user Authentication :param username: user's username for remote auth :type self: User model
"REMOTE_USER user Authentication\n\n :param username: user's username for remote auth\n :type self: User model"
393
false
dpgaspar/Flask-AppBuilder
auth_user_remote_user
11,114
LDU_FT/keleshev/schema/code
LDU_FT
[ "<BEGIN>\n## `code`", "Removes duplicates values in auto and error list.\n parameters.\n<END>", "<BEGIN>\n## `validate`", "Validate data using defined sub schema/expressions ensuring all\n values are valid.\n :param data: to be validated with sub defined schemas.\n :return: returns...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the 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 extracted do...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the 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 extracted do...
Removes duplicates values in auto and error list. parameters.
"Removes duplicates values in auto and error list.\n parameters."
12
false
keleshev/schema
code
11,115
LDU_FT/Duke-GCB/lando-messaging/shutdown
LDU_FT
[ "<BEGIN>\n## `raise_on_major_version_mismatch`", "Raises error if major version is different. Other wise logs the difference.\n :param work_request: WorkRequest: request that had a different version\n :param local_version: str: our version string that does not match message.version\n<END>", "<BEGIN>\n## `...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the shutdown API. 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 shutdown API. 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...
Close the connection/shutdown the messaging loop. :param payload: None: not used. Here to allow using this method with add_command.
"Close the connection/shutdown the messaging loop.\n :param payload: None: not used. Here to allow using this method with add_command."
50
false
Duke-GCB/lando-messaging
shutdown
11,116
LDU_FT/espressif/esptool/update_reg
LDU_FT
[ "<BEGIN>\n## `decrypt`", "Decrypt a block of cipher text using the AES block cipher.\n<END>", "<BEGIN>\n## `increment`", "Increment the counter (overflow rolls back to 0).\n<END>", "<BEGIN>\n## `summary`", "Print a human-readable summary of efuse contents\n<END>", "<BEGIN>\n## `write_efuses`", "Write ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update_reg API. 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 update_reg API. 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...
Update register at 'addr', replace the bits masked out by 'mask' with new_val. new_val is shifted left to match the LSB of 'mask' Returns just-written value of register.
"Update register at 'addr', replace the bits masked out by 'mask'\n with new_val. new_val is shifted left to match the LSB of 'mask'\n\n Returns just-written value of register."
199
false
espressif/esptool
update_reg
11,117
LDU_FT/cuducos/getgist/indent
LDU_FT
[ "<BEGIN>\n## `run_getgist`", "Passes user inputs to GetGist() and calls get()\n<END>", "<BEGIN>\n## `run_getmy`", "Shortcut for run_getgist() reading username from env var\n<END>", "<BEGIN>\n## `run_putgist`", "Passes user inputs to GetGist() and calls put()\n<END>", "<BEGIN>\n## `get`", "Reads the re...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the indent API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the indent API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Sets the indent for standardized output :param message: (str) :return: (str)
"Sets the indent for standardized output\n :param message: (str)\n :return: (str)"
44
false
cuducos/getgist
indent
11,118
LDU_FT/Nekroze/partpy/get_char
LDU_FT
[ "<BEGIN>\n## `pretty_print`", "Print the previous and current line with line numbers and\n a carret under the current character position.", " Will also print a message if one is given to this exception.\n<END>", "<BEGIN>\n## `parse`", "Run the parser over the entire sourestring and return the ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_char API. 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_char API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
Return the current character in the working string.
"Return the current character in the working string."
80
false
Nekroze/partpy
get_char
11,119
LDU_FT/mattupstate/flask-social/delete_connections
LDU_FT
[ "<BEGIN>\n## `get_authorize_callback`", "Get a qualified URL for the provider to return to upon authorization", " param: endpoint: Absolute path to append to the application's host\n<END>", "<BEGIN>\n## `delete_connection`", "Remove a single connection to a provider for the specified user.\n<END>", "<B...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the delete_connections 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 delete_connections 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...
Remove a single connection to a provider for the specified user.
"Remove a single connection to a provider for the specified user."
21
false
mattupstate/flask-social
delete_connections
11,120
LDU_FT/liminspace/dju-image/remove_tmp_prefix_from_file_path
LDU_FT
[ "<BEGIN>\n## `image_get_format`", "Return image format for file-object f. (jpeg, png, gif etc.)\n All formats: http://pillow.readthedocs.org/en/latest/handbook/image-file-formats.html\n Example:\n if image_get_format(request.FILES['image']) == 'jpeg':\n print 'Image is JPEG'", " i...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the remove_tmp_prefix_from_file_path API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its c...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the remove_tmp_prefix_from_file_path API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its c...
Remove tmp prefix from file path or url.
"Remove tmp prefix from file path or url."
36
false
liminspace/dju-image
remove_tmp_prefix_from_file_path
11,121
LDU_FT/CiscoTestAutomation/yang/_get_sequence
LDU_FT
[ "<BEGIN>\n## `retrieve_config`", "retrieve_config", " High-level api: Retrive config from rpc-reply.", " Parameters\n ----------", " element : `Element`\n A rpc-reply or content of Config instance.", " Returns\n -------", " Element\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_sequence API. 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_sequence API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
_get_sequence Low-level api: Return a list of children of a parent with the same tag within the scope. Parameters ---------- scope : `list` List members can be an element, or a tuple of two elements. tag : `str` Identifier in `{url}tagname` not...
"_get_sequence\n\n Low-level api: Return a list of children of a parent with the same tag\n within the scope.\n\n Parameters\n ----------\n\n scope : `list`\n List members can be an element, or a tuple of two elements.\n\n tag : `str`\n Identifier in `{url...
554
false
CiscoTestAutomation/yang
_get_sequence
11,122
LDU_FT/agoragames/leaderboard-python/top
LDU_FT
[ "<BEGIN>\n## `pool`", "Fetch a redis conenction pool for the unique combination of host\n and port. Will create a new one if there isn't one already.\n<END>", "<BEGIN>\n## `rank_member`", "Rank a member in the leaderboard.", " @param member [String] Member name.\n @param score [float] M...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the top API. 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 top API. 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...
Retrieve members from the leaderboard within a range from 1 to the number given. @param ending_rank [int] Ending rank (inclusive). @param options [Hash] Options to be used when retrieving the data from the leaderboard. @return number from the leaderboard that fall within the given rank range.
"Retrieve members from the leaderboard within a range from 1 to the number given.\n\n @param ending_rank [int] Ending rank (inclusive).\n @param options [Hash] Options to be used when retrieving the data from the leaderboard.\n\n @return number from the leaderboard that fall within the given rank r...
180
false
agoragames/leaderboard-python
top
11,123
LDU_FT/projectshift/shift-schema/validate
LDU_FT
[ "<BEGIN>\n## `validate`", "Validate\n Perform value validation against validation settings and return\n error object.", " :param value: list, value to check\n :param model: parent model being validated\n :param context: object or None, validation co...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the validate API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the validate API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
Validate Perform value validation against validation settings and return error object. :param value: list, value to check :param model: parent model being validated :param context: object or None, validation context :return: shi...
"Validate\n Perform value validation against validation settings and return\n error object.\n\n :param value: list, value to check\n :param model: parent model being validated\n :param context: object or None, validation context\n :return: ...
135
false
projectshift/shift-schema
validate
11,124
LDU_FT/DataMedSci/beprof/normalize
LDU_FT
[ "<BEGIN>\n## `x_at_y`", "Calculates inverse profile - for given y returns x such that f(x) = y\n If given y is not found in the self.y, then interpolation is used.\n By default returns first result looking from left,\n if reverse argument set to True,\n looks from right. If y is outsid...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the normalize API. 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 normalize API. 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...
Normalize to 1 over [-dt, +dt] area, if allow_cast is set to True, division not in place and casting may occur. If division in place is not possible and allow_cast is False an exception is raised. >>> a = Profile([[0, 0], [1, 5], [2, 10], [3, 5], [4, 0]]) >>> a.normalize(1, allo...
"Normalize to 1 over [-dt, +dt] area, if allow_cast is set\n to True, division not in place and casting may occur.\n If division in place is not possible and allow_cast is False\n an exception is raised.\n\n >>> a = Profile([[0, 0], [1, 5], [2, 10], [3, 5], [4, 0]])\n >>> a.normalize(...
49
false
DataMedSci/beprof
normalize
11,125
LDU_FT/relwell/corenlp-xml-lib/collapsed_dependencies
LDU_FT
[ "<BEGIN>\n## `mentions`", "Returns mentions", " :return: list of mentions\n :rtype: list\n<END>", "<BEGIN>\n## `sentence`", "The sentence related to this mention", " :getter: returns the sentence this mention relates to\n :type: corenlp_xml.document.Sentence\n<END>", "<BEGIN>...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the collapsed_dependencies 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 collapsed_dependencies API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
Accessess collapsed dependencies for this sentence :getter: Returns the dependency graph for collapsed dependencies :type: corenlp_xml.dependencies.DependencyGraph
"Accessess collapsed dependencies for this sentence\n\n :getter: Returns the dependency graph for collapsed dependencies\n :type: corenlp_xml.dependencies.DependencyGraph"
87
false
relwell/corenlp-xml-lib
collapsed_dependencies
11,126
LDU_FT/iron-lion/nJSD/parse_gene_expression
LDU_FT
[ "<BEGIN>\n## `njsd_all`", "Compute transcriptome-wide nJSD between reference and query expression profiles.\n Attribute:\n network (str): File path to a network file.\n ref (str): File path to a reference expression file.\n query (str): File path to a query expression file.\n<END>", "<BE...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_gene_expression 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 parse_gene_expression API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Parses gene expression file and returns a (gene identifier)-(expression) dictionary. Attribute: gene_expression_fp (str): File path to a gene expression file. mean (bool): When making a normal(reference) gene expression profile, you might use average values of gene expressions for ea...
"Parses gene expression file and returns a (gene identifier)-(expression) dictionary.\r\n Attribute:\r\n gene_expression_fp (str): File path to a gene expression file.\r\n mean (bool): When making a normal(reference) gene expression profile, you might use\r\n average values of gene expressio...
20
false
iron-lion/nJSD
parse_gene_expression
11,127
LDU_FT/mjirik/imcut/fix_crinfo
LDU_FT
[ "<BEGIN>\n## `__msgc_step3_discontinuity_localization`", "Estimate discontinuity in basis of low resolution image segmentation.\n :return: discontinuity in low resolution\n<END>", "<BEGIN>\n## `__multiscale_gc_lo2hi_run`", "Run Graph-Cut segmentation with refinement of low resolution multiscale graph.\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the fix_crinfo API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the fix_crinfo API. 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...
Function recognize order of crinfo and convert it to proper format.
"Function recognize order of crinfo and convert it to proper format."
119
false
mjirik/imcut
fix_crinfo
11,128
LDU_FT/opengridcc/opengrid/plot
LDU_FT
[ "<BEGIN>\n## `add`", "Add the path of a data set to the list of available sets", " NOTE: a data set is assumed to be a pickled\n and gzip compressed Pandas DataFrame", " Parameters\n ----------\n path : str\n<END>", "<BEGIN>\n## `unpack`", "Unpacks a data set to a Pandas...
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...
Plot measurements and predictions. By default, use self._fit and self.df, but both can be overruled by the arguments df and fit This function will detect if the data has been used for the modelling or not and will visualize them differently. Parameters ---------- model ...
"Plot measurements and predictions.\n\n By default, use self._fit and self.df, but both can be overruled by the arguments df and fit\n This function will detect if the data has been used for the modelling or not and will\n visualize them differently.\n\n Parameters\n ----------\n ...
84
false
opengridcc/opengrid
plot
11,129
LDU_FT/yjzhang/uncurl_python/qualNorm_filter_genes
LDU_FT
[ "<BEGIN>\n## `_create_m_objective`", "Creates an objective function and its derivative for M, given W and X", " Args:\n w (array): clusters x cells\n X (array): genes x cells\n<END>", "<BEGIN>\n## `initialize_from_assignments`", "Creates a weight initialization matrix from Poisson clusterin...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the qualNorm_filter_genes 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 qualNorm_filter_genes API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Does qualNorm but returns a filtered gene set, based on a p-value threshold.
"Does qualNorm but returns a filtered gene set, based on a p-value threshold."
265
false
yjzhang/uncurl_python
qualNorm_filter_genes
11,130
LDU_FT/ml31415/numpy-groupies/label_contiguous_1d
LDU_FT
[ "<BEGIN>\n## `aggregate_group_loop`", "wraps func in lambda which prevents aggregate_numpy from\n recognising and optimising it. Instead it groups and loops.\n<END>", "<BEGIN>\n## `step_count`", "Return the amount of index changes within group_idx.\n<END>", "<BEGIN>\n## `step_indices`", "Return the edg...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the label_contiguous_1d 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 label_contiguous_1d 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...
WARNING: API for this function is not liable to change!!! By example: X = [F T T F F T F F F T T T] result = [0 1 1 0 0 2 0 0 0 3 3 3] Or: X = [0 3 3 0 0 5 5 5 1 1 0 2] result = [0 1 1 0 0 2 2 2 3 3 0 4] The ``0`` or ``False`` elements of ``X`` a...
"WARNING: API for this function is not liable to change!!! \n \n By example:\n\n X = [F T T F F T F F F T T T]\n result = [0 1 1 0 0 2 0 0 0 3 3 3]\n \n Or:\n X = [0 3 3 0 0 5 5 5 1 1 0 2]\n result = [0 1 1 0 0 2 2 2 3 3 0 4]\n \n The ``0`` or ``False`` element...
56
false
ml31415/numpy-groupies
label_contiguous_1d
11,131
LDU_FT/flo-compbio/genometools/center_genes
LDU_FT
[ "<BEGIN>\n## `sum`", "Sum over rows or columns.", " Overrides the default `pandas.DataFrame.sum()` function to prevent\n temporary in-memory copies.\n<END>", "<BEGIN>\n## `get_heatmap`", "Generate a heatmap (`ExpHeatmap`) of the matrix.", " See :class:`ExpHeatmap` constructor for keyw...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the center_genes API. 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 center_genes API. 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...
Center the expression of each gene (row).
"Center the expression of each gene (row)."
496
false
flo-compbio/genometools
center_genes
11,132
LDU_FT/squdle/baseconvert/digits
LDU_FT
[ "<BEGIN>\n## `represent_as_tuple`", "Represent a number-string in the form of a tuple of digits.\r\n \"868.0F\" -> (8, 6, 8, '.', 0, 15)\r", " Args:\r\n string - Number represented as a string of digits.\r\n Returns:\r\n Number represented as an iterable container of digits\r", " >>>...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the digits API. 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 digits API. 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 ...
Determines the number of digits of a number in a specific base. Args: number(int): An integer number represented in base 10. base(int): The base to find the number of digits. Returns: Number of digits when represented in a particular base (integer). Examples: >>>...
"Determines the number of digits of a number in a specific base.\r\n\r\n Args:\r\n number(int): An integer number represented in base 10.\r\n base(int): The base to find the number of digits.\r\n\r\n Returns:\r\n Number of digits when represented in a particular base (integer).\r\n\r\n Exa...
77
false
squdle/baseconvert
digits
11,133
LDU_FT/BrighterCommand/Brightside/_establish_connection
LDU_FT
[ "<BEGIN>\n## `send`", "Dispatches a request. Expects one and one only target handler\n :param request: The request to dispatch\n :return: None, will throw a ConfigurationException if more than one handler factor is registered for the command\n<END>", "<BEGIN>\n## `publish`", "Dispatches a reques...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _establish_connection 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 _establish_connection API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
We don't use a pool here. We only have one consumer connection per process, so we get no value from a pool, and we want to use a heartbeat to keep the consumer collection alive, which does not work with a pool :return: the connection to the transport
"We don't use a pool here. We only have one consumer connection per process, so\n we get no value from a pool, and we want to use a heartbeat to keep the consumer\n collection alive, which does not work with a pool\n :return: the connection to the transport"
21
false
BrighterCommand/Brightside
_establish_connection
11,134
LDU_FT/fastavro/fastavro/validate_union
LDU_FT
[ "<BEGIN>\n## `_read_decimal`", "based on https://github.com/apache/avro/pull/82/\n<END>", "<BEGIN>\n## `read_long`", "int and long values are written using variable-length, zig-zag\n coding.\n<END>", "<BEGIN>\n## `read_bytes`", "Bytes are encoded as a long followed by that many bytes of data.\n<END>", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the validate_union API. 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 validate_union API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
Check that the data is a list type with possible options to validate as True. Parameters ---------- datum: Any Data being validated schema: dict Schema parent_ns: str parent namespace raise_errors: bool If true, raises ValidationError on invalid data
"Check that the data is a list type with possible options to\n validate as True.\n\n Parameters\n ----------\n datum: Any\n Data being validated\n schema: dict\n Schema\n parent_ns: str\n parent namespace\n raise_errors: bool\n If true, raises ValidationError on invalid ...
136
false
fastavro/fastavro
validate_union
11,135
LDU_FT/gijzelaerr/python-snap7/set_connection_params
LDU_FT
[ "<BEGIN>\n## `check_error`", "check if the error code is set. If so, a Python log message is generated\n and an error is raised.\n<END>", "<BEGIN>\n## `error_text`", "Returns a textual explanation of a given error number", " :param error: an error integer\n :param context: server, client or partner...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_connection_params API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_connection_params API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Sets internally (IP, LocalTSAP, RemoteTSAP) Coordinates. This function must be called just before Cli_Connect(). :param address: PLC/Equipment IPV4 Address, for example "192.168.1.12" :param local_tsap: Local TSAP (PC TSAP) :param remote_tsap: Remote TSAP (PLC TSAP)
"Sets internally (IP, LocalTSAP, RemoteTSAP) Coordinates.\n This function must be called just before Cli_Connect().\n\n :param address: PLC/Equipment IPV4 Address, for example \"192.168.1.12\"\n :param local_tsap: Local TSAP (PC TSAP)\n :param remote_tsap: Remote TSAP (PLC TSAP)"
150
false
gijzelaerr/python-snap7
set_connection_params
11,136
LDU_FT/hobson/pug-invest/histogram_and_plot
LDU_FT
[ "<BEGIN>\n## `log_loss`", "Log of the loss (error) summed over all entries", " The negative of the logarithm of the frequency (probability) of the predicted\n label given the true binary label for a category.", " Arguments:\n predicted (np.array of float): 2-D table of probabilities for each\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the histogram_and_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. Th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the histogram_and_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. Th...
Bin a DataFrame of floats or datetime strings and plot the histogram Arguments: df (DataFrame of str or float): table of data containing data to be counted and binned column (str): label of the DataFrame column containing data to be counted and binned width (float): 0 < width <= 1, the graphical ...
"Bin a DataFrame of floats or datetime strings and plot the histogram\n\n Arguments:\n df (DataFrame of str or float): table of data containing data to be counted and binned\n column (str): label of the DataFrame column containing data to be counted and binned\n width (float): 0 < width <= 1, the grap...
205
false
hobson/pug-invest
histogram_and_plot
11,137
LDU_FT/Shapeways/coyote_framework/poll
LDU_FT
[ "<BEGIN>\n## `get_login_form_component`", "Initializes and returns the login form component", " @rtype: LoginForm\n @return: Initialized component\n<END>", "<BEGIN>\n## `objectify`", "Converts a dictionary into a named tuple (shallow)\n<END>", "<BEGIN>\n## `create_directory`", "Creates a d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the poll API. 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 poll API. 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...
Calls the function until bool(return value) is truthy @param step: Wait time between each function call @param timeout: Max amount of time that will elapse. If the function is in progress when timeout has passed, the function will be allowed to complete. @type ignore_exceptions: tuple @param ignore...
"Calls the function until bool(return value) is truthy\n\n @param step: Wait time between each function call\n @param timeout: Max amount of time that will elapse. If the function is in progress when timeout has passed, the\n function will be allowed to complete.\n @type ignore_exceptions: tuple\n @param...
370
false
Shapeways/coyote_framework
poll
11,138
LDU_FT/Equitable/trump/_bld_pab_generic
LDU_FT
[ "<BEGIN>\n## `create`", "Create, or get if exists, a Symbol.\r", " Parameters\r\n ----------\r\n name : str\r\n A symbol's name is a primary key, used across\r\n the Trump ORM.\r\n description : str, optional\r\n An arbitrary string, used to store use...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _bld_pab_generic API. 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 _bld_pab_generic API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
implements a generic version of an attribute based pandas function
"implements a generic version of an attribute based pandas function"
177
false
Equitable/trump
_bld_pab_generic
11,139
LDU_FT/proycon/pynlpl/publisher
LDU_FT
[ "<BEGIN>\n## `auc`", "Compute Area Under the Curve (AUC) using the trapezoidal rule", " This is a general fuction, given points on a curve. For computing the area\n under the ROC-curve, see :func:`auc_score`.", " Parameters\n ----------\n x : array, shape = [n]\n x coordinates.", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the publisher API. 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 publisher API. 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...
No arguments: Get the document's publisher from metadata Argument: Set the document's publisher in metadata
"No arguments: Get the document's publisher from metadata\n Argument: Set the document's publisher in metadata"
533
false
proycon/pynlpl
publisher
11,140
LDU_FT/dnouri/nolearn/partial_fit
LDU_FT
[ "<BEGIN>\n## `plot_conv_weights`", "Plot the weights of a specific layer.", " Only really makes sense with convolutional layers.", " Parameters\n ----------\n layer : lasagne.layers.Layer\n<END>", "<BEGIN>\n## `plot_conv_activity`", "Plot the acitivities of a specific layer.", " Only real...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the partial_fit API. 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 partial_fit API. 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...
Runs a single epoch using the provided data :return: This instance
"Runs a single epoch using the provided data\n\n :return: This instance"
64
false
dnouri/nolearn
partial_fit
11,141
LDU_FT/garenchan/policy/reducer
LDU_FT
[ "<BEGIN>\n## `from_dict`", "Allow loading of rule data from a dictionary.\n<END>", "<BEGIN>\n## `_set_rules`", "Created a new Rules object based on the provided dict of rules.\n<END>", "<BEGIN>\n## `enforce`", "Checks authorization of a rule against the target and credentials.\n<END>", "<BEGIN>\n## `rea...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the reducer API. 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 reducer API. 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...
Decorator for reduction methods. Arguments are a sequence of tokens, which should trigger running this reduction method.
"Decorator for reduction methods.\n\n Arguments are a sequence of tokens, which should trigger running\n this reduction method."
35
false
garenchan/policy
reducer
11,142
LDU_FT/xoolive/traffic/_set_default_extent
LDU_FT
[ "<BEGIN>\n## `closest_point_of_approach`", "Computes a CPA dataframe for all pairs of trajectories candidates for\n being separated by less than lateral_separation in vertical_separation.", " In order to be computed efficiently, the method needs the following\n parameters:", " - projection: a firs...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _set_default_extent 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 _set_default_extent 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...
Helper for a default extent limited to the projection boundaries.
"Helper for a default extent limited to the projection boundaries."
147
false
xoolive/traffic
_set_default_extent
11,143
LDU_FT/djgagne/hagelslag/closest_distance
LDU_FT
[ "<BEGIN>\n## `label`", "Label input grid with hysteresis method.", " Args:\n input_grid: 2D array of values.", " Returns:\n Labeled output grid.\n<END>", "<BEGIN>\n## `size_filter`", "Remove labeled objects that do not meet size threshold criteria.", " Args:\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the closest_distance API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the closest_distance API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Euclidean distance between the pixels in item_a and item_b closest to each other. Args: item_a: STObject from the first set in ObjectMatcher time_a: Time integer being evaluated item_b: STObject from the second set in ObjectMatcher time_b: Time integer being evaluated max_va...
"Euclidean distance between the pixels in item_a and item_b closest to each other.\n\n Args:\n item_a: STObject from the first set in ObjectMatcher\n time_a: Time integer being evaluated\n item_b: STObject from the second set in ObjectMatcher\n time_b: Time integer being evaluated\n ...
530
false
djgagne/hagelslag
closest_distance
11,144
LDU_FT/log2timeline/dftimewolf/run_modules
LDU_FT
[ "<BEGIN>\n## `setup`", "Sets up the _paths attribute.", " Args:\n paths: Comma-separated list of strings representing the paths to collect.\n<END>", "<BEGIN>\n## `process`", "Checks whether the paths exists and updates the state accordingly.\n<END>", "<BEGIN>\n## `_create_hunt`", "Create specifi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the run_modules API. 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 run_modules API. 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...
Performs the actual processing for each module in the module pool.
"Performs the actual processing for each module in the module pool."
228
false
log2timeline/dftimewolf
run_modules
11,145
LDU_FT/theislab/anndata/_inplace_subset_var
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 _inplace_subset_var 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 _inplace_subset_var 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...
Inplace subsetting along variables dimension. Same as ``adata = adata[:, index]``, but inplace.
"Inplace subsetting along variables dimension.\n\n Same as ``adata = adata[:, index]``, but inplace."
143
false
theislab/anndata
_inplace_subset_var
11,146
LDU_FT/zsimic/runez/get_str
LDU_FT
[ "<BEGIN>\n## `same_type`", ":return bool: True if 't1' and 't2' are of equivalent types\n<END>", "<BEGIN>\n## `read_json`", ":param str|None path: Path to file to deserialize\n :param dict|list|None default: Default if file is not present, or if it's not json\n :param bool|None fatal: Abort execution on...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_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 extracted...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_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 extracted...
Args: key (str | unicode | None): Key to lookup default (str | unicode | None): Default to use if key is not configured Returns: (str | None): Value of key, if defined
"Args:\n key (str | unicode | None): Key to lookup\n default (str | unicode | None): Default to use if key is not configured\n\n Returns:\n (str | None): Value of key, if defined"
256
false
zsimic/runez
get_str
11,147
LDU_FT/sixty-north/cosmic-ray/_validate_python_version
LDU_FT
[ "<BEGIN>\n## `handle_new_config`", "usage: cosmic-ray new-config <config-file>", " Create a new config file.\n<END>", "<BEGIN>\n## `handle_init`", "usage: cosmic-ray init <config-file> <session-file>", " Initialize a mutation testing session from a configuration. This\n primarily creates a sessio...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _validate_python_version 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 _validate_python_version API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio...
Return True if a string is of the form <int>.<int>, False otherwise.
"Return True if a string is of the form <int>.<int>, False otherwise."
213
false
sixty-north/cosmic-ray
_validate_python_version
11,148
LDU_FT/Galarzaa90/tibia.py/parse_tibiadata_datetime
LDU_FT
[ "<BEGIN>\n## `ranks`", ":class:`list` of :class:`str`: Ranks in their hierarchical order.\n<END>", "<BEGIN>\n## `from_content`", "Creates an instance of the class from the HTML content of the guild's page.", " Parameters\n -----------\n content: :class:`str`\n The HTML conten...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_tibiadata_datetime 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 parse_tibiadata_datetime API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio...
Parses time objects from the TibiaData API. Time objects are made of a dictionary with three keys: date: contains a string representation of the time timezone: a string representation of the timezone the date time is based on timezone_type: the type of representation used in the timezone ke...
"Parses time objects from the TibiaData API.\n\n Time objects are made of a dictionary with three keys:\n date: contains a string representation of the time\n timezone: a string representation of the timezone the date time is based on\n timezone_type: the type of representation used in the timez...
254
false
Galarzaa90/tibia.py
parse_tibiadata_datetime
11,149
LDU_FT/cohorte/cohorte-herald/register
LDU_FT
[ "<BEGIN>\n## `main`", "Runs the framework", " :param http_port: HTTP port to listen to\n :param peer_name: Name of the peer\n :param node_name: Name (also, UID) of the node hosting the peer\n :param app_id: Application ID\n<END>", "<BEGIN>\n## `_get_link`", "Returns a link to the given peer", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the register API. 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 register API. 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...
Registers a peer according to its description :param peer: A Peer description bean :raise KeyError:
"Registers a peer according to its description\n\n :param peer: A Peer description bean\n :raise KeyError:"
110
false
cohorte/cohorte-herald
register
11,150
LDU_FT/Parquery/icontract/_decorate_with_invariants
LDU_FT
[ "<BEGIN>\n## `_collapse_invariants`", "Collect invariants from the bases and merge them with the invariants in the namespace.\n<END>", "<BEGIN>\n## `_collapse_preconditions`", "Collapse function preconditions with the preconditions collected from the base classes.", " :param base_preconditions: precondit...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _decorate_with_invariants 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 _decorate_with_invariants API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi...
Decorate the function ``func`` of the class ``cls`` with invariant checks. If the function has been already decorated with invariant checks, the function returns immediately. :param func: function to be wrapped :param is_init: True if the ``func`` is __init__ :return: function wrapped with invariant c...
"Decorate the function ``func`` of the class ``cls`` with invariant checks.\n\n If the function has been already decorated with invariant checks, the function returns immediately.\n\n :param func: function to be wrapped\n :param is_init: True if the ``func`` is __init__\n :return: function wrapped with inva...
122
false
Parquery/icontract
_decorate_with_invariants
11,151
LDU_FT/pyviz/geoviews/get_cb_plot
LDU_FT
[ "<BEGIN>\n## `coord_to_dimension`", "Converts an iris coordinate to a HoloViews dimension.\n<END>", "<BEGIN>\n## `sort_coords`", "Sorts a list of DimCoords trying to ensure that\n dates and pressure levels appear first and the\n longitude and latitude appear last in the correct\n order.\n<END>", "<...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_cb_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 extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_cb_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 extra...
Finds the subplot with the corresponding stream.
"Finds the subplot with the corresponding stream."
106
false
pyviz/geoviews
get_cb_plot
11,152
LDU_FT/bpsmith/tia/load_bbg_generic
LDU_FT
[ "<BEGIN>\n## `sma`", "If n is 0 then return the ltd mean; else return the n day mean\n<END>", "<BEGIN>\n## `true_range`", "http://en.wikipedia.org/wiki/Average_true_range\n The greatest of the following:\n - Current High less the current Low\n - Current High less the previous Close (absolute value)\n...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load_bbg_generic API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load_bbg_generic API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
terminal and datamgr are mutually exclusive. :param sid_or_accessor: security identifier or SidAccessor from DataManager :param start: :param end: :return:
"terminal and datamgr are mutually exclusive.\n\n :param sid_or_accessor: security identifier or SidAccessor from DataManager\n :param start:\n :param end:\n :return:"
226
false
bpsmith/tia
load_bbg_generic
11,153
LDU_FT/dev-pipeline/dev-pipeline-core/join
LDU_FT
[ "<BEGIN>\n## `sanitize`", "Run all availalbe sanitizers across a configuration.", " Arguments:\n configuration - a full project configuration\n error_fn - A function to call if a sanitizer check fails. The function\n takes a single argument: a description of the problem; provide\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the join API. 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 join API. 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...
Either return the non-list value or raise an Exception. Arguments: vals - a list of values to process
"Either return the non-list value or raise an Exception.\n\n Arguments:\n vals - a list of values to process"
46
false
dev-pipeline/dev-pipeline-core
join
11,154
LDU_FT/ianepperson/pyredminews/_remap_tag_to_tag_id
LDU_FT
[ "<BEGIN>\n## `journals`", "Retrieve journals attribute for this very Issue\n<END>", "<BEGIN>\n## `save`", "Save all changes back to Redmine with optional notes.\n<END>", "<BEGIN>\n## `set_status`", "Save all changes and set to the given new_status\n<END>", "<BEGIN>\n## `_objectify`", "Return an object...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _remap_tag_to_tag_id API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _remap_tag_to_tag_id API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Remaps a given changed field from tag to tag_id.
"Remaps a given changed field from tag to tag_id."
45
false
ianepperson/pyredminews
_remap_tag_to_tag_id
11,155
LDU_FT/hmeine/qimage2ndarray/gray2qimage
LDU_FT
[ "<BEGIN>\n## `requireCompatibleAPI`", "If PyQt4's API should be configured to be compatible with PySide's\n (i.e. QString and QVariant should not be explicitly exported,\n cf. documentation of sip.setapi()), call this function to check that\n the PyQt4 was properly imported. (It will always ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the gray2qimage API. 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 gray2qimage API. 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 the 2D numpy array `gray` into a 8-bit, indexed QImage_ with a gray colormap. The first dimension represents the vertical image axis. The parameter `normalize` can be used to normalize an image's value range to 0..255: `normalize` = (nmin, nmax): scale & clip image values from nmin....
"Convert the 2D numpy array `gray` into a 8-bit, indexed QImage_\n with a gray colormap. The first dimension represents the vertical\n image axis.\n\n The parameter `normalize` can be used to normalize an image's\n value range to 0..255:\n\n `normalize` = (nmin, nmax):\n scale & clip image values f...
52
false
hmeine/qimage2ndarray
gray2qimage
11,156
LDU_FT/vedarthk/exreporter/create_or_update_issue
LDU_FT
[ "<BEGIN>\n## `process_exception`", "Report exceptions from requests via Exreporter.\n<END>", "<BEGIN>\n## `create_or_update_issue`", "Creates or comments on existing issue in the store.", " :params title: title for the issue\n :params body: body, the content of the issue\n :params culpr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_or_update_issue API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_or_update_issue API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
Creates or comments on existing issue in the store. :params title: title for the issue :params body: body, the content of the issue :params culprit: string used to identify the cause of the issue, also used for aggregation :params labels: (optional) list of labels attached t...
"Creates or comments on existing issue in the store.\n\n :params title: title for the issue\n :params body: body, the content of the issue\n :params culprit: string used to identify the cause of the issue,\n also used for aggregation\n :params labels: (optional) list of labels att...
31
false
vedarthk/exreporter
create_or_update_issue
11,157
LDU_FT/mdavidsaver/p4p/close
LDU_FT
[ "<BEGIN>\n## `_sync`", "I will wait until all pending handlers cothreads have completed\n<END>", "<BEGIN>\n## `close`", "Close PV, disconnecting any clients.", " :param bool destroy: Indicate \"permanent\" closure. Current clients will not see subsequent open().\n :param bool sync: When block...
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...
Close PV, disconnecting any clients. :param bool destroy: Indicate "permanent" closure. Current clients will not see subsequent open(). :param bool sync: When block until any pending onLastDisconnect() is delivered (timeout applies). :param float timeout: Applies only when sync=True. None for...
"Close PV, disconnecting any clients.\n\n :param bool destroy: Indicate \"permanent\" closure. Current clients will not see subsequent open().\n :param bool sync: When block until any pending onLastDisconnect() is delivered (timeout applies).\n :param float timeout: Applies only when sync=True. N...
201
false
mdavidsaver/p4p
close
11,158
LDU_FT/FNNDSC/med2image/density
LDU_FT
[ "<BEGIN>\n## `verbosity`", "get/set the verbosity level.", " The verbosity level filters messages that are output\n to the console. Only messages tagged with a verbosity\n less-than-or-equal-to the class verbosity are output.", " This does not affect output to non-console devices\n...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the density API. 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 density API. 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...
ARGS a_M matrix to analyze *args[0] optional mask matrix; if passed, calculate density of a_M using non-zero elements of args[0] as a mask. DESC Determine the "density" of a passed matrix. Two densities are retu...
"ARGS\n a_M matrix to analyze\n\n *args[0] optional mask matrix; if passed, calculate\n density of a_M using non-zero elements of\n args[0] as a mask.\n\n DESC\n Determine the \"density\" of a passed matrix. Two densiti...
131
false
FNNDSC/med2image
density
11,159
LDU_FT/v1k45/python-qBittorrent/increase_priority
LDU_FT
[ "<BEGIN>\n## `_post`", "Method to perform POST request on the API.", " :param endpoint: Endpoint of the API.\n :param data: POST DATA for the request.\n :param kwargs: Other keyword arguments for requests.", " :return: Response of the POST request.\n<END>", "<BEGIN>\n## `_request...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the increase_priority API. 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 increase_priority API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Increase priority of torrents. :param infohash_list: Single or list() of infohashes.
"Increase priority of torrents.\n\n :param infohash_list: Single or list() of infohashes."
98
false
v1k45/python-qBittorrent
increase_priority
11,160
LDU_FT/stephen-bunn/file-config/on_tomlkit_dumps
LDU_FT
[ "<BEGIN>\n## `on_yaml_imported`", "The `pyyaml <https://pypi.org/project/pyyaml/>`_ import hook.", " :param module yaml: The ``yaml`` module\n<END>", "<BEGIN>\n## `on_yaml_dumps`", "The `pyyaml <https://pypi.org/project/pyyaml/>`_ dumps method.", " :param module yaml: The ``yaml`` module\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the on_tomlkit_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 ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the on_tomlkit_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 ...
The `tomlkit <https://pypi.org/project/tomlkit/>`_ dumps method. :param module tomlkit: The ``tomlkit`` module :param class config: The instance's config class :param dict dictionary: The dictionary to serialize :param list inline_tables: A list glob patterns to use for derminining whic...
"The `tomlkit <https://pypi.org/project/tomlkit/>`_ dumps method.\n\n :param module tomlkit: The ``tomlkit`` module\n :param class config: The instance's config class\n :param dict dictionary: The dictionary to serialize\n :param list inline_tables: A list glob patterns to use for dermininin...
215
false
stephen-bunn/file-config
on_tomlkit_dumps
11,161
LDU_FT/smartfile/client-python/_request
LDU_FT
[ "<BEGIN>\n## `_request`", "Handles retrying failed requests and error handling.\n<END>", "<BEGIN>\n## `download`", "file_to_be_downloaded is a file-like object that has already\n been uploaded, you cannot download folders\n<END>", "<BEGIN>\n## `signature`", "Requests a signature for remote file via...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _request API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _request API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
Handles retrying failed requests and error handling.
"Handles retrying failed requests and error handling."
17
false
smartfile/client-python
_request
11,162
LDU_FT/asweigart/pysimplevalidate/validateRegex
LDU_FT
[ "<BEGIN>\n## `_errstr`", "Returns the value str, truncated to MAX_ERROR_STR_LEN characters. If\n it's truncated, the returned value will have '...' on the end.\n<END>", "<BEGIN>\n## `_getStrippedValue`", "Like the strip() string method, except the strip argument describes\n different behavior:", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the validateRegex API. 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 validateRegex API. 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...
Raises ValidationException if value does not match the regular expression in regex. Returns the value argument. This is similar to calling inputStr() and using the allowlistRegexes keyword argument, however, validateRegex() allows you to pass regex flags such as re.IGNORECASE or re.VERBOSE. You can als...
"Raises ValidationException if value does not match the regular expression in regex.\n Returns the value argument.\n\n This is similar to calling inputStr() and using the allowlistRegexes\n keyword argument, however, validateRegex() allows you to pass regex\n flags such as re.IGNORECASE or re.VERBOSE. You c...
148
false
asweigart/pysimplevalidate
validateRegex
11,163
LDU_FT/scikit-learn-contrib/hdbscan/plot
LDU_FT
[ "<BEGIN>\n## `_tree_to_labels`", "Converts a pretrained tree and cluster size into a\n set of labels and probabilities.\n<END>", "<BEGIN>\n## `check_precomputed_distance_matrix`", "Perform check_array(X) after removing infinite values (numpy.inf) from the given distance matrix.\n<END>", "<BEGIN>\n## `hdb...
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...
Use matplotlib to plot an 'icicle plot' dendrogram of the condensed tree. Effectively this is a dendrogram where the width of each cluster bar is equal to the number of points (or log of the number of points) in the cluster at the given lambda value. Thus bars narrow as points progressively dro...
"Use matplotlib to plot an 'icicle plot' dendrogram of the condensed tree.\n\n Effectively this is a dendrogram where the width of each cluster bar is\n equal to the number of points (or log of the number of points) in the cluster\n at the given lambda value. Thus bars narrow as points progressivel...
224
false
scikit-learn-contrib/hdbscan
plot
11,164
LDU_FT/Cue/scales/update
LDU_FT
[ "<BEGIN>\n## `lookup`", "Traverses the source, looking up each key. Returns None if can't find anything instead of raising an exception.\n<END>", "<BEGIN>\n## `connect`", "Connects to the Graphite server if not already connected.\n<END>", "<BEGIN>\n## `disconnect`", "Disconnect from the Graphite server i...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Adds an old value with a fixed timestamp to the reservoir. @param value the value to be added
"Adds an old value with a fixed timestamp to the reservoir.\n @param value the value to be added"
72
false
Cue/scales
update
11,165
LDU_FT/hz-inova/run_jnb/decode_json
LDU_FT
[ "<BEGIN>\n## `kwargs_to_variable_assignment`", "Convert a dictionary into a string with assignments", " Each assignment is constructed based on:\n key assignment_operator value_representation(value) statement_separator,\n where key and value are the key and value of the dictionary.\n Moreover one ca...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the decode_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 extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the decode_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 extra...
Simple wrapper of json.load and json.loads. If json_input is None the output is an empty dictionary. If the input is a string that ends in .json it is decoded using json.load. Otherwise it is decoded using json.loads. Parameters ---------- json_input : str, None, optional input json ob...
"Simple wrapper of json.load and json.loads.\n\n If json_input is None the output is an empty dictionary.\n If the input is a string that ends in .json it is decoded using json.load.\n Otherwise it is decoded using json.loads.\n\n Parameters\n ----------\n json_input : str, None, optional\n inp...
65
false
hz-inova/run_jnb
decode_json
11,166
LDU_FT/scarface-4711/denonavr/_play
LDU_FT
[ "<BEGIN>\n## `exec_appcommand_post`", "Prepare and execute a HTTP POST call to AppCommand.xml end point.", " Returns XML ElementTree on success and None on fail.\n<END>", "<BEGIN>\n## `get_status_xml`", "Get status XML via HTTP and return it as XML ElementTree.\n<END>", "<BEGIN>\n## `create_zones`"...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _play API. 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 _play API. 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...
Send play command to receiver command via HTTP post.
"Send play command to receiver command via HTTP post."
85
false
scarface-4711/denonavr
_play
11,167
LDU_FT/lmjohns3/downhill/_prepare
LDU_FT
[ "<BEGIN>\n## `build`", "Build and return an optimizer for the rosenbrock function.", " In downhill, an optimizer can be constructed using the build() top-level\n function. This function requires several Theano quantities such as the loss\n being optimized and the parameters to update during optimizatio...
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 extracte...
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 extracte...
Set up properties for optimization. This method can be overridden by base classes to provide parameters that are specific to a particular optimization technique (e.g., setting up a learning rate value).
"Set up properties for optimization.\n\n This method can be overridden by base classes to provide parameters that\n are specific to a particular optimization technique (e.g., setting up a\n learning rate value)."
79
false
lmjohns3/downhill
_prepare
11,168
LDU_FT/bcdev/jpy/find_jvm_dll_file
LDU_FT
[ "<BEGIN>\n## `_write_jpy_config`", "Write out a well-formed jpyconfig.properties file for easier Java\n integration in a given location.\n<END>", "<BEGIN>\n## `find_jdk_home_dir`", "Try to detect the JDK home directory from Maven, if available, or use\n dedicated environment variables.\n :return: pat...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_jvm_dll_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 find_jvm_dll_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...
Try to detect the JVM's shared library file. :param java_home_dir: The Java JRE or JDK installation directory to be used for searching. :return: pathname if found, else None
"Try to detect the JVM's shared library file.\n :param java_home_dir: The Java JRE or JDK installation directory to be used for searching.\n :return: pathname if found, else None"
15
false
bcdev/jpy
find_jvm_dll_file
11,169
LDU_FT/jneight/django-xadmin-extras/render
LDU_FT
[ "<BEGIN>\n## `get_form`", "Instanciate the form for the current step", " FormAdminView from xadmin expects form to be at self.form_obj\n<END>", "<BEGIN>\n## `render`", "Returns the ``HttpResponse`` with the context data\n<END>", "<BEGIN>\n## `render_to_response`", "Add django-crispy form helper a...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the render API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the render API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Returns the ``HttpResponse`` with the context data
"Returns the ``HttpResponse`` with the context data"
14
false
jneight/django-xadmin-extras
render
11,170
LDU_FT/inveniosoftware-attic/invenio-knowledge/get_kbr_values
LDU_FT
[ "<BEGIN>\n## `load`", "Load given file into knowledge base.", " Simply load data into an existing knowledge base:", " .. code-block:: console", " $ inveniomanage knowledge load mykb /path/to/file.kb", " The file is expected to have a mapping with values: ``foo<seperator>bar``\n (per lin...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_kbr_values API. 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 get_kbr_values API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
Return a tuple of values from key-value mapping kb. :param kb_name: the name of the knowledge base :param searchkey: search using this key :param searchvalue: search using this value :param searchtype: s=substring; e=exact :param use_memoise: can we memoise while doing lookups? :type use...
"Return a tuple of values from key-value mapping kb.\n\n :param kb_name: the name of the knowledge base\n :param searchkey: search using this key\n :param searchvalue: search using this value\n :param searchtype: s=substring; e=exact\n :param use_memoise: can we memoise while doing lookups?\n :...
111
false
inveniosoftware-attic/invenio-knowledge
get_kbr_values
11,171
LDU_FT/gabrielfalcao/HTTPretty/enable
LDU_FT
[ "<BEGIN>\n## `fake_wrap_socket`", "drop-in replacement for py:func:`ssl.wrap_socket`\n<END>", "<BEGIN>\n## `fake_getaddrinfo`", "drop-in replacement for :py:func:`socket.getaddrinfo`\n<END>", "<BEGIN>\n## `httprettified`", "decorator for test functions", " .. tip:: Also available under the alias :py:...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the enable API. 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 enable API. 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 ...
Enables HTTPretty. When ``allow_net_connect`` is ``False`` any connection to an unregistered uri will throw :py:class:`httpretty.errors.UnmockedError`. .. testcode:: import re, json import httpretty httpretty.enable() httpretty.register_uri( ...
"Enables HTTPretty.\n When ``allow_net_connect`` is ``False`` any connection to an unregistered uri will throw :py:class:`httpretty.errors.UnmockedError`.\n\n .. testcode::\n\n import re, json\n import httpretty\n\n httpretty.enable()\n\n httpretty.register_uri(\n ...
54
false
gabrielfalcao/HTTPretty
enable
11,172