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/luismasuelli/python-cantrips/is_method
LDU_FT
[ "<BEGIN>\n## `can_take`", "Decorator to make a class allow their instances to generate\n snapshot of themselves.", " Decorates the class by allowing it to have:\n * A custom class to serve each snapshot. Such class\n will have a subset of attributes to serve from the object,\n and a spe...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_method API. 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 is_method API. 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...
Determines whether the passed value is a method satisfying certain conditions: * Being instance method. * Being class method. * Being bound method. * Being unbound method. Flag check is considered or-wise. The default is to consider every option. :param method: :param flags: :ret...
"Determines whether the passed value is a method satisfying certain conditions:\n * Being instance method.\n * Being class method.\n * Being bound method.\n * Being unbound method.\n Flag check is considered or-wise. The default is to consider every option.\n :param method:\n :param flags:\...
51
false
luismasuelli/python-cantrips
is_method
33,973
LDU_FT/MostAwesomeDude/gentleman/PowercycleNode
LDU_FT
[ "<BEGIN>\n## `request`", "Sends an HTTP request.", " This constructs a full URL, encodes and decodes HTTP bodies, and\n handles invalid responses in a pythonic way.", " @type method: string\n @param method: HTTP method to use\n @type path: string\n @param path: HTTP U...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the PowercycleNode API. 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 PowercycleNode API. 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...
Powercycles a node. @type node: string @param node: Node name @type force: bool @param force: Whether to force the operation @rtype: string @return: job id
"Powercycles a node.\n\n @type node: string\n @param node: Node name\n @type force: bool\n @param force: Whether to force the operation\n @rtype: string\n @return: job id"
173
false
MostAwesomeDude/gentleman
PowercycleNode
33,974
LDU_FT/bw2/ConfigArgParse/get_argument_parser
LDU_FT
[ "<BEGIN>\n## `init_argument_parser`", "Creates a global ArgumentParser instance with the given name,\n passing any args other than \"name\" to the ArgumentParser constructor.\n This instance can then be retrieved using get_argument_parser(..)\n<END>", "<BEGIN>\n## `get_argument_parser`", "Returns the gl...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_argument_parser API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_argument_parser 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...
Returns the global ArgumentParser instance with the given name. The 1st time this function is called, a new ArgumentParser instance will be created for the given name, and any args other than "name" will be passed on to the ArgumentParser constructor.
"Returns the global ArgumentParser instance with the given name. The 1st\n time this function is called, a new ArgumentParser instance will be created\n for the given name, and any args other than \"name\" will be passed on to the\n ArgumentParser constructor."
42
false
bw2/ConfigArgParse
get_argument_parser
33,975
LDU_FT/MakersF/LoLScraper/get_tier_from_participants
LDU_FT
[ "<BEGIN>\n## `slice_time`", ":param begin: datetime\n :param end: datetime\n :param duration: timedelta\n :return: a generator for a set of timeslices of the given duration\n<END>", "<BEGIN>\n## `store`", "Writes text to the underlying Store mapped at tier. If the store doesn't exists, yet, it create...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_tier_from_participants API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclus...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_tier_from_participants API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclus...
Returns the tier of the lowest tier and the participantsIDs divided by tier player in the match :param participantsIdentities: the match participants :param minimum_tier: the minimum tier that a participant must be in order to be added :param queue: the queue over which the tier of the player is conside...
"Returns the tier of the lowest tier and the participantsIDs divided by tier\n player in the match\n :param participantsIdentities: the match participants\n :param minimum_tier: the minimum tier that a participant must be in order to be added\n :param queue: the queue over which the tier of the player is co...
18
false
MakersF/LoLScraper
get_tier_from_participants
33,976
LDU_FT/miquelo/resort/state
LDU_FT
[ "<BEGIN>\n## `insert`", "Build the project.", "\t\t:param resort.engine.execution.Context context:\n\t\t Current execution context.\n<END>", "<BEGIN>\n## `load`", "Load the profile with the given name.", "\t\t:param str prof_name:\n\t\t Profile name.\n\t\t:rtype:\n\t\t ProfileStub\n\t\t:return:\n\t\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the state API. 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 state API. 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...
Get instance state. :param resort.engine.execution.Context context: Current execution context. :rtype: str :return: Instance state name.
"Get instance state.\n\t\t\n\t\t:param resort.engine.execution.Context context:\n\t\t Current execution context.\n\t\t:rtype:\n\t\t str\n\t\t:return:\n\t\t Instance state name."
125
false
miquelo/resort
state
33,977
LDU_FT/inveniosoftware/kwalitee/_check_1st_line
LDU_FT
[ "<BEGIN>\n## `_get_files_modified`", "Get the list of modified files that are Python or Jinja2.\n<END>", "<BEGIN>\n## `_get_git_author`", "Return the git author from the git variables.\n<END>", "<BEGIN>\n## `_prepare_commit_msg`", "Prepare the commit message in tmp_file.", " It will build the commit ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _check_1st_line API. 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 _check_1st_line API. 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...
First line check. Check that the first line has a known component name followed by a colon and then a short description of the commit. :param line: first line :type line: str :param components: list of known component names :type line: list :param max_first_line: maximum length of the firs...
"First line check.\n\n Check that the first line has a known component name followed by a colon\n and then a short description of the commit.\n\n :param line: first line\n :type line: str\n :param components: list of known component names\n :type line: list\n :param max_first_line: maximum length o...
77
false
inveniosoftware/kwalitee
_check_1st_line
33,978
LDU_FT/napalm-automation/napalm/cisco_conf_parse_parents
LDU_FT
[ "<BEGIN>\n## `parse_intf_section`", "Parse a single entry from show interfaces output.", " Different cases:\n mgmt0 is up\n admin state is up", " Ethernet2/1 is up\n admin state is up, Dedicated Interface", " Vlan1 is down (Administratively down), line protocol is down, autostate enabled",...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the cisco_conf_parse_parents 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 cisco_conf_parse_parents API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio...
Use CiscoConfParse to find parent lines that contain a specific child line. :param parent: The parent line to search for :param child: The child line required under the given parent :param config: The device running/startup config
"Use CiscoConfParse to find parent lines that contain a specific child line.\n\n :param parent: The parent line to search for\n :param child: The child line required under the given parent\n :param config: The device running/startup config"
254
false
napalm-automation/napalm
cisco_conf_parse_parents
33,979
LDU_FT/python-fedex-devs/python-fedex/_assemble_and_send_request
LDU_FT
[ "<BEGIN>\n## `transfer_config_dict`", "This is a utility function used in the certification modules to transfer\n the data dicts above to SOAP objects. This avoids repetition and allows\n us to store all of our variable configuration here rather than in\n each certification script.\n<END>", "<BEGIN>\n#...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _assemble_and_send_request 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 _assemble_and_send_request API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclus...
Fires off the Fedex request. @warning: NEVER CALL THIS METHOD DIRECTLY. CALL send_request(), WHICH RESIDES ON FedexBaseService AND IS INHERITED.
"Fires off the Fedex request.\n \n @warning: NEVER CALL THIS METHOD DIRECTLY. CALL send_request(), \n WHICH RESIDES ON FedexBaseService AND IS INHERITED."
92
false
python-fedex-devs/python-fedex
_assemble_and_send_request
33,980
LDU_FT/rycus86/prometheus_flask_exporter/_track
LDU_FT
[ "<BEGIN>\n## `start_http_server`", "Start an HTTP server for exposing the metrics, if the\n `should_start_http_server` function says we should, otherwise just return.\n Uses the implementation from `prometheus_client` rather than a Flask app.", " :param port: the HTTP port to expose the met...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _track API. 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 _track API. 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 ...
Internal method decorator logic. :param metric_type: the type of the metric from the `prometheus_client` library :param metric_call: the invocation to execute as a callable with `(metric, time)` :param metric_kwargs: additional keyword arguments for creating the metric :param name: the ...
"Internal method decorator logic.\n\n :param metric_type: the type of the metric from the `prometheus_client` library\n :param metric_call: the invocation to execute as a callable with `(metric, time)`\n :param metric_kwargs: additional keyword arguments for creating the metric\n :param name...
42
false
rycus86/prometheus_flask_exporter
_track
33,981
LDU_FT/divio/aldryn-apphooks-config/get_config_data
LDU_FT
[ "<BEGIN>\n## `namespace`", "Filter by namespace. Try to guess which field to use in lookup.\n Accept 'to' argument if you need to specify.\n<END>", "<BEGIN>\n## `_app_config_select`", "Return the select value for apphook configs", " :param request: request object\n :param obj: current o...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_config_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 e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_config_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 e...
Method that retrieves a configuration option for a specific AppHookConfig instance :param request: the request object :param obj: the model instance :param name: name of the config option as defined in the config form :return value: config value or None if no app config is found
"Method that retrieves a configuration option for a specific AppHookConfig instance\n\n :param request: the request object\n :param obj: the model instance\n :param name: name of the config option as defined in the config form\n\n :return value: config value or None if no app config is found...
39
false
divio/aldryn-apphooks-config
get_config_data
33,982
LDU_FT/aws/chalice/retrieve_logs
LDU_FT
[ "<BEGIN>\n## `create_from_lambda_arn`", "Create a LogRetriever from a client and lambda arn.", " :type client: botocore.client.Logs\n :param client: A ``logs`` client.", " :type lambda_arn: str\n :param lambda_arn: The ARN of the lambda function.", " :return: An instance o...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the retrieve_logs API. 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 retrieve_logs API. 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...
Retrieve logs from a log group. :type include_lambda_messages: boolean :param include_lambda_messages: Include logs generated by the AWS Lambda service. If this value is False, only chalice logs will be included. :type max_entries: int :param max_entries: Maxim...
"Retrieve logs from a log group.\n\n :type include_lambda_messages: boolean\n :param include_lambda_messages: Include logs generated by the AWS\n Lambda service. If this value is False, only chalice logs will be\n included.\n\n :type max_entries: int\n :param max_entri...
96
false
aws/chalice
retrieve_logs
33,983
LDU_FT/davebridges/mousedb/multiple_pups
LDU_FT
[ "<BEGIN>\n## `age`", "Calculates the animals age, relative to the current date (if alive) or the date of death (if not).\n<END>", "<BEGIN>\n## `breeding_male_location_type`", "This attribute defines whether a male's current location is the same as the breeding cage to which it belongs.", " This attri...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the multiple_pups API. 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 multiple_pups API. 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...
This view is used to enter multiple animals at the same time. It will generate a form containing animal information and a number of mice. It is intended to create several identical animals with the same attributes.
"This view is used to enter multiple animals at the same time.\n\t\n It will generate a form containing animal information and a number of mice. It is intended to create several identical animals with the same attributes."
128
false
davebridges/mousedb
multiple_pups
33,984
LDU_FT/caffeinehit/django-follow/create
LDU_FT
[ "<BEGIN>\n## `check`", "Check the permissions, http method and login state.\n<END>", "<BEGIN>\n## `register`", "This registers any model class to be follow-able.\n<END>", "<BEGIN>\n## `toggle`", "Toggles a follow status. Useful function if you don't want to perform follow\n checks but just toggle it on...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create API. 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 create API. 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 ...
Create a new follow link between a user and an object of a registered model type.
"Create a new follow link between a user and an object\n of a registered model type."
15
false
caffeinehit/django-follow
create
33,985
LDU_FT/aiogram/aiogram/validate
LDU_FT
[ "<BEGIN>\n## `execute_filter`", "Helper for executing filter", " :param filter_:\n :param args:\n :return:\n<END>", "<BEGIN>\n## `check_filters`", "Check list of filters", " :param filters:\n :param args:\n :return:\n<END>", "<BEGIN>\n## `validate`", "Validate and parse config.", "...
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...
Validator for filters factory From filters factory this filter can be registered with arguments: - ``command`` - ``commands_prefix`` (will be passed as ``prefixes``) - ``commands_ignore_mention`` (will be passed as ``ignore_mention`` :param full_config: :return: con...
"Validator for filters factory\n\n From filters factory this filter can be registered with arguments:\n\n - ``command``\n - ``commands_prefix`` (will be passed as ``prefixes``)\n - ``commands_ignore_mention`` (will be passed as ``ignore_mention``\n\n :param full_config:\n :r...
1,040
true
aiogram/aiogram
validate
33,986
LDU_FT/delph-in/pydelphin/get
LDU_FT
[ "<BEGIN>\n## `compile`", "Use ACE to compile a grammar.", " Args:\n cfg_path (str): the path to the ACE config file\n out_path (str): the path where the compiled grammar will be\n written\n executable (str, optional): the path to the ACE binary; if\n `None`, the `ac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
Return the value for *key* if it exists, otherwise *default*.
"Return the value for *key* if it exists, otherwise *default*."
662
false
delph-in/pydelphin
get
33,987
LDU_FT/cltk/cltk/counter_from_corpus
LDU_FT
[ "<BEGIN>\n## `transcribe`", "Accepts a word and returns a string of an approximate pronounciation (IPA)\n<END>", "<BEGIN>\n## `syllabify`", "Syllabifier module for Middle High German", " The algorithm works by applying the MOP(Maximal Onset Principle)\n on open syllables. For closed syllables,...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the counter_from_corpus 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 counter_from_corpus 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...
Build word frequency list from one of several available corpora. TODO: Make this count iteratively, not all at once
"Build word frequency list from one of several available corpora.\n TODO: Make this count iteratively, not all at once"
1,301
true
cltk/cltk
counter_from_corpus
33,988
LDU_FT/deployed/django-emailtemplates/get_help_keys
LDU_FT
[ "<BEGIN>\n## `send_email`", "Shortcut function for EmailFromTemplate class", " @return: None\n<END>", "<BEGIN>\n## `send_email`", "Sends email to recipient based on self object parameters.", " @param fail_silently: When it’s False, msg.send() will raise an smtplib.SMTPException if an error occur...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_help_keys API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_help_keys API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
Returns dict of help_context keys (description texts used in `EmailRegistry.register()` method).
"Returns dict of help_context keys (description texts used in `EmailRegistry.register()` method)."
26
false
deployed/django-emailtemplates
get_help_keys
33,989
LDU_FT/edx/XBlock/default_select
LDU_FT
[ "<BEGIN>\n## `default_select`", "Raise an exception when we have ambiguous entry points.\n<END>", "<BEGIN>\n## `_load_class_entry_point`", "Load `entry_point`, and set the `entry_point.name` as the\n attribute `plugin_name` on the loaded object\n<END>", "<BEGIN>\n## `load_class`", "Load a single cl...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the default_select API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the default_select API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
Raise an exception when we have ambiguous entry points.
"Raise an exception when we have ambiguous entry points."
295
false
edx/XBlock
default_select
33,990
LDU_FT/asweigart/moosegesture/_getDirection
LDU_FT
[ "<BEGIN>\n## `getGestureAndSegments`", "Returns a list of tuples. The first item in the tuple is the directional\n integer, and the second item is a tuple of integers for the start and end\n indexes of the points that make up the stroke.\n<END>", "<BEGIN>\n## `findClosestMatchingGesture`", "Returns the ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _getDirection API. 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 _getDirection API. 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...
Return the direction the line formed by the (x, y) points in `coord1` and `coord2`.
"Return the direction the line formed by the (x, y)\n points in `coord1` and `coord2`."
12
false
asweigart/moosegesture
_getDirection
33,991
LDU_FT/google/openhtf/_send_command
LDU_FT
[ "<BEGIN>\n## `short_repr`", "Returns a short, term-friendly string representation of the object.", " Args:\n obj: An object for which to return a string representation.\n max_len: Maximum length of the returned string. Longer reprs will be turned\n into a brief descriptive string giving the type a...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _send_command API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _send_command API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
Send the given command/data over this transport. We do a couple sanity checks in here to be sure we can format a valid AdbMessage for our underlying AdbConnection, and then send it. This method can be used to send any message type, and doesn't do any state tracking or acknowledgement checking. Ar...
"Send the given command/data over this transport.\n\n We do a couple sanity checks in here to be sure we can format a valid\n AdbMessage for our underlying AdbConnection, and then send it. This method\n can be used to send any message type, and doesn't do any state tracking or\n acknowledgement checking.\n...
700
false
google/openhtf
_send_command
33,992
LDU_FT/noobermin/lspreader/get_header
LDU_FT
[ "<BEGIN>\n## `nearest_indices`", "Returns indices that perform nearest interpolation given a\n set of points. Similar to scipy.interpolate.griddata with\n method set to \"nearest\". In fact, it's construction is based\n on that function and related types.", " Parameters:\n -----------", " xs...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_header API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_header API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
gets the header for the .p4 file, note that this Advanced the file position to the end of the header. Returns the size of the header, and the size of the header, if the header keyword is true.
"gets the header for the .p4 file, note that this\n Advanced the file position to the end of the header.\n \n Returns the size of the header, and the size of the header,\n if the header keyword is true."
81
false
noobermin/lspreader
get_header
33,993
LDU_FT/gak/pygooglechart/data_x_range
LDU_FT
[ "<BEGIN>\n## `set_legend`", "legend needs to be a list, tuple or None\n<END>", "<BEGIN>\n## `set_legend_position`", "Sets legend position. Default is 'r'.", " b - At the bottom of the chart, legend entries in a horizontal row.\n bv - At the bottom of the chart, legend entries in a vertical col...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the data_x_range API. 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 data_x_range API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
Return a 2-tuple giving the minimum and maximum x-axis data range.
"Return a 2-tuple giving the minimum and maximum x-axis\n data range."
28
false
gak/pygooglechart
data_x_range
33,994
LDU_FT/uuazed/numerapi/stake
LDU_FT
[ "<BEGIN>\n## `_unzip_file`", "unzips file located at src_path into destination_path\n<END>", "<BEGIN>\n## `get_dataset_url`", "Fetch url of the current dataset.", " Args:\n tournament (int, optional): ID of the tournament, defaults to 1", " Returns:\n str: url of the cu...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the stake API. 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 stake API. 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...
Participate in the staking competition. Args: confidence (float or str): your confidence (C) value value (float or str): amount of NMR you are willing to stake tournament (int): ID of the tournament (optional, defaults to 1) Returns: dict: stake informat...
"Participate in the staking competition.\n\n Args:\n confidence (float or str): your confidence (C) value\n value (float or str): amount of NMR you are willing to stake\n tournament (int): ID of the tournament (optional, defaults to 1)\n\n Returns:\n dict: stake...
163
false
uuazed/numerapi
stake
33,995
LDU_FT/hayalasalah/adhan.py/gregorian_to_julian
LDU_FT
[ "<BEGIN>\n## `floating_point_to_datetime`", "Convert a floating point time to a datetime.\n<END>", "<BEGIN>\n## `adhan`", "Calculate adhan times given the parameters.", " This function will compute the adhan times for a certain location on\n certain day. The method for calculating the prayers as well ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the gregorian_to_julian 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 gregorian_to_julian 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...
Convert a datetime.date object to its corresponding Julian day. :param day: The datetime.date to convert to a Julian day :returns: A Julian day, as an integer
"Convert a datetime.date object to its corresponding Julian day.\n\n :param day: The datetime.date to convert to a Julian day\n :returns: A Julian day, as an integer"
31
false
hayalasalah/adhan.py
gregorian_to_julian
33,996
LDU_FT/qwilka/vn-tree/_coord
LDU_FT
[ "<BEGIN>\n## `add_child`", "Add a child node to the current node instance.", " :param node: the child node instance.\n :type node: Node\n :returns: The new child node instance. \n :rtype: Node\n<END>", "<BEGIN>\n## `remove_child`", "Remove a child node from the current node ins...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _coord API. 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 _coord API. 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 ...
Attribute indicating the tree coordinates for this node. The tree coordinates of a node are expressed as a tuple of the indices of the node and its ancestors, for example: A grandchild node with node path `/root.name/root.childs[2].name/root.childs[2].childs[0].name` would hav...
"Attribute indicating the tree coordinates for this node.\n\n The tree coordinates of a node are expressed as a tuple of the\n indices of the node and its ancestors, for example:\n A grandchild node with node path \n `/root.name/root.childs[2].name/root.childs[2].childs[0].name` \n wo...
59
false
qwilka/vn-tree
_coord
33,997
LDU_FT/MSchnei/pyprf_feature/export_nii
LDU_FT
[ "<BEGIN>\n## `pyprf`", "Main function for pRF mapping.", " Parameters\n ----------\n strCsvCnfg : str\n Absolute file path of config file.\n lgcTest : Boolean\n Whether this is a test (pytest). If yes, absolute path of pyprf libary\n will be prepended to config file paths.\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the export_nii API. 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 export_nii API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
Export nii file(s). Parameters ---------- ary2dNii : numpy array Numpy array with results to be exported to nii. lstNiiNames : list List that contains strings with the complete file names. aryLgcMsk : numpy array If the nii file is larger than this threshold (in MB), the fil...
"Export nii file(s).\n\n Parameters\n ----------\n ary2dNii : numpy array\n Numpy array with results to be exported to nii.\n lstNiiNames : list\n List that contains strings with the complete file names.\n aryLgcMsk : numpy array\n If the nii file is larger than this threshold (in MB...
266
false
MSchnei/pyprf_feature
export_nii
33,998
LDU_FT/brean/python-pathfinding/cleanup
LDU_FT
[ "<BEGIN>\n## `backtrace`", "Backtrace according to the parent records and return the path.\n (including both start and end nodes)\n<END>", "<BEGIN>\n## `bi_backtrace`", "Backtrace from start and end node, returns the path for bi-directional A*\n (including both start and end nodes)\n<END>", "<BEGIN>\n...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the cleanup API. 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 cleanup API. 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...
reset all calculated values, fresh start for pathfinding
"reset all calculated values, fresh start for pathfinding"
37
false
brean/python-pathfinding
cleanup
33,999
LDU_FT/libyal/dtfabric/GetStructFormatString
LDU_FT
[ "<BEGIN>\n## `Main`", "The main program function.", " Returns:\n bool: True if successful or False if not.\n<END>", "<BEGIN>\n## `CheckDirectory`", "Validates definition files in a directory.", " Args:\n path (str): path of the definition file.\n extension (Optional[str]): extension of th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the GetStructFormatString 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 GetStructFormatString API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Retrieves the Python struct format string. Returns: str: format string as used by Python struct or None if format string cannot be determined.
"Retrieves the Python struct format string.\n\n Returns:\n str: format string as used by Python struct or None if format string\n cannot be determined."
373
false
libyal/dtfabric
GetStructFormatString
34,000
LDU_FT/bram85/topydo/columns
LDU_FT
[ "<BEGIN>\n## `_process_flags`", "Override to add an additional check after processing the flags: when\n there are no flags left after argument parsing, then it means we'll be\n editing the whole todo.txt file as a whole and therefore we're not in\n multi mode.\n<END>", "<BEGIN>\n## `get_tod...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the columns API. 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 columns API. 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 list with complete column configuration dicts.
"Returns list with complete column configuration dicts."
331
false
bram85/topydo
columns
34,001
LDU_FT/bwesterb/py-seccure/mod_issquare
LDU_FT
[ "<BEGIN>\n## `serialize_number`", "Serializes `x' to a string of length `outlen' in format `fmt'\n<END>", "<BEGIN>\n## `deserialize_number`", "Deserializes a number from a string `s' in format `fmt'\n<END>", "<BEGIN>\n## `mod_issquare`", "Returns whether `a' is a square modulo p\n<END>", "<BEGIN>\n## `d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the mod_issquare API. 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 mod_issquare API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
Returns whether `a' is a square modulo p
"Returns whether `a' is a square modulo p"
22
false
bwesterb/py-seccure
mod_issquare
34,002
LDU_FT/mlenzen/collections-extended/_ixor
LDU_FT
[ "<BEGIN>\n## `get`", "Return value with given key or index.", "\t\tIf no value is found, return d (None by default).\n<END>", "<BEGIN>\n## `pop`", "Remove and return value with given key or index (last item by default).", "\t\tIf key is not found, returns d if given,\n\t\totherwise raises KeyError or Inde...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _ixor API. 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 _ixor API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
Set self to the symmetric difference between the sets. if isinstance(other, _basebag): This runs in O(other.num_unique_elements()) else: This runs in O(len(other))
"Set self to the symmetric difference between the sets.\n\n\t\tif isinstance(other, _basebag):\n\t\t\tThis runs in O(other.num_unique_elements())\n\t\telse:\n\t\t\tThis runs in O(len(other))"
104
false
mlenzen/collections-extended
_ixor
34,003
LDU_FT/viatoriche/microservices/resource
LDU_FT
[ "<BEGIN>\n## `publish`", "Publish message to exchange", " :param message: message for publishing\n :type message: any serializable object\n :param routing_key: routing key for queue\n :return: None\n<END>", "<BEGIN>\n## `publish`", "Publish message to queue", " :param me...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the resource API. 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 resource API. 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...
Resource builder with resources url :param resources: 'one', 'two', 'three' :return: instance of Resource
"Resource builder with resources url\n\n :param resources: 'one', 'two', 'three'\n :return: instance of Resource"
27
false
viatoriche/microservices
resource
34,004
LDU_FT/ttu/ruuvitag-sensor/run_get_data_background
LDU_FT
[ "<BEGIN>\n## `convert_to_influx`", "Convert data into RuuviCollector naming schme and scale", " returns:\n Object to be written to InfluxDB\n<END>", "<BEGIN>\n## `_run_get_data_background`", "Background process function for RuuviTag Sensors\n<END>", "<BEGIN>\n## `_data_update`", "Get data from...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the run_get_data_background 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_get_data_background API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion...
Background process from RuuviTag Sensors
"Background process from RuuviTag Sensors"
48
false
ttu/ruuvitag-sensor
run_get_data_background
34,005
LDU_FT/azavea/python-sld/makeproperty
LDU_FT
[ "<BEGIN>\n## `makeproperty`", "Make a property on an instance of an SLDNode. If cls is omitted, the\n property is assumed to be a text node, with no corresponding class\n object. If name is omitted, the property is assumed to be a complex\n node, with a corresponding class wrapper.", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the makeproperty API. 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 makeproperty API. 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...
Make a property on an instance of an SLDNode. If cls is omitted, the property is assumed to be a text node, with no corresponding class object. If name is omitted, the property is assumed to be a complex node, with a corresponding class wrapper. @type ns: string @param ...
"Make a property on an instance of an SLDNode. If cls is omitted, the\n property is assumed to be a text node, with no corresponding class\n object. If name is omitted, the property is assumed to be a complex\n node, with a corresponding class wrapper.\n\n @type ns: string\n @...
29
false
azavea/python-sld
makeproperty
34,006
LDU_FT/SteveMcGrath/pySecurityCenter/credential_share_simulate
LDU_FT
[ "<BEGIN>\n## `gen_csv`", "csv SecurityCenterObj, AssetListName, CSVFields, EmailAddress\n<END>", "<BEGIN>\n## `login`", "Logs the user into SecurityCenter and stores the needed token and cookies.\n<END>", "<BEGIN>\n## `analysis`", "Analysis\n A thin wrapper to handle vuln/event/mobile/log analysis ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the credential_share_simulate 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 credential_share_simulate API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi...
Shares a given credential to the specified Users. :param cred_id: Credential ID :param user_ids: List of User IDs
"Shares a given credential to the specified Users.\n\n :param cred_id: Credential ID\n :param user_ids: List of User IDs"
120
false
SteveMcGrath/pySecurityCenter
credential_share_simulate
34,007
LDU_FT/Samreay/ChainConsumer/dic
LDU_FT
[ "<BEGIN>\n## `dic`", "r\"\"\" Returns the corrected Deviance Information Criterion (DIC) for all chains loaded into ChainConsumer.", " If a chain does not have a posterior, this method will return `None` for that chain. **Note that\n the DIC metric is only valid on posterior surfaces which closely...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the dic API. 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 dic API. 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...
r""" Returns the corrected Deviance Information Criterion (DIC) for all chains loaded into ChainConsumer. If a chain does not have a posterior, this method will return `None` for that chain. **Note that the DIC metric is only valid on posterior surfaces which closely resemble multivariate normals!** ...
"r\"\"\" Returns the corrected Deviance Information Criterion (DIC) for all chains loaded into ChainConsumer.\n\n If a chain does not have a posterior, this method will return `None` for that chain. **Note that\n the DIC metric is only valid on posterior surfaces which closely resemble multivariate normal...
155
false
Samreay/ChainConsumer
dic
34,008
LDU_FT/Robpol86/libnl/get_country
LDU_FT
[ "<BEGIN>\n## `nla_ok`", "Check if the attribute header and payload can be accessed safely.", " https://github.com/thom311/libnl/blob/libnl3_2_25/lib/attr.c#L148", " Verifies that the header and payload do not exceed the number of bytes left in the attribute stream. This function\n must be called befo...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_country API. 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_country API. 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...
http://git.kernel.org/cgit/linux/kernel/git/jberg/iw.git/tree/scan.c?id=v3.17#n267. Positional arguments: data -- bytearray data to read. Returns: Dict.
"http://git.kernel.org/cgit/linux/kernel/git/jberg/iw.git/tree/scan.c?id=v3.17#n267.\n\n Positional arguments:\n data -- bytearray data to read.\n\n Returns:\n Dict."
702
false
Robpol86/libnl
get_country
34,009
LDU_FT/inveniosoftware/invenio-records-rest/eval_field
LDU_FT
[ "<BEGIN>\n## `build_default_endpoint_prefixes`", "Build the default_endpoint_prefixes map.\n<END>", "<BEGIN>\n## `obj_or_import_string`", "Import string or return object.", " :params value: Import path or class object to instantiate.\n :params default: Default object to return if the import fails.\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the eval_field API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the eval_field API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
Evaluate a field for sorting purpose. :param field: Field definition (string, dict or callable). :param asc: ``True`` if order is ascending, ``False`` if descending. :returns: Dictionary with the sort field query.
"Evaluate a field for sorting purpose.\n\n :param field: Field definition (string, dict or callable).\n :param asc: ``True`` if order is ascending, ``False`` if descending.\n :returns: Dictionary with the sort field query."
165
false
inveniosoftware/invenio-records-rest
eval_field
34,010
LDU_FT/rpcope1/PythonConfluenceAPI/create_new_content_property
LDU_FT
[ "<BEGIN>\n## `request_patch`", "Maintains the existing api for Session.request.\n Used by all of the higher level methods, e.g. Session.get.\n The background_callback param allows you to do some processing on the\n response in the background, e.g. call resp.json() so that json parsing\n happens in the...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_new_content_property API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclu...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_new_content_property API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclu...
Creates a new content property. Potentially a duplicate at the REST API level of create_new_property. :param content_id (string): A string containing the id of the property content container. :param new_property_data (dict): A dictionary describing the new property for the content. Must have the...
"Creates a new content property. Potentially a duplicate at the REST API level of\n create_new_property.\n :param content_id (string): A string containing the id of the property content container.\n :param new_property_data (dict): A dictionary describing the new property for the content. Must have...
140
false
rpcope1/PythonConfluenceAPI
create_new_content_property
34,011
LDU_FT/fracpete/python-weka-wrapper/next
LDU_FT
[ "<BEGIN>\n## `next`", "Reads the next dataset row.", " :return: the next row\n :rtype: Instance\n<END>", "<BEGIN>\n## `main`", "Runs a associator from the command-line. Calls JVM start/stop automatically.\n Use -h to see all options.\n<END>", "<BEGIN>\n## `next`", "Returns the next rule...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the next API. 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 next API. 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...
Reads the next dataset row. :return: the next row :rtype: Instance
"Reads the next dataset row.\n\n :return: the next row\n :rtype: Instance"
68
false
fracpete/python-weka-wrapper
next
34,012
LDU_FT/hactar-is/frink/all
LDU_FT
[ "<BEGIN>\n## `delete`", "Delete the current instance from the DB.\n<END>", "<BEGIN>\n## `get`", "Get a single instance by pk id.", " :param id: The UUID of the instance you want to retrieve.\n<END>", "<BEGIN>\n## `filter`", "Fetch a list of instances.", " :param order_by: column ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the all API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the all API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
Fetch all items. :param limit: How many rows to fetch. :param order_by: column on which to order the results. \ To change the sort, prepend with < or >.
"Fetch all items.\n\n :param limit: How many rows to fetch.\n :param order_by: column on which to order the results. \\\n To change the sort, prepend with < or >."
19
false
hactar-is/frink
all
34,013
LDU_FT/aksas/pypo4sel/wait_displayed
LDU_FT
[ "<BEGIN>\n## `wait`", "Wait ``timeout`` seconds until ``method(**kwargs)`` returns a ``value`` that *bool(value)==True*.\n Returns last ``value``.\n If time expired and ``fail_on_timeout`` specified, then raise TimeoutException.", " :param method:\n :param timeout:\n :param fail_on_timeout:\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the wait_displayed API. 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 wait_displayed API. 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...
Wait until element becomes visible or time out. Returns true is element became visible, otherwise false. If timeout is not specified or 0, then uses specific element wait timeout. :param element: :param timeout: :param fail_on_timeout: :return:
"Wait until element becomes visible or time out.\n Returns true is element became visible, otherwise false.\n If timeout is not specified or 0, then uses specific element wait timeout.\n :param element:\n :param timeout:\n :param fail_on_timeout:\n :return:"
42
false
aksas/pypo4sel
wait_displayed
34,014
LDU_FT/secnot/rectpack/_generate_placements
LDU_FT
[ "<BEGIN>\n## `_add_section`", "Adds a new section to the free section list, but before that and if \n section merge is enabled, tries to join the rectangle with all existing \n sections, if successful the resulting section is again merged with the \n remaining sections until the operation fai...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _generate_placements 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 _generate_placements API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Generate a list with Arguments: skyline (list): SkylineHSegment list width (number): Returns: tuple (Rectangle, fitness): Rectangle: Rectangle in valid position left_skyline: Index for the skyline under the rectangle left edge. ...
"Generate a list with \n\n Arguments:\n skyline (list): SkylineHSegment list\n width (number):\n\n Returns:\n tuple (Rectangle, fitness):\n Rectangle: Rectangle in valid position\n left_skyline: Index for the skyline under the rectangle left e...
103
false
secnot/rectpack
_generate_placements
34,015
LDU_FT/CI-WATER/gsshapy/xd
LDU_FT
[ "<BEGIN>\n## `_read`", "Generic Time Series Read from File Method\n<END>", "<BEGIN>\n## `_write`", "Generic Time Series Write to File Method\n<END>", "<BEGIN>\n## `_createTimeSeriesObjects`", "Create GSSHAPY TimeSeries and TimeSeriesValue Objects Method\n<END>", "<BEGIN>\n## `_read`", "Generic Output ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the xd API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted docu...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the xd API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted docu...
get xarray dataset file handle to LSM files
"get xarray dataset file handle to LSM files"
537
false
CI-WATER/gsshapy
xd
34,016
LDU_FT/outini/python-pylls/paginate_request
LDU_FT
[ "<BEGIN>\n## `request`", "Handle requests to API", " :param str path: API endpoint's path to request\n :param str method: HTTP method to use\n :param dict data: Data to send (optional)\n :return: Parsed json response as :class:`dict`", " Additional named argument may be pass...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the paginate_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 paginate_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 ...
Handle paginated requests to API :param str path: API endpoint's path to request :param str method: HTTP method to use :param dict data: Data to send (optional) :return: Response data items (:class:`Generator`) Cachet pagination is handled and next pages requested on demand. ...
"Handle paginated requests to API\n\n :param str path: API endpoint's path to request\n :param str method: HTTP method to use\n :param dict data: Data to send (optional)\n :return: Response data items (:class:`Generator`)\n\n Cachet pagination is handled and next pages requested on de...
71
false
outini/python-pylls
paginate_request
34,017
LDU_FT/penguinmenac3/starttf/_rotatedRectWithMaxArea
LDU_FT
[ "<BEGIN>\n## `easy_train_and_evaluate`", "Train and evaluate your model without any boilerplate code.", " 1) Write your data using the starttf.tfrecords.autorecords.write_data method.\n 2) Create your hyper parameter file containing all required fields and then load it using\n starttf.utils.hyper_p...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _rotatedRectWithMaxArea 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 _rotatedRectWithMaxArea API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion...
Given a rectangle of size wxh that has been rotated by 'angle' (in radians), computes the width and height of the largest possible axis-aligned rectangle (maximal area) within the rotated rectangle. Answer from: https://stackoverflow.com/questions/16702966/rotate-image-and-crop-out-black-borders
"Given a rectangle of size wxh that has been rotated by 'angle' (in\n radians), computes the width and height of the largest possible\n axis-aligned rectangle (maximal area) within the rotated rectangle.\n\n Answer from: https://stackoverflow.com/questions/16702966/rotate-image-and-crop-out-black-borders"
120
false
penguinmenac3/starttf
_rotatedRectWithMaxArea
34,018
LDU_FT/ssalentin/plip/check_pdb_status
LDU_FT
[ "<BEGIN>\n## `process_pdb`", "Analysis of a single PDB file. Can generate textual reports XML, PyMOL session files and images as output.\n<END>", "<BEGIN>\n## `download_structure`", "Given a PDB ID, downloads the corresponding PDB structure.\n Checks for validity of ID and handles error while downloading.\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the check_pdb_status API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the check_pdb_status API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Returns the status and up-to-date entry in the PDB for a given PDB ID
"Returns the status and up-to-date entry in the PDB for a given PDB ID"
176
false
ssalentin/plip
check_pdb_status
34,019
LDU_FT/aws/aws-iot-device-sdk-python/reconnect
LDU_FT
[ "<BEGIN>\n## `shadowGet`", "**Description**", " Retrieve the device shadow JSON document from AWS IoT by publishing an empty JSON document to the \n corresponding shadow topics. Shadow response topics will be subscribed to receive responses from \n AWS IoT regarding the result of the get op...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the reconnect API. 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 reconnect API. 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...
Reconnect the client after a disconnect. Can only be called after connect()/connect_async().
"Reconnect the client after a disconnect. Can only be called after\n connect()/connect_async()."
420
false
aws/aws-iot-device-sdk-python
reconnect
34,020
LDU_FT/brian-rose/climlab/lev_bounds
LDU_FT
[ "<BEGIN>\n## `default_absorbers`", "Initialize a dictionary of well-mixed radiatively active gases\n All values are volumetric mixing ratios.", " Ozone is set to a climatology.", " All other gases are assumed well-mixed:", " - CO2\n - CH4\n - N2O\n - O2\n - CFC11\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the lev_bounds API. 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 lev_bounds API. 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...
Pressure levels at grid interfaces (hPa or mb) :getter: Returns the bounds of axis ``'lev'`` if availible in the process's domains. :type: array :raises: :exc:`ValueError` if no ``'lev'`` axis can be found.
"Pressure levels at grid interfaces (hPa or mb)\n\n :getter: Returns the bounds of axis ``'lev'`` if availible in the\n process's domains.\n :type: array\n :raises: :exc:`ValueError`\n if no ``'lev'`` axis can be found."
571
false
brian-rose/climlab
lev_bounds
34,021
LDU_FT/Zimbra-Community/python-zimbra/set_context_params
LDU_FT
[ "<BEGIN>\n## `set_context_params`", "Set header context parameters. Refer to the top of <Zimbra\n Server-Root>/docs/soap.txt about specifics.", " The <format>-Parameter cannot be changed, because it is set by the\n implementing class.", " Should be called by implementing method to ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_context_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. Th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_context_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. Th...
Set header context parameters. Refer to the top of <Zimbra Server-Root>/docs/soap.txt about specifics. The <format>-Parameter cannot be changed, because it is set by the implementing class. Should be called by implementing method to check for valid context params. :par...
"Set header context parameters. Refer to the top of <Zimbra\n Server-Root>/docs/soap.txt about specifics.\n\n The <format>-Parameter cannot be changed, because it is set by the\n implementing class.\n\n Should be called by implementing method to check for valid context\n params.\n\n ...
48
false
Zimbra-Community/python-zimbra
set_context_params
34,022
LDU_FT/zyga/guacamole/hsv
LDU_FT
[ "<BEGIN>\n## `added`", "Ingredient method called before anything else.", " Here this method just builds the full command tree and stores it inside\n the context as the ``cmd_tree`` attribute. The structure of the tree is\n explained by the :func:`build_cmd_tree()` function.\n<END>", "<BEG...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the hsv API. 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 hsv API. 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...
Convert HSV (hue, saturation, value) to RGB.
"Convert HSV (hue, saturation, value) to RGB."
104
false
zyga/guacamole
hsv
34,023
LDU_FT/Hrabal/TemPy/pop_cell
LDU_FT
[ "<BEGIN>\n## `render_attrs`", "Renders the tag's attributes using the formats and performing special attributes name substitution.\n<END>", "<BEGIN>\n## `toggle_class`", "Same as jQuery's toggleClass function. It toggles the css class on this element.\n<END>", "<BEGIN>\n## `remove_class`", "Removes the gi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the pop_cell API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the pop_cell API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
Pops a cell, default the last of the last row
"Pops a cell, default the last of the last row"
80
false
Hrabal/TemPy
pop_cell
34,024
LDU_FT/adamrehn/ue4cli/patchFile
LDU_FT
[ "<BEGIN>\n## `findArgs`", "Extracts the list of arguments that start with any of the specified prefix values\n<END>", "<BEGIN>\n## `stripArgs`", "Removes any arguments in the supplied list that are contained in the specified blacklist\n<END>", "<BEGIN>\n## `capture`", "Executes a child process and capture...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the patchFile API. 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 patchFile API. 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...
Applies the supplied list of replacements to a file
"Applies the supplied list of replacements to a file"
120
false
adamrehn/ue4cli
patchFile
34,025
LDU_FT/langloisjp/tstore/select
LDU_FT
[ "<BEGIN>\n## `get`", "Return record of given type with key `rid`", " >>> s = teststore()\n >>> s.create('tstoretest', {'id': '1', 'name': 'Toto'})\n >>> r = s.get('tstoretest', '1')\n >>> r['name']\n 'Toto'\n >>> s.get('badcls', '1')\n Traceback (most recent call...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the select API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the select API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Query and return list of records. >>> import getpass >>> s = DB(dbname='test', user=getpass.getuser(), host='localhost', ... password='') >>> s.execute('drop table if exists t2') >>> s.execute('create table t2 (id int, name text)') >>> s.insert('t2', {'id': 1, 'name': 'T...
"Query and return list of records.\n\n >>> import getpass\n >>> s = DB(dbname='test', user=getpass.getuser(), host='localhost',\n ... password='')\n >>> s.execute('drop table if exists t2')\n >>> s.execute('create table t2 (id int, name text)')\n >>> s.insert('t2', {'id': 1, 'n...
61
false
langloisjp/tstore
select
34,026
LDU_FT/steven-lang/bottr/_process_submission
LDU_FT
[ "<BEGIN>\n## `stop`", "Stops this bot.", " Returns as soon as all running threads have finished processing.\n<END>", "<BEGIN>\n## `_listen_comments`", "Start listening to comments, using a separate thread.\n<END>", "<BEGIN>\n## `start`", "Starts this bot in a separate thread. Therefore, this call...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _process_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. T...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _process_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. T...
Process a reddit submission. Calls `func_comment(*func_comment_args)`. :param submission: Comment to process
"Process a reddit submission. Calls `func_comment(*func_comment_args)`.\n\n :param submission: Comment to process"
45
false
steven-lang/bottr
_process_submission
34,027
LDU_FT/tensorflow/mesh/beam_search
LDU_FT
[ "<BEGIN>\n## `make_layer_stack`", "Configurable layer stack.", " Args:\n layers: a list of subclasses of TransformerLayer\n num_layers: an integer\n Returns:\n a LayerStack\n<END>", "<BEGIN>\n## `make_bitransformer`", "Gin-configurable bitransformer constructor.", " In your config file you nee...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the beam_search API. 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 beam_search API. 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...
Beam search with length penalties. Requires a function that can take the currently decoded symbols and return the logits for the next symbol. The implementation is inspired by https://arxiv.org/abs/1609.08144. When running, the beam search steps can be visualized by using tfdbg to watch the operations gener...
"Beam search with length penalties.\n\n Requires a function that can take the currently decoded symbols and return\n the logits for the next symbol. The implementation is inspired by\n https://arxiv.org/abs/1609.08144.\n\n When running, the beam search steps can be visualized by using tfdbg to watch\n the operatio...
958
false
tensorflow/mesh
beam_search
34,028
LDU_FT/yoavaviram/python-amazon-simple-product-api/browse_nodes
LDU_FT
[ "<BEGIN>\n## `lookup_bulk`", "Lookup Amazon Products in bulk.", " Returns all products matching requested ASINs, ignoring invalid\n entries.", " :return:\n A list of :class:`~.AmazonProduct` instances.\n<END>", "<BEGIN>\n## `similarity_lookup`", "Similarty Lookup.", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the browse_nodes API. 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 browse_nodes API. 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...
Browse Nodes. :return: A list of :class:`~.AmazonBrowseNode` objects.
"Browse Nodes.\n\n :return:\n A list of :class:`~.AmazonBrowseNode` objects."
112
false
yoavaviram/python-amazon-simple-product-api
browse_nodes
34,029
LDU_FT/pyupio/changelogs/contains_project_name
LDU_FT
[ "<BEGIN>\n## `get_releases`", "Gets all releases from pypi meta data.\n :param data: dict, meta data\n :return: list, str releases\n<END>", "<BEGIN>\n## `get_urls`", "Gets URLs to changelogs.\n :param session: requests Session instance\n :param name: str, package name\n :param data: dict, meta ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the contains_project_name API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the contains_project_name API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Checks if the given link `somewhat` contains the project name. :param name: str, project name :param link: str, link :return: bool, True if the link contains the project name
"Checks if the given link `somewhat` contains the project name.\n :param name: str, project name\n :param link: str, link\n :return: bool, True if the link contains the project name"
58
false
pyupio/changelogs
contains_project_name
34,030
LDU_FT/goshuirc/irc/escape
LDU_FT
[ "<BEGIN>\n## `sort_prefixes`", "Returns a sorted list of prefixes.", " Args:\n orig (str): Unsorted list of prefixes.\n prefixes (str): List of prefixes, from highest-priv to lowest.\n<END>", "<BEGIN>\n## `parse_modes`", "Return a modelist.", " Args:\n params (list of str): Para...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the escape API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the escape API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Takes a raw IRC message and returns a girc-escaped message.
"Takes a raw IRC message and returns a girc-escaped message."
97
false
goshuirc/irc
escape
34,031
LDU_FT/wummel/dosage/find_scraperclasses
LDU_FT
[ "<BEGIN>\n## `exception`", "Write error message with traceback info.\n<END>", "<BEGIN>\n## `write`", "Write message with indentation, context and optional timestamp.\n<END>", "<BEGIN>\n## `contains_case_insensitive`", "Check if key is in adict. The search is case insensitive.\n<END>", "<BEGIN>\n## `fini...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_scraperclasses 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 find_scraperclasses 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...
Get a list comic scraper classes. Can return more than one entries if multiple_allowed is True, else it raises a ValueError if multiple modules match. The match is a case insensitive substring search.
"Get a list comic scraper classes. Can return more than one entries if\n multiple_allowed is True, else it raises a ValueError if multiple\n modules match. The match is a case insensitive substring search."
141
false
wummel/dosage
find_scraperclasses
34,032
LDU_FT/brunato/lograptor/protected_property
LDU_FT
[ "<BEGIN>\n## `make_text`", "Make the text representation of a report data element.\n<END>", "<BEGIN>\n## `make_html`", "Make the text representation of a report element as html.\n<END>", "<BEGIN>\n## `make_csv`", "Get the text representation of a report element as csv.\n<END>", "<BEGIN>\n## `make_format...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the protected_property 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 protected_property 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...
Class method decorator that creates a property that returns the protected attribute or the value returned by the wrapped method, if the protected attribute is not defined.
"Class method decorator that creates a property that returns the protected attribute\n or the value returned by the wrapped method, if the protected attribute is not defined."
121
false
brunato/lograptor
protected_property
34,033
LDU_FT/PyMySQL/PyMySQL/_read_packet
LDU_FT
[ "<BEGIN>\n## `close`", "Closing a cursor just exhausts all remaining data.\n<END>", "<BEGIN>\n## `mogrify`", "Returns the exact string that is sent to the database by calling the\n execute() method.", " This method follows the extension to the DB API 2.0 followed by Psycopg.\n<END>", "<BEGIN...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _read_packet API. 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 _read_packet API. 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...
Read an entire "mysql packet" in its entirety from the network and return a MysqlPacket type that represents the results. :raise OperationalError: If the connection to the MySQL server is lost. :raise InternalError: If the packet sequence number is wrong.
"Read an entire \"mysql packet\" in its entirety from the network\n and return a MysqlPacket type that represents the results.\n\n :raise OperationalError: If the connection to the MySQL server is lost.\n :raise InternalError: If the packet sequence number is wrong."
88
false
PyMySQL/PyMySQL
_read_packet
34,034
LDU_FT/jantman/webhook2lambda2sqs/run_cmd
LDU_FT
[ "<BEGIN>\n## `webhook2lambda2sqs_handler`", "Main entry point/handler for the lambda function. Wraps\n :py:func:`~.handle_event` to ensure that we log detailed information if it\n raises an exception.", " :param event: Lambda event that triggered the handler\n :type event: dict\n :param context: ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the run_cmd API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the run_cmd API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
Execute a command via :py:class:`subprocess.Popen`; return its output (string, combined STDOUT and STDERR) and exit code (int). If stream is True, also stream the output to STDOUT in realtime. :param args: the command to run and arguments, as a list or string :param stream: whether or not to stream com...
"Execute a command via :py:class:`subprocess.Popen`; return its output\n (string, combined STDOUT and STDERR) and exit code (int). If stream is True,\n also stream the output to STDOUT in realtime.\n\n :param args: the command to run and arguments, as a list or string\n :param stream: whether or not to stre...
137
false
jantman/webhook2lambda2sqs
run_cmd
34,035
LDU_FT/brbsix/subnuker/ismatch
LDU_FT
[ "<BEGIN>\n## `getch`", "Request a single character input from the user.\n<END>", "<BEGIN>\n## `ismatch`", "Test whether text contains string or matches regex.\n<END>", "<BEGIN>\n## `parse`", "Parse command-line arguments. Arguments may consist of any\n combination of directories, files, and options.\n<...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the ismatch API. 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 ismatch API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
Test whether text contains string or matches regex.
"Test whether text contains string or matches regex."
36
false
brbsix/subnuker
ismatch
34,036
LDU_FT/tBaxter/tango-shared-core/save
LDU_FT
[ "<BEGIN>\n## `build_howto`", "Searches for \"how_to.md\" files in app directories.\n Creates user-friendly admin how-to section from apps that have them.\n<END>", "<BEGIN>\n## `social_links`", "Outputs social links. At minimum, this will be Facebook and Twitter.\n But if possible, it will also output vo...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the save API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the save API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
We want to do dimension checks and/or resizing BEFORE the original image is saved. Note that if we can't get image dimensions, it's considered an invalid image and we return without saving. If the image has changed, sets self.thumb to None, triggering post_save thumbnailer.
"We want to do dimension checks and/or resizing BEFORE the original image is saved.\n Note that if we can't get image dimensions, it's considered an invalid image\n and we return without saving.\n If the image has changed, sets self.thumb to None, triggering post_save thumbnailer."
63
false
tBaxter/tango-shared-core
save
34,037
LDU_FT/lablup/backend.ai-common/detect_cloud
LDU_FT
[ "<BEGIN>\n## `env_info`", "Returns a string that contains the Python version and runtime path.\n<END>", "<BEGIN>\n## `dict2kvlist`", "Serializes a dict-like object into a generator of the flatten list of\n repeating key-value pairs. It is useful when using HMSET method in Redis.", " Example:\n >>>...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the detect_cloud API. 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 detect_cloud API. 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...
Detect the cloud provider where I am running on.
"Detect the cloud provider where I am running on."
25
false
lablup/backend.ai-common
detect_cloud
34,038
LDU_FT/liampauling/betfair/create_historical_stream
LDU_FT
[ "<BEGIN>\n## `streaming_market_filter`", ":param list market_ids: filter market data to data pertaining to specific marketIds.\n :param list event_type_ids: filter market data to data pertaining to specific event_type ids.\n :param list event_ids: filter market data to data pertaining to specific event ids....
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_historical_stream 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 create_historical_stream API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio...
Uses streaming listener/cache to parse betfair historical data: https://historicdata.betfair.com/#/home :param str directory: Directory of betfair data :param BaseListener listener: Listener object :rtype: HistoricalStream
"Uses streaming listener/cache to parse betfair\n historical data:\n https://historicdata.betfair.com/#/home\n\n :param str directory: Directory of betfair data\n :param BaseListener listener: Listener object\n\n :rtype: HistoricalStream"
224
false
liampauling/betfair
create_historical_stream
34,039
LDU_FT/jrfonseca/gprof2dot/integrate
LDU_FT
[ "<BEGIN>\n## `stripped_name`", "Remove extraneous information from C++ demangled function names.\n<END>", "<BEGIN>\n## `find_cycles`", "Find cycles using Tarjan's strongly connected components algorithm.\n<END>", "<BEGIN>\n## `_tarjan`", "Tarjan's strongly connected components algorithm.", " See ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the integrate API. 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 integrate API. 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...
Propagate function time ratio along the function calls. Must be called after finding the cycles. See also: - http://citeseer.ist.psu.edu/graham82gprof.html
"Propagate function time ratio along the function calls.\n\n Must be called after finding the cycles.\n\n See also:\n - http://citeseer.ist.psu.edu/graham82gprof.html"
23
false
jrfonseca/gprof2dot
integrate
34,040
LDU_FT/gabfl/dbschema/parse_statements
LDU_FT
[ "<BEGIN>\n## `get_connection`", "Returns a PostgreSQL or MySQL connection\n<END>", "<BEGIN>\n## `parse_statements`", "Parse input and return a list of SQL statements\n<END>", "<BEGIN>\n## `save_migration`", "Save a migration in `migrations_applied` table\n<END>", "<BEGIN>\n## `delete_migration`", "Del...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_statements API. 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 parse_statements API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Parse input and return a list of SQL statements
"Parse input and return a list of SQL statements"
12
false
gabfl/dbschema
parse_statements
34,041
LDU_FT/tjomasc/snekbol/get_components
LDU_FT
[ "<BEGIN>\n## `add_component_definition`", "Add a ComponentDefinition to the document\n<END>", "<BEGIN>\n## `assemble_component`", "Assemble a list of already defined components into a structual hirearchy\n<END>", "<BEGIN>\n## `get_components`", "Get components from a component definition in order\n<END>",...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_components API. 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_components API. 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...
Get components from a component definition in order
"Get components from a component definition in order"
30
false
tjomasc/snekbol
get_components
34,042
LDU_FT/wind-python/windpowerlib/smooth_power_curve
LDU_FT
[ "<BEGIN>\n## `reduce_wind_speed`", "r\"\"\"\n Reduces wind speed by a wind efficiency curve.", " The wind efficiency curves are provided in the windpowerlib and were\n calculated in the dena-Netzstudie II and in the work of Knorr\n (see [1]_ and [2]_).", " Parameters\n ----------\n wind_s...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the smooth_power_curve 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 smooth_power_curve 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...
r""" Smooths the input power curve values by using a Gauss distribution. The smoothing serves for taking the distribution of wind speeds over space into account. Parameters ---------- power_curve_wind_speeds : pandas.Series or numpy.array Wind speeds in m/s for which the power curve va...
"r\"\"\"\n Smooths the input power curve values by using a Gauss distribution.\n\n The smoothing serves for taking the distribution of wind speeds over space\n into account.\n\n Parameters\n ----------\n power_curve_wind_speeds : pandas.Series or numpy.array\n Wind speeds in m/s for which the p...
249
false
wind-python/windpowerlib
smooth_power_curve
34,043
LDU_FT/DenisCarriere/geocoder/_parse_json_with_fieldnames
LDU_FT
[ "<BEGIN>\n## `_sign_url`", "Sign a request URL with a Crypto Key.\n Usage:\n from urlsigner import sign_url\n signed_url = sign_url(base_url=my_url,\n params=url_params,\n client_secret=CLIENT_SECRET)\n Args:\n base_url -...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _parse_json_with_fieldnames API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclu...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _parse_json_with_fieldnames API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclu...
Parse the raw JSON with all attributes/methods defined in the class, except for the ones defined starting with '_' or flagged in cls._TO_EXCLUDE. The final result is stored in self.json
"Parse the raw JSON with all attributes/methods defined in the class, except for the\n ones defined starting with '_' or flagged in cls._TO_EXCLUDE.\n\n The final result is stored in self.json"
32
false
DenisCarriere/geocoder
_parse_json_with_fieldnames
34,044
LDU_FT/mieubrisse/wunderpy2/get_access_token
LDU_FT
[ "<BEGIN>\n## `get_endpoint_obj`", "Tiny helper function that gets used all over the place to join the object ID to the endpoint and run a GET request, returning the result\n<END>", "<BEGIN>\n## `update_endpoint_obj`", "Helper method to ease the repetitiveness of updating an... SO VERY DRY ", " (That's a ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_access_token API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_access_token API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Exchange a temporary code for an access token allowing access to a user's account See https://developer.wunderlist.com/documentation/concepts/authorization for more info
"Exchange a temporary code for an access token allowing access to a user's account\n\n See https://developer.wunderlist.com/documentation/concepts/authorization for more info"
94
false
mieubrisse/wunderpy2
get_access_token
34,045
LDU_FT/makinacorpus/django-tracking-fields/_create_update_tracking_event
LDU_FT
[ "<BEGIN>\n## `changelist_view`", "Get object currently tracked and add a button to get back to it\n<END>", "<BEGIN>\n## `_add_get_tracking_url`", "Add a method to get the tracking url of an object.\n<END>", "<BEGIN>\n## `track`", "Decorator used to track changes on Model's fields.", " :Example:\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _create_update_tracking_event API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _create_update_tracking_event API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conc...
Create a TrackingEvent and TrackedFieldModification for an UPDATE event.
"Create a TrackingEvent and TrackedFieldModification for an UPDATE event."
33
false
makinacorpus/django-tracking-fields
_create_update_tracking_event
34,046
LDU_FT/geronimp/graftM/build_search_otu_table
LDU_FT
[ "<BEGIN>\n## `_write_consensus_strings`", "Writes the taxonomy of each leaf to a file. If the leaf has no\n taxonomy, a taxonomy string will be created using the annotations\n provided to the ancestor nodes of that leaf (meaning, it will be\n decorated).", " Parameters\n -----...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the build_search_otu_table API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the build_search_otu_table API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
Build an OTU from SequenceSearchResult objects Parameters ---------- search_results_list: list Iterable if SequenceSearchResult objects. e.g. [SequenceSearchResult_1, SequenceSearchResult_2, ...] base_list: list Iterable of the basenames f...
"Build an OTU from SequenceSearchResult objects\n \n Parameters\n ----------\n search_results_list: list\n Iterable if SequenceSearchResult objects. e.g.\n [SequenceSearchResult_1, SequenceSearchResult_2, ...]\n base_list: list\n Iterable of the ba...
334
false
geronimp/graftM
build_search_otu_table
34,047
LDU_FT/gatkin/declxml/boolean
LDU_FT
[ "<BEGIN>\n## `parse_from_file`", "Parse the XML file using the processor starting from the root of the document.", " :param root_processor: Root processor of the XML document.\n :param xml_file_path: Path to XML file to parse.\n :param encoding: Encoding of the file.", " :return: Parsed value.\n<E...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the boolean API. 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 boolean API. 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...
Create a processor for boolean values. :param element_name: Name of the XML element containing the value. Can also be specified using supported XPath syntax. :param attribute: If specified, then the value is searched for under the attribute within the element specified by element_name. If not s...
"Create a processor for boolean values.\n\n :param element_name: Name of the XML element containing the value. Can also be specified\n using supported XPath syntax.\n :param attribute: If specified, then the value is searched for under the\n attribute within the element specified by element_name. If...
127
false
gatkin/declxml
boolean
34,048
LDU_FT/jldantas/libmft/_astimezone_ts
LDU_FT
[ "<BEGIN>\n## `apply_fixup_array`", "This function reads the fixup array and apply the correct values\n to the underlying binary stream. This function changes the bin_view\n in memory.", " Args:\n bin_view (memoryview of bytearray) - The binary stream\n fx_offset (int) - Offset to the fixu...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _astimezone_ts API. 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 _astimezone_ts API. 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...
Changes the time zones of all timestamps. Receives a new timezone and applies to all timestamps, if necessary. Args: timezone (:obj:`tzinfo`): Time zone to be applied Returns: A new ``Timestamps`` object if the time zone changes, otherwise returns ``self``.
"Changes the time zones of all timestamps.\n\n Receives a new timezone and applies to all timestamps, if necessary.\n\n Args:\n timezone (:obj:`tzinfo`): Time zone to be applied\n\n Returns:\n A new ``Timestamps`` object if the time zone changes, otherwise returns ``self``."
107
false
jldantas/libmft
_astimezone_ts
34,049
LDU_FT/tomduck/pandoc-xnos/delete_secnos_factory
LDU_FT
[ "<BEGIN>\n## `_repeat`", "Repeats func(...) call until something other than None is returned.\n<END>", "<BEGIN>\n## `init`", "Sets or determines the pandoc version. This must be called.", " The pandoc version is needed for multi-version support.\n See: https://github.com/jgm/pandoc/issues/2640", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the delete_secnos_factory 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 delete_secnos_factory 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 delete_secnos(key, value, fmt, meta) action that deletes section numbers from the attributes of elements of type f.
"Returns delete_secnos(key, value, fmt, meta) action that deletes\n section numbers from the attributes of elements of type f."
63
false
tomduck/pandoc-xnos
delete_secnos_factory
34,050
LDU_FT/jantman/pypi-download-stats/per_version_data
LDU_FT
[ "<BEGIN>\n## `_path_for_file`", "Generate the path on disk for a specified project and date.", " :param project_name: the PyPI project name for the data\n :type project: str\n :param date: the date for the data\n :type date: datetime.datetime\n :return: path for where to store...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the per_version_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 ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the per_version_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 ...
Return download data by version. :return: dict of cache data; keys are datetime objects, values are dict of version (str) to count (int) :rtype: dict
"Return download data by version.\n\n :return: dict of cache data; keys are datetime objects, values are\n dict of version (str) to count (int)\n :rtype: dict"
135
false
jantman/pypi-download-stats
per_version_data
34,051
LDU_FT/MycroftAI/adapt/append
LDU_FT
[ "<BEGIN>\n## `lookup`", "TODO: Implement trie lookup with edit distance", " Args:\n iterable(list?): key used to find what is requested this could\n be a generator.\n index(int): index of what is requested\n gather(bool): of weather to gather or not\n ...
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 ...
Appends items or lists to the Lattice Args: data (item,list) : The Item or List to be added to the Lattice
"Appends items or lists to the Lattice\n\n Args:\n data (item,list) : The Item or List to be added to the Lattice"
178
false
MycroftAI/adapt
append
34,052
LDU_FT/msiemens/PyGitUp/log
LDU_FT
[ "<BEGIN>\n## `_run`", "Run a git command specified by name and args/kwargs.\n<END>", "<BEGIN>\n## `change_count`", "The number of changes in the working directory.\n<END>", "<BEGIN>\n## `uniq`", "Return a copy of seq without duplicates.\n<END>", "<BEGIN>\n## `execute`", "Execute a command and return i...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the log API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the log API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
Call a log-command, if set by git-up.fetch.all.
"Call a log-command, if set by git-up.fetch.all."
30
false
msiemens/PyGitUp
log
34,053
LDU_FT/adafruit/Adafruit_Python_VCNL40xx/read_proximity
LDU_FT
[ "<BEGIN>\n## `_wait_response`", "Wait for a response to be ready (the provided ready bits are set).\n If the specified timeout (in seconds) is exceeded and error will be\n thrown.\n<END>", "<BEGIN>\n## `read_proximity`", "Read the sensor proximity and return it as an unsigned 16-bit value.\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the read_proximity API. 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 read_proximity API. 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...
Read the sensor proximity and return it as an unsigned 16-bit value. The larger the value the closer an object is to the sensor.
"Read the sensor proximity and return it as an unsigned 16-bit value.\n The larger the value the closer an object is to the sensor."
12
false
adafruit/Adafruit_Python_VCNL40xx
read_proximity
34,054
LDU_FT/simonvh/genomepy/tar_to_bigfile
LDU_FT
[ "<BEGIN>\n## `register_provider`", "Register method to keep list of providers.\n<END>", "<BEGIN>\n## `tar_to_bigfile`", "Convert tar of multiple FASTAs to one file.\n<END>", "<BEGIN>\n## `download_genome`", "Download a (gzipped) genome file to a specific directory", " Parameters\n --------...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the tar_to_bigfile API. 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 tar_to_bigfile API. 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...
Convert tar of multiple FASTAs to one file.
"Convert tar of multiple FASTAs to one file."
87
false
simonvh/genomepy
tar_to_bigfile
34,055
LDU_FT/niolabs/python-xbee/dispatch
LDU_FT
[ "<BEGIN>\n## `_write`", "_write: binary data -> None", " Packages the given binary data in an API frame and writes the\n result to the serial port\n<END>", "<BEGIN>\n## `_build_command`", "_build_command: string (binary data) ... -> binary data", " _build_command will construct a comm...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the dispatch API. 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 dispatch API. 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...
dispatch: XBee data dict -> None When called, dispatch checks the given packet against each registered callback method and calls each callback whose filter function returns true.
"dispatch: XBee data dict -> None\n\n When called, dispatch checks the given packet against each\n registered callback method and calls each callback whose filter\n function returns true."
91
false
niolabs/python-xbee
dispatch
34,056
LDU_FT/sarenji/pyrc/connect
LDU_FT
[ "<BEGIN>\n## `stopword`", "will repeat 'lol', 'lmao, 'rofl' or 'roflmao' when seen in a message\n only applies to channel messages\n<END>", "<BEGIN>\n## `run`", "Keep running this thread until it's stopped\n<END>", "<BEGIN>\n## `connect`", "Connects to the IRC server with the options defined in `co...
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...
Connects to the IRC server with the options defined in `config`
"Connects to the IRC server with the options defined in `config`"
16
false
sarenji/pyrc
connect
34,057
LDU_FT/striglia/pyramid_swagger/required_validator
LDU_FT
[ "<BEGIN>\n## `includeme`", ":type config: :class:`pyramid.config.Configurator`\n<END>", "<BEGIN>\n## `validate_swagger_schema`", "Validate the structure of Swagger schemas against the spec.", " **Valid only for Swagger v1.2 spec**", " Note: It is possible that resource_listing is not present in\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the required_validator 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 required_validator 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...
Swagger 1.2 expects `required` to be a bool in the Parameter object, but a list of properties in a Model object.
"Swagger 1.2 expects `required` to be a bool in the Parameter object, but\n a list of properties in a Model object."
101
false
striglia/pyramid_swagger
required_validator
34,058
LDU_FT/eddiejessup/spatious/angular_distance
LDU_FT
[ "<BEGIN>\n## `R_rot_2d`", "Return a 2-dimensional rotation matrix.", " Parameters\n ----------\n th: array, shape (n, 1)\n Angles about which to rotate.", " Returns\n -------\n R: array, shape (n, 2, 2)\n<END>", "<BEGIN>\n## `R_rot_3d`", "Return a 3-dimensional rotation matrix.", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the angular_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 angular_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 ...
Return the angular separation between two 3 dimensional vectors. Parameters ---------- n1, n2: array-like, shape (3,) Coordinates of two vectors. Their magnitude does not matter. Returns ------- d_sigma: float Angle between n1 and n2 in radians.
"Return the angular separation between two 3 dimensional vectors.\n\n Parameters\n ----------\n n1, n2: array-like, shape (3,)\n Coordinates of two vectors.\n Their magnitude does not matter.\n\n Returns\n -------\n d_sigma: float\n Angle between n1 and n2 in radians."
112
false
eddiejessup/spatious
angular_distance
34,059
LDU_FT/ldomic/lintools/write_output_files
LDU_FT
[ "<BEGIN>\n## `draw_hydrogen_bonds`", "For each bond that has been determined to be important, a line gets drawn.\n<END>", "<BEGIN>\n## `draw_salt_bridges`", "For each bond that has been determined to be important, a line gets drawn.\n<END>", "<BEGIN>\n## `change_lines_in_svg`", "Used to change lines in an...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the write_output_files API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the write_output_files API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
The total hydrogen bond count per frame is provided as CSV output file. Each trajectory has a separate file.
"The total hydrogen bond count per frame is provided as CSV output file.\n Each trajectory has a separate file."
117
false
ldomic/lintools
write_output_files
34,060
LDU_FT/mmp2/megaman/_graph_connected_component
LDU_FT
[ "<BEGIN>\n## `check_eigen_solver`", "Check that the selected eigensolver is valid", " Parameters\n ----------\n eigen_solver : string\n string value to validate\n size, nvec : int (optional)\n if both provided, use the specified problem size and number of vectors\n to determine ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _graph_connected_component 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 _graph_connected_component API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclus...
Find the largest graph connected components the contains one given node Parameters ---------- graph : array-like, shape: (n_samples, n_samples) adjacency matrix of the graph, non-zero weight means an edge between the nodes node_id : int The index of the query node of the gr...
"Find the largest graph connected components the contains one\n given node\n\n Parameters\n ----------\n graph : array-like, shape: (n_samples, n_samples)\n adjacency matrix of the graph, non-zero weight means an edge\n between the nodes\n\n node_id : int\n The index of the query nod...
287
false
mmp2/megaman
_graph_connected_component
34,061
LDU_FT/szastupov/aiotg/send_audio
LDU_FT
[ "<BEGIN>\n## `loop`", "Return bot's main loop as coroutine. Use with asyncio.", " :Example:", " >>> loop = asyncio.get_event_loop()\n >>> loop.run_until_complete(bot.loop())", " or", " >>> loop = asyncio.get_event_loop()\n >>> loop.create_task(bot.loop())\n<END>",...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the send_audio API. 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 send_audio API. 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...
Send an mp3 audio file to the chat. :param audio: Object containing the audio data :param options: Additional sendAudio options (see https://core.telegram.org/bots/api#sendaudio) :Example: >>> with open("foo.mp3", "rb") as f: >>> await chat.send_audio(f, perfor...
"Send an mp3 audio file to the chat.\n\n :param audio: Object containing the audio data\n :param options: Additional sendAudio options (see\n https://core.telegram.org/bots/api#sendaudio)\n\n :Example:\n\n >>> with open(\"foo.mp3\", \"rb\") as f:\n >>> await chat.send_a...
134
false
szastupov/aiotg
send_audio
34,062
LDU_FT/DataONEorg/d1_python/str_is_well_formed
LDU_FT
[ "<BEGIN>\n## `wrap`", "Work with the AccessPolicy in a SystemMetadata PyXB object.", " Args:\n access_pyxb : AccessPolicy PyXB object\n The AccessPolicy to modify.", " read_only: bool\n Do not update the wrapped AccessPolicy.", " When only a single AccessPolicy operation is nee...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the str_is_well_formed 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 str_is_well_formed 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...
Args: xml_str : str DataONE API XML doc. Returns: bool: **True** if XML doc is well formed.
"Args:\n xml_str : str\n DataONE API XML doc.\n\n Returns:\n bool: **True** if XML doc is well formed."
1,937
true
DataONEorg/d1_python
str_is_well_formed
34,063
LDU_FT/disqus/durabledict/depersist
LDU_FT
[ "<BEGIN>\n## `validate_key`", "Decorator to validate a key for zookeeper.\n<END>", "<BEGIN>\n## `persist`", "Encode and save ``value`` at ``key``.", " :param key: Key to store ``value`` at in Zookeeper.\n :type key: string\n :param value: Value to store. Encoded before being stored.\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the depersist API. 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 depersist API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
Remove ``key`` from dictionary. :param key: Key to remove from Zookeeper. :type key: string
"Remove ``key`` from dictionary.\n\n :param key: Key to remove from Zookeeper.\n :type key: string"
21
false
disqus/durabledict
depersist
34,064
LDU_FT/gestaolivre/brazil-types/clean
LDU_FT
[ "<BEGIN>\n## `format`", "u\"\"\"\n Formata o CNPJ.", " Códigos de formatação:\n r -> raw\n f -> formatado", " >>> cnpj = CNPJ(58414462000135)\n >>> cnpj.format('r')\n '58414462000135'\n >>> cnpj.format('f')\n '58.414.462/0001-35'\n<END>", "<BEGI...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the clean API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the clean API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
u""" Retorna apenas os dígitos do CPF. >>> CPF.clean('581.194.436-59') '58119443659'
"u\"\"\"\n Retorna apenas os dígitos do CPF.\n\n >>> CPF.clean('581.194.436-59')\n '58119443659'"
20
false
gestaolivre/brazil-types
clean
34,065
LDU_FT/GoogleCloudPlatform/python-repo-tools/get_package_info
LDU_FT
[ "<BEGIN>\n## `read_config`", "Reads pylintrc config into native ConfigParser object.", " Args:\n contents (str): The contents of the file containing the INI config.", " Returns:\n ConfigParser.ConfigParser: The parsed configuration.\n<END>", "<BEGIN>\n## `load_local_config`", "Loads th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_package_info API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_package_info API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Gets the PyPI information for a given package.
"Gets the PyPI information for a given package."
57
false
GoogleCloudPlatform/python-repo-tools
get_package_info
34,066
LDU_FT/ska-sa/kittens/assign
LDU_FT
[ "<BEGIN>\n## `load_icons`", "load all icons found in path, subdirs '<package>/icons/<appname>'.\n Package is optional.\n<END>", "<BEGIN>\n## `assign`", "Reassign pixmap or xpm string array to wrapper\n<END>", "<BEGIN>\n## `_load`", "load all icons found in path, subdirs 'icons/appname\n<END>", "<BEGI...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the assign API. 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 assign API. 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 ...
Reassign pixmap or xpm string array to wrapper
"Reassign pixmap or xpm string array to wrapper"
16
false
ska-sa/kittens
assign
34,067
LDU_FT/spyder-ide/spyder/remove
LDU_FT
[ "<BEGIN>\n## `set_bracket_matcher_color_scheme`", "Set color scheme for matched parentheses.\n<END>", "<BEGIN>\n## `long_banner`", "Banner for IPython widgets with pylab message\n<END>", "<BEGIN>\n## `reset_namespace`", "Reset the namespace by removing all names defined by the user.\n<END>", "<BEGIN>\n#...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the remove API. 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 remove API. 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 ...
Removes a text decoration from the editor. :param decoration: Text decoration to remove :type decoration: spyder.api.TextDecoration
"Removes a text decoration from the editor.\n\n :param decoration: Text decoration to remove\n :type decoration: spyder.api.TextDecoration"
2,144
true
spyder-ide/spyder
remove
34,068
LDU_FT/ampl/amplpy/exportGurobiModel
LDU_FT
[ "<BEGIN>\n## `getData`", "Get the data corresponding to the display statements. The statements\n can be AMPL expressions, or entities. It captures the equivalent of the\n command:", " .. code-block:: ampl", " display ds1, ..., dsn;", " where ds1, ..., dsn are the ``dis...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the exportGurobiModel API. 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 exportGurobiModel API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Export the model to Gurobi as a gurobipy.Model object. Args: gurobiDriver: The name or the path of the Gurobi solver driver. verbose: Whether should generate verbose output. Returns: A :class:`gurobipy.Model` object with the model loaded.
"Export the model to Gurobi as a gurobipy.Model object.\n\n Args:\n gurobiDriver: The name or the path of the Gurobi solver driver.\n verbose: Whether should generate verbose output.\n\n Returns:\n A :class:`gurobipy.Model` object with the model loaded."
205
false
ampl/amplpy
exportGurobiModel
34,069
LDU_FT/envi-idl/envipyarclib/create_toolbox
LDU_FT
[ "<BEGIN>\n## `create_param_info`", "Builds the code block for the GPTool GetParameterInfo method based on the input task_params.", " :param task_params: A list of task parameters to map to GPTool parameters.\n :return: A string representing the code block to the GPTool GetParameterInfo method.\n<END>", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_toolbox API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_toolbox API. 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...
Creates a new Python toolbox where each task name is a GPTool in the toolbox. :param filename: the filename of the generated toolbox :param service_name: The name of the ESE service containing the tasks. Only tasks from one service may be used. :param tasks: The li...
"Creates a new Python toolbox where each task name is a GPTool in the toolbox.\n\n :param filename: the filename of the generated toolbox\n :param service_name: The name of the ESE service containing the tasks. Only tasks from\n one service may be used.\n :param tasks: ...
24
false
envi-idl/envipyarclib
create_toolbox
34,070
LDU_FT/Anaconda-Platform/anaconda-client/get_header_description
LDU_FT
[ "<BEGIN>\n## `norm_package_version`", "Normalize a version by removing extra spaces and parentheses.\n<END>", "<BEGIN>\n## `split_spec`", "Split a spec by separator and return stripped start and end parts.\n<END>", "<BEGIN>\n## `parse_specification`", "Parse a requirement from a python distribution metada...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_header_description 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_header_description API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
Get description from metadata file and remove any empty lines at end.
"Get description from metadata file and remove any empty lines at end."
111
false
Anaconda-Platform/anaconda-client
get_header_description
34,071
LDU_FT/andy-z/ged4py/freeze
LDU_FT
[ "<BEGIN>\n## `guess_codec`", "Look at file contents and guess its correct encoding.", " File must be open in binary mode and positioned at offset 0. If BOM\n record is present then it is assumed to be UTF-8 or UTF-16 encoded\n file. GEDCOM header is searched for CHAR record and encoding name\n is ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the freeze API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the freeze API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Method called by parser when updates to this record finish. :return: self
"Method called by parser when updates to this record finish.\n\n :return: self"
101
false
andy-z/ged4py
freeze
34,072