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/cqlengine/cqlengine/get_column_def
LDU_FT
[ "<BEGIN>\n## `create_keyspace`", "creates a keyspace", " :param name: name of keyspace to create\n :param strategy_class: keyspace replication strategy class\n :param replication_factor: keyspace replication factor\n :param durable_writes: 1.2 only, write log is bypassed if set to False\n :param ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_column_def API. 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_column_def API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
Returns a column definition for CQL table definition
"Returns a column definition for CQL table definition"
65
false
cqlengine/cqlengine
get_column_def
29,373
LDU_FT/deginner/mq-client/on_connection_open
LDU_FT
[ "<BEGIN>\n## `_on_message`", "Invoked by pika when a message is delivered from RabbitMQ. The\n channel is passed for your convenience. The basic_deliver object that\n is passed in carries the exchange, routing key, delivery tag and\n a redelivered flag for the message. The properties passed in is an\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the on_connection_open 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 on_connection_open 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...
Called by pika once the connection to RabbitMQ has been established. It passes the handle to the connection object in case we need it, but in this case, we'll just mark it unused. :type unused_connection: pika.SelectConnection
"Called by pika once the connection to RabbitMQ has\n been established. It passes the handle to the connection object in\n case we need it, but in this case, we'll just mark it unused.\n\n :type unused_connection: pika.SelectConnection"
61
false
deginner/mq-client
on_connection_open
29,374
LDU_FT/INM-6/hybridLFPy/compound_powerspec
LDU_FT
[ "<BEGIN>\n## `plot_signal_sum`", "on axes plot the signal contributions", " args:\n ::\n ax : matplotlib.axes.AxesSubplot object\n z : np.ndarray\n T : list, [tstart, tstop], which timeinterval\n ylims : list, set range of yaxis to scale with other plots\n fancy : bool, ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the compound_powerspec 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 compound_powerspec 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...
Calculate the power spectrum of the compound/sum signal. data is first summed across units, then the power spectrum is calculated. If pointProcess=True, power spectra are normalized by the length T of the time series. Parameters ---------- data : numpy.ndarray, 1st axis unit, 2nd...
"Calculate the power spectrum of the compound/sum signal.\n data is first summed across units, then the power spectrum is calculated.\n\n If pointProcess=True, power spectra are normalized by the length T of\n the time series.\n\n \n Parameters\n ----------\n data : numpy.ndarray, \n 1st axi...
412
false
INM-6/hybridLFPy
compound_powerspec
29,375
LDU_FT/ulf1/oxyba/features_check_singular
LDU_FT
[ "<BEGIN>\n## `clean_german_number`", "Convert a string with a German number into a Decimal", " Parameters\n ----------\n x : str, list, tuple, numpy.ndarray, pandas.DataFrame\n A string with a number with German formatting,\n or an array of these strings, e.g. list, ndarray, df.", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the features_check_singular 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 features_check_singular API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion...
Checks if a set of features/variables X result in a ill-conditioned matrix dot(X.T,T) Parameters: ----------- X : ndarray An NxM array with N observations (rows) and M features/variables (columns). Note: Make sure that X variables are all normalized or or scaled, e.g. ...
"Checks if a set of features/variables X result in a\n ill-conditioned matrix dot(X.T,T)\n\n Parameters:\n -----------\n X : ndarray\n An NxM array with N observations (rows)\n and M features/variables (columns).\n\n Note: Make sure that X variables are all normalized or\n or sca...
218
false
ulf1/oxyba
features_check_singular
29,376
LDU_FT/RI-imaging/qpformat/get_time
LDU_FT
[ "<BEGIN>\n## `qpinfo`", "Print information of a quantitative phase imaging dataset\n<END>", "<BEGIN>\n## `_get_cropped_file_names`", "self.files with common path prefix/suffix removed\n<END>", "<BEGIN>\n## `_identifier_data`", "Return a unique identifier for the folder data\n<END>", "<BEGIN>\n## `_searc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_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 get_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...
Return time of data at index `idx` Returns nan if the time is not defined
"Return time of data at index `idx`\n\n Returns nan if the time is not defined"
93
false
RI-imaging/qpformat
get_time
29,377
LDU_FT/daknuett/py_register_machine2/write
LDU_FT
[ "<BEGIN>\n## `int_to_bytes`", ".. _int_to_bytes:", "\tConverts the ``int`` ``int_`` to a ``bytes`` object.\n\t``len(result) == width``.", "\tIf ``width`` is None, a number of bytes that is able to hold the\n\tnumber is choosen, depending on ``int_.bit_length()``.", "\tSee also: bytes_to_int_\n<END>", "<BE...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the write API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the write API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
Converts the ``int`` ``word`` to a ``bytes`` object and writes them to ``open_stream_out``. See ``int_to_bytes``.
"Converts the ``int`` ``word`` to a ``bytes`` object and writes them to\n\t\t``open_stream_out``.\n\n\t\tSee ``int_to_bytes``."
154
false
daknuett/py_register_machine2
write
29,378
LDU_FT/materialsproject/custodian/run
LDU_FT
[ "<BEGIN>\n## `from_spec`", "Load a Custodian instance where the jobs are specified from a\n structure and a spec dict. This allows simple\n custom job sequences to be constructed quickly via a YAML file.", " Args:\n spec (dict): A dict specifying job. A sample of the dict in\n ...
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...
Performs the actual FEFF run Returns: (subprocess.Popen) Used for monitoring.
"Performs the actual FEFF run\n Returns:\n (subprocess.Popen) Used for monitoring."
90
false
materialsproject/custodian
run
29,379
LDU_FT/exxeleron/qPython/read_data
LDU_FT
[ "<BEGIN>\n## `read`", "Reads and optionally parses a single message.", " :Parameters:\n - `source` - optional data buffer to be read, if not specified data is \n read from the wrapped stream\n :Options:\n - `raw` (`boolean`) - indicates whether read data should parsed or ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the read_data API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the read_data API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
Reads and optionally parses data part of a message. .. note:: :func:`.read_header` is required to be called before executing the :func:`.read_data` :Parameters: - `message_size` (`integer`) - size of the message to be read - `is_compressed` (`boolean...
"Reads and optionally parses data part of a message.\n \n .. note:: :func:`.read_header` is required to be called before executing\n the :func:`.read_data`\n \n :Parameters:\n - `message_size` (`integer`) - size of the message to be read\n - `is_compressed` (...
127
false
exxeleron/qPython
read_data
29,380
LDU_FT/mmcauliffe/Conch-sounds/construct_filterbank
LDU_FT
[ "<BEGIN>\n## `lpc_ref`", "Compute the Linear Prediction Coefficients.", " Return the order + 1 LPC coefficients for the signal. c = lpc(x, k) will\n find the k+1 coefficients of a k order linear filter:", " xp[n] = -c[1] * x[n-2] - ... - c[k-1] * x[n-k-1]", " Such as the sum of the squared-err...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the construct_filterbank 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 construct_filterbank API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Constructs a mel-frequency filter bank. Parameters ---------- nfft : int Number of points in the FFT. Returns ------- array Filter bank to multiply an FFT spectrum to create a mel-frequency spectrum...
"Constructs a mel-frequency filter bank.\n\n Parameters\n ----------\n nfft : int\n Number of points in the FFT.\n\n Returns\n -------\n array\n Filter bank to multiply an FFT spectrum to create a mel-frequency\n ...
63
false
mmcauliffe/Conch-sounds
construct_filterbank
29,381
LDU_FT/django-fluent/fluentcms-emailtemplates/render_text
LDU_FT
[ "<BEGIN>\n## `replace_fields`", "Allow simple field replacements, using the python str.format() syntax.", " When a string is passed that is tagged with :func:`~django.utils.safestring.mark_safe`,\n the context variables will be escaped before replacement.", " This function is used instead of lazily u...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the render_text API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the render_text API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
Custom rendering function for HTML output
"Custom rendering function for HTML output"
21
false
django-fluent/fluentcms-emailtemplates
render_text
29,382
LDU_FT/opengridcc/opengrid/compute_degree_days
LDU_FT
[ "<BEGIN>\n## `add`", "Add the path of a data set to the list of available sets", " NOTE: a data set is assumed to be a pickled\n and gzip compressed Pandas DataFrame", " Parameters\n ----------\n path : str\n<END>", "<BEGIN>\n## `unpack`", "Unpacks a data set to a Pandas...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the compute_degree_days 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 compute_degree_days 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...
Compute degree-days for heating and/or cooling Parameters ---------- ts : pandas.Series Contains ambient (outside) temperature. Series name (ts.name) does not matter. heating_base_temperatures: list For each base temperature the heating degree-days will be computed cooling_base_temp...
"Compute degree-days for heating and/or cooling\n\n Parameters\n ----------\n ts : pandas.Series\n Contains ambient (outside) temperature. Series name (ts.name) does not matter.\n heating_base_temperatures: list\n For each base temperature the heating degree-days will be computed\n cooling_...
84
false
opengridcc/opengrid
compute_degree_days
29,383
LDU_FT/smitchell556/cuttlepool/wrap_resource
LDU_FT
[ "<BEGIN>\n## `_get`", "Get a resource from the pool. If timeout is ``None`` waits\n indefinitely.", " :param timeout: Time in seconds to wait for a resource.\n :type timeout: int\n :return: A resource.\n :rtype: :class:`_ResourceTracker`", " :raises PoolEmptyError: Wh...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the wrap_resource API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the wrap_resource API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
Return a resource wrapped in ``resource_wrapper``. :param pool: A pool instance. :type pool: :class:`CuttlePool` :param resource_wrapper: A wrapper class for the resource. :type resource_wrapper: :class:`Resource` :return: A wrapped resource. :rtype: :class:`Resource`
"Return a resource wrapped in ``resource_wrapper``.\n\n :param pool: A pool instance.\n :type pool: :class:`CuttlePool`\n :param resource_wrapper: A wrapper class for the resource.\n :type resource_wrapper: :class:`Resource`\n :return: A wrapped resource.\n :rtype: :class:`Reso...
29
false
smitchell556/cuttlepool
wrap_resource
29,384
LDU_FT/CZ-NIC/yangson/argument
LDU_FT
[ "<BEGIN>\n## `schema_root`", "Return the root node of the receiver's schema.\n<END>", "<BEGIN>\n## `iname`", "Return the instance name corresponding to the receiver.\n<END>", "<BEGIN>\n## `_node_digest`", "Return dictionary of receiver's properties suitable for clients.\n<END>", "<BEGIN>\n## `_iname2qna...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the argument API. 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 argument API. 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...
Parse statement argument. Return ``True`` if the argument is followed by block of substatements.
"Parse statement argument.\n\n Return ``True`` if the argument is followed by block of substatements."
352
false
CZ-NIC/yangson
argument
29,385
LDU_FT/tevino/mongu/change_by
LDU_FT
[ "<BEGIN>\n## `enable_counter`", "Register the builtin counter model, return the registered Counter\n class and the corresponding ``CounterMixin`` class.", " The ``CounterMixin`` automatically increases and decreases the counter\n after model creation(save without ``_id``) and deletion.", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the change_by API. 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 change_by API. 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...
Change counter of ``name`` by ``num`` (can be negative).
"Change counter of ``name`` by ``num`` (can be negative)."
16
false
tevino/mongu
change_by
29,386
LDU_FT/hannes-brt/cudnn-python-wrappers/cudnnCreateTensorDescriptor
LDU_FT
[ "<BEGIN>\n## `cudnnCreate`", "Initialize cuDNN.", " Initializes cuDNN and returns a handle to the cuDNN context.", " Returns\n -------", " handle : cudnnHandle\n cuDNN context\n<END>", "<BEGIN>\n## `cudnnDestroy`", "Release cuDNN resources.", " Release hardware resources used by ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the cudnnCreateTensorDescriptor API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclu...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the cudnnCreateTensorDescriptor API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclu...
Create a Tensor descriptor object. Allocates a cudnnTensorDescriptor_t structure and returns a pointer to it. Returns ------- tensor_descriptor : int Tensor descriptor.
"Create a Tensor descriptor object.\n\n Allocates a cudnnTensorDescriptor_t structure and returns a pointer to it.\n\n Returns\n -------\n tensor_descriptor : int\n Tensor descriptor."
108
false
hannes-brt/cudnn-python-wrappers
cudnnCreateTensorDescriptor
29,387
LDU_FT/opencivicdata/pupa/_update_related
LDU_FT
[ "<BEGIN>\n## `items_differ`", "check whether or not jsonitems and dbitems differ\n<END>", "<BEGIN>\n## `resolve_json_id`", "Given an id found in scraped JSON, return a DB id for the object.", " params:\n json_id: id from json\n allow_no_match: just return None...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _update_related API. 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 _update_related API. 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...
update DB objects related to a base object obj: a base object to create related related: dict mapping field names to lists of related objects subfield_list: where to get the next layer of subfields
"update DB objects related to a base object\n obj: a base object to create related\n related: dict mapping field names to lists of related objects\n subfield_list: where to get the next layer of subfields"
48
false
opencivicdata/pupa
_update_related
29,388
LDU_FT/ArangoDB-Community/pyArango/reload
LDU_FT
[ "<BEGIN>\n## `_create`", "Creates an index of any type according to postData\n<END>", "<BEGIN>\n## `createVertex`", "adds a vertex to the graph and returns it\n<END>", "<BEGIN>\n## `deleteVertex`", "deletes a vertex from the graph as well as al linked edges\n<END>", "<BEGIN>\n## `link`", "A shorthand ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the reload API. 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 reload API. 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 ...
Reloads the database list. Because loading a database triggers the loading of all collections and graphs within, only handles are loaded when this function is called. The full databases are loaded on demand when accessed
"Reloads the database list.\n Because loading a database triggers the loading of all collections and graphs within,\n only handles are loaded when this function is called. The full databases are loaded on demand when accessed"
105
false
ArangoDB-Community/pyArango
reload
29,389
LDU_FT/Salamek/cron-descriptor/get_description
LDU_FT
[ "<BEGIN>\n## `parse_cron_line`", "Parses crontab line and returns only starting time string", " Args:\n line: crontab line\n Returns:\n Time part of cron line\n<END>", "<BEGIN>\n## `parse`", "Parses the cron expression string\n Returns:\n A 7 part string...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_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. The e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_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. The e...
Generates a human readable string for the Cron Expression Args: description_type: Which part(s) of the expression to describe Returns: The cron expression description Raises: Exception: if throw_exception_on_parse_error is True
"Generates a human readable string for the Cron Expression\n\n Args:\n description_type: Which part(s) of the expression to describe\n Returns:\n The cron expression description\n Raises:\n Exception: if throw_exception_on_parse_error is True"
52
false
Salamek/cron-descriptor
get_description
29,390
LDU_FT/allianceauth/allianceauth/get_object
LDU_FT
[ "<BEGIN>\n## `register`", "Decorator to register a function as a hook", " Register hook for ``hook_name``. Can be used as a decorator::\n @register('hook_name')\n def my_hook(...):\n pass", " or as a function call::\n def my_hook(...):\n pass\n register(...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_object API. 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_object API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
Returns the object the view is displaying.
"Returns the object the view is displaying."
57
false
allianceauth/allianceauth
get_object
29,391
LDU_FT/jefflovejapan/drench/read
LDU_FT
[ "<BEGIN>\n## `build_dirs`", "Build necessary directories based on a list of file paths\n<END>", "<BEGIN>\n## `get_want_file_pos`", "Ask the user which files in file_list he or she is interested in.\n Return indices for the files inside file_list\n<END>", "<BEGIN>\n## `get_file_starts`", "Return the sta...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the read API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the read API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
Chain of events: - process_input - check save_state and read length, id, and message accordingly - if we have a piece (really a block), we piece.save it out inside call to ppiece - If we've completed a piece we: - Tell...
"Chain of events:\n - process_input\n - check save_state and read length, id, and message accordingly\n - if we have a piece (really a block), we piece.save it out\n inside call to ppiece\n - If we've completed a piece we:\n ...
32
false
jefflovejapan/drench
read
29,392
LDU_FT/ask/carrot/register_pickle
LDU_FT
[ "<BEGIN>\n## `establish_connection`", "Establish connection to the AMQP broker.\n<END>", "<BEGIN>\n## `queue_exists`", "Check if a queue has been declared.", " :rtype bool:\n<END>", "<BEGIN>\n## `queue_bind`", "Bind queue to an exchange using a routing key.\n<END>", "<BEGIN>\n## `get`", "Rece...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the register_pickle API. 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 register_pickle API. 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...
The fastest serialization method, but restricts you to python clients.
"The fastest serialization method, but restricts\n you to python clients."
162
false
ask/carrot
register_pickle
29,393
LDU_FT/karan/HackerNewsAPI/_build_story
LDU_FT
[ "<BEGIN>\n## `get_soup`", "Returns a bs4 object of the page requested\n<END>", "<BEGIN>\n## `_get_zipped_rows`", "Returns all 'tr' tag rows as a list of tuples. Each tuple is for\r\n a single story.\n<END>", "<BEGIN>\n## `_build_story`", "Builds and returns a list of stories (dicts) from the passed...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _build_story API. 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 _build_story API. 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...
Builds and returns a list of stories (dicts) from the passed source.
"Builds and returns a list of stories (dicts) from the passed source."
15
false
karan/HackerNewsAPI
_build_story
29,394
LDU_FT/googleapis/protoc-java-resource-names-plugin/p_variable
LDU_FT
[ "<BEGIN>\n## `render`", "Renders a string from a path template using the provided bindings.", " Args:\n bindings (dict): A dictionary of var names to binding strings.", " Returns:\n str: The rendered instantiation of this path template.", " Raises:\n Val...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the p_variable API. 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 p_variable API. 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...
variable : LEFT_BRACE LITERAL EQUALS unbound_segments RIGHT_BRACE | LEFT_BRACE LITERAL RIGHT_BRACE
"variable : LEFT_BRACE LITERAL EQUALS unbound_segments RIGHT_BRACE\n | LEFT_BRACE LITERAL RIGHT_BRACE"
19
false
googleapis/protoc-java-resource-names-plugin
p_variable
29,395
LDU_FT/adamhadani/python-yelp/by_geopoint
LDU_FT
[ "<BEGIN>\n## `_http_request`", "Perform an HTTP Request using base_url and parameters\n given by kwargs. \n Results are expected to be given in JSON format\n and are parsed to python data structures.\n<END>", "<BEGIN>\n## `by_bounding_box`", "Perform a Yelp Review Search based on a map bo...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the by_geopoint API. 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 by_geopoint API. 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...
Perform a Yelp Review Search based on a geopoint and radius tuple. Args: lat - geopoint latitude long - geopoint longitude radius - search radius (in miles) term - Search term to filter by (Optional) num_biz_requested - Maximum number of match...
"Perform a Yelp Review Search based on a geopoint and radius tuple.\n\n Args:\n lat - geopoint latitude \n long - geopoint longitude \n radius - search radius (in miles)\n term - Search term to filter by (Optional)\n num_biz_requested - Maximum number ...
20
false
adamhadani/python-yelp
by_geopoint
29,396
LDU_FT/SBRG/ssbio/add_gene_ids
LDU_FT
[ "<BEGIN>\n## `search_ss_bonds`", "Searches S-S bonds based on distances\n between atoms in the structure (first model only).\n Average distance is 2.05A. Threshold is 3A default.\n Returns iterator with tuples of residues.", " ADAPTED FROM JOAO RODRIGUES' BIOPYTHON GSOC PROJECT (http...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_gene_ids API. 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 add_gene_ids API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
Add gene IDs manually into the GEM-PRO project. Args: genes_list (list): List of gene IDs as strings.
"Add gene IDs manually into the GEM-PRO project.\n\n Args:\n genes_list (list): List of gene IDs as strings."
1,487
true
SBRG/ssbio
add_gene_ids
29,397
LDU_FT/hishnash/djangochannelsrestframework/view_as_consumer
LDU_FT
[ "<BEGIN>\n## `pre_change_receiver`", "Entry point for triggering the old_binding from save signals.\n<END>", "<BEGIN>\n## `post_change_receiver`", "Triggers the old_binding to possibly send to its group.\n<END>", "<BEGIN>\n## `get_queryset`", "Get the list of items for this view.\n This must be an ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the view_as_consumer API. 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 view_as_consumer API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Wrap a django View so that it will be triggered by actions over this json websocket consumer.
"Wrap a django View so that it will be triggered by actions over this json\n websocket consumer."
24
false
hishnash/djangochannelsrestframework
view_as_consumer
29,398
LDU_FT/Skype4Py/Skype4Py/CreateGroup
LDU_FT
[ "<BEGIN>\n## `AsyncSearchUsers`", "Asynchronously searches for Skype users.", " :Parameters:\n Target : unicode\n Search target (name or email address).", " :return: A search identifier. It will be passed along with the results to the\n `SkypeEvents.AsyncSearc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the CreateGroup API. 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 CreateGroup API. 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...
Creates a custom contact group. :Parameters: GroupName : unicode Group name. :return: A group object. :rtype: `Group` :see: `DeleteGroup`
"Creates a custom contact group.\n\n :Parameters:\n GroupName : unicode\n Group name.\n\n :return: A group object.\n :rtype: `Group`\n\n :see: `DeleteGroup`"
213
false
Skype4Py/Skype4Py
CreateGroup
29,399
LDU_FT/neo4j-contrib/neomodel/inflate
LDU_FT
[ "<BEGIN>\n## `set_connection`", "Sets the connection URL to the address a Neo4j server is set up at\n<END>", "<BEGIN>\n## `begin`", "Begins a new transaction, raises SystemError exception if a transaction is in progress\n<END>", "<BEGIN>\n## `_object_resolution`", "Performs in place automatic object resol...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the inflate API. 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 inflate API. 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...
Inflate a neo4j_driver relationship object to a neomodel object :param rel: :return: StructuredRel
"Inflate a neo4j_driver relationship object to a neomodel object\n :param rel:\n :return: StructuredRel"
157
false
neo4j-contrib/neomodel
inflate
29,400
LDU_FT/Xion/callee/_list_magic_methods
LDU_FT
[ "<BEGIN>\n## `_validate_argument`", "Validate a type or matcher argument to the constructor.\n<END>", "<BEGIN>\n## `_initialize`", "Initiaize the mapping matcher with constructor arguments.\n<END>", "<BEGIN>\n## `docs`", "Build the docs and show them in default web browser.\n<END>", "<BEGIN>\n## `fatal`...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _list_magic_methods 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 _list_magic_methods 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...
Return names of magic methods defined by a class. :return: Iterable of magic methods, each w/o the ``__`` prefix/suffix
"Return names of magic methods defined by a class.\n :return: Iterable of magic methods, each w/o the ``__`` prefix/suffix"
36
false
Xion/callee
_list_magic_methods
29,401
LDU_FT/honzamach/pynspect/t_EXP_ALL
LDU_FT
[ "<BEGIN>\n## `parse`", "Parse given data.", " data:\n A string containing the filter definition\n filename:\n Name of the file being parsed (for meaningful\n error messages)\n debuglevel:\n Debug level to yacc\n<END>", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the t_EXP_ALL API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the t_EXP_ALL API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
r'(-|\+|\*|/|%|like|LIKE|=~|in|IN|~~|is|IS|eq|EQ|==|ne|NE|!=|<>|ge|GE|>=|gt|GT|>|le|LE|<=|lt|LT|<|or|OR|\|\||xor|XOR|\^\^|and|AND|&&|not|NOT|!|exists|EXISTS|\?)
"r'(-|\\+|\\*|/|%|like|LIKE|=~|in|IN|~~|is|IS|eq|EQ|==|ne|NE|!=|<>|ge|GE|>=|gt|GT|>|le|LE|<=|lt|LT|<|or|OR|\\|\\||xor|XOR|\\^\\^|and|AND|&&|not|NOT|!|exists|EXISTS|\\?)"
143
false
honzamach/pynspect
t_EXP_ALL
29,402
LDU_FT/minhhoit/yacms/send_verification_mail
LDU_FT
[ "<BEGIN>\n## `formfield`", "Apply the widget class defined by the\n ``RICHTEXT_WIDGET_CLASS`` setting.\n<END>", "<BEGIN>\n## `as_tag`", "Creates a tag expecting the format:\n ``{% tag_name as var_name %}``\n The decorated func returns the value that is given to\n ``var_name`` in th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the send_verification_mail 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 send_verification_mail API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
Sends an email with a verification link to users when ``ACCOUNTS_VERIFICATION_REQUIRED`` is ```True`` and they're signing up, or when they reset a lost password. The ``verification_type`` arg is both the name of the urlpattern for the verification link, as well as the names of the email templates to...
"Sends an email with a verification link to users when\n ``ACCOUNTS_VERIFICATION_REQUIRED`` is ```True`` and they're signing\n up, or when they reset a lost password.\n The ``verification_type`` arg is both the name of the urlpattern for\n the verification link, as well as the names of the email templates\n...
502
false
minhhoit/yacms
send_verification_mail
29,403
LDU_FT/CiscoUcs/UcsPythonSDK/ToManagedObject
LDU_FT
[ "<BEGIN>\n## `get_boot_device`", "Get the current boot device for the node.\r", " Provides the current boot device of the node. Be aware that not\r\n all drivers support this.\r", " :raises: InvalidParameterValue if any connection parameters are\r\n incorrect.\r...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the ToManagedObject API. 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 ToManagedObject API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
Method creates and returns an object of ManagedObject class using the classId and information from the Generic managed object.
"Method creates and returns an object of ManagedObject class using the classId and information from the\n\t\tGeneric managed object."
179
false
CiscoUcs/UcsPythonSDK
ToManagedObject
29,404
LDU_FT/rbarrois/django_xworkflows/clean_readme
LDU_FT
[ "<BEGIN>\n## `render`", "Handle a few expected values for rendering the current choice.", " Extracts the state name from StateWrapper and State object.\n<END>", "<BEGIN>\n## `contribute_to_class`", "Contribute the state to a Model.", " Attaches a StateFieldProperty to wrap the attribute.\n<E...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the clean_readme API. 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 clean_readme API. 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...
Cleanup README.rst for proper PyPI formatting.
"Cleanup README.rst for proper PyPI formatting."
28
false
rbarrois/django_xworkflows
clean_readme
29,405
LDU_FT/SmartDeveloperHub/agora-service-provider/collect
LDU_FT
[ "<BEGIN>\n## `collect`", "Decorator to attach a collector function to a triple pattern\n :param tp:\n :param args:\n :return:\n<END>", "<BEGIN>\n## `add_triple_pattern`", "0\n Manage the relations between triple patterns and collector functions\n :param tp:\n :param collector:\n :param ar...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the collect API. 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 collect API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
Decorator to attach a collector function to a triple pattern :param tp: :param args: :return:
"Decorator to attach a collector function to a triple pattern\n :param tp:\n :param args:\n :return:"
12
false
SmartDeveloperHub/agora-service-provider
collect
29,406
LDU_FT/cosven/feeluown-core/remove
LDU_FT
[ "<BEGIN>\n## `handle`", "NOTE: use tcp instead of udp because some operations need ack\n<END>", "<BEGIN>\n## `url`", "We will always check if this song file exists in local library,\n if true, we return the url of the local file.", " .. note::", " As netease song url will be expir...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the remove API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the remove API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Remove song from playlist. O(n) If song is current song, remove the song and play next. Otherwise, just remove it.
"Remove song from playlist. O(n)\n\n If song is current song, remove the song and play next. Otherwise,\n just remove it."
74
false
cosven/feeluown-core
remove
29,407
LDU_FT/Kozea/wdb/handle_line
LDU_FT
[ "<BEGIN>\n## `import_from_stdlib`", "Copied from pdbpp https://bitbucket.org/antocuni/pdb\n<END>", "<BEGIN>\n## `handle_exc`", "Return a formated exception traceback for wdb.js use\n<END>", "<BEGIN>\n## `_patch_tcpserver`", "Patch shutdown_request to open blocking interaction after the end of the\n req...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the handle_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 extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the handle_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 extra...
This function is called when we stop or break at this line.
"This function is called when we stop or break at this line."
45
false
Kozea/wdb
handle_line
29,408
LDU_FT/pysal/mapclassify/bin1d
LDU_FT
[ "<BEGIN>\n## `quantile`", "Calculates the quantiles for an array", " Parameters\n ----------\n y : array\n (n,1), values to classify\n k : int\n number of quantiles", " Returns\n -------\n q : array\n (n,1), quantile values", " Examples\n -----...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the bin1d API. 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 bin1d API. 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...
Place values of a 1-d array into bins and determine counts of values in each bin Parameters ---------- x : array (n, 1), values to bin bins : array (k,1), upper bounds of each bin (monotonic) Returns ------- binIds : array 1-d array of integer bin Ids ...
"Place values of a 1-d array into bins and determine counts of values in\n each bin\n\n Parameters\n ----------\n x : array\n (n, 1), values to bin\n bins : array\n (k,1), upper bounds of each bin (monotonic)\n\n Returns\n -------\n binIds : array\n 1-d array of inte...
87
false
pysal/mapclassify
bin1d
29,409
LDU_FT/automl/HpBandSter/fix_timestamps
LDU_FT
[ "<BEGIN>\n## `get_config`", "Function to sample a new configuration", "\t\t\tThis function is called inside Hyperband to query a new configuration", "\t\t\tParameters:\n\t\t\t-----------\n\t\t\tbudget: float\n\t\t\t\tthe budget for which this configuration is scheduled", "\t\t\treturns: config\n\t\t\t\tshou...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the fix_timestamps API. 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 fix_timestamps API. 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...
manipulates internal time stamps such that the last run ends at time 0
"manipulates internal time stamps such that the last run ends at time 0"
188
false
automl/HpBandSter
fix_timestamps
29,410
LDU_FT/dhermes/bezier/polynomial_norm
LDU_FT
[ "<BEGIN>\n## `polynomial_sign`", "r\"\"\"Determine the \"sign\" of a polynomial on the reference triangle.", " .. note::", " This is used **only** by :meth:`Surface._compute_valid` (which is\n in turn used to compute / cache the :attr:`Surface.is_valid`\n property).", " Checks if a p...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the polynomial_norm API. 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 polynomial_norm API. 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...
r"""Computes :math:`L_2` norm of polynomial on :math:`\left[0, 1\right]`. We have .. math:: \left\langle f, f \right\rangle = \sum_{i, j} \int_0^1 c_i c_j x^{i + j} \, dx = \sum_{i, j} \frac{c_i c_j}{i + j + 1} = \sum_{i} \frac{c_i^2}{2 i + 1} + 2 \sum_{j > i} \frac{c_...
"r\"\"\"Computes :math:`L_2` norm of polynomial on :math:`\\left[0, 1\\right]`.\n\n We have\n\n .. math::\n\n \\left\\langle f, f \\right\\rangle = \\sum_{i, j}\n \\int_0^1 c_i c_j x^{i + j} \\, dx = \\sum_{i, j}\n \\frac{c_i c_j}{i + j + 1} = \\sum_{i} \\frac{c_i^2}{2 i + 1}\n ...
1,903
true
dhermes/bezier
polynomial_norm
29,411
LDU_FT/bniemczyk/automata/reltags
LDU_FT
[ "<BEGIN>\n## `transitions_to`", "returns enumerable of (prevstate, t) tuples\n this is super slow and needs to be sped up\n<END>", "<BEGIN>\n## `reltags`", "returns all the tags that are relevant at this state\n cache should be a dictionary and it is updated\n by the function\n<END>", "<BEGIN>\n## ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the reltags API. 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 reltags API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
returns all the tags that are relevant at this state cache should be a dictionary and it is updated by the function
"returns all the tags that are relevant at this state\n cache should be a dictionary and it is updated\n by the function"
13
false
bniemczyk/automata
reltags
29,412
LDU_FT/listen-lavender/webcrawl/patch_thread
LDU_FT
[ "<BEGIN>\n## `_daemonize`", "do the UNIX double-fork magic, see Stevens' \"Advanced \n Programming in the UNIX Environment\" for details (ISBN 0201563177)\n http://www.erlenstar.demon.co.uk/unix/faq_2.html#SEC16\n<END>", "<BEGIN>\n## `monitor`", "Monitor the process, check whether it runs out of...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the patch_thread API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the patch_thread API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
Replace the standard :mod:`thread` module to make it greenlet-based. If *threading* is true (the default), also patch ``threading``. If *_threading_local* is true (the default), also patch ``_threading_local.local``.
"Replace the standard :mod:`thread` module to make it greenlet-based.\r\n If *threading* is true (the default), also patch ``threading``.\r\n If *_threading_local* is true (the default), also patch ``_threading_local.local``."
23
false
listen-lavender/webcrawl
patch_thread
29,413
LDU_FT/almarklein/pyelastix/_read_image_data
LDU_FT
[ "<BEGIN>\n## `get_elastix_exes`", "Get the executables for elastix and transformix. Raises an error\n if they cannot be found.\n<END>", "<BEGIN>\n## `_clear_dir`", "Remove a directory and it contents. Ignore any failures.\n<END>", "<BEGIN>\n## `get_tempdir`", "Get the temporary directory where pyelasti...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _read_image_data API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _read_image_data API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Read the resulting image data and return it as a numpy array.
"Read the resulting image data and return it as a numpy array."
37
false
almarklein/pyelastix
_read_image_data
29,414
LDU_FT/aws/chalice/validate_python_version
LDU_FT
[ "<BEGIN>\n## `create_from_lambda_arn`", "Create a LogRetriever from a client and lambda arn.", " :type client: botocore.client.Logs\n :param client: A ``logs`` client.", " :type lambda_arn: str\n :param lambda_arn: The ARN of the lambda function.", " :return: An instance o...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the validate_python_version API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the validate_python_version API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion...
Validate configuration matches a specific python version. If the ``actual_py_version`` is not provided, it will default to the major/minor version of the currently running python interpreter. :param actual_py_version: The major/minor python version in the form "pythonX.Y", e.g "python2.7", "py...
"Validate configuration matches a specific python version.\n\n If the ``actual_py_version`` is not provided, it will default\n to the major/minor version of the currently running python\n interpreter.\n\n :param actual_py_version: The major/minor python version in\n the form \"pythonX.Y\", e.g \"pyth...
96
false
aws/chalice
validate_python_version
29,415
LDU_FT/pmacosta/ptrie/search_tree
LDU_FT
[ "<BEGIN>\n## `_create_intermediate_nodes`", "Create intermediate nodes if hierarchy does not exist.\n<END>", "<BEGIN>\n## `_delete_subtree`", "Delete subtree private method.", " No argument validation and usage of getter/setter private methods is\n used for speed\n<END>", "<BEGIN>\n## `_prt`...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the search_tree API. 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 search_tree API. 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...
r""" Search tree for all nodes with a specific name. :param name: Node name to search for :type name: :ref:`NodeName` :raises: RuntimeError (Argument \`name\` is not valid) For example: >>> from __future__ import print_function >>> import pprint, ptri...
"r\"\"\"\n Search tree for all nodes with a specific name.\n\n :param name: Node name to search for\n :type name: :ref:`NodeName`\n\n :raises: RuntimeError (Argument \\`name\\` is not valid)\n\n For example:\n\n >>> from __future__ import print_function\n >>> im...
166
false
pmacosta/ptrie
search_tree
29,416
LDU_FT/samluescher/django-media-tree/get_media_backend
LDU_FT
[ "<BEGIN>\n## `i18n_javascript`", "Displays the i18n JavaScript that the Django admin requires.", " This takes into account the USE_I18N setting. If it's set to False, the\n generated JavaScript will be leaner and faster.\n<END>", "<BEGIN>\n## `file_links`", "Turns a (optionally nested) list of...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_media_backend API. 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_media_backend API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Returns the MediaBackend subclass that is configured for use with media_tree.
"Returns the MediaBackend subclass that is configured for use with \n media_tree."
96
false
samluescher/django-media-tree
get_media_backend
29,417
LDU_FT/log2timeline/plaso/ListHashers
LDU_FT
[ "<BEGIN>\n## `_GetStatus`", "Retrieves status information.", " Returns:\n dict[str, object]: status attributes, indexed by name.\n<END>", "<BEGIN>\n## `_ProcessEvent`", "Processes an event.", " Args:\n mediator (AnalysisMediator): mediates interactions between\n analysis plugins a...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the ListHashers API. 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 ListHashers API. 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...
Lists information about the available hashers.
"Lists information about the available hashers."
5,157
true
log2timeline/plaso
ListHashers
29,418
LDU_FT/jay-johnson/celery-loaders/always_fails
LDU_FT
[ "<BEGIN>\n## `do_some_work`", "do_some_work", " :param work_dict: dictionary for key/values\n<END>", "<BEGIN>\n## `always_fails`", "always_fails", " :param work_dict: dictionary for key/values\n<END>", "<BEGIN>\n## `get_celery_app`", "get_celery_app", " :param name: name for this app\n :...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the always_fails API. 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 always_fails API. 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...
always_fails :param work_dict: dictionary for key/values
"always_fails\n\n :param work_dict: dictionary for key/values"
17
false
jay-johnson/celery-loaders
always_fails
29,419
LDU_FT/asmodehn/filefinder2/find_spec
LDU_FT
[ "<BEGIN>\n## `strip_encoding_cookie`", "Generator to pull lines from a text-mode file, skipping the encoding\n cookie if it is found in the first two lines.\n<END>", "<BEGIN>\n## `source_to_unicode`", "Converts a bytes string with python source code to unicode.\n Unicode strings are passed through uncha...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_spec API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_spec API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
Return the spec for the specified module. First, sys.modules is checked to see if the module was already imported. If so, then sys.modules[name].__spec__ is returned. If that happens to be set to None, then ValueError is raised. If the module is not in sys.modules, then sys.meta_path is searched for a s...
"Return the spec for the specified module.\n First, sys.modules is checked to see if the module was already imported. If\n so, then sys.modules[name].__spec__ is returned. If that happens to be\n set to None, then ValueError is raised. If the module is not in\n sys.modules, then sys.meta_path is searched fo...
64
false
asmodehn/filefinder2
find_spec
29,420
LDU_FT/PolyJIT/benchbuild/init_functions
LDU_FT
[ "<BEGIN>\n## `write_makeconfig`", "Write a valid gentoo make.conf file to :path:.", " Args:\n path - The output path of the make.conf\n<END>", "<BEGIN>\n## `write_bashrc`", "Write a valid gentoo bashrc file to :path:.", " Args:\n path - The output path of the make.conf\n<END>", "<BEG...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the init_functions API. 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 init_functions API. 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...
Initialize all SQL functions in the database.
"Initialize all SQL functions in the database."
401
false
PolyJIT/benchbuild
init_functions
29,421
LDU_FT/roclark/sportsreference/home_abbreviation
LDU_FT
[ "<BEGIN>\n## `dataframe`", "Returns a ``pandas DataFrame`` containing all other relevant class\n properties and values for the specified game.\n<END>", "<BEGIN>\n## `_extract_player_stats`", "Combine all player stats into a single object.", " Since each player generally has a couple of rows wo...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the home_abbreviation API. 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 home_abbreviation API. 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 a ``string`` of the home team's abbreviation, such as 'KAN'.
"Returns a ``string`` of the home team's abbreviation, such as 'KAN'."
588
false
roclark/sportsreference
home_abbreviation
29,422
LDU_FT/StorjOld/pyp2p/set_keep_alive
LDU_FT
[ "<BEGIN>\n## `set_keep_alive`", "This function instructs the TCP socket to send a heart beat every n\n seconds to detect dead connections. It's the TCP equivalent of the\n IRC ping-pong protocol and allows for better cleanup / detection\n of dead TCP connections.", " It activates aft...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_keep_alive API. 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_keep_alive API. 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...
This function instructs the TCP socket to send a heart beat every n seconds to detect dead connections. It's the TCP equivalent of the IRC ping-pong protocol and allows for better cleanup / detection of dead TCP connections. It activates after 1 second (after_idle_sec) of idleness, then...
"This function instructs the TCP socket to send a heart beat every n\n seconds to detect dead connections. It's the TCP equivalent of the\n IRC ping-pong protocol and allows for better cleanup / detection\n of dead TCP connections.\n\n It activates after 1 second (after_idle_sec) of idleness...
88
false
StorjOld/pyp2p
set_keep_alive
29,423
LDU_FT/openvax/datacache/fetch_csv_db
LDU_FT
[ "<BEGIN>\n## `connect_if_correct_version`", "Return a sqlite3 database connection if the version in the database's\n metadata matches the version argument.", " Also implicitly checks for whether the data in this database has\n been completely filled, since we set the version last.", " TODO: Make a...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the fetch_csv_db API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the fetch_csv_db API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
Download a remote CSV file and create a local sqlite3 database from its contents
"Download a remote CSV file and create a local sqlite3 database\n from its contents"
101
false
openvax/datacache
fetch_csv_db
29,424
LDU_FT/kolypto/py-good/enrich
LDU_FT
[ "<BEGIN>\n## `message`", "Convenience decorator that applies [`Msg()`](#msg) to a callable.", " ```python\n from good import Schema, message", " @message(u'Need a number')\n def intify(v):\n return int(v)\n ```", " :param message: Error message to use instead\n :type message: uni...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the enrich API. 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 enrich API. 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 ...
Enrich this error with additional information. This works with both Invalid and MultipleInvalid (thanks to `Invalid` being iterable): in the latter case, the defaults are applied to all collected errors. The specified arguments are only set on `Invalid` errors which do not have any value on th...
"Enrich this error with additional information.\n\n This works with both Invalid and MultipleInvalid (thanks to `Invalid` being iterable):\n in the latter case, the defaults are applied to all collected errors.\n\n The specified arguments are only set on `Invalid` errors which do not have any value...
118
false
kolypto/py-good
enrich
29,425
LDU_FT/mrcagney/make_gtfs/copy
LDU_FT
[ "<BEGIN>\n## `make_gtfs`", "Create a GTFS feed from the files in the directory SOURCE_PATH.\n See the project README for a description of the required source\n files.\n Save the feed to the file or directory TARGET_PATH.\n If the target path ends in '.zip', then write the feed as a zip\n archive.\n...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the copy API. 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 copy API. 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 copy of this ProtoFeed, that is, a feed with all the same attributes.
"Return a copy of this ProtoFeed, that is, a feed with all the\n same attributes."
67
false
mrcagney/make_gtfs
copy
29,426
LDU_FT/kevinsprong23/aperture/ceil_nearest
LDU_FT
[ "<BEGIN>\n## `set_plot_params`", "set plot parameters for session, as an alternative to\n manipulating RC file\n<END>", "<BEGIN>\n## `calc_2d_hist`", "given two vectors x and y, calculate a 2-d histogram matrix\n x = data list\n y = data list\n step = either a scalar dx/dy, or a tuple (dx,dy)\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the ceil_nearest API. 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 ceil_nearest API. 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...
ceil a number to within a given rounding accuracy
"ceil a number to within a given rounding accuracy"
15
false
kevinsprong23/aperture
ceil_nearest
29,427
LDU_FT/matrix-org/matrix-python-sdk/send_notice
LDU_FT
[ "<BEGIN>\n## `set_user_profile`", "Set user profile within a room.", " This sets displayname and avatar_url for the logged in user only in a\n specific room. It does not change the user's global user profile.\n<END>", "<BEGIN>\n## `send_html`", "Send an html formatted message.", " Arg...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the send_notice API. 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_notice API. 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...
Perform PUT /rooms/$room_id/send/m.room.message with m.notice msgtype Args: room_id (str): The room ID to send the event in. text_content (str): The m.notice body to send. timestamp (int): Set origin_server_ts (For application services only)
"Perform PUT /rooms/$room_id/send/m.room.message with m.notice msgtype\n\n Args:\n room_id (str): The room ID to send the event in.\n text_content (str): The m.notice body to send.\n timestamp (int): Set origin_server_ts (For application services only)"
304
false
matrix-org/matrix-python-sdk
send_notice
29,428
LDU_FT/Celeo/Preston/set
LDU_FT
[ "<BEGIN>\n## `_get_access_from_refresh`", "Uses the stored refresh token to get a new access token.", " This method assumes that the refresh token exists.", " Args:\n None", " Returns:\n new access token and expiration time (from now)\n<END>", "<BEGIN>\n## `_get_...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
Adds a response to the cache. Args: response: response from ESI Returns: None
"Adds a response to the cache.\n\n Args:\n response: response from ESI\n\n Returns:\n None"
76
false
Celeo/Preston
set
29,429
LDU_FT/pedroburon/tbk/event_confirmation
LDU_FT
[ "<BEGIN>\n## `token`", "Token given by Transbank for payment initialization url.", " Will raise PaymentError when an error ocurred.\n<END>", "<BEGIN>\n## `transaction_id`", "Transaction ID for Transbank, a secure random int between 0 and 999999999.\n<END>", "<BEGIN>\n## `event_payment`", "Record ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the event_confirmation 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 event_confirmation 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...
Record the confirmation event. Official handler writes this information to TBK_EVN%Y%m%d file.
"Record the confirmation event.\n\n Official handler writes this information to TBK_EVN%Y%m%d file."
25
false
pedroburon/tbk
event_confirmation
29,430
LDU_FT/pyroscope/auvyon/extract_wav
LDU_FT
[ "<BEGIN>\n## `extract_wav`", "Get LPCM 16bit audio stream from mediafile.", " If `target` is a directory, create a .wav with the same basename as the input.\n If target is empty, write to the directory of the source file. Otherwise, use it \n directly as the target filename.\n<END>", "<BE...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the extract_wav API. 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 extract_wav API. 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...
Get LPCM 16bit audio stream from mediafile. If `target` is a directory, create a .wav with the same basename as the input. If target is empty, write to the directory of the source file. Otherwise, use it directly as the target filename.
"Get LPCM 16bit audio stream from mediafile.\n \n If `target` is a directory, create a .wav with the same basename as the input.\n If target is empty, write to the directory of the source file. Otherwise, use it \n directly as the target filename."
11
false
pyroscope/auvyon
extract_wav
29,431
LDU_FT/PyCQA/pydocstyle/check
LDU_FT
[ "<BEGIN>\n## `error_lineno`", "Get the line number with which to report violations.\n<END>", "<BEGIN>\n## `source`", "Return the source code for the definition.\n<END>", "<BEGIN>\n## `is_public`", "Return True iff this function should be considered public.\n<END>", "<BEGIN>\n## `is_magic`", "Return Tr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the check API. 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 check API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
Generate docstring errors that exist in `filenames` iterable. By default, the PEP-257 convention is checked. To specifically define the set of error codes to check for, supply either `select` or `ignore` (but not both). In either case, the parameter should be a collection of error code strings, e.g., {...
"Generate docstring errors that exist in `filenames` iterable.\n\n By default, the PEP-257 convention is checked. To specifically define the\n set of error codes to check for, supply either `select` or `ignore` (but\n not both). In either case, the parameter should be a collection of error\n code strings, e...
183
false
PyCQA/pydocstyle
check
29,432
LDU_FT/peterwittek/somoclu/_hexplot
LDU_FT
[ "<BEGIN>\n## `_check_cooling_parameters`", "Helper function to verify the cooling parameters of the training.\n<END>", "<BEGIN>\n## `_hexplot`", "Internal function to plot a hexagonal map.\n<END>", "<BEGIN>\n## `load_bmus`", "Load the best matching units from a file to the Somoclu object.", " :pa...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _hexplot API. 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 _hexplot API. 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...
Internal function to plot a hexagonal map.
"Internal function to plot a hexagonal map."
55
false
peterwittek/somoclu
_hexplot
29,433
LDU_FT/ulf1/oxyba/block_idxmat_sets
LDU_FT
[ "<BEGIN>\n## `clean_german_number`", "Convert a string with a German number into a Decimal", " Parameters\n ----------\n x : str, list, tuple, numpy.ndarray, pandas.DataFrame\n A string with a number with German formatting,\n or an array of these strings, e.g. list, ndarray, df.", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the block_idxmat_sets API. 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 block_idxmat_sets API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Reshapes idxmat into the idx vectors for the training set and validation set Parameters: ----------- idxmat : ndarray Matrix with N shuffled row indicies assigned to K blocks/columns from the oxyba.block_idxmat_shuffle function b : int The id of the current validation block b=[...
"Reshapes idxmat into the idx vectors for the training set and validation set\n\n Parameters:\n -----------\n idxmat : ndarray\n Matrix with N shuffled row indicies assigned to K blocks/columns\n from the oxyba.block_idxmat_shuffle function\n\n b : int\n The id of the current validation...
218
false
ulf1/oxyba
block_idxmat_sets
29,434
LDU_FT/daler/metaseq/colormapped_bedfile
LDU_FT
[ "<BEGIN>\n## `requirements_check`", "Ensure we have programs needed to download/manipulate the data\n<END>", "<BEGIN>\n## `_up_to_date`", "Make sure md5sum(fn) == md5, and if not, delete `fn`.\n<END>", "<BEGIN>\n## `logged_command`", "helper function to log a command and then run it\n<END>", "<BEGIN>\n#...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the colormapped_bedfile 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 colormapped_bedfile 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...
Create a BED file with padj encoded as color Features will be colored according to adjusted pval (phred transformed). Downregulated features have the sign flipped. Parameters ---------- cmap : matplotlib colormap Default is matplotlib.cm.RdBu_r Notes ...
"Create a BED file with padj encoded as color\n\n Features will be colored according to adjusted pval (phred\n transformed). Downregulated features have the sign flipped.\n\n Parameters\n ----------\n cmap : matplotlib colormap\n Default is matplotlib.cm.RdBu_r\n\n ...
400
false
daler/metaseq
colormapped_bedfile
29,435
LDU_FT/plivo/sharq/_load_config
LDU_FT
[ "<BEGIN>\n## `_initialize`", "Read the SharQ configuration and set appropriate\n variables. Open a redis connection pool and load all\n the Lua scripts.\n<END>", "<BEGIN>\n## `_load_config`", "Read the configuration file and load it into memory.\n<END>", "<BEGIN>\n## `_load_lua_scripts`", "L...
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 extr...
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 extr...
Read the configuration file and load it into memory.
"Read the configuration file and load it into memory."
27
false
plivo/sharq
_load_config
29,436
LDU_FT/mitodl/mit-moira/list_attributes
LDU_FT
[ "<BEGIN>\n## `user_lists`", "Look up all the lists that the user is a member of.", " Args:\n username (str): The MIT username of the user\n member_type(str): The type of user, \"USER\" or \"STRING\"", " Returns:\n list of strings: names of the lists that this use...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the list_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 e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the list_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 e...
Look up the attributes of a list. Args: name (str): The name of the list Returns: dict: attributes of the list
"Look up the attributes of a list.\n\n Args:\n name (str): The name of the list\n\n Returns:\n dict: attributes of the list"
29
false
mitodl/mit-moira
list_attributes
29,437
LDU_FT/log2timeline/dftimewolf/load_extra_data
LDU_FT
[ "<BEGIN>\n## `setup`", "Sets up the _paths attribute.", " Args:\n paths: Comma-separated list of strings representing the paths to collect.\n<END>", "<BEGIN>\n## `process`", "Checks whether the paths exists and updates the state accordingly.\n<END>", "<BEGIN>\n## `_create_hunt`", "Create specifi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load_extra_data API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load_extra_data API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
Loads extra JSON configuration parameters from a data buffer. The data buffer must represent a JSON object. Args: data: str, the buffer to load the JSON data from.
"Loads extra JSON configuration parameters from a data buffer.\n\n The data buffer must represent a JSON object.\n\n Args:\n data: str, the buffer to load the JSON data from."
228
false
log2timeline/dftimewolf
load_extra_data
29,438
LDU_FT/jucacrispim/pylint-mongoengine/_is_custom_qs_manager
LDU_FT
[ "<BEGIN>\n## `node_is_subclass`", "Checks if cls node has parent with subclass_name.\n<END>", "<BEGIN>\n## `is_field_method`", "Checks if a call to a field instance method is valid. A call is\n valid if the call is a method of the underlying type. So, in a StringField\n the methods from str are valid, i...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _is_custom_qs_manager 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 _is_custom_qs_manager API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Checks if a function definition is a queryset manager created with the @queryset_manager decorator.
"Checks if a function definition is a queryset manager created\n with the @queryset_manager decorator."
22
false
jucacrispim/pylint-mongoengine
_is_custom_qs_manager
29,439
LDU_FT/sdispater/poetry/clean_tarinfo
LDU_FT
[ "<BEGIN>\n## `path_to_url`", "Convert a path to a file: URL. The path will be made absolute and have\n quoted path parts.\n<END>", "<BEGIN>\n## `is_installable_dir`", "Return True if `path` is a directory containing a setup.py file.\n<END>", "<BEGIN>\n## `get_requires_for_build_wheel`", "Returns a lis...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the clean_tarinfo API. 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 clean_tarinfo API. 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...
Clean metadata from a TarInfo object to make it more reproducible. - Set uid & gid to 0 - Set uname and gname to "" - Normalise permissions to 644 or 755 - Set mtime if not None
"Clean metadata from a TarInfo object to make it more reproducible.\n\n - Set uid & gid to 0\n - Set uname and gname to \"\"\n - Normalise permissions to 644 or 755\n - Set mtime if not None"
107
false
sdispater/poetry
clean_tarinfo
29,440
LDU_FT/duointeractive/sea-cucumber/_print_daily_stats
LDU_FT
[ "<BEGIN>\n## `get_boto_ses_connection`", "Shortcut for instantiating and returning a boto SESConnection object.", " :rtype: boto.ses.SESConnection\n :returns: A boto SESConnection object, from which email sending is done.\n<END>", "<BEGIN>\n## `dkim_sign`", ":returns: A signed email message if dkim pa...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _print_daily_stats 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 _print_daily_stats 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...
Prints a Today/Last 24 hour stats section.
"Prints a Today/Last 24 hour stats section."
26
false
duointeractive/sea-cucumber
_print_daily_stats
29,441
LDU_FT/portfoliome/postpy/execute_transactions
LDU_FT
[ "<BEGIN>\n## `check_extension`", "Check to see if an extension is installed.\n<END>", "<BEGIN>\n## `generate_numeric_range`", "Generate postgresql numeric range and label for insertion.", " Parameters\n ----------\n items: iterable labels for ranges.\n lower_bound: numeric lower bound\n upper...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the execute_transactions 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 execute_transactions API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Execute several statements each as a single DB transaction.
"Execute several statements each as a single DB transaction."
50
false
portfoliome/postpy
execute_transactions
29,442
LDU_FT/Fuyukai/ConfigMaster/initial_populate
LDU_FT
[ "<BEGIN>\n## `initial_populate`", "Populate a newly created config object with data.", " If it was populated, this returns True. If it wasn't, this returns False.", " It is recommended to run a .dump() and .reload() after running this.\n<END>", "<BEGIN>\n## `apply_defaults`", "Applies defaul...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the initial_populate API. 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 initial_populate API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Populate a newly created config object with data. If it was populated, this returns True. If it wasn't, this returns False. It is recommended to run a .dump() and .reload() after running this.
"Populate a newly created config object with data.\n\n If it was populated, this returns True. If it wasn't, this returns False.\n\n It is recommended to run a .dump() and .reload() after running this."
32
false
Fuyukai/ConfigMaster
initial_populate
29,443
LDU_FT/hawkular/hawkular-client-python/create_datapoint
LDU_FT
[ "<BEGIN>\n## `create_datapoint`", "Creates a single datapoint dict with a value, timestamp and tags.", " :param value: Value of the datapoint. Type depends on the id's MetricType\n :param timestamp: Optional timestamp of the datapoint. Uses client current time if not set. Millisecond accuracy. Can be date...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_datapoint API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_datapoint API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Creates a single datapoint dict with a value, timestamp and tags. :param value: Value of the datapoint. Type depends on the id's MetricType :param timestamp: Optional timestamp of the datapoint. Uses client current time if not set. Millisecond accuracy. Can be datetime instance also. :param tags: Optional ...
"Creates a single datapoint dict with a value, timestamp and tags.\n\n :param value: Value of the datapoint. Type depends on the id's MetricType\n :param timestamp: Optional timestamp of the datapoint. Uses client current time if not set. Millisecond accuracy. Can be datetime instance also.\n :param tags: Opti...
116
false
hawkular/hawkular-client-python
create_datapoint
29,444
LDU_FT/breuleux/hrepr/as_page
LDU_FT
[ "<BEGIN>\n## `hrepr_with_resources`", "This is equivalent to __call__, but performs the additional step of\n putting the set of resources required to properly display the object\n in the _resources property of the return value.\n<END>", "<BEGIN>\n## `acquire_resources`", "Store the resources ret...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the as_page API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the as_page API. 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...
Wrap this Tag as a self-contained webpage. Create a page with the following structure: .. code-block:: html <!DOCTYPE html> <html> <head> <meta http-equiv="Content-type" content="text/html" charset="UTF-8...
"Wrap this Tag as a self-contained webpage. Create a page with\n the following structure:\n\n .. code-block:: html\n\n <!DOCTYPE html>\n <html>\n <head>\n <meta http-equiv=\"Content-type\"\n content=\"text/html\"\n ...
32
false
breuleux/hrepr
as_page
29,445
LDU_FT/CamDavidsonPilon/tdigest/update_centroids_from_list
LDU_FT
[ "<BEGIN>\n## `update`", "Update the t-digest with value x and weight w.\n<END>", "<BEGIN>\n## `batch_update`", "Update the t-digest with an iterable of values. This assumes all points have the\n same weight.\n<END>", "<BEGIN>\n## `percentile`", "Computes the percentile of a specific value in [0,100...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update_centroids_from_list API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclus...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update_centroids_from_list API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclus...
Add or update Centroids from a Python list. Any existing centroids in the digest object are appropriately updated. Example: digest.update_centroids([{'c': 1.0, 'm': 1.0}, {'c': 1.0, 'm': 2.0}, {'c': 1.0, 'm': 3.0}])
"Add or update Centroids from a Python list.\n Any existing centroids in the digest object are appropriately updated.\n\n Example:\n digest.update_centroids([{'c': 1.0, 'm': 1.0}, {'c': 1.0, 'm': 2.0}, {'c': 1.0, 'm': 3.0}])"
24
false
CamDavidsonPilon/tdigest
update_centroids_from_list
29,446
LDU_FT/ox-it/django-conneg/renderer
LDU_FT
[ "<BEGIN>\n## `process_response`", "Adds WWW-Authenticate: Basic headers to 401 responses, and rewrites\n redirects the login page to be 401 responses if it's a non-browser\n agent.\n<END>", "<BEGIN>\n## `get_renderers`", "Returns a list of renderer functions in the order they should be tried.", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the renderer API. 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 renderer API. 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...
Decorates a view method to say that it renders a particular format and mimetypes. Use as: @renderer(format="foo") def render_foo(self, request, context, template_name): ... or @renderer(format="foo", mimetypes=("application/x-foo",)) def render_foo(self, request, context, templa...
"Decorates a view method to say that it renders a particular format and mimetypes.\n\n Use as:\n @renderer(format=\"foo\")\n def render_foo(self, request, context, template_name): ...\n or\n @renderer(format=\"foo\", mimetypes=(\"application/x-foo\",))\n def render_foo(self, request, c...
24
false
ox-it/django-conneg
renderer
29,447
LDU_FT/spotify/docker_interface/apply
LDU_FT
[ "<BEGIN>\n## `abspath`", "Create an absolute path.", " Parameters\n ----------\n path : str\n absolute or relative path with respect to `ref`\n ref : str or None\n reference path if `path` is relative", " Returns\n -------\n path : str\n absolute path", " Raises\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the apply API. 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 apply API. 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...
Apply the plugin to the configuration. Inheriting plugins should implement this method to add additional functionality. Parameters ---------- configuration : dict configuration schema : dict JSON schema args : argparse.NameSpace parse...
"Apply the plugin to the configuration.\n\n Inheriting plugins should implement this method to add additional functionality.\n\n Parameters\n ----------\n configuration : dict\n configuration\n schema : dict\n JSON schema\n args : argparse.NameSpace\n ...
82
false
spotify/docker_interface
apply
29,448
LDU_FT/couchbase/couchbase-python-client/from_any
LDU_FT
[ "<BEGIN>\n## `set_json_converters`", "Modify the default JSON conversion functions. This affects all\n :class:`~couchbase.bucket.Bucket` instances.", " These functions will called instead of the default ones (``json.dumps``\n and ``json.loads``) to encode and decode JSON (when :const:`FMT_JSON` is\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the from_any API. 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 from_any API. 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...
Ensure the current object is an index. Always returns a new object :param obj: string or IndexInfo object :param bucket: The bucket name :return: A new IndexInfo object
"Ensure the current object is an index. Always returns a new object\n :param obj: string or IndexInfo object\n :param bucket: The bucket name\n :return: A new IndexInfo object"
806
false
couchbase/couchbase-python-client
from_any
29,449
LDU_FT/rembish/cfb/next_fat
LDU_FT
[ "<BEGIN>\n## `raise_if`", "If current exception has smaller priority than minimum, subclass of\n this class only warns user, otherwise normal exception will be raised.\n<END>", "<BEGIN>\n## `root`", "Property provides access to root object in CFB.\n<END>", "<BEGIN>\n## `next_fat`", "Helper gives yo...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the next_fat API. 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 next_fat API. 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...
Helper gives you seekable position of next FAT sector. Should not be called from external code.
"Helper gives you seekable position of next FAT sector. Should not be\n called from external code."
26
false
rembish/cfb
next_fat
29,450
LDU_FT/amcat/amcatclient/request
LDU_FT
[ "<BEGIN>\n## `serialize`", "JSON serializer that accepts datetime & date\n<END>", "<BEGIN>\n## `check`", "Check whether the status code of the response equals expected_status and\n raise an APIError otherwise.\n @param url: The url of the response (for error messages).\n Defaults to respo...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the request API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the request API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
Make an HTTP request to the given relative URL with the host, user, and password information. Returns the deserialized json if successful, and raises an exception otherwise
"Make an HTTP request to the given relative URL with the host,\n user, and password information. Returns the deserialized json\n if successful, and raises an exception otherwise"
24
false
amcat/amcatclient
request
29,451
LDU_FT/bambinos/bambi/reset
LDU_FT
[ "<BEGIN>\n## `reset`", "Reset PyMC3 model and all tracked distributions and parameters.\n<END>", "<BEGIN>\n## `build`", "Compile the PyMC3 model from an abstract model specification.\n Args:\n spec (Model): A bambi Model instance containing the abstract\n specification of the ...
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 Stan model and all tracked distributions and parameters.
"Reset Stan model and all tracked distributions and parameters."
88
false
bambinos/bambi
reset
29,452
LDU_FT/TUNE-Archive/freight_forwarder/port_bindings
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 port_bindings API. 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 port_bindings API. 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...
{ u'8080/tcp': [ { u'host_port': u'8080', u'host_ip': u'' } ] }
"{\n u'8080/tcp': [\n {\n u'host_port': u'8080',\n u'host_ip': u''\n }\n ]\n }"
132
false
TUNE-Archive/freight_forwarder
port_bindings
29,453
LDU_FT/ronhanson/python-tbx/safe_info
LDU_FT
[ "<BEGIN>\n## `static_singleton`", "STATIC Singleton Design Pattern Decorator\n Class is initialized with arguments passed into the decorator.", " :Usage: \n >>> @static_singleton('yop')\n class Bob(Person):\n def __init__(arg1):\n self.info = arg1\n def says...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the safe_info API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the safe_info API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
Returns public information of the object
"Returns public information of the object"
85
false
ronhanson/python-tbx
safe_info
29,454
LDU_FT/mgaitan/waliki/get_module
LDU_FT
[ "<BEGIN>\n## `clean_meta`", "remove moinmoin metada from the top of the file\n<END>", "<BEGIN>\n## `entry_point`", "include an snippet at the bottom of a block, if it exists", " For example, if the plugin with slug 'attachments' is registered", " waliki/attachments_edit_content.html will be incl...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_module API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_module API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
Internal function to load a module from a single app. taken from https://github.com/ojii/django-load.
"Internal function to load a module from a single app.\n\n taken from https://github.com/ojii/django-load."
38
false
mgaitan/waliki
get_module
29,455
LDU_FT/BlueBrain/hpcbench/commands
LDU_FT
[ "<BEGIN>\n## `arguments`", "Dictionary providing the list of arguments for every\n benchmark\n<END>", "<BEGIN>\n## `run`", "Execute benchmarks on every node specified in arguments.\n If none are given, then execute benchmarks on every nodes\n specified in the ``network.nodes`` campaign co...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the commands API. 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 commands API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
Get all commands of the benchmark category :return generator of string
"Get all commands of the benchmark category\n\n :return generator of string"
216
false
BlueBrain/hpcbench
commands
29,456
LDU_FT/chaoss/grimoirelab-sortinghat/run
LDU_FT
[ "<BEGIN>\n## `run`", "List, add or delete entries from the blacklist.", " By default, it prints the list of entries available on\n the blacklist.\n<END>", "<BEGIN>\n## `add`", "Add entries to the blacklist.", " This method adds the given 'entry' to the blacklist.", " :param e...
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...
Move an identity into a unique identity.
"Move an identity into a unique identity."
700
false
chaoss/grimoirelab-sortinghat
run
29,457
LDU_FT/Netflix-Skunkworks/swag-client/validate_type
LDU_FT
[ "<BEGIN>\n## `create_swag_from_ctx`", "Creates SWAG client from the current context.\n<END>", "<BEGIN>\n## `list_service`", "Retrieve accounts pertaining to named service.\n<END>", "<BEGIN>\n## `migrate`", "Transition from one SWAG schema to another.\n<END>", "<BEGIN>\n## `propagate`", "Transfers SWAG...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the validate_type API. 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 validate_type API. 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...
Performs field validation against the schema context if values have been provided to SWAGManager via the swag.schema_context config object. If the schema context for a given field is empty, then we assume any value is valid for the given schema field.
"Performs field validation against the schema context\n if values have been provided to SWAGManager via the\n swag.schema_context config object.\n\n If the schema context for a given field is empty, then\n we assume any value is valid for the given schema field."
48
false
Netflix-Skunkworks/swag-client
validate_type
29,458
LDU_FT/zyga/python-glibc/_candidate_tempdir_list
LDU_FT
[ "<BEGIN>\n## `_get_fd`", "Get a descriptor out of a file object.", " :param fileobj:\n An integer (existing descriptor) or any object having the `fileno()`\n method.\n :raises ValueError:\n if the descriptor cannot be obtained or if the descriptor is invalid\n :returns:\n fi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _candidate_tempdir_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...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _candidate_tempdir_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...
Generate a list of candidate temporary directories which _get_default_tempdir will try.
"Generate a list of candidate temporary directories which\n _get_default_tempdir will try."
106
false
zyga/python-glibc
_candidate_tempdir_list
29,459
LDU_FT/rnwolf/jira-metrics-extract/iter_size_changes
LDU_FT
[ "<BEGIN>\n## `to_datetime`", "Turn a date into a datetime at midnight.\n<END>", "<BEGIN>\n## `iter_size_changes`", "Yield an IssueSnapshot for each time the issue size changed\n<END>", "<BEGIN>\n## `iter_changes`", "Yield an IssueSnapshot for each time the issue changed status or\n resolution\n<END...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the iter_size_changes API. 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 iter_size_changes API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Yield an IssueSnapshot for each time the issue size changed
"Yield an IssueSnapshot for each time the issue size changed"
31
false
rnwolf/jira-metrics-extract
iter_size_changes
29,460
LDU_FT/galaxyproject/gravity/register_config_changes
LDU_FT
[ "<BEGIN>\n## `__load_state`", "Read persisted state from the JSON statefile\n<END>", "<BEGIN>\n## `_register_config_file`", "Persist a newly added config file, or update (overwrite) the value\n of a previously persisted config.\n<END>", "<BEGIN>\n## `_deregister_config_file`", "Deregister a previou...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the register_config_changes 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 register_config_changes API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion...
Persist config changes to the JSON state file. When a config changes, a process manager may perform certain actions based on these changes. This method can be called once the actions are complete.
"Persist config changes to the JSON state file. When a config\n changes, a process manager may perform certain actions based on these\n changes. This method can be called once the actions are complete."
26
false
galaxyproject/gravity
register_config_changes
29,461
LDU_FT/thespacedoctor/tastic/done
LDU_FT
[ "<BEGIN>\n## `projects`", "*All child projects of this taskpaper object*", " **Usage:**", " Given a taskpaper document object (`doc`), to get a list of the project objects found within the document use:", " .. code-block:: python", " docProjects = doc.projects",...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the done API. 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 done API. 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...
*mark this object as done* **Key Arguments:** - ``depth`` -- either mark root item as done or all recursive items. Default *"root"*. ["root"|"all"] **Usage:** To mark a task or project as done" .. code-block:: python aTask.done() Or o...
"*mark this object as done*\n\n **Key Arguments:**\n - ``depth`` -- either mark root item as done or all recursive items. Default *\"root\"*. [\"root\"|\"all\"]\n\n **Usage:**\n\n To mark a task or project as done\"\n\n .. code-block:: python\n\n aTask.done(...
285
false
thespacedoctor/tastic
done
29,462
LDU_FT/square/pylink/memory_write32
LDU_FT
[ "<BEGIN>\n## `main`", "Prints the core's information.", " Args:\n jlink_serial (str): the J-Link serial number\n device (str): the target CPU", " Returns:\n Always returns ``0``.", " Raises:\n JLinkException: on error\n<END>", "<BEGIN>\n## `acquire`", "Attempts to acquire a ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the memory_write32 API. 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 memory_write32 API. 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...
Writes words to memory of a target system. Args: self (JLink): the ``JLink`` instance addr (int): start address to write to data (list): list of words to write zone (str): optional memory zone to access Returns: Number of words written to target. ...
"Writes words to memory of a target system.\n\n Args:\n self (JLink): the ``JLink`` instance\n addr (int): start address to write to\n data (list): list of words to write\n zone (str): optional memory zone to access\n\n Returns:\n Number of words written to tar...
949
false
square/pylink
memory_write32
29,463
LDU_FT/fake-name/WebRequest/solve_simple_captcha
LDU_FT
[ "<BEGIN>\n## `getFileAndName`", "Give a requested page (note: the arguments for this call are forwarded to getpage()),\n\t\treturn the content at the target URL and the filename for the target content as a\n\t\t2-tuple (pgctnt, hName) for the content at the target URL.", "\t\tThe filename specified in the conte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the solve_simple_captcha 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 solve_simple_captcha API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Upload a image (from disk or a bytearray), and then block until the captcha has been solved. Return value is the captcha result. either pathfile OR filedata should be specified. Filename is ignored (and is only kept for compatibility with the 2captcha solver interface) Failure will result in a subclass of W...
"Upload a image (from disk or a bytearray), and then\n\t\tblock until the captcha has been solved.\n\t\tReturn value is the captcha result.\n\n\t\teither pathfile OR filedata should be specified. Filename is ignored (and is\n\t\tonly kept for compatibility with the 2captcha solver interface)\n\n\t\tFailure will result ...
66
false
fake-name/WebRequest
solve_simple_captcha
29,464
LDU_FT/inveniosoftware/invenio-communities/index
LDU_FT
[ "<BEGIN>\n## `format_item`", "Render a template to a string with the provided item in context.\n<END>", "<BEGIN>\n## `index`", "Index page with uploader and list of existing depositions.\n<END>", "<BEGIN>\n## `generic_item`", "Index page with uploader and list of existing depositions.\n<END>", "<BEGIN>\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the index API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the index API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
Index page with uploader and list of existing depositions.
"Index page with uploader and list of existing depositions."
89
false
inveniosoftware/invenio-communities
index
29,465
LDU_FT/fredRos/pypmc/patch_data
LDU_FT
[ "<BEGIN>\n## `r_value`", "Calculate the Gelman-Rubin R value (Chapter 2.2 in [GR92]_).", " The R value can be used to quantify mixing of \"multiple iterative\n simulations\" (e.g. Markov Chains) in parameter space. An R value\n \"close to one\" indicates that all chains explored the same region\n o...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the patch_data API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the patch_data API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
Patch ``data`` (for example Markov chain output) into parts of length ``L``. Return a Gaussian mixture where each component gets the empirical mean and covariance of one patch. :param data: Matrix-like array; the points to be patched. Expect ``data[i]`` as the d-dimensional i-th point. ...
"Patch ``data`` (for example Markov chain output) into parts of\n length ``L``. Return a Gaussian mixture where each component gets\n the empirical mean and covariance of one patch.\n\n :param data:\n\n Matrix-like array; the points to be patched. Expect ``data[i]``\n as the d-dimensional i-th po...
279
false
fredRos/pypmc
patch_data
29,466
LDU_FT/bloomberg/bqplot/ohlc
LDU_FT
[ "<BEGIN>\n## `register_mark`", "Returns a decorator registering a mark class in the mark type registry.", " If no key is provided, the class name is used as a key. A key is provided\n for each core bqplot mark so that the frontend can use\n this key regardless of the kernel language.\n<END>", "<BEGIN...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the ohlc API. 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 ohlc API. 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 OHLC bars or candle bars in the current context figure. Signature: `ohlc(x, y, **kwargs)` or `ohlc(y, **kwargs)`, depending of the length of the list of positional arguments. In the case where the `x` array is not provided Parameters ---------- x: numpy.ndarray or list, 1d (optional) ...
"Draw OHLC bars or candle bars in the current context figure.\n\n Signature: `ohlc(x, y, **kwargs)` or `ohlc(y, **kwargs)`, depending of the\n length of the list of positional arguments. In the case where the `x` array\n is not provided\n\n Parameters\n ----------\n x: numpy.ndarray or list, 1d (optio...
142
false
bloomberg/bqplot
ohlc
29,467
LDU_FT/sbg/sevenbridges-python/query
LDU_FT
[ "<BEGIN>\n## `query`", "Query (List) tasks. Date parameters may be both strings and python date\n objects.\n :param project: Target project. optional.\n :param status: Task status.\n :param batch: Only batch tasks.\n :param parent: Parent batch task identifier.\n :param e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the query API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the query API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
Query (List) automation runs. :param name: Automation run name :param automation: Automation template :param package: Package :param status: Run status :param created_by: Username of user that created the run :param order_by: Property by which to order results :pa...
"Query (List) automation runs.\n :param name: Automation run name\n :param automation: Automation template\n :param package: Package\n :param status: Run status\n :param created_by: Username of user that created the run\n :param order_by: Property by which to order results\n ...
292
false
sbg/sevenbridges-python
query
29,468
LDU_FT/ShadowBlip/Neteria/send_datagram
LDU_FT
[ "<BEGIN>\n## `listen`", "Starts the client listener to listen for server responses.", " Args:\n None", " Returns:\n None\n<END>", "<BEGIN>\n## `retransmit`", "Processes messages that have been delivered from the transport\n protocol.", " Args:\n dat...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the send_datagram API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the send_datagram API. 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...
Sends a UDP datagram packet to the requested address. Datagrams can be sent as a "unicast", "multicast", or "broadcast" message. Unicast messages are messages that will be sent to a single host, multicast messages will be delivered to all hosts listening for multicast messages, and broa...
"Sends a UDP datagram packet to the requested address.\n\n Datagrams can be sent as a \"unicast\", \"multicast\", or \"broadcast\"\n message. Unicast messages are messages that will be sent to a single\n host, multicast messages will be delivered to all hosts listening for\n multicast messag...
122
false
ShadowBlip/Neteria
send_datagram
29,469
LDU_FT/DolphDev/pynationstates/send_telegram
LDU_FT
[ "<BEGIN>\n## `_get_shard`", "Dynamically Builds methods to query shard with proper with arg and kwargs support\n<END>", "<BEGIN>\n## `request`", "Request the API", " This method is wrapped by similar functions\n<END>", "<BEGIN>\n## `command`", "Method Interface to the command API for Nationsta...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the send_telegram API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the send_telegram API. 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...
Sends Telegram. Can either provide a telegram directly, or provide the api details and created internally
"Sends Telegram. Can either provide a telegram directly, or provide the api details and created internally"
17
false
DolphDev/pynationstates
send_telegram
29,470
LDU_FT/aisthesis/pynance/growth
LDU_FT
[ "<BEGIN>\n## `optimize`", "Return parameters for portfolio optimization.", " Parameters\n ----------\n exp_rets : ndarray\n Vector of expected returns for each investment..\n covs : ndarray\n Covariance matrix for the given investments.", " Returns\n ---------\n a : ndarray\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the growth API. 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 growth API. 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 ...
Generate a DataFrame where the sole column, 'Growth', is the growth for the equity over the given number of sessions. For example, if 'XYZ' has 'Adj Close' of `100.0` on 2014-12-15 and `90.0` 4 *sessions* later on 2014-12-19, then the 'Growth' value for 2014-12-19 will be `0.9`. Parameters ...
"Generate a DataFrame where the sole column, 'Growth',\n is the growth for the equity over the given number of sessions.\n \n For example, if 'XYZ' has 'Adj Close' of `100.0` on 2014-12-15 and \n `90.0` 4 *sessions* later on 2014-12-19, then the 'Growth' value\n for 2014-12-19 will be `0.9`.\n\n Param...
231
false
aisthesis/pynance
growth
29,471
LDU_FT/mfussenegger/cr8/_verify_ssl_from_first
LDU_FT
[ "<BEGIN>\n## `to_int`", "converts a string to an integer", " >>> to_int('1_000_000')\n 1000000", " >>> to_int('1e6')\n 1000000", " >>> to_int('1000')\n 1000\n<END>", "<BEGIN>\n## `dicts_from_lines`", "returns a generator producing dicts from json lines", " 1 JSON object per line i...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _verify_ssl_from_first API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _verify_ssl_from_first API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
Check if SSL validation parameter is passed in URI >>> _verify_ssl_from_first(['https://myhost:4200/?verify_ssl=false']) False >>> _verify_ssl_from_first(['https://myhost:4200/']) True >>> _verify_ssl_from_first([ ... 'https://h1:4200/?verify_ssl=False', ... 'https://h2:4200/?ve...
"Check if SSL validation parameter is passed in URI\n\n >>> _verify_ssl_from_first(['https://myhost:4200/?verify_ssl=false'])\n False\n\n >>> _verify_ssl_from_first(['https://myhost:4200/'])\n True\n\n >>> _verify_ssl_from_first([\n ... 'https://h1:4200/?verify_ssl=False',\n ... 'https://...
146
false
mfussenegger/cr8
_verify_ssl_from_first
29,472