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/diux-dev/ncluster/get_name
LDU_FT
[ "<BEGIN>\n## `make_job`", "Create a job using current backend. Blocks until all tasks are up and initialized.", " Args:\n name: name of the job\n run_name: name of the run (auto-assigned if empty)\n num_tasks: number of tasks\n install_script: bash-runnable script\n **kwargs:", " Returns:\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_name API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_name API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
Helper utility to extract name out of tags dictionary or intancce. [{'Key': 'Name', 'Value': 'nexus'}] -> 'nexus' Assert fails if there's more than one name. Returns '' if there's less than one name.
"Helper utility to extract name out of tags dictionary or intancce.\n [{'Key': 'Name', 'Value': 'nexus'}] -> 'nexus'\n \n Assert fails if there's more than one name.\n Returns '' if there's less than one name."
136
false
diux-dev/ncluster
get_name
30,473
LDU_FT/greyli/flask-ckeditor/uploader
LDU_FT
[ "<BEGIN>\n## `init_db`", "Populate a small db with some example entries.\n<END>", "<BEGIN>\n## `upload_fail`", "Return a upload failed response, for CKEditor >= 4.5.\n For example::", " from flask import send_from_directory\n from flask_ckeditor import upload_success, upload_fail", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the uploader API. 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 uploader API. 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...
This method only used for CKEditor under version 4.5, in newer version, you should use ``upload_success()`` and ``upload_fail()`` instead. Decorated the view function that handle the file upload. The upload view must return the uploaded image's url. For example:: from flask import ...
"This method only used for CKEditor under version 4.5, in newer version,\n you should use ``upload_success()`` and ``upload_fail()`` instead.\n\n Decorated the view function that handle the file upload. The upload\n view must return the uploaded image's url. For example::\n\n from flask ...
28
false
greyli/flask-ckeditor
uploader
30,474
LDU_FT/rkhleics/wagtailmenus/get_active_class_for_request
LDU_FT
[ "<BEGIN>\n## `_get_specified_sub_menu_template_name`", "Called by get_sub_menu_template(). Iterates through the various ways in\n which developers can specify potential sub menu templates for a menu,\n and returns the name of the most suitable template for the\n ``current_level``. Values are ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_active_class_for_request API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its concl...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_active_class_for_request API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its concl...
Return the most appropriate 'active_class' for this menu item (only used when 'link_url' is used instead of 'link_page').
"Return the most appropriate 'active_class' for this menu item (only\n used when 'link_url' is used instead of 'link_page')."
95
false
rkhleics/wagtailmenus
get_active_class_for_request
30,475
LDU_FT/ConsenSys/mythril-classic/get_contract_by_hash
LDU_FT
[ "<BEGIN>\n## `_get_account`", "Get account by address.", " :param address:\n :return:\n<END>", "<BEGIN>\n## `_get_block_hash`", "Get block hash by block number.", " :param number:\n :return:\n<END>", "<BEGIN>\n## `_get_head_block`", "Get head block header.", " :ret...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_contract_by_hash 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_contract_by_hash 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 mapped contract_address by its hash, if not found try indexing.
"get mapped contract_address by its hash, if not found try\n indexing."
376
false
ConsenSys/mythril-classic
get_contract_by_hash
30,476
LDU_FT/vatlab/SoS/validate
LDU_FT
[ "<BEGIN>\n## `process_request`", "port is the open port at the worker, num_pending is the num_pending of stack.\n A non-zero num_pending means that the worker is pending on something while\n looking for new job, so the worker should not be killed.\n<END>", "<BEGIN>\n## `check_workers`", "Kill wo...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the validate API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the validate API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
Check if ofiles and ifiles match signatures recorded in md5file
"Check if ofiles and ifiles match signatures recorded in md5file"
193
false
vatlab/SoS
validate
30,477
LDU_FT/OpenHydrology/floodestimation/_pot_month_counts
LDU_FT
[ "<BEGIN>\n## `valid_flows_array`", "Return array of valid flows (i.e. excluding rejected years etc)", " :param catchment: gauged catchment with amax_records set\n :type catchment: :class:`floodestimation.entities.Catchment`\n :return: 1D array of flow values\n :rtype: :class:`numpy.ndarray`\n<END>",...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _pot_month_counts API. 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 _pot_month_counts API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Return a list of 12 sets. Each sets contains the years included in the POT record period. :param pot_dataset: POT dataset (records and meta data) :type pot_dataset: :class:`floodestimation.entities.PotDataset`
"Return a list of 12 sets. Each sets contains the years included in the POT record period.\n\n :param pot_dataset: POT dataset (records and meta data)\n :type pot_dataset: :class:`floodestimation.entities.PotDataset`"
194
false
OpenHydrology/floodestimation
_pot_month_counts
30,478
LDU_FT/payu-org/payu/archive
LDU_FT
[ "<BEGIN>\n## `set_model_pathnames`", "Define the paths associated with this model.\n<END>", "<BEGIN>\n## `archive`", "Store model output to laboratory archive.\n<END>", "<BEGIN>\n## `parse`", "Parse the command line inputs and execute the subcommand.\n<END>", "<BEGIN>\n## `get_model_type`", "Determine...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the archive API. 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 archive API. 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...
Store model output to laboratory archive.
"Store model output to laboratory archive."
78
false
payu-org/payu
archive
30,479
LDU_FT/FujiMakoto/AgentML/match
LDU_FT
[ "<BEGIN>\n## `value`", "Return the value of the redirect response\n<END>", "<BEGIN>\n## `get`", "Evaluate and return the current active topic\n :param user: The active user object\n :type user: agentml.User or None", " :param agentml: The active AgentML instance\n :type agentml...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the match API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the match API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
Returns a response message if a match is found, otherwise None :param user: The requesting client :type user: agentml.User :param message: The message to match :type message: agentml.Message :rtype: str or None
"Returns a response message if a match is found, otherwise None\n :param user: The requesting client\n :type user: agentml.User\n\n :param message: The message to match\n :type message: agentml.Message\n\n :rtype: str or None"
183
false
FujiMakoto/AgentML
match
30,480
LDU_FT/ella/ella/thumb
LDU_FT
[ "<BEGIN>\n## `thumb`", "Generates html and thumbnails for admin site.\n<END>", "<BEGIN>\n## `clean`", "Validation function that checks the dimensions of the crop whether it fits into the original and the format.\n<END>", "<BEGIN>\n## `clean`", "Check format name uniqueness for sites", " :return: ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the thumb API. 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 thumb API. 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...
Generates html and thumbnails for admin site.
"Generates html and thumbnails for admin site."
180
false
ella/ella
thumb
30,481
LDU_FT/pysal/mapclassify/gadf
LDU_FT
[ "<BEGIN>\n## `quantile`", "Calculates the quantiles for an array", " Parameters\n ----------\n y : array\n (n,1), values to classify\n k : int\n number of quantiles", " Returns\n -------\n q : array\n (n,1), quantile values", " Examples\n -----...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the gadf API. 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 gadf API. 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...
Evaluate the Goodness of Absolute Deviation Fit of a Classifier Finds the minimum value of k for which gadf>pct Parameters ---------- y : array (n, 1) values to be classified method : {'Quantiles, 'Fisher_Jenks', 'Maximum_Breaks', 'Natrual_Breaks'} maxk : int m...
"Evaluate the Goodness of Absolute Deviation Fit of a Classifier\n Finds the minimum value of k for which gadf>pct\n\n Parameters\n ----------\n\n y : array\n (n, 1) values to be classified\n method : {'Quantiles, 'Fisher_Jenks', 'Maximum_Breaks', 'Natrual_Breaks'}\n maxk : int\n ...
87
false
pysal/mapclassify
gadf
30,482
LDU_FT/inspirehep/plotextractor/rotate_image
LDU_FT
[ "<BEGIN>\n## `get_context`", "Get context.", " Given a relevant string from a TeX file, this function will extract text\n from it as far as it is deemed contextually relevant, either backwards or\n forwards in the text.\n The level of relevance allowed is configurable. When it reaches some\n poin...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the rotate_image API. 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 rotate_image API. 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...
Rotate a image. Given a filename and a line, figure out what it is that the author wanted to do wrt changing the rotation of the image and convert the file so that this rotation is reflected in its presentation. :param: filename (string): the name of the file as specified in the TeX :param: line (...
"Rotate a image.\n\n Given a filename and a line, figure out what it is that the author\n wanted to do wrt changing the rotation of the image and convert the\n file so that this rotation is reflected in its presentation.\n\n :param: filename (string): the name of the file as specified in the TeX\n :param...
80
false
inspirehep/plotextractor
rotate_image
30,483
LDU_FT/aheadley/python-crunchyroll/_build_request
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 _build_request API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _build_request API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
Build a function to do an API request "We have to go deeper" or "It's functions all the way down!"
"Build a function to do an API request\n\n \"We have to go deeper\" or \"It's functions all the way down!\""
100
false
aheadley/python-crunchyroll
_build_request
30,484
LDU_FT/sbusard/wagoner/_extend_word
LDU_FT
[ "<BEGIN>\n## `random_weighted_choice`", "Return a random key of choices, weighted by their value.", " :param choices: a dictionary of keys and positive integer pairs;\n :return: a random key of choices.\n<END>", "<BEGIN>\n## `extract_words`", "Extract from the given iterable of lines the list of words...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _extend_word API. 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 _extend_word API. 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...
Extend the given word with a random suffix up to length. :param length: the length of the extended word; >= len(word); :param prefix: if greater than 0, the maximum length of the prefix to consider to choose the next character; :param end: if True, the generated word ends...
"Extend the given word with a random suffix up to length.\n\n :param length: the length of the extended word; >= len(word);\n :param prefix: if greater than 0, the maximum length of the prefix to\n consider to choose the next character;\n :param end: if True, the generated wor...
37
false
sbusard/wagoner
_extend_word
30,485
LDU_FT/intake/intake/contents
LDU_FT
[ "<BEGIN>\n## `expand_defaults`", "Compile env, client_env, shell and client_shell commands\n<END>", "<BEGIN>\n## `get`", "Instantiate the DataSource for the given parameters\n<END>", "<BEGIN>\n## `_load`", "Load text of fcatalog file and pass to parse", " Will do nothing if autoreload is off and ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the contents API. 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 contents API. 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...
String representation of the source's description
"String representation of the source's description"
280
false
intake/intake
contents
30,486
LDU_FT/nicodv/kmodes/fit
LDU_FT
[ "<BEGIN>\n## `init_huang`", "Initialize centroids according to method by Huang [1997].\n<END>", "<BEGIN>\n## `init_cao`", "Initialize centroids according to method by Cao et al. [2009].", " Note: O(N * attr * n_clusters**2), so watch out with large n_clusters\n<END>", "<BEGIN>\n## `move_point_cat`", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the fit API. 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 fit API. 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...
Compute k-modes clustering. Parameters ---------- X : array-like, shape=[n_samples, n_features]
"Compute k-modes clustering.\n\n Parameters\n ----------\n X : array-like, shape=[n_samples, n_features]"
52
false
nicodv/kmodes
fit
30,487
LDU_FT/MediaFire/mediafire-python-open-sdk/folder_get_content
LDU_FT
[ "<BEGIN>\n## `decode_resumable_upload_bitmap`", "Decodes bitmap_node to hash of unit_id: is_uploaded", " bitmap_node -- bitmap node of resumable_upload with\n 'count' number and 'words' containing array\n number_of_units -- number of units we are uploading to\n defi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the folder_get_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. Th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the folder_get_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. Th...
folder/get_content http://www.mediafire.com/developers/core_api/1.3/folder/#get_content
"folder/get_content\n\n http://www.mediafire.com/developers/core_api/1.3/folder/#get_content"
145
false
MediaFire/mediafire-python-open-sdk
folder_get_content
30,488
LDU_FT/davidrpugh/pyCollocation/functions_factory
LDU_FT
[ "<BEGIN>\n## `_basis_spline_factory`", "Return a B-Spline given some coefficients.\n<END>", "<BEGIN>\n## `derivatives_factory`", "Given some coefficients, return a the derivative of a B-spline.\n<END>", "<BEGIN>\n## `functions_factory`", "Given some coefficients, return a B-spline.\n<END>", "<BEGIN>\n##...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the functions_factory API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the functions_factory API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Given some coefficients, return a B-spline.
"Given some coefficients, return a B-spline."
44
false
davidrpugh/pyCollocation
functions_factory
30,489
LDU_FT/twisted/mantissa/wasModified
LDU_FT
[ "<BEGIN>\n## `createUser`", "Create a new, blank user account with the given name and domain and, if\n specified, with the given password.", " @type localpart: C{unicode}\n @param localpart: The local portion of the username. ie, the\n C{'alice'} in C{'alice@example.com'}.", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the wasModified API. 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 wasModified API. 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 to see if this module has been modified on disk since the last time it was cached. @return: True if it has been modified, False if not.
"Check to see if this module has been modified on disk since the last\n time it was cached.\n\n @return: True if it has been modified, False if not."
1,120
true
twisted/mantissa
wasModified
30,490
LDU_FT/matousc89/padasip/get_mean_error
LDU_FT
[ "<BEGIN>\n## `standardize_back`", "This is function for de-standarization of input series.", " **Args:**", " * `xs` : standardized input (1 dimensional array)", " * `offset` : offset to add (float).", " * `scale` : scale (float).", " **Returns:**", " * `x` : original (destandardised)...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_mean_error API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_mean_error API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
This function returns desired mean error. Options are: MSE, MAE, RMSE **Args:** * `x1` - first data series or error (1d array) **Kwargs:** * `x2` - second series (1d array) if first series was not error directly,\\ then this should be the second series **Returns:** * `e` - mean...
"This function returns desired mean error. Options are: MSE, MAE, RMSE\n \n **Args:**\n\n * `x1` - first data series or error (1d array)\n\n **Kwargs:**\n\n * `x2` - second series (1d array) if first series was not error directly,\\\\\n then this should be the second series\n\n **Returns:**\n\n...
327
false
matousc89/padasip
get_mean_error
30,491
LDU_FT/miguelgrinberg/python-socketio/register_namespace
LDU_FT
[ "<BEGIN>\n## `get_participants`", "Return an iterable with the active participants in a room.\n<END>", "<BEGIN>\n## `connect`", "Register a client connection to a namespace.\n<END>", "<BEGIN>\n## `pre_disconnect`", "Put the client in the to-be-disconnected list.", " This allows the client data st...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the register_namespace 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 register_namespace 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...
Register a namespace handler object. :param namespace_handler: An instance of a :class:`Namespace` subclass that handles all the event traffic for a namespace.
"Register a namespace handler object.\n\n :param namespace_handler: An instance of a :class:`Namespace`\n subclass that handles all the event traffic\n for a namespace."
172
false
miguelgrinberg/python-socketio
register_namespace
30,492
LDU_FT/themartorana/python-postmark/_send
LDU_FT
[ "<BEGIN>\n## `_set_custom_headers`", "A special set function to ensure\n we're setting with a dictionary\n<END>", "<BEGIN>\n## `_set_metadata`", "A special set function to ensure\n we're setting with a dictionary\n<END>", "<BEGIN>\n## `_set_attachments`", "A special set function to ensure\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _send API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _send API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
A helper method that does the actual sending.
"A helper method that does the actual sending."
20
false
themartorana/python-postmark
_send
30,493
LDU_FT/callsign-viper/Flask-GraphQL-Auth/mutation_jwt_refresh_token_required
LDU_FT
[ "<BEGIN>\n## `init_app`", "Register this extension with the flask app.", " :param app: A flask application\n<END>", "<BEGIN>\n## `_set_default__configuration_options`", "Sets the default configuration options used by this extension\n<END>", "<BEGIN>\n## `decode_jwt`", "Decodes an encoded JWT", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the mutation_jwt_refresh_token_required API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates it...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the mutation_jwt_refresh_token_required API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates it...
A decorator to protect a mutation. If you decorate anmutation with this, it will ensure that the requester has a valid refresh token before allowing the mutation to be called.
"A decorator to protect a mutation.\n\n If you decorate anmutation with this, it will ensure that the requester\n has a valid refresh token before allowing the mutation to be called."
20
false
callsign-viper/Flask-GraphQL-Auth
mutation_jwt_refresh_token_required
30,494
LDU_FT/crossbario/txaio/failure_message
LDU_FT
[ "<BEGIN>\n## `guess_stream_needs_encoding`", "Guess the type (bytes/unicode) of this stream, and return whether or not it\n requires text to be encoded before written into it.\n<END>", "<BEGIN>\n## `with_config`", ":return: an instance of the txaio API with the given\n configuration. This won't affe...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the failure_message API. 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 failure_message API. 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...
:param fail: must be an IFailedFuture returns a unicode error-message
":param fail: must be an IFailedFuture\n returns a unicode error-message"
62
false
crossbario/txaio
failure_message
30,495
LDU_FT/raymontag/kppy/_read_entry_field
LDU_FT
[ "<BEGIN>\n## `set_expire`", "This method is used to change the expire date of a group", " - y is the year between 1 and 9999 inclusive\n - mon is the month between 1 and 12\n - d is a day in the given month\n - h is a hour between 0 and 23\n - min_ is a min...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _read_entry_field API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _read_entry_field API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
This method handles the different fields of an entry
"This method handles the different fields of an entry"
81
false
raymontag/kppy
_read_entry_field
30,496
LDU_FT/klmitch/bark/accept
LDU_FT
[ "<BEGIN>\n## `pop_state`", "Pops off the most recent state.", " :param idx: If provided, specifies the index at which the next\n string begins.\n<END>", "<BEGIN>\n## `add_text`", "Adds the text from string beginning to the specified ending\n index to the format.", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the accept API. 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 accept API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Add an address to the set of addresses this proxy is permitted to introduce. :param addr: The address to add.
"Add an address to the set of addresses this proxy is permitted\n to introduce.\n\n :param addr: The address to add."
160
false
klmitch/bark
accept
30,497
LDU_FT/F5Networks/f5-common-python/main
LDU_FT
[ "<BEGIN>\n## `update`", "Update the object, removing device group if inherited", " If inheritedDevicegroup is the string \"true\" we need to remove\n deviceGroup from the args before we update or we get the\n following error:", " The floating traffic-group: /Common/traffic-group-1 ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the main API. 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 main API. 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...
main Entrypoint to this script. This will execute the functionality as a standalone element
"main\n\nEntrypoint to this script. This will execute the functionality as a standalone\nelement"
559
false
F5Networks/f5-common-python
main
30,498
LDU_FT/20c/vodka/is_config_container
LDU_FT
[ "<BEGIN>\n## `is_config_container`", "checks whether v is of type list,dict or Config\n<END>", "<BEGIN>\n## `check`", "Checks that the config values specified in key name is\n sane according to config attributes defined as properties\n on this class\n<END>", "<BEGIN>\n## `validate`", "Valida...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_config_container 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 is_config_container 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...
checks whether v is of type list,dict or Config
"checks whether v is of type list,dict or Config"
56
false
20c/vodka
is_config_container
30,499
LDU_FT/the01/python-flotils/load_json_file
LDU_FT
[ "<BEGIN>\n## `load_json`", "Load data from json string", " :param json_data: Stringified json object\n :type json_data: str | unicode\n :param decoder: Use custom json decoder\n :type decoder: T <= DateTimeDecoder\n :return: Json data\n :rtype: None | int | float | str | list | dict\n<END>", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load_json_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 ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load_json_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 ex...
Load data from json file :param file: Readable object or path to file :type file: FileIO | str :param decoder: Use custom json decoder :type decoder: T <= DateTimeDecoder :return: Json data :rtype: None | int | float | str | list | dict
"Load data from json file\n\n :param file: Readable object or path to file\n :type file: FileIO | str\n :param decoder: Use custom json decoder\n :type decoder: T <= DateTimeDecoder\n :return: Json data\n :rtype: None | int | float | str | list | dict"
60
false
the01/python-flotils
load_json_file
30,500
LDU_FT/lins05/slackbot/to_utf8
LDU_FT
[ "<BEGIN>\n## `to_utf8`", "Convert a string to utf8. If the argument is an iterable\n (list/tuple/set), then each element of it would be converted instead.", " >>> to_utf8('a')\n 'a'\n >>> to_utf8(u'a')\n 'a'\n >>> to_utf8([u'a', u'b', u'\\u4f60'])\n ['a', 'b', '\\\\xe4\\\\xbd\\\\xa0']\n<END...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the to_utf8 API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the to_utf8 API. 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...
Convert a string to utf8. If the argument is an iterable (list/tuple/set), then each element of it would be converted instead. >>> to_utf8('a') 'a' >>> to_utf8(u'a') 'a' >>> to_utf8([u'a', u'b', u'\u4f60']) ['a', 'b', '\\xe4\\xbd\\xa0']
"Convert a string to utf8. If the argument is an iterable\n (list/tuple/set), then each element of it would be converted instead.\n\n >>> to_utf8('a')\n 'a'\n >>> to_utf8(u'a')\n 'a'\n >>> to_utf8([u'a', u'b', u'\\u4f60'])\n ['a', 'b', '\\\\xe4\\\\xbd\\\\xa0']"
26
false
lins05/slackbot
to_utf8
30,501
LDU_FT/StanfordBioinformatics/scgpm_seqresults_dnanexus/download_metadata_tar
LDU_FT
[ "<BEGIN>\n## `log_file_name`", "Function : Creates a logfile name, named after this script and includes the number of seconds since the Epoch.\n An optional extension can be specified to make the logfile name more meaningful regarding its purpose.\n Args : ext - The extension to add to the log fi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the download_metadata_tar 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 download_metadata_tar API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Downloads the ${run_name}.metadata.tar file from the DNAnexus sequencing results project. Args: download_dir: `str` - The local directory path to download the QC report to. Returns: `str`: The filepath to the downloaded metadata tarball.
"Downloads the ${run_name}.metadata.tar file from the DNAnexus sequencing results project.\n \n Args: \n download_dir: `str` - The local directory path to download the QC report to.\n Returns:\n `str`: The filepath to the downloaded metadata tarball."
63
false
StanfordBioinformatics/scgpm_seqresults_dnanexus
download_metadata_tar
30,502
LDU_FT/kxgames/vecrec/get_rotated
LDU_FT
[ "<BEGIN>\n## `random`", "Create a unit vector pointing in a random direction.\n<END>", "<BEGIN>\n## `from_rectangle`", "Create a vector randomly within the given rectangle.\n<END>", "<BEGIN>\n## `interpolate`", "Move this vector towards the given towards the target by the given \n extent. The exte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_rotated API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_rotated API. 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...
Return a vector rotated by angle from the given vector. Angle measured in radians counter-clockwise.
"Return a vector rotated by angle from the given vector. Angle measured in radians counter-clockwise."
49
false
kxgames/vecrec
get_rotated
30,503
LDU_FT/tradenity/python-sdk/update_customer_group_by_id
LDU_FT
[ "<BEGIN>\n## `data_type`", "Sets the data_type of this Option.", " :param data_type: The data_type of this Option.\n :type: str\n<END>", "<BEGIN>\n## `create_option`", "Create Option", " Create a new Option\n This method makes a synchronous HTTP request by default. To make an\n...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update_customer_group_by_id 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 update_customer_group_by_id API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclu...
Update CustomerGroup Update attributes of CustomerGroup This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async=True >>> thread = api.update_customer_group_by_id(customer_group_id, customer_group, async=True) >>> result = ...
"Update CustomerGroup\n\n Update attributes of CustomerGroup\n This method makes a synchronous HTTP request by default. To make an\n asynchronous HTTP request, please pass async=True\n >>> thread = api.update_customer_group_by_id(customer_group_id, customer_group, async=True)\n >>> re...
1,216
true
tradenity/python-sdk
update_customer_group_by_id
30,504
LDU_FT/materialsproject/custodian/apply_actions
LDU_FT
[ "<BEGIN>\n## `from_spec`", "Load a Custodian instance where the jobs are specified from a\n structure and a spec dict. This allows simple\n custom job sequences to be constructed quickly via a YAML file.", " Args:\n spec (dict): A dict specifying job. A sample of the dict in\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the apply_actions API. 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 apply_actions API. 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...
Applies a list of actions to the Vasp Input Set and rewrites modified files. Args: actions [dict]: A list of actions of the form {'file': filename, 'action': moddermodification} or {'dict': vaspinput_key, 'action': moddermodification}
"Applies a list of actions to the Vasp Input Set and rewrites modified\n files.\n Args:\n actions [dict]: A list of actions of the form {'file': filename,\n 'action': moddermodification} or {'dict': vaspinput_key,\n 'action': moddermodification}"
90
false
materialsproject/custodian
apply_actions
30,505
LDU_FT/calocan/rescape-python-helpers/from_pairs_to_array_values
LDU_FT
[ "<BEGIN>\n## `prop`", "Implementation of prop (get_item) that also supports object attributes\n :param key:\n :param dct_or_obj:\n :return:\n<END>", "<BEGIN>\n## `all_pass_dict`", "Returns true if all dct values pass f\n :param f: binary lambda predicate\n :param dct:\n :return: True or fals...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the from_pairs_to_array_values API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclus...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the from_pairs_to_array_values API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclus...
Like from pairs but combines duplicate key values into arrays :param pairs: :return:
"Like from pairs but combines duplicate key values into arrays\n :param pairs:\n :return:"
54
false
calocan/rescape-python-helpers
from_pairs_to_array_values
30,506
LDU_FT/sludgedesk/metoffer/map_overlay_obs
LDU_FT
[ "<BEGIN>\n## `guidance_UV`", "Return Met Office guidance regarding UV exposure based on UV index\n<END>", "<BEGIN>\n## `parse_sitelist`", "Return list of Site instances from retrieved sitelist data\n<END>", "<BEGIN>\n## `get_nearest_site`", "Return a string which can be used as \"request\" in calls to loc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the map_overlay_obs API. 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 map_overlay_obs API. 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...
Returns capabilities data for observation map overlays.
"Returns capabilities data for observation map overlays."
33
false
sludgedesk/metoffer
map_overlay_obs
30,507
LDU_FT/sam-cox/pytides/highs
LDU_FT
[ "<BEGIN>\n## `_prepare`", "Return constituent speed and equilibrium argument at a given time, and constituent node factors at given times.\n\t\tArguments:\n\t\tconstituents -- list of constituents to prepare\n\t\tt0 -- time at which to evaluate speed and equilibrium argument for each constituent\n\t\tt -- list of...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the highs API. 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 highs API. 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...
Generator yielding only the high tides. Arguments: see Tide.extrema()
"Generator yielding only the high tides.\n\t\tArguments:\n\t\tsee Tide.extrema()"
23
false
sam-cox/pytides
highs
30,508
LDU_FT/tgbugs/ontquery/update_entity
LDU_FT
[ "<BEGIN>\n## `examples`", "Examples of how to use. Default are that some functions are commented out in order\n to not cause harm to existing metadata within the database.\n<END>", "<BEGIN>\n## `process_response`", "Checks for correct data response and status codes\n<END>", "<BEGIN>\n## `process_syno...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update_entity API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update_entity API. 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...
Updates pre-existing entity as long as the api_key is from the account that created it Args: label: name of entity type: entities type Can be any of the following: term, cde, fde, pde, annotation, relationship definition: entities definiti...
"Updates pre-existing entity as long as the api_key is from the account that created it\n\n Args:\n label: name of entity\n type: entities type\n Can be any of the following: term, cde, fde, pde, annotation, relationship\n definition: entities d...
44
false
tgbugs/ontquery
update_entity
30,509
LDU_FT/anomaly/prestans/_setup_serializers
LDU_FT
[ "<BEGIN>\n## `_setup_serializers`", "Auto set the return serializer based on Accept headers\n http://docs.webob.org/en/latest/reference.html#header-getters", " Intersection of requested types and supported types tells us if we\n can in fact respond in one of the request formats\n<END>", "...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _setup_serializers 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 _setup_serializers 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...
Auto set the return serializer based on Accept headers http://docs.webob.org/en/latest/reference.html#header-getters Intersection of requested types and supported types tells us if we can in fact respond in one of the request formats
"Auto set the return serializer based on Accept headers\n http://docs.webob.org/en/latest/reference.html#header-getters\n\n Intersection of requested types and supported types tells us if we\n can in fact respond in one of the request formats"
99
false
anomaly/prestans
_setup_serializers
30,510
LDU_FT/uuazed/numerapi/_unzip_file
LDU_FT
[ "<BEGIN>\n## `_unzip_file`", "unzips file located at src_path into destination_path\n<END>", "<BEGIN>\n## `get_dataset_url`", "Fetch url of the current dataset.", " Args:\n tournament (int, optional): ID of the tournament, defaults to 1", " Returns:\n str: url of the cu...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _unzip_file API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _unzip_file API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
unzips file located at src_path into destination_path
"unzips file located at src_path into destination_path"
163
false
uuazed/numerapi
_unzip_file
30,511
LDU_FT/sidecars/python-quickbooks/query
LDU_FT
[ "<BEGIN>\n## `get_authorize_url`", "Returns the Authorize URL as returned by QB, and specified by OAuth 1.0a.\n :return URI:\n<END>", "<BEGIN>\n## `get_access_tokens`", "Wrapper around get_auth_session, returns session, and sets access_token and\n access_token_secret on the QB Object.\n :...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the query API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the query API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
:param select: QBO SQL query select statement :param qb: :return: Returns list
":param select: QBO SQL query select statement\n :param qb:\n :return: Returns list"
26
false
sidecars/python-quickbooks
query
30,512
LDU_FT/collectiveacuity/jsonModel/_validate_list
LDU_FT
[ "<BEGIN>\n## `tabulate`", "a function to add the tabulate method to a jsonModel object", " :param json_model: jsonModel object\n :return: jsonModel object\n<END>", "<BEGIN>\n## `_evaluate_field`", "a helper method for evaluating record values based upon query criteria", " :param record_dict: ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _validate_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 ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _validate_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 ex...
a helper method for recursively validating items in a list :return: input_list
"a helper method for recursively validating items in a list\n\n :return: input_list"
65
false
collectiveacuity/jsonModel
_validate_list
30,513
LDU_FT/striglia/pyramid_swagger/find_resource_paths
LDU_FT
[ "<BEGIN>\n## `includeme`", ":type config: :class:`pyramid.config.Configurator`\n<END>", "<BEGIN>\n## `validate_swagger_schema`", "Validate the structure of Swagger schemas against the spec.", " **Valid only for Swagger v1.2 spec**", " Note: It is possible that resource_listing is not present in\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_resource_paths API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_resource_paths 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...
The inverse of :func:`find_resource_names` used to generate a resource listing from a directory of swagger api docs.
"The inverse of :func:`find_resource_names` used to generate\n a resource listing from a directory of swagger api docs."
101
false
striglia/pyramid_swagger
find_resource_paths
30,514
LDU_FT/Trax-air/swagger-parser/validate_request
LDU_FT
[ "<BEGIN>\n## `_validate_post_body`", "returns a tuple (boolean, msg)\n to indicate whether the validation passed\n if False then msg contains the reason\n if True then msg is empty\n<END>", "<BEGIN>\n## `build_definitions_example`", "Parse all definitions in the swagger specification.\n<E...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the validate_request API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the validate_request API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Check if the given request is valid. Validates the body and the query # Rules to validate the BODY: # Let's limit this to mime types that either contain 'text' or 'json' # 1. if body is None, there must not be any required parameters in # the given schema ...
"Check if the given request is valid.\n Validates the body and the query\n\n # Rules to validate the BODY:\n # Let's limit this to mime types that either contain 'text' or 'json'\n # 1. if body is None, there must not be any required parameters in\n # the given schem...
100
false
Trax-air/swagger-parser
validate_request
30,515
LDU_FT/vbwagner/ctypescrypto/create
LDU_FT
[ "<BEGIN>\n## `digest`", "Method digest is redefined to return keyed MAC value instead of\n just digest.\n<END>", "<BEGIN>\n## `bytes`", "Returns num bytes of cryptographically strong pseudo-random\n bytes. If checkc_result is True, raises error if PRNG is not\n seeded enough\n<END>", "<BEGIN>\n...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Creates an EncryptedData message. @param data data to encrypt @param cipher cipher.CipherType object represening required cipher type @param key - byte array used as simmetic key @param flags - OR-ed combination of Flags constant
"Creates an EncryptedData message.\n @param data data to encrypt\n @param cipher cipher.CipherType object represening required\n cipher type\n @param key - byte array used as simmetic key\n @param flags - OR-ed combination of Flags constant"
119
false
vbwagner/ctypescrypto
create
30,516
LDU_FT/rocioar/flake8-django/is_models_name_lookup_attribute
LDU_FT
[ "<BEGIN>\n## `capture_url_missing_namespace`", "Capture missing namespace in url include.\n<END>", "<BEGIN>\n## `run`", "Captures the use of locals() in render function.\n<END>", "<BEGIN>\n## `is_string_dunder_all`", "Return True if element is ast.Str or ast.Bytes and equals \"__all__\"\n<END>", "<BEGIN...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_models_name_lookup_attribute API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its co...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_models_name_lookup_attribute API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its co...
Return True if class is defined as the respective model name lookup declaration
"Return True if class is defined as the respective model name lookup declaration"
12
false
rocioar/flake8-django
is_models_name_lookup_attribute
30,517
LDU_FT/glyphobet/fragments/_diff_group_position
LDU_FT
[ "<BEGIN>\n## `_visible_in_diff`", "Collects the set of lines that should be visible in a diff with a certain number of context lines\n<END>", "<BEGIN>\n## `_split_diff`", "Split diffs and context lines into groups based on None sentinel\n<END>", "<BEGIN>\n## `_diff_group_position`", "Generate a unified di...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _diff_group_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 _diff_group_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. ...
Generate a unified diff position line for a diff group
"Generate a unified diff position line for a diff group"
28
false
glyphobet/fragments
_diff_group_position
30,518
LDU_FT/bitshares/python-bitshares/reserve
LDU_FT
[ "<BEGIN>\n## `decodeRPCErrorMsg`", "Helper function to decode the raised Exception and give it a\n python Exception class\n<END>", "<BEGIN>\n## `transfer`", "Transfer an asset to another account.", " :param str to: Recipient\n :param float amount: Amount to transfer\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the reserve API. 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 reserve API. 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...
Reserve/Burn an amount of this shares This removes the shares from the supply :param bitshares.amount.Amount amount: The amount to be burned. :param str account: (optional) the account to allow access to (defaults to ``default_account``)
"Reserve/Burn an amount of this shares\n\n This removes the shares from the supply\n\n :param bitshares.amount.Amount amount: The amount to be burned.\n :param str account: (optional) the account to allow access\n to (defaults to ``default_account``)"
116
false
bitshares/python-bitshares
reserve
30,519
LDU_FT/polysquare/polysquare-generic-file-linter/_run_lint_on_file
LDU_FT
[ "<BEGIN>\n## `create`", "Create a Dictionary at spellchecker_cache_path with technical words.\n<END>", "<BEGIN>\n## `_comment_type_from_line`", "Return the \"comment header\" (' * ', '# ', 'rem ', '// ', '/* ').", " This header goes before the content of a start of the\n line in a replacement.\n<END>"...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _run_lint_on_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 _run_lint_on_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...
Run each function in linter_functions on filename. If fix_what_you_can is specified, then the first error that has a possible replacement will be automatically fixed on this file.
"Run each function in linter_functions on filename.\n\n If fix_what_you_can is specified, then the first error that has a\n possible replacement will be automatically fixed on this file."
143
false
polysquare/polysquare-generic-file-linter
_run_lint_on_file
30,520
LDU_FT/crate/crate-python/fetchmany
LDU_FT
[ "<BEGIN>\n## `coerce`", "Convert plain dictionaries to MutableDict.\n<END>", "<BEGIN>\n## `_raise_for_status`", "make sure that only crate.exceptions are raised that are defined in\n the DB-API specification\n<END>", "<BEGIN>\n## `_server_url`", "Normalizes a given server string to an url", " >>> ...
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...
Fetch the next set of rows of a query result, returning a sequence of sequences (e.g. a list of tuples). An empty sequence is returned when no more rows are available.
"Fetch the next set of rows of a query result, returning a sequence of\n sequences (e.g. a list of tuples). An empty sequence is returned when\n no more rows are available."
81
false
crate/crate-python
fetchmany
30,521
LDU_FT/adamrehn/slidingwindow/fitToSize
LDU_FT
[ "<BEGIN>\n## `generate`", "Generates a set of sliding windows for the specified dataset.\n<END>", "<BEGIN>\n## `generateForSize`", "Generates a set of sliding windows for a dataset with the specified dimensions and order.\n<END>", "<BEGIN>\n## `apply`", "Slices the supplied matrix and applies any transfor...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the fitToSize API. 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 fitToSize API. 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...
Pads or crops a rectangle as necessary to achieve the target dimensions, ensuring the modified rectangle falls within the specified bounds. The input rectangle, bounds, and return value are all a tuple of (x,y,w,h).
"Pads or crops a rectangle as necessary to achieve the target dimensions,\n\tensuring the modified rectangle falls within the specified bounds.\n\t\n\tThe input rectangle, bounds, and return value are all a tuple of (x,y,w,h)."
46
false
adamrehn/slidingwindow
fitToSize
30,522
LDU_FT/aluzzardi/wssh/execute
LDU_FT
[ "<BEGIN>\n## `_load_private_key`", "Load a SSH private key (DSA or RSA) from a string", " The private key may be encrypted. In that case, a passphrase\n must be supplied.\n<END>", "<BEGIN>\n## `open`", "Open a connection to a remote SSH server", " In order to connect, either one of th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the execute API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the execute API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
Execute a command on the remote server This method will forward traffic from the websocket to the SSH server and the other way around. You must connect to a SSH server using ssh_connect() prior to starting the session.
"Execute a command on the remote server\n\n This method will forward traffic from the websocket to the SSH server\n and the other way around.\n\n You must connect to a SSH server using ssh_connect()\n prior to starting the session."
20
false
aluzzardi/wssh
execute
30,523
LDU_FT/absent1706/sqlalchemy-mixins/save
LDU_FT
[ "<BEGIN>\n## `to_dict`", "Return dict object with model's data.", " :param nested: flag to return nested relationships' data if true\n :type: bool\n :return: dict\n<END>", "<BEGIN>\n## `with_joined`", "Eagerload for simple cases where we need to just\r\n joined load some relatio...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the save API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the save API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
Saves the updated model to the current entity db.
"Saves the updated model to the current entity db."
46
false
absent1706/sqlalchemy-mixins
save
30,524
LDU_FT/merantix/picasso/decode_prob
LDU_FT
[ "<BEGIN>\n## `preprocess`", "Convert images into the format required by our model.", " Our model requires that inputs be grayscale (mode 'L'), be resized to\n `MNIST_DIM`, and be represented as float32 numpy arrays in range\n [0, 1].", " Args:\n raw_inputs (list of Image...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the decode_prob API. 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 decode_prob API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
Given predicted class probabilites for a set of examples, annotate each logit with a class name. By default, we name each class using its index in the logits array. Args: class_probabilities (array): Class probabilities as output by `self.predict`, i.e., a numpy arr...
"Given predicted class probabilites for a set of examples, annotate\n each logit with a class name.\n\n By default, we name each class using its index in the logits array.\n\n Args:\n class_probabilities (array): Class probabilities as output by\n `self.predict`, i.e., a n...
51
false
merantix/picasso
decode_prob
30,525
LDU_FT/Unity-Technologies/ml-agents/update
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 update API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Performs update on model. :param mini_batch: Batch of experiences. :param num_sequences: Number of sequences to process. :return: Results of update.
"Performs update on model.\n :param mini_batch: Batch of experiences.\n :param num_sequences: Number of sequences to process.\n :return: Results of update."
171
false
Unity-Technologies/ml-agents
update
30,526
LDU_FT/DataKitchen/DKCloudCommand/get_compiled_serving
LDU_FT
[ "<BEGIN>\n## `is_same`", "Compare two directory trees content.\n Return False if they differ, True is they are the same.\n :param dir2:\n :param dir1:\n<END>", "<BEGIN>\n## `phase3`", "Find out differences between common files.\n Ensure we are using content comparison with shallow=False.\n<END...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_compiled_serving 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_compiled_serving 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 the compiled version of arecipe with variables applied for a specific variation in a kitchen returns a dictionary '/v2/servings/compiled/get/<string:kitchenname>/<string:recipename>/<string:variationname>', methods=['GET'] :param self: DKCloudAPI :param kitchen: basestring :p...
"get the compiled version of arecipe with variables applied for a specific variation in a kitchen\n returns a dictionary\n '/v2/servings/compiled/get/<string:kitchenname>/<string:recipename>/<string:variationname>', methods=['GET']\n :param self: DKCloudAPI\n :param kitchen: basestring\n ...
70
false
DataKitchen/DKCloudCommand
get_compiled_serving
30,527
LDU_FT/emencia/dr-dump/build_template
LDU_FT
[ "<BEGIN>\n## `get_dump_names`", "Find and return all dump names required (by dependancies) for a given\n dump names list", " Beware, the returned name list does not respect order, you should only\n use it when walking throught the \"original\" dict builded by OrderedDict\n<END>", "<BEGIN>...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the build_template API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the build_template API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
Build source from global and item templates
"Build source from global and item templates"
14
false
emencia/dr-dump
build_template
30,528
LDU_FT/Leeps-Lab/otree-redwood/_on_disconnect
LDU_FT
[ "<BEGIN>\n## `message`", "Dictionary representation of the Event appropriate for JSON-encoding.\n<END>", "<BEGIN>\n## `save`", "Saving an Event automatically sets the timestamp if not already set.\n<END>", "<BEGIN>\n## `_on_connect`", "Called from the WebSocket consumer. Checks if all players in the group...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _on_disconnect API. 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 _on_disconnect API. 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...
Trigger the :meth:`when_player_disconnects` callback.
"Trigger the :meth:`when_player_disconnects` callback."
18
false
Leeps-Lab/otree-redwood
_on_disconnect
30,529
LDU_FT/xenadevel/PyXenaManager/load_config
LDU_FT
[ "<BEGIN>\n## `sendQuery`", "Send command, wait for response (single or multi lines), test for errors and return the returned code.", " :param cmd: command to send\n :param multilines: True - multiline response, False - single line response.\n :return: command return value.\n<END>", "<BEGI...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load_config API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load_config API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
Load configuration file from xpc file. :param config_file_name: full path to the configuration file.
"Load configuration file from xpc file.\n\n :param config_file_name: full path to the configuration file."
140
false
xenadevel/PyXenaManager
load_config
30,530
LDU_FT/LPgenerator/django-db-mailer/send
LDU_FT
[ "<BEGIN>\n## `send`", "Site: http://www.pubnub.com/\n API: https://www.mashape.com/pubnub/pubnub-network\n Desc: real-time browser notifications", " Installation and usage:\n pip install -U pubnub\n Tests for browser notification http://127.0.0.1:8000/browser_notification/\n<END>", "<BEGIN>\n##...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the send API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the send API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
Site: https://apple.com API: https://developer.apple.com Desc: iOS notifications Installation and usage: pip install hyper
"Site: https://apple.com\n API: https://developer.apple.com\n Desc: iOS notifications\n\n Installation and usage:\n pip install hyper"
39
false
LPgenerator/django-db-mailer
send
30,531
LDU_FT/Autodesk/pyccc/remove_directories
LDU_FT
[ "<BEGIN>\n## `persistent_id`", "Tags objects with a persistent ID, but do NOT emit it\n<END>", "<BEGIN>\n## `open`", "Return file-like object (actually opens the file for this class)\n<END>", "<BEGIN>\n## `_open_tmpfile`", "Open a temporary, unique file in CACHEDIR (/tmp/cyborgcache) by default.\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the remove_directories 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 remove_directories 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...
Removes non-leafs from a list of directory paths
"Removes non-leafs from a list of directory paths"
114
false
Autodesk/pyccc
remove_directories
30,532
LDU_FT/bennylope/pygeocodio/batch_geocode
LDU_FT
[ "<BEGIN>\n## `error_response`", "Raises errors matching the response code\n<END>", "<BEGIN>\n## `_req`", "Method to wrap all request building", " :return: a Response object based on the specified method and request values.\n<END>", "<BEGIN>\n## `parse`", "Returns an Address dictionary with the co...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the batch_geocode API. 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 batch_geocode API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
Returns an Address dictionary with the components of the queried address.
"Returns an Address dictionary with the components of the queried\n address."
28
false
bennylope/pygeocodio
batch_geocode
30,533
LDU_FT/ucsb-cs-education/hairball/load
LDU_FT
[ "<BEGIN>\n## `main`", "The entrypoint for the hairball command installed via setup.py.\n<END>", "<BEGIN>\n## `path_to_key`", "Return the sha1sum (key) belonging to the file at filepath.\n<END>", "<BEGIN>\n## `key_to_path`", "Return the fullpath to the file with sha1sum key.\n<END>", "<BEGIN>\n## `load`"...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
Optimized load and return the parsed version of filename. Uses the on-disk parse cache if the file is located in it.
"Optimized load and return the parsed version of filename.\n\n Uses the on-disk parse cache if the file is located in it."
90
false
ucsb-cs-education/hairball
load
30,534
LDU_FT/bxlab/bx-python/get_components_for_species
LDU_FT
[ "<BEGIN>\n## `abut`", "Like the |Stat abut command. It concatenates two lists side-by-side\nand returns the result. '2D' lists are also accomodated for either argument\n(source or addon). CAUTION: If one list is shorter, it will be repeated\nuntil it is as long as the longest list. If this behavior is not de...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_components_for_species API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclus...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_components_for_species API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclus...
Return the component for each species in the list `species` or None
"Return the component for each species in the list `species` or None"
417
false
bxlab/bx-python
get_components_for_species
30,535
LDU_FT/dbcli/athenacli/_on_completions_refreshed
LDU_FT
[ "<BEGIN>\n## `refresher`", "Decorator to add the decorated function to the dictionary of\n refreshers. Any function decorated with a @refresher will be executed as\n part of the completion refresh routine.\n<END>", "<BEGIN>\n## `refresh`", "Creates a SQLCompleter object and populates it with the relevan...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _on_completions_refreshed 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 _on_completions_refreshed API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi...
Swap the completer object in cli with the newly created completer.
"Swap the completer object in cli with the newly created completer."
95
false
dbcli/athenacli
_on_completions_refreshed
30,536
LDU_FT/jedie/PyHardLinkBackup/set_src_filepath
LDU_FT
[ "<BEGIN>\n## `human_filesize`", "'human-readable' file size (i.e. 13 KB, 4.1 MB, 102 bytes, etc).\n<END>", "<BEGIN>\n## `dt2naturaltimesince`", "datetime to a human readable representation with how old this entry is information\n e.g.:\n Jan. 27, 2016, 9:04 p.m. (31 minutes ago)\n<END>", "<BEGIN>\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_src_filepath API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_src_filepath API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Set one filepath to backup this file. Called for every file in the source directory. :argument src_dir_path: filesystem_walk.DirEntryPath() instance
"Set one filepath to backup this file.\n Called for every file in the source directory.\n\n :argument src_dir_path: filesystem_walk.DirEntryPath() instance"
44
false
jedie/PyHardLinkBackup
set_src_filepath
30,537
LDU_FT/ActiveState/simplealchemy/sqlalchemy_escape
LDU_FT
[ "<BEGIN>\n## `sqlalchemy_escape`", "Escape a string according for use in LIKE operator", " >>> sqlalchemy_escape(\"text_table\", \"\\\\\", \"%_\")\n 'text\\_table'\n<END>", "<BEGIN>\n## `_remove_unicode_keys`", "Convert keys from 'unicode' to 'str' type.", " workaround for <http://bugs.python.org...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the sqlalchemy_escape API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the sqlalchemy_escape API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Escape a string according for use in LIKE operator >>> sqlalchemy_escape("text_table", "\\", "%_") 'text\_table'
"Escape a string according for use in LIKE operator\n\n >>> sqlalchemy_escape(\"text_table\", \"\\\\\", \"%_\")\n 'text\\_table'"
17
false
ActiveState/simplealchemy
sqlalchemy_escape
30,538
LDU_FT/dossier/dossier.web/v1_tag_associate
LDU_FT
[ "<BEGIN>\n## `as_multi_dict`", "Coerce a dictionary to a bottle.MultiDict\n<END>", "<BEGIN>\n## `set_query_params`", "Set the query parameters.", " The query parameters should be a dictionary mapping keys to\n strings or lists of strings.", " :param query_params: query parameters\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the v1_tag_associate API. 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 v1_tag_associate API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Associate an HTML element with a tag. The association should be a JSON serialized object on the request body. Here is an example association that should make the object's structure clear: .. code-block:: python { "url": "http://example.com/abc/xyz?foo=bar", "text": "Th...
"Associate an HTML element with a tag.\n\n The association should be a JSON serialized object on the\n request body. Here is an example association that should\n make the object's structure clear:\n\n .. code-block:: python\n\n {\n \"url\": \"http://example.com/abc/xyz?foo=bar\",\n ...
223
false
dossier/dossier.web
v1_tag_associate
30,539
LDU_FT/python273/telegraph/upload_file
LDU_FT
[ "<BEGIN>\n## `create_account`", "Create a new Telegraph account", " :param short_name: Account name, helps users with several\n accounts remember which they are currently using.\n Displayed to the user above the \"Edit/Publish\"\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the upload_file API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the upload_file API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
Upload file to Telegra.ph's servers. Returns a list of links. Allowed only .jpg, .jpeg, .png, .gif and .mp4 files. :param f: filename or file-like object. :type f: file, str or list
"Upload file to Telegra.ph's servers. Returns a list of links.\n Allowed only .jpg, .jpeg, .png, .gif and .mp4 files.\n\n :param f: filename or file-like object.\n :type f: file, str or list"
39
false
python273/telegraph
upload_file
30,540
LDU_FT/planetarypy/pvl/loads
LDU_FT
[ "<BEGIN>\n## `append`", "Adds a (name, value) pair, doesn't overwrite the value if it already\n exists.\n<END>", "<BEGIN>\n## `__insert_wrapper`", "Make sure the arguments given to the insert methods are correct\n<END>", "<BEGIN>\n## `_get_index_for_insert`", "Get the index of the key to insert bef...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the loads API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the loads API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
Deserialize ``data`` as a pvl module. :param data: a pvl module as a byte or unicode string :param cls: the decoder class used to deserialize the pvl module. You may use the default ``PVLDecoder`` class or provide a custom sublcass. :param **kwargs: the keyword arguments to pass to the decoder cl...
"Deserialize ``data`` as a pvl module.\n\n :param data: a pvl module as a byte or unicode string\n\n :param cls: the decoder class used to deserialize the pvl module. You may\n use the default ``PVLDecoder`` class or provide a custom sublcass.\n\n :param **kwargs: the keyword arguments to pass to the de...
63
false
planetarypy/pvl
loads
30,541
LDU_FT/DallasMorningNews/django-datafreezer/grab_names_from_emails
LDU_FT
[ "<BEGIN>\n## `clean`", "Verifies that beginning date is before ending date.\n<END>", "<BEGIN>\n## `get_success_url`", "Ensure the user-originating redirection URL is safe.\n<END>", "<BEGIN>\n## `form_valid`", "Security check complete. Log the user in.\n<END>", "<BEGIN>\n## `map_hubs_to_verticals`", "R...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the grab_names_from_emails 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 grab_names_from_emails API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
Return a dictionary mapping names to email addresses. Only gives a response if the email is found in the staff API/JSON. Expects an API of the format = [ { 'email': 'foo@bar.net', ... 'fullName': 'Frank Oo' }, ... ]
"Return a dictionary mapping names to email addresses.\n\n Only gives a response if the email is found\n in the staff API/JSON.\n\n Expects an API of the format =\n [\n {\n 'email': 'foo@bar.net',\n ...\n 'fullName': 'Frank Oo'\n },\n ...\n ]"
63
false
DallasMorningNews/django-datafreezer
grab_names_from_emails
30,542
LDU_FT/tylucaskelley/licenser/compute_distance
LDU_FT
[ "<BEGIN>\n## `find_in_matrix_2d`", "Returns a tuple representing the index of an item in a 2D matrix.", " Arguments:\n - val (str) Value to look for\n - matrix (list) 2D matrix to search for val in", " Returns:\n - (tuple) Ordered pair representing location of val\n<END>", "<BEGIN...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the compute_distance API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the compute_distance API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Computes a modified Levenshtein distance between two strings, comparing the lowercase versions of each string and accounting for QWERTY distance. Arguments: - a (str) String to compare to 'b' - b (str) String to compare to 'a' Returns: - (int) Number representing closeness of 'a' a...
"Computes a modified Levenshtein distance between two strings, comparing the\n lowercase versions of each string and accounting for QWERTY distance.\n\n Arguments:\n - a (str) String to compare to 'b'\n - b (str) String to compare to 'a'\n\n Returns:\n - (int) Number representing closeness...
31
false
tylucaskelley/licenser
compute_distance
30,543
LDU_FT/PySimpleGUI/PySimpleGUI/SetAlpha
LDU_FT
[ "<BEGIN>\n## `read_mail`", "Reads late emails from IMAP server and displays them in the Window\n :param window: window to display emails in\n :return:\n<END>", "<BEGIN>\n## `runCommand`", "run shell command", "\t@param cmd: command to execute\n\t@param timeout: timeout for command execution", "\t@re...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the SetAlpha API. 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 SetAlpha API. 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...
Change the window's transparency :param alpha: From 0 to 1 with 0 being completely transparent :return:
"Change the window's transparency\n :param alpha: From 0 to 1 with 0 being completely transparent\n :return:"
110
false
PySimpleGUI/PySimpleGUI
SetAlpha
30,544
LDU_FT/wtsi-hgi/python-capturewrap/_capture_stderr
LDU_FT
[ "<BEGIN>\n## `_capture_stdout`", "Captures content written to standard out.\n :param callable: the callable to wrap\n :param args: positional arguments passed to the callable\n :param kwargs: keyword arguments passed to the callable\n :return: the captured result\n<END>", "<BEGIN>\n#...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _capture_stderr API. 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 _capture_stderr API. 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...
Captures content written to standard error. :param callable: the callable to wrap :param args: positional arguments passed to the callable :param kwargs: keyword arguments passed to the callable :return: the captured result
"Captures content written to standard error.\n :param callable: the callable to wrap\n :param args: positional arguments passed to the callable\n :param kwargs: keyword arguments passed to the callable\n :return: the captured result"
12
false
wtsi-hgi/python-capturewrap
_capture_stderr
30,545
LDU_FT/digidotcom/python-devicecloud/sci
LDU_FT
[ "<BEGIN>\n## `_parse_command_response`", "Parse an SCI command response into ElementTree XML", " This is a helper method that takes a Requests Response object\n of an SCI command response and will parse it into an ElementTree Element\n representing the root of the XML response.", " :param response...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the sci API. 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 sci API. 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...
Property providing access to the :class:`.ServerCommandInterfaceAPI`
"Property providing access to the :class:`.ServerCommandInterfaceAPI`"
366
false
digidotcom/python-devicecloud
sci
30,546
LDU_FT/sethmlarson/virtualbox-python/file_open
LDU_FT
[ "<BEGIN>\n## `register_on_network_adapter_changed`", "Set the callback function to consume on network adapter changed\n events.", " Callback receives a INetworkAdapterChangedEvent object.", " Returns the callback_id\n<END>", "<BEGIN>\n## `register_on_serial_port_changed`", "Set the ca...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the file_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 extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the file_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 extract...
Opens a file and creates a :py:class:`IGuestFile` object that can be used for further operations. in path of type str Path to file to open. Guest path style. in access_mode of type :class:`FileAccessMode` The file access mode (read, write and/or append). S...
"Opens a file and creates a :py:class:`IGuestFile` object that\n can be used for further operations.\n\n in path of type str\n Path to file to open. Guest path style.\n\n in access_mode of type :class:`FileAccessMode`\n The file access mode (read, write and/or append).\n ...
2,484
true
sethmlarson/virtualbox-python
file_open
30,547
LDU_FT/tango-controls/pytango/DbGetClassPropertyList
LDU_FT
[ "<BEGIN>\n## `get_object_executor`", "Returns the proper executor for the given object.", " If the object has *_executors* and *_green_mode* members it returns\n the submit callable for the executor corresponding to the green_mode.\n Otherwise it returns the global executor for the given green_mode.", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the DbGetClassPropertyList 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 DbGetClassPropertyList 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 property list for a given Tango class with a specified filter :param argin: The filter :type: tango.DevString :return: Property name list :rtype: tango.DevVarStringArray
"Get property list for a given Tango class with a specified filter\n\n :param argin: The filter\n :type: tango.DevString\n :return: Property name list\n :rtype: tango.DevVarStringArray"
577
false
tango-controls/pytango
DbGetClassPropertyList
30,548
LDU_FT/steffann/pylisp/to_bytes
LDU_FT
[ "<BEGIN>\n## `from_bytes`", "Look at the type of the message, instantiate the correct class and\n let it parse the message.\n<END>", "<BEGIN>\n## `sanitize`", "Check if the current settings conform to the LISP specifications and\n fix them where possible.\n<END>", "<BEGIN>\n## `calculate_authe...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the to_bytes API. 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 to_bytes API. 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...
r''' Create bytes from properties >>> message = MapRequestMessage(itr_rlocs=[IPv4Address(u'192.0.2.1')], ... eid_prefixes=[IPv6Network(u'2001:db8::/32')]) >>> hex = message.to_bytes().encode('hex') >>> hex[:40] '10000001000000000000000000000001c0000...
"r'''\n Create bytes from properties\n\n >>> message = MapRequestMessage(itr_rlocs=[IPv4Address(u'192.0.2.1')],\n ... eid_prefixes=[IPv6Network(u'2001:db8::/32')])\n >>> hex = message.to_bytes().encode('hex')\n >>> hex[:40]\n '10000001000000000000000000000...
85
false
steffann/pylisp
to_bytes
30,549
LDU_FT/myth/pepper8/add_error
LDU_FT
[ "<BEGIN>\n## `parse`", "Reads all lines from the current data source and yields each FileResult objects\n<END>", "<BEGIN>\n## `analyze`", "Analyzes the parsed results from Flake8 or PEP 8 output and creates FileResult instances\n :param output_file: If specified, output will be written to this file ins...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_error API. 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 add_error API. 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...
Registers an error for this container with code on line at char. :param code: The PEP 8 error code :param line: The line number of the reported error :param char: Line location of first offending character :param description: The human readable description of the thrown error/warning
"Registers an error for this container with code on line at char.\n :param code: The PEP 8 error code\n :param line: The line number of the reported error\n :param char: Line location of first offending character\n :param description: The human readable description of the thrown error/warnin...
14
false
myth/pepper8
add_error
30,550
LDU_FT/bsolomon1124/pyfinance/value
LDU_FT
[ "<BEGIN>\n## `value`", "Compute option value according to BSM model.\n<END>", "<BEGIN>\n## `implied_vol`", "Get implied vol at the specified price using an iterative approach.\r", " There is no closed-form inverse of BSM-value as a function of sigma,\r\n so start at an anchoring volatility lev...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the value API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the value API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
Compute option value according to BSM model.
"Compute option value according to BSM model."
372
false
bsolomon1124/pyfinance
value
30,551
LDU_FT/F483/btctxstore/add_nulldata
LDU_FT
[ "<BEGIN>\n## `_recover_public_key`", "Recover a public key from a signature.\n See SEC 1: Elliptic Curve Cryptography, section 4.1.6, \"Public\n Key Recovery Operation\".\n http://www.secg.org/sec1-v2.pdf\n<END>", "<BEGIN>\n## `chunks`", "Split list into chunks of the given size.\n Original order ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_nulldata API. 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_nulldata API. 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...
Writes <hexdata> as new nulldata output to <rawtx>.
"Writes <hexdata> as new nulldata output to <rawtx>."
41
false
F483/btctxstore
add_nulldata
30,552
LDU_FT/nuagenetworks/monolithe/_read_config
LDU_FT
[ "<BEGIN>\n## `raiseError`", "Print an error message", " Args:\n message: the message to print\n<END>", "<BEGIN>\n## `json`", "Print a nice JSON output", " Args:\n message: the message to print\n<END>", "<BEGIN>\n## `to_dict`", "Transform the current ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _read_config API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _read_config API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
This method reads provided json config file.
"This method reads provided json config file."
69
false
nuagenetworks/monolithe
_read_config
30,553
LDU_FT/rbit/pydtls/forward
LDU_FT
[ "<BEGIN>\n## `decode_cert`", "Convert an X509 certificate into a Python dictionary", " This function converts the given X509 certificate into a Python dictionary\n in the manner established by the Python standard library's ssl module.\n<END>", "<BEGIN>\n## `_get_server_certificate`", "Retrieve a serve...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the forward API. 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 forward API. 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...
Forward a stored datagram When the service method returns the address of a new peer, it holds the datagram from that peer in this instance. In this case, this method will perform the forwarding step. The target connection is the one associated with address None if get_connection has not...
"Forward a stored datagram\n\n When the service method returns the address of a new peer, it holds\n the datagram from that peer in this instance. In this case, this\n method will perform the forwarding step. The target connection is the\n one associated with address None if get_connection h...
83
false
rbit/pydtls
forward
30,554
LDU_FT/square/connect-python-sdk/card_nonce
LDU_FT
[ "<BEGIN>\n## `attribute_name`", "Sets the attribute_name of this CatalogQueryRange.\n The name of the attribute to be searched.", " :param attribute_name: The attribute_name of this CatalogQueryRange.\n :type: str\n<END>", "<BEGIN>\n## `idempotency_key`", "Sets the idempotency_key of th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the card_nonce API. 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 card_nonce API. 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...
Sets the card_nonce of this ChargeRequest. A nonce generated from the `SqPaymentForm` that represents the card to charge. The application that provides a nonce to this endpoint must be the _same application_ that generated the nonce with the `SqPaymentForm`. Otherwise, the nonce is invalid. Do not provide a v...
"Sets the card_nonce of this ChargeRequest.\n A nonce generated from the `SqPaymentForm` that represents the card to charge. The application that provides a nonce to this endpoint must be the _same application_ that generated the nonce with the `SqPaymentForm`. Otherwise, the nonce is invalid. Do not provide a...
148
false
square/connect-python-sdk
card_nonce
30,555
LDU_FT/jwhitlock/drf-cached-instances/get_object
LDU_FT
[ "<BEGIN>\n## `user_default_serializer`", "Convert a User to a cached instance representation.\n<END>", "<BEGIN>\n## `user_default_add_related_pks`", "Add related primary keys to a User instance.\n<END>", "<BEGIN>\n## `group_default_invalidator`", "Invalidated cached items when the Group changes.\n<END>", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_object API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_object API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
Return the object the view is displaying. Same as rest_framework.generics.GenericAPIView, but: - Failed assertions instead of deprecations
"Return the object the view is displaying.\n\n Same as rest_framework.generics.GenericAPIView, but:\n - Failed assertions instead of deprecations"
75
false
jwhitlock/drf-cached-instances
get_object
30,556
LDU_FT/lemieuxl/pyplink/_read_current_marker
LDU_FT
[ "<BEGIN>\n## `next`", "Returns the next marker.", " Returns:\n tuple: The marker name as a string and its genotypes as a\n :py:class:`numpy.ndarray`.\n<END>", "<BEGIN>\n## `_read_current_marker`", "Reads the current marker and returns its genotypes.\n<END>", "<BEGIN>\n## `seek...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _read_current_marker 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 _read_current_marker API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Reads the current marker and returns its genotypes.
"Reads the current marker and returns its genotypes."
34
false
lemieuxl/pyplink
_read_current_marker
30,557
LDU_FT/mattrobenolt/ec2/get
LDU_FT
[ "<BEGIN>\n## `from_file`", "Load ACCESS_KEY_ID and SECRET_ACCESS_KEY from csv\n generated by Amazon's IAM.", " >>> ec2.credentials.from_file('credentials.csv')\n<END>", "<BEGIN>\n## `make_compare`", "Map a key name to a specific comparison function\n<END>", "<BEGIN>\n## `all`", "Wrapper ar...
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...
Generic get() for one item only >>> ec2.instances.get(name='production-web-01') <Instance: ...>
"Generic get() for one item only\n\n >>> ec2.instances.get(name='production-web-01')\n <Instance: ...>"
16
false
mattrobenolt/ec2
get
30,558
LDU_FT/raamana/mrivis/transform_and_attach
LDU_FT
[ "<BEGIN>\n## `checkerboard`", "Checkerboard mixer.", " Parameters\n ----------\n img_spec1 : str or nibabel image-like object\n MR image (or path to one) to be visualized", " img_spec2 : str or nibabel image-like object\n MR image (or path to one) to be visualized", " patch_size...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the transform_and_attach 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 transform_and_attach API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Displays the transformed (combined) version of the cross-sections from each image, (same slice and dimension). So if you input n>=1 images, n slices are obtained from each image, which are passed to the func (callable) provided, and the result will be displayed in the corresponding c...
"Displays the transformed (combined) version of the cross-sections from each image,\n (same slice and dimension). So if you input n>=1 images, n slices are obtained\n from each image, which are passed to the func (callable) provided, and the\n result will be displayed in the correspondi...
216
false
raamana/mrivis
transform_and_attach
30,559
LDU_FT/e3krisztian/pyrene/do_unset
LDU_FT
[ "<BEGIN>\n## `pip_install`", "Run pip install ...", " Explicitly ignores user's config.\n<END>", "<BEGIN>\n## `do_copy`", "Copy packages between repos", " copy SOURCE DESTINATION", " Where SOURCE can be either LOCAL-FILE or REPO:PACKAGE-SPEC\n DESTINATION can be either a REPO: ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the do_unset API. 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 do_unset API. 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...
Unset attribute on the active/default repo
"Unset attribute on the active/default repo"
34
false
e3krisztian/pyrene
do_unset
30,560
LDU_FT/jrjparks/django-rest-framework-nested/build_url_field
LDU_FT
[ "<BEGIN>\n## `build_url_field`", "Create a field representing the object's own URL.\n<END>", "<BEGIN>\n## `get_parent_lookup_field`", "Return tha parent_lookup_field for the NestedHyperlinkedModelSerializer.\n If `parent_lookup_field` of `parent_model` is not defined lookup ForeignKey field of model.\n...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the build_url_field API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the build_url_field API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
Create a field representing the object's own URL.
"Create a field representing the object's own URL."
14
false
jrjparks/django-rest-framework-nested
build_url_field
30,561
LDU_FT/ConsenSys/mythril-classic/UGT
LDU_FT
[ "<BEGIN>\n## `_get_account`", "Get account by address.", " :param address:\n :return:\n<END>", "<BEGIN>\n## `_get_block_hash`", "Get block hash by block number.", " :param number:\n :return:\n<END>", "<BEGIN>\n## `_get_head_block`", "Get head block header.", " :ret...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the UGT API. 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 UGT API. 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...
Create an unsigned greater than expression. :param a: :param b: :return:
"Create an unsigned greater than expression.\n\n :param a:\n :param b:\n :return:"
376
false
ConsenSys/mythril-classic
UGT
30,562
LDU_FT/ssato/python-anyconfig/findall_with_pred
LDU_FT
[ "<BEGIN>\n## `_load_plugins_itr`", ".. seealso:: the doc of :func:`load_plugins`\n<END>", "<BEGIN>\n## `select_by_key`", ":param items: A list of tuples of keys and values, [([key], val)]\n :return: A list of tuples of key and values, [(key, [val])]", " >>> select_by_key([([\"a\", \"aaa\"], 1), ([\"b\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the findall_with_pred API. 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 findall_with_pred API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
:param predicate: any callable to filter results :param prs: A list of :class:`anyconfig.models.processor.Processor` classes :return: A list of appropriate processor classes or []
":param predicate: any callable to filter results\n :param prs: A list of :class:`anyconfig.models.processor.Processor` classes\n :return: A list of appropriate processor classes or []"
534
false
ssato/python-anyconfig
findall_with_pred
30,563
LDU_FT/crs4/pydoop/open_file
LDU_FT
[ "<BEGIN>\n## `align_after`", "Search for a sync point after offset and align just after that.\n<END>", "<BEGIN>\n## `get_progress`", "Give a rough estimate of the progress done.\n<END>", "<BEGIN>\n## `is_local`", "\\\n Is Hadoop configured to run in local mode?", " By default, it is. [pseu...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the open_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 extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the open_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 extract...
Open an HDFS file. Supported opening modes are "r", "w", "a". In addition, a trailing "t" can be added to specify text mode (e.g., "rt" = open for reading text). Pass 0 as ``buff_size``, ``replication`` or ``blocksize`` if you want to use the "configured" values, i.e., the ones...
"Open an HDFS file.\n\n Supported opening modes are \"r\", \"w\", \"a\". In addition, a\n trailing \"t\" can be added to specify text mode (e.g., \"rt\" =\n open for reading text).\n\n Pass 0 as ``buff_size``, ``replication`` or ``blocksize`` if you want\n to use the \"configured\" va...
256
false
crs4/pydoop
open_file
30,564
LDU_FT/viniciuschiele/flask-apscheduler/_load_config
LDU_FT
[ "<BEGIN>\n## `pop_trigger`", "Pops trigger and trigger args from a given dict.\n<END>", "<BEGIN>\n## `fix_job_def`", "Replaces the datetime in string by datetime object.\n<END>", "<BEGIN>\n## `init_app`", "Initialize the APScheduler with a Flask application instance.\n<END>", "<BEGIN>\n## `start`", "S...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _load_config API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _load_config API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
Load the configuration from the Flask configuration.
"Load the configuration from the Flask configuration."
37
false
viniciuschiele/flask-apscheduler
_load_config
30,565
LDU_FT/steffann/pylisp/handle_message
LDU_FT
[ "<BEGIN>\n## `from_bytes`", "Look at the type of the message, instantiate the correct class and\n let it parse the message.\n<END>", "<BEGIN>\n## `sanitize`", "Check if the current settings conform to the LISP specifications and\n fix them where possible.\n<END>", "<BEGIN>\n## `calculate_authe...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the handle_message API. 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 handle_message API. 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...
Handle a LISP message. The default handle method determines the type of message and delegates it to the more specific method
"Handle a LISP message. The default handle method determines the type\n of message and delegates it to the more specific method"
85
false
steffann/pylisp
handle_message
30,566
LDU_FT/Robpol86/sphinxcontrib-disqus/setup
LDU_FT
[ "<BEGIN>\n## `event_html_page_context`", "Called when the HTML builder has created a context dictionary to render a template with.", " Conditionally adding disqus.js to <head /> if the directive is used in a page.", " :param sphinx.application.Sphinx app: Sphinx application object.\n :param str pagen...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the setup API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the setup API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
Called by Sphinx during phase 0 (initialization). :param app: Sphinx application object. :returns: Extension version. :rtype: dict
"Called by Sphinx during phase 0 (initialization).\n\n :param app: Sphinx application object.\n\n :returns: Extension version.\n :rtype: dict"
19
false
Robpol86/sphinxcontrib-disqus
setup
30,567
LDU_FT/pmuller/versions/match
LDU_FT
[ "<BEGIN>\n## `merge`", "Merge ``constraints``.", " It removes dupplicate, pruned and merged constraints.", " :param constraints: Current constraints.\n :type constraints: Iterable of :class:`.Constraint` objects.\n :rtype: :func:`list` of :class:`.Constraint` objects.\n :raises: :exc:`.Exclusiv...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the match API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the match API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
Match ``version`` with the constraint. :param version: Version to match against the constraint. :type version: :ref:`version expression <version-expressions>` or \ :class:`.Version` :rtype: ``True`` if ``version`` satisfies the constraint, \ ``False`` if it doesn't.
"Match ``version`` with the constraint.\n\n :param version: Version to match against the constraint.\n :type version: :ref:`version expression <version-expressions>` or \\\n :class:`.Version`\n :rtype: ``True`` if ``version`` satisfies the constraint, \\\n ``False`` if it doesn't."
42
false
pmuller/versions
match
30,568
LDU_FT/ThreatConnect-Inc/tcex/file
LDU_FT
[ "<BEGIN>\n## `_print_results`", "Print the download results.", " Args:\n file (str): The filename.\n status (str): The file download status.\n<END>", "<BEGIN>\n## `_confirm_overwrite`", "Confirm overwrite of template files.", " Make sure the user would like to continue ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the 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 extracted do...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the 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 extracted do...
Create the File TI object. Args: owner: **kwargs: Return:
"Create the File TI object.\n\n Args:\n owner:\n **kwargs:\n\n Return:"
1,591
true
ThreatConnect-Inc/tcex
file
30,569
LDU_FT/The-Politico/politico-civic-election/get_candidate_votes
LDU_FT
[ "<BEGIN>\n## `save`", "**uid**: :code:`{office.uid}_{cycle.uid}_race`\n<END>", "<BEGIN>\n## `save`", "**uid**: :code:`division_cycle_ballotmeasure:{number}`\n<END>", "<BEGIN>\n## `save`", "**uid**: :code:`{race.uid}_election:{election_day}-{party}`\n<END>", "<BEGIN>\n## `get_candidates`", "Get all Can...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_candidate_votes 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_candidate_votes 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 all votes attached to a CandidateElection for a Candidate in this election.
"Get all votes attached to a CandidateElection for a Candidate in\n this election."
32
false
The-Politico/politico-civic-election
get_candidate_votes
30,570
LDU_FT/sebp/scikit-survival/_count_values
LDU_FT
[ "<BEGIN>\n## `_fit_and_score`", "Train survival model on given data and return its score on test data\n<END>", "<BEGIN>\n## `fit`", "Fit estimator.", " Parameters\n ----------\n X : array-like, shape = (n_samples, n_features)\n Data matrix", " y : structured array, s...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _count_values API. 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 _count_values API. 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 dict mapping relevance level to sample index
"Return dict mapping relevance level to sample index"
432
false
sebp/scikit-survival
_count_values
30,571
LDU_FT/DataBiosphere/toil/_waitForSSHPort
LDU_FT
[ "<BEGIN>\n## `html_page_context`", "Event handler for the html-page-context signal.\n Modifies the context directly.\n - Replaces the 'toc' value created by the HTML builder with one\n that shows all document titles and the local table of contents.\n - Sets display_toc to True so the table of con...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _waitForSSHPort API. 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 _waitForSSHPort API. 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...
Wait until the instance represented by this box is accessible via SSH. :return: the number of unsuccessful attempts to connect to the port before a the first success
"Wait until the instance represented by this box is accessible via SSH.\n\n :return: the number of unsuccessful attempts to connect to the port before a the first\n success"
1,322
true
DataBiosphere/toil
_waitForSSHPort
30,572