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/alecthomas/voluptuous/PathExists
LDU_FT
[ "<BEGIN>\n## `truth`", "Convenience decorator to convert truth functions into validators.", " >>> @truth\n ... def isdir(v):\n ... return os.path.isdir(v)\n >>> validate = Schema(isdir)\n >>> validate('/')\n '/'\n >>> with raises(MultipleInvalid, 'not a valid v...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the PathExists API. 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 PathExists API. 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...
Verify the path exists, regardless of its type. >>> os.path.basename(PathExists()(__file__)).startswith('validators.py') True >>> with raises(Invalid, 'path does not exist'): ... PathExists()("random_filename_goes_here.py") >>> with raises(PathInvalid, 'Not a Path'): ... PathExists()(None)
"Verify the path exists, regardless of its type.\n\n >>> os.path.basename(PathExists()(__file__)).startswith('validators.py')\n True\n >>> with raises(Invalid, 'path does not exist'):\n ... PathExists()(\"random_filename_goes_here.py\")\n >>> with raises(PathInvalid, 'Not a Path'):\n ... PathExist...
98
false
alecthomas/voluptuous
PathExists
27,273
LDU_FT/poldracklab/niworkflows/_get_settings
LDU_FT
[ "<BEGIN>\n## `spike_regressors`", "Add spike regressors to a confound/nuisance matrix.", " Parameters\n ----------\n data: pandas DataFrame object\n A tabulation of observations from which spike regressors should be\n estimated.\n criteria: dict{str: ('>' or '<', float)}\n Crite...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_settings API. 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_settings API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
Return any settings defined by the user, as well as any pre-defined settings files that exist for the image modalities to be registered.
"Return any settings defined by the user, as well as any pre-defined\n settings files that exist for the image modalities to be registered."
305
false
poldracklab/niworkflows
_get_settings
27,274
LDU_FT/jupyterhub/nbgitpuller/execute_cmd
LDU_FT
[ "<BEGIN>\n## `execute_cmd`", "Call given command, yielding output line by line\n<END>", "<BEGIN>\n## `main`", "Synchronizes a github repository with a local repository.\n<END>", "<BEGIN>\n## `pull`", "Pull selected repo from a remote git repository,\n while preserving user changes\n<END>", "<BEGI...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the execute_cmd API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the execute_cmd API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
Call given command, yielding output line by line
"Call given command, yielding output line by line"
15
false
jupyterhub/nbgitpuller
execute_cmd
27,275
LDU_FT/Robpol86/sphinxcontrib-imgur/refresh
LDU_FT
[ "<BEGIN>\n## `query_api`", "Query the Imgur API.", " :raise APIError: When Imgur responds with errors or unexpected data.", " :param sphinx.application.Sphinx app: Sphinx application object.\n :param str client_id: Imgur API client ID to use. https://api.imgur.com/oauth2\n :param str imgur_id: The...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the refresh API. Each 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 refresh API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
Query the API to update this instance. :raise APIError: When Imgur responds with errors or unexpected data. :param sphinx.application.Sphinx app: Sphinx application object. :param str client_id: Imgur API client ID to use. https://api.imgur.com/oauth2 :param int ttl: Number of seconds ...
"Query the API to update this instance.\n\n :raise APIError: When Imgur responds with errors or unexpected data.\n\n :param sphinx.application.Sphinx app: Sphinx application object.\n :param str client_id: Imgur API client ID to use. https://api.imgur.com/oauth2\n :param int ttl: Number of s...
90
false
Robpol86/sphinxcontrib-imgur
refresh
27,276
LDU_FT/Shoobx/xmldiff/patch_addContext
LDU_FT
[ "<BEGIN>\n## `diff_main`", "Find the differences between two texts. Simplifies the problem by\n stripping any common prefix or suffix off the texts before diffing.", " Args:\n text1: Old string to be diffed.\n text2: New string to be diffed.\n checklines: Optional speedup flag. If prese...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the patch_addContext API. 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 patch_addContext API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Increase the context until it is unique, but don't let the pattern expand beyond Match_MaxBits. Args: patch: The patch to grow. text: Source text.
"Increase the context until it is unique,\n but don't let the pattern expand beyond Match_MaxBits.\n\n Args:\n patch: The patch to grow.\n text: Source text."
146
false
Shoobx/xmldiff
patch_addContext
27,277
LDU_FT/kmadac/bitstamp-python-client/xrp_withdrawal
LDU_FT
[ "<BEGIN>\n## `_construct_url`", "Adds the orderbook to the url if base and quote are specified.\n<END>", "<BEGIN>\n## `_request`", "Make a generic request, adding in any proxy defined by the instance.", " Raises a ``requests.HTTPError`` if the response status isn't 200, and\n raises a :class:`...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the xrp_withdrawal API. 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 xrp_withdrawal API. 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...
Sends xrps to another xrp wallet specified by address. Returns withdrawal id.
"Sends xrps to another xrp wallet specified by address. Returns withdrawal id."
47
false
kmadac/bitstamp-python-client
xrp_withdrawal
27,278
LDU_FT/zarr-developers/zarr/require_dataset
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 require_dataset API. 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 require_dataset API. 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...
Obtain an array, creating if it doesn't exist. Other `kwargs` are as per :func:`zarr.hierarchy.Group.create_dataset`. Parameters ---------- name : string Array name. shape : int or tuple of ints Array shape. dtype : string or dtype, optional ...
"Obtain an array, creating if it doesn't exist. Other `kwargs` are\n as per :func:`zarr.hierarchy.Group.create_dataset`.\n\n Parameters\n ----------\n name : string\n Array name.\n shape : int or tuple of ints\n Array shape.\n dtype : string or dtype, opti...
436
false
zarr-developers/zarr
require_dataset
27,279
LDU_FT/dagwieers/vmguestlib/GetMemShares
LDU_FT
[ "<BEGIN>\n## `OpenHandle`", "Gets a handle for use with other vSphere Guest API functions. The guest library\n handle provides a context for accessing information about the virtual machine.", " Virtual machine statistics and state data are associated with a particular guest library\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the GetMemShares API. 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 GetMemShares API. 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...
Retrieves the number of memory shares allocated to the virtual machine. For information about how an ESX server uses memory shares to manage virtual machine priority, see the vSphere Resource Management Guide.
"Retrieves the number of memory shares allocated to the virtual machine.\n For information about how an ESX server uses memory shares to manage\n virtual machine priority, see the vSphere Resource Management Guide."
50
false
dagwieers/vmguestlib
GetMemShares
27,280
LDU_FT/portfoliome/foil/replace_keys
LDU_FT
[ "<BEGIN>\n## `_`", "ISO 8601 format. Interprets naive datetime as UTC with zulu suffix.\n<END>", "<BEGIN>\n## `create_key_filter`", "Generate combinations of key, value pairs for each key in properties.", " Examples\n --------\n properties = {'ent': ['geo_rev', 'supply_chain'], 'own', 'fi'}\n >>...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the replace_keys API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the replace_keys API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
New record with renamed keys including keys only found in key_map.
"New record with renamed keys including keys only found in key_map."
89
false
portfoliome/foil
replace_keys
27,281
LDU_FT/asphalt-framework/asphalt/add_resource
LDU_FT
[ "<BEGIN>\n## `run_application`", "Configure logging and start the given root component in the default asyncio event loop.", " Assuming the root component was started successfully, the event loop will continue running\n until the process is terminated.", " Initializes the logging system first based on...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_resource API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_resource API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
Add a resource to this context. This will cause a ``resource_added`` event to be dispatched. :param value: the actual resource value :param name: name of this resource (unique among all its registered types within a single context) :param context_attr: name of the context a...
"Add a resource to this context.\n\n This will cause a ``resource_added`` event to be dispatched.\n\n :param value: the actual resource value\n :param name: name of this resource (unique among all its registered types within a single\n context)\n :param context_attr: name of the c...
143
false
asphalt-framework/asphalt
add_resource
27,282
LDU_FT/jaywink/federation/verify_signature
LDU_FT
[ "<BEGIN>\n## `check_sender_and_entity_handle_match`", "Ensure that sender and entity handles match.", " Basically we've already verified the sender is who they say when receiving the payload. However, the sender might\n be trying to set another author in the payload itself, since Diaspora has the sender i...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the verify_signature API. 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 verify_signature API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Verify the signed XML elements to have confidence that the claimed author did actually generate this message.
"Verify the signed XML elements to have confidence that the claimed\n author did actually generate this message."
230
false
jaywink/federation
verify_signature
27,283
LDU_FT/kayak/pypika/_orderby_sql
LDU_FT
[ "<BEGIN>\n## `_select_sql`", "Overridden function to generate the SELECT part of the SQL statement,\n with the addition of the a modifier if present.\n<END>", "<BEGIN>\n## `_orderby_sql`", "Produces the ORDER BY part of the query. This is a list of fields and possibly their directionality, ASC or\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _orderby_sql API. 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 _orderby_sql API. 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...
Produces the ORDER BY part of the query. This is a list of fields and possibly their directionality, ASC or DESC. The clauses are stored in the query under self._orderbys as a list of tuples containing the field and directionality (which can be None). If an order by field is used in the select...
"Produces the ORDER BY part of the query. This is a list of fields and possibly their directionality, ASC or\n DESC. The clauses are stored in the query under self._orderbys as a list of tuples containing the field and\n directionality (which can be None).\n\n If an order by field is used in the s...
32
false
kayak/pypika
_orderby_sql
27,284
LDU_FT/astropy/photutils/_to_image_partial_overlap
LDU_FT
[ "<BEGIN>\n## `_move_tuple_axes_first`", "Bottleneck can only take integer axis, not tuple, so this function\n takes all the axes to be operated on and combines them into the\n first dimension of the array so that we can then use axis=0\n<END>", "<BEGIN>\n## `_nanmean`", "Bottleneck nanmean function that...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _to_image_partial_overlap 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 _to_image_partial_overlap API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi...
Return an image of the mask in a 2D array, where the mask is not fully within the image (i.e. partial or no overlap).
"Return an image of the mask in a 2D array, where the mask\n is not fully within the image (i.e. partial or no overlap)."
1,397
true
astropy/photutils
_to_image_partial_overlap
27,285
LDU_FT/tarbell-project/tarbell/_add_user_to_file
LDU_FT
[ "<BEGIN>\n## `_get_or_create_config`", "Get or create a Tarbell configuration directory.\n<END>", "<BEGIN>\n## `slughifi`", "High Fidelity slugify - slughifi.py, v 0.1", " Examples :", " >>> text = 'C\\'est déjà l\\'été.'", " >>> slughifi(text)\n 'cest-deja-lete'", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _add_user_to_file API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _add_user_to_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...
Grants the given set of permissions for a given file_id. service is an already-credentialed Google Drive service instance.
"Grants the given set of permissions for a given file_id. service is an\n already-credentialed Google Drive service instance."
66
false
tarbell-project/tarbell
_add_user_to_file
27,286
LDU_FT/objectrocket/python-client/get_stepdown_window
LDU_FT
[ "<BEGIN>\n## `register_extension_class`", "Instantiate the given extension class and register as a public attribute of the given base.", " README: The expected protocol here is to instantiate the given extension and pass the base\n object as the first positional argument, then unpack args and kwargs as ad...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_stepdown_window 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_stepdown_window API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
Get information on this instance's stepdown window.
"Get information on this instance's stepdown window."
118
false
objectrocket/python-client
get_stepdown_window
27,287
LDU_FT/loganasherjones/yapconf/add_source
LDU_FT
[ "<BEGIN>\n## `change_case`", "Changes the case to snake/kebab case depending on the separator.", " As regexes can be confusing, I'll just go through this line by line as an\n example with the following string: ' Foo2Boo_barBaz bat'", " 1. Remove whitespaces from beginning/end. => 'Foo2Boo_barBaz bat-...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_source API. 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 add_source API. 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...
Add a source to the spec. Sources should have a unique label. This will help tracing where your configurations are coming from if you turn up the log-level. The keyword arguments are significant. Different sources require different keyword arguments. Required keys for each source_type ...
"Add a source to the spec.\n\n Sources should have a unique label. This will help tracing where your\n configurations are coming from if you turn up the log-level.\n\n The keyword arguments are significant. Different sources require\n different keyword arguments. Required keys for each sourc...
139
false
loganasherjones/yapconf
add_source
27,288
LDU_FT/jorahn/icy/ae
LDU_FT
[ "<BEGIN>\n## `ae`", "Computes the absolute error.", " This function computes the absolute error between two numbers,\n or for element between a pair of lists or numpy arrays.", " Parameters\n ----------\n actual : int, float, list of numbers, numpy array\n The ground truth value\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the ae API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted docu...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the ae API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted docu...
Computes the absolute error. This function computes the absolute error between two numbers, or for element between a pair of lists or numpy arrays. Parameters ---------- actual : int, float, list of numbers, numpy array The ground truth value predicted : same type as actual ...
"Computes the absolute error.\n\n This function computes the absolute error between two numbers,\n or for element between a pair of lists or numpy arrays.\n\n Parameters\n ----------\n actual : int, float, list of numbers, numpy array\n The ground truth value\n predicted : same type as act...
86
false
jorahn/icy
ae
27,289
LDU_FT/curious-containers/cc-core/for_each_file
LDU_FT
[ "<BEGIN>\n## `brief_exception_text`", "Returns the Exception class and the message of the exception as string.", " :param exception: The exception to format\n :param secret_values: Values to hide in output\n<END>", "<BEGIN>\n## `print_exception`", "Prints the exception message and the name of the exce...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the for_each_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 ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the for_each_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 ext...
Calls func(filename) for every file under base_dir. :param base_dir: A directory containing files :param func: The function to call with every file.
"Calls func(filename) for every file under base_dir.\n\n :param base_dir: A directory containing files\n :param func: The function to call with every file."
96
false
curious-containers/cc-core
for_each_file
27,290
LDU_FT/DolphDev/pynationstates/wa
LDU_FT
[ "<BEGIN>\n## `_get_shard`", "Dynamically Builds methods to query shard with proper with arg and kwargs support\n<END>", "<BEGIN>\n## `request`", "Request the API", " This method is wrapped by similar functions\n<END>", "<BEGIN>\n## `command`", "Method Interface to the command API for Nationsta...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the wa API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted docu...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the wa API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted docu...
Setup access to the World Assembly API with the WorldAssembly object :param chamber: Chamber of the WA :type chamber: str, int :returns: WorldAssembly Object based off region_name :rtype: WorldAssembly
"Setup access to the World Assembly API with the WorldAssembly object\n\n :param chamber: Chamber of the WA\n :type chamber: str, int\n :returns: WorldAssembly Object based off region_name\n :rtype: WorldAssembly"
17
false
DolphDev/pynationstates
wa
27,291
LDU_FT/wdbm/abstraction/usernames
LDU_FT
[ "<BEGIN>\n## `access_SUSY_dataset_format_file`", "This function accesses a CSV file containing data of the form of the [SUSY\n dataset](https://archive.ics.uci.edu/ml/datasets/SUSY), i.e. with the first\n column being class labels and other columns being features.\n<END>", "<BEGIN>\n## `draw_neural_networ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the usernames API. 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 usernames API. 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...
This function returns the list of unique usernames corresponding to the tweets stored in self.
"This function returns the list of unique usernames corresponding to the\n tweets stored in self."
21
false
wdbm/abstraction
usernames
27,292
LDU_FT/twidi/django-extended-choices/add_choices
LDU_FT
[ "<BEGIN>\n## `create_choice`", "Create an instance of a ``Choices`` object.", " Parameters\n ----------\n klass : type\n The class to use to recreate the object.\n choices : list(tuple)\n A list of choices as expected by the ``__init__`` method of ``klass``.\n subsets : list(tuple)\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_choices API. 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 add_choices API. 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...
Add some choices to the current ``Choices`` instance. The given choices will be added to the existing choices. If a ``name`` attribute is passed, a new subset will be created with all the given choices. Note that it's not possible to add new choices to a subset. Parameters ...
"Add some choices to the current ``Choices`` instance.\n\n The given choices will be added to the existing choices.\n If a ``name`` attribute is passed, a new subset will be created with all the given\n choices.\n\n Note that it's not possible to add new choices to a subset.\n\n Param...
59
false
twidi/django-extended-choices
add_choices
27,293
LDU_FT/owncloud/pyocclient/share_file_with_link
LDU_FT
[ "<BEGIN>\n## `get_expiration`", "Returns the expiration date.", " :returns: expiration date\n :rtype: datetime object\n<END>", "<BEGIN>\n## `login`", "Authenticate to ownCloud.\n This will create a session on the server.", " :param user_id: user id\n :param password: pas...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the share_file_with_link 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 share_file_with_link API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Shares a remote file with link :param path: path to the remote file to share :param perms (optional): permission of the shared object defaults to read only (1) :param public_upload (optional): allows users to upload files or folders :param password (optional): sets a password ...
"Shares a remote file with link\n\n :param path: path to the remote file to share\n :param perms (optional): permission of the shared object\n defaults to read only (1)\n :param public_upload (optional): allows users to upload files or folders\n :param password (optional): sets a pass...
139
false
owncloud/pyocclient
share_file_with_link
27,294
LDU_FT/acorg/pymds/get
LDU_FT
[ "<BEGIN>\n## `get`", "Returns the current version without importing pymds.\n<END>", "<BEGIN>\n## `_gradient`", "Compute the gradient.", " Args:\n diff (`array-like`): [`m`, `m`] matrix. `D` - `d`\n d (`array-like`): [`m`, `m`] matrix.\n coords (`array-like`): [`m`, `n...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
Returns the current version without importing pymds.
"Returns the current version without importing pymds."
60
false
acorg/pymds
get
27,295
LDU_FT/PMEAL/porespy/insert_cylinder
LDU_FT
[ "<BEGIN>\n## `show_mesh`", "r\"\"\"\n Visualizes the mesh of a region as obtained by ``get_mesh`` function in\n the ``metrics`` submodule.", " Parameters\n ----------\n mesh : tuple\n A mesh returned by ``skimage.measure.marching_cubes``", " Returns\n -------\n fig : Matplotlib ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the insert_cylinder API. 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 insert_cylinder API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
r""" Inserts a cylinder of given radius onto a given image Parameters ---------- im : array_like Original voxelated image xyz0, xyz1 : 3-by-1 array_like Voxel coordinates of the two end points of the cylinder r : int Radius of the cylinder Returns ------- im...
"r\"\"\"\n Inserts a cylinder of given radius onto a given image\n\n Parameters\n ----------\n im : array_like\n Original voxelated image\n xyz0, xyz1 : 3-by-1 array_like\n Voxel coordinates of the two end points of the cylinder\n r : int\n Radius of the cylinder\n\n Returns\n ...
688
false
PMEAL/porespy
insert_cylinder
27,296
LDU_FT/astraw/stdeb/get_deb_depends_from_setuptools_requires
LDU_FT
[ "<BEGIN>\n## `source_debianize_name`", "make name acceptable as a Debian source package name\n<END>", "<BEGIN>\n## `get_deb_depends_from_setuptools_requires`", "Suppose you can't confidently figure out a .deb which satisfies a given\n requirement. If on_failure == 'warn', then log a warning. If on_failur...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_deb_depends_from_setuptools_requires API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicat...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_deb_depends_from_setuptools_requires API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicat...
Suppose you can't confidently figure out a .deb which satisfies a given requirement. If on_failure == 'warn', then log a warning. If on_failure == 'raise' then raise CantSatisfyRequirement exception. If on_failure == 'guess' then guess that python-$FOO will satisfy the dependency and that the Python ...
"Suppose you can't confidently figure out a .deb which satisfies a given\n requirement. If on_failure == 'warn', then log a warning. If on_failure\n == 'raise' then raise CantSatisfyRequirement exception. If on_failure ==\n 'guess' then guess that python-$FOO will satisfy the dependency and that\n the Py...
16
false
astraw/stdeb
get_deb_depends_from_setuptools_requires
27,297
LDU_FT/databio/pypiper/get_chrs_from_bam
LDU_FT
[ "<BEGIN>\n## `add_pypiper_args`", "Use this to add standardized pypiper arguments to your python pipeline.", " There are two ways to use `add_pypiper_args`: by specifying argument groups,\n or by specifying individual arguments. Specifying argument groups will add\n multiple arguments to your parser; t...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_chrs_from_bam API. 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_chrs_from_bam API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Uses samtools to grab the chromosomes from the header that are contained in this bam file.
"Uses samtools to grab the chromosomes from the header that are contained\n in this bam file."
322
false
databio/pypiper
get_chrs_from_bam
27,298
LDU_FT/ergo/ziggurat_foundations/resources_with_possible_perms
LDU_FT
[ "<BEGIN>\n## `run_migrations_offline`", "Run migrations in 'offline' mode.", " This configures the context with just a URL\n and not an Engine, though an Engine is acceptable\n here as well. By skipping the Engine creation\n we don't even need a DBAPI to be available.", " Calls to context.exec...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the resources_with_possible_perms 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 resources_with_possible_perms API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conc...
returns list of permissions and resources for this user :param instance: :param resource_ids: restricts the search to specific resources :param resource_types: restricts the search to specific resource types :param db_session: :return:
"returns list of permissions and resources for this user\n\n :param instance:\n :param resource_ids: restricts the search to specific resources\n :param resource_types: restricts the search to specific resource types\n :param db_session:\n :return:"
229
false
ergo/ziggurat_foundations
resources_with_possible_perms
27,299
LDU_FT/linuxsoftware/ls.joyous/getAwareDatetime
LDU_FT
[ "<BEGIN>\n## `getLocalTime`", "Get the time in the local timezone from date and time\n<END>", "<BEGIN>\n## `getLocalDateAndTime`", "Get the date and time in the local timezone from date and optionally time\n<END>", "<BEGIN>\n## `getLocalDatetime`", "Get a datetime in the local timezone from date and optio...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the getAwareDatetime API. 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 getAwareDatetime API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Get a datetime in the given timezone from date and optionally time. If time is not given it will default to timeDefault if that is given or if not then to the end of the day.
"Get a datetime in the given timezone from date and optionally time.\n If time is not given it will default to timeDefault if that is given\n or if not then to the end of the day."
192
false
linuxsoftware/ls.joyous
getAwareDatetime
27,300
LDU_FT/MozillaSecurity/fuzzfetch/symlink
LDU_FT
[ "<BEGIN>\n## `_si`", "Format a number using base-2 SI prefixes\n<END>", "<BEGIN>\n## `_extract_file`", "Extract files while explicitly setting the proper permissions\n<END>", "<BEGIN>\n## `build_string`", "Taskcluster denotes builds in one of two formats - i.e. linux64-asan or linux64-asan-opt\n Th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the symlink API. Each 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 symlink API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
os.symlink() but use a junction point on Windows.
"os.symlink() but use a junction point on Windows."
60
false
MozillaSecurity/fuzzfetch
symlink
27,301
LDU_FT/vadimk2016/v-vk-api/send_method_request
LDU_FT
[ "<BEGIN>\n## `request_method`", "Process method request and return json with results", " :param method: str: specifies the method, example: \"users.get\"\n :param method_kwargs: dict: method parameters,\n example: \"users_id=1\", \"fields='city, contacts'\"\n<END>", "<BEGIN>\n## `request_...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the send_method_request API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the send_method_request API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
Sends user-defined method and method params
"Sends user-defined method and method params"
22
false
vadimk2016/v-vk-api
send_method_request
27,302
LDU_FT/scottrice/pysteam/table_driven
LDU_FT
[ "<BEGIN>\n## `__get_nondirect_init`", "return the non-direct init if the direct algorithm has been selected.\n<END>", "<BEGIN>\n## `reflect`", "reflect a data word, i.e. reverts the bit order.\n<END>", "<BEGIN>\n## `bit_by_bit`", "Classic simple and slow CRC implementation. This function iterates bit\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the table_driven API. 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 table_driven API. 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...
The Standard table_driven CRC algorithm.
"The Standard table_driven CRC algorithm."
33
false
scottrice/pysteam
table_driven
27,303
LDU_FT/Aluriak/bubble-tools/line_type
LDU_FT
[ "<BEGIN>\n## `bubble_to_dot`", "Write in dotfile a graph equivalent to those depicted in bubble file\n<END>", "<BEGIN>\n## `bubble_to_gexf`", "Write in bblfile a graph equivalent to those depicted in bubble file\n<END>", "<BEGIN>\n## `bubble_to_js`", "Write in jsdir a graph equivalent to those depicted in...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the line_type API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the line_type API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
Give type of input line, as defined in LINE_TYPES >>> line_type('IN\\ta\\tb') 'IN' >>> line_type('') 'EMPTY'
"Give type of input line, as defined in LINE_TYPES\n\n >>> line_type('IN\\\\ta\\\\tb')\n 'IN'\n >>> line_type('')\n 'EMPTY'"
88
false
Aluriak/bubble-tools
line_type
27,304
LDU_FT/ttinoco/OPTALG/solve
LDU_FT
[ "<BEGIN>\n## `solve`", "Solves optimization problem.", " Parameters\n ----------\n problem : Object\n<END>", "<BEGIN>\n## `factorize`", "Factorizes A.", " Parameters\n ----------\n A : matrix\n For symmetric systems, should contain only lower diagonal pa...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the solve API. Each 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 solve API. Each 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...
Solves optimization problem. Parameters ---------- problem : Object
"Solves optimization problem.\n\n Parameters\n ----------\n problem : Object"
86
false
ttinoco/OPTALG
solve
27,305
LDU_FT/EVEprosper/ProsperCommon/decorate
LDU_FT
[ "<BEGIN>\n## `render_secrets`", "combine a jinja template with a secret .ini file", " Args:\n config_path (str): path to .cfg file with jinja templating\n secret_path (str): path to .ini-like secrets file", " Returns:\n ProsperConfig: rendered configuration object\n<END>", "<BEGIN...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the decorate API. 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 decorate API. 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...
add slack-specific flourishes to responses https://api.slack.com/docs/message-attachments Args: record (:obj:`logging.record`): message to log Returns: (:obj:`dict`): attachments object for reporting
"add slack-specific flourishes to responses\n\n https://api.slack.com/docs/message-attachments\n\n Args:\n record (:obj:`logging.record`): message to log\n\n Returns:\n (:obj:`dict`): attachments object for reporting"
115
false
EVEprosper/ProsperCommon
decorate
27,306
LDU_FT/pandas-profiling/pandas-profiling/describe_numeric_1d
LDU_FT
[ "<BEGIN>\n## `get_rejected_variables`", "Return a list of variable names being rejected for high\n correlation with one of remaining variables.", " Parameters:\n ----------\n threshold : float\n Correlation value which is above the threshold are rejected", " Retur...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the describe_numeric_1d API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the describe_numeric_1d API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
Compute summary statistics of a numerical (`TYPE_NUM`) variable (a Series). Also create histograms (mini an full) of its distribution. Parameters ---------- series : Series The variable to describe. Returns ------- Series The description of the variable as a Series with in...
"Compute summary statistics of a numerical (`TYPE_NUM`) variable (a Series).\n\n Also create histograms (mini an full) of its distribution.\n\n Parameters\n ----------\n series : Series\n The variable to describe.\n\n Returns\n -------\n Series\n The description of the variable as a S...
91
false
pandas-profiling/pandas-profiling
describe_numeric_1d
27,307
LDU_FT/perrygeo/simanneal/shapeRecords
LDU_FT
[ "<BEGIN>\n## `distance`", "Calculates distance between two latitude-longitude coordinates.\n<END>", "<BEGIN>\n## `round_figures`", "Returns x rounded to n significant figures.\n<END>", "<BEGIN>\n## `set_schedule`", "Takes the output from `auto` and sets the attributes\n<END>", "<BEGIN>\n## `copy_state`"...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the shapeRecords API. 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 shapeRecords API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
Returns a list of combination geometry/attribute records for all records in a shapefile.
"Returns a list of combination geometry/attribute records for\r\n all records in a shapefile."
67
false
perrygeo/simanneal
shapeRecords
27,308
LDU_FT/kalefranz/auxlib/listify
LDU_FT
[ "<BEGIN>\n## `import_and_wrap_deprecated`", "Usage:\n import_and_wrap_deprecated('conda.common.connection', locals())\n # looks for conda.common.connection.__all__\n<END>", "<BEGIN>\n## `deprecate_module_with_proxy`", "Usage:\n deprecate_module_with_proxy(__name__, locals()) # at bottom ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the listify API. Each 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 listify API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
Examples: >>> listify('abc', return_type=list) ['abc'] >>> listify(None) () >>> listify(False) (False,) >>> listify(('a', 'b', 'c'), return_type=list) ['a', 'b', 'c']
"Examples:\n >>> listify('abc', return_type=list)\n ['abc']\n >>> listify(None)\n ()\n >>> listify(False)\n (False,)\n >>> listify(('a', 'b', 'c'), return_type=list)\n ['a', 'b', 'c']"
107
false
kalefranz/auxlib
listify
27,309
LDU_FT/jbrudvik/yahooscraper/authenticated_session
LDU_FT
[ "<BEGIN>\n## `authenticated_session`", "Given username and password, return an authenticated Yahoo `requests`\n session that can be used for further scraping requests.", " Throw an AuthencationError if authentication fails.\n<END>", "<BEGIN>\n## `post_data`", "Given username and password, return the p...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the authenticated_session 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 authenticated_session API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Given username and password, return an authenticated Yahoo `requests` session that can be used for further scraping requests. Throw an AuthencationError if authentication fails.
"Given username and password, return an authenticated Yahoo `requests`\n session that can be used for further scraping requests.\n\n Throw an AuthencationError if authentication fails."
12
false
jbrudvik/yahooscraper
authenticated_session
27,310
LDU_FT/MycroftAI/mycroft-precise/create_model
LDU_FT
[ "<BEGIN>\n## `load_precise_model`", "Loads a Keras model from file, handling custom loss function\n<END>", "<BEGIN>\n## `create_model`", "Load or create a precise model", " Args:\n model_name: Name of model\n params: Parameters used to create the model", " Returns:\n model: Load...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_model API. 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 create_model API. 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...
Load or create a precise model Args: model_name: Name of model params: Parameters used to create the model Returns: model: Loaded Keras model
"Load or create a precise model\n\n Args:\n model_name: Name of model\n params: Parameters used to create the model\n\n Returns:\n model: Loaded Keras model"
79
false
MycroftAI/mycroft-precise
create_model
27,311
LDU_FT/mapbox/cligj/coords_from_query
LDU_FT
[ "<BEGIN>\n## `normalize_feature_inputs`", "Click callback that normalizes feature input values.", " Returns a generator over features from the input value.", " Parameters\n ----------\n ctx: a Click context\n param: the name of the argument or option\n value: object\n The value argume...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the coords_from_query API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the coords_from_query API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Transform a query line into a (lng, lat) pair of coordinates.
"Transform a query line into a (lng, lat) pair of coordinates."
16
false
mapbox/cligj
coords_from_query
27,312
LDU_FT/rm-hull/OPi.GPIO/cleanup
LDU_FT
[ "<BEGIN>\n## `setmode`", "You must call this method prior to using all other calls.", " :param mode: the mode, one of :py:attr:`GPIO.BOARD`, :py:attr:`GPIO.BCM`,\n :py:attr:`GPIO.SUNXI`, or a `dict` or `object` representing a custom\n pin mapping.\n<END>", "<BEGIN>\n## `setup`", "You need t...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the cleanup API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the cleanup API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
At the end any program, it is good practice to clean up any resources you might have used. This is no different with OPi.GPIO. By returning all channels you have used back to inputs with no pull up/down, you can avoid accidental damage to your Orange Pi by shorting out the pins. Note that this will only...
"At the end any program, it is good practice to clean up any resources you\n might have used. This is no different with OPi.GPIO. By returning all\n channels you have used back to inputs with no pull up/down, you can avoid\n accidental damage to your Orange Pi by shorting out the pins. Note that\n this will...
60
false
rm-hull/OPi.GPIO
cleanup
27,313
LDU_FT/linkedin/shiv/clean_pip_env
LDU_FT
[ "<BEGIN>\n## `get_args`", "Overrides easy_install.ScriptWriter.get_args", " This method avoids using pkg_resources to map a named entry_point\n to a callable at invocation time.\n<END>", "<BEGIN>\n## `clean_pip_env`", "A context manager for temporarily removing 'PIP_REQUIRE_VIRTUALENV' from the enviro...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the clean_pip_env API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the clean_pip_env API. 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...
A context manager for temporarily removing 'PIP_REQUIRE_VIRTUALENV' from the environment. Since shiv installs via `--target`, we need to ignore venv requirements if they exist.
"A context manager for temporarily removing 'PIP_REQUIRE_VIRTUALENV' from the environment.\n\n Since shiv installs via `--target`, we need to ignore venv requirements if they exist."
40
false
linkedin/shiv
clean_pip_env
27,314
LDU_FT/fudge-py/fudge/without_args
LDU_FT
[ "<BEGIN>\n## `fmt_val`", "Format a value for inclusion in an \n informative text string.\n<END>", "<BEGIN>\n## `fmt_dict_vals`", "Returns list of key=val pairs formatted\n for inclusion in an informative text string.\n<END>", "<BEGIN>\n## `with_patched_object`", "Decorator that patches an object bef...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the without_args API. 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 without_args API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
Set the last call to expect that certain arguments will not exist. This is the opposite of :func:`fudge.Fake.with_matching_args`. It will fail if any of the arguments are passed. .. doctest:: >>> import fudge >>> query = fudge.Fake('query').expects_call().without_args...
"Set the last call to expect that certain arguments will not exist.\n\n This is the opposite of :func:`fudge.Fake.with_matching_args`. It will\n fail if any of the arguments are passed.\n\n .. doctest::\n\n >>> import fudge\n >>> query = fudge.Fake('query').expects_call().wit...
155
false
fudge-py/fudge
without_args
27,315
LDU_FT/sivakov512/python-static-api-generator/convert_content
LDU_FT
[ "<BEGIN>\n## `_validate_extension`", "Validates that source file extension is supported.", " :raises: UnsupportedExtensionError\n<END>", "<BEGIN>\n## `convert_content`", "Convert content of source file into dict result.\n<END>", "<BEGIN>\n## `_get_tags_and_content`", "Splits content into two stri...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the convert_content API. 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 convert_content API. 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...
Convert content of source file with loader, provided with `loader_cls` self attribute. Returns dict with converted content if loader class support source file extenstions, otherwise return nothing.
"Convert content of source file with loader, provided with\n `loader_cls` self attribute.\n\n Returns dict with converted content if loader class support source file\n extenstions, otherwise return nothing."
14
false
sivakov512/python-static-api-generator
convert_content
27,316
LDU_FT/jd/tenacity/before_log
LDU_FT
[ "<BEGIN>\n## `after_log`", "After call strategy that logs to some logger the finished attempt.\n<END>", "<BEGIN>\n## `retry`", "Wrap a function with a new `Retrying` object.", " :param dargs: positional arguments passed to Retrying object\n :param dkw: keyword arguments passed to the Retrying object\n...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the before_log API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the before_log API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
Before call strategy that logs to some logger the attempt.
"Before call strategy that logs to some logger the attempt."
44
false
jd/tenacity
before_log
27,317
LDU_FT/ray-project/ray/compute_advantages
LDU_FT
[ "<BEGIN>\n## `_agent_import_failed`", "Returns dummy agent class for if PyTorch etc. is not installed.\n<END>", "<BEGIN>\n## `run`", "Executes training.", " Args:\n run_or_experiment (function|class|str|Experiment): If\n function|class|str, this is the algorithm or model to train.\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the compute_advantages 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 compute_advantages 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...
Given a rollout, compute its value targets and the advantage. Args: rollout (SampleBatch): SampleBatch of a single trajectory last_r (float): Value estimation for last observation gamma (float): Discount factor. lambda_ (float): Parameter for GAE use_gae (bool): Using Genera...
"Given a rollout, compute its value targets and the advantage.\n\n Args:\n rollout (SampleBatch): SampleBatch of a single trajectory\n last_r (float): Value estimation for last observation\n gamma (float): Discount factor.\n lambda_ (float): Parameter for GAE\n use_gae (bool): Usin...
1,706
true
ray-project/ray
compute_advantages
27,318
LDU_FT/ARMmbed/mbed-cloud-sdk-python/device_destroy
LDU_FT
[ "<BEGIN>\n## `add_resource_subscription`", "Subscribe to a resource path # noqa: E501", "The Device Management Connect eventing model consists of observable resources. This means that endpoints can deliver updated resource content, periodically or with a more sophisticated solution-dependent logic. The OMA LwM...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the device_destroy API. 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 device_destroy API. 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...
Delete a device. # noqa: E501 Delete device. Only available for devices with a developer certificate. Attempts to delete a device with a production certicate will return a 400 response. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request,...
"Delete a device. # noqa: E501\n\n Delete device. Only available for devices with a developer certificate. Attempts to delete a device with a production certicate will return a 400 response. # noqa: E501\n This method makes a synchronous HTTP request by default. To make an\n asynchronous HTTP req...
1,479
true
ARMmbed/mbed-cloud-sdk-python
device_destroy
27,319
LDU_FT/langloisjp/pysvcmetrics/timed
LDU_FT
[ "<BEGIN>\n## `timeit`", "Time execution of function. Returns (res, seconds).", " >>> res, timing = timeit(time.sleep, 1)\n<END>", "<BEGIN>\n## `timing`", "Log timing information", " >>> client = StatsdClient()\n >>> client.timing('example.timing', 500)\n >>> client.timing(('example...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the timed API. Each 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 timed API. Each 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...
Decorator to time execution of function. Metric name is function name (as given under f.__name__). Optionally provide a prefix (without the '.'). >>> @timed() ... def f(): ... print('ok') ... >>> f() ok >>> @timed(prefix='mymetrics') ... def g(): ... print('ok') ...
"Decorator to time execution of function.\n Metric name is function name (as given under f.__name__).\n Optionally provide a prefix (without the '.').\n\n >>> @timed()\n ... def f():\n ... print('ok')\n ...\n >>> f()\n ok\n >>> @timed(prefix='mymetrics')\n ... def g():\n ... pri...
40
false
langloisjp/pysvcmetrics
timed
27,320
LDU_FT/aheadley/python-crunchyroll/get_stream_formats
LDU_FT
[ "<BEGIN>\n## `return_collection`", "Change method return value from raw API output to collection of models\n<END>", "<BEGIN>\n## `_do_post_request_tasks`", "Handle actions that need to be done with every response", " I'm not sure what these session_ops are actually used for yet, seems to\n be ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_stream_formats 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 get_stream_formats 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...
Get the available media formats for a given media item @param crunchyroll.models.Media @return dict
"Get the available media formats for a given media item\n\n @param crunchyroll.models.Media\n @return dict"
100
false
aheadley/python-crunchyroll
get_stream_formats
27,321
LDU_FT/deshima-dev/decode/allan_variance
LDU_FT
[ "<BEGIN>\n## `xarrayfunc`", "Make a function compatible with xarray.DataArray.", " This function is intended to be used as a decorator like::", " >>> @dc.xarrayfunc\n >>> def func(array):\n ... # do something\n ... return newarray\n >>>\n >>> result = func(...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the allan_variance API. 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 allan_variance API. 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...
Calculate Allan variance. Args: data (np.ndarray): Input data. dt (float): Time between each data. tmax (float): Maximum time. Returns: vk (np.ndarray): Frequency. allanvar (np.ndarray): Allan variance.
"Calculate Allan variance.\n\n Args:\n data (np.ndarray): Input data.\n dt (float): Time between each data.\n tmax (float): Maximum time.\n\n Returns:\n vk (np.ndarray): Frequency.\n allanvar (np.ndarray): Allan variance."
137
false
deshima-dev/decode
allan_variance
27,322
LDU_FT/6809/dragonlib/pformat
LDU_FT
[ "<BEGIN>\n## `bin2hexline`", "Format binary data to a Hex-Editor like format...", " >>> data = bytearray([i for i in range(256)])\n >>> print('\\\\n'.join(bin2hexline(data, width=16)))\n 0000 00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f ................\n 0016 10 11 12 13 14 15 16 17 18 19 1a 1b ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the pformat API. Each 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 pformat API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
Manually pformat to force using """...""" and supress escaping apostrophe
"Manually pformat to force using \"\"\"...\"\"\" and supress escaping apostrophe"
63
false
6809/dragonlib
pformat
27,323
LDU_FT/roskakori/pygount/encoding_for
LDU_FT
[ "<BEGIN>\n## `_check_encoding`", "Check that ``encoding`` is a valid Python encoding\n :param name: name under which the encoding is known to the user, e.g. 'default encoding'\n :param encoding_to_check: name of the encoding to check, e.g. 'utf-8'\n :param source: source where the encoding has been set, ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the encoding_for API. 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 encoding_for API. 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...
The encoding used by the text file stored in ``source_path``. The algorithm used is: * If ``encoding`` is ``'automatic``, attempt the following: 1. Check BOM for UTF-8, UTF-16 and UTF-32. 2. Look for XML prolog or magic heading like ``# -*- coding: cp1252 -*-`` 3. Read the file using UTF-8. ...
"The encoding used by the text file stored in ``source_path``.\n\n The algorithm used is:\n\n * If ``encoding`` is ``'automatic``, attempt the following:\n 1. Check BOM for UTF-8, UTF-16 and UTF-32.\n 2. Look for XML prolog or magic heading like ``# -*- coding: cp1252 -*-``\n 3. Read the file using...
17
false
roskakori/pygount
encoding_for
27,324
LDU_FT/jilljenn/tryalgo/eratosthene
LDU_FT
[ "<BEGIN>\n## `three_partition`", "partition a set of integers in 3 parts of same total value", " :param x: table of non negative values\n :returns: triplet of the integers encoding the sets, or None otherwise\n :complexity: :math:`O(2^{2n})`\n<END>", "<BEGIN>\n## `freivalds`", "Tests matrix product...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the eratosthene API. 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 eratosthene API. 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...
Prime numbers by sieve of Eratosthene :param n: positive integer :assumes: n > 2 :returns: list of prime numbers <n :complexity: O(n loglog n)
"Prime numbers by sieve of Eratosthene\n\n :param n: positive integer\n :assumes: n > 2\n :returns: list of prime numbers <n\n :complexity: O(n loglog n)"
423
false
jilljenn/tryalgo
eratosthene
27,325
LDU_FT/kevinconway/confpy/config
LDU_FT
[ "<BEGIN>\n## `configfile_from_path`", "Get a ConfigFile object based on a file path.", " This method will inspect the file extension and return the appropriate\n ConfigFile subclass initialized with the given path.", " Args:\n path (str): The file path which represents the configuration file.\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the config API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the config API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Get a Configuration object from the file contents.
"Get a Configuration object from the file contents."
104
false
kevinconway/confpy
config
27,326
LDU_FT/lltk/lltk/reference
LDU_FT
[ "<BEGIN>\n## `pos`", "Tries to decide about the part of speech.\n<END>", "<BEGIN>\n## `articles`", "Tries to scrape the correct articles for singular and plural from uitmuntend.nl.\n<END>", "<BEGIN>\n## `plural`", "Tries to scrape the plural version from uitmuntend.nl.\n<END>", "<BEGIN>\n## `warning`", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the reference API. 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 reference API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
Returns the articles (singular and plural) combined with singular and plural for a given noun.
"Returns the articles (singular and plural) combined with singular and plural for a given noun."
80
false
lltk/lltk
reference
27,327
LDU_FT/rocky/python-filecache/stat
LDU_FT
[ "<BEGIN>\n## `pyc2py`", "Find corresponding .py name given a .pyc or .pyo\n<END>", "<BEGIN>\n## `clear_file_cache`", "Clear the file cache. If no filename is given clear it entirely.\n if a filename is given, clear just that filename.\n<END>", "<BEGIN>\n## `clear_file_format_cache`", "Remove syntax-for...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the stat API. Each 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 stat API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
Return stat() info for *filename*. If *use_cache_only* is *False*, we will try to fetch the file if it is not cached.
"Return stat() info for *filename*. If *use_cache_only* is *False*,\n we will try to fetch the file if it is not cached."
32
false
rocky/python-filecache
stat
27,328
LDU_FT/isambard-uob/ampal/centre_of_mass
LDU_FT
[ "<BEGIN>\n## `write_pdb`", "Writes a pdb file for a list of residues.", " Parameters\n ----------\n residues : list\n List of Residue objects.\n chain_id : str\n String of the chain id, defaults to ' '.\n alt_states : bool, optional\n If true, include all occupancy states of ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the centre_of_mass API. 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 centre_of_mass API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
Returns the centre of mass of AMPAL object. Notes ----- All atoms are included in calculation, call `centre_of_mass` manually if another selection is require. Returns ------- centre_of_mass : numpy.array 3D coordinate for the centre of mass.
"Returns the centre of mass of AMPAL object.\n\n Notes\n -----\n All atoms are included in calculation, call `centre_of_mass`\n manually if another selection is require.\n\n Returns\n -------\n centre_of_mass : numpy.array\n 3D coordinate for the centre of mas...
84
false
isambard-uob/ampal
centre_of_mass
27,329
LDU_FT/h2oai/datatable/_combine_ranges
LDU_FT
[ "<BEGIN>\n## `_parse_row`", "Scan a single row from an Excel file, and return the list of ranges\n corresponding to each consecutive span of non-empty cells in this row.\n If all cells are empty, return an empty list. Each \"range\" in the list\n is a tuple of the form `(startcol, endcol)`.", " For ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _combine_ranges API. 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 _combine_ranges API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
This function takes a list of row-ranges (as returned by `_parse_row`) ordered by rows, and produces a list of distinct rectangular ranges within this grid. Within this function we define a 2d-range as a rectangular set of cells such that: - there are no empty rows / columns within this rectangle...
"This function takes a list of row-ranges (as returned by `_parse_row`)\n ordered by rows, and produces a list of distinct rectangular ranges\n within this grid.\n\n Within this function we define a 2d-range as a rectangular set of cells\n such that:\n - there are no empty rows / columns within this re...
49
false
h2oai/datatable
_combine_ranges
27,330
LDU_FT/HHammond/PrettyPandas/style
LDU_FT
[ "<BEGIN>\n## `_surpress_formatting_errors`", "I know this is dangerous and the wrong way to solve the problem, but when\n using both row and columns summaries it's easier to just swallow errors\n so users can format their tables how they need.\n<END>", "<BEGIN>\n## `as_percent`", "Convert number to perc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the style API. Each 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 style API. Each 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...
Add summaries and convert to Pandas Styler
"Add summaries and convert to Pandas Styler"
23
false
HHammond/PrettyPandas
style
27,331
LDU_FT/samjabrahams/anchorhub/_get_file_key
LDU_FT
[ "<BEGIN>\n## `get`", "Extract the specified AnchorHub tag, as well as the portion of the\n line that should be converted from the ATX style Markdown header.", " :param file_lines: List of strings corresponding to lines in a text file\n :param index: index of file_lines corresponding to the ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_file_key API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_file_key API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
Finds the absolute path of link_path relative to file_path. The absolute path is the key to anchors dictionary used throughout the AnchorHub process :param file_path: string file path of the file that contains the link being examined :param link_path: string. The link URL th...
"Finds the absolute path of link_path relative to file_path. The\n absolute path is the key to anchors dictionary used throughout the\n AnchorHub process\n\n :param file_path: string file path of the file that contains the link\n being examined\n :param link_path: string. The link...
148
false
samjabrahams/anchorhub
_get_file_key
27,332
LDU_FT/5monkeys/django-enumfield/choices
LDU_FT
[ "<BEGIN>\n## `choices`", "Choices for Enum\n :return: List of tuples (<value>, <human-readable value>)\n :rtype: list\n<END>", "<BEGIN>\n## `get`", "Get Enum.Value object matching the value argument.\n :param name_or_numeric: Integer value or attribute name\n :type name_or_numeric:...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the choices API. Each 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 choices API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
Choices for Enum :return: List of tuples (<value>, <human-readable value>) :rtype: list
"Choices for Enum\n :return: List of tuples (<value>, <human-readable value>)\n :rtype: list"
14
false
5monkeys/django-enumfield
choices
27,333
LDU_FT/operasoftware/twisted-apns/to_binary_string
LDU_FT
[ "<BEGIN>\n## `from_binary_string`", "Unpack the error response from a stream.\n<END>", "<BEGIN>\n## `to_binary_string`", "Pack the error response to binary string and return it.\n<END>", "<BEGIN>\n## `from_binary_string`", "Read feedback information from the stream and unpack it.\n :param stream: A...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the to_binary_string API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the to_binary_string API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Pack the feedback to binary form and return it as string.
"Pack the feedback to binary form and return it as string."
16
false
operasoftware/twisted-apns
to_binary_string
27,334
LDU_FT/samghelms/mathviz/set_cookie
LDU_FT
[ "<BEGIN>\n## `get_next_token`", "\"eats\" up the string until it hits an ending character to get valid leaf expressions.\n For example, given \\\\Phi_{z}(L) = \\\\sum_{i=1}^{N} \\\\frac{1}{C_{i} \\\\times V_{\\\\rm max, i}},\n this function would pull out \\\\Phi, stopping at _\n @ string: str\n retur...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_cookie API. 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 set_cookie API. 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...
Create a new cookie or replace an old one. If the `secret` parameter is set, create a `Signed Cookie` (described below). :param name: the name of the cookie. :param value: the value of the cookie. :param secret: a signature key required for signed cookies. A...
"Create a new cookie or replace an old one. If the `secret` parameter is\n set, create a `Signed Cookie` (described below).\n\n :param name: the name of the cookie.\n :param value: the value of the cookie.\n :param secret: a signature key required for signed cookies.\n\n ...
116
false
samghelms/mathviz
set_cookie
27,335
LDU_FT/KyleJamesWalker/yamlsettings/save_all
LDU_FT
[ "<BEGIN>\n## `conform_query`", "Converts the query string from a target uri, uses\n cls.default_query to populate default arguments.", " :param query: Unparsed query string\n :type query: urllib.parse.unsplit(uri).query\n :returns: Dictionary of parsed values, everything in cls.defau...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the save_all API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the save_all API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
Save *all* YAML settings to the specified file path.
"Save *all* YAML settings to the specified file path."
46
false
KyleJamesWalker/yamlsettings
save_all
27,336
LDU_FT/buildbot/buildbot/purge
LDU_FT
[ "<BEGIN>\n## `parse`", "Parse messages sent by the 'buildbot-cvs-mail' program.\n<END>", "<BEGIN>\n## `parse`", "Parse messages sent by the svn 'commit-email.pl' trigger.\n<END>", "<BEGIN>\n## `parse`", "Parse branch notification messages sent by Launchpad.\n<END>", "<BEGIN>\n## `remote_write`", "Call...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the purge API. Each 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 purge API. Each 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...
Delete everything that shown up on status.
"Delete everything that shown up on status."
518
false
buildbot/buildbot
purge
27,337
LDU_FT/kurtbrose/pyjks/encrypt
LDU_FT
[ "<BEGIN>\n## `new`", "Helper function to create a new TrustedCertEntry.", " :param str alias: The alias for the Trusted Cert Entry\n :param str certs: The certificate, as a byte string.", " :returns: A loaded :class:`TrustedCertEntry` instance, ready\n to be placed in a keystore....
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the encrypt API. Each 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 encrypt API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
Encrypts the private key, so that it can be saved to a keystore. This will make it necessary to decrypt it again if it is going to be used later. Has no effect if the entry is already encrypted. :param str key_password: The password to encrypt the entry with.
"Encrypts the private key, so that it can be saved to a keystore.\n\n This will make it necessary to decrypt it again if it is going to be used later.\n Has no effect if the entry is already encrypted.\n\n :param str key_password: The password to encrypt the entry with."
104
false
kurtbrose/pyjks
encrypt
27,338
LDU_FT/artefactual-labs/mets-reader-writer/get_status
LDU_FT
[ "<BEGIN>\n## `register_id`", "Register a manually assigned id as used, to avoid collisions.\n<END>", "<BEGIN>\n## `parse`", "Create a new AMDSec by parsing root.", " :param root: Element or ElementTree to be parsed into an object.\n<END>", "<BEGIN>\n## `serialize`", "Serialize this amdSec and all...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_status API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_status API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
Returns the STATUS when serializing. Calculates based on the subsection type and if it's replacing anything. :returns: None or the STATUS string.
"Returns the STATUS when serializing.\n\n Calculates based on the subsection type and if it's replacing anything.\n\n :returns: None or the STATUS string."
179
false
artefactual-labs/mets-reader-writer
get_status
27,339
LDU_FT/edx/edx-drf-extensions/_set_request_referer_metric
LDU_FT
[ "<BEGIN>\n## `authenticate_credentials`", "Validate the bearer token against the OAuth provider.", " Arguments:\n token (str): Access token to validate", " Returns:\n (tuple): tuple containing:", " user (User): User associated with the access token\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _set_request_referer_metric API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclu...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _set_request_referer_metric API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclu...
Add metric 'request_referer' for http referer.
"Add metric 'request_referer' for http referer."
76
false
edx/edx-drf-extensions
_set_request_referer_metric
27,340
LDU_FT/tapilab/brandelion/extract_tweets
LDU_FT
[ "<BEGIN>\n## `parse_json`", "Yield screen_name, text tuples from a json file.\n<END>", "<BEGIN>\n## `extract_tweets`", "Yield screen_name, string tuples, where the string is the\n concatenation of all tweets of this user.\n<END>", "<BEGIN>\n## `preprocess`", ">>> preprocess('#hi there http://www.foo.co...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the extract_tweets API. 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 extract_tweets API. 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...
Yield screen_name, string tuples, where the string is the concatenation of all tweets of this user.
"Yield screen_name, string tuples, where the string is the\n concatenation of all tweets of this user."
47
false
tapilab/brandelion
extract_tweets
27,341
LDU_FT/quadrismegistus/prosodic/parse
LDU_FT
[ "<BEGIN>\n## `loadLanguage`", "This function loads up a language configuration file and returns\n\tthe configuration to be passed to the syllabify function.\n<END>", "<BEGIN>\n## `syllabify`", "Syllabifies the word, given a language configuration loaded with loadLanguage.\n\t word is either a string of phon...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
words=self.ents(cls='Word',flattenList=False) #print words numSyll=0 if not words: return None for word in words: if type(word)==type([]): for wrd in word: if wrd.isBroken(): #print wrd return None numSyll+=word[0].getNumSyll() else: if word.isBroken(): return None nu...
"words=self.ents(cls='Word',flattenList=False)\n\t\t#print words\n\t\tnumSyll=0\n\t\tif not words: return None\n\t\tfor word in words:\n\t\t\tif type(word)==type([]):\n\t\t\t\tfor wrd in word:\n\t\t\t\t\tif wrd.isBroken():\n\t\t\t\t\t\t#print wrd\n\t\t\t\t\t\treturn None\n\t\t\t\tnumSyll+=word[0].getNumSyll()\n\t\t\tel...
80
false
quadrismegistus/prosodic
parse
27,342
LDU_FT/richardchien/nonebot/_check_perm
LDU_FT
[ "<BEGIN>\n## `handle_cancellation`", "If the input is a string of cancellation word, finish the command session.\n<END>", "<BEGIN>\n## `on_command`", "Decorator to register a function as a command.", " :param name: command name (e.g. 'echo' or ('random', 'number'))\n :param aliases: aliases of command...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _check_perm API. 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 _check_perm API. 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...
Check if the session has sufficient permission to call the command. :param session: CommandSession object :return: the session has the permission
"Check if the session has sufficient permission to\n call the command.\n\n :param session: CommandSession object\n :return: the session has the permission"
105
false
richardchien/nonebot
_check_perm
27,343
LDU_FT/cdeboever3/cdpybio/_filter_jxns_donor_acceptor
LDU_FT
[ "<BEGIN>\n## `get_region_nt_counts`", "Get counts of each nucleotide from a bam file for a given region. If R1 and\n R2 reads both overlap a position, only one count will be added. If the R1\n and R2 reads disagree at a position they both overlap, that read pair is not\n used for that position. Can opti...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _filter_jxns_donor_acceptor API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclu...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _filter_jxns_donor_acceptor API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclu...
Remove junctions that do not use an annotated donor or acceptor according to external junction annotation. Add strand and gene information for junctions according to external annoation (STAR strand ignored). Parameters ---------- sj_outP : pandas.Panel Panel where each dataframe(?) correspo...
"Remove junctions that do not use an annotated donor or acceptor according\n to external junction annotation. Add strand and gene information for\n junctions according to external annoation (STAR strand ignored).\n\n Parameters\n ----------\n sj_outP : pandas.Panel\n Panel where each dataframe(?) ...
387
false
cdeboever3/cdpybio
_filter_jxns_donor_acceptor
27,344
LDU_FT/ejhigson/nestcheck/error_values_summary
LDU_FT
[ "<BEGIN>\n## `save_load_result`", "Saves and/or loads func output (must be picklable).\n<END>", "<BEGIN>\n## `pickle_save`", "Saves object with pickle.", " Parameters\n ----------\n data: anything picklable\n Object to save.\n name: str\n Path to save to (includes dir, excludes ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the error_values_summary 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 error_values_summary API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Get summary statistics about calculation errors, including estimated implementation errors. Parameters ---------- error_values: pandas DataFrame Of format output by run_list_error_values (look at it for more details). summary_df_kwargs: dict, optional See pandas_functions.su...
"Get summary statistics about calculation errors, including estimated\n implementation errors.\n\n Parameters\n ----------\n error_values: pandas DataFrame\n Of format output by run_list_error_values (look at it for more\n details).\n summary_df_kwargs: dict, optional\n See pandas_fu...
394
false
ejhigson/nestcheck
error_values_summary
27,345
LDU_FT/PyCQA/pyflakes/checkDeadScopes
LDU_FT
[ "<BEGIN>\n## `syntaxError`", "There was a syntax error in C{filename}.", " @param filename: The path to the file with the syntax error.\n @ptype filename: C{unicode}\n @param msg: An explanation of the syntax error.\n @ptype msg: C{unicode}\n @param lineno: The line number whe...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the checkDeadScopes API. 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 checkDeadScopes API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
Look at scopes which have been fully examined and report names in them which were imported but unused.
"Look at scopes which have been fully examined and report names in them\n which were imported but unused."
54
false
PyCQA/pyflakes
checkDeadScopes
27,346
LDU_FT/pyhys/minimalmodbus/get_pattern_additional_cycles
LDU_FT
[ "<BEGIN>\n## `_checkSetpointValue`", "Check that the given setpointvalue is valid.", " Args:\n * setpointvalue (numerical): The setpoint value to be checked. Must be positive.\n * maxvalue (numerical): Upper limit for setpoint value. Must be positive.", " Raises:\n TypeError, ValueE...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_pattern_additional_cycles 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 get_pattern_additional_cycles API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conc...
Get the number of additional cycles for a given pattern. Args: patternnumber (integer): 0-7 Returns: The number of additional cycles (int).
"Get the number of additional cycles for a given pattern.\n\n Args:\n patternnumber (integer): 0-7\n \n Returns:\n The number of additional cycles (int)."
357
false
pyhys/minimalmodbus
get_pattern_additional_cycles
27,347
LDU_FT/projectatomic/atomic-reactor/update_buildroot_koji
LDU_FT
[ "<BEGIN>\n## `_build`", "build image from provided build_args", " :return: BuildResults\n<END>", "<BEGIN>\n## `_load_results`", "load results from recent build", " :return: BuildResults\n<END>", "<BEGIN>\n## `commit_buildroot`", "create image from buildroot", " :return:\n<END>",...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update_buildroot_koji 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 update_buildroot_koji API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
put the final koji information in the buildroot under extra.osbs
"put the final koji information in the buildroot under extra.osbs"
440
false
projectatomic/atomic-reactor
update_buildroot_koji
27,348
LDU_FT/pgjones/quart/select_jinja_autoescape
LDU_FT
[ "<BEGIN>\n## `get_command`", "Return the relevant command given the context and name.", " .. warning::", " This differs substaintially from Flask in that it allows\n for the inbuilt commands to be overridden.\n<END>", "<BEGIN>\n## `render_template`", "Render the template with ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the select_jinja_autoescape 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 select_jinja_autoescape API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion...
Returns True if the filename indicates that it should be escaped.
"Returns True if the filename indicates that it should be escaped."
611
false
pgjones/quart
select_jinja_autoescape
27,349
LDU_FT/aio-libs/aioredis/slave_for
LDU_FT
[ "<BEGIN>\n## `create_sentinel`", "Creates Redis Sentinel client.", " `sentinels` is a list of sentinel nodes.\n<END>", "<BEGIN>\n## `execute`", "Execute Sentinel command.", " It will be prefixed with SENTINEL automatically.\n<END>", "<BEGIN>\n## `master`", "Returns a dictionary containing th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the slave_for API. 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 slave_for API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
Returns wrapper to slave's pool for requested service.
"Returns wrapper to slave's pool for requested service."
496
false
aio-libs/aioredis
slave_for
27,350
LDU_FT/toloco/pyoanda/__call
LDU_FT
[ "<BEGIN>\n## `check`", "Logic extracted from:\n http://developer.oanda.com/rest-live/orders/#createNewOrder\n<END>", "<BEGIN>\n## `__get_response`", "Creates a response object with the given params and option", " Parameters\n ----------\n url : string\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the __call API. Each 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 __call API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Only returns the response, nor the status_code
"Only returns the response, nor the status_code"
46
false
toloco/pyoanda
__call
27,351
LDU_FT/gsi-upm/soil/parse_requirements
LDU_FT
[ "<BEGIN>\n## `save_record`", "Save a collection of records to the database.\n Database writes are cached.\n<END>", "<BEGIN>\n## `convert`", "Get the serialized value for a given key.\n<END>", "<BEGIN>\n## `recover`", "Get the deserialized value for a given key, and the serialized version.\n<END>", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_requirements 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 parse_requirements 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...
load requirements from a pip requirements file
"load requirements from a pip requirements file"
63
false
gsi-upm/soil
parse_requirements
27,352
LDU_FT/shidenggui/easytrader/trade_worker
LDU_FT
[ "<BEGIN>\n## `prepare`", "登录的统一接口\n :param config_file 登录数据文件,若无则选择参数登录模式\n :param user: 各家券商的账号或者雪球的用户名\n :param password: 密码, 券商为加密后的密码,雪球为明文密码\n :param account: [雪球登录需要]雪球手机号(邮箱手机二选一)\n :param portfolio_code: [雪球登录需要]组合代码\n :param portfolio_market: [雪球登录需要]交易市场,\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the trade_worker API. 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 trade_worker API. 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...
:param send_interval: 交易发送间隔, 默认为0s。调大可防止卖出买入时买出单没有及时成交导致的买入金额不足
":param send_interval: 交易发送间隔, 默认为0s。调大可防止卖出买入时买出单没有及时成交导致的买入金额不足"
93
false
shidenggui/easytrader
trade_worker
27,353
LDU_FT/Unity-Technologies/ml-agents/create_vector_observation_encoder
LDU_FT
[ "<BEGIN>\n## `get_action`", "Decides actions given observations information, and takes them in environment.\n :param brain_info: A dictionary of brain names and BrainInfo from environment.\n :return: an ActionInfo containing action, memories, values and an object\n to be passed to add experie...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_vector_observation_encoder API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_vector_observation_encoder API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its ...
Builds a set of hidden state encoders. :param reuse: Whether to re-use the weights within the same scope. :param scope: Graph scope for the encoder ops. :param observation_input: Input vector. :param h_size: Hidden layer size. :param activation: What type of activation function t...
"Builds a set of hidden state encoders.\n :param reuse: Whether to re-use the weights within the same scope.\n :param scope: Graph scope for the encoder ops.\n :param observation_input: Input vector.\n :param h_size: Hidden layer size.\n :param activation: What type of activation func...
171
false
Unity-Technologies/ml-agents
create_vector_observation_encoder
27,354
LDU_FT/joausaga/ideascaly/create_idea
LDU_FT
[ "<BEGIN>\n## `parse_list`", "Parse a list of JSON objects into\n a result set of model instances.\n<END>", "<BEGIN>\n## `pack_image`", "Pack an image from file into multipart-formdata post body\n<END>", "<BEGIN>\n## `get_all_comments`", ":pagination_param: 'page_number', 'page_size'\n<END>", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_idea API. 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 create_idea API. 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...
:allowed_param: 'title', 'text', 'campaignId', 'tags' (optional), 'customFields' (optional)
":allowed_param: 'title', 'text', 'campaignId', 'tags' (optional), 'customFields' (optional)"
14
false
joausaga/ideascaly
create_idea
27,355
LDU_FT/agile-geoscience/welly/to_string
LDU_FT
[ "<BEGIN>\n## `sharey`", "Shared axes limits without shared locators, ticks, etc.", " By Joe Kington\n<END>", "<BEGIN>\n## `fix_ticks`", "Center ticklabels and hide any outside axes limits.", " By Joe Kington\n<END>", "<BEGIN>\n## `flatten_list`", "Unpacks lists in a list:", " [1, 2, [3,...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the to_string API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the to_string API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
Turn a CRS dict into a PROJ.4 string. Mapping keys are tested against ``all_proj_keys`` list. Values of ``True`` are omitted, leaving the key bare: {'no_defs': True} -> "+no_defs" and items where the value is otherwise not a str, int, or float are omitted. Args: crs: A CRS d...
"Turn a CRS dict into a PROJ.4 string. Mapping keys are tested against\n ``all_proj_keys`` list. Values of ``True`` are omitted, leaving the key\n bare: {'no_defs': True} -> \"+no_defs\" and items where the value is\n otherwise not a str, int, or float are omitted.\n\n Args:\n crs...
325
false
agile-geoscience/welly
to_string
27,356
LDU_FT/chovanecm/sacredboard/build_data_access
LDU_FT
[ "<BEGIN>\n## `get_file`", "Get a specific file from GridFS.", " Returns a binary stream response or HTTP 404 if not found.\n<END>", "<BEGIN>\n## `get_files_zip`", "Send all artifacts or sources of a run as ZIP.\n<END>", "<BEGIN>\n## `get`", "Return the file identified by a file_id string.", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the build_data_access API. 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 build_data_access API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Create data access gateway. :param host: The database server to connect to. :type host: str :param port: Database port. :type port: int :param database_name: Database name. :type database_name: str :param collection_name: Name of the collection with Sacred runs. ...
"Create data access gateway.\n\n :param host: The database server to connect to.\n :type host: str\n :param port: Database port.\n :type port: int\n :param database_name: Database name.\n :type database_name: str\n :param collection_name: Name of the collection with Sacr...
128
false
chovanecm/sacredboard
build_data_access
27,357
LDU_FT/yyuu/botornado/set_state
LDU_FT
[ "<BEGIN>\n## `save`", "Saves this item to SDB.", " :param bool replace: If ``True``, delete any attributes on the remote\n SDB item that have a ``None`` value on this object.\n<END>", "<BEGIN>\n## `add_value`", "Helps set or add to attributes on this item. If you are adding a new\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_state API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_state API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
Temporarily sets the state of an alarm. :type value: str :param value: OK | ALARM | INSUFFICIENT_DATA :type reason: str :param reason: Reason alarm set (human readable). :type data: str :param data: Reason data (will be jsonified).
"Temporarily sets the state of an alarm.\n\n :type value: str\n :param value: OK | ALARM | INSUFFICIENT_DATA\n\n :type reason: str\n :param reason: Reason alarm set (human readable).\n\n :type data: str\n :param data: Reason data (will be jsonified)."
2,931
true
yyuu/botornado
set_state
27,358
LDU_FT/idank/bashlex/p_word_list
LDU_FT
[ "<BEGIN>\n## `_createtoken`", "create a token with position information\n<END>", "<BEGIN>\n## `p_inputunit`", "inputunit : simple_list simple_list_terminator\n | NEWLINE\n | error NEWLINE\n | EOF\n<END>", "<BEGIN>\n## `p_word_list`", "word_list : WORD\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the p_word_list API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the p_word_list API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
word_list : WORD | word_list WORD
"word_list : WORD\n | word_list WORD"
59
false
idank/bashlex
p_word_list
27,359
LDU_FT/openego/eDisGo/open
LDU_FT
[ "<BEGIN>\n## `one_storage_per_feeder`", "Allocates the given storage capacity to multiple smaller storages.", " For each feeder with load or voltage issues it is checked if integrating a\n storage will reduce peaks in the feeder, starting with the feeder with\n the highest theoretical grid expansion co...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the open API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the open API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
Toggle state to open switch disconnector
"Toggle state to open switch disconnector"
764
false
openego/eDisGo
open
27,360
LDU_FT/blue-yonder/turbodbc/fetchmany
LDU_FT
[ "<BEGIN>\n## `cursor`", "Create a new ``Cursor`` instance associated with this ``Connection``", " :return: A new ``Cursor`` instance\n<END>", "<BEGIN>\n## `close`", "Close the connection and all associated cursors. This will implicitly\n roll back any uncommitted operations.\n<END>", "<BEGIN...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the fetchmany API. 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 fetchmany API. 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...
Fetches a batch of rows in the active result set generated with ``execute()`` or ``executemany()``. :param size: Controls how many rows are returned. The default ``None`` means that the value of Cursor.arraysize is used. :return: A list of rows
"Fetches a batch of rows in the active result set generated with ``execute()`` or\n ``executemany()``.\n\n :param size: Controls how many rows are returned. The default ``None`` means that\n the value of Cursor.arraysize is used.\n :return: A list of rows"
54
false
blue-yonder/turbodbc
fetchmany
27,361
LDU_FT/acutesoftware/virtual-AI-simulator/get_affects_for_param
LDU_FT
[ "<BEGIN>\n## `calc_basics`", "calculate various aspects of the structure\n<END>", "<BEGIN>\n## `bld_rafter_deflection`", "calculate rafter deflections - see test_calc_building_design.py for \n Sample values for equations below from Structures II course\n<END>", "<BEGIN>\n## `main`", "Prototype to see h...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_affects_for_param API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_affects_for_param API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
searches all affects and returns a list that affect the param named 'nme'
"searches all affects and returns a list\n that affect the param named 'nme'"
86
false
acutesoftware/virtual-AI-simulator
get_affects_for_param
27,362
LDU_FT/HydrelioxGitHub/PyYeelight/set_color_temperature
LDU_FT
[ "<BEGIN>\n## `build_message`", "Make the one string message sent to the bulb\n<END>", "<BEGIN>\n## `decode_response`", "Put in self.result the data from the response\n Can generate exception if the command and the response id does not match\n of if the response is an error\n :...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_color_temperature API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_color_temperature API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Set the white color temperature. The bulb must be switched on. :param temperature: color temperature to set. It can be between 1700 and 6500 K :param effect: if the change is made suddenly or smoothly :param transition_time: in case the change is made smoothly, time in ms that chang...
"Set the white color temperature. The bulb must be switched on.\n\n :param temperature: color temperature to set. It can be between 1700 and 6500 K\n :param effect: if the change is made suddenly or smoothly\n :param transition_time: in case the change is made smoothly, time in ms that ...
40
false
HydrelioxGitHub/PyYeelight
set_color_temperature
27,363
LDU_FT/GluuFederation/oxd-python/get_tokens_by_code
LDU_FT
[ "<BEGIN>\n## `register_site`", "Function to register the site and generate a unique ID for the site", " Returns:\n **string:** The ID of the site (also called client id) if the registration is successful", " Raises:\n **OxdServerError:** If the site registration fails.\n<EN...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_tokens_by_code API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_tokens_by_code API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
Function to get access code for getting the user details from the OP. It is called after the user authorizes by visiting the auth URL. Parameters: * **code (string):** code, parse from the callback URL querystring * **state (string):** state value parsed from the callback URL ...
"Function to get access code for getting the user details from the\n OP. It is called after the user authorizes by visiting the auth URL.\n\n Parameters:\n * **code (string):** code, parse from the callback URL querystring\n * **state (string):** state value parsed from the callback ...
124
false
GluuFederation/oxd-python
get_tokens_by_code
27,364
LDU_FT/mbrenig/SheetSync/ia_credentials_helper
LDU_FT
[ "<BEGIN>\n## `ia_credentials_helper`", "Helper function to manage a credentials cache during testing.\r", " This function attempts to load and refresh a credentials object from a\r\n json cache file, using the cache_key and client_id as a lookup.\r", " If this isn't found then it starts an OAuth2 aut...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the ia_credentials_helper 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 ia_credentials_helper API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Helper function to manage a credentials cache during testing. This function attempts to load and refresh a credentials object from a json cache file, using the cache_key and client_id as a lookup. If this isn't found then it starts an OAuth2 authentication flow, using the client_id and client_se...
"Helper function to manage a credentials cache during testing.\r\n\r\n This function attempts to load and refresh a credentials object from a\r\n json cache file, using the cache_key and client_id as a lookup.\r\n\r\n If this isn't found then it starts an OAuth2 authentication flow, using\r\n the client_id ...
26
false
mbrenig/SheetSync
ia_credentials_helper
27,365
LDU_FT/scopus-api/scopus/latex
LDU_FT
[ "<BEGIN>\n## `detect_id_type`", "Method that tries to infer the type of abstract ID.", " Parameters\n ----------\n sid : str\n The ID of an abstract on Scopus.", " Raises\n ------\n ValueError\n If the ID type cannot be inferred.", " Notes\n -----\n PII usually has 1...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the latex API. Each 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 latex API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
Return LaTeX representation of the abstract.
"Return LaTeX representation of the abstract."
174
false
scopus-api/scopus
latex
27,366
LDU_FT/madprime/cgivar2gvcf/process_split_position
LDU_FT
[ "<BEGIN>\n## `auto_zip_open`", "Convenience function for opening potentially-compressed files.\n<END>", "<BEGIN>\n## `process_full_position`", "Return genetic data when all alleles called on same line.", " Returns an array containing one item, a tuple of five items:\n (string) chromosome\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the process_split_position API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the process_split_position API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
Process CGI var where alleles are reported separately. Split positions report each allele with one or more lines. To ensure that we've read through all lines, we end up reading one line beyond. This function returns data for this position, then handles the remainder line by calling itself or process_f...
"Process CGI var where alleles are reported separately.\n\n Split positions report each allele with one or more lines. To ensure that\n we've read through all lines, we end up reading one line beyond.\n\n This function returns data for this position, then handles the remainder\n line by calling itself or pr...
33
false
madprime/cgivar2gvcf
process_split_position
27,367
LDU_FT/edx/XBlock/is_set_on
LDU_FT
[ "<BEGIN>\n## `default_select`", "Raise an exception when we have ambiguous entry points.\n<END>", "<BEGIN>\n## `_load_class_entry_point`", "Load `entry_point`, and set the `entry_point.name` as the\n attribute `plugin_name` on the loaded object\n<END>", "<BEGIN>\n## `load_class`", "Load a single cl...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_set_on API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_set_on API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
Return whether this field has a non-default value on the supplied xblock
"Return whether this field has a non-default value on the supplied xblock"
295
false
edx/XBlock
is_set_on
27,368
LDU_FT/networks-lab/tidyextractors/make_object_dict
LDU_FT
[ "<BEGIN>\n## `_col_type_set`", "Determines the set of types present in a DataFrame column.", " :param str col: A column name.\n :param pandas.DataFrame df: The dataset. Usually ``self._data``.\n :return: A set of Types.\n<END>", "<BEGIN>\n## `_drop_collections`", "Drops columns containi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the make_object_dict API. 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 make_object_dict API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Processes an object, exporting its data as a nested dictionary. Individual objects are handled using handle_object. :param obj: The object to be processed. :param keep: Object attributes to be kept. Defaults to all attributes. :return: A dictionary of attributes.
"Processes an object, exporting its data as a nested dictionary.\n Individual objects are handled using handle_object.\n :param obj: The object to be processed.\n :param keep: Object attributes to be kept. Defaults to all attributes.\n :return: A dictionary of attributes."
81
false
networks-lab/tidyextractors
make_object_dict
27,369
LDU_FT/aalireza/SimpleAudioIndexer/search_regexp
LDU_FT
[ "<BEGIN>\n## `set_username_ibm`", "Parameters\n ----------\n username_ibm : str", " Raises\n ------\n Exception\n If mode is not `ibm`\n<END>", "<BEGIN>\n## `set_password_ibm`", "Parameters\n ----------\n password_ibm : str", " Raises\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the search_regexp API. 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 search_regexp API. 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...
First joins the words of the word_blocks of timestamps with space, per audio_basename. Then matches `pattern` and calculates the index of the word_block where the first and last word of the matched result appears in. Then presents the output like `search_all` method. Note that the leadi...
"First joins the words of the word_blocks of timestamps with space, per\n audio_basename. Then matches `pattern` and calculates the index of the\n word_block where the first and last word of the matched result appears\n in. Then presents the output like `search_all` method.\n\n Note that the...
159
false
aalireza/SimpleAudioIndexer
search_regexp
27,370
LDU_FT/bitlabstudio/django-libs/get_range_around
LDU_FT
[ "<BEGIN>\n## `add_form_widget_attr`", "Adds widget attributes to a bound form field.", " This is helpful if you would like to add a certain class to all your forms\n (i.e. `form-control` to all form fields when you are using Bootstrap)::", " {% load libs_tags %}\n {% for field in form.fiel...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_range_around API. 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_range_around API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Returns a range of numbers around the given number. This is useful for pagination, where you might want to show something like this:: << < ... 4 5 (6) 7 8 .. > >> In this example `6` would be the current page and we show 2 items around that page (including the page itself). Usage:: ...
"Returns a range of numbers around the given number.\n\n This is useful for pagination, where you might want to show something\n like this::\n\n << < ... 4 5 (6) 7 8 .. > >>\n\n In this example `6` would be the current page and we show 2 items around\n that page (including the page itself).\n\n Us...
101
false
bitlabstudio/django-libs
get_range_around
27,371
LDU_FT/briwilcox/Concurrent-Pandas/get_data
LDU_FT
[ "<BEGIN>\n## `data_worker`", "Function to be spawned concurrently,\n consume data keys from input queue, and push the resulting dataframes to output map\n<END>", "<BEGIN>\n## `get_data`", "Function to use Python Pandas and / or Quandl to download a dataframe\n Insert resulting dataframe into output ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_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 extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_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 extracte...
Function to use Python Pandas and / or Quandl to download a dataframe Insert resulting dataframe into output map
"Function to use Python Pandas and / or Quandl to download a dataframe\n Insert resulting dataframe into output map"
16
false
briwilcox/Concurrent-Pandas
get_data
27,372