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/frnsys/broca/generate_candidates
LDU_FT
[ "<BEGIN>\n## `train_doc2vec`", "Train a doc2vec model on a list of files.\n<END>", "<BEGIN>\n## `_doc2vec_doc_stream`", "Generator to feed sentences to the dov2vec model.\n<END>", "<BEGIN>\n## `estimate_eps`", "Estimates possible eps values (to be used with DBSCAN)\n for a given distance matrix by look...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the generate_candidates 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 generate_candidates 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...
Generate candidates for an iteration. Use this only for k >= 2.
"Generate candidates for an iteration.\n Use this only for k >= 2."
125
false
frnsys/broca
generate_candidates
35,973
LDU_FT/zebpalmer/WeatherAlerts/lookup_samecode
LDU_FT
[ "<BEGIN>\n## `_ts_parse`", "Parse alert timestamp, return UTC datetime object to maintain Python 2 compatibility.\n<END>", "<BEGIN>\n## `_serialized`", "Provides a sanitized & serializeable dict of the alert mainly for forward & backwards compatibility\n<END>", "<BEGIN>\n## `_get_feed_cache`", "If a recen...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the lookup_samecode API. 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 lookup_samecode API. 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...
Given County, State return the SAME code for specified location. Return False if not found
"Given County, State return the SAME code for specified location. Return False if not found"
36
false
zebpalmer/WeatherAlerts
lookup_samecode
35,974
LDU_FT/python-odin/odinweb/update
LDU_FT
[ "<BEGIN>\n## `action`", "Decorator to apply an action to a resource. An action is applied to a `detail` operation.\n<END>", "<BEGIN>\n## `listing`", "Decorator to configure an operation that returns a list of resources.\n<END>", "<BEGIN>\n## `create`", "Decorator to configure an operation that creates a r...
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 ...
Decorator to configure an operation that updates a resource.
"Decorator to configure an operation that updates a resource."
139
false
python-odin/odinweb
update
35,975
LDU_FT/kencochrane/django-defender/record_failed_attempt
LDU_FT
[ "<BEGIN>\n## `get_ip_address_from_request`", "Makes the best attempt to get the client's real IP or return\n the loopback\n<END>", "<BEGIN>\n## `get_blocked_usernames`", "get a list of blocked usernames from redis\n<END>", "<BEGIN>\n## `username_from_request`", "unloads username from default POST r...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the record_failed_attempt 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 record_failed_attempt API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
record the failed login attempt, if over limit return False, if not over limit return True
"record the failed login attempt, if over limit return False,\n if not over limit return True"
24
false
kencochrane/django-defender
record_failed_attempt
35,976
LDU_FT/jssimporter/python-jss/copy_script
LDU_FT
[ "<BEGIN>\n## `get`", "GET a url, handle errors, and return an etree.", " In general, it is better to use a higher level interface for\n API requests, like the search methods on this class, or the\n JSSObjects themselves.", " Args:\n url_path: String API endpoint path to ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the copy_script API. 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 copy_script API. 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...
Copy a script to the distribution server. Args: filename: Full path to file to upload. id_: ID of Script object to associate with, or -1 for new Script (default).
"Copy a script to the distribution server.\n\n Args:\n filename: Full path to file to upload.\n id_: ID of Script object to associate with, or -1 for new\n Script (default)."
331
false
jssimporter/python-jss
copy_script
35,977
LDU_FT/jasonlaska/spherecluster/_expectation
LDU_FT
[ "<BEGIN>\n## `sample_vMF`", "Generate num_samples N-dimensional samples from von Mises Fisher\n distribution around center mu \\in R^N with concentration kappa.\n<END>", "<BEGIN>\n## `_sample_weight`", "Rejection sampling scheme for sampling distance from center on\n surface of the sphere.\n<END>", "<...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _expectation API. 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 _expectation API. 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...
Compute the log-likelihood of each datapoint being in each cluster. Parameters ---------- centers (mu) : array, [n_centers x n_features] weights (alpha) : array, [n_centers, ] (alpha) concentrations (kappa) : array, [n_centers, ] Returns ---------- posterior : array, [n_centers, n_exam...
"Compute the log-likelihood of each datapoint being in each cluster.\n\n Parameters\n ----------\n centers (mu) : array, [n_centers x n_features]\n weights (alpha) : array, [n_centers, ] (alpha)\n concentrations (kappa) : array, [n_centers, ]\n\n Returns\n ----------\n posterior : array, [n_cent...
93
false
jasonlaska/spherecluster
_expectation
35,978
LDU_FT/pavoni/pyvera/register
LDU_FT
[ "<BEGIN>\n## `init_controller`", "Initialize a controller.", " Provides a single global controller for applications that can't do this\n themselves\n<END>", "<BEGIN>\n## `data_request`", "Perform a data_request and return the result.\n<END>", "<BEGIN>\n## `get_device_by_name`", "Search the list of...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the register API. 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 register API. 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...
Register a callback. device: device to be updated by subscription callback: callback for notification of changes
"Register a callback.\n\n device: device to be updated by subscription\n callback: callback for notification of changes"
94
false
pavoni/pyvera
register
35,979
LDU_FT/vmonaco/pohmm/fit
LDU_FT
[ "<BEGIN>\n## `fit`", "Fit the classifier with labels y and observations X\n<END>", "<BEGIN>\n## `fit_df`", "Fit the classifier with labels y and DataFrames dfs\n<END>", "<BEGIN>\n## `score`", "Compute the log probability under the model.\n<END>", "<BEGIN>\n## `score_events`", "Compute the log probabil...
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...
Fit the classifier with labels y and observations X
"Fit the classifier with labels y and observations X"
33
false
vmonaco/pohmm
fit
35,980
LDU_FT/mozilla/amo-validator/get_objects
LDU_FT
[ "<BEGIN>\n## `decode`", "Decode data employing some charset detection and including unicode BOM\n stripping.\n<END>", "<BEGIN>\n## `get_context`", "Returns a tuple containing the context for a line\n<END>", "<BEGIN>\n## `_format_line`", "Formats a line from the data to be the appropriate length\n<END>"...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_objects API. 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_objects API. 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...
Returns a generator of objects that correspond to the specified subjects and predicates.
"Returns a generator of objects that correspond to the\n specified subjects and predicates."
94
false
mozilla/amo-validator
get_objects
35,981
LDU_FT/rflamary/POT/sinkhorn_knopp
LDU_FT
[ "<BEGIN>\n## `plot1D_mat`", "Plot matrix M with the source and target 1D distribution", " Creates a subplot with the source distribution a on the left and\n target distribution b on the tot. The matrix M is shown in between.", " Parameters\n ----------\n a : np.array, shape (na,)\n Sour...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the sinkhorn_knopp API. 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 sinkhorn_knopp API. 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...
Solve the entropic regularization optimal transport problem and return the OT matrix The function solves the following optimization problem: .. math:: \gamma = arg\min_\gamma <\gamma,M>_F + reg\cdot\Omega(\gamma) s.t. \gamma 1 = a \gamma^T 1= b \gamma\geq 0 whe...
"Solve the entropic regularization optimal transport problem and return the OT matrix\n\n The function solves the following optimization problem:\n\n .. math::\n \\gamma = arg\\min_\\gamma <\\gamma,M>_F + reg\\cdot\\Omega(\\gamma)\n\n s.t. \\gamma 1 = a\n\n \\gamma^T 1= b\n\n ...
711
false
rflamary/POT
sinkhorn_knopp
35,982
LDU_FT/geertj/gruvi/send_message
LDU_FT
[ "<BEGIN>\n## `from_errno`", "Create a new instance from a :mod:`pyuv.errno` error code.\n<END>", "<BEGIN>\n## `start`", "Bind to *protocol* and start calling callbacks on it.\n<END>", "<BEGIN>\n## `set_write_buffer_limits`", "Set the low and high watermark for the write buffer.\n<END>", "<BEGIN>\n## `cl...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the send_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 extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the send_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 extr...
Send a raw JSON-RPC message. The *message* argument must be a dictionary containing a valid JSON-RPC message according to the version passed into the constructor.
"Send a raw JSON-RPC message.\n\n The *message* argument must be a dictionary containing a valid JSON-RPC\n message according to the version passed into the constructor."
402
false
geertj/gruvi
send_message
35,983
LDU_FT/OLC-Bioinformatics/ConFindr/read_contig
LDU_FT
[ "<BEGIN>\n## `bbduk_trim`", "Wrapper for using bbduk to quality trim reads. Contains arguments used in OLC Assembly Pipeline, but these can\n be overwritten by using keyword parameters.\n :param forward_in: Forward reads you want to quality trim.\n :param returncmd: If set to true, function will return t...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the read_contig API. 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 read_contig API. 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...
Examines a contig to find if there are positions where more than one base is present. :param contig_name: Name of contig as a string. :param bamfile_name: Full path to bamfile. Must be sorted/indexed :param reference_fasta: Full path to fasta file that was used to generate the bamfile. :param report_fil...
"Examines a contig to find if there are positions where more than one base is present.\n :param contig_name: Name of contig as a string.\n :param bamfile_name: Full path to bamfile. Must be sorted/indexed\n :param reference_fasta: Full path to fasta file that was used to generate the bamfile.\n :param repor...
56
false
OLC-Bioinformatics/ConFindr
read_contig
35,984
LDU_FT/vmonaco/pohmm/score
LDU_FT
[ "<BEGIN>\n## `fit`", "Fit the classifier with labels y and observations X\n<END>", "<BEGIN>\n## `fit_df`", "Fit the classifier with labels y and DataFrames dfs\n<END>", "<BEGIN>\n## `score`", "Compute the log probability under the model.\n<END>", "<BEGIN>\n## `score_events`", "Compute the log probabil...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the score API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the score API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
Compute the log probability under the model.
"Compute the log probability under the model."
33
false
vmonaco/pohmm
score
35,985
LDU_FT/chimera0/accel-brain-code/compute
LDU_FT
[ "<BEGIN>\n## `draw`", "Draws samples from the `true` distribution.\r", " Returns:\r\n `np.ndarray` of samples.\n<END>", "<BEGIN>\n## `generate`", "Generate noise samples.\r", " Returns:\r\n `np.ndarray` of samples.\n<END>", "<BEGIN>\n## `generate`", "Draws samples f...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the compute API. 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 compute API. 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...
Args: x: Data point. y: Data point. Returns: Distance.
"Args:\n x: Data point.\n y: Data point.\n \n Returns:\n Distance."
550
false
chimera0/accel-brain-code
compute
35,986
LDU_FT/IntegralDefense/critsapi/find_one
LDU_FT
[ "<BEGIN>\n## `connect`", "Starts the mongodb connection. Must be called before anything else\n will work.\n<END>", "<BEGIN>\n## `find`", "Search a collection for the query provided. Just a raw interface to\n mongo to do any query you want.", " Args:\n collection: The db colle...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_one API. 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 find_one API. 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...
Search a collection for the query provided and return one result. Just a raw interface to mongo to do any query you want. Args: collection: The db collection. See main class documentation. query: A mongo find query. Returns: pymongo Cursor object with the res...
"Search a collection for the query provided and return one result. Just\n a raw interface to mongo to do any query you want.\n\n Args:\n collection: The db collection. See main class documentation.\n query: A mongo find query.\n Returns:\n pymongo Cursor object with...
67
false
IntegralDefense/critsapi
find_one
35,987
LDU_FT/cloudmesh/cloudmesh-common/set_theme
LDU_FT
[ "<BEGIN>\n## `names`", "The names defined in ~/.ssh/config\n :return: the names\n<END>", "<BEGIN>\n## `load`", "list the hosts defined in the ssh config file\n<END>", "<BEGIN>\n## `execute`", "execute the command on the named host\n :param name: the name of the host in config\n :param...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_theme API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_theme API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
defines if the console messages are printed in color :param color: if True its printed in color :return:
"defines if the console messages are printed in color\n :param color: if True its printed in color\n :return:"
203
false
cloudmesh/cloudmesh-common
set_theme
35,988
LDU_FT/political-memory/django-representatives-votes/find_dossier
LDU_FT
[ "<BEGIN>\n## `chambers`", "Return distinct chambers. You probably want to prefetch\n documents__chamber before calling that.\n<END>", "<BEGIN>\n## `parse_vote_data`", "Parse data from parltrack votes db dumps (1 proposal)\n<END>", "<BEGIN>\n## `parse_proposal_data`", "Get or Create a proposal model...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_dossier API. 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 find_dossier API. 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...
Find dossier with reference matching either 'ref_an' or 'ref_sen', create it if not found. Ensure its reference is 'ref_an' if both fields are present.
"Find dossier with reference matching either 'ref_an' or 'ref_sen',\n create it if not found. Ensure its reference is 'ref_an' if both fields\n are present."
10
false
political-memory/django-representatives-votes
find_dossier
35,989
LDU_FT/laike9m/pdir2/get_attr_from_dict
LDU_FT
[ "<BEGIN>\n## `search`", "Searches for names that match some pattern.", " Args:\n term: String used to match names. A name is returned if it matches\n the whole search term.\n case_sensitive: Boolean to match case or not, default is False\n (case insensitive...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_attr_from_dict API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_attr_from_dict API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
Ensures we get descriptor object instead of its return value.
"Ensures we get descriptor object instead of its return value."
24
false
laike9m/pdir2
get_attr_from_dict
35,990
LDU_FT/buildinspace/peru/delete_if_error
LDU_FT
[ "<BEGIN>\n## `_find_plugin_dir`", "Find the directory containing the plugin definition for the given type.\n Do this by searching all the paths where plugins can live for a dir that\n matches the type name.\n<END>", "<BEGIN>\n## `_get_plugin_install_dirs`", "Return all the places on the filesystem where...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the delete_if_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 e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the delete_if_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 e...
If any exception is raised inside the context, delete the file at the given path, and allow the exception to continue.
"If any exception is raised inside the context, delete the file at the\n given path, and allow the exception to continue."
75
false
buildinspace/peru
delete_if_error
35,991
LDU_FT/pytorch/ignite/create_supervised_trainer
LDU_FT
[ "<BEGIN>\n## `add_event_handler`", "Add an event handler to be executed when the specified event is fired.", " Args:\n event_name: An event to attach the handler to. Valid events are from :class:`~ignite.engine.Events`\n or any `event_name` added by :meth:`~ignite.engine.Engine....
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_supervised_trainer 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 create_supervised_trainer API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi...
Factory function for creating a trainer for supervised models. Args: model (`torch.nn.Module`): the model to train. optimizer (`torch.optim.Optimizer`): the optimizer to use. loss_fn (torch.nn loss function): the loss function to use. device (str, optional): device type specificatio...
"Factory function for creating a trainer for supervised models.\n\n Args:\n model (`torch.nn.Module`): the model to train.\n optimizer (`torch.optim.Optimizer`): the optimizer to use.\n loss_fn (torch.nn loss function): the loss function to use.\n device (str, optional): device type speci...
110
false
pytorch/ignite
create_supervised_trainer
35,992
LDU_FT/mlperf/training/verify_and_extract_time
LDU_FT
[ "<BEGIN>\n## `sorted_product_set`", "Compute the product set of array_a and array_b and sort it.\n<END>", "<BEGIN>\n## `set_low_quality_matches_`", "Produce additional matches for predictions that have only low-quality matches.\n Specifically, for each ground-truth find the set of predictions that have...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the verify_and_extract_time API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the verify_and_extract_time API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion...
Verifies and result and returns timing. Uses submodule mlp_compliance (https://github.com/bitfort/mlp_compliance) Args: log_file: Absolute path to result file. division: open, closed result_name: name of the benchmark, ncf, ssd, etc Returns: Time for the result or `INFINITE_TIME` ...
"Verifies and result and returns timing.\n\n Uses submodule mlp_compliance (https://github.com/bitfort/mlp_compliance)\n\n Args:\n log_file: Absolute path to result file.\n division: open, closed\n result_name: name of the benchmark, ncf, ssd, etc\n\n Returns:\n Time for the result or `INFI...
1,285
true
mlperf/training
verify_and_extract_time
35,993
LDU_FT/inveniosoftware/invenio-communities/format_request_email_body
LDU_FT
[ "<BEGIN>\n## `format_item`", "Render a template to a string with the provided item in context.\n<END>", "<BEGIN>\n## `index`", "Index page with uploader and list of existing depositions.\n<END>", "<BEGIN>\n## `generic_item`", "Index page with uploader and list of existing depositions.\n<END>", "<BEGIN>\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the format_request_email_body 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 format_request_email_body API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi...
Format the email message body for inclusion request notification. :param increq: Inclusion request object for which the request is made. :type increq: `invenio_communities.models.InclusionRequest` :param ctx: Optional extra context parameters passed to formatter. :type ctx: dict. :returns: Email me...
"Format the email message body for inclusion request notification.\n\n :param increq: Inclusion request object for which the request is made.\n :type increq: `invenio_communities.models.InclusionRequest`\n :param ctx: Optional extra context parameters passed to formatter.\n :type ctx: dict.\n :returns: E...
89
false
inveniosoftware/invenio-communities
format_request_email_body
35,994
LDU_FT/pycontribs/jira/deactivate_user
LDU_FT
[ "<BEGIN>\n## `translate_resource_args`", "Decorator that converts Issue and Project resources to their keys when used as arguments.\n<END>", "<BEGIN>\n## `_check_update_`", "Check if the current version of the library is outdated.\n<END>", "<BEGIN>\n## `_fetch_pages`", "Fetch pages.", " :param it...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the deactivate_user API. 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 deactivate_user API. 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...
Disable/deactivate the user. :param username: User to be deactivated. :type username: str :rtype: Union[str, int]
"Disable/deactivate the user.\n\n :param username: User to be deactivated.\n :type username: str\n\n :rtype: Union[str, int]"
468
false
pycontribs/jira
deactivate_user
35,995
LDU_FT/jay-johnson/spylunking/format
LDU_FT
[ "<BEGIN>\n## `perform_exit`", "perform_exit", " Handling at-the-exit events\n ---------------------------", " This will cleanup each worker process which\n could be in the middle of a request/sleep/block\n action. This has been tested on python 3 with\n Celery and single processes.\n<END>", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the format API. 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 format API. 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 ...
format :param record: message object to format
"format\n\n :param record: message object to format"
121
false
jay-johnson/spylunking
format
35,996
LDU_FT/retext-project/retext/tabActiveMarkupChanged
LDU_FT
[ "<BEGIN>\n## `updateActiveMarkupClass`", "Update the active markup class based on the default class and\n\t\tthe current filename. If the active markup class changes, the\n\t\thighlighter is rerun on the input text, the markup object of\n\t\tthis tab is replaced with one of the new class and the\n\t\tactiveMarkup...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the tabActiveMarkupChanged 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 tabActiveMarkupChanged API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
Perform all UI state changes that need to be done when the active markup class of the current tab has changed.
"Perform all UI state changes that need to be done when the\n\t\tactive markup class of the current tab has changed."
21
false
retext-project/retext
tabActiveMarkupChanged
35,997
LDU_FT/bioidiap/gridtk/submit
LDU_FT
[ "<BEGIN>\n## `submit`", "Submits a job that will be executed on the local machine during a call to \"run\".\n All kwargs will simply be ignored.\n<END>", "<BEGIN>\n## `stop_jobs`", "Resets the status of the job to 'submitted' when they are labeled as 'executing'.\n<END>", "<BEGIN>\n## `stop_job`", "Res...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the submit API. 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 submit API. 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 ...
An easy submission option for grid-enabled scripts. Create the log directories using random hash codes. Use the arguments as parsed by the main script.
"An easy submission option for grid-enabled scripts. Create the log\n directories using random hash codes. Use the arguments as parsed by the main\n script."
163
false
bioidiap/gridtk
submit
35,998
LDU_FT/fabiobatalha/crossrefapi/doi_exists
LDU_FT
[ "<BEGIN>\n## `version`", "This attribute retrieve the API version.", " >>> Works().version\n '1.0.0'\n<END>", "<BEGIN>\n## `count`", "This method retrieve the total of records resulting from a given query.", " This attribute can be used compounded with query, filter,\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the doi_exists API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the doi_exists API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
This method retrieve a boolean according to the existence of a crossref DOI number. It returns False if the API results a 404 status code. args: Crossref DOI id (String) return: Boolean Example 1: >>> from crossref.restful import Works >>> works = Works() ...
"This method retrieve a boolean according to the existence of a crossref\n DOI number. It returns False if the API results a 404 status code.\n\n args: Crossref DOI id (String)\n\n return: Boolean\n\n Example 1:\n >>> from crossref.restful import Works\n >>> works = Wor...
108
false
fabiobatalha/crossrefapi
doi_exists
35,999
LDU_FT/proycon/clam/access
LDU_FT
[ "<BEGIN>\n## `convertforinput`", "Convert from target format into one of the source formats. Relevant if converters are used in InputTemplates. Metadata already is metadata for the to-be-generated file. 'filepath' is both the source and the target file, the source file will be erased and overwritten with the conv...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the access API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the access API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
This method checks if the given user has access to see/set this parameter, based on the denyusers and/or allowusers option.
"This method checks if the given user has access to see/set this parameter, based on the denyusers and/or allowusers option."
194
false
proycon/clam
access
36,000
LDU_FT/cltl/KafNafParserPy/remove_coreference_layer
LDU_FT
[ "<BEGIN>\n## `set_id`", "Set the property identifier\n @type pid: string\n @param pid: property identifier\n<END>", "<BEGIN>\n## `add_property`", "Adds a new property to the property layer\n @type pid: string\n @param pid: property identifier\n @type label: string\n @...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the remove_coreference_layer API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the remove_coreference_layer API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio...
Removes the constituency layer (if exists) of the object (in memory)
"Removes the constituency layer (if exists) of the object (in memory)"
270
false
cltl/KafNafParserPy
remove_coreference_layer
36,001
LDU_FT/MultipedRobotics/pyxl320/sweep
LDU_FT
[ "<BEGIN>\n## `makeServoIDPacket`", "Given the current ID, returns a packet to set the servo to a new ID\n<END>", "<BEGIN>\n## `packetToDict`", "Given a packet, this turns it into a dictionary ... is this useful?", "\tin: packet, array of numbers\n\tout: dictionary (key, value)\n<END>", "<BEGIN>\n## `sweep...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the sweep API. 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 sweep API. 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...
Sends a ping packet to ID's from 0 to maximum and prints out any returned messages. Actually send a broadcast and will retry (resend) the ping 3 times ...
"Sends a ping packet to ID's from 0 to maximum and prints out any returned\n\tmessages.\n\n\tActually send a broadcast and will retry (resend) the ping 3 times ..."
71
false
MultipedRobotics/pyxl320
sweep
36,002
LDU_FT/devopshq/artifactory/_create_json
LDU_FT
[ "<BEGIN>\n## `_create_and_update`", "Create or update request, re-read object from Artifactory\n :return: None\n<END>", "<BEGIN>\n## `read`", "Read object from artifactory. Fill object if exist\n :return:\n True if object exist,\n False else\n<END>", "<BEGIN>\n## `_create_json`",...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _create_json API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _create_json API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
JSON Documentation: https://www.jfrog.com/confluence/display/RTF/Security+Configuration+JSON
"JSON Documentation: https://www.jfrog.com/confluence/display/RTF/Security+Configuration+JSON"
104
false
devopshq/artifactory
_create_json
36,003
LDU_FT/cenkalti/github-flask/authorized_handler
LDU_FT
[ "<BEGIN>\n## `authorize`", "Redirect to GitHub and request access to a user's data.", " :param scope: List of `Scopes`_ for which to request access, formatted\n as a string or comma delimited list of scopes as a\n string. Defaults to ``None``, resulting in granti...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the authorized_handler 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 authorized_handler 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...
Decorator for the route that is used as the callback for authorizing with GitHub. This callback URL can be set in the settings for the app or passed in during authorization.
"Decorator for the route that is used as the callback for authorizing\n with GitHub. This callback URL can be set in the settings for the app\n or passed in during authorization."
24
false
cenkalti/github-flask
authorized_handler
36,004
LDU_FT/nicolargo/glances/get_docker_network
LDU_FT
[ "<BEGIN>\n## `msg_curse`", "Return the string to display in the curse interface.\n<END>", "<BEGIN>\n## `load`", "Load the web list from the configuration file.\n<END>", "<BEGIN>\n## `set_server`", "Set the key to the value for the pos (position in the list).\n<END>", "<BEGIN>\n## `update`", "Update se...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_docker_network API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_docker_network 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...
Return the container network usage using the Docker API (v1.0 or higher). Input: id is the full container id Output: a dict {'time_since_update': 3000, 'rx': 10, 'tx': 65}. with: time_since_update: number of seconds elapsed between the latest grab rx: Number of byte rece...
"Return the container network usage using the Docker API (v1.0 or higher).\n\n Input: id is the full container id\n Output: a dict {'time_since_update': 3000, 'rx': 10, 'tx': 65}.\n with:\n time_since_update: number of seconds elapsed between the latest grab\n rx: Number of by...
678
false
nicolargo/glances
get_docker_network
36,005
LDU_FT/lemieuxl/pyGenClean/main
LDU_FT
[ "<BEGIN>\n## `main`", "The main function of the module.", " :param argString: the options.", " :type argString: list", " These are the steps:", " 1. Prints the options.\n 2. If there are ``summarized_intensities`` provided, reads the files\n (:py:func:`read_summarized_intensities`) an...
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...
The main function. These are the steps performed for the data clean up: 1. Prints the version number. 2. Reads the configuration file (:py:func:`read_config_file`). 3. Creates a new directory with ``data_clean_up`` as prefix and the date and time as suffix. 4. Check the input file type (``b...
"The main function.\n\n These are the steps performed for the data clean up:\n\n 1. Prints the version number.\n 2. Reads the configuration file (:py:func:`read_config_file`).\n 3. Creates a new directory with ``data_clean_up`` as prefix and the date\n and time as suffix.\n 4. Check the input file ...
1,109
true
lemieuxl/pyGenClean
main
36,006
LDU_FT/facelessuser/pyspelling/yaml_load
LDU_FT
[ "<BEGIN>\n## `is_break_tag`", "Check if tag is an element we should break on.\n<END>", "<BEGIN>\n## `to_text`", "Extract text from tags.", " Skip any selectors specified and include attributes if specified.\n Ignored tags will not have their attributes scanned either.\n<END>", "<BEGIN>\n## `...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the yaml_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 extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the yaml_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 extract...
Wrap PyYaml's loader so we can extend it to suit our needs. Load all strings as Unicode: http://stackoverflow.com/a/2967461/3609487.
"Wrap PyYaml's loader so we can extend it to suit our needs.\n\n Load all strings as Unicode: http://stackoverflow.com/a/2967461/3609487."
33
false
facelessuser/pyspelling
yaml_load
36,007
LDU_FT/ladybug-tools/uwg/solarcalcs
LDU_FT
[ "<BEGIN>\n## `solarcalcs`", "Solar Calculation\n Mutates RSM, BEM, and UCM objects based on following parameters:\n UCM # Urban Canopy - Building Energy Model object\n BEM # Building Energy Model object\n simTime # Simulation time bbject\n RSM...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the solarcalcs API. 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 solarcalcs API. 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...
Solar Calculation Mutates RSM, BEM, and UCM objects based on following parameters: UCM # Urban Canopy - Building Energy Model object BEM # Building Energy Model object simTime # Simulation time bbject RSM # Rural Site & Vertical Diffusi...
"Solar Calculation\n Mutates RSM, BEM, and UCM objects based on following parameters:\n UCM # Urban Canopy - Building Energy Model object\n BEM # Building Energy Model object\n simTime # Simulation time bbject\n RSM # Rural Site & Vertical D...
53
false
ladybug-tools/uwg
solarcalcs
36,008
LDU_FT/joeyespo/grip/read
LDU_FT
[ "<BEGIN>\n## `_get_style_urls`", "Gets the specified resource and parses all style URLs and their\n assets in the form of the specified patterns.\n<END>", "<BEGIN>\n## `_cache_contents`", "Fetches the given URLs and caches their contents\n and their assets in the given directory.\n<END>", "<BE...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the read API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the read API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
Returns the UTF-8 Readme content. Raises ReadmeNotFoundError if subpath is specified since subpaths are not supported for text readers.
"Returns the UTF-8 Readme content.\n\n Raises ReadmeNotFoundError if subpath is specified since\n subpaths are not supported for text readers."
77
false
joeyespo/grip
read
36,009
LDU_FT/sassoo/goldman/auth_token
LDU_FT
[ "<BEGIN>\n## `_gen_s3_path`", "Return the part of the S3 path based on inputs", " The path will be passed to the s3_upload method &\n will ultimately be merged with the standard AWS S3\n URL.", " An example model type of 'users' with a resource ID\n of 99 & an API endpoint e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the auth_token API. 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 auth_token API. 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...
Callback method for OAuth 2.0 bearer token middleware
"Callback method for OAuth 2.0 bearer token middleware"
446
false
sassoo/goldman
auth_token
36,010
LDU_FT/berkeley-cocosci/Wallace/init_db
LDU_FT
[ "<BEGIN>\n## `submission_successful`", "Run when a participant submits successfully.\n<END>", "<BEGIN>\n## `summary`", "Summarize the participants' status codes.\n<END>", "<BEGIN>\n## `experiment_property`", "Get a property of the experiment by name.\n<END>", "<BEGIN>\n## `ad_address`", "Get the addre...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the init_db API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the init_db API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
Initialize the database, optionally dropping existing tables.
"Initialize the database, optionally dropping existing tables."
118
false
berkeley-cocosci/Wallace
init_db
36,011
LDU_FT/persephone-tools/persephone/preprocess_french
LDU_FT
[ "<BEGIN>\n## `handle_unhandled_exception`", "Handler for unhandled exceptions that will write to the logs\n<END>", "<BEGIN>\n## `write_transcriptions`", "Write the utterance transcriptions to files in the tgt_dir. Is lazy and\n checks if the file already exists.", " Args:\n utterances: A list o...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the preprocess_french API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the preprocess_french API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Takes a list of sentences in french and preprocesses them.
"Takes a list of sentences in french and preprocesses them."
219
false
persephone-tools/persephone
preprocess_french
36,012
LDU_FT/edx/event-tracking/instantiate_objects
LDU_FT
[ "<BEGIN>\n## `send`", "Insert the event in to the Mongo collection\n<END>", "<BEGIN>\n## `create_backends_from_settings`", "Expects the Django setting \"EVENT_TRACKING_BACKENDS\" to be defined and point\n to a dictionary of backend engine configurations.", " Example::", " EVENT_TR...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the instantiate_objects 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 instantiate_objects 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...
Recursively traverse a structure to identify dictionaries that represent objects that need to be instantiated Traverse all values of all dictionaries and all elements of all lists to identify dictionaries that contain the special "ENGINE" key which indicates that a class of that type should be instanti...
"Recursively traverse a structure to identify dictionaries that represent objects that need to be instantiated\n\n Traverse all values of all dictionaries and all elements of all lists to identify dictionaries that contain the\n special \"ENGINE\" key which indicates that a class of that type should be in...
47
false
edx/event-tracking
instantiate_objects
36,013
LDU_FT/Lagg/steamodd/equipable_classes
LDU_FT
[ "<BEGIN>\n## `get`", "Returns context data for a given app, can be an ID or a case insensitive name\n<END>", "<BEGIN>\n## `hash_name`", "The URL-friendly identifier for the item. Generates its own approximation if one isn't available\n<END>", "<BEGIN>\n## `quality`", "Can't really trust presence of a sche...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the equipable_classes API. 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 equipable_classes API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Returns a list of classes that _can_ use the item.
"Returns a list of classes that _can_ use the item."
49
false
Lagg/steamodd
equipable_classes
36,014
LDU_FT/littlemo/moear-spider-zhihudaily/closed
LDU_FT
[ "<BEGIN>\n## `register`", "调用方可根据主键字段进行爬虫的创建或更新操作", " :return: 返回符合接口定义的字典数据\n :rtype: dict\n<END>", "<BEGIN>\n## `crawl`", "执行爬取操作,并阻塞直到爬取完成,返回结果数据。\n 此处考虑到 Scrapy 本身的并发特性,故通过临时文件方式做数据传递,\n 将临时路径传递到爬虫业务中,并在爬取结束后对文件进行读取、 JSON 反序列化,返回", " :return: 返回符合接口定义的字典对象\n :...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the closed API. 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 closed API. 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 ...
异步爬取全部结束后,执行此关闭方法,对 ``item_list`` 中的数据进行 **JSON** 序列化,并输出到指定文件中,传递给 :meth:`.ZhihuDaily.crawl` :param obj reason: 爬虫关闭原因
"异步爬取全部结束后,执行此关闭方法,对 ``item_list`` 中的数据进行 **JSON**\n 序列化,并输出到指定文件中,传递给 :meth:`.ZhihuDaily.crawl`\n\n :param obj reason: 爬虫关闭原因"
19
false
littlemo/moear-spider-zhihudaily
closed
36,015
LDU_FT/maas/python-libmaas/datum_to_value
LDU_FT
[ "<BEGIN>\n## `calculate_dict_diff`", "Return the parameters based on the difference.", " If a parameter exists in `old_params` but not in `new_params` then\n parameter will be set to an empty string.\n<END>", "<BEGIN>\n## `datum_to_value`", "Convert a given MAAS-side datum to a Python-side value.", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the datum_to_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 ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the datum_to_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 ex...
Convert a given MAAS-side datum to a Python-side value. :param instance: The `Object` instance on which this field is currently operating. This method should treat it as read-only, for example to perform validation with regards to other fields. :param datum: The MAAS-side datum ...
"Convert a given MAAS-side datum to a Python-side value.\n\n :param instance: The `Object` instance on which this field is\n currently operating. This method should treat it as read-only, for\n example to perform validation with regards to other fields.\n :param datum: The MAAS-side ...
452
false
maas/python-libmaas
datum_to_value
36,016
LDU_FT/thespacedoctor/tastic/add_tag
LDU_FT
[ "<BEGIN>\n## `projects`", "*All child projects of this taskpaper object*", " **Usage:**", " Given a taskpaper document object (`doc`), to get a list of the project objects found within the document use:", " .. code-block:: python", " docProjects = doc.projects",...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_tag API. 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 add_tag API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
*Add a tag this taskpaper object* **Key Arguments:** - ``tag`` -- the tag to add to the object **Usage:** .. code-block:: python aTask.add_tag("@due")
"*Add a tag this taskpaper object*\n\n **Key Arguments:**\n - ``tag`` -- the tag to add to the object\n\n **Usage:**\n\n .. code-block:: python \n\n aTask.add_tag(\"@due\")"
285
false
thespacedoctor/tastic
add_tag
36,017
LDU_FT/tschaume/ccsgp_get_started/gp_sims_total_overlay
LDU_FT
[ "<BEGIN>\n## `gp_xfac`", "example using QM12 enhancement factors", " - uses `gpcalls` kwarg to reset xtics\n - numpy.loadtxt needs reshaping for input files w/ only one datapoint\n - according poster presentations see QM12_ & NSD_ review", " .. _QM12: http://indico.cern.ch/getFile.py/access?contribId=268&...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the gp_sims_total_overlay 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 gp_sims_total_overlay API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
single plot comparing total cocktails at all energies :param version: plot version / input subdir name :type version: str
"single plot comparing total cocktails at all energies\n\n :param version: plot version / input subdir name\n :type version: str"
48
false
tschaume/ccsgp_get_started
gp_sims_total_overlay
36,018
LDU_FT/cimatosa/progression/_calc
LDU_FT
[ "<BEGIN>\n## `_get_callargs`", "Retrieve all arguments that `self.func` needs and\n return a dictionary with call arguments.\n<END>", "<BEGIN>\n## `get_terminal_size`", "Checks various methods to determine the terminal size", " Methods:\n - shutil.get_terminal_size (only Python3)\n - fcntl.i...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _calc API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _calc API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
do the pre calculations in order to get TET, speed, TTG :param count: count :param last_count: count at the last call, allows to treat the case of no progress between sequential calls :param start_time: the time when start was triggered ...
"do the pre calculations in order to get TET, speed, TTG\n \n :param count: count \n :param last_count: count at the last call, allows to treat the case of no progress\n between sequential calls\n :param start_time: the time when start was triggered...
48
false
cimatosa/progression
_calc
36,019
LDU_FT/sci-bots/mpm/build
LDU_FT
[ "<BEGIN>\n## `update_plugin_dialog`", "Launch dialog to track status of update of specified plugin package.", " .. versionadded:: 0.19", " .. versionchanged:: 0.20\n Add support for updating multiple packages (update all **installed**\n plugins by default).", " Add :data:`update_a...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the build API. 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 build API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
Create a release of a MicroDrop plugin source directory in the target directory path. Skip the following patterns: - ``bld.bat`` - ``.conda-recipe/*`` - ``.git/*`` .. versionchanged:: 0.24.1 Remove temporary archive after extraction. Change directory into sourc...
"Create a release of a MicroDrop plugin source directory in the target\r\n directory path.\r\n\r\n Skip the following patterns:\r\n\r\n - ``bld.bat``\r\n - ``.conda-recipe/*``\r\n - ``.git/*``\r\n\r\n .. versionchanged:: 0.24.1\r\n Remove temporary archive after extraction.\r\n\r\n Ch...
181
false
sci-bots/mpm
build
36,020
LDU_FT/CenturyLinkCloud/clc-python-sdk/GetNetworks
LDU_FT
[ "<BEGIN>\n## `SetCredentials`", "Establish API username and password associated with APIv2 commands.\n<END>", "<BEGIN>\n## `get_session`", "Start a session with the given parameters", "\tUse instead of SetCredentials if you need a session object to avoid the use of global credentials.", "\tReturns a sessi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the GetNetworks API. 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 GetNetworks API. 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...
Gets the list of Networks mapped to the account in the specified datacenter. https://t3n.zendesk.com/entries/21024721-Get-Networks :param alias: short code for a particular account. If none will use account's default alias :param location: datacenter where group resides. If none will use account's primary dat...
"Gets the list of Networks mapped to the account in the specified datacenter.\n\n\t\thttps://t3n.zendesk.com/entries/21024721-Get-Networks\n\n\t\t:param alias: short code for a particular account. If none will use account's default alias\n\t\t:param location: datacenter where group resides. If none will use account's...
402
false
CenturyLinkCloud/clc-python-sdk
GetNetworks
36,021
LDU_FT/dnanhkhoa/logone/__find_caller
LDU_FT
[ "<BEGIN>\n## `get_logger`", "Return a logger with the specified name, creating it if necessary.\n<END>", "<BEGIN>\n## `set_level`", "Set the logging level of this logger.", " :param level: must be an int or a str.\n<END>", "<BEGIN>\n## `redirect_stdout`", "Redirect sys.stdout to file-like object....
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the __find_caller API. 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 __find_caller API. 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...
Find the stack frame of the caller so that we can note the source file name, line number and function name.
"Find the stack frame of the caller so that we can note the source file name,\n line number and function name."
19
false
dnanhkhoa/logone
__find_caller
36,022
LDU_FT/DistrictDataLabs/yellowbrick/manifold_embedding
LDU_FT
[ "<BEGIN>\n## `download`", "Download the dataset from the hosted Yellowbrick data store and save\n it to the location specified by ``get_data_home``. The downloader\n verifies the download completed successfully and safely by comparing\n the expected signature with the SHA 256 signature of the...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the manifold_embedding 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 manifold_embedding 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...
Quick method for Manifold visualizer. The Manifold visualizer provides high dimensional visualization for feature analysis by embedding data into 2 dimensions using the sklearn.manifold package for manifold learning. In brief, manifold learning algorithms are unsuperivsed approaches to non-linear dimen...
"Quick method for Manifold visualizer.\n\n The Manifold visualizer provides high dimensional visualization for feature\n analysis by embedding data into 2 dimensions using the sklearn.manifold\n package for manifold learning. In brief, manifold learning algorithms are\n unsuperivsed approaches to non-linear...
1,283
true
DistrictDataLabs/yellowbrick
manifold_embedding
36,023
LDU_FT/KKBOX/OpenAPI-Python/fetch_shared_playlist
LDU_FT
[ "<BEGIN>\n## `fetch_track`", "Fetches a song track by given ID.", " :param track_id: the track ID.\n :type track_id: str\n :return: API response.\n :rtype: dict", " See `https://docs-en.kkbox.codes/v1.1/reference#tracks-track_id`.\n<END>", "<BEGIN>\n## `fetch_album`", "F...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the fetch_shared_playlist 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 fetch_shared_playlist API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Fetches a shared playlist by given ID. :param playlist_id: the playlist ID. :type playlist_id: str :param terr: the current territory. :return: API response. :rtype: dictcd See `https://docs-en.kkbox.codes/v1.1/reference#sharedplaylists-playlist_id`.
"Fetches a shared playlist by given ID.\n\n :param playlist_id: the playlist ID.\n :type playlist_id: str\n :param terr: the current territory.\n :return: API response.\n :rtype: dictcd\n\n See `https://docs-en.kkbox.codes/v1.1/reference#sharedplaylists-playlist_id`."
43
false
KKBOX/OpenAPI-Python
fetch_shared_playlist
36,024
LDU_FT/miso-belica/sumy/_f_lcs
LDU_FT
[ "<BEGIN>\n## `_compute_tf`", "Computes the normalized term frequency as explained in http://www.tfidf.com/\n<END>", "<BEGIN>\n## `f_score`", "Computation of F-Score measure. It is computed as\n F(E) = ( (W^2 + 1) * P(E) * R(E) ) / ( W^2 * P(E) + R(E) ), where:", " - P(E) is precision metrics of extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _f_lcs API. 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 _f_lcs API. 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 ...
Computes the LCS-based F-measure score Source: http://research.microsoft.com/en-us/um/people/cyl/download/papers/ rouge-working-note-v1.3.1.pdf :param llcs: Length of LCS :param m: number of words in reference summary :param n: number of words in candidate summary :returns float: LCS-based F-me...
"Computes the LCS-based F-measure score\n Source: http://research.microsoft.com/en-us/um/people/cyl/download/papers/\n rouge-working-note-v1.3.1.pdf\n\n :param llcs: Length of LCS\n :param m: number of words in reference summary\n :param n: number of words in candidate summary\n :returns float: LCS-ba...
66
false
miso-belica/sumy
_f_lcs
36,025
LDU_FT/tgbugs/ontquery/add_annotation
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 add_annotation API. 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 add_annotation API. 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...
Adding an annotation value to a prexisting entity An annotation exists as 3 different parts: 1. entity with type term, cde, fde, or pde 2. entity with type annotation 3. string value of the annotation Example: annotation = { 'term_ilx_id'...
"Adding an annotation value to a prexisting entity\n\n An annotation exists as 3 different parts:\n 1. entity with type term, cde, fde, or pde\n 2. entity with type annotation\n 3. string value of the annotation\n\n Example:\n annotation = {\n 'te...
44
false
tgbugs/ontquery
add_annotation
36,026
LDU_FT/jilljenn/tryalgo/maximum_border_length
LDU_FT
[ "<BEGIN>\n## `three_partition`", "partition a set of integers in 3 parts of same total value", " :param x: table of non negative values\n :returns: triplet of the integers encoding the sets, or None otherwise\n :complexity: :math:`O(2^{2n})`\n<END>", "<BEGIN>\n## `freivalds`", "Tests matrix product...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the maximum_border_length 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 maximum_border_length API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Maximum string borders by Knuth-Morris-Pratt :param w: string :returns: table f such that f[i] is the longest border length of w[:i + 1] :complexity: linear
"Maximum string borders by Knuth-Morris-Pratt\n\n :param w: string\n :returns: table f such that f[i] is the longest border length of w[:i + 1]\n :complexity: linear"
423
false
jilljenn/tryalgo
maximum_border_length
36,027
LDU_FT/pytroll/satpy/_get_header
LDU_FT
[ "<BEGIN>\n## `_get_coarse_dataset`", "Get the coarse dataset refered to by `key` from the XML data.\n<END>", "<BEGIN>\n## `get_dataset`", "Get output data and metadata of specified dataset.\n<END>", "<BEGIN>\n## `find_coefficient_index`", "Return index in to coefficient arrays for this band's wavelength."...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_header API. 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_header API. 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...
Read the header info, and fill the metadata dictionary
"Read the header info, and fill the metadata dictionary"
924
false
pytroll/satpy
_get_header
36,028
LDU_FT/glormph/msstitch/get_proteininfo_fields
LDU_FT
[ "<BEGIN>\n## `parse_input`", "Build peptide table has no input file (though it has a lookup),\n which is why we set it to outfile name so the infile fetching\n and outfile creating wont error.\n<END>", "<BEGIN>\n## `set_feature_generator`", "Generates proteins with quant from the lookup table\n<...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_proteininfo_fields API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_proteininfo_fields API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
Returns header fields for protein (group) information. Some fields are shared between pools, others are specific for a pool
"Returns header fields for protein (group) information.\n Some fields are shared between pools, others are specific\n for a pool"
233
false
glormph/msstitch
get_proteininfo_fields
36,029
LDU_FT/crdoconnor/strictyaml/as_yaml
LDU_FT
[ "<BEGIN>\n## `set_up`", "Set up your applications and the test environment.\n<END>", "<BEGIN>\n## `fork`", "Return a chunk referring to the same location in a duplicated document.", " Used when modifying a YAML chunk so that the modification can be validated\n before changing it.\n<END>", "<...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the as_yaml API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the as_yaml API. 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...
Render the YAML node and subnodes as string.
"Render the YAML node and subnodes as string."
54
false
crdoconnor/strictyaml
as_yaml
36,030
LDU_FT/peterwittek/ncpol2sdpa/flatten
LDU_FT
[ "<BEGIN>\n## `read_sdpa_out`", "Helper function to parse the output file of SDPA.", " :param filename: The name of the SDPA output file.\n :type filename: str.\n :param solutionmatrix: Optional parameter for retrieving the solution.\n :type solutionmatrix: bool.\n :param status: Optional paramete...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the flatten API. 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 flatten API. 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...
Flatten a list of lists to a list. :param lol: A list of lists in arbitrary depth. :type lol: list of list. :returns: flat list of elements.
"Flatten a list of lists to a list.\n\n :param lol: A list of lists in arbitrary depth.\n :type lol: list of list.\n\n :returns: flat list of elements."
217
false
peterwittek/ncpol2sdpa
flatten
36,031
LDU_FT/codeinthehole/django-cacheback/get
LDU_FT
[ "<BEGIN>\n## `get`", "Return the data for this function (using the cache if possible).", " This method is not intended to be overidden\n<END>", "<BEGIN>\n## `invalidate`", "Mark a cached item invalid and trigger an asynchronous\n job to refresh the cache\n<END>", "<BEGIN>\n## `raw_get`", "...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the 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...
Return the data for this function (using the cache if possible). This method is not intended to be overidden
"Return the data for this function (using the cache if possible).\n\n This method is not intended to be overidden"
32
false
codeinthehole/django-cacheback
get
36,032
LDU_FT/openstack/python-scciclient/get_virtual_fd_set_params_cmd
LDU_FT
[ "<BEGIN>\n## `scci_cmd`", "execute SCCI command", " This function calls SCCI server modules\n :param host: hostname or IP of iRMC\n :param userid: userid for iRMC with administrator privileges\n :param password: password for userid\n :param cmd: SCCI command\n :param port: port number of iRMC\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_virtual_fd_set_params_cmd API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_virtual_fd_set_params_cmd API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conc...
get Virtual FD Media Set Parameters Command This function returns Virtual FD Media Set Parameters Command :param remote_image_server: remote image server name or IP :param remote_image_user_domain: domain name of remote image server :param remote_image_share_type: share type of ShareType :param rem...
"get Virtual FD Media Set Parameters Command\n\n This function returns Virtual FD Media Set Parameters Command\n :param remote_image_server: remote image server name or IP\n :param remote_image_user_domain: domain name of remote image server\n :param remote_image_share_type: share type of ShareType\n :pa...
194
false
openstack/python-scciclient
get_virtual_fd_set_params_cmd
36,033
LDU_FT/Faylixe/pygame_vkeyboard/draw_key
LDU_FT
[ "<BEGIN>\n## `synchronizeLayout`", "Synchronizes given layouts by normalizing height by using\n max height of given layouts to avoid transistion dirty effects.", " :param primary: Primary layout used.\n :param secondary: Secondary layout used.\n :param surface_size: Target surface size on which layo...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the draw_key API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the draw_key API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
Default drawing method for key. Draw the key accordingly to it type. :param surface: Surface background should be drawn in. :param key: Target key to be drawn.
"Default drawing method for key. \n\n Draw the key accordingly to it type.\n\n :param surface: Surface background should be drawn in.\n :param key: Target key to be drawn."
54
false
Faylixe/pygame_vkeyboard
draw_key
36,034
LDU_FT/ppb/pursuedpybear/current_frame
LDU_FT
[ "<BEGIN>\n## `on_start_scene`", "Start a new scene. The current scene pauses.\n<END>", "<BEGIN>\n## `on_stop_scene`", "Stop a running scene. If there's a scene on the stack, it resumes.\n<END>", "<BEGIN>\n## `on_replace_scene`", "Replace the running scene with a new one.\n<END>", "<BEGIN>\n## `register`...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the current_frame API. 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 current_frame API. 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...
Compute the number of the current frame (0-indexed)
"Compute the number of the current frame (0-indexed)"
53
false
ppb/pursuedpybear
current_frame
36,035
LDU_FT/ehuggett/send-cli/api_download
LDU_FT
[ "<BEGIN>\n## `api_params`", "Change the download limit for a file hosted on a Send Server\n<END>", "<BEGIN>\n## `api_download`", "Given a Send url, download and return the encrypted data and metadata\n<END>", "<BEGIN>\n## `sign_nonce`", "sign the server nonce from the WWW-Authenticate header with an authK...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the api_download API. 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 api_download API. 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...
Given a Send url, download and return the encrypted data and metadata
"Given a Send url, download and return the encrypted data and metadata"
22
false
ehuggett/send-cli
api_download
36,036
LDU_FT/goshuirc/irc/dispatch
LDU_FT
[ "<BEGIN>\n## `sort_prefixes`", "Returns a sorted list of prefixes.", " Args:\n orig (str): Unsorted list of prefixes.\n prefixes (str): List of prefixes, from highest-priv to lowest.\n<END>", "<BEGIN>\n## `parse_modes`", "Return a modelist.", " Args:\n params (list of str): Para...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the dispatch API. 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 dispatch API. 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...
Dispatch an event. event: name of the event (str) ev_msg: non-optional arguments dictionary. Side effects: If an EventObject is not already registered with the EventManager, a new EventObject will be created and registered.
"Dispatch an event.\n event: name of the event (str)\n ev_msg: non-optional arguments dictionary.\n Side effects:\n If an EventObject is not already registered with the EventManager,\n a new EventObject will be created and registered."
97
false
goshuirc/irc
dispatch
36,037
LDU_FT/olivier-m/rafter/filter_validate_schemas
LDU_FT
[ "<BEGIN>\n## `model_node`", "Decorates a ``schematics.Model`` class to add it as a field\n of type ``schematic.types.ModelType``.", " Keyword arguments are passed to ``schematic.types.ModelType``.", " Example:", " .. code-block:: python\n :emphasize-lines: 8,13", " from schematic...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the filter_validate_schemas 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 filter_validate_schemas API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion...
This filter validates input data against the resource's ``request_schema`` and fill the request's ``validated`` dict. Data from ``request.params`` and ``request.body`` (when the request body is of a form type) will be converted using the schema in order to get proper lists or unique values. .. imp...
"This filter validates input data against the resource's\n ``request_schema`` and fill the request's ``validated`` dict.\n\n Data from ``request.params`` and ``request.body`` (when the request body\n is of a form type) will be converted using the schema in order to get\n proper lists or unique values.\n\n ...
41
false
olivier-m/rafter
filter_validate_schemas
36,038
LDU_FT/takuti/flurs/load_movies
LDU_FT
[ "<BEGIN>\n## `__create_proj_mat`", "Create a random projection matrix", " [1] D. Achlioptas. Database-friendly random projections: Johnson-Lindenstrauss with binary coins.\n [2] P. Li, et al. Very sparse random projections.", " http://scikit-learn.org/stable/modules/random_projection.html...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load_movies API. 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_movies API. 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 movie genres as a context. Returns: dict of movie vectors: item_id -> numpy array (n_genre,)
"Load movie genres as a context.\n Returns:\n dict of movie vectors: item_id -> numpy array (n_genre,)"
74
false
takuti/flurs
load_movies
36,039
LDU_FT/Jaymon/endpoints/url
LDU_FT
[ "<BEGIN>\n## `handle_target`", "Only here to set self.request and get rid of it after", " this will set self.request so the target method can access request using\n self.request, just like in the controller.\n<END>", "<BEGIN>\n## `fetch`", "wrapper method that all the top level methods (get, p...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the url API. 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 url API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
return the full request url as an Url() instance
"return the full request url as an Url() instance"
215
false
Jaymon/endpoints
url
36,040
LDU_FT/openwisp/netdiff/parse
LDU_FT
[ "<BEGIN>\n## `parse`", "Converts a NetJSON 'NetworkGraph' object\n to a NetworkX Graph object,which is then returned.\n Additionally checks for protocol version, revision and metric.\n<END>", "<BEGIN>\n## `parse`", "Converts a OpenVPN JSON to a NetworkX Graph object\n which is then return...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
Converts a OpenVPN JSON to a NetworkX Graph object which is then returned.
"Converts a OpenVPN JSON to a NetworkX Graph object\n which is then returned."
30
false
openwisp/netdiff
parse
36,041
LDU_FT/btr1975/persistentdatatools/file_to_list
LDU_FT
[ "<BEGIN>\n## `verify_file_exists`", "Function to verify if a file exists\n Args:\n file_name: The name of file to check\n file_location: The location of the file, derive from the os module", " Returns: returns boolean True or False\n<END>", "<BEGIN>\n## `file_name_increase`", "Function t...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the file_to_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 extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the file_to_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 extr...
Function to import a text file to a list Args: file_name: The name of file to be import file_location: The location of the file, derive from the os module Returns: returns a list
"Function to import a text file to a list\n Args:\n file_name: The name of file to be import\n file_location: The location of the file, derive from the os module\n\n Returns: returns a list"
56
false
btr1975/persistentdatatools
file_to_list
36,042
LDU_FT/CygnusNetworks/pypureomapi/lookup_mac
LDU_FT
[ "<BEGIN>\n## `parse_chain`", "Creates a new parser that executes the passed parsers (args) with the\n\tprevious results and yields a tuple of the results.", "\t>>> list(parse_chain(lambda: (None, 1), lambda one: (None, 2)))\n\t[None, None, (1, 2)]", "\t@param args: parsers\n\t@returns: parser\n<END>", "<BEG...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the lookup_mac API. 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 lookup_mac API. 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...
Look up a lease object with given ip address and return the associated mac address. @type ip: str @rtype: str or None @raises ValueError: @raises OmapiError: @raises OmapiErrorNotFound: if no lease object with the given ip could be found @raises OmapiErrorAttributeNotFound: if lease could be found, but o...
"Look up a lease object with given ip address and return the\n\t\tassociated mac address.\n\n\t\t@type ip: str\n\t\t@rtype: str or None\n\t\t@raises ValueError:\n\t\t@raises OmapiError:\n\t\t@raises OmapiErrorNotFound: if no lease object with the given ip could be found\n\t\t@raises OmapiErrorAttributeNotFound: if leas...
114
false
CygnusNetworks/pypureomapi
lookup_mac
36,043
LDU_FT/ttu/ruuvitag-sensor/_data_update
LDU_FT
[ "<BEGIN>\n## `convert_to_influx`", "Convert data into RuuviCollector naming schme and scale", " returns:\n Object to be written to InfluxDB\n<END>", "<BEGIN>\n## `_run_get_data_background`", "Background process function for RuuviTag Sensors\n<END>", "<BEGIN>\n## `_data_update`", "Get data from...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _data_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 extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _data_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 extr...
Get data from backgound process and notify all subscribed observers with the new data
"Get data from backgound process and notify all subscribed observers with the new data"
48
false
ttu/ruuvitag-sensor
_data_update
36,044
LDU_FT/spookey/photon/load
LDU_FT
[ "<BEGIN>\n## `__signal`", "Helper class preventing code duplication..", " :param sig:\n Signal to use (e.g. \"HUP\", \"ALRM\")\n :param verbose:\n Overwrite :func:`photon.Photon.m`'s `verbose`\n :returns:\n |kill_return| with specified `pid`", " .. ...
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...
Loads a dictionary into current meta :param mkey: Type of data to load. Is be used to reference the data from the 'header' within meta :param mdesc: Either filename of json-file to load or further description of imported data when `mdict` is used ...
"Loads a dictionary into current meta\n\n :param mkey:\n Type of data to load.\n Is be used to reference the data from the 'header' within meta\n :param mdesc:\n Either filename of json-file to load or further description\n of imported data when `mdict` is used\...
199
false
spookey/photon
load
36,045
LDU_FT/walkr/oi/loop
LDU_FT
[ "<BEGIN>\n## `new_parser`", "Create a command line argument parser", " Add a few default flags, such as --version\n for displaying the program version when invoked\n<END>", "<BEGIN>\n## `add_command`", "Register a new function with a the name `command` and\n `description` (which will be...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the loop API. 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 loop API. 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...
Enter loop, read user input then run command. Repeat
"Enter loop, read user input then run command. Repeat"
22
false
walkr/oi
loop
36,046
LDU_FT/wickerwaka/russound_rio/get_cached_zone_variable
LDU_FT
[ "<BEGIN>\n## `_retrieve_cached_zone_variable`", "Retrieves the cache state of the named variable for a particular\n zone. If the variable has not been cached then the UncachedVariable\n exception is raised.\n<END>", "<BEGIN>\n## `_store_cached_zone_variable`", "Stores the current known value of ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_cached_zone_variable API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_cached_zone_variable API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio...
Retrieve the current value of a zone variable from the cache or return the default value if the variable is not present.
"Retrieve the current value of a zone variable from the cache or\n return the default value if the variable is not present."
24
false
wickerwaka/russound_rio
get_cached_zone_variable
36,047
LDU_FT/kblomqvist/yasha/fold
LDU_FT
[ "<BEGIN>\n## `cli`", "Reads the given Jinja TEMPLATE and renders its content\n into a new file. For example, a template called 'foo.c.j2'\n will be written into 'foo.c' in case the output file is not\n explicitly given.", " Template variables can be defined in a separate file or\n given as part o...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the fold API. 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 fold API. 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...
Folds the Register in accordance with it's dimensions. If the register is dimensionless, the returned list just contains the register itself unchanged. In case the register name looks like a C array, the returned list contains the register itself, where nothing else than the '%s' placeh...
"Folds the Register in accordance with it's dimensions.\n\n If the register is dimensionless, the returned list just\n contains the register itself unchanged. In case the register\n name looks like a C array, the returned list contains the register\n itself, where nothing else than the '%s' ...
15
false
kblomqvist/yasha
fold
36,048
LDU_FT/ambitioninc/newrelic-api/delete
LDU_FT
[ "<BEGIN>\n## `update`", "Updates any of the optional parameters of the alert condition nrql", " :type alert_condition_nrql_id: int\n :param alert_condition_nrql_id: Alerts condition NRQL id to update", " :type policy_id: int\n :param policy_id: Alert policy id where target alert co...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the delete API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the delete API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
This API endpoint allows you to delete an alert condition nrql :type alert_condition_nrql_id: integer :param alert_condition_nrql_id: Alert Condition ID :rtype: dict :return: The JSON response of the API :: { "nrql_condition": { "type": "str...
"This API endpoint allows you to delete an alert condition nrql\n\n :type alert_condition_nrql_id: integer\n :param alert_condition_nrql_id: Alert Condition ID\n\n :rtype: dict\n :return: The JSON response of the API\n\n ::\n {\n \"nrql_condition\": {\n ...
299
false
ambitioninc/newrelic-api
delete
36,049
LDU_FT/BeyondTheClouds/enoslib/_do_synchronise_jobs
LDU_FT
[ "<BEGIN>\n## `_build_g5k_conf`", "Build the conf of the g5k provider from the vmong5k conf.\n<END>", "<BEGIN>\n## `cached`", "Decorator for caching/retrieving api calls request.", " Many calls to the API are getter on static parts (e.g site of a given\n cluster name won't change). By caching some resp...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _do_synchronise_jobs 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 _do_synchronise_jobs API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
This returns a common reservation date for all the jobs. This reservation date is really only a hint and will be supplied to each oar server. Without this *common* reservation_date, one oar server can decide to postpone the start of the job while the other are already running. But this doens't prevent ...
"This returns a common reservation date for all the jobs.\n\n This reservation date is really only a hint and will be supplied to each\n oar server. Without this *common* reservation_date, one oar server can\n decide to postpone the start of the job while the other are already\n running. But this doens't pr...
229
false
BeyondTheClouds/enoslib
_do_synchronise_jobs
36,050
LDU_FT/ahwillia/tensortools/similarities
LDU_FT
[ "<BEGIN>\n## `unfold`", "Returns the mode-`mode` unfolding of `tensor`.", " Parameters\n ----------\n tensor : ndarray\n mode : int", " Returns\n -------\n ndarray\n unfolded_tensor of shape ``(tensor.shape[mode], -1)``", " Author\n ------\n Jean Kossaifi <https://github...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the similarities API. 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 similarities API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
Returns similarity scores for models with specified rank.
"Returns similarity scores for models with specified rank."
158
false
ahwillia/tensortools
similarities
36,051
LDU_FT/nmdp-bioinformatics/SeqAnn/_make_gfe
LDU_FT
[ "<BEGIN>\n## `search_seqs`", "search_seqs - method for annotating a BioPython sequence without alignment", " :param seqrec: The reference sequence\n :type seqrec: SeqRecord\n :param locus: The gene locus associated with the sequence.\n :type locus: str\n :param in_seq: The inp...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _make_gfe API. 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 _make_gfe API. 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...
creates GFE from HLA sequence and locus :param locus: string containing HLA locus. :param sequence: string containing sequence data. :return: GFEobject.
"creates GFE from HLA sequence and locus\n\n :param locus: string containing HLA locus.\n :param sequence: string containing sequence data.\n\n :return: GFEobject."
112
false
nmdp-bioinformatics/SeqAnn
_make_gfe
36,052
LDU_FT/razor-x/scipy-data_fitting/lmfit_fcn2min
LDU_FT
[ "<BEGIN>\n## `add_symbol`", "Add a symbol with key `name` to `scipy_data_fitting.Model.symbols`.\n Optionally, specify an alternative `string` to pass to [`sympy.Symbol`][1],\n otherwise `name` is used.", " [1]: http://docs.sympy.org/dev/modules/core.html#id4\n<END>", "<BEGIN>\n## `replac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the lmfit_fcn2min API. 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 lmfit_fcn2min API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
The function to minimize when using [lmfit][1]. If overriding this, the replacement function must accept the following non-keyword arguments in this order (even if unused): 1. A [`lmfit.Parameters`][2] object. The value of each parameter must be passed appropriately to `scipy_data_f...
"The function to minimize when using [lmfit][1].\n\n If overriding this, the replacement function must accept the following\n non-keyword arguments in this order (even if unused):\n\n 1. A [`lmfit.Parameters`][2] object.\n The value of each parameter must be passed appropriately to `scipy...
163
false
razor-x/scipy-data_fitting
lmfit_fcn2min
36,053
LDU_FT/gbowerman/azurerm/list_locations
LDU_FT
[ "<BEGIN>\n## `get_rg_from_id`", "get a resource group name from a VMSS ID string\n<END>", "<BEGIN>\n## `get_user_agent`", "User-Agent Header. Sends library identification to Azure endpoint.\n<END>", "<BEGIN>\n## `do_get`", "Do an HTTP GET request and return JSON.", " Args:\n endpoint (str): Az...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the list_locations API. 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 list_locations API. 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...
List available locations for a subscription. Args: access_token (str): A valid Azure authentication token. subscription_id (str): Azure subscription id. Returns: HTTP response. JSON list of locations.
"List available locations for a subscription.\n\n Args:\n access_token (str): A valid Azure authentication token.\n subscription_id (str): Azure subscription id.\n\n Returns:\n HTTP response. JSON list of locations."
605
false
gbowerman/azurerm
list_locations
36,054
LDU_FT/HazardDede/argresolver/auto_str
LDU_FT
[ "<BEGIN>\n## `get_class_that_defined_method`", "Tries to find the class that defined the specified method. Will not work for nested classes\n (locals).", " Args:\n fun: Function / Method", " Returns:\n Returns the class which defines the given method / function.\n<END>", "<BEGIN>\n## ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the auto_str API. 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 auto_str API. 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...
Use this decorator to auto implement __str__() and optionally __repr__() methods on classes. Args: __repr__ (bool): If set to true, the decorator will auto-implement the __repr__() method as well. Returns: callable: Decorating function. Note: There are known issues wit...
"Use this decorator to auto implement __str__() and optionally __repr__() methods on classes.\n\n Args:\n __repr__ (bool): If set to true, the decorator will auto-implement the __repr__() method as\n well.\n\n Returns:\n callable: Decorating function.\n\n Note:\n There are known...
21
false
HazardDede/argresolver
auto_str
36,055
LDU_FT/llllllllll/codetransformer/flatten
LDU_FT
[ "<BEGIN>\n## `_new_lnotab`", "The updated lnotab after the instructions have been transformed.", " Parameters\n ----------\n instrs : iterable[Instruction]\n The new instructions.\n lnotab : dict[Instruction -> int]\n The lnotab for the old code object.", " Returns\n -------\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the flatten API. 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 flatten API. 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 (possibly nested) iterator into a flattened iterator. Parameters ---------- seq : iterable The sequence to flatten. recurse_types, optional Types to recursively flatten. Defaults to (tuple, list, set, frozenset). >>> list(flatten((1, (2, 3), ((4,), 5)))) [1, 2...
"Convert a (possibly nested) iterator into a flattened iterator.\n\n Parameters\n ----------\n seq : iterable\n The sequence to flatten.\n recurse_types, optional\n Types to recursively flatten.\n Defaults to (tuple, list, set, frozenset).\n\n >>> list(flatten((1, (2, 3), ((4,), 5)))...
223
false
llllllllll/codetransformer
flatten
36,056
LDU_FT/Gawen/pytun/set_ipv4
LDU_FT
[ "<BEGIN>\n## `mode_name`", "Returns the tunnel mode's name, for printing purpose.\n<END>", "<BEGIN>\n## `open`", "Create the tunnel.\n If the tunnel is already opened, the function will\n raised an AlreadyOpened exception.\n<END>", "<BEGIN>\n## `close`", "Close the tunnel.\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_ipv4 API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_ipv4 API. 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...
Sets the IP address (ifr_addr) of the device parameter 'ip' should be string representation of IP address This does the same as ifconfig.
"Sets the IP address (ifr_addr) of the device\n parameter 'ip' should be string representation of IP address\n This does the same as ifconfig."
12
false
Gawen/pytun
set_ipv4
36,057
LDU_FT/unbservices/clams/_get_handler
LDU_FT
[ "<BEGIN>\n## `arg`", "Annotate a function by adding the args/kwargs to the meta-data.", " This appends an Argparse \"argument\" to the function's\n ``ARGPARSE_ARGS_LIST`` attribute, creating ``ARGPARSE_ARGS_LIST`` if it\n does not already exist. Aside from that, it returns the decorated function\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_handler API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_handler API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
Get a handler (if present) from a namespace. Returns ------- function or None The handler defined in the namespace.
"Get a handler (if present) from a namespace.\n\n Returns\n -------\n function or None\n The handler defined in the namespace."
47
false
unbservices/clams
_get_handler
36,058
LDU_FT/timofurrer/w1thermsensor/get_temperature
LDU_FT
[ "<BEGIN>\n## `all`", "Get temperatures of all available sensors\n<END>", "<BEGIN>\n## `precision`", "Change the precision for the sensor and persist it in the sensor's EEPROM\n<END>", "<BEGIN>\n## `load_kernel_modules`", "Load kernel modules needed by the temperature sensor\n if they are not already lo...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_temperature API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_temperature API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
Returns the temperature in the specified unit :param int unit: the unit of the temperature requested :returns: the temperature in the given unit :rtype: float :raises UnsupportedUnitError: if the unit is not supported :raises NoSensorFoundError: if the sens...
"Returns the temperature in the specified unit\n\n :param int unit: the unit of the temperature requested\n\n :returns: the temperature in the given unit\n :rtype: float\n\n :raises UnsupportedUnitError: if the unit is not supported\n :raises NoSensorFoundError: if...
46
false
timofurrer/w1thermsensor
get_temperature
36,059
LDU_FT/josiah-wolf-oberholtzer/uqbar/find_executable
LDU_FT
[ "<BEGIN>\n## `_build_mappings`", "Collect all bases and organize into parent/child mappings.\n<END>", "<BEGIN>\n## `_collect_classes`", "Collect all classes defined in/under ``package_paths``.\n<END>", "<BEGIN>\n## `find_common_prefix`", "Find the common prefix of two or more paths.", " ::", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_executable API. 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 find_executable API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
r"""Finds executable `name`. Similar to Unix ``which`` command. Returns list of zero or more full paths to `name`.
"r\"\"\"Finds executable `name`.\n\n Similar to Unix ``which`` command.\n\n Returns list of zero or more full paths to `name`."
123
false
josiah-wolf-oberholtzer/uqbar
find_executable
36,060
LDU_FT/ryanvarley/ExoData/_getParLabelAndUnit
LDU_FT
[ "<BEGIN>\n## `load_db_from_url`", "Loads the database from a gzipped version of the system folder, by default the one located in the oec_gzip repo\n in the OpenExoplanetCatalogue GitHub group.", " The database is loaded from the url in memory", " :param url: url to load (must be gzipped version of sy...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _getParLabelAndUnit 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 _getParLabelAndUnit 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 param to see if it contains a parent link (ie star.) then returns the correct unit and label for the job from the parDicts :return:
"checks param to see if it contains a parent link (ie star.) then returns the correct unit and label for the\n job from the parDicts\n :return:"
133
false
ryanvarley/ExoData
_getParLabelAndUnit
36,061
LDU_FT/webrecorder/warcio/pad_timestamp
LDU_FT
[ "<BEGIN>\n## `_raise_invalid_gzip_err`", "A gzip file with multiple ARC/WARC records, non-chunked\n has been detected. This is not valid for replay, so notify user\n<END>", "<BEGIN>\n## `_consume_blanklines`", "Consume blank lines that are between records\n - For warcs, there are usually 2\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the pad_timestamp API. 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 pad_timestamp API. 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...
>>> pad_timestamp('20') '209912' >>> pad_timestamp('2014') '201412' >>> pad_timestamp('20141011') '20141011' >>> pad_timestamp('201410110010') '201410110010'
">>> pad_timestamp('20')\n '209912'\n\n >>> pad_timestamp('2014')\n '201412'\n\n >>> pad_timestamp('20141011')\n '20141011'\n\n >>> pad_timestamp('201410110010')\n '201410110010'"
91
false
webrecorder/warcio
pad_timestamp
36,062
LDU_FT/jgorset/fandjango/extended
LDU_FT
[ "<BEGIN>\n## `facebook_authorization_required`", "Require the user to authorize the application.", " :param redirect_uri: A string describing an URL to redirect to after authorization is complete.\n If ``None``, redirects to the current URL in the Facebook canvas\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the extended API. 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 extended API. 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...
Determine whether the OAuth token has been extended.
"Determine whether the OAuth token has been extended."
34
false
jgorset/fandjango
extended
36,063
LDU_FT/inveniosoftware/invenio-communities/curate
LDU_FT
[ "<BEGIN>\n## `format_item`", "Render a template to a string with the provided item in context.\n<END>", "<BEGIN>\n## `index`", "Index page with uploader and list of existing depositions.\n<END>", "<BEGIN>\n## `generic_item`", "Index page with uploader and list of existing depositions.\n<END>", "<BEGIN>\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the curate API. 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 curate API. 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 ...
Index page with uploader and list of existing depositions. :param community_id: ID of the community to curate.
"Index page with uploader and list of existing depositions.\n\n :param community_id: ID of the community to curate."
89
false
inveniosoftware/invenio-communities
curate
36,064
LDU_FT/pytroll/trollimage/_create_alpha
LDU_FT
[ "<BEGIN>\n## `colorize`", "Colorize a monochromatic array *arr*, based *colors* given for\n *values*. Interpolation is used. *values* must be in ascending order.\n<END>", "<BEGIN>\n## `palettize`", "From start *values* apply *colors* to *data*.\n<END>", "<BEGIN>\n## `set_range`", "Set the range of the ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _create_alpha API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _create_alpha API. 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...
Create an alpha band DataArray object. If `fill_value` is provided and input data is an integer type then it is used to determine invalid "null" pixels instead of xarray's `isnull` and `notnull` methods. The returned array is 1 where data is valid, 0 where invalid.
"Create an alpha band DataArray object.\n\n If `fill_value` is provided and input data is an integer type\n then it is used to determine invalid \"null\" pixels instead of\n xarray's `isnull` and `notnull` methods.\n\n The returned array is 1 where data is valid, 0 where invalid."
150
false
pytroll/trollimage
_create_alpha
36,065
LDU_FT/IrvKalb/pygwidgets/handleEvent
LDU_FT
[ "<BEGIN>\n## `setLoc`", "Sets a new location (and changes the rect loc) for this widget.\n<END>", "<BEGIN>\n## `handleEvent`", "This method should be called every time through the main loop.\r", " It handles showing the up, over, and down states of the button.\r", " Parameters:\r\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the handleEvent API. 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 handleEvent API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
This method should be called every time through the main loop. Returns: False - if no event happens. True - if the user clicks the animation to start it playing.
"This method should be called every time through the main loop.\r\n\r\n Returns:\r\n False - if no event happens.\r\n True - if the user clicks the animation to start it playing."
70
false
IrvKalb/pygwidgets
handleEvent
36,066
LDU_FT/PyGithub/PyGithub/add_to_following
LDU_FT
[ "<BEGIN>\n## `add_membership`", ":calls: `PUT /teams/:id/memberships/:user <http://developer.github.com/v3/orgs/teams>`_\n :param member: :class:`github.Nameduser.NamedUser`\n :param role: string\n :rtype: None\n<END>", "<BEGIN>\n## `add_to_repos`", ":calls: `PUT /teams/:id/repos/:org/:re...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_to_following API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_to_following API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
:calls: `PUT /user/following/:user <http://developer.github.com/v3/users/followers>`_ :param following: :class:`github.NamedUser.NamedUser` :rtype: None
":calls: `PUT /user/following/:user <http://developer.github.com/v3/users/followers>`_\n :param following: :class:`github.NamedUser.NamedUser`\n :rtype: None"
520
false
PyGithub/PyGithub
add_to_following
36,067
LDU_FT/twisted/vertex/listenQ2Q
LDU_FT
[ "<BEGIN>\n## `enregister`", "Register a new account and return a Deferred that fires if it worked.", " @param svc: a Q2QService", " @param newAddress: a Q2QAddress object", " @param password: a shared secret (str)\n<END>", "<BEGIN>\n## `connectCached`", "See module docstring", " @param...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the listenQ2Q API. 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 listenQ2Q API. 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...
Right now this is really only useful in the client implementation, since it is transient. protocolFactoryFactory is used for persistent listeners.
"Right now this is really only useful in the client implementation,\n since it is transient. protocolFactoryFactory is used for persistent\n listeners."
191
false
twisted/vertex
listenQ2Q
36,068
LDU_FT/jtmoulia/switchboard-python/_take
LDU_FT
[ "<BEGIN>\n## `main`", "Create, connect, and block on the Lamson worker.\n<END>", "<BEGIN>\n## `received_new`", "As new messages arrive, deliver them to the lamson relay.\n<END>", "<BEGIN>\n## `_isPromise`", "A utility function to determine if the specified\n object is a promise using \"duck typing\".\n...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _take API. 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 _take API. 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...
If the key is present in dictionary, remove it and return it's value. If it is not present, return None.
"If the key is present in dictionary, remove it and return it's\n value. If it is not present, return None."
35
false
jtmoulia/switchboard-python
_take
36,069
LDU_FT/wmayner/pyphi/flatten
LDU_FT
[ "<BEGIN>\n## `memory_full`", "Check if the memory is too full for further caching.\n<END>", "<BEGIN>\n## `cache`", "Memory-limited cache decorator.", " ``maxmem`` is a float between 0 and 100, inclusive, specifying the maximum\n percentage of physical memory that the cache can use.", " If ``typed...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the flatten API. 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 flatten API. 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...
Flatten a repertoire, removing empty dimensions. By default, the flattened repertoire is returned in little-endian order. Args: repertoire (np.ndarray or None): A repertoire. Keyword Args: big_endian (boolean): If ``True``, flatten the repertoire in big-endian order. Retu...
"Flatten a repertoire, removing empty dimensions.\n\n By default, the flattened repertoire is returned in little-endian order.\n\n Args:\n repertoire (np.ndarray or None): A repertoire.\n\n Keyword Args:\n big_endian (boolean): If ``True``, flatten the repertoire in big-endian\n order....
914
false
wmayner/pyphi
flatten
36,070
LDU_FT/rodluger/everest/update_gp
LDU_FT
[ "<BEGIN>\n## `Download`", "Submits a cluster job to the build queue to download all TPFs for a given\n campaign.", " :param int campaign: The `K2` campaign to run\n :param str queue: The name of the queue to submit to. Default `build`\n :param str email: The email to send job status notifications to...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update_gp API. 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 update_gp API. 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...
Calls :py:func:`gp.GetKernelParams` to optimize the GP and obtain the covariance matrix for the regression.
"Calls :py:func:`gp.GetKernelParams` to optimize the GP and obtain the\n covariance matrix for the regression."
364
false
rodluger/everest
update_gp
36,071
LDU_FT/rackerlabs/fleece/client
LDU_FT
[ "<BEGIN>\n## `build_wsgi_environ_from_event`", "Create a WSGI environment from the proxy integration event.\n<END>", "<BEGIN>\n## `wsgi_handler`", "lambda handler function.\n This function runs the WSGI app with it and collects its response, then\n translates the response back into the format expected b...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the client API. 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 client API. 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 ...
Create a low-level service client by name using the default session. Socket level timeouts are preconfigured according to the defaults set via the `fleece.boto3.set_default_timeout()` function, or they can also be set explicitly for a client by passing the `timeout`, `connect_timeout` or `read_timeout` ...
"Create a low-level service client by name using the default session.\n Socket level timeouts are preconfigured according to the defaults set via\n the `fleece.boto3.set_default_timeout()` function, or they can also be set\n explicitly for a client by passing the `timeout`, `connect_timeout` or\n `read_time...
108
false
rackerlabs/fleece
client
36,072