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/atztogo/phono3py/_get_I
LDU_FT
[ "<BEGIN>\n## `diagonalize_collision_matrix`", "Diagonalize collision matrices.", " Note\n ----\n collision_matricies is overwritten by eigenvectors.", " Parameters\n ----------\n collision_matricies : ndarray, optional\n Collision matrix. This ndarray has to have the following size an...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_I API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_I API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Return I matrix in Chaput's PRL paper. None is returned if I is zero matrix.
"Return I matrix in Chaput's PRL paper.\n\n None is returned if I is zero matrix."
69
false
atztogo/phono3py
_get_I
8,073
LDU_FT/tobami/littlechef/_remove_remote_data_bags
LDU_FT
[ "<BEGIN>\n## `save_config`", "Saves node configuration\n if no nodes/hostname.json exists, or force=True, it creates one\n it also saves to tmp_node.json\n<END>", "<BEGIN>\n## `_get_ipaddress`", "Adds the ipaddress attribute to the given node object if not already\n present and it is correctly given ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _remove_remote_data_bags API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _remove_remote_data_bags API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio...
Remove remote data bags, so it won't leak any sensitive information
"Remove remote data bags, so it won't leak any sensitive information"
96
false
tobami/littlechef
_remove_remote_data_bags
8,074
LDU_FT/dmlc/xgboost/plot_importance
LDU_FT
[ "<BEGIN>\n## `init`", "Initialize the rabit library with arguments\n<END>", "<BEGIN>\n## `tracker_print`", "Print message to the tracker.", " This function can be used to communicate the information of\n the progress to the tracker", " Parameters\n ----------\n msg : str\n The messag...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the plot_importance API. 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 plot_importance API. 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...
Plot importance based on fitted trees. Parameters ---------- booster : Booster, XGBModel or dict Booster or XGBModel instance, or dict taken by Booster.get_fscore() ax : matplotlib Axes, default None Target axes instance. If None, new figure and axes will be created. grid : bool, Tu...
"Plot importance based on fitted trees.\n\n Parameters\n ----------\n booster : Booster, XGBModel or dict\n Booster or XGBModel instance, or dict taken by Booster.get_fscore()\n ax : matplotlib Axes, default None\n Target axes instance. If None, new figure and axes will be created.\n grid :...
276
false
dmlc/xgboost
plot_importance
8,075
LDU_FT/zarr-developers/zarr/empty
LDU_FT
[ "<BEGIN>\n## `group`", "Create a group.", " Parameters\n ----------\n store : MutableMapping or string, optional\n Store or path to directory in file system.\n overwrite : bool, optional\n If True, delete any pre-existing data in `store` at `path` before\n creating the group.\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the empty API. 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 empty API. 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...
Create an array. Keyword arguments as per :func:`zarr.creation.empty`.
"Create an array. Keyword arguments as per\n :func:`zarr.creation.empty`."
436
false
zarr-developers/zarr
empty
8,076
LDU_FT/floydhub/floyd-cli/clone
LDU_FT
[ "<BEGIN>\n## `init`", "Initialize new project at the current path.", " After this you can run other FloydHub commands like status and run.\n<END>", "<BEGIN>\n## `status`", "View status of all jobs in a project.", " The command also accepts a specific job name.\n<END>", "<BEGIN>\n## `print_experime...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the clone API. 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 clone API. 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...
- Download all files from a job Eg: alice/projects/mnist/1/ Note: This will download the files that were originally uploaded at the start of the job. - Download files in a specific path from a job Specify the path to a directory and download all its files and subdirectories. Eg: --path mode...
"- Download all files from a job\n\n Eg: alice/projects/mnist/1/\n\n Note: This will download the files that were originally uploaded at\n the start of the job.\n\n - Download files in a specific path from a job\n\n Specify the path to a directory and download all its files and subdirectories.\n\n Eg:...
84
false
floydhub/floyd-cli
clone
8,077
LDU_FT/ansible/ansible-runner/host_events
LDU_FT
[ "<BEGIN>\n## `get_contents`", "Loads the contents of the file specified by path", " Args:\n path (string): The relative or absolute path to the file to\n be loaded. If the path is relative, then it is combined\n with the base_path to generate a full path string",...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the host_events API. 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 host_events API. 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...
Given a host name, this will return all task events executed on that host
"Given a host name, this will return all task events executed on that host"
83
false
ansible/ansible-runner
host_events
8,078
LDU_FT/iopipe/iopipe-python/run_hooks
LDU_FT
[ "<BEGIN>\n## `upload_profiler_report`", "Uploads a profiler report to IOpipe", " :param url: The signed URL\n :param filename: The profiler report file\n :param config: The IOpipe config\n<END>", "<BEGIN>\n## `read_pid_stat`", "Mocks read_pid_stat as this is a Linux-specific operation.\n<END>", "...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the run_hooks API. 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 run_hooks API. 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...
Runs plugin hooks for each registered plugin.
"Runs plugin hooks for each registered plugin."
93
false
iopipe/iopipe-python
run_hooks
8,079
LDU_FT/GoogleCloudPlatform/appengine-gcs-client/compose_object
LDU_FT
[ "<BEGIN>\n## `check_status`", "Check HTTP response status is expected.", " Args:\n status: HTTP response status. int.\n expected: a list of expected statuses. A list of ints.\n path: filename or a path prefix.\n headers: HTTP request headers.\n resp_headers: HTTP response headers.\n body: HTT...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the compose_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 ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the compose_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 ex...
COMPOSE multiple objects together. Using the given list of files, calls the put object with the compose flag. This call merges all the files into the destination file. Args: file_list: list of dicts with the file name. destination_file: Path to the destination file. content_type: Content...
"COMPOSE multiple objects together.\n\n Using the given list of files, calls the put object with the compose flag.\n This call merges all the files into the destination file.\n\n Args:\n file_list: list of dicts with the file name.\n destination_file: Path to the destination file.\n content_type...
270
false
GoogleCloudPlatform/appengine-gcs-client
compose_object
8,080
LDU_FT/CivicSpleen/ckcache/verify
LDU_FT
[ "<BEGIN>\n## `put`", "Copy a file to the repository", " Args:\n source: Absolute path to the source file, or a file-like object\n rel_path: path relative to the root of the repository\n<END>", "<BEGIN>\n## `put_stream`", "return a file object to write into the cache. The caller\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the verify API. 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 verify API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Check that the database accurately describes the state of the repository
"Check that the database accurately describes the state of the repository"
70
false
CivicSpleen/ckcache
verify
8,081
LDU_FT/beregond/super_state_machine/force_set
LDU_FT
[ "<BEGIN>\n## `can_be_`", "Check if machine can transit to given state.\n<END>", "<BEGIN>\n## `force_set`", "Set new state without checking if transition is allowed.\n<END>", "<BEGIN>\n## `translate`", "Translate value to enum instance.", " If value is already enum instance, check if this value be...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the force_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 extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the force_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 extract...
Set new state without checking if transition is allowed.
"Set new state without checking if transition is allowed."
21
false
beregond/super_state_machine
force_set
8,082
LDU_FT/edoburu/sphinxcontrib-django/_add_form_fields
LDU_FT
[ "<BEGIN>\n## `setup`", "Allow this module to be used as sphinx extension.\n This attaches the Sphinx hooks.", " :type app: sphinx.application.Sphinx\n<END>", "<BEGIN>\n## `patch_django_for_autodoc`", "Fix the appearance of some classes in autodoc.", " This avoids query evaluation.\n<END>", "<BE...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _add_form_fields API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _add_form_fields API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Improve the documentation of a Django Form class. This highlights the available fields in the form.
"Improve the documentation of a Django Form class.\n\n This highlights the available fields in the form."
30
false
edoburu/sphinxcontrib-django
_add_form_fields
8,083
LDU_FT/radujica/baloo/weld_udf
LDU_FT
[ "<BEGIN>\n## `evaluate`", "Evaluates by creating an Index containing evaluated data.", " See `LazyResult`", " Returns\n -------\n Index\n Index with evaluated data.\n<END>", "<BEGIN>\n## `raw`", "Decorator for eager functions checking input array\n and stripping a...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the weld_udf API. 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 weld_udf API. 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...
Create WeldObject to encode weld_template code given mapping. Parameters ---------- weld_template : str Weld code to encode. mapping : dict Which substitutions to make in the weld_template. Returns ------- WeldObject Representation of this computation.
"Create WeldObject to encode weld_template code given mapping.\n\n Parameters\n ----------\n weld_template : str\n Weld code to encode.\n mapping : dict\n Which substitutions to make in the weld_template.\n\n Returns\n -------\n WeldObject\n Representation of this computation."
478
false
radujica/baloo
weld_udf
8,084
LDU_FT/openpaperwork/paperwork-backend/write
LDU_FT
[ "<BEGIN>\n## `examine_rootdir`", "Examine the rootdir.\n Calls on_new_doc(doc), on_doc_modified(doc), on_doc_deleted(docid)\n every time a new, modified, or deleted document is found\n<END>", "<BEGIN>\n## `reload_index`", "Read the index, and load the document list from it", " Arguments...
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...
Rewrite the configuration file. It rewrites the same file than PaperworkConfig.read() read.
"Rewrite the configuration file. It rewrites the same file than\n PaperworkConfig.read() read."
171
false
openpaperwork/paperwork-backend
write
8,085
LDU_FT/codenerix/django-codenerix/context_processors_update
LDU_FT
[ "<BEGIN>\n## `get_groups`", "<--------------------------------------- 12 columns ------------------------------------>\n <--- 6 columns ---> <--- 6 columns --->\n ------------------------------------------ ------------------------------------------\n |...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the context_processors_update API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the context_processors_update API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi...
Update context with context_processors from settings Usage: from codenerix.helpers import context_processors_update context_processors_update(context, self.request)
"Update context with context_processors from settings\n Usage:\n from codenerix.helpers import context_processors_update\n context_processors_update(context, self.request)"
82
false
codenerix/django-codenerix
context_processors_update
8,086
LDU_FT/ciena/afkak/_complete_batch_send
LDU_FT
[ "<BEGIN>\n## `_coerce_topic`", "Ensure that the topic name is text string of a valid length.", " :param topic: Kafka topic name. Valid characters are in the set ``[a-zA-Z0-9._-]``.\n :raises ValueError: when the topic name exceeds 249 bytes\n :raises TypeError: when the topic is not :class:`unicode` or...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _complete_batch_send 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 _complete_batch_send API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Complete the processing of our batch send operation Clear the deferred tracking our current batch processing and reset our retry count and retry interval Return none to eat any errors coming from up the deferred chain
"Complete the processing of our batch send operation\n\n Clear the deferred tracking our current batch processing\n and reset our retry count and retry interval\n Return none to eat any errors coming from up the deferred chain"
326
false
ciena/afkak
_complete_batch_send
8,087
LDU_FT/zkbt/the-friendly-stars/plot
LDU_FT
[ "<BEGIN>\n## `from_coordinates`", "Iniitalize a constellation object.", " Parameters\n ----------", " ra, dec, distance, pm_ra_cosdec, pm_dec, radial_velocity\n These must be able to initialize a SkyCoord.\n id : list, array\n Identifications for the entries.\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the plot API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the plot API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
Plot the ra and dec of the coordinates, at a given epoch, scaled by their magnitude. (This does *not* create a new empty figure.) Parameters ---------- sizescale : (optional) float The marker size for scatter for a star at the magnitudelimit. color : (option...
"Plot the ra and dec of the coordinates,\n at a given epoch, scaled by their magnitude.\n\n (This does *not* create a new empty figure.)\n\n Parameters\n ----------\n sizescale : (optional) float\n The marker size for scatter for a star at the magnitudelimit.\n color...
52
false
zkbt/the-friendly-stars
plot
8,088
LDU_FT/Chilipp/psy-simple/convert_radian
LDU_FT
[ "<BEGIN>\n## `try_and_error`", "Apply multiple validation functions", " Parameters\n ----------\n ``*funcs``\n Validation functions to test", " Returns\n -------\n function\n<END>", "<BEGIN>\n## `validate_text`", "Validate a text formatoption", " Parameters\n ----------\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the convert_radian API. 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 convert_radian API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
Convert the given coordinate from radian to degree Parameters ---------- coord: xr.Variable The variable to transform ``*variables`` The variables that are on the same unit. Returns ------- xr.Variable The transformed variable if one of the given `variables` has uni...
"Convert the given coordinate from radian to degree\n\n Parameters\n ----------\n coord: xr.Variable\n The variable to transform\n ``*variables``\n The variables that are on the same unit.\n\n Returns\n -------\n xr.Variable\n The transformed variable if one of the given `varia...
183
false
Chilipp/psy-simple
convert_radian
8,089
LDU_FT/Legobot/Legobot/handle
LDU_FT
[ "<BEGIN>\n## `connect`", "Connect to a server.", " This overrides the function in SimpleIRCClient\n to provide SSL functionality.", " :param args:\n :param kwargs:\n :return:\n<END>", "<BEGIN>\n## `set_metadata`", "This function sets the metadata that is common between p...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the handle API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the handle API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Attempts to send a message to the specified destination in Slack. Extends Legobot.Lego.handle() Args: message (Legobot.Message): message w/ metadata to send.
"Attempts to send a message to the specified destination in Slack.\n Extends Legobot.Lego.handle()\n\n Args:\n message (Legobot.Message): message w/ metadata to send."
119
false
Legobot/Legobot
handle
8,090
LDU_FT/StellarCN/py-stellar-base/add_operation
LDU_FT
[ "<BEGIN>\n## `get`", "Retrieve the account data that corresponds to this :class:`Address`.", " Retrieve the account data from Horizon for the account that corresponds\n to this :class:`Address`. Attempt to retrieve the following attributes\n from Horizon:", " * Sequence Number\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_operation API. 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 add_operation API. 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...
Add an :class:`Operation <stellar_base.operation.Operation>` to this transaction. This method will only add an operation if it is not already in the transaction's list of operations, i.e. every operation in the transaction should be unique. :param Operation operation: The opera...
"Add an :class:`Operation <stellar_base.operation.Operation>` to\n this transaction.\n\n This method will only add an operation if it is not already in the\n transaction's list of operations, i.e. every operation in the\n transaction should be unique.\n\n :param Operation operation: T...
411
false
StellarCN/py-stellar-base
add_operation
8,091
LDU_FT/timmahrt/ProMo/textgridMorphDuration
LDU_FT
[ "<BEGIN>\n## `plotF0`", "Plots the original data in a graph above the plot of the dtw'ed data\n<END>", "<BEGIN>\n## `f0Morph`", "Resynthesizes the pitch track from a source to a target wav file", " fromPitchData and toPitchData should be segmented according to the\n portions that you want to morph. T...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the textgridMorphDuration 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 textgridMorphDuration API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
A convenience function. Morphs interval durations of one tg to another. This assumes the two textgrids have the same number of segments.
"A convenience function. Morphs interval durations of one tg to another.\n \n This assumes the two textgrids have the same number of segments."
75
false
timmahrt/ProMo
textgridMorphDuration
8,092
LDU_FT/materials-data-facility/toolbox/_field
LDU_FT
[ "<BEGIN>\n## `login`", "Log in to Globus services", " Arguments:\n credentials (str or dict): A string filename, string JSON, or dictionary\n with credential and config information.\n By default, looks in ``~/mdf/credentials/globus_login.json``.\n Contains ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _field API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _field API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Add a ``field:value`` term to the query. Matches will have the ``value`` in the ``field``. Note: This method triggers advanced mode. Arguments: field (str): The field to check for the value, in Elasticsearch dot syntax. value (str): The value to match. ...
"Add a ``field:value`` term to the query.\n Matches will have the ``value`` in the ``field``.\n\n Note:\n This method triggers advanced mode.\n\n Arguments:\n field (str): The field to check for the value, in Elasticsearch dot syntax.\n value (str): The value to mat...
173
false
materials-data-facility/toolbox
_field
8,093
LDU_FT/croscon/fleaker/post_create_app
LDU_FT
[ "<BEGIN>\n## `install`", "Install Fleaker.", " In a function so we can protect this file so it's only run when we\n explicitly invoke it and not, say, when py.test collects all Python\n modules.\n<END>", "<BEGIN>\n## `python_value`", "Return the JSON in the database as a ``dict``.", " Retu...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the post_create_app API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the post_create_app API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
Automatically register and init the Flask Marshmallow extension. Args: app (flask.Flask): The application instance in which to initialize Flask Marshmallow upon. Kwargs: settings (dict): The settings passed to this method from the parent app. ...
"Automatically register and init the Flask Marshmallow extension.\n\n Args:\n app (flask.Flask): The application instance in which to initialize\n Flask Marshmallow upon.\n\n Kwargs:\n settings (dict): The settings passed to this method from the\n parent...
259
false
croscon/fleaker
post_create_app
8,094
LDU_FT/projectatomic/osbs-client/render_group_manifests
LDU_FT
[ "<BEGIN>\n## `get_openshift_base_uri`", "https://<host>[:<port>]/", " :return: str\n<END>", "<BEGIN>\n## `get_builder_openshift_url`", "url of OpenShift where builder will connect\n<END>", "<BEGIN>\n## `generate_nodeselector_dict`", "helper method for generating nodeselector dict\n :param ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the render_group_manifests 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 render_group_manifests API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
Configure the group_manifests plugin. Group is always set to false for now.
"Configure the group_manifests plugin. Group is always set to false for now."
268
false
projectatomic/osbs-client
render_group_manifests
8,095
LDU_FT/dlecocq/nsq-py/send
LDU_FT
[ "<BEGIN>\n## `pack_iterable`", "Pack an iterable of messages in the TCP protocol format\n<END>", "<BEGIN>\n## `hexify`", "Print out printable characters, but others in hex\n<END>", "<BEGIN>\n## `distribute`", "Generator for (count, object) tuples that distributes count evenly among\n the provided objec...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the send API. 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 send API. 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...
Send a command over the socket with length endcoded
"Send a command over the socket with length endcoded"
54
false
dlecocq/nsq-py
send
8,096
LDU_FT/frmdstryr/enamlx/show
LDU_FT
[ "<BEGIN>\n## `_prefetch_items`", "When the current_row in the model changes (whether from scrolling) or\n set by the application. Make sure the results are loaded!\n<END>", "<BEGIN>\n## `refresh_items`", "Refresh the items of the pattern.", " This method destroys the old items and creates and ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the show API. 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 show API. 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...
Ensure the widget is shown. Calling this method will also set the widget visibility to True.
"Ensure the widget is shown.\n Calling this method will also set the widget visibility to True."
133
false
frmdstryr/enamlx
show
8,097
LDU_FT/JelleAalbers/multihist/sum
LDU_FT
[ "<BEGIN>\n## `from_histogram`", "Make a Hist1D from a numpy bin_edges + histogram pair\n :param histogram: Initial histogram\n :param bin_edges: Bin edges of histogram. Must be one longer than length of histogram\n :param axis_names: Ignored. Sorry :-)\n :return:\n<END>", "<BEGIN>\n#...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the sum API. 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 sum API. 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...
Sums all data along axis, returns d-1 dimensional histogram
"Sums all data along axis, returns d-1 dimensional histogram"
57
false
JelleAalbers/multihist
sum
8,098
LDU_FT/tmux-python/tmuxp/cli
LDU_FT
[ "<BEGIN>\n## `get_config_dir`", "Return tmuxp configuration directory.", " ``TMUXP_CONFIGDIR`` environmental variable has precedence if set. We also \n evaluate XDG default directory from XDG_CONFIG_HOME environmental variable \n if set or its default. Then the old default ~/.tmuxp is returned for \n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the cli API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the cli API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
Manage tmux sessions. Pass the "--help" argument to any command to see detailed help. See detailed documentation and examples at: http://tmuxp.readthedocs.io/en/latest/
"Manage tmux sessions.\n\n Pass the \"--help\" argument to any command to see detailed help.\n See detailed documentation and examples at:\n http://tmuxp.readthedocs.io/en/latest/"
161
false
tmux-python/tmuxp
cli
8,099
LDU_FT/JamesPHoughton/pysd/_build_euler_timeseries
LDU_FT
[ "<BEGIN>\n## `parse`", "context : <string> 'eqn', 'defn'\n If context is set to equation, lone identifiers will be parsed as calls to elements\n If context is set to definition, lone identifiers will be cleaned and returned.\n<END>", "<BEGIN>\n## `read_tabular`", "Reads a vensim ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _build_euler_timeseries API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _build_euler_timeseries API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion...
- The integration steps need to include the return values. - There is no point running the model past the last return value. - The last timestep will be the last in that requested for return - Spacing should be at maximum what is specified by the integration time step. - The initial time...
"- The integration steps need to include the return values.\n - There is no point running the model past the last return value.\n - The last timestep will be the last in that requested for return\n - Spacing should be at maximum what is specified by the integration time step.\n - The initial...
268
false
JamesPHoughton/pysd
_build_euler_timeseries
8,100
LDU_FT/ausaki/subfinder/_gen_subname
LDU_FT
[ "<BEGIN>\n## `_gen_subname`", "generate filename of subtitles\n :TODO: fix the conflict of subname\n<END>", "<BEGIN>\n## `_compute_video_hash`", "compute videofile's hash\n reference: https://docs.google.com/document/d/1w5MCBO61rKQ6hI5m9laJLWse__yTYdRugpVyz4RzrmM/preview\n<END>", "<BEGIN>\n## ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _gen_subname API. 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 _gen_subname API. 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...
generate filename of subtitles :TODO: fix the conflict of subname
"generate filename of subtitles\n :TODO: fix the conflict of subname"
26
false
ausaki/subfinder
_gen_subname
8,101
LDU_FT/flo-compbio/genometools/get_file_size
LDU_FT
[ "<BEGIN>\n## `sum`", "Sum over rows or columns.", " Overrides the default `pandas.DataFrame.sum()` function to prevent\n temporary in-memory copies.\n<END>", "<BEGIN>\n## `get_heatmap`", "Generate a heatmap (`ExpHeatmap`) of the matrix.", " See :class:`ExpHeatmap` constructor for keyw...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_file_size API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_file_size API. 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...
The the size of a file in bytes. Parameters ---------- path: str The path of the file. Returns ------- int The size of the file in bytes. Raises ------ IOError If the file does not exist. OSError If a file system error occurs.
"The the size of a file in bytes.\n\n Parameters\n ----------\n path: str\n The path of the file.\n\n Returns\n -------\n int\n The size of the file in bytes.\n\n Raises\n ------\n IOError\n If the file does not exist.\n OSError\n If a file system error occurs."
496
false
flo-compbio/genometools
get_file_size
8,102
LDU_FT/wesm/feather/GetTemplateArgs
LDU_FT
[ "<BEGIN>\n## `IsErrorSuppressedByNolint`", "Returns true if the specified error category is suppressed on this line.", " Consults the global error_suppressions map populated by\n ParseNolintSuppressions/ResetNolintSuppressions.", " Args:\n category: str, the category of the error.\n linenum: int, the...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the GetTemplateArgs API. 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 GetTemplateArgs API. 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...
Find list of template arguments associated with this function declaration. Args: clean_lines: A CleansedLines instance containing the file. linenum: Line number containing the start of the function declaration, usually one line after the end of the template-argument-list. Returns: Set of t...
"Find list of template arguments associated with this function declaration.\n\n Args:\n clean_lines: A CleansedLines instance containing the file.\n linenum: Line number containing the start of the function declaration,\n usually one line after the end of the template-argument-list.\n Returns:\n ...
104
false
wesm/feather
GetTemplateArgs
8,103
LDU_FT/grigi/talkey/check_network_connection
LDU_FT
[ "<BEGIN>\n## `find_executable`", "Finds executable in PATH", " Returns:\n string or None\n<END>", "<BEGIN>\n## `check_network_connection`", "Checks if jasper can connect a network server.\n Arguments:\n server -- (optional) the server to connect with (Default:\n \"www.go...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the check_network_connection API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the check_network_connection API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio...
Checks if jasper can connect a network server. Arguments: server -- (optional) the server to connect with (Default: "www.google.com") Returns: True or False
"Checks if jasper can connect a network server.\n Arguments:\n server -- (optional) the server to connect with (Default:\n \"www.google.com\")\n Returns:\n True or False"
28
false
grigi/talkey
check_network_connection
8,104
LDU_FT/MisterWil/abodepy/_get_numeric_status
LDU_FT
[ "<BEGIN>\n## `map_event_code`", "Map a specific event_code to an event group.\n<END>", "<BEGIN>\n## `desc`", "Get a short description of the automation.\n<END>", "<BEGIN>\n## `_get_numeric_status`", "Extract the numeric value from the statuses object.\n<END>", "<BEGIN>\n## `is_on`", "Get sensor state....
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_numeric_status API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_numeric_status API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
Extract the numeric value from the statuses object.
"Extract the numeric value from the statuses object."
53
false
MisterWil/abodepy
_get_numeric_status
8,105
LDU_FT/hollenstein/maspy/recClearTag
LDU_FT
[ "<BEGIN>\n## `_getArrays`", "Return arrays with equal size of item attributes from a list of sorted\n \"items\" for fast and convenient data processing.", " :param attr: list of item attributes that should be added to the returned\n array.\n :param defaultValue: if an item is missing an attribut...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the recClearTag API. 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 recClearTag API. 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...
Applies maspy.xml.clearTag() to the tag attribute of the "element" and recursively to all child elements. :param element: an :instance:`xml.etree.Element`
"Applies maspy.xml.clearTag() to the tag attribute of the \"element\" and\n recursively to all child elements.\n\n :param element: an :instance:`xml.etree.Element`"
742
false
hollenstein/maspy
recClearTag
8,106
LDU_FT/Hrabal/TemPy/data
LDU_FT
[ "<BEGIN>\n## `render_attrs`", "Renders the tag's attributes using the formats and performing special attributes name substitution.\n<END>", "<BEGIN>\n## `toggle_class`", "Same as jQuery's toggleClass function. It toggles the css class on this element.\n<END>", "<BEGIN>\n## `remove_class`", "Removes the gi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the 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 extracted do...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the 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 extracted do...
Adds or retrieve extra data to this element, this data will not be rendered. Every tag have a _data attribute (dict), if key is given _data[key] is returned. Kwargs are used to udpate this Tag's _data.
"Adds or retrieve extra data to this element, this data will not be rendered.\n Every tag have a _data attribute (dict), if key is given _data[key] is returned.\n Kwargs are used to udpate this Tag's _data."
80
false
Hrabal/TemPy
data
8,107
LDU_FT/Datary/scrapbag/populate_csv_headers
LDU_FT
[ "<BEGIN>\n## `parse_spss_headerfile`", "Parse spss header file", " Arguments:\n path {str} -- path al fichero de cabecera.\n leyend_position -- posicion del la leyenda en el header.\n<END>", "<BEGIN>\n## `parse_spss_datafile`", "Parse spss data file", " Arguments:\n path {str} -...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the populate_csv_headers API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the populate_csv_headers API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Populate csv rows headers when are empty, extending the superior or upper headers.
"Populate csv rows headers when are empty, extending the superior or\n upper headers."
119
false
Datary/scrapbag
populate_csv_headers
8,108
LDU_FT/PyThaiNLP/pythainlp/get_corpus_path
LDU_FT
[ "<BEGIN>\n## `spell`", ":param str word: word to check spelling\n :param str engine:\n * pn - Peter Norvig's algorithm (default)\n :return: list of words\n<END>", "<BEGIN>\n## `get_corpus`", "Read corpus from file and return a frozenset", " :param string filename: file corpus\n<END>", "<BE...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_corpus_path API. 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_corpus_path API. 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...
Get corpus path :param string name: corpus name
"Get corpus path\n\n :param string name: corpus name"
190
false
PyThaiNLP/pythainlp
get_corpus_path
8,109
LDU_FT/openmicroanalysis/pyxray/chunked
LDU_FT
[ "<BEGIN>\n## `set_default_reference`", "Set the default reference for a method.", " :arg method: name of a method\n :type method: :class:`str`", " {reference}\n<END>", "<BEGIN>\n## `get_default_reference`", "Returns the default reference for a method.", " :arg method: name of...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the chunked API. 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 chunked API. 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...
Break an iterable into lists of a given length:: >>> list(chunked([1, 2, 3, 4, 5, 6, 7], 3)) [[1, 2, 3], [4, 5, 6], [7]] If the length of ``iterable`` is not evenly divisible by ``n``, the last returned list will be shorter. This is useful for splitting up a computation on a large number ...
"Break an iterable into lists of a given length::\n\n >>> list(chunked([1, 2, 3, 4, 5, 6, 7], 3))\n [[1, 2, 3], [4, 5, 6], [7]]\n\n If the length of ``iterable`` is not evenly divisible by ``n``, the last\n returned list will be shorter.\n\n This is useful for splitting up a computation on a larg...
42
false
openmicroanalysis/pyxray
chunked
8,110
LDU_FT/sods/ods/display_prediction
LDU_FT
[ "<BEGIN>\n## `display_url`", "Displaying URL in an IPython notebook to allow the user to click and check on information. With thanks to Fernando Perez for putting together the implementation!\n :param target: the url to display.\n :type target: string.\n<END>", "<BEGIN>\n## `iframe_url`", "Produce an if...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the display_prediction 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 display_prediction 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...
Interactive widget for displaying a prediction function based on summing separate basis functions. :param basis: a function handle that calls the basis functions. :type basis: function handle. :param xlim: limits of the x axis to use. :param ylim: limits of the y axis to use. :param wlim: limits for...
"Interactive widget for displaying a prediction function based on summing separate basis functions.\n :param basis: a function handle that calls the basis functions.\n :type basis: function handle.\n :param xlim: limits of the x axis to use.\n :param ylim: limits of the y axis to use.\n :param wlim: limi...
67
false
sods/ods
display_prediction
8,111
LDU_FT/ArangoDB-Community/pyArango/getEdges
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 getEdges API. 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 getEdges API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
returns in, out, or both edges linked to self belonging the collection 'edges'. If rawResults a arango results will be return as fetched, if false, will return a liste of Edge objects
"returns in, out, or both edges linked to self belonging the collection 'edges'.\n If rawResults a arango results will be return as fetched, if false, will return a liste of Edge objects"
105
false
ArangoDB-Community/pyArango
getEdges
8,112
LDU_FT/upsight/doctor/run
LDU_FT
[ "<BEGIN>\n## `_parse_array`", "Coerce value into an list.", " :param str value: Value to parse.\n :returns: list or None if the value is not a JSON array\n :raises: TypeError or ValueError if value appears to be an array but can't\n be parsed as JSON.\n<END>", "<BEGIN>\n## `_parse_boolean`", ...
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...
Called by Sphinx to generate documentation for this directive.
"Called by Sphinx to generate documentation for this directive."
236
false
upsight/doctor
run
8,113
LDU_FT/scikit-hep/probfit/fit_binlh
LDU_FT
[ "<BEGIN>\n## `parse_arg`", "convert dictionary of keyword argument and value to positional argument\n equivalent to::", " vnames = describe(f)\n return tuple([kwd[k] for k in vnames[offset:]])\n<END>", "<BEGIN>\n## `_get_args_and_errors`", "consistent algorithm to get argument and errors\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the fit_binlh API. 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 fit_binlh API. 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...
perform bin likelihood fit :param f: :param data: :param bins: :param range: :param quiet: :param weights: :param use_w2: :param printlevel: :param pedantic: :param extended: :param arg: :param kwd: :return:
"perform bin likelihood fit\n :param f:\n :param data:\n :param bins:\n :param range:\n :param quiet:\n :param weights:\n :param use_w2:\n :param printlevel:\n :param pedantic:\n :param extended:\n :param arg:\n :param kwd:\n :return:"
51
false
scikit-hep/probfit
fit_binlh
8,114
LDU_FT/pytest-dev/pluggy/call_extra
LDU_FT
[ "<BEGIN>\n## `create_branch`", "Create a fresh branch from upstream/master\n<END>", "<BEGIN>\n## `get_upstream`", "Find upstream repository for pluggy on the remotes\n<END>", "<BEGIN>\n## `pre_release`", "Generates new docs, release announcements and creates a local tag.\n<END>", "<BEGIN>\n## `_wrapped_...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the call_extra API. 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 call_extra API. 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...
Call the hook with some additional temporarily participating methods using the specified kwargs as call parameters.
"Call the hook with some additional temporarily participating\n methods using the specified kwargs as call parameters."
52
false
pytest-dev/pluggy
call_extra
8,115
LDU_FT/boppreh/keyboard/release
LDU_FT
[ "<BEGIN>\n## `is_modifier`", "Returns True if `key` is a scan code or name of a modifier key.\n<END>", "<BEGIN>\n## `key_to_scan_codes`", "Returns a list of scan codes associated with this key (name or scan code).\n<END>", "<BEGIN>\n## `parse_hotkey`", "Parses a user-provided hotkey into nested tuples rep...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the release API. 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 release API. 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...
Sends an up event for the specified button, using the provided constants
"Sends an up event for the specified button, using the provided constants"
158
false
boppreh/keyboard
release
8,116
LDU_FT/django-dbbackup/django-dbbackup/_cleanup_old_backups
LDU_FT
[ "<BEGIN>\n## `_cleanup_old_backups`", "Cleanup old backups, keeping the number of backups specified by\n DBBACKUP_CLEANUP_KEEP and any backups that occur on first of the month.\n<END>", "<BEGIN>\n## `_explore_storage`", "Generator of all files contained in media storage.\n<END>", "<BEGIN>\n## `backup...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _cleanup_old_backups 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 _cleanup_old_backups API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Cleanup old backups, keeping the number of backups specified by DBBACKUP_CLEANUP_KEEP and any backups that occur on first of the month.
"Cleanup old backups, keeping the number of backups specified by\n DBBACKUP_CLEANUP_KEEP and any backups that occur on first of the month."
99
false
django-dbbackup/django-dbbackup
_cleanup_old_backups
8,117
LDU_FT/heigeo/climata/load_sites
LDU_FT
[ "<BEGIN>\n## `load_sites`", "Load metadata for all sites in given basin codes.\n<END>", "<BEGIN>\n## `get_huc8`", "Return all HUC8s matching the given prefix (e.g. 1801) or basin name\n (e.g. Klamath)\n<END>", "<BEGIN>\n## `parse`", "Convert ACIS 'll' value into separate latitude and longitude.\n<END>"...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load_sites API. 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 load_sites API. 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...
Load metadata for all sites in given basin codes.
"Load metadata for all sites in given basin codes."
30
false
heigeo/climata
load_sites
8,118
LDU_FT/slundberg/shap/keep_absolute_impute__roc_auc
LDU_FT
[ "<BEGIN>\n## `imagenet50`", "This is a set of 50 images representative of ImageNet images.", " This dataset was collected by randomly finding a working ImageNet link and then pasting the\n original ImageNet image into Google image search restricted to images licensed for reuse. A\n similar image (now w...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the keep_absolute_impute__roc_auc API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the keep_absolute_impute__roc_auc API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conc...
Keep Absolute (impute) xlabel = "Max fraction of features kept" ylabel = "ROC AUC" transform = "identity" sort_order = 19
"Keep Absolute (impute)\n xlabel = \"Max fraction of features kept\"\n ylabel = \"ROC AUC\"\n transform = \"identity\"\n sort_order = 19"
299
false
slundberg/shap
keep_absolute_impute__roc_auc
8,119
LDU_FT/radical-cybertools/radical.entk/_initialize_workflow
LDU_FT
[ "<BEGIN>\n## `resolve_placeholders`", "**Purpose**: Substitute placeholders in staging attributes of a Task with actual paths to the corresponding tasks.", " :arguments:\n :path: string describing the staging paths, possibly containing a placeholder\n :placeholder_dict: dictionary holding the v...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _initialize_workflow 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 _initialize_workflow API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
**Purpose**: Initialize the PST of the workflow with a uid and type checks
"**Purpose**: Initialize the PST of the workflow with a uid and type checks"
146
false
radical-cybertools/radical.entk
_initialize_workflow
8,120
LDU_FT/vbwagner/ctypescrypto/data
LDU_FT
[ "<BEGIN>\n## `digest`", "Method digest is redefined to return keyed MAC value instead of\n just digest.\n<END>", "<BEGIN>\n## `bytes`", "Returns num bytes of cryptographically strong pseudo-random\n bytes. If checkc_result is True, raises error if PRNG is not\n seeded enough\n<END>", "<BEGIN>\n...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the 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 extracted do...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the 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 extracted do...
Returns signed data if present in the message
"Returns signed data if present in the message"
119
false
vbwagner/ctypescrypto
data
8,121
LDU_FT/cqlengine/cqlengine/setup
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 setup API. 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 setup API. 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...
Records the hosts and connects to one of them :param hosts: list of hosts, see http://datastax.github.io/python-driver/api/cassandra/cluster.html :type hosts: list :param default_keyspace: The default keyspace to use :type default_keyspace: str :param consistency: The global consistency level :...
"Records the hosts and connects to one of them\n\n :param hosts: list of hosts, see http://datastax.github.io/python-driver/api/cassandra/cluster.html\n :type hosts: list\n :param default_keyspace: The default keyspace to use\n :type default_keyspace: str\n :param consistency: The global consistency leve...
65
false
cqlengine/cqlengine
setup
8,122
LDU_FT/RaRe-Technologies/gensim-simserver/docs2vecs
LDU_FT
[ "<BEGIN>\n## `merge_sims`", "Merge two precomputed similarity lists, truncating the result to `clip` most similar items.\n<END>", "<BEGIN>\n## `terminate`", "Delete all files created by this index, invalidating `self`. Use with care.\n<END>", "<BEGIN>\n## `index_documents`", "Update fresh index with new d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the docs2vecs API. 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 docs2vecs API. 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...
Convert multiple SimilarityDocuments to vectors (batch version of doc2vec).
"Convert multiple SimilarityDocuments to vectors (batch version of doc2vec)."
74
false
RaRe-Technologies/gensim-simserver
docs2vecs
8,123
LDU_FT/mikicz/arca/repo_id
LDU_FT
[ "<BEGIN>\n## `get_or_create_environment`", "Returns the path to the current Python executable.\n<END>", "<BEGIN>\n## `validate_configuration`", "Validates the provided settings.", " * Checks ``inherit_image`` format.\n * Checks ``use_registry_name`` format.\n * Checks that ``apt_depende...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the repo_id API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the repo_id API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
Returns an unique identifier from a repo URL for the folder the repo is gonna be pulled in.
"Returns an unique identifier from a repo URL for the folder the repo is gonna be pulled in."
196
false
mikicz/arca
repo_id
8,124
LDU_FT/creare-com/pydem/_drain_step
LDU_FT
[ "<BEGIN>\n## `_get_flat_ids`", "This is a helper function to recover the coordinates of regions that have\n been labeled within an image. This function efficiently computes the\n coordinate of all regions and returns the information in a memory-efficient\n manner.", " Parameters\n -----------\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _drain_step API. 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 _drain_step API. 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...
Does a single step of the upstream contributing area calculation. Here the pixels in ids are drained downstream, the areas are updated and the next set of pixels to drain are determined for the next round.
"Does a single step of the upstream contributing area calculation.\n Here the pixels in ids are drained downstream, the areas are updated\n and the next set of pixels to drain are determined for the next round."
201
false
creare-com/pydem
_drain_step
8,125
LDU_FT/Yelp/threat_intel/_convert_to_json
LDU_FT
[ "<BEGIN>\n## `init_poolmanager`", "Called to initialize the HTTPAdapter when no proxy is used.\n<END>", "<BEGIN>\n## `proxy_manager_for`", "Called to initialize the HTTPAdapter when a proxy is used.\n<END>", "<BEGIN>\n## `make_calls`", "Adds appropriate sleep to avoid making too many calls.", " A...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _convert_to_json API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _convert_to_json API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Converts response to JSON. If the response cannot be converted to JSON then `None` is returned. Args: response - An object of type `requests.models.Response` Returns: Response in JSON format if the response can be converted to JSON. `None` otherwise.
"Converts response to JSON.\n If the response cannot be converted to JSON then `None` is returned.\n\n Args:\n response - An object of type `requests.models.Response`\n Returns:\n Response in JSON format if the response can be converted to JSON. `None` otherwise."
149
false
Yelp/threat_intel
_convert_to_json
8,126
LDU_FT/tjcsl/ion/load_fixtures
LDU_FT
[ "<BEGIN>\n## `student_visible`", "Return a list of groups that are student-visible.\n<END>", "<BEGIN>\n## `stdev`", "r\"\"\"Calculate standard deviation of data x[]:\n std = sqrt(\\sum_i (x_i - mean)^2 \\over n-1)\n https://wiki.python.org/moin/NumericAndScientificRecipes\n<END>", "<BEGIN>\n##...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load_fixtures API. 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 load_fixtures API. 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...
Populate a database with data from fixtures.
"Populate a database with data from fixtures."
407
false
tjcsl/ion
load_fixtures
8,127
LDU_FT/jason-weirather/pythologist/nearestneighbors
LDU_FT
[ "<BEGIN>\n## `get_valid_cell_indecies`", "Return a dataframe of images present with 'valid' being a list of cell indecies that can be included\n<END>", "<BEGIN>\n## `prune_neighbors`", "If the CellDataFrame has been subsetted, some of the cell-cell contacts may no longer be part of the the dataset. This prun...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the nearestneighbors API. 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 nearestneighbors API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Use the segmented images to create per-image graphics Args: verbose (bool): output more details if true measured_regions (pandas.DataFrame): explicitly list the measured images and regions measured_phenotypes (list): explicitly list the phenotypes present Returns: ...
"Use the segmented images to create per-image graphics\n\n Args:\n verbose (bool): output more details if true\n measured_regions (pandas.DataFrame): explicitly list the measured images and regions\n measured_phenotypes (list): explicitly list the phenotypes present\n\n Re...
98
false
jason-weirather/pythologist
nearestneighbors
8,128
LDU_FT/andialbrecht/sqlparse/get_array_indices
LDU_FT
[ "<BEGIN>\n## `_group_matching`", "Groups Tokens that have beginning and end.\n<END>", "<BEGIN>\n## `group_order`", "Group together Identifier and Asc/Desc token\n<END>", "<BEGIN>\n## `_group`", "Groups together tokens that are joined by a middle token. i.e. x < y\n<END>", "<BEGIN>\n## `_reset`", "Set ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_array_indices API. 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_array_indices API. 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 an iterator of index token lists
"Returns an iterator of index token lists"
57
false
andialbrecht/sqlparse
get_array_indices
8,129
LDU_FT/llazzaro/analyzerdam/financials
LDU_FT
[ "<BEGIN>\n## `getAll`", "Get all available quote data for the given ticker symbol.\r\n Returns a dictionary.\n<END>", "<BEGIN>\n## `getQuotes`", "Get historical prices for the given ticker symbol.\r\n Date format is 'YYYY-MM-DD'\r", " Returns a nested list.\n<END>", "<BEGIN>\n## `getW...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the financials API. 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 financials API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
get financials: google finance provide annual and quanter financials, if annual is true, we will use annual data Up to four lastest year/quanter data will be provided by google Refer to page as an example: http://www.google.com/finance?q=TSE:CVG&fstype=ii
"get financials:\r\n google finance provide annual and quanter financials, if annual is true, we will use annual data\r\n Up to four lastest year/quanter data will be provided by google\r\n Refer to page as an example: http://www.google.com/finance?q=TSE:CVG&fstype=ii"
22
false
llazzaro/analyzerdam
financials
8,130
LDU_FT/jjjake/internetarchive/upload_file
LDU_FT
[ "<BEGIN>\n## `prepare_metadata`", "Prepare a metadata dict for an\n :class:`S3PreparedRequest <S3PreparedRequest>` or\n :class:`MetadataPreparedRequest <MetadataPreparedRequest>` object.", " :type metadata: dict\n :param metadata: The metadata dict to be prepared.", " :type source_metadata: dic...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the upload_file API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the upload_file API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
Upload a single file to an item. The item will be created if it does not exist. :type body: Filepath or file-like object. :param body: File or data to be uploaded. :type key: str :param key: (optional) Remote filename. :type metadata: dict :param metadata: (opt...
"Upload a single file to an item. The item will be created\n if it does not exist.\n\n :type body: Filepath or file-like object.\n :param body: File or data to be uploaded.\n\n :type key: str\n :param key: (optional) Remote filename.\n\n :type metadata: dict\n :param met...
281
false
jjjake/internetarchive
upload_file
8,131
LDU_FT/tswicegood/Dolt/with_body
LDU_FT
[ "<BEGIN>\n## `add_basic_auth`", "Send basic auth username and password.", " Normally you can use httplib2.Http.add_credentials() to add username and password.\n However this has two disadvantages.", " 1. Some poorly implemented APIs require basic auth but don't send a\n \"401 Authorization Requ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the with_body API. 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 with_body API. 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...
Add a body to the request. When `body` is a: - string, it will be used as is. - dict or list of (key, value) pairs, it will be form encoded - None, remove request body - anything else, a TypeError will be raised If `body` is a dict or None ...
"Add a body to the request.\n\n When `body` is a:\n - string, it will be used as is. \n - dict or list of (key, value) pairs, it will be form encoded\n - None, remove request body\n - anything else, a TypeError will be raised \n \n If `body` is a dict...
28
false
tswicegood/Dolt
with_body
8,132
LDU_FT/edx/xblock-utils/get_theme
LDU_FT
[ "<BEGIN>\n## `get_xblock_settings`", "Gets XBlock-specific settigns for current XBlock", " Returns default if settings service is not available.", " Parameters:\n default - default value to be used in two cases:\n * No settings service is available\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_theme API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_theme API. 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...
Gets theme settings from settings service. Falls back to default (LMS) theme if settings service is not available, xblock theme settings are not set or does contain mentoring theme settings.
"Gets theme settings from settings service. Falls back to default (LMS) theme\n if settings service is not available, xblock theme settings are not set or does\n contain mentoring theme settings."
56
false
edx/xblock-utils
get_theme
8,133
LDU_FT/gplepage/gvar/inv
LDU_FT
[ "<BEGIN>\n## `deriv`", "Compute *n*-th derivative of ``self``.", " :param n: Number of derivatives.\n :type n: positive integer\n :returns: *n*-th derivative of ``self``.\n<END>", "<BEGIN>\n## `integ`", "Compute *n*-th indefinite integral of ``self``.", " If *x0* is specified, ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the inv API. 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 inv API. 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...
Inverse of matrix ``a``. Args: a: Two-dimensional, square matrix/array of numbers and/or :class:`gvar.GVar`\s. Returns: The inverse of matrix ``a``. Raises: ValueError: If matrix is not square and two-dimensional.
"Inverse of matrix ``a``.\n\n Args:\n a: Two-dimensional, square matrix/array of numbers\n and/or :class:`gvar.GVar`\\s.\n\n Returns:\n The inverse of matrix ``a``.\n\n Raises:\n ValueError: If matrix is not square and two-dimensional."
206
false
gplepage/gvar
inv
8,134
LDU_FT/albert12132/templar/unhash
LDU_FT
[ "<BEGIN>\n## `applies`", "Checks if this rule applies to the given src and dst paths, based on the src pattern and\n dst pattern given in the constructor.", " If src pattern was None, this rule will apply to any given src path (same for dst).\n<END>", "<BEGIN>\n## `link`", "Links the content f...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the unhash API. 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 unhash API. 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 ...
Unhashes all hashed entites in the hashes dictionary. The pattern for hashes is defined by re_hash. After everything is unhashed, <pre> blocks are "pulled out" of whatever indentation level in which they used to be (e.g. in a list).
"Unhashes all hashed entites in the hashes dictionary.\n\n The pattern for hashes is defined by re_hash. After everything is\n unhashed, <pre> blocks are \"pulled out\" of whatever indentation\n level in which they used to be (e.g. in a list)."
130
false
albert12132/templar
unhash
8,135
LDU_FT/ozak/georasters/to_tiff
LDU_FT
[ "<BEGIN>\n## `map_pixel`", "Usage:\n map_pixel(xcoord, ycoord, x_cell_size, y_cell_size, xmin, ymax)", " where:\n xmin is leftmost X coordinate in system", " ymax is topmost Y coordinate in system", " Example:\n raster = HMISea.tif", " ndv, xsize, ysize, ge...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the to_tiff API. 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 to_tiff API. 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...
geo.to_tiff(filename) Saves GeoRaster as geotiff filename.tif with type datatype If GeoRaster does not have datatype, then it tries to assign a type. You can assign the type yourself by setting geo.datatype = 'gdal.GDT_'+type
"geo.to_tiff(filename)\n\n Saves GeoRaster as geotiff filename.tif with type datatype\n\n If GeoRaster does not have datatype, then it tries to assign a type.\n You can assign the type yourself by setting\n geo.datatype = 'gdal.GDT_'+type"
136
false
ozak/georasters
to_tiff
8,136
LDU_FT/openid/JWTConnect-Python-OidcService/add_redirect_uris
LDU_FT
[ "<BEGIN>\n## `request_object_encryption`", "Created an encrypted JSON Web token with *msg* as body.", " :param msg: The mesaqg\n :param service_context:\n :param kwargs:\n :return:\n<END>", "<BEGIN>\n## `construct_request_uri`", "Constructs a special redirect_uri to be used when communicating wi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_redirect_uris API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_redirect_uris API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Add redirect_uris to the request arguments. :param request_args: Incomming request arguments :param service: A link to the service :param kwargs: Possible extra keyword arguments :return: A possibly augmented set of request arguments.
"Add redirect_uris to the request arguments.\n\n :param request_args: Incomming request arguments\n :param service: A link to the service\n :param kwargs: Possible extra keyword arguments\n :return: A possibly augmented set of request arguments."
159
false
openid/JWTConnect-Python-OidcService
add_redirect_uris
8,137
LDU_FT/limodou/uliweb/update
LDU_FT
[ "<BEGIN>\n## `get_frame_info`", "Return a dict of information about a given traceback.\n<END>", "<BEGIN>\n## `get_sort_field`", "Get sort column info according request, the data format just likes:\r", " ?sort=fieldA.asc&sort=fieldB.desc\r", " or:\r", " ?sort=fieldA&sort=fieldB&order...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Update the third relationship table, but not the ModelA or ModelB
"Update the third relationship table, but not the ModelA or ModelB"
886
false
limodou/uliweb
update
8,138
LDU_FT/reiinakano/xcessiv/return_estimator
LDU_FT
[ "<BEGIN>\n## `return_func_to_optimize`", "Creates the function to be optimized by Bayes Optimization.", " The function automatically handles the case of already existing base learners, and if\n no base learner for the hyperparameters exists yet, creates one and updates it in the\n usual way.", " A...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the return_estimator API. 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 return_estimator API. 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 base learner using its origin and the given hyperparameters Returns: est (estimator): Estimator object
"Returns base learner using its origin and the given hyperparameters\n\n Returns:\n est (estimator): Estimator object"
150
false
reiinakano/xcessiv
return_estimator
8,139
LDU_FT/bcbnz/python-rofi/date_entry
LDU_FT
[ "<BEGIN>\n## `close`", "Close any open window.", " Note that this only works with non-blocking methods.\n<END>", "<BEGIN>\n## `_run_blocking`", "Internal API: run a blocking command with subprocess.", " This closes any open non-blocking dialog before running the command.", " Paramet...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the date_entry API. 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 date_entry API. 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...
Prompt the user to enter a date. Parameters ---------- prompt: string Prompt to display to the user. message: string, optional Message to display under the entry line. formats: list of strings, optional The formats that the user can enter date...
"Prompt the user to enter a date.\n\n Parameters\n ----------\n prompt: string\n Prompt to display to the user.\n message: string, optional\n Message to display under the entry line.\n formats: list of strings, optional\n The formats that the user can ...
68
false
bcbnz/python-rofi
date_entry
8,140
LDU_FT/python-xlib/python-xlib/ungrab_keyboard
LDU_FT
[ "<BEGIN>\n## `query_int_attribute`", "Return the value of an integer attribute\n<END>", "<BEGIN>\n## `create_resource_object`", "Create a resource object of type for the integer id. type\n should be one of the following strings:", " resource\n drawable\n window\n pixmap\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the ungrab_keyboard API. 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 ungrab_keyboard API. 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...
Ungrab a grabbed keyboard and any queued events. See XUngrabKeyboard(3X11).
"Ungrab a grabbed keyboard and any queued events. See\n XUngrabKeyboard(3X11)."
232
false
python-xlib/python-xlib
ungrab_keyboard
8,141
LDU_FT/hyperledger/indy-sdk/replace_keys_start
LDU_FT
[ "<BEGIN>\n## `create`", "Creates a Class representing an Issuer Credential\n :param source_id: Tag associated by user of sdk\n :param attrs: attributes that will form the credential\n :param cred_def_handle: Handle from previously created credential def object\n :param ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the replace_keys_start API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the replace_keys_start API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
Generated new keys (signing and encryption keys) for an existing DID (owned by the caller of the library). :param wallet_handle: wallet handler (created by open_wallet). :param did: signing DID :param identity_json: Identity information as json. Example: { "seed": string, (optional) Se...
"Generated new keys (signing and encryption keys) for an existing\n DID (owned by the caller of the library).\n\n :param wallet_handle: wallet handler (created by open_wallet).\n :param did: signing DID\n :param identity_json: Identity information as json. Example:\n {\n\t \"seed\": string, (o...
467
false
hyperledger/indy-sdk
replace_keys_start
8,142
LDU_FT/eerimoq/bincopy/maximum_address
LDU_FT
[ "<BEGIN>\n## `crc_srec`", "Calculate the CRC for given Motorola S-Record hexstring.\n<END>", "<BEGIN>\n## `crc_ihex`", "Calculate the CRC for given Intel HEX hexstring.\n<END>", "<BEGIN>\n## `pack_srec`", "Create a Motorola S-Record record of given data.\n<END>", "<BEGIN>\n## `unpack_srec`", "Unpack g...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the maximum_address API. 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 maximum_address API. 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 maximum address of the data, or ``None`` if the file is empty.
"The maximum address of the data, or ``None`` if the file is empty."
88
false
eerimoq/bincopy
maximum_address
8,143
LDU_FT/singularityhub/singularity-python/get_template
LDU_FT
[ "<BEGIN>\n## `get_template`", "get_template will return a template in the template folder,\n with some substitutions (eg, {'{{ graph | safe }}':\"fill this in!\"}\n<END>", "<BEGIN>\n## `container_similarity_vector`", "container similarity_vector is similar to compare_packages, but intended\n to compare ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_template API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_template API. 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...
get_template will return a template in the template folder, with some substitutions (eg, {'{{ graph | safe }}':"fill this in!"}
"get_template will return a template in the template folder,\n with some substitutions (eg, {'{{ graph | safe }}':\"fill this in!\"}"
135
false
singularityhub/singularity-python
get_template
8,144
LDU_FT/mongodb/motor/chain_return_value
LDU_FT
[ "<BEGIN>\n## `chain_return_value`", "Compatible way to return a value in all Pythons.", " PEP 479, raise StopIteration(value) from a coroutine won't work forever,\n but \"return value\" doesn't work in Python 2. Instead, Motor methods that\n return values resolve a Future with it, and are implemented w...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the chain_return_value API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the chain_return_value API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
Compatible way to return a value in all Pythons. PEP 479, raise StopIteration(value) from a coroutine won't work forever, but "return value" doesn't work in Python 2. Instead, Motor methods that return values resolve a Future with it, and are implemented with callbacks rather than a coroutine internall...
"Compatible way to return a value in all Pythons.\n\n PEP 479, raise StopIteration(value) from a coroutine won't work forever,\n but \"return value\" doesn't work in Python 2. Instead, Motor methods that\n return values resolve a Future with it, and are implemented with callbacks\n rather than a coroutine i...
133
false
mongodb/motor
chain_return_value
8,145
LDU_FT/samluescher/django-media-tree/get_results
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_results API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_results API. 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...
Temporarily decreases the `level` attribute of all search results in order to prevent indendation when displaying them.
"Temporarily decreases the `level` attribute of all search results in\n order to prevent indendation when displaying them."
96
false
samluescher/django-media-tree
get_results
8,146
LDU_FT/aws/chalice/download_manylinux_wheels
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 download_manylinux_wheels API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the download_manylinux_wheels API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi...
Download wheel files for manylinux for all the given packages.
"Download wheel files for manylinux for all the given packages."
96
false
aws/chalice
download_manylinux_wheels
8,147
LDU_FT/developmentseed/landsat-util/convert_to_float_list
LDU_FT
[ "<BEGIN>\n## `_read_cmap`", "reads the colormap from a text file given in settings.py.\n See colormap_cubehelix.txt. File must contain 256 RGB values\n<END>", "<BEGIN>\n## `data_collector`", "Buffers n bytes of data.", " :param iterable:\n Could be a list, generator or string\n :type ite...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the convert_to_float_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 convert_to_float_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. ...
Converts a comma separate string to a list :param value: the format must be 1.2,-3.5 (commas with no space) :type value: String :returns: List :example: >>> convert_to_integer_list('003,003,004,004') [1.2, -3.5]
"Converts a comma separate string to a list\n\n :param value:\n the format must be 1.2,-3.5 (commas with no space)\n :type value:\n String\n\n :returns:\n List\n\n :example:\n >>> convert_to_integer_list('003,003,004,004')\n [1.2, -3.5]"
152
false
developmentseed/landsat-util
convert_to_float_list
8,148
LDU_FT/aio-libs/aiozipkin/make_headers
LDU_FT
[ "<BEGIN>\n## `unsigned_hex_to_signed_int`", "Converts a 64-bit hex string to a signed int value.", " This is due to the fact that Apache Thrift only has signed values.", " Examples:\n '17133d482ba4f605' => 1662740067609015813\n 'b6dbb1c2b362bf51' => -5270423489115668655", " :param hex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the make_headers API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the make_headers API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
Creates dict with zipkin headers from supplied trace context.
"Creates dict with zipkin headers from supplied trace context."
32
false
aio-libs/aiozipkin
make_headers
8,149
LDU_FT/cimatosa/progression/_get_callargs
LDU_FT
[ "<BEGIN>\n## `_get_callargs`", "Retrieve all arguments that `self.func` needs and\n return a dictionary with call arguments.\n<END>", "<BEGIN>\n## `get_terminal_size`", "Checks various methods to determine the terminal size", " Methods:\n - shutil.get_terminal_size (only Python3)\n - fcntl.i...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_callargs API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_callargs API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
Retrieve all arguments that `self.func` needs and return a dictionary with call arguments.
"Retrieve all arguments that `self.func` needs and\n return a dictionary with call arguments."
48
false
cimatosa/progression
_get_callargs
8,150
LDU_FT/rsgalloway/grit/read_headers
LDU_FT
[ "<BEGIN>\n## `assemble_WSGI_git_app`", "Assembles basic WSGI-compatible application providing functionality of git-http-backend.\r", " content_path (Defaults to '.' = \"current\" directory)\r\n The path to the folder that will be the root of served files. Accepts relative paths.\r", " uri_marker ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the read_headers API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the read_headers API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
Read headers from the given stream into the given header dict. If hdict is None, a new header dict is created. Returns the populated header dict. Headers which are repeated are folded together using a comma if their specification so dictates. This function raises ValueError when the r...
"Read headers from the given stream into the given header dict.\n \n If hdict is None, a new header dict is created. Returns the populated\n header dict.\n \n Headers which are repeated are folded together using a comma if their\n specification so dictates.\n \n This function raises ValueError w...
222
false
rsgalloway/grit
read_headers
8,151
LDU_FT/AdvancedClimateSystems/uModbus/generate_look_up_table
LDU_FT
[ "<BEGIN>\n## `pdu_to_function_code_or_raise_error`", "Parse response PDU and return of :class:`ModbusFunction` or\n raise error.", " :param resp_pdu: PDU of response.\n :return: Subclass of :class:`ModbusFunction` matching the response.\n :raises ModbusError: When response contains error code.\n<END...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the generate_look_up_table API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the generate_look_up_table API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
Generate look up table. :return: List
"Generate look up table.\n\n :return: List"
186
false
AdvancedClimateSystems/uModbus
generate_look_up_table
8,152
LDU_FT/mogproject/mog-commons-python/unicode_right
LDU_FT
[ "<BEGIN>\n## `_detect_encoding`", "Detect the default encoding for the terminal's output.\n :return: string: encoding string\n<END>", "<BEGIN>\n## `_get_restore_function`", "Return the binary function for restoring terminal attributes.\n :return: function (signal, frame) => None:\n<END>", "<BE...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the unicode_right API. 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 unicode_right API. 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...
Cut unicode string from right to fit a given width.
"Cut unicode string from right to fit a given width."
49
false
mogproject/mog-commons-python
unicode_right
8,153
LDU_FT/erikrose/nose-progressive/extract_relevant_tb
LDU_FT
[ "<BEGIN>\n## `format_traceback`", "Return an iterable of formatted Unicode traceback frames.", " Also include a pseudo-frame at the end representing the exception itself.", " Format things more compactly than the stock formatter, and make every\n frame an editor shortcut.\n<END>", "<BEGIN>\n## `ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the extract_relevant_tb 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 extract_relevant_tb 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 extracted traceback frame 4-tuples that aren't unittest ones. This used to be _exc_info_to_string().
"Return extracted traceback frame 4-tuples that aren't unittest ones.\n\n This used to be _exc_info_to_string()."
65
false
erikrose/nose-progressive
extract_relevant_tb
8,154
LDU_FT/krukas/Trionyx/get_attr_text
LDU_FT
[ "<BEGIN>\n## `auto_load_model_menu`", "Auto load model menu entries, can be configured in `trionyx.config.ModelConfig`:", " - menu_name\n - menu_icon\n - menu_order\n<END>", "<BEGIN>\n## `add_item`", "Add new menu item to menu", " :param path: Path of menu\n :param name:...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_attr_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 ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_attr_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 ext...
Get html attr text to render in template
"Get html attr text to render in template"
88
false
krukas/Trionyx
get_attr_text
8,155
LDU_FT/bschollnick/semantic_url/parse_uri
LDU_FT
[ "<BEGIN>\n## `norm_page_cnt`", "Normalize a integer (page).", " * Ensure that it is greater than Zero, and is not None.\n - If less than 1, or None, set it to 1", " * if max_number is None, then do not check for max_number\n * if greater than max_number, reset it to be max_number\n<END>", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_uri API. 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 parse_uri API. 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...
postpath - a url broken in to a list (postpath from twisted) e.g. ["127.0.0.1:8888", "albums", "2", "3", "44", "99"] Decode the postpath list, and deconstruct the * Page * Item * subpage (Archives) * subitem (Archives) code:: import gallery test =["127.0.0.1:8888", "a...
"postpath - a url broken in to a list (postpath from twisted)\n e.g. [\"127.0.0.1:8888\", \"albums\", \"2\", \"3\", \"44\", \"99\"]\n\n Decode the postpath list, and deconstruct the\n\n * Page\n * Item\n * subpage (Archives)\n * subitem (Archives)\n\n code::\n\n import gallery\n t...
61
false
bschollnick/semantic_url
parse_uri
8,156
LDU_FT/katyukha/extend-me/get_class
LDU_FT
[ "<BEGIN>\n## `_`", "Method to generate real metaclass to be used::", " mc = ExtensibleType._(\"MyClass\") # note this line\n @six.add_metaclass(mc)\n class MyClassBase(object):\n pass", " :param str cls_name: name of generated class\n...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_class API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_class API. 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...
Generates new class to gether logic of all available extensions :: # Create metaclass *mc* mc = ExtensibleByHashType._("MyClass", hashattr='name') # Use metaclass *mc* to create base class for extensions @six.add_metaclass(mc) ...
"Generates new class to gether logic of all available extensions\n ::\n\n # Create metaclass *mc*\n mc = ExtensibleByHashType._(\"MyClass\", hashattr='name')\n\n # Use metaclass *mc* to create base class for extensions\n @six.add_metaclass(mc)\n ...
23
false
katyukha/extend-me
get_class
8,157
LDU_FT/alephdata/memorious/execute
LDU_FT
[ "<BEGIN>\n## `size`", "Total operations pending for this crawler\n<END>", "<BEGIN>\n## `read_word`", "OCR a single word from an image. Useful for captchas.\n Image should be pre-processed to remove noise etc.\n<END>", "<BEGIN>\n## `read_char`", "OCR a single character from an image. Useful for capt...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the execute API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the execute API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
Execute the crawler and create a database record of having done so.
"Execute the crawler and create a database record of having done\n so."
71
false
alephdata/memorious
execute
8,158
LDU_FT/svinota/mdns/update_record
LDU_FT
[ "<BEGIN>\n## `to_string`", "String representation with additional information\n<END>", "<BEGIN>\n## `answered_by`", "Returns true if the question is answered by the record\n<END>", "<BEGIN>\n## `reset_ttl`", "Sets this record's TTL and created time to that of\n another record.\n<END>", "<BEGIN>\n...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update_record API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update_record API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
Callback invoked by Zeroconf when new information arrives. Updates information required by browser in the Zeroconf cache.
"Callback invoked by Zeroconf when new information arrives.\n\n Updates information required by browser in the Zeroconf cache."
67
false
svinota/mdns
update_record
8,159
LDU_FT/mbedmicro/pyOCD/read
LDU_FT
[ "<BEGIN>\n## `byte_list_to_u32le_list`", "! @brief Convert a list of bytes to a list of 32-bit integers (little endian)", " If the length of the data list is not a multiple of 4, then the pad value is used\n for the additional required bytes.\n<END>", "<BEGIN>\n## `u32le_list_to_byte_list`", "! @brief...
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...
read data on the IN endpoint associated to the HID interface
"read data on the IN endpoint associated to the HID interface"
494
false
mbedmicro/pyOCD
read
8,160
LDU_FT/denisenkom/pytds/put_cancel
LDU_FT
[ "<BEGIN>\n## `validate_host`", "Validates host name against certificate", " @param cert: Certificate returned by host\n @param name: Actual host name used for connection\n @return: Returns true if host name matches certificate\n<END>", "<BEGIN>\n## `revert_to_clear`", "Reverts connection back to no...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the put_cancel API. 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 put_cancel API. 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...
Sends a cancel request to the server. Switches connection to IN_CANCEL state.
"Sends a cancel request to the server.\n\n Switches connection to IN_CANCEL state."
210
false
denisenkom/pytds
put_cancel
8,161
LDU_FT/canonical-ols/acceptable/api
LDU_FT
[ "<BEGIN>\n## `metadata_lint`", "Run the linter over the new metadata, comparing to the old.\n<END>", "<BEGIN>\n## `bind`", "Bind the service API urls to a flask app.\n<END>", "<BEGIN>\n## `serialize`", "Serialize into JSONable dict, and associated locations data.\n<END>", "<BEGIN>\n## `api`", "Add an ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the api API. 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 api API. 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...
Add an API to the service. :param url: This is the url that the API should be registered at. :param name: This is the name of the api, and will be registered with flask apps under. Other keyword arguments may be used, and they will be passed to the flask application when in...
"Add an API to the service.\n\n :param url: This is the url that the API should be registered at.\n :param name: This is the name of the api, and will be registered with\n flask apps under.\n\n Other keyword arguments may be used, and they will be passed to the\n flask application...
61
false
canonical-ols/acceptable
api
8,162
LDU_FT/The-Politico/politico-civic-ap-loader/get_election
LDU_FT
[ "<BEGIN>\n## `process_result`", "Processes top-level (state) results for candidate races, loads data\n into the database and sends alerts for winning results.\n<END>", "<BEGIN>\n## `get_division`", "Gets the Division object for the given row of election results.\n<END>", "<BEGIN>\n## `get_office`", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_election API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_election API. 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...
Gets the Election object for the given row of election results. Depends on knowing the Race object. If this is the presidential election, this will determine the Division attached to the election based on the row's statename. This function depends on knowing the Race object from `get_r...
"Gets the Election object for the given row of election results.\n Depends on knowing the Race object.\n\n If this is the presidential election, this will determine the\n Division attached to the election based on the row's statename.\n\n This function depends on knowing the Race object from...
36
false
The-Politico/politico-civic-ap-loader
get_election
8,163
LDU_FT/ThreatConnect-Inc/tcex/read_string_array
LDU_FT
[ "<BEGIN>\n## `_print_results`", "Print the download results.", " Args:\n file (str): The filename.\n status (str): The file download status.\n<END>", "<BEGIN>\n## `_confirm_overwrite`", "Confirm overwrite of template files.", " Make sure the user would like to continue ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the read_string_array API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the read_string_array API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Read method of CRUD operation for string array data. Args: key (string): The variable to read from the DB. embedded (boolean): Resolve embedded variables. Returns: (list): Results retrieved from DB.
"Read method of CRUD operation for string array data.\n\n Args:\n key (string): The variable to read from the DB.\n embedded (boolean): Resolve embedded variables.\n\n Returns:\n (list): Results retrieved from DB."
1,591
true
ThreatConnect-Inc/tcex
read_string_array
8,164
LDU_FT/ggravlingen/pytradfri/get_groups
LDU_FT
[ "<BEGIN>\n## `combine_data`", "Combines the data for this command with another.\n<END>", "<BEGIN>\n## `load_json`", "Load JSON data from a file and return as dict or list.", " Defaults to returning empty dict if file is not found.\n<END>", "<BEGIN>\n## `save_json`", "Save JSON data to a file.", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_groups API. 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_groups API. 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...
Return the groups linked to the gateway. Returns a Command.
"Return the groups linked to the gateway.\n\n Returns a Command."
79
false
ggravlingen/pytradfri
get_groups
8,165
LDU_FT/briancappello/py-meta-utils/_contribute_to_class
LDU_FT
[ "<BEGIN>\n## `process_factory_meta_options`", "Main entry point for consumer metaclasses. Usage::", " from py_meta_utils import (AbstractMetaOption, McsArgs, MetaOptionsFactory,\n process_factory_meta_options)", " class YourMetaOptionsFactory(MetaOptionsFactory)...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _contribute_to_class 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 _contribute_to_class API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Where the magic happens. Takes one parameter, the :class:`McsArgs` of the class-under-construction, and processes the declared ``class Meta`` from it (if any). We fill ourself with the declared meta options' name/value pairs, give the declared meta options a chance to also contribute to the clas...
"Where the magic happens. Takes one parameter, the :class:`McsArgs` of the\n class-under-construction, and processes the declared ``class Meta`` from\n it (if any). We fill ourself with the declared meta options' name/value pairs,\n give the declared meta options a chance to also contribute to the ...
31
false
briancappello/py-meta-utils
_contribute_to_class
8,166
LDU_FT/srittau/python-asserts/assert_is_none
LDU_FT
[ "<BEGIN>\n## `assert_true`", "Fail the test unless the expression is truthy.", " >>> assert_true(\"Hello World!\")\n >>> assert_true(\"\")\n Traceback (most recent call last):\n ...\n AssertionError: '' is not truthy", " The following msg_fmt arguments are supported:\n * msg - the def...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the assert_is_none API. 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 assert_is_none API. 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...
Fail if the expression is not None. >>> assert_is_none(None) >>> assert_is_none(False) Traceback (most recent call last): ... AssertionError: False is not None The following msg_fmt arguments are supported: * msg - the default error message * expr - tested expression
"Fail if the expression is not None.\n\n >>> assert_is_none(None)\n >>> assert_is_none(False)\n Traceback (most recent call last):\n ...\n AssertionError: False is not None\n\n The following msg_fmt arguments are supported:\n * msg - the default error message\n * expr - tested expression"
131
false
srittau/python-asserts
assert_is_none
8,167
LDU_FT/Cog-Creators/Red-Lavalink/listener
LDU_FT
[ "<BEGIN>\n## `wait_until_ready`", "Waits for the underlying node to become ready.", " If no_raise is set, returns false when a timeout occurs instead of propogating TimeoutError.\n A timeout of None means to wait indefinitely.\n<END>", "<BEGIN>\n## `connect`", "Connects to the voice channel as...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the listener API. 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 listener API. 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...
Listener task for receiving ops from Lavalink.
"Listener task for receiving ops from Lavalink."
103
false
Cog-Creators/Red-Lavalink
listener
8,168
LDU_FT/nickmilon/Hellas/logger_multi
LDU_FT
[ "<BEGIN>\n## `logging_format`", "returns a format\n :parameter:\n - str style: defines style of output format (defaults to txt)\n - txt plain text\n - dict like text which can be casted to dict\n<END>", "<BEGIN>\n## `logger_multi`", "a logger that logs to file as well as as scr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the logger_multi API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the logger_multi API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
a logger that logs to file as well as as screen see http://pythonhosted.org//logutils/ http://plumberjack.blogspot.gr/2010/10/supporting-alternative-formatting.html :Todo: - use new style formating for python > v3 i.e formatter = logging.Formatter(frmt.replace(" ", ""), style='{') #frmtC = frmt.t...
"a logger that logs to file as well as as screen\n see http://pythonhosted.org//logutils/ http://plumberjack.blogspot.gr/2010/10/supporting-alternative-formatting.html\n\n :Todo:\n - use new style formating for python > v3 i.e formatter = logging.Formatter(frmt.replace(\" \", \"\"), style='{')\n #frmt...
71
false
nickmilon/Hellas
logger_multi
8,169
LDU_FT/se-esss-litterbox/Pynac/dynacRepresentation
LDU_FT
[ "<BEGIN>\n## `from_dynacRepr`", "Construct a ``Quad`` instance from the Pynac lattice element\n<END>", "<BEGIN>\n## `scaleField`", "Adjust the field of the magnet by the value of ``scalingFactor``. The adjustment\n is multiplicative, so a value of ``scalingFactor = 1.0`` will result in no change\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the dynacRepresentation 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 dynacRepresentation 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 the Pynac representation of this Set4DAperture instance.
"Return the Pynac representation of this Set4DAperture instance."
52
false
se-esss-litterbox/Pynac
dynacRepresentation
8,170
LDU_FT/openvax/mhcflurry/calibrate_percentile_ranks
LDU_FT
[ "<BEGIN>\n## `extend`", "Return a new HyperparameterDefaults instance containing the\n hyperparameters from the current instance combined with\n those from other.", " It is an error if self and other have any hyperparameters in\n common.\n<END>", "<BEGIN>\n## `with_defaults`", "G...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the calibrate_percentile_ranks 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 calibrate_percentile_ranks API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclus...
Compute the cumulative distribution of ic50 values for a set of alleles over a large universe of random peptides, to enable computing quantiles in this distribution later. Parameters ---------- peptides : sequence of string or EncodableSequences, optional Peptides to...
"Compute the cumulative distribution of ic50 values for a set of alleles\n over a large universe of random peptides, to enable computing quantiles in\n this distribution later.\n\n Parameters\n ----------\n peptides : sequence of string or EncodableSequences, optional\n Pep...
272
false
openvax/mhcflurry
calibrate_percentile_ranks
8,171
LDU_FT/chigby/mtg/split_pow_tgh
LDU_FT
[ "<BEGIN>\n## `expr`", "Top level parsing function.", " An expression is <keyword> <OR> <expr>\n or <keyword> <SEP> <expr>\n or <keyword>\n<END>", "<BEGIN>\n## `keyword`", "Lowest level parsing function.", " A keyword consists of zero or more prefix o...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the split_pow_tgh API. 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 split_pow_tgh API. 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...
Split a power/toughness string on the correct slash. Correctly accounts for curly braces to denote fractions. E.g., '2/2' --> ['2', '2'] '3{1/2}/3{1/2}' --> ['3{1/2}', '3{1/2}']
"Split a power/toughness string on the correct slash.\n\n Correctly accounts for curly braces to denote fractions.\n E.g., '2/2' --> ['2', '2']\n '3{1/2}/3{1/2}' --> ['3{1/2}', '3{1/2}']"
13
false
chigby/mtg
split_pow_tgh
8,172