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/payplug/payplug-python/delete
LDU_FT
[ "<BEGIN>\n## `map_http_status_to_exception`", "Bind a HTTP status to an HttpError.", " :param http_code: The HTTP code\n :type http_code: int", " :return The HttpError that fits to the http_code or HttpError.\n :rtype Any subclass of HttpError or HttpError\n<END>", "<BEGIN>\n## `...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the delete API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the delete API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Delete a card from its id. :param customer: The customer id or object :type customer: string|Customer :param card: The card id or object :type card: string|Card
"Delete a card from its id.\n\n :param customer: The customer id or object\n :type customer: string|Customer\n :param card: The card id or object\n :type card: string|Card"
108
false
payplug/payplug-python
delete
24,573
LDU_FT/push-things/django-th/recycle
LDU_FT
[ "<BEGIN>\n## `available_services`", "get the available services to be activated", " read the models dir to find the services installed\n to be added to the system by the administrator\n<END>", "<BEGIN>\n## `handle`", "get all the triggers that need to be handled\n<END>", "<BEGIN>\n## `read_d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the recycle API. 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 recycle API. 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...
the purpose of this tasks is to recycle the data from the cache with version=2 in the main cache
"the purpose of this tasks is to recycle the data from the cache\n with version=2 in the main cache"
277
false
push-things/django-th
recycle
24,574
LDU_FT/sdispater/eloquent/_load_relation
LDU_FT
[ "<BEGIN>\n## `get_last`", "Get the last migration batch.", " :rtype: list\n<END>", "<BEGIN>\n## `compile_insert`", "Compile an insert SQL statement", " :param query: A QueryBuilder instance\n :type query: QueryBuilder", " :param values: The values to insert\n :type val...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _load_relation API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _load_relation API. 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...
Eagerly load the relationship on a set of models. :rtype: list
"Eagerly load the relationship on a set of models.\n\n :rtype: list"
498
false
sdispater/eloquent
_load_relation
24,575
LDU_FT/harmsm/PyCmdMessenger/_send_guess
LDU_FT
[ "<BEGIN>\n## `send`", "Send a command (which may or may not have associated arguments) to an \n arduino using the CmdMessage protocol. The command and any parameters\n should be passed as direct arguments to send. ", " arg_formats is an optional string that specifies the formats to use fo...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _send_guess API. 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 _send_guess API. 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...
Send the argument as a string in a way that should (probably, maybe!) be processed properly by C++ calls like atoi, atof, etc. This method is NOT RECOMMENDED, particularly for floats, because values are often mangled silently. Instead, specify a format (e.g. "f") and use the CmdMesse...
"Send the argument as a string in a way that should (probably, maybe!) be\n processed properly by C++ calls like atoi, atof, etc. This method is\n NOT RECOMMENDED, particularly for floats, because values are often \n mangled silently. Instead, specify a format (e.g. \"f\") and use the \n C...
33
false
harmsm/PyCmdMessenger
_send_guess
24,576
LDU_FT/revelc/pyaccumulo/changeLocalUserPassword
LDU_FT
[ "<BEGIN>\n## `following_key`", "Returns the key immediately following the input key - based on the Java implementation found in\n org.apache.accumulo.core.data.Key, function followingKey(PartialKey part)\n :param key: the key to be followed\n :return: a key that immediately follows the input key\n<END>",...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the changeLocalUserPassword 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 changeLocalUserPassword API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion...
Parameters: - login - user - password
"Parameters:\n - login\n - user\n - password"
110
false
revelc/pyaccumulo
changeLocalUserPassword
24,577
LDU_FT/buzzfeed/caliendo/execute_side_effect
LDU_FT
[ "<BEGIN>\n## `increment`", "Static method used to increment the depth of a context belonging to 'method'", " :param function method: A method with a context", " :rtype: caliendo.hooks.Context\n :returns: The context instance for the method.\n<END>", "<BEGIN>\n## `skip_once`", "Indicat...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the execute_side_effect 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 execute_side_effect 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...
Executes a side effect if one is defined. :param side_effect: The side effect to execute :type side_effect: Mixed. If it's an exception it's raised. If it's callable it's called with teh parameters. :param tuple args: The arguments passed to the stubbed out method :param dict kwargs: The kwargs passed ...
"Executes a side effect if one is defined.\n\n :param side_effect: The side effect to execute\n :type side_effect: Mixed. If it's an exception it's raised. If it's callable it's called with teh parameters.\n :param tuple args: The arguments passed to the stubbed out method\n :param dict kwargs: The kwargs p...
177
false
buzzfeed/caliendo
execute_side_effect
24,578
LDU_FT/dancsalo/TensorBase/_init_uninit_vars
LDU_FT
[ "<BEGIN>\n## `compute_samples`", "Sample from a Normal distribution with inferred mu and std\n<END>", "<BEGIN>\n## `neg_log_likelihood`", "Calculate Log Likelihood with particular mean and std\n x must be 2D. [batch_size * eqsamples* iwsamples, num_latent]\n<END>", "<BEGIN>\n## `compute_samples`", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _init_uninit_vars API. 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 _init_uninit_vars API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Initialize all other trainable variables, i.e. those which are uninitialized
"Initialize all other trainable variables, i.e. those which are uninitialized"
94
false
dancsalo/TensorBase
_init_uninit_vars
24,579
LDU_FT/ultradns/python_rest_api_client/edit_tc_pool
LDU_FT
[ "<BEGIN>\n## `create_primary_zone`", "Creates a new primary zone.", " Arguments:\n account_name -- The name of the account that will contain this zone.\n zone_name -- The name of the zone. It must be unique.\n<END>", "<BEGIN>\n## `create_primary_zone_by_upload`", "Creates a new primary...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the edit_tc_pool API. 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 edit_tc_pool API. 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...
Updates an existing TC Pool in the specified zone. :param zone_name: The zone that contains the RRSet. The trailing dot is optional. :param owner_name: The owner name for the RRSet. If no trailing dot is supplied, the owner_name is assumed to be relative (foo). ...
"Updates an existing TC Pool in the specified zone.\n :param zone_name: The zone that contains the RRSet. The trailing dot is optional.\n :param owner_name: The owner name for the RRSet.\n If no trailing dot is supplied, the owner_name is assumed to be relative (foo).\n ...
69
false
ultradns/python_rest_api_client
edit_tc_pool
24,580
LDU_FT/miguelgrinberg/python-engineio/_service_task
LDU_FT
[ "<BEGIN>\n## `signal_handler`", "SIGINT handler.", " Disconnect all active clients and then invoke the original signal handler.\n<END>", "<BEGIN>\n## `on`", "Register an event handler.", " :param event: The event name. Can be ``'connect'``, ``'message'`` or\n ``'disconnect'`...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _service_task API. 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 _service_task API. 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...
Monitor connected clients and clean up those that time out.
"Monitor connected clients and clean up those that time out."
128
false
miguelgrinberg/python-engineio
_service_task
24,581
LDU_FT/mdickinson/bigfloat/jn
LDU_FT
[ "<BEGIN>\n## `build`", "Build the bigfloat library for in-place testing.\n<END>", "<BEGIN>\n## `_quotient_exponent`", "Given two positive finite MPFR instances x and y,\n find the exponent of x / y; that is, the unique\n integer e such that 2**(e-1) <= x / y < 2**e.\n<END>", "<BEGIN>\n## `mpfr_floordi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the jn API. 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 jn API. 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...
Return the value of the first kind Bessel function of order ``n`` at ``x``. ``n`` should be a Python integer.
"Return the value of the first kind Bessel function of order ``n`` at ``x``.\n\n ``n`` should be a Python integer."
273
false
mdickinson/bigfloat
jn
24,582
LDU_FT/dakrauth/django-swingtime/_datetime_view
LDU_FT
[ "<BEGIN>\n## `timeslot_options`", "Create a list of time slot options for use in swingtime forms.", " The list is comprised of 2-tuples containing a 24-hour time value and a\n 12-hour temporal representation of that offset.\n<END>", "<BEGIN>\n## `timeslot_offset_options`", "Create a list of time slot ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _datetime_view API. 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 _datetime_view API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
Build a time slot grid representation for the given datetime ``dt``. See utils.create_timeslot_table documentation for items and params. Context parameters: ``day`` the specified datetime value (dt) ``next_day`` day + 1 day ``prev_day`` day - 1 day ``timeslots`` ...
"Build a time slot grid representation for the given datetime ``dt``. See\n utils.create_timeslot_table documentation for items and params.\n\n Context parameters:\n\n ``day``\n the specified datetime value (dt)\n\n ``next_day``\n day + 1 day\n\n ``prev_day``\n day - 1 day\n\n ``t...
76
false
dakrauth/django-swingtime
_datetime_view
24,583
LDU_FT/lpantano/seqcluster/Likelihood
LDU_FT
[ "<BEGIN>\n## `add_exp`", "Function to add the counts for each sample", " :param gr: name of the sample\n :param exp: counts of sample **gr**", " :returns: dict with key,values equally to name,counts.\n<END>", "<BEGIN>\n## `MakeJoint`", "Joint distribution of values from pmf1 and pmf2....
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the Likelihood API. 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 Likelihood API. 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...
Computes the likelihood of the data. Selects a random vector of probabilities from this distribution. Returns: float probability
"Computes the likelihood of the data.\n\n Selects a random vector of probabilities from this distribution.\n\n Returns: float probability"
491
false
lpantano/seqcluster
Likelihood
24,584
LDU_FT/Azure/msrestazure-for-python/_start
LDU_FT
[ "<BEGIN>\n## `get_msi_token`", "Get MSI token if MSI_ENDPOINT is set.", " IF MSI_ENDPOINT is not set, will try legacy access through 'http://localhost:{}/oauth2/token'.format(port).", " If msi_conf is used, must be a dict of one key in [\"client_id\", \"object_id\", \"msi_res_id\"]", " :param str r...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _start API. 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 _start API. 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 ...
Start the long running operation. On completion, runs any callbacks. :param callable update_cmd: The API reuqest to check the status of the operation.
"Start the long running operation.\n On completion, runs any callbacks.\n\n :param callable update_cmd: The API reuqest to check the status of\n the operation."
167
false
Azure/msrestazure-for-python
_start
24,585
LDU_FT/click-contrib/click-configfile/make_long_description
LDU_FT
[ "<BEGIN>\n## `find_packages_by_root_package`", "Better than excluding everything that is not needed,\n collect only what is needed.\n<END>", "<BEGIN>\n## `make_long_description`", "click_ is a framework to simplify writing composable commands for\n command-line tools. This package extends the click_ fun...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the make_long_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 make_long_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. ...
click_ is a framework to simplify writing composable commands for command-line tools. This package extends the click_ functionality by adding support for commands that use configuration files. .. _click: https://click.pocoo.org/ EXAMPLE: A configuration file, like: .. code-block:: INI ...
"click_ is a framework to simplify writing composable commands for\n command-line tools. This package extends the click_ functionality\n by adding support for commands that use configuration files.\n\n .. _click: https://click.pocoo.org/\n\n EXAMPLE:\n\n A configuration file, like:\n\n .. code-block::...
181
false
click-contrib/click-configfile
make_long_description
24,586
LDU_FT/nyaruka/smartmin/customize_form_field
LDU_FT
[ "<BEGIN>\n## `_read_requirements`", "Parses a file for pip installation requirements.\n<END>", "<BEGIN>\n## `get_list_class`", "Returns the class to use for the passed in list. We just build something up\n from the object type for the list.\n<END>", "<BEGIN>\n## `format_datetime`", "Formats a date, co...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the customize_form_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. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the customize_form_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. ...
Allows views to customize their form fields. By default, Smartmin replaces the plain textbox date input with it's own DatePicker implementation.
"Allows views to customize their form fields. By default, Smartmin replaces the plain textbox\n date input with it's own DatePicker implementation."
118
false
nyaruka/smartmin
customize_form_field
24,587
LDU_FT/aiven/pghoard/DecompressionFile
LDU_FT
[ "<BEGIN>\n## `atomic_create_file`", "Open a temporary file for writing, rename to final name when done\n<END>", "<BEGIN>\n## `_stream_blob`", "Streams contents of given key to given fileobj. Data is read sequentially in chunks\n without any seeks. This requires duplicating some functionality of the Azu...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the DecompressionFile API. 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 DecompressionFile API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
This looks like a class to users, but is actually a function that instantiates a class based on algorithm.
"This looks like a class to users, but is actually a function that instantiates a class based on algorithm."
66
false
aiven/pghoard
DecompressionFile
24,588
LDU_FT/uw-it-aca/uw-restclients-nws/resend_sms_endpoint_verification
LDU_FT
[ "<BEGIN>\n## `get_endpoint_by_subscriber_id_and_protocol`", "Get an endpoint by subscriber_id and protocol\n<END>", "<BEGIN>\n## `get_endpoints_by_subscriber_id`", "Search for all endpoints by a given subscriber\n<END>", "<BEGIN>\n## `resend_sms_endpoint_verification`", "Calls NWS function to resend verif...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the resend_sms_endpoint_verification API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its c...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the resend_sms_endpoint_verification API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its c...
Calls NWS function to resend verification message to endpoint's phone number
"Calls NWS function to resend verification message to endpoint's\n phone number"
44
false
uw-it-aca/uw-restclients-nws
resend_sms_endpoint_verification
24,589
LDU_FT/kalefranz/auxlib/memoizedproperty
LDU_FT
[ "<BEGIN>\n## `import_and_wrap_deprecated`", "Usage:\n import_and_wrap_deprecated('conda.common.connection', locals())\n # looks for conda.common.connection.__all__\n<END>", "<BEGIN>\n## `deprecate_module_with_proxy`", "Usage:\n deprecate_module_with_proxy(__name__, locals()) # at bottom ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the memoizedproperty API. 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 memoizedproperty API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Decorator to cause a method to cache it's results in self for each combination of inputs and return the cached result on subsequent calls. Does not support named arguments or arg values that are not hashable. >>> class Foo (object): ... _x = 1 ... @memoizedproperty ... def foo(self): ...
"Decorator to cause a method to cache it's results in self for each\n combination of inputs and return the cached result on subsequent calls.\n Does not support named arguments or arg values that are not hashable.\n\n >>> class Foo (object):\n ... _x = 1\n ... @memoizedproperty\n ... def foo(sel...
107
false
kalefranz/auxlib
memoizedproperty
24,590
LDU_FT/marshallward/f90nml/_readstream
LDU_FT
[ "<BEGIN>\n## `write`", "Save a namelist to disk using either a file object or its file path.", " File object usage:", " >>> with open(nml_path, 'w') as nml_file:\n >>> f90nml.write(nml, nml_file)", " File path usage:", " >>> f90nml.write(nml, 'data.nml')", " This function is equiva...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _readstream API. 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 _readstream API. 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...
Parse an input stream containing a Fortran namelist.
"Parse an input stream containing a Fortran namelist."
98
false
marshallward/f90nml
_readstream
24,591
LDU_FT/mattjj/pyslds/_set_gaussian_expected_stats
LDU_FT
[ "<BEGIN>\n## `generate_states`", "Jointly sample the discrete and continuous states\n<END>", "<BEGIN>\n## `_set_gaussian_expected_stats`", "Both meanfield and VBEM require expected statistics of the continuous latent\n states, x. This is a helper function to take E[x_t], E[x_t x_t^T] and E[x_{t+1}, x_...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _set_gaussian_expected_stats API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its concl...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _set_gaussian_expected_stats API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its concl...
Both meanfield and VBEM require expected statistics of the continuous latent states, x. This is a helper function to take E[x_t], E[x_t x_t^T] and E[x_{t+1}, x_t^T] and compute the expected sufficient statistics for the initial distribution, dynamics distribution, and Gaussian observation distr...
"Both meanfield and VBEM require expected statistics of the continuous latent\n states, x. This is a helper function to take E[x_t], E[x_t x_t^T] and E[x_{t+1}, x_t^T]\n and compute the expected sufficient statistics for the initial distribution,\n dynamics distribution, and Gaussian observation d...
29
false
mattjj/pyslds
_set_gaussian_expected_stats
24,592
LDU_FT/marrow/WebCore/_configure
LDU_FT
[ "<BEGIN>\n## `_promote`", "Create a new subclass of Context which incorporates instance attributes and new descriptors.", "\t\tThis promotes an instance and its instance attributes up to being a class with class attributes, then\n\t\treturns an instance of that class.\n<END>", "<BEGIN>\n## `register`", "Reg...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _configure API. 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 _configure API. 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...
Prepare the incoming configuration and ensure certain expected values are present. For example, this ensures BaseExtension is included in the extension list, and populates the logging config.
"Prepare the incoming configuration and ensure certain expected values are present.\n\t\t\n\t\tFor example, this ensures BaseExtension is included in the extension list, and populates the logging config."
90
false
marrow/WebCore
_configure
24,593
LDU_FT/singingwolfboy/flask-dance/load_config
LDU_FT
[ "<BEGIN>\n## `make_discord_blueprint`", "Make a blueprint for authenticating with Discord using OAuth 2. This requires\n a client ID and client secret from Discord. You should either pass them to\n this constructor, or make sure that your Flask application config defines\n them, using the variables :envv...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load_config API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load_config API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
Used to dynamically load variables from the Flask application config into the blueprint. To tell this blueprint to pull configuration from the app, just set key-value pairs in the ``from_config`` dict. Keys are the name of the local variable to set on the blueprint object, and values are...
"Used to dynamically load variables from the Flask application config\n into the blueprint. To tell this blueprint to pull configuration from\n the app, just set key-value pairs in the ``from_config`` dict. Keys\n are the name of the local variable to set on the blueprint object,\n and value...
123
false
singingwolfboy/flask-dance
load_config
24,594
LDU_FT/jssimporter/python-jss/save
LDU_FT
[ "<BEGIN>\n## `get`", "GET a url, handle errors, and return an etree.", " In general, it is better to use a higher level interface for\n API requests, like the search methods on this class, or the\n JSSObjects themselves.", " Args:\n url_path: String API endpoint path to ...
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...
Update or create a new object on the JSS. If this object is not yet on the JSS, this method will create a new object with POST, otherwise, it will try to update the existing object with PUT. Data validation is up to the client; The JSS in most cases will at least give you some ...
"Update or create a new object on the JSS.\n\n If this object is not yet on the JSS, this method will create\n a new object with POST, otherwise, it will try to update the\n existing object with PUT.\n\n Data validation is up to the client; The JSS in most cases will\n at least give y...
331
false
jssimporter/python-jss
save
24,595
LDU_FT/phalt/beckett/set_attributes
LDU_FT
[ "<BEGIN>\n## `set_attributes`", "Set the resource attributes from the kwargs.\n Only sets items in the `self.Meta.attributes` white list.", " Subclass this method to customise attributes.", " Args:\n kwargs: Keyword arguements passed into the init of this class\n<END>", "<BEG...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_attributes API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_attributes API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
Set the resource attributes from the kwargs. Only sets items in the `self.Meta.attributes` white list. Args: kwargs: Keyword arguements passed into the init of this class
"Set the resource attributes from the kwargs.\n Only sets items in the `self.Meta.attributes` white list.\n\n Args:\n kwargs: Keyword arguements passed into the init of this class"
53
false
phalt/beckett
set_attributes
24,596
LDU_FT/cpburnz/python-path-specification/match
LDU_FT
[ "<BEGIN>\n## `from_lines`", "Compiles the pattern lines.", "\t\t*pattern_factory* can be either the name of a registered pattern\n\t\tfactory (:class:`str`), or a :class:`~collections.abc.Callable` used\n\t\tto compile patterns. It must accept an uncompiled pattern (:class:`str`)\n\t\tand return the compiled pa...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the match API. 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 match API. 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...
Matches this pattern against the specified files. *files* (:class:`~collections.abc.Iterable` of :class:`str`) contains each file relative to the root directory (e.g., ``"relative/path/to/file"``). Returns an :class:`~collections.abc.Iterable` yielding each matched file path (:class:`str`).
"Matches this pattern against the specified files.\n\n\t\t*files* (:class:`~collections.abc.Iterable` of :class:`str`) contains\n\t\teach file relative to the root directory (e.g., ``\"relative/path/to/file\"``).\n\n\t\tReturns an :class:`~collections.abc.Iterable` yielding each matched\n\t\tfile path (:class:`str`)."
78
false
cpburnz/python-path-specification
match
24,597
LDU_FT/mzucker/noteshrink/get_palette
LDU_FT
[ "<BEGIN>\n## `quantize`", "Reduces the number of bits per channel in the given image.\n<END>", "<BEGIN>\n## `pack_rgb`", "Packs a 24-bit RGB triples into a single integer,\nworks on both arrays and tuples.\n<END>", "<BEGIN>\n## `unpack_rgb`", "Unpacks a single integer or array of integers into one or more...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_palette API. 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_palette API. 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...
Extract the palette for the set of sampled RGB values. The first palette entry is always the background color; the rest are determined from foreground pixels by running K-means clustering. Returns the palette, as well as a mask corresponding to the foreground pixels.
"Extract the palette for the set of sampled RGB values. The first\npalette entry is always the background color; the rest are determined\nfrom foreground pixels by running K-means clustering. Returns the\npalette, as well as a mask corresponding to the foreground pixels."
34
false
mzucker/noteshrink
get_palette
24,598
LDU_FT/pmelchior/proxmin/get_step_f
LDU_FT
[ "<BEGIN>\n## `prox_gradf_lim`", "Forward-backward step: gradient, followed by projection\n<END>", "<BEGIN>\n## `prox_lim12`", "if boundary == \"circle\":\n if j == 0:\n xy = np.array([x[0], Xs[1][0]])\n if j == 1:\n xy = np.array([Xs[0][0], x[0]])\n return [prox_circ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_step_f API. 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_step_f API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
Update the stepsize of given the primal and dual errors. See Boyd (2011), section 3.4.1
"Update the stepsize of given the primal and dual errors.\n\n See Boyd (2011), section 3.4.1"
91
false
pmelchior/proxmin
get_step_f
24,599
LDU_FT/seomoz/shovel/load
LDU_FT
[ "<BEGIN>\n## `heirarchical_helper`", "Return a list of tuples of (fullname, docstring, level) for all the\n tasks in the provided shovel\n<END>", "<BEGIN>\n## `heirarchical_help`", "Given a shovel of tasks, display a heirarchical list of the tasks\n<END>", "<BEGIN>\n## `shovel_help`", "Return a string ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
Return a list of the tasks stored in a file
"Return a list of the tasks stored in a file"
26
false
seomoz/shovel
load
24,600
LDU_FT/quantopian/zipline/winsorize
LDU_FT
[ "<BEGIN>\n## `unwrap`", "Get the cached value.", " Returns\n -------\n value : object\n The cached value.", " Raises\n ------\n Expired\n Raised when `dt` is greater than self.expires.\n<END>", "<BEGIN>\n## `get`", "Get the value of a cached ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the winsorize API. 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 winsorize API. 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...
Construct a new factor that winsorizes the result of this factor. Winsorizing changes values ranked less than the minimum percentile to the value at the minimum percentile. Similarly, values ranking above the maximum percentile are changed to the value at the maximum percentile. ...
"Construct a new factor that winsorizes the result of this factor.\n\n Winsorizing changes values ranked less than the minimum percentile to\n the value at the minimum percentile. Similarly, values ranking above\n the maximum percentile are changed to the value at the maximum\n percentile.\n...
2,011
true
quantopian/zipline
winsorize
24,601
LDU_FT/Loudr/pale/generate_type_docs
LDU_FT
[ "<BEGIN>\n## `py_doc_trim`", "Trim a python doc string.", " This example is nipped from https://www.python.org/dev/peps/pep-0257/,\n which describes how to conventionally format and trim docstrings.", " It has been modified to replace single newlines with a space, but leave\n multiple consecutive ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the generate_type_docs 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 generate_type_docs 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...
Parse an object of types and generate RAML documentation for them. Expects each type to be either a regular type or a list/array. If a type is a list, it must specify what type to use for each item.
"Parse an object of types and generate RAML documentation for them.\n Expects each type to be either a regular type or a list/array. If a type is a list,\n it must specify what type to use for each item."
107
false
Loudr/pale
generate_type_docs
24,602
LDU_FT/PMEAL/OpenPNM/_merge_cluster
LDU_FT
[ "<BEGIN>\n## `ordinary_diffusion`", "r\"\"\"\n Calculate the diffusive conductance of conduits in network, where a\n conduit is ( 1/2 pore - full throat - 1/2 pore ). See the notes section.", " Parameters\n ----------\n target : OpenPNM Object\n The object which this model is associated wi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _merge_cluster API. 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 _merge_cluster API. 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...
r""" Little helper function to merger clusters but only add the uninvaded elements
"r\"\"\"\n Little helper function to merger clusters but only add the uninvaded\n elements"
1,872
true
PMEAL/OpenPNM
_merge_cluster
24,603
LDU_FT/ARMmbed/icetea/wait
LDU_FT
[ "<BEGIN>\n## `init_process_dut`", "Initialize process type Dut as DutProcess or DutConsole.\n<END>", "<BEGIN>\n## `allocate`", "Allocates resources from available local devices.", " :param dut_configuration_list: List of ResourceRequirements objects\n :param args: Not used\n :return: Al...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the wait API. 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 wait API. 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...
Starts the Timer for timeout seconds, then gives 5 second grace period to join the thread. :param timeout: Duration for timer. :return: Nothing
"Starts the Timer for timeout seconds, then gives 5 second grace period to join the thread.\n :param timeout: Duration for timer.\n :return: Nothing"
663
false
ARMmbed/icetea
wait
24,604
LDU_FT/codeinthehole/django-cacheback/key
LDU_FT
[ "<BEGIN>\n## `get`", "Return the data for this function (using the cache if possible).", " This method is not intended to be overidden\n<END>", "<BEGIN>\n## `invalidate`", "Mark a cached item invalid and trigger an asynchronous\n job to refresh the cache\n<END>", "<BEGIN>\n## `raw_get`", "...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the key API. 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 key API. 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 cache key to use. If you're passing anything but primitive types to the ``get`` method, it's likely that you'll need to override this method.
"Return the cache key to use.\n\n If you're passing anything but primitive types to the ``get`` method,\n it's likely that you'll need to override this method."
32
false
codeinthehole/django-cacheback
key
24,605
LDU_FT/geographika/mappyfile/loads
LDU_FT
[ "<BEGIN>\n## `standardise_quotes`", "Change the quotes used to wrap a value to the pprint default\n E.g. \"val\" to 'val' or 'val' to \"val\"\n<END>", "<BEGIN>\n## `process_key_dict`", "Process key value dicts e.g. METADATA \"key\" \"value\"\n<END>", "<BEGIN>\n## `process_repeated_list`", "Process ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the loads API. 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 loads API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
Load a Mapfile from a string Parameters ---------- s: string The Mapfile, or partial Mapfile, text expand_includes: boolean Load any ``INCLUDE`` files in the MapFile include_comments: boolean Include or discard comment strings from the Mapfile - *experimental* include_...
"Load a Mapfile from a string\n\n Parameters\n ----------\n\n s: string\n The Mapfile, or partial Mapfile, text\n expand_includes: boolean\n Load any ``INCLUDE`` files in the MapFile\n include_comments: boolean\n Include or discard comment strings from the Mapfile - *experimental*\n...
184
false
geographika/mappyfile
loads
24,606
LDU_FT/fp12/achallonge/reset
LDU_FT
[ "<BEGIN>\n## `report_winner`", "report scores and give a winner", " |methcoro|", " Args:\n winner: :class:Participant instance\n scores_csv: Comma separated set/game scores with player 1 score first (e.g. \"1-3,3-0,3-2\")", " Raises:\n ValueError: scores...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the reset API. 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 reset API. 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...
reset the tournament on Challonge |methcoro| Note: |from_api| Reset a tournament, clearing all of its scores and attachments. You can then add/remove/edit participants before starting the tournament again. Raises: APIException
"reset the tournament on Challonge\n\n |methcoro|\n\n Note:\n |from_api| Reset a tournament, clearing all of its scores and attachments. You can then add/remove/edit participants before starting the tournament again.\n\n Raises:\n APIException"
173
false
fp12/achallonge
reset
24,607
LDU_FT/TadLeonard/tfatool/_upload_file_safely
LDU_FT
[ "<BEGIN>\n## `up_down_by_arrival`", "Monitors a local directory and a remote FlashAir directory and\n generates sets of new files to be uploaded or downloaded.\n Sets to upload are generated in a tuple\n like (Direction.up, {...}), while download sets to download\n are generated in a tuple like (Direc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _upload_file_safely 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 _upload_file_safely 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...
attempts to upload a local file to FlashAir, tries to remove the remote file if interrupted by any error
"attempts to upload a local file to FlashAir,\n tries to remove the remote file if interrupted by any error"
34
false
TadLeonard/tfatool
_upload_file_safely
24,608
LDU_FT/lark-parser/lark/dedup_list
LDU_FT
[ "<BEGIN>\n## `dedup_list`", "Given a list (l) will removing duplicates from the list,\n preserving the original order of the list. Assumes that\n the list entrie are hashable.\n<END>", "<BEGIN>\n## `_parse`", "Parses sentence 's' using CNF grammar 'g'.\n<END>", "<BEGIN>\n## `get_any_nt_unit_rule...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the dedup_list API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the dedup_list API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
Given a list (l) will removing duplicates from the list, preserving the original order of the list. Assumes that the list entrie are hashable.
"Given a list (l) will removing duplicates from the list,\n preserving the original order of the list. Assumes that\n the list entrie are hashable."
55
false
lark-parser/lark
dedup_list
24,609
LDU_FT/cslarsen/elv/range
LDU_FT
[ "<BEGIN>\n## `parse`", "Parses bank CSV file and returns Transactions instance.", " Args:\n filename: Path to CSV file to read.\n format: CSV format; one of the entries in `elv.formats`.\n encoding: The CSV file encoding.", " Returns:\n A ``Transactions`` object.\n<END>", "...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the 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 extracted d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the 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 extracted d...
Return a ``Transactions`` object in an inclusive date range. Args: start_date: A ``datetime.Date`` object that marks the inclusive start date for the range. stop_date: A ``datetime.Date`` object that marks the inclusive end date for the range. field...
"Return a ``Transactions`` object in an inclusive date range.\n\n Args:\n start_date: A ``datetime.Date`` object that marks the inclusive\n start date for the range.\n\n stop_date: A ``datetime.Date`` object that marks the inclusive end\n date for the range.\n\n ...
43
false
cslarsen/elv
range
24,610
LDU_FT/richq/cmake-lint/CheckLineLength
LDU_FT
[ "<BEGIN>\n## `DefaultRC`", "Check XDG_CONFIG_DIR before ~/.cmakelintrc\n<END>", "<BEGIN>\n## `CleanComments`", "quote means 'was in a quote starting this line' so that\n quoted lines can be eaten/removed.\n<END>", "<BEGIN>\n## `CheckLineLength`", "Check for lines longer than the recommended length\n<EN...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the CheckLineLength API. 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 CheckLineLength API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
Check for lines longer than the recommended length
"Check for lines longer than the recommended length"
14
false
richq/cmake-lint
CheckLineLength
24,611
LDU_FT/ensime/ensime-vim/set_position
LDU_FT
[ "<BEGIN>\n## `buffer_typechecks_and_display`", "Adds typecheck events to the buffer, and displays them right away.", " This is a workaround for this issue:\n https://github.com/ensime/ensime-server/issues/1616\n<END>", "<BEGIN>\n## `handle_typecheck_complete`", "Handles ``NewScalaNotesEvent```...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_position API. 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 set_position API. 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...
Set editor position from ENSIME declPos data.
"Set editor position from ENSIME declPos data."
150
false
ensime/ensime-vim
set_position
24,612
LDU_FT/dev-pipeline/dev-pipeline-core/tool_builder
LDU_FT
[ "<BEGIN>\n## `sanitize`", "Run all availalbe sanitizers across a configuration.", " Arguments:\n configuration - a full project configuration\n error_fn - A function to call if a sanitizer check fails. The function\n takes a single argument: a description of the problem; provide\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the tool_builder API. 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 tool_builder API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
This helper function initializes a tool with the given args.
"This helper function initializes a tool with the given args."
46
false
dev-pipeline/dev-pipeline-core
tool_builder
24,613
LDU_FT/brechtm/rinohtype/warn
LDU_FT
[ "<BEGIN>\n## `preprocess_tree`", "Transform internal refuri targets in reference nodes to refids and\n transform footnote rubrics so that they do not end up in the output\n<END>", "<BEGIN>\n## `_size_columns`", "Calculate the table's column sizes constrained by:", " - requested (absolute, rela...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the warn API. 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 warn API. 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...
Present the warning `message` to the user, adding information on the location of the related element in the input file.
"Present the warning `message` to the user, adding information on the\n location of the related element in the input file."
310
false
brechtm/rinohtype
warn
24,614
LDU_FT/inasafe/inasafe/selected_subcategory
LDU_FT
[ "<BEGIN>\n## `dict`", "dictionary representation of the metadata.", " :return: dictionary representation of the metadata\n :rtype: dict\n<END>", "<BEGIN>\n## `xml`", "xml representation of the metadata.", " :return: xml representation of the metadata\n :rtype: ElementTree.Eleme...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the selected_subcategory 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 selected_subcategory API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Obtain the subcategory selected by user. :returns: Metadata of the selected subcategory. :rtype: dict, None
"Obtain the subcategory selected by user.\n\n :returns: Metadata of the selected subcategory.\n :rtype: dict, None"
4,163
true
inasafe/inasafe
selected_subcategory
24,615
LDU_FT/liamw9534/bt-manager/_notify_media_transport_available
LDU_FT
[ "<BEGIN>\n## `translate_to_dbus_type`", "Helper function to map values from their native Python types\n to Dbus types.", " :param type typeof: Target for type conversion e.g., 'dbus.Dictionary'\n :param value: Value to assign using type 'typeof'\n :return: 'value' converted to type 'typeof'\n :rt...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _notify_media_transport_available API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _notify_media_transport_available API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its ...
Called by the endpoint when a new media transport is available
"Called by the endpoint when a new media transport is\n available"
66
false
liamw9534/bt-manager
_notify_media_transport_available
24,616
LDU_FT/Unidata/MetPy/preprocess_xarray
LDU_FT
[ "<BEGIN>\n## `warn_deprecated`", "Display deprecation warning in a standard way.", " Parameters\n ----------\n since : str\n The release at which this API became deprecated.", " message : str, optional\n Override the default deprecation message. The format\n specifier `%(name...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the preprocess_xarray API. 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 preprocess_xarray API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Decorate a function to convert all DataArray arguments to pint.Quantities. This uses the metpy xarray accessors to do the actual conversion.
"Decorate a function to convert all DataArray arguments to pint.Quantities.\n\n This uses the metpy xarray accessors to do the actual conversion."
1,193
true
Unidata/MetPy
preprocess_xarray
24,617
LDU_FT/RedFantom/ttkwidgets/set_time
LDU_FT
[ "<BEGIN>\n## `_grid_widgets`", "Puts the two whole widgets in the correct position depending on compound.\n<END>", "<BEGIN>\n## `_on_click`", "Function bound to event of selection in the Combobox, calls callback if callable", " :param event: Tkinter event\n<END>", "<BEGIN>\n## `left_press`", "Cal...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_time API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_time API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
Set the time marker to a specific time :param time: Time to set for the time marker on the TimeLine :type time: float
"Set the time marker to a specific time\n\n :param time: Time to set for the time marker on the TimeLine\n :type time: float"
429
false
RedFantom/ttkwidgets
set_time
24,618
LDU_FT/KelSolaar/Oncilla/import_sanitizer
LDU_FT
[ "<BEGIN>\n## `reStructuredText_to_html`", "Outputs a reStructuredText file to html.", " :param input: Input reStructuredText file to convert.\n :type input: unicode\n :param output: Output html file.\n :type output: unicode\n :param css_file: Css file.\n :type css_file: unicode\n :return: D...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the import_sanitizer API. 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 import_sanitizer API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Imports the sanitizer python module. :param sanitizer: Sanitizer python module file. :type sanitizer: unicode :return: Module. :rtype: object
"Imports the sanitizer python module.\n\n :param sanitizer: Sanitizer python module file.\n :type sanitizer: unicode\n :return: Module.\n :rtype: object"
33
false
KelSolaar/Oncilla
import_sanitizer
24,619
LDU_FT/mardix/pylot/bg_process
LDU_FT
[ "<BEGIN>\n## `read_pkginfo`", "Help us read the pkginfo without accessing __init__\n<END>", "<BEGIN>\n## `with_user_roles`", "with_user_roles(roles)", " It allows to check if a user has access to a view by adding the decorator\n with_user_roles([])", " Requires flask-login", " In your model,...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the bg_process API. 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 bg_process API. 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...
A multiprocess decorator :param func: :return:
"A multiprocess decorator\n :param func:\n :return:"
66
false
mardix/pylot
bg_process
24,620
LDU_FT/fastavro/fastavro/validate_record
LDU_FT
[ "<BEGIN>\n## `_read_decimal`", "based on https://github.com/apache/avro/pull/82/\n<END>", "<BEGIN>\n## `read_long`", "int and long values are written using variable-length, zig-zag\n coding.\n<END>", "<BEGIN>\n## `read_bytes`", "Bytes are encoded as a long followed by that many bytes of data.\n<END>", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the validate_record API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the validate_record API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
Check that the data is a Mapping type with all schema defined fields validated as True. Parameters ---------- datum: Any Data being validated schema: dict Schema parent_ns: str parent namespace raise_errors: bool If true, raises ValidationError on invalid dat...
"Check that the data is a Mapping type with all schema defined fields\n validated as True.\n\n Parameters\n ----------\n datum: Any\n Data being validated\n schema: dict\n Schema\n parent_ns: str\n parent namespace\n raise_errors: bool\n If true, raises ValidationError o...
136
false
fastavro/fastavro
validate_record
24,621
LDU_FT/aio-libs/aioodbc/getTypeInfo
LDU_FT
[ "<BEGIN>\n## `close`", "Close the cursor now (rather than whenever __del__ is called).", " The cursor will be unusable from this point forward; an Error\n (or subclass) exception will be raised if any operation is attempted\n with the cursor.\n<END>", "<BEGIN>\n## `execute`", "Executes ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the getTypeInfo API. 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 getTypeInfo API. 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...
Executes SQLGetTypeInfo a creates a result set with information about the specified data type or all data types supported by the ODBC driver if not specified.
"Executes SQLGetTypeInfo a creates a result set with information\n about the specified data type or all data types supported by the\n ODBC driver if not specified."
56
false
aio-libs/aioodbc
getTypeInfo
24,622
LDU_FT/martijnvermaat/monoseq/_pprint_fasta
LDU_FT
[ "<BEGIN>\n## `_fasta_iter`", "Given an open FASTA file, yield tuples of (`header`, `sequence`).\n<END>", "<BEGIN>\n## `_bed_iter`", "Given an open BED file, yield tuples of (`chrom`, `chrom_iter`) where\n `chrom_iter` yields tuples of (`start`, `stop`).\n<END>", "<BEGIN>\n## `_pprint_fasta`", "Pretty-p...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _pprint_fasta API. 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 _pprint_fasta API. 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...
Pretty-print each record in the FASTA file.
"Pretty-print each record in the FASTA file."
27
false
martijnvermaat/monoseq
_pprint_fasta
24,623
LDU_FT/foutaise/texttable/set_cols_dtype
LDU_FT
[ "<BEGIN>\n## `obj2unicode`", "Return a unicode representation of a python object\n<END>", "<BEGIN>\n## `len`", "Redefining len here so it will be able to work with non-ASCII characters\n<END>", "<BEGIN>\n## `set_chars`", "Set the characters used to draw lines between rows and columns", " - the ar...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_cols_dtype API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_cols_dtype API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
Set the desired columns datatype for the cols. - the elements of the array should be either a callable or any of "a", "t", "f", "e" or "i": * "a": automatic (try to use the most appropriate datatype) * "t": treat as text * "f": treat as float in decimal format ...
"Set the desired columns datatype for the cols.\n\n - the elements of the array should be either a callable or any of\n \"a\", \"t\", \"f\", \"e\" or \"i\":\n\n * \"a\": automatic (try to use the most appropriate datatype)\n * \"t\": treat as text\n * \"f\": treat as flo...
65
false
foutaise/texttable
set_cols_dtype
24,624
LDU_FT/moble/quaternion/slerp
LDU_FT
[ "<BEGIN>\n## `slerp`", "Spherical linear interpolation of rotors", " This function uses a simpler interface than the more fundamental\n `slerp_evaluate` and `slerp_vectorized` functions. The latter\n are fast, being implemented at the C level, but take input `tau`\n instead of time. This function ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the slerp API. 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 slerp API. 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...
Spherical linear interpolation of rotors This function uses a simpler interface than the more fundamental `slerp_evaluate` and `slerp_vectorized` functions. The latter are fast, being implemented at the C level, but take input `tau` instead of time. This function adjusts the time accordingly. Pa...
"Spherical linear interpolation of rotors\n\n This function uses a simpler interface than the more fundamental\n `slerp_evaluate` and `slerp_vectorized` functions. The latter\n are fast, being implemented at the C level, but take input `tau`\n instead of time. This function adjusts the time accordingly.\n...
113
false
moble/quaternion
slerp
24,625
LDU_FT/NLeSC/noodles/schedule_branches
LDU_FT
[ "<BEGIN>\n## `coroutine`", "A sink should be send `None` first, so that the coroutine arrives\n at the `yield` position. This wrapper takes care that this is done\n automatically when the coroutine is started.\n<END>", "<BEGIN>\n## `maybe`", "Calls `f` in a try/except block, returning a `Fail` object if...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the schedule_branches API. 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 schedule_branches API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Helper function to choose which workflow to execute based on the boolean `b`. :param b: promised boolean value :param quoted_true: quoted workflow to eval if the boolean is true. :param quoted_true: quoted workflow to eval if the boolean is false.
"Helper function to choose which workflow to execute\n based on the boolean `b`.\n\n :param b:\n promised boolean value\n\n :param quoted_true:\n quoted workflow to eval if the boolean is true.\n :param quoted_true:\n quoted workflow to eval if the boolean is false."
293
false
NLeSC/noodles
schedule_branches
24,626
LDU_FT/JoelBender/bacpypes/_attr_to_property
LDU_FT
[ "<BEGIN>\n## `decode_packet`", "decode the data, return some kind of PDU.\n<END>", "<BEGIN>\n## `decode_file`", "Given the name of a pcap file, open it, decode the contents and yield each packet.\n<END>", "<BEGIN>\n## `stop`", "Call to stop running, may be called with a signum and frame\n parameter if ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _attr_to_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. The...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _attr_to_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. The...
Common routine to translate a python attribute name to a property name and return the appropriate property.
"Common routine to translate a python attribute name to a property name and\n return the appropriate property."
376
false
JoelBender/bacpypes
_attr_to_property
24,627
LDU_FT/Chilipp/docrep/delete_params_s
LDU_FT
[ "<BEGIN>\n## `safe_modulo`", "Safe version of the modulo operation (%) of strings", " Parameters\n ----------\n s: str\n string to apply the modulo operation with\n meta: dict or tuple\n meta informations to insert (usually via ``s % meta``)\n checked: {'KEY', 'VALUE'}, optional\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the delete_params_s API. 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 delete_params_s API. 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...
Delete the given parameters from a string Same as :meth:`delete_params` but does not use the :attr:`params` dictionary Parameters ---------- s: str The string of the parameters section params: list of str The names of the parameters to delete ...
"Delete the given parameters from a string\n\n Same as :meth:`delete_params` but does not use the :attr:`params`\n dictionary\n\n Parameters\n ----------\n s: str\n The string of the parameters section\n params: list of str\n The names of the parameters to...
136
false
Chilipp/docrep
delete_params_s
24,628
LDU_FT/gapato/livestreamer-curses/show_help
LDU_FT
[ "<BEGIN>\n## `get_finished`", "Clean up terminated processes and returns the list of their ids\n<END>", "<BEGIN>\n## `getheightwidth`", "getwidth() -> (int, int)", " Return the height and width of the console in characters\n https://groups.google.com/forum/#!msg/comp.lang.python/CpUszNNXUQM/QA...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the show_help API. 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 show_help API. 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...
Redraw Help screen and wait for any input to leave
"Redraw Help screen and wait for any input to leave"
15
false
gapato/livestreamer-curses
show_help
24,629
LDU_FT/openstack/hacking/hacking_python3x_except_compatible
LDU_FT
[ "<BEGIN>\n## `hacking_todo_format`", "Check for 'TODO()'.", " OpenStack HACKING guide recommendation for TODO:\n Include your name with TODOs as in \"# TODO(termie)\"", " Okay: # TODO(sdague)\n H101: # TODO fail\n H101: # TODO\n H101: # TODO (jogo) fail\n Okay: TODO = 5\n<END>", "<BEGIN...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the hacking_python3x_except_compatible API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the hacking_python3x_except_compatible API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its...
r"""Check for except statements to be Python 3.x compatible As of Python 3.x, the construct 'except x,y:' has been removed. Use 'except x as y:' instead. Okay: try:\n pass\nexcept Exception:\n pass Okay: try:\n pass\nexcept (Exception, AttributeError):\n pass H231: try:\n pass\nexc...
"r\"\"\"Check for except statements to be Python 3.x compatible\n\n As of Python 3.x, the construct 'except x,y:' has been removed.\n Use 'except x as y:' instead.\n\n\n Okay: try:\\n pass\\nexcept Exception:\\n pass\n Okay: try:\\n pass\\nexcept (Exception, AttributeError):\\n pass\n H231: t...
114
false
openstack/hacking
hacking_python3x_except_compatible
24,630
LDU_FT/matthiask/django-cte-forest/move
LDU_FT
[ "<BEGIN>\n## `_ensure_parameters`", "Attempts to load and verify the CTE node parameters. Will use\n default values for all missing parameters, and raise an exception if\n a parameter's value cannot be verified. This method will only\n perform these actions once, and set the :attr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the move API. 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 move API. 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...
Moves the given :class:`CTENode` `node` and places it as a child node of the `destination` :class:`CTENode` (or makes it a root node if `destination` is ``None``). Optionally, `position` can be a callable which is invoked prior to placement of the `node` with the `node` ...
"Moves the given :class:`CTENode` `node` and places it as a child\n node of the `destination` :class:`CTENode` (or makes it a root node\n if `destination` is ``None``).\n\n Optionally, `position` can be a callable which is invoked prior to\n placement of the `node` with the `...
153
false
matthiask/django-cte-forest
move
24,631
LDU_FT/JustinLovinger/optimal/next_population
LDU_FT
[ "<BEGIN>\n## `_initial_population_gsa`", "Create a random initial population of floating point values.", " Args:\n population_size: an integer representing the number of solutions in the population.\n problem_size: the number of values in each solution.\n lower_bounds: a list, each value...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the next_population API. 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 next_population API. 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...
Make a new population after each optimization iteration. Args: population: The population current population of solutions. fitnesses: The fitness associated with each solution in the population Returns: list; a list of solutions.
"Make a new population after each optimization iteration.\n\n Args:\n population: The population current population of solutions.\n fitnesses: The fitness associated with each solution in the population\n Returns:\n list; a list of solutions."
152
false
JustinLovinger/optimal
next_population
24,632
LDU_FT/eyurtsev/FlowCytometryTools/dropna
LDU_FT
[ "<BEGIN>\n## `get_tag_value`", "Extracts the value of a tag from a string.", " Parameters\n -----------------", " pre : str\n regular expression to match before the the tag value", " post : str | list | tuple\n regular expression to match after the the tag value", " if lis...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the dropna API. 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 dropna API. 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 ...
Remove rows and cols that have no assigned measurements. Return new instance.
"Remove rows and cols that have no assigned measurements.\n Return new instance."
330
false
eyurtsev/FlowCytometryTools
dropna
24,633
LDU_FT/jmcgeheeiv/pyfakefs/rmdir
LDU_FT
[ "<BEGIN>\n## `_classify_directory_contents`", "Classify contents of a directory as files/directories.", " Args:\n filesystem: The fake filesystem used for implementation\n root: (str) Directory to examine.", " Returns:\n (tuple) A tuple consisting of three values: the directory exam...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the rmdir API. 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 rmdir API. 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...
Remove a leaf Fake directory. Args: target_directory: (str) Name of directory to remove. dir_fd: If not `None`, the file descriptor of a directory, with `target_directory` being relative to this directory. New in Python 3.3. Raises: O...
"Remove a leaf Fake directory.\n\n Args:\n target_directory: (str) Name of directory to remove.\n dir_fd: If not `None`, the file descriptor of a directory,\n with `target_directory` being relative to this directory.\n New in Python 3.3.\n\n Raises:\n ...
534
false
jmcgeheeiv/pyfakefs
rmdir
24,634
LDU_FT/pydata/pandas-gbq/exists
LDU_FT
[ "<BEGIN>\n## `get_service_account_credentials`", "DEPRECATED: Load service account credentials from key data or key path.\n<END>", "<BEGIN>\n## `encode_chunk`", "Return a file-like object of CSV-encoded rows.", " Args:\n dataframe (pandas.DataFrame): A chunk of a dataframe to encode\n<END>", "<BEG...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the exists API. 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 exists API. 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 ...
Check if a dataset exists in Google BigQuery Parameters ---------- dataset_id : str Name of dataset to be verified Returns ------- boolean true if dataset exists, otherwise false
"Check if a dataset exists in Google BigQuery\n\n Parameters\n ----------\n dataset_id : str\n Name of dataset to be verified\n\n Returns\n -------\n boolean\n true if dataset exists, otherwise false"
94
false
pydata/pandas-gbq
exists
24,635
LDU_FT/pri22296/beautifultable/get_string
LDU_FT
[ "<BEGIN>\n## `wrap`", "Returns a partition of the string based on `width`\n<END>", "<BEGIN>\n## `max_table_width`", "get/set the maximum width of the table.", " The width of the table is guaranteed to not exceed this value. If it\n is not possible to print a given table with the width provided...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_string API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_string API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
Get the table as a String. Parameters ---------- recalculate_width : bool, optional If width for each column should be recalculated(default True). Note that width is always calculated if it wasn't set explicitly when this method is called for the first time ,...
"Get the table as a String.\n\n Parameters\n ----------\n recalculate_width : bool, optional\n If width for each column should be recalculated(default True).\n Note that width is always calculated if it wasn't set\n explicitly when this method is called for the firs...
96
false
pri22296/beautifultable
get_string
24,636
LDU_FT/sepandhaghighi/pycm/normalized_table_calc
LDU_FT
[ "<BEGIN>\n## `print_report`", "Print Compare report.", " :return: None\n<END>", "<BEGIN>\n## `save_report`", "Save Compare report in .comp (flat file format).", " :param name: filename\n :type name : str\n :param address: flag for address return\n :type address : bool\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the normalized_table_calc 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 normalized_table_calc API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Return normalized confusion matrix. :param classes: classes list :type classes:list :param table: table :type table:dict :return: normalized table as dict
"Return normalized confusion matrix.\n\n :param classes: classes list\n :type classes:list\n :param table: table\n :type table:dict\n :return: normalized table as dict"
259
false
sepandhaghighi/pycm
normalized_table_calc
24,637
LDU_FT/Duke-GCB/DukeDSClient/run
LDU_FT
[ "<BEGIN>\n## `_create_parser`", "Create a parser hooking up the command methods below to be run when chosen.\n :return: CommandParser parser with commands attached.\n<END>", "<BEGIN>\n## `_check_pypi_version`", "When the version is out of date or we have trouble retrieving it print a error to stderr an...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the run API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the run API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
Attach a remote file to activity with was generated by relationship. :param data_service: DataServiceApi: service used to attach relationship :param file_details: dict: response from DukeDS POST to /files/ containing current_version id
"Attach a remote file to activity with was generated by relationship.\n :param data_service: DataServiceApi: service used to attach relationship\n :param file_details: dict: response from DukeDS POST to /files/ containing current_version id"
440
false
Duke-GCB/DukeDSClient
run
24,638
LDU_FT/PyconUK/ConferenceScheduler/schedule_to_array
LDU_FT
[ "<BEGIN>\n## `hill_climber`", "Implement a basic hill climbing algorithm.", " Has two stopping conditions:", " 1. Maximum number of iterations;\n 2. A known lower bound, a none is passed then this is not used.", " If acceptance_criteria (a callable) is not None then this is used to obtain\n a...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the schedule_to_array API. 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 schedule_to_array API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Convert a schedule from schedule to array form Parameters ---------- schedule : list or tuple of instances of :py:class:`resources.ScheduledItem` events : list or tuple of :py:class:`resources.Event` instances slots : list or tuple of :py:class:`resources.Slot` instances ...
"Convert a schedule from schedule to array form\n\n Parameters\n ----------\n schedule : list or tuple\n of instances of :py:class:`resources.ScheduledItem`\n events : list or tuple\n of :py:class:`resources.Event` instances\n slots : list or tuple\n of :py:class:`resources.Slot` ins...
127
false
PyconUK/ConferenceScheduler
schedule_to_array
24,639
LDU_FT/adafruit/Adafruit_Blinka/deinit
LDU_FT
[ "<BEGIN>\n## `scan`", "Try to read a byte from each address, if you get an OSError it means the device isnt there\n<END>", "<BEGIN>\n## `final`", "In case the program is cancelled or quit, we need to clean up the PulseIn\n helper process and also the message queue, this is called at exit to do so\n<END>", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the deinit API. 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 deinit API. 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 ...
Deinitialises the PulseIn and releases any hardware and software resources for reuse.
"Deinitialises the PulseIn and releases any hardware and software\n resources for reuse."
14
false
adafruit/Adafruit_Blinka
deinit
24,640
LDU_FT/Crypto-toolbox/bitex/_handle_candles
LDU_FT
[ "<BEGIN>\n## `_restart_thread`", "Restarts subscription threads if their connection drops.\n :return:\n<END>", "<BEGIN>\n## `_subscription_thread`", "Thread Method, running the connection for each endpoint.\n :param endpoint:\n :return:\n<END>", "<BEGIN>\n## `start`", "Starts threads....
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _handle_candles API. 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 _handle_candles API. 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...
Stores OHLC data received via wss in self.candles[chan_id] :param ts: timestamp, declares when data was received by the client :param chan_id: int, channel id :param data: list of data received via wss :return:
"Stores OHLC data received via wss in self.candles[chan_id]\n :param ts: timestamp, declares when data was received by the client\n :param chan_id: int, channel id\n :param data: list of data received via wss\n :return:"
79
false
Crypto-toolbox/bitex
_handle_candles
24,641
LDU_FT/d0ugal/python-rfxcom/parse
LDU_FT
[ "<BEGIN>\n## `parse`", "Parse a 9 bytes packet in the Temperature format and return a\n dictionary containing the data extracted. An example of a return value\n would be:", " .. code-block:: python", " {\n 'id': \"0x2EB2\",\n 'packet_length': 8,\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse API. 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 parse API. 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...
Parse a 17 bytes packet in the Wind format and return a dictionary containing the data extracted. An example of a return value would be: .. code-block:: python { 'id': "0x2EB2", 'packet_length': 16, 'packet_type': 86, ...
"Parse a 17 bytes packet in the Wind format and return a\n dictionary containing the data extracted. An example of a return value\n would be:\n\n .. code-block:: python\n\n {\n 'id': \"0x2EB2\",\n 'packet_length': 16,\n 'packet_type': 86,\n ...
74
false
d0ugal/python-rfxcom
parse
24,642
LDU_FT/TUNE-Archive/freight_forwarder/parse_stream
LDU_FT
[ "<BEGIN>\n## `commercial_invoice`", ":param action:\n :param data_center:\n :param environment:\n :param transport_service:\n :param tagging_scheme:\n :return:\n<END>", "<BEGIN>\n## `deploy_containers`", "Deploy containers to specific container ship.\n 'restart_policy...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_stream API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_stream API. 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...
take stream from docker-py lib and display it to the user. this also builds a stream list and returns it.
"take stream from docker-py lib and display it to the user.\n\n this also builds a stream list and returns it."
132
false
TUNE-Archive/freight_forwarder
parse_stream
24,643
LDU_FT/theno/fabsetup/load_repo_addons
LDU_FT
[ "<BEGIN>\n## `create_readme_with_long_description`", "Try to convert content of README.md into rst format using pypandoc,\n write it into README and return it.", " If pypandoc cannot be imported write content of README.md unchanged into\n README and return it.\n<END>", "<BEGIN>\n## `openssl`", "Ins...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load_repo_addons API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load_repo_addons API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Load all fabsetup addons which are stored under ~/.fabsetup-addon-repos as git repositories. Args: _globals(dict): the globals() namespace of the fabric script. Return: None
"Load all fabsetup addons which are stored under ~/.fabsetup-addon-repos\n as git repositories.\n\n Args:\n _globals(dict): the globals() namespace of the fabric script.\n\n Return: None"
226
false
theno/fabsetup
load_repo_addons
24,644
LDU_FT/samghelms/mathviz/_define
LDU_FT
[ "<BEGIN>\n## `get_next_token`", "\"eats\" up the string until it hits an ending character to get valid leaf expressions.\n For example, given \\\\Phi_{z}(L) = \\\\sum_{i=1}^{N} \\\\frac{1}{C_{i} \\\\times V_{\\\\rm max, i}},\n this function would pull out \\\\Phi, stopping at _\n @ string: str\n retur...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _define API. 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 _define API. 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...
(Unstable) Shortcut for plugins to define own config parameters.
"(Unstable) Shortcut for plugins to define own config parameters."
116
false
samghelms/mathviz
_define
24,645
LDU_FT/rochacbruno/dynaconf/load
LDU_FT
[ "<BEGIN>\n## `init_app`", "kwargs holds initial dynaconf configuration\n<END>", "<BEGIN>\n## `get`", "Gets config from dynaconf variables\n if variables does not exists in dynaconf try getting from\n `app.config` to support runtime settings.\n<END>", "<BEGIN>\n## `object_merge`", "Recursivel...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
Reads and loads in to `self.obj` a single key or all keys from source :param filename: Optional filename to load :param key: if provided load a single key :param silent: if load erros should be silenced
"Reads and loads in to `self.obj` a single key or all keys from source\n\n :param filename: Optional filename to load\n :param key: if provided load a single key\n :param silent: if load erros should be silenced"
172
false
rochacbruno/dynaconf
load
24,646
LDU_FT/SmileyChris/easy-thumbnails/get_modified_time
LDU_FT
[ "<BEGIN>\n## `default`", "Easy-thumbnails' default name processor.", " For example: ``source.jpg.100x100_q80_crop_upscale.jpg``\n<END>", "<BEGIN>\n## `alias`", "Generate filename based on thumbnail alias name (option ``THUMBNAIL_ALIASES``).", " For example: ``source.jpg.medium_large.jpg``\n<END>", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_modified_time API. 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_modified_time API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Get modified time from storage, ensuring the result is a timezone-aware datetime.
"Get modified time from storage, ensuring the result is a timezone-aware\n datetime."
218
false
SmileyChris/easy-thumbnails
get_modified_time
24,647
LDU_FT/crate/crash/create_layout
LDU_FT
[ "<BEGIN>\n## `_padleft`", "Flush right.", " >>> _padleft(6, '\\u044f\\u0439\\u0446\\u0430') == ' \\u044f\\u0439\\u0446\\u0430'\n True\n<END>", "<BEGIN>\n## `_visible_width`", "Visible width of a printed string. ANSI color codes are removed.", " >>> _visible_width('\\x1b[31mhello\\x1b[0m'), _visi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_layout API. 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 create_layout API. 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...
Creates a custom `Layout` for the Crash input REPL This layout includes: * a bottom left-aligned session toolbar container * a bottom right-aligned side-bar container +-------------------------------------------+ | cr> select 1; | | ...
"Creates a custom `Layout` for the Crash input REPL\n\n This layout includes:\n * a bottom left-aligned session toolbar container\n * a bottom right-aligned side-bar container\n\n +-------------------------------------------+\n | cr> select 1; |\n | ...
90
false
crate/crash
create_layout
24,648
LDU_FT/jaraco/irc/on_ctcp
LDU_FT
[ "<BEGIN>\n## `handle_nick`", "Handle the initial setting of the user's nickname and nick changes.\n<END>", "<BEGIN>\n## `handle_user`", "Handle the USER command which identifies the user to the server.\n<END>", "<BEGIN>\n## `handle_join`", "Handle the JOINing of a user to a channel. Valid channel names st...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the on_ctcp API. 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 on_ctcp API. 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...
Default handler for ctcp events. Replies to VERSION and PING requests and relays DCC requests to the on_dccchat method.
"Default handler for ctcp events.\n\n Replies to VERSION and PING requests and relays DCC requests\n to the on_dccchat method."
193
false
jaraco/irc
on_ctcp
24,649
LDU_FT/FSX/misaka/html
LDU_FT
[ "<BEGIN>\n## `escape_html`", "Binding for Hoedown's HTML escaping function.", " The implementation is inspired by the OWASP XSS Prevention recommendations:", " .. code-block:: none", " & --> &amp;\n < --> &lt;\n > --> &gt;\n \" --> &quot;\n ' --> &#x27;\n / --...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the html API. 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 html API. 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...
Convert markdown text to HTML. ``extensions`` can be a list or tuple of extensions (e.g. ``('fenced-code', 'footnotes', 'strikethrough')``) or an integer (e.g. ``EXT_FENCED_CODE | EXT_FOOTNOTES | EXT_STRIKETHROUGH``). ``render_flags`` can be a list or tuple of flags (e.g. ``('skip-html', 'hard-wra...
"Convert markdown text to HTML.\n\n ``extensions`` can be a list or tuple of extensions (e.g.\n ``('fenced-code', 'footnotes', 'strikethrough')``) or an integer\n (e.g. ``EXT_FENCED_CODE | EXT_FOOTNOTES | EXT_STRIKETHROUGH``).\n\n ``render_flags`` can be a list or tuple of flags (e.g.\n ``('skip-html', '...
30
false
FSX/misaka
html
24,650
LDU_FT/alpacahq/pylivetrader/get_all_orders
LDU_FT
[ "<BEGIN>\n## `_deprecated_getitem_method`", "Create a deprecated ``__getitem__`` method that tells users to use\n getattr instead.", " Parameters\n ----------\n name : str\n The name of the object in the warning message.\n attrs : iterable[str]\n The set of allowed attributes.", "...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_all_orders API. 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_all_orders API. 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...
If asset is unspecified or None, returns a dictionary keyed by asset ID. The dictionary contains a list of orders for each ID, oldest first. If an asset is specified, returns a list of open orders for that asset, oldest first. Orders submitted after before will not be returned. If provid...
"If asset is unspecified or None, returns a dictionary keyed by\n asset ID. The dictionary contains a list of orders for each ID,\n oldest first. If an asset is specified, returns a list of open\n orders for that asset, oldest first. Orders submitted after\n before will not be returned. If p...
81
false
alpacahq/pylivetrader
get_all_orders
24,651
LDU_FT/rcarmo/pngcanvas/line
LDU_FT
[ "<BEGIN>\n## `blend`", "Alpha blends two colors, using the alpha given by c2\n<END>", "<BEGIN>\n## `rgb2rgba`", "Take a row of RGB bytes, and convert to a row of RGBA bytes.\n<END>", "<BEGIN>\n## `read`", "Read `num_bytes` from the compressed data chunks.", " Data is returned as `bytes` of length...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the 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 extracted do...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the 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 extracted do...
Draw a line using Xiaolin Wu's antialiasing technique
"Draw a line using Xiaolin Wu's antialiasing technique"
15
false
rcarmo/pngcanvas
line
24,652
LDU_FT/ojarva/python-ledcontroller/execute
LDU_FT
[ "<BEGIN>\n## `execute`", "Execute a single command, and sets sleep times properly.", " - controller_id = index of controller, zero-based\n - command is normal LedController command as a string\n - *args and **kwargs are passed to command", " For example, .execute(0, \"on\", 1) send...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the execute API. 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 execute API. 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 single command, and sets sleep times properly. - controller_id = index of controller, zero-based - command is normal LedController command as a string - *args and **kwargs are passed to command For example, .execute(0, "on", 1) sends "on" command to group 1 on controller 0 (f...
"Execute a single command, and sets sleep times properly.\n\n - controller_id = index of controller, zero-based\n - command is normal LedController command as a string\n - *args and **kwargs are passed to command\n\n For example, .execute(0, \"on\", 1) sends \"on\" command to group 1 on cont...
49
false
ojarva/python-ledcontroller
execute
24,653
LDU_FT/wikimedia/ores/_process_score
LDU_FT
[ "<BEGIN>\n## `redis_from_url`", "Converts a redis URL used by celery into a `redis.Redis` object.\n<END>", "<BEGIN>\n## `process_model_scores`", "Generates a score map for a set of models based on a `root_cache`.\n This method performs no substantial IO, but may incur substantial CPU\n usage.", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _process_score API. 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 _process_score API. 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...
Generates a score for a given model using the `dependency_cache`.
"Generates a score for a given model using the `dependency_cache`."
52
false
wikimedia/ores
_process_score
24,654
LDU_FT/Pylons/plaster_pastedeploy/get_wsgi_app
LDU_FT
[ "<BEGIN>\n## `get_settings`", "Gets a named section from the configuration source.", " :param section: a :class:`str` representing the section you want to\n retrieve from the configuration source. If ``None`` this will\n fallback to the :attr:`plaster.PlasterURL.fragment`.\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_wsgi_app API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_wsgi_app API. 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...
Reads the configuration source and finds and loads a WSGI application defined by the entry with name ``name`` per the PasteDeploy configuration format and loading mechanism. :param name: The named WSGI app to find, load and return. Defaults to ``None`` which becomes ``main`` inside ...
"Reads the configuration source and finds and loads a WSGI\n application defined by the entry with name ``name`` per the\n PasteDeploy configuration format and loading mechanism.\n\n :param name: The named WSGI app to find, load and return. Defaults to\n ``None`` which becomes ``main`` i...
24
false
Pylons/plaster_pastedeploy
get_wsgi_app
24,655
LDU_FT/diffeo/rejester/do_work_units
LDU_FT
[ "<BEGIN>\n## `dump_queue`", "Debug-log some of the queues.", " ``names`` may include any of \"worker\", \"available\", \"priorities\",\n \"expiration\", \"workers\", or \"reservations_ITEM\" filling in some\n specific item.\n<END>", "<BEGIN>\n## `worker_id`", "A unique identifier for th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the do_work_units API. 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 do_work_units API. 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...
list work units that have not yet completed
"list work units that have not yet completed"
391
false
diffeo/rejester
do_work_units
24,656
LDU_FT/ryanmcgrath/twython/filter
LDU_FT
[ "<BEGIN>\n## `update_status_with_media`", "Updates the authenticating user's current status and attaches media\n for upload. In other words, it creates a Tweet with a picture attached.", " Docs:\n https://developer.twitter.com/en/docs/tweets/post-and-engage/api-reference/post-statuses-updat...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the filter API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the filter API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Stream statuses/filter :param \*\*params: Parameters to send with your stream request Accepted params found at: https://developer.twitter.com/en/docs/tweets/filter-realtime/api-reference/post-statuses-filter
"Stream statuses/filter\n\n :param \\*\\*params: Parameters to send with your stream request\n\n Accepted params found at:\n https://developer.twitter.com/en/docs/tweets/filter-realtime/api-reference/post-statuses-filter"
80
false
ryanmcgrath/twython
filter
24,657
LDU_FT/ergoithz/browsepy/clean_restricted_chars
LDU_FT
[ "<BEGIN>\n## `defaultsnamedtuple`", "Generate namedtuple with default values.", " :param name: name\n :param fields: iterable with field names\n :param defaults: iterable or mapping with field defaults\n :returns: defaultdict with given fields and given defaults\n :rtype: collections.defaultdict\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the clean_restricted_chars API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the clean_restricted_chars API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
Get path without restricted characters. :param path: path :return: path without restricted characters :rtype: str or unicode (depending on given path)
"Get path without restricted characters.\n\n :param path: path\n :return: path without restricted characters\n :rtype: str or unicode (depending on given path)"
207
false
ergoithz/browsepy
clean_restricted_chars
24,658
LDU_FT/mayfield/cellulario/coord_wrap
LDU_FT
[ "<BEGIN>\n## `make_gatherer`", "Produce a single source tier that gathers from a set of tiers when\n the key function returns a unique result for each tier.\n<END>", "<BEGIN>\n## `enqueue_task`", "Enqueue a task execution. It will run in the background as soon\n as the coordinator clears it to ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the coord_wrap API. 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 coord_wrap API. 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...
Wrap the coroutine with coordination throttles.
"Wrap the coroutine with coordination throttles."
30
false
mayfield/cellulario
coord_wrap
24,659
LDU_FT/abseil/abseil-py/_set_unknown_flag
LDU_FT
[ "<BEGIN>\n## `_register_bounds_validator_if_needed`", "Enforces lower and upper bounds for numeric flags.", " Args:\n parser: NumericParser (either FloatParser or IntegerParser), provides lower\n and upper bounds, and help text to display.\n name: str, name of the flag\n flag_values: FlagValues...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _set_unknown_flag API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _set_unknown_flag API. 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 value if setting flag |name| to |value| returned True. Args: name: str, name of the flag to set. value: Value to set. Returns: Flag value on successful call. Raises: UnrecognizedFlagError IllegalFlagValueError
"Returns value if setting flag |name| to |value| returned True.\n\n Args:\n name: str, name of the flag to set.\n value: Value to set.\n\n Returns:\n Flag value on successful call.\n\n Raises:\n UnrecognizedFlagError\n IllegalFlagValueError"
432
false
abseil/abseil-py
_set_unknown_flag
24,660
LDU_FT/msiedlarek/wiring/get
LDU_FT
[ "<BEGIN>\n## `get_implemented_interfaces`", "Returns a set of :term:`interfaces <interface>` declared as implemented by\n class `cls`.\n<END>", "<BEGIN>\n## `set_implemented_interfaces`", "Declares :term:`interfaces <interface>` as implemented by class `cls`.\n Those already declared are overriden.\n<EN...
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...
A more convenient version of :py:meth:`acquire()` for when you can provide positional arguments in a right order.
"A more convenient version of :py:meth:`acquire()` for when you can\n provide positional arguments in a right order."
69
false
msiedlarek/wiring
get
24,661
LDU_FT/brentp/cruzdb/david_go
LDU_FT
[ "<BEGIN>\n## `relate`", "Produce a relationship between this mapped table and another\n one. ", " This makes usage of SQLAlchemy's :func:`sqlalchemy.orm.relationship`\n construct.\n<END>", "<BEGIN>\n## `execute`", "Execute a SQL statement.", " The statement may be a string SQL ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the david_go API. 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 david_go API. 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...
open a web-browser to the DAVID online enrichment tool Parameters ---------- refseq_list : list list of refseq names to check for enrichment annot : list iterable of DAVID annotations to check for enrichment
"open a web-browser to the DAVID online enrichment tool\n\n Parameters\n ----------\n\n refseq_list : list\n list of refseq names to check for enrichment\n\n annot : list\n iterable of DAVID annotations to check for enrichment"
169
false
brentp/cruzdb
david_go
24,662
LDU_FT/maciejkula/glove-python/most_similar_paragraph
LDU_FT
[ "<BEGIN>\n## `read_analogy_file`", "Read the analogy task test set from a file.\n<END>", "<BEGIN>\n## `analogy_rank_score`", "Calculate the analogy rank score for the given set of analogies.", " A rank of zero denotes a perfect score; with random word vectors\n we would expect a rank of 0.5.", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the most_similar_paragraph API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the most_similar_paragraph API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
Return words most similar to a given paragraph (iterable of tokens).
"Return words most similar to a given paragraph (iterable of tokens)."
27
false
maciejkula/glove-python
most_similar_paragraph
24,663
LDU_FT/consbio/ncdjango/fn_ceil
LDU_FT
[ "<BEGIN>\n## `p_binary_operators`", "conditional : conditional AND condition\n | conditional OR condition\n condition : condition LTE expression\n | condition GTE expression\n | condition LT expression\n | condition GT expression...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the fn_ceil API. 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 fn_ceil API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
Return the ceiling of a number. :param value: The number. :return: The ceiling of the number.
"Return the ceiling of a number.\n\n :param value: The number.\n :return: The ceiling of the number."
146
false
consbio/ncdjango
fn_ceil
24,664
LDU_FT/remram44/rpaths/tempfile
LDU_FT
[ "<BEGIN>\n## `pattern2re`", "Makes a unicode regular expression from a pattern.", " Returns ``(start, full_re, int_re)`` where:", " * `start` is either empty or the subdirectory in which to start searching,\n * `full_re` is a regular expression object that matches the requested\n files, i.e. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the tempfile API. 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 tempfile API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
Returns a new temporary file. The return value is a pair (fd, path) where fd is the file descriptor returned by :func:`os.open`, and path is a :class:`~rpaths.Path` to it. :param suffix: If specified, the file name will end with that suffix, otherwise there will be no suffix. ...
"Returns a new temporary file.\n\n The return value is a pair (fd, path) where fd is the file descriptor\n returned by :func:`os.open`, and path is a :class:`~rpaths.Path` to it.\n\n :param suffix: If specified, the file name will end with that suffix,\n otherwise there will be no suffix...
95
false
remram44/rpaths
tempfile
24,665
LDU_FT/sashs/filebytes/_parseDataDirectoryImport
LDU_FT
[ "<BEGIN>\n## `isSupportedContent`", "Returns if the files are valid for this filetype\n<END>", "<BEGIN>\n## `__parseKeyValueStore`", "Returns a dictionary filled with the keys and values of the key value store\n<END>", "<BEGIN>\n## `to_raw_address`", "Converts the addr from a rva to a pointer to raw data ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _parseDataDirectoryImport 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 _parseDataDirectoryImport API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi...
Parses the ImportDataDirectory and returns a list of ImportDescriptorData
"Parses the ImportDataDirectory and returns a list of ImportDescriptorData"
28
false
sashs/filebytes
_parseDataDirectoryImport
24,666
LDU_FT/asweigart/pyautogui/get_position
LDU_FT
[ "<BEGIN>\n## `_specialKeyEvent`", "Helper method for special keys.", " Source: http://stackoverflow.com/questions/11045814/emulate-media-key-press-on-mac\n<END>", "<BEGIN>\n## `_keyDown`", "Performs a keyboard key press without the release. This will put that\n key in a held down state.", " NOTE:...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_position API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_position API. 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 tuple of 4 numbers: (x, y)s of top-left and bottom-right corners
"Returns tuple of 4 numbers: (x, y)s of top-left and bottom-right corners"
162
false
asweigart/pyautogui
get_position
24,667
LDU_FT/ASKIDA/Selenium2LibraryExtension/wait_until_page_does_not_contain_these_elements
LDU_FT
[ "<BEGIN>\n## `wait_until_element_has_focus`", "Waits until the element identified by `locator` has focus.\n\t\tYou might rather want to use `Element Focus Should Be Set`", "\t\t| *Argument* | *Description* | *Example* |\n\t\t| locator | Selenium 2 element locator | id=my_id |\n\t\t| timeout | maximum time to wa...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the wait_until_page_does_not_contain_these_elements API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the wait_until_page_does_not_contain_these_elements API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> ...
Waits until all of the specified elements are not found on the page. | *Argument* | *Description* | *Example* | | timeout | maximum time to wait, if set to ${None} it will use Selenium's default timeout | 5s | | *locators | Selenium 2 element locator(s) | id=MyId |
"Waits until all of the specified elements are not found on the page.\n\n\t\t| *Argument* | *Description* | *Example* |\n\t\t| timeout | maximum time to wait, if set to ${None} it will use Selenium's default timeout | 5s |\n\t\t| *locators | Selenium 2 element locator(s) | id=MyId |"
76
false
ASKIDA/Selenium2LibraryExtension
wait_until_page_does_not_contain_these_elements
24,668
LDU_FT/ckoepp/TwitterSearch/set_proxy
LDU_FT
[ "<BEGIN>\n## `set_source_filter`", "Only search for tweets entered via given source", " :param source: String. Name of the source to search for. An example \\\n would be ``source=twitterfeed`` for tweets submitted via TwitterFeed\n :raises: TwitterSearchException\n<END>", "<BEGIN>\n## `ad...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_proxy API. 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 set_proxy API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
Sets a HTTPS proxy to query the Twitter API :param proxy: A string of containing a HTTPS proxy \ e.g. ``set_proxy("my.proxy.com:8080")``. :raises: TwitterSearchException
"Sets a HTTPS proxy to query the Twitter API\n\n :param proxy: A string of containing a HTTPS proxy \\\n e.g. ``set_proxy(\"my.proxy.com:8080\")``.\n :raises: TwitterSearchException"
91
false
ckoepp/TwitterSearch
set_proxy
24,669
LDU_FT/sastrarobotics/pyHerkulex/get_position_i
LDU_FT
[ "<BEGIN>\n## `connect`", "Connect to the Herkulex bus", " Connect to serial port to which Herkulex Servos are attatched", " Args:\n portname (str): The serial port name\n baudrate (int): The serial port baudrate\n Raises:\n SerialException: Error occured while opening serial port...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_position_i API. 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_position_i API. 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 the I value of the current PID for position
"Get the I value of the current PID for position"
102
false
sastrarobotics/pyHerkulex
get_position_i
24,670
LDU_FT/jeffh/rpi_courses/crosslisting_feature
LDU_FT
[ "<BEGIN>\n## `safeInt`", "Throws an exception if the number starts with a 0 (may be significant).", " If the value cannot be converted to an int, it is returned as is.\n<END>", "<BEGIN>\n## `from_string`", "Creates a new CourseCatalog instance from an string containing xml.\n<END>", "<BEGIN>\n## `cross...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the crosslisting_feature 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 crosslisting_feature API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Parses all the crosslistings. These refer to the similar CRNs, such as a grad & undergrad level course.
"Parses all the crosslistings. These refer to the similar CRNs,\n such as a grad & undergrad level course."
59
false
jeffh/rpi_courses
crosslisting_feature
24,671
LDU_FT/frictionlessdata/tableschema-bigquery-py/buckets
LDU_FT
[ "<BEGIN>\n## `buckets`", "https://github.com/frictionlessdata/tableschema-bigquery-py#storage\n<END>", "<BEGIN>\n## `create`", "https://github.com/frictionlessdata/tableschema-bigquery-py#storage\n<END>", "<BEGIN>\n## `delete`", "https://github.com/frictionlessdata/tableschema-bigquery-py#storage\n<END>",...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the buckets API. 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 buckets API. 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...
https://github.com/frictionlessdata/tableschema-bigquery-py#storage
"https://github.com/frictionlessdata/tableschema-bigquery-py#storage"
12
false
frictionlessdata/tableschema-bigquery-py
buckets
24,672