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/neo4j-contrib/neomodel/all
LDU_FT
[ "<BEGIN>\n## `set_connection`", "Sets the connection URL to the address a Neo4j server is set up at\n<END>", "<BEGIN>\n## `begin`", "Begins a new transaction, raises SystemError exception if a transaction is in progress\n<END>", "<BEGIN>\n## `_object_resolution`", "Performs in place automatic object resol...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the all API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the all API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
Return all nodes belonging to the set :param lazy: False by default, specify True to get nodes with id only without the parameters. :return: list of nodes :rtype: list
"Return all nodes belonging to the set\n :param lazy: False by default, specify True to get nodes with id only without the parameters.\n :return: list of nodes\n :rtype: list"
157
false
neo4j-contrib/neomodel
all
8,973
LDU_FT/willkg/socorro-siggen/main
LDU_FT
[ "<BEGIN>\n## `_get_file_content`", "Return a tuple, each value being a line of the source file.", " Remove empty lines and comments (lines starting with a '#').\n<END>", "<BEGIN>\n## `main`", "Takes crash data via stdin and generates a Socorro signature\n<END>", "<BEGIN>\n## `convert_to_crash_data`", ...
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...
Takes a crash id, pulls down data from Socorro, generates signature data
"Takes a crash id, pulls down data from Socorro, generates signature data"
66
false
willkg/socorro-siggen
main
8,974
LDU_FT/ShadowBlip/Neteria/scheduler
LDU_FT
[ "<BEGIN>\n## `listen`", "Starts the client listener to listen for server responses.", " Args:\n None", " Returns:\n None\n<END>", "<BEGIN>\n## `retransmit`", "Processes messages that have been delivered from the transport\n protocol.", " Args:\n dat...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the scheduler API. 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 scheduler API. 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...
Starts the scheduler to check for scheduled calls and execute them at the correct time. Args: sleep_time (float): The amount of time to wait in seconds between each loop iteration. This prevents the scheduler from consuming 100% of the host's CPU. Defaults to 0.2 secon...
"Starts the scheduler to check for scheduled calls and execute them\n at the correct time.\n\n Args:\n sleep_time (float): The amount of time to wait in seconds between\n each loop iteration. This prevents the scheduler from consuming\n 100% of the host's CPU. Defaults to 0....
122
false
ShadowBlip/Neteria
scheduler
8,975
LDU_FT/spookey/photon/publish
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 publish API. 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 publish API. 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...
Runs :func:`cleanup` first, then pushes the changes to the :attr:`remote`.
"Runs :func:`cleanup` first,\n then pushes the changes to the :attr:`remote`."
199
false
spookey/photon
publish
8,976
LDU_FT/stanfordnlp/stanza/load
LDU_FT
[ "<BEGIN>\n## `validate`", "Evaluate this model on `validation_instances` during training and\n output a report.", " :param validation_instances: The data to use to validate the model.\n :type validation_instances: list(instance.Instance)", " :param metrics: Functions like those fou...
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 the dictionary from json file :param fname: file to load from :return: loaded dictionary
"Loads the dictionary from json file\n :param fname: file to load from\n :return: loaded dictionary"
309
false
stanfordnlp/stanza
load
8,977
LDU_FT/vpelletier/python-functionfs/onSetup
LDU_FT
[ "<BEGIN>\n## `getInterfaceInAllSpeeds`", "Produce similar fs, hs and ss interface and endpoints descriptors.\n Should be useful for devices desiring to work in all 3 speeds with maximum\n endpoint wMaxPacketSize. Reduces data duplication from descriptor\n declarations.\n Not intended to cover fancy co...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the onSetup API. 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 onSetup API. 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...
Called when a setup USB transaction was received. Default implementation: - handles USB_REQ_GET_STATUS on interface and endpoints - handles USB_REQ_CLEAR_FEATURE(USB_ENDPOINT_HALT) on endpoints - handles USB_REQ_SET_FEATURE(USB_ENDPOINT_HALT) on endpoints - halts on everything e...
"Called when a setup USB transaction was received.\n\n Default implementation:\n - handles USB_REQ_GET_STATUS on interface and endpoints\n - handles USB_REQ_CLEAR_FEATURE(USB_ENDPOINT_HALT) on endpoints\n - handles USB_REQ_SET_FEATURE(USB_ENDPOINT_HALT) on endpoints\n - halts on every...
40
false
vpelletier/python-functionfs
onSetup
8,978
LDU_FT/onelogin/python3-saml/set_strict
LDU_FT
[ "<BEGIN>\n## `get_issuer`", "Gets the Issuer of the Logout Response Message\n :return: The Issuer\n :rtype: string\n<END>", "<BEGIN>\n## `get_status`", "Gets the Status\n :return: The Status\n :rtype: string\n<END>", "<BEGIN>\n## `is_valid`", "Determines if the SAML LogoutRespo...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_strict API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_strict API. 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...
Set the strict mode active/disable :param value: :type value: bool
"Set the strict mode active/disable\n\n :param value:\n :type value: bool"
302
false
onelogin/python3-saml
set_strict
8,979
LDU_FT/DarkEnergySurvey/ugali/_photometricErrors
LDU_FT
[ "<BEGIN>\n## `integrate`", "Calculate the 2D integral of the 1D surface brightness profile \n (i.e, the flux) between rmin and rmax (elliptical radii). ", " Parameters:\n -----------\n rmin : minimum integration radius (deg)\n rmax : maximum integration radius (deg)", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _photometricErrors 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 _photometricErrors 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...
Realistic photometric errors estimated from catalog objects and mask. Extend below the magnitude threshold with a flat extrapolation.
"Realistic photometric errors estimated from catalog objects and mask.\n Extend below the magnitude threshold with a flat extrapolation."
614
false
DarkEnergySurvey/ugali
_photometricErrors
8,980
LDU_FT/adamrehn/ue4cli/getThirdpartyLibs
LDU_FT
[ "<BEGIN>\n## `findArgs`", "Extracts the list of arguments that start with any of the specified prefix values\n<END>", "<BEGIN>\n## `stripArgs`", "Removes any arguments in the supplied list that are contained in the specified blacklist\n<END>", "<BEGIN>\n## `capture`", "Executes a child process and capture...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the getThirdpartyLibs API. 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 getThirdpartyLibs API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Retrieves the ThirdPartyLibraryDetails instance for Unreal-bundled versions of the specified third-party libraries
"Retrieves the ThirdPartyLibraryDetails instance for Unreal-bundled versions of the specified third-party libraries"
120
false
adamrehn/ue4cli
getThirdpartyLibs
8,981
LDU_FT/seznam/shelter/context_class
LDU_FT
[ "<BEGIN>\n## `exitcode`", "Process exit code. :const:`0` when process exited successfully,\n positive number when exception was occurred, negative number when\n process was signaled and :data:`None` when process has not exited\n yet.\n<END>", "<BEGIN>\n## `run`", "Tornado worker which han...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the context_class API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the context_class API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
Context as a :class:`shelter.core.context.Context` class or subclass.
"Context as a :class:`shelter.core.context.Context` class or subclass."
61
false
seznam/shelter
context_class
8,982
LDU_FT/pqn/neural/__roll
LDU_FT
[ "<BEGIN>\n## `predict`", "Returns predictions of input test cases.\n<END>", "<BEGIN>\n## `__cost`", "Computes activation, cost function, and derivative.\n<END>", "<BEGIN>\n## `__roll`", "Converts parameter array back into matrices.\n<END>", "<BEGIN>\n## `__unroll`", "Converts parameter matrices into a...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the __roll API. 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 __roll API. 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 ...
Converts parameter array back into matrices.
"Converts parameter array back into matrices."
10
false
pqn/neural
__roll
8,983
LDU_FT/Netflix-Skunkworks/historical/fix_decimals
LDU_FT
[ "<BEGIN>\n## `handler`", "Historical security group event differ.", " Listens to the Historical current table and determines if there are differences that need to be persisted in the\n historical record.\n<END>", "<BEGIN>\n## `serialize`", "Serializes the JSON for the Polling Event Model.", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the fix_decimals API. 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 fix_decimals API. 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...
Removes the stupid Decimals See: https://github.com/boto/boto3/issues/369#issuecomment-302137290
"Removes the stupid Decimals\n\n See: https://github.com/boto/boto3/issues/369#issuecomment-302137290"
146
false
Netflix-Skunkworks/historical
fix_decimals
8,984
LDU_FT/fedora-infra/fmn.lib/matches
LDU_FT
[ "<BEGIN>\n## `recipients`", "The main API function.", " Accepts a fedmsg message as an argument.", " Returns a dict mapping context names to lists of recipients.\n<END>", "<BEGIN>\n## `matches`", "Returns True if the given filter matches the given message.\n<END>", "<BEGIN>\n## `load_preferences`"...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the matches API. 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 matches API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
Returns True if the given filter matches the given message.
"Returns True if the given filter matches the given message."
25
false
fedora-infra/fmn.lib
matches
8,985
LDU_FT/ascribe/pyspool/register_piece
LDU_FT
[ "<BEGIN>\n## `address_from_path`", "Args:\n path (str): Path for the HD wallet. If path is ``None`` it\n will generate a unique path based on time.", " Returns:\n A ``tuple`` with the path and leaf address.\n<END>", "<BEGIN>\n## `_unique_hierarchical_string`", "Re...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the register_piece API. 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 register_piece API. 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...
Register a piece Args: from_address (Tuple[str]): Federation address. All register transactions originate from the the Federation wallet to_address (str): Address registering the edition hash (Tuple[str]): Hash of the piece. (file_hash, file_hash_metadata) ...
"Register a piece\n\n Args:\n from_address (Tuple[str]): Federation address. All register transactions\n originate from the the Federation wallet\n to_address (str): Address registering the edition\n hash (Tuple[str]): Hash of the piece. (file_hash, file_hash_metad...
79
false
ascribe/pyspool
register_piece
8,986
LDU_FT/galaxyproject/pulsar/setup
LDU_FT
[ "<BEGIN>\n## `__posix_to_local_path`", "Converts a posix path (coming from Galaxy), to a local path (be it posix or Windows).", " >>> import ntpath\n >>> __posix_to_local_path('dataset_1_files/moo/cow', local_path_module=ntpath)\n 'dataset_1_files\\\\\\\\moo\\\\\\\\cow'\n >>> import posixpath\n >...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the setup API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the setup API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
Setup remote Pulsar server to run this job.
"Setup remote Pulsar server to run this job."
142
false
galaxyproject/pulsar
setup
8,987
LDU_FT/moonso/ped_parser/check_line_length
LDU_FT
[ "<BEGIN>\n## `get_individual`", "Return a individual object based on the indata.", " Arguments:\n family_id (str): The id for this family\n sample_id (str): The id for this sample\n father_id (str): The id for this samples father\n mother_id (str): The id for t...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the check_line_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. The...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the check_line_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. The...
Check if the line is correctly formated. Throw a SyntaxError if it is not.
"Check if the line is correctly formated. Throw a SyntaxError if it is not."
79
false
moonso/ped_parser
check_line_length
8,988
LDU_FT/veripress/veripress/read_file
LDU_FT
[ "<BEGIN>\n## `generate_pages_by_file`", "Generates custom pages of 'file' storage type.\n<END>", "<BEGIN>\n## `fix_relative_url`", "Fix post or page relative url to a standard, uniform format.", " :param publish_type: publish type ('post' or 'page')\n :param rel_url: relative url to fix\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the read_file API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the read_file API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
Read yaml head and raw body content from a file. :param file_path: file path :return: tuple(meta, raw_content)
"Read yaml head and raw body content from a file.\n\n :param file_path: file path\n :return: tuple(meta, raw_content)"
109
false
veripress/veripress
read_file
8,989
LDU_FT/peterdemin/pip-compile-multi/read_sections
LDU_FT
[ "<BEGIN>\n## `create_lockfile`", "Write recursive dependencies list to outfile\n with hard-pinned versions.\n Then fix it.\n<END>", "<BEGIN>\n## `parse_references`", "Read filename line by line searching for pattern:", " -r file.in\n or\n --requirement file.in", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the read_sections API. 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 read_sections API. 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...
Read ini files and return list of pairs (name, options)
"Read ini files and return list of pairs (name, options)"
61
false
peterdemin/pip-compile-multi
read_sections
8,990
LDU_FT/disqus/nydus/_gen_key
LDU_FT
[ "<BEGIN>\n## `_route`", "The first argument is assumed to be the ``key`` for routing.\n<END>", "<BEGIN>\n## `_route`", "The first argument is assumed to be the ``key`` for routing.\n<END>", "<BEGIN>\n## `promise_method`", "A decorator which ensures that once a method has been marked as resolved\n (via ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _gen_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 _gen_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...
Return long integer for a given key, that represent it place on the hash ring.
"Return long integer for a given key, that represent it place on\n the hash ring."
45
false
disqus/nydus
_gen_key
8,991
LDU_FT/vmirly/pyclust/_maximization_step
LDU_FT
[ "<BEGIN>\n## `_update_centers`", "Update Cluster Centers:\n calculate the mean of feature vectors for each cluster.", " distance can be a string or callable.\n<END>", "<BEGIN>\n## `_kmedoids_run`", "Run a single trial of k-medoids clustering\n on dataset X, and given number of cluste...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _maximization_step API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _maximization_step API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
Update class parameters as below: priors: P(w_i) = sum_x P(w_i | x) ==> Then normalize to get in [0,1] Class means: center_w_i = sum_x P(w_i|x)*x / sum_i sum_x P(w_i|x)
"Update class parameters as below:\n priors: P(w_i) = sum_x P(w_i | x) ==> Then normalize to get in [0,1]\n Class means: center_w_i = sum_x P(w_i|x)*x / sum_i sum_x P(w_i|x)"
47
false
vmirly/pyclust
_maximization_step
8,992
LDU_FT/iclab/centinel/write_out_config
LDU_FT
[ "<BEGIN>\n## `parse_out_ips`", "Given a message, parse out the ips in the answer\n<END>", "<BEGIN>\n## `send_chaos_queries`", "Send chaos queries to identify the DNS server and its manufacturer", " Note: we send 2 queries for BIND stuff per RFC 4892 and 1\n query per RFC 6304", " Note...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the write_out_config API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the write_out_config API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Write out the configuration file :param config_file: :return: Note: this will erase all comments from the config file
"Write out the configuration file\n\n :param config_file:\n :return:\n\n Note: this will erase all comments from the config file"
116
false
iclab/centinel
write_out_config
8,993
LDU_FT/dmlc/gluon-nlp/_whitespace_tokenize
LDU_FT
[ "<BEGIN>\n## `train`", "Train textCNN model for sentiment analysis.\n<END>", "<BEGIN>\n## `embedding`", "Get tokens, tokens embedding", " Parameters\n ----------\n sentences : List[str]\n sentences for encoding.\n oov_way : str, default avg.\n use **avg**, *...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _whitespace_tokenize 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 _whitespace_tokenize API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Runs basic whitespace cleaning and splitting on a piece of text.
"Runs basic whitespace cleaning and splitting on a piece of text."
801
false
dmlc/gluon-nlp
_whitespace_tokenize
8,994
LDU_FT/brainiak/brainiak/_objective_function_subject
LDU_FT
[ "<BEGIN>\n## `_generate_feature`", "Generate features corresponding to signal", " Generate a single feature, that can be inserted into the signal volume.\n A feature is a region of activation with a specific shape such as cube\n or ring", " Parameters\n ----------", " feature_type : str\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _objective_function_subject API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclu...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _objective_function_subject API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclu...
Compute the objective function for one subject. .. math:: (1-C)*Loss_{SRM}_i(W_i,S;X_i) .. math:: + C/\\gamma * Loss_{MLR_i}(\\theta, bias; {(W_i^T*Z_i, y_i}) .. math:: + R(\\theta) Parameters ---------- data_align : 2D array, shape=[voxels_i, samples_align] ...
"Compute the objective function for one subject.\n\n .. math:: (1-C)*Loss_{SRM}_i(W_i,S;X_i)\n .. math:: + C/\\\\gamma * Loss_{MLR_i}(\\\\theta, bias; {(W_i^T*Z_i, y_i})\n .. math:: + R(\\\\theta)\n\n Parameters\n ----------\n\n data_align : 2D array, shape=[voxels_i, samples_a...
1,513
true
brainiak/brainiak
_objective_function_subject
8,995
LDU_FT/shaldengeki/python-mal/fix_bad_html
LDU_FT
[ "<BEGIN>\n## `logged_in`", "Checks the logged-in status of the current session. \n Expensive (requests a page), so use sparingly! Best practice is to try a request and catch an UnauthorizedError.", " :rtype: bool\n :return: Whether or not the current session is logged-in.\n<END>", "<BEGIN>\n## `login...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the fix_bad_html API. 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 fix_bad_html API. 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...
Fixes for various DOM errors that MAL commits. Yes, I know this is a cardinal sin, but there's really no elegant way to fix this.
"Fixes for various DOM errors that MAL commits.\n Yes, I know this is a cardinal sin, but there's really no elegant way to fix this."
152
false
shaldengeki/python-mal
fix_bad_html
8,996
LDU_FT/PyMySQL/Tornado-MySQL/convert_datetime
LDU_FT
[ "<BEGIN>\n## `executemany`", "Run several data against one query", " PyMySQL can execute bulkinsert for query like 'INSERT ... VALUES (%s)'.\n In other form of queries, just run :meth:`execute` many times.\n<END>", "<BEGIN>\n## `fetchall`", "Fetch all, as per MySQLdb. Pretty useless for large ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the convert_datetime API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the convert_datetime API. 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 DATETIME or TIMESTAMP column value as a datetime object: >>> datetime_or_None('2007-02-25 23:06:20') datetime.datetime(2007, 2, 25, 23, 6, 20) >>> datetime_or_None('2007-02-25T23:06:20') datetime.datetime(2007, 2, 25, 23, 6, 20) Illegal values are returned as None: >>> dat...
"Returns a DATETIME or TIMESTAMP column value as a datetime object:\n\n >>> datetime_or_None('2007-02-25 23:06:20')\n datetime.datetime(2007, 2, 25, 23, 6, 20)\n >>> datetime_or_None('2007-02-25T23:06:20')\n datetime.datetime(2007, 2, 25, 23, 6, 20)\n\n Illegal values are returned as None:\n\n ...
56
false
PyMySQL/Tornado-MySQL
convert_datetime
8,997
LDU_FT/dhermes/bezier/intersect_curves
LDU_FT
[ "<BEGIN>\n## `polynomial_sign`", "r\"\"\"Determine the \"sign\" of a polynomial on the reference triangle.", " .. note::", " This is used **only** by :meth:`Surface._compute_valid` (which is\n in turn used to compute / cache the :attr:`Surface.is_valid`\n property).", " Checks if a p...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the intersect_curves API. 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 intersect_curves API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
r"""Intersect two parametric B |eacute| zier curves. Args: nodes1 (numpy.ndarray): The nodes in the first curve. nodes2 (numpy.ndarray): The nodes in the second curve. Returns: numpy.ndarray: ``2 x N`` array of intersection parameters. Each row contains a pair of values :math:`...
"r\"\"\"Intersect two parametric B |eacute| zier curves.\n\n Args:\n nodes1 (numpy.ndarray): The nodes in the first curve.\n nodes2 (numpy.ndarray): The nodes in the second curve.\n\n Returns:\n numpy.ndarray: ``2 x N`` array of intersection parameters.\n Each row contains a pair of va...
1,903
true
dhermes/bezier
intersect_curves
8,998
LDU_FT/mongolab/dex/_generate_query_analysis
LDU_FT
[ "<BEGIN>\n## `generate_query_report`", "Generates a comprehensive report on the raw query\n<END>", "<BEGIN>\n## `_ensure_index_cache`", "Adds a collections index entries to the cache if not present\n<END>", "<BEGIN>\n## `_generate_query_analysis`", "Translates a raw query object into a Dex query analysis\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _generate_query_analysis 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 _generate_query_analysis API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio...
Translates a raw query object into a Dex query analysis
"Translates a raw query object into a Dex query analysis"
30
false
mongolab/dex
_generate_query_analysis
8,999
LDU_FT/sosy-lab/benchexec/create_from_xml
LDU_FT
[ "<BEGIN>\n## `_program_files_from_executable`", "Get a list of program files by expanding a list of path patterns\n and interpreting it as relative to the executable.\n This method can be used as helper for implementing the method program_files().\n Contrary to the default implementation of p...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_from_xml API. 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 create_from_xml API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
This function extracts everything necessary for creating a RunSetResult object from the "result" XML tag of a benchmark result file. It returns a RunSetResult object, which is not yet fully initialized. To finish initializing the object, call collect_data() before using it for anything e...
"This function extracts everything necessary for creating a RunSetResult object\n from the \"result\" XML tag of a benchmark result file.\n It returns a RunSetResult object, which is not yet fully initialized.\n To finish initializing the object, call collect_data()\n before using it for any...
406
false
sosy-lab/benchexec
create_from_xml
9,000
LDU_FT/JdeRobot/base/close
LDU_FT
[ "<BEGIN>\n## `bytes_needed`", "return number of bytes needed for next parsing stage\n<END>", "<BEGIN>\n## `__callbacks`", "this method exists only to make profiling results easier to read\n<END>", "<BEGIN>\n## `parse_char`", "input some data bytes, possibly returning a new message\n<END>", "<BEGIN>\n## ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the close API. 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 close API. 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...
Equality test with tolerance (same orientation, not necessarily same rotation) :param other: a QuaternionBase :returns: true if the quaternions are almost equal
"Equality test with tolerance\n (same orientation, not necessarily same rotation)\n\n\n :param other: a QuaternionBase\n :returns: true if the quaternions are almost equal"
1,991
true
JdeRobot/base
close
9,001
LDU_FT/smarie/python-parsyfiles/check_var
LDU_FT
[ "<BEGIN>\n## `read_dict_or_list_from_json`", "Helper method to read a dictionary from a .json file using json library\n :param file_object:\n :return:\n<END>", "<BEGIN>\n## `get_default_collection_parsers`", "Utility method to return the default parsers able to parse a dictionary from a file.\n :retu...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the check_var API. 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 check_var API. 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...
Helper method to check that an object has certain properties: * not none * a certain type * in some accepted values * in some accepted range :param var: the object to check :param var_types: the type(s) to enforce. If None, type will not be enforced :param var_name: the name of the varioabl...
"Helper method to check that an object has certain properties:\n * not none\n * a certain type\n * in some accepted values\n * in some accepted range\n\n :param var: the object to check\n :param var_types: the type(s) to enforce. If None, type will not be enforced\n :param var_name: the name of the...
504
false
smarie/python-parsyfiles
check_var
9,002
LDU_FT/sassoo/goldman/_from_rest_hide
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 _from_rest_hide API. 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 _from_rest_hide API. 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...
Purge fields not allowed during a REST deserialization This is done on fields with `from_rest=False`.
"Purge fields not allowed during a REST deserialization\n\n This is done on fields with `from_rest=False`."
446
false
sassoo/goldman
_from_rest_hide
9,003
LDU_FT/ajslater/picopt/_is_program_selected
LDU_FT
[ "<BEGIN>\n## `_get_timestamp`", "Get the timestamp from the timestamp file.", " Optionally mark it for removal if we're going to write another one.\n<END>", "<BEGIN>\n## `_get_timestamp_cached`", "Get the timestamp from the cache or fill the cache\n Much quicker than reading the same files over and ov...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _is_program_selected API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _is_program_selected API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Determine if the program is enabled in the settings.
"Determine if the program is enabled in the settings."
86
false
ajslater/picopt
_is_program_selected
9,004
LDU_FT/timothycrosley/isort/union
LDU_FT
[ "<BEGIN>\n## `iter_source_code`", "Iterate over all Python source files defined in paths.\n<END>", "<BEGIN>\n## `file_should_be_skipped`", "Returns True if the file and/or folder should be skipped based on the passed in settings.\n<END>", "<BEGIN>\n## `chdir`", "Context manager for changing dir and restor...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the union API. 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 union API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
Return a list of items that are in `a` or `b`
"Return a list of items that are in `a` or `b`"
44
false
timothycrosley/isort
union
9,005
LDU_FT/google/flatbuffers/Slot
LDU_FT
[ "<BEGIN>\n## `compare_version`", "Compare two version number strings of the form W.X.Y.Z.", " The numbers are compared most-significant to least-significant.\n For example, 12.345.67.89 > 2.987.88.99.", " Args:\n a: First version number string to compare\n b: Second version number string to compare",...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the Slot API. 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 Slot API. 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...
Slot sets the vtable key `voffset` to the current location in the buffer.
"Slot sets the vtable key `voffset` to the current location in the\n buffer."
83
false
google/flatbuffers
Slot
9,006
LDU_FT/evansde77/dockerstache/load
LDU_FT
[ "<BEGIN>\n## `run`", "_run_", " Run the dockerstache process to render templates\n based on the options provided", " If extend_context is passed as options it will be used to\n extend the context with the contents of the dictionary provided\n via context.update(extend_context)\n<END>", "<BEGI...
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...
read dotfile and populate self opts will override the dotfile settings, make sure everything is synced in both opts and this object
"read dotfile and populate self\n opts will override the dotfile settings,\n make sure everything is synced in both\n opts and this object"
45
false
evansde77/dockerstache
load
9,007
LDU_FT/nicolargo/glances/is_hide
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 is_hide API. 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 is_hide API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
Return True if the value is in the hide configuration list. The hide configuration list is defined in the glances.conf file. It is a comma separed list of regexp. Example for diskio: hide=sda2,sda5,loop.*
"Return True if the value is in the hide configuration list.\n\n The hide configuration list is defined in the glances.conf file.\n It is a comma separed list of regexp.\n Example for diskio:\n hide=sda2,sda5,loop.*"
678
false
nicolargo/glances
is_hide
9,008
LDU_FT/palantir/python-language-server/from_fs_path
LDU_FT
[ "<BEGIN>\n## `lint`", "Plugin interface to pyls linter.", " Args:\n document: The document to be linted.\n is_saved: Whether or not the file has been saved to disk.\n flags: Additional flags to pass to pylint. Not exposed to\n pyls_lint, but used for testin...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the from_fs_path API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the from_fs_path API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
Returns a URI for the given filesystem path.
"Returns a URI for the given filesystem path."
55
false
palantir/python-language-server
from_fs_path
9,009
LDU_FT/sarugaku/vistir/fs_encode
LDU_FT
[ "<BEGIN>\n## `is_bytes`", "Check if a string is a bytes instance", " :param Union[str, bytes] string: A string that may be string or bytes like\n :return: Whether the provided string is a bytes type or not\n :rtype: bool\n<END>", "<BEGIN>\n## `fs_encode`", "Encode a filesystem path to the proper fi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the fs_encode API. 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 fs_encode API. 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...
Encode a filesystem path to the proper filesystem encoding :param Union[str, bytes] path: A string-like path :returns: A bytes-encoded filesystem path representation
"Encode a filesystem path to the proper filesystem encoding\n\n :param Union[str, bytes] path: A string-like path\n :returns: A bytes-encoded filesystem path representation"
54
false
sarugaku/vistir
fs_encode
9,010
LDU_FT/ethereum/asyncio-cancel-token/cancellable_wait
LDU_FT
[ "<BEGIN>\n## `chain`", "Return a new CancelToken chaining this and the given token.", " The new CancelToken's triggered will return True if trigger() has been\n called on either of the chained tokens, but calling trigger() on the new token\n has no effect on either of the chained tokens.\n<...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the cancellable_wait API. 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 cancellable_wait API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Wait for the first awaitable to complete, unless we timeout or the token is triggered. Returns the result of the first awaitable to complete. Raises TimeoutError if we timeout or `~cancel_token.exceptions.OperationCancelled` if the cancel token is triggered. All pendin...
"Wait for the first awaitable to complete, unless we timeout or the\n token is triggered.\n\n Returns the result of the first awaitable to complete.\n\n Raises TimeoutError if we timeout or\n `~cancel_token.exceptions.OperationCancelled` if the cancel token is\n triggered.\n\n ...
15
false
ethereum/asyncio-cancel-token
cancellable_wait
9,011
LDU_FT/Kjwon15/autotweet/recreate_grams
LDU_FT
[ "<BEGIN>\n## `add_document`", "Add question answer set to DB.", " :param question: A question to an answer\n :type question: :class:`str`", " :param answer: An answer to a question\n :type answer: :class:`str`\n<END>", "<BEGIN>\n## `get_best_answer`", "Get best answer to a ques...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the recreate_grams API. 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 recreate_grams API. 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...
Re-create grams for database. In normal situations, you never need to call this method. But after migrate DB, this method is useful. :param session: DB session :type session: :class:`sqlalchemt.orm.Session`
"Re-create grams for database.\n\n In normal situations, you never need to call this method.\n But after migrate DB, this method is useful.\n\n :param session: DB session\n :type session: :class:`sqlalchemt.orm.Session`"
35
false
Kjwon15/autotweet
recreate_grams
9,012
LDU_FT/firecat53/urlscan/grp_list
LDU_FT
[ "<BEGIN>\n## `load_tlds`", "Load all legal TLD extensions from assets\n<END>", "<BEGIN>\n## `parse_text_urls`", "Parse a block of text, splitting it into its url and non-url\n components.\n<END>", "<BEGIN>\n## `extract_with_context`", "Extract URL and context from a given chunk.\n<END>", "<BEGIN>\n##...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the grp_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 extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the grp_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 extracte...
Organize list of items [a,2,3,4,a,4,2,a,1, etc...] like: [[a,2,3,4], [a,4,2], [a,1]], where 'a' is a urwid.Divider
"Organize list of items [a,2,3,4,a,4,2,a,1, etc...] like:\n [[a,2,3,4], [a,4,2], [a,1]], where 'a' is a urwid.Divider"
37
false
firecat53/urlscan
grp_list
9,013
LDU_FT/niccokunzmann/hanging_threads/get_current_frames
LDU_FT
[ "<BEGIN>\n## `start_monitoring`", "Start monitoring for hanging threads.", " seconds_frozen - How much time should thread hang to activate\n printing stack trace - default(10)", " tests_interval - Sleep time of monitoring thread (in milliseconds) \n - default(100)\n<END>", "<BEGIN>\n## `monitor`...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_current_frames 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_current_frames 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 current threads prepared for further processing.
"Return current threads prepared for \n further processing."
16
false
niccokunzmann/hanging_threads
get_current_frames
9,014
LDU_FT/matthew-brett/delocate/delocate_path
LDU_FT
[ "<BEGIN>\n## `back_tick`", "Run command `cmd`, return stdout, or stdout, stderr if `ret_err`", " Roughly equivalent to ``check_output`` in Python 2.7", " Parameters\n ----------\n cmd : sequence\n command to execute\n ret_err : bool, optional\n If True, return stderr in addition t...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the delocate_path API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the delocate_path API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
Copy required libraries for files in `tree_path` into `lib_path` Parameters ---------- tree_path : str Root path of tree to search for required libraries lib_path : str Directory into which we copy required libraries lib_filt_func : None or str or callable, optional If None,...
"Copy required libraries for files in `tree_path` into `lib_path`\n\n Parameters\n ----------\n tree_path : str\n Root path of tree to search for required libraries\n lib_path : str\n Directory into which we copy required libraries\n lib_filt_func : None or str or callable, optional\n ...
157
false
matthew-brett/delocate
delocate_path
9,015
LDU_FT/sci-bots/mpm/disable_plugin
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 disable_plugin API. 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 disable_plugin API. 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...
Disable plugin package(s). Parameters ---------- plugin_name : str or list Plugin package(s) to disable. Raises ------ IOError If plugin is not enabled.
"Disable plugin package(s).\n\n Parameters\n ----------\n plugin_name : str or list\n Plugin package(s) to disable.\n\n Raises\n ------\n IOError\n If plugin is not enabled."
181
false
sci-bots/mpm
disable_plugin
9,016
LDU_FT/noxdafox/pebble/task_done
LDU_FT
[ "<BEGIN>\n## `waitforqueues`", "Waits for one or more *Queue* to be ready or until *timeout* expires.", " *queues* is a list containing one or more *Queue.Queue* objects.\n If *timeout* is not None the function will block\n for the specified amount of seconds.", " The function returns a list conta...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the task_done API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the task_done API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
Set the tasks result and run the callback.
"Set the tasks result and run the callback."
83
false
noxdafox/pebble
task_done
9,017
LDU_FT/Shinichi-Nakagawa/pitchpx/action
LDU_FT
[ "<BEGIN>\n## `row`", "Game Dataset(Row)\n :return: {\n 'retro_game_id': Retrosheet Game id\n 'game_type': Game Type(S/R/F/D/L/W)\n 'game_type_des': Game Type Description\n (Spring Training or Regular Season or Wild-card Game or Divisional Series or LCS or World S...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the action API. 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 action API. 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 ...
action data :param action: action object(type:Beautifulsoup) :param game: MLBAM Game object :param rosters: Game Rosters :param inning_number: Inning Number :param inning_id: Inning Id(0:home 1:away) :return: { 'retro_game_id': Retrosheet Game id '...
"action data\n :param action: action object(type:Beautifulsoup)\n :param game: MLBAM Game object\n :param rosters: Game Rosters\n :param inning_number: Inning Number\n :param inning_id: Inning Id(0:home 1:away)\n :return: {\n 'retro_game_id': Retrosheet Game id\n ...
102
false
Shinichi-Nakagawa/pitchpx
action
9,018
LDU_FT/shmir/PyIxNetwork/get_obj_class
LDU_FT
[ "<BEGIN>\n## `reserve`", "Reserve port and optionally wait for port to come up.", " :param location: port location as 'ip/module/port'. If None, the location will be taken from the configuration.\n :param force: whether to revoke existing reservation (True) or not (False).\n :param wait_for...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_obj_class API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_obj_class API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
Returns the object class based on parent and object types. In most cases the object class can be derived from object type alone but sometimes the same object type name is used for different object types so the parent (or even grandparent) type is required in order to determine the exact object ...
"Returns the object class based on parent and object types.\n\n In most cases the object class can be derived from object type alone but sometimes the\n same object type name is used for different object types so the parent (or even\n grandparent) type is required in order to determine the exact ob...
64
false
shmir/PyIxNetwork
get_obj_class
9,019
LDU_FT/amperser/proselint/check_vtech
LDU_FT
[ "<BEGIN>\n## `check`", "Flag offensive words based on the GLAAD reference guide.\n<END>", "<BEGIN>\n## `score`", "Compute the linter's score on the corpus.", " Proselint's score reflects the desire to have a linter that catches many\n errors, but which takes false alarms seriously. It is better not to...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the check_vtech API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the check_vtech API. 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...
Suggest the correct name. source: Virginia Tech Division of Student Affairs source_url: http://bit.ly/2en1zbv
"Suggest the correct name.\n\n source: Virginia Tech Division of Student Affairs\n source_url: http://bit.ly/2en1zbv"
94
false
amperser/proselint
check_vtech
9,020
LDU_FT/hotzenklotz/pybeerxml/bitterness
LDU_FT
[ "<BEGIN>\n## `nodes_to_object`", "Map all child nodes to one object's attributes\n<END>", "<BEGIN>\n## `node_to_object`", "Map a single node to one object's attributes\n<END>", "<BEGIN>\n## `parse`", "Get a list of parsed recipes from BeerXML input\n<END>", "<BEGIN>\n## `to_lower`", "Helper function t...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the bitterness API. 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 bitterness API. 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...
Calculate bitterness based on chosen method
"Calculate bitterness based on chosen method"
10
false
hotzenklotz/pybeerxml
bitterness
9,021
LDU_FT/helium/helium-python/json
LDU_FT
[ "<BEGIN>\n## `error_for`", "Return the appropriate initialized exception class for a response.\n<END>", "<BEGIN>\n## `device_configuration`", "Get a specific device configuration.", " A device can have at most one loaded and one pending device\n configuration. This returns that device_configur...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the 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 extracted do...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the 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 extracted do...
Callback to validate and extract a JSON object. The returned callback checks a given response for the given status_code using :function:`response_boolean`. On success the response JSON is parsed and returned. Args: status_code(int): The http status code to consider a succe...
"Callback to validate and extract a JSON object.\n\n The returned callback checks a given response for the given\n status_code using :function:`response_boolean`. On success the\n response JSON is parsed and returned.\n\n Args:\n\n status_code(int): The http status code to conside...
223
false
helium/helium-python
json
9,022
LDU_FT/apetrynet/pyfilemail/update_company
LDU_FT
[ "<BEGIN>\n## `not_completed`", "Decorator function to check if user is loged in.", " :raises: :class:`FMBaseError` if not logged in\n<END>", "<BEGIN>\n## `_parse_recipients`", "Make sure we have a \",\" separated list of recipients", " :param to: Recipient(s)\n :type to: (str,\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update_company API. 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 update_company API. 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...
Update company settings :param company: updated settings :type company: ``dict`` :rtype: ``bool``
"Update company settings\n\n :param company: updated settings\n :type company: ``dict``\n :rtype: ``bool``"
116
false
apetrynet/pyfilemail
update_company
9,023
LDU_FT/onelogin/python3-saml/format_cert
LDU_FT
[ "<BEGIN>\n## `get_issuer`", "Gets the Issuer of the Logout Response Message\n :return: The Issuer\n :rtype: string\n<END>", "<BEGIN>\n## `get_status`", "Gets the Status\n :return: The Status\n :rtype: string\n<END>", "<BEGIN>\n## `is_valid`", "Determines if the SAML LogoutRespo...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the format_cert API. 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 format_cert API. 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 x509 cert (adding header & footer if required). :param cert: A x509 unformatted cert :type: string :param heads: True if we want to include head and footer :type: boolean :returns: Formatted cert :rtype: string
"Returns a x509 cert (adding header & footer if required).\n\n :param cert: A x509 unformatted cert\n :type: string\n\n :param heads: True if we want to include head and footer\n :type: boolean\n\n :returns: Formatted cert\n :rtype: string"
302
false
onelogin/python3-saml
format_cert
9,024
LDU_FT/gpennington/PyMarvel/get_characters
LDU_FT
[ "<BEGIN>\n## `get_comics`", "Returns a full ComicDataWrapper object for this creator.", " /creators/{creatorId}/comics", " :returns: ComicDataWrapper -- A new request to API. Contains full results set.\n<END>", "<BEGIN>\n## `get_events`", "Returns a full EventDataWrapper object for this cre...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_characters API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_characters API. 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...
Fetches lists of comic characters with optional filters. get /v1/public/characters/{characterId} :returns: CharacterDataWrapper >>> m = Marvel(public_key, private_key) >>> cdw = m.get_characters(orderBy="name,-modified", limit="5", offset="15") >>> print cdw.data.count ...
"Fetches lists of comic characters with optional filters.\n\n get /v1/public/characters/{characterId}\n\n :returns: CharacterDataWrapper\n\n >>> m = Marvel(public_key, private_key)\n >>> cdw = m.get_characters(orderBy=\"name,-modified\", limit=\"5\", offset=\"15\")\n >>> print cdw.da...
109
false
gpennington/PyMarvel
get_characters
9,025
LDU_FT/jazzband/django-push-notifications/apns_send_bulk_message
LDU_FT
[ "<BEGIN>\n## `get_prep_value`", "Return the integer value to be stored from the hex string\n<END>", "<BEGIN>\n## `from_db_value`", "Return an unsigned int representation from all db backends\n<END>", "<BEGIN>\n## `to_python`", "Return a str representation of the hexadecimal\n<END>", "<BEGIN>\n## `apns_s...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the apns_send_bulk_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....
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the apns_send_bulk_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....
Sends an APNS notification to one or more registration_ids. The registration_ids argument needs to be a list. Note that if set alert should always be a string. If it is not set, it won"t be included in the notification. You will need to pass None to this for silent notifications.
"Sends an APNS notification to one or more registration_ids.\n\tThe registration_ids argument needs to be a list.\n\n\tNote that if set alert should always be a string. If it is not set,\n\tit won\"t be included in the notification. You will need to pass None\n\tto this for silent notifications."
61
false
jazzband/django-push-notifications
apns_send_bulk_message
9,026
LDU_FT/HazyResearch/fonduer/_is_subspan
LDU_FT
[ "<BEGIN>\n## `construct_stable_id`", "Contruct a stable ID for a Context given its parent and its character\n offsets relative to the parent.\n<END>", "<BEGIN>\n## `split_stable_id`", "Split stable id, returning:", " * Document (root) stable ID\n * Context polymorphic type\n * Charac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _is_subspan API. 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 _is_subspan API. 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...
Tests if mention m is subspan of span, where span is defined specific to mention type.
"Tests if mention m is subspan of span, where span is defined\n specific to mention type."
540
false
HazyResearch/fonduer
_is_subspan
9,027
LDU_FT/moonso/vcftoolbox/print_headers
LDU_FT
[ "<BEGIN>\n## `get_vcf_header`", "Get the header lines of a vcf file", " Args:\n source(iterable): A vcf file", " Returns:\n head (HeaderParser): A headerparser object\n<END>", "<BEGIN>\n## `get_variant_dict`", "Parse a variant line", " Split a variant line and ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the print_headers API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the print_headers API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
Print the vcf headers. If a result file is provided headers will be printed here, otherwise they are printed to stdout. Args: head (HeaderParser): A vcf header object outfile (FileHandle): A file handle silent (Bool): If nothing should be printed.
"Print the vcf headers.\n \n If a result file is provided headers will be printed here, otherwise\n they are printed to stdout.\n \n Args:\n head (HeaderParser): A vcf header object\n outfile (FileHandle): A file handle\n silent (Bool): If nothing should be printed."
81
false
moonso/vcftoolbox
print_headers
9,028
LDU_FT/johnbywater/eventsourcing/receive_nack
LDU_FT
[ "<BEGIN>\n## `register_new_suffix_tree`", "Factory method, returns new suffix tree object.\n<END>", "<BEGIN>\n## `find_substring`", "Returns the index if substring in tree, otherwise -1.\n<END>", "<BEGIN>\n## `_canonize_suffix`", "This canonizes the suffix, walking along its suffix string until it\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the receive_nack API. 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 receive_nack API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
Returns a new Prepare message if the number of Nacks received reaches a quorum.
"Returns a new Prepare message if the number of Nacks received reaches\n a quorum."
161
false
johnbywater/eventsourcing
receive_nack
9,029
LDU_FT/akx/lepo/add_handlers
LDU_FT
[ "<BEGIN>\n## `resolve_reference`", "Resolve a JSON Pointer object reference to the object itself.", " :param ref: Reference string (`#/foo/bar`, for instance)\n :return: The object, if found\n :raises jsonschema.exceptions.RefResolutionError: if there is trouble resolving the reference\n<EN...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_handlers API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_handlers API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
Add handler functions from the given `namespace`, for instance a module. The namespace may be a string, in which case it is expected to be a name of a module. It may also be a dictionary mapping names to functions. Only non-underscore-prefixed functions and methods are imported. :para...
"Add handler functions from the given `namespace`, for instance a module.\n\n The namespace may be a string, in which case it is expected to be a name of a module.\n It may also be a dictionary mapping names to functions.\n\n Only non-underscore-prefixed functions and methods are imported.\n\n ...
36
false
akx/lepo
add_handlers
9,030
LDU_FT/ecederstrand/exchangelib/call
LDU_FT
[ "<BEGIN>\n## `wrap`", "Generate the necessary boilerplate XML for a raw SOAP request. The XML is specific to the server version.\n ExchangeImpersonation allows to act as the user we want to impersonate.\n<END>", "<BEGIN>\n## `get_auth_instance`", "Returns an *Auth instance suitable for the requests package...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the call API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the call API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
Returns all items in an account that correspond to a list of ID's, in stable order. :param items: a list of (id, changekey) tuples or Item objects :param additional_fields: the extra fields that should be returned with the item, as FieldPath objects :param shape: The shape of returned objects ...
"Returns all items in an account that correspond to a list of ID's, in stable order.\n\n :param items: a list of (id, changekey) tuples or Item objects\n :param additional_fields: the extra fields that should be returned with the item, as FieldPath objects\n :param shape: The shape of returned obje...
83
false
ecederstrand/exchangelib
call
9,031
LDU_FT/rfk/django-supervisor/_handle_autoreload
LDU_FT
[ "<BEGIN>\n## `_handle_shell`", "Command 'supervisord shell' runs the interactive command shell.\n<END>", "<BEGIN>\n## `_handle_getconfig`", "Command 'supervisor getconfig' prints merged config to stdout.\n<END>", "<BEGIN>\n## `_handle_autoreload`", "Command 'supervisor autoreload' watches for code changes...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _handle_autoreload 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 _handle_autoreload 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...
Command 'supervisor autoreload' watches for code changes. This command provides a simulation of the Django dev server's auto-reloading mechanism that will restart all supervised processes. It's not quite as accurate as Django's autoreloader because it runs in a separate process, so it ...
"Command 'supervisor autoreload' watches for code changes.\n\n This command provides a simulation of the Django dev server's\n auto-reloading mechanism that will restart all supervised processes.\n\n It's not quite as accurate as Django's autoreloader because it runs\n in a separate process,...
30
false
rfk/django-supervisor
_handle_autoreload
9,032
LDU_FT/DataBiosphere/toil/_executor
LDU_FT
[ "<BEGIN>\n## `html_page_context`", "Event handler for the html-page-context signal.\n Modifies the context directly.\n - Replaces the 'toc' value created by the HTML builder with one\n that shows all document titles and the local table of contents.\n - Sets display_toc to True so the table of con...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _executor API. 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 _executor API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
This is the core wrapping method for running the job within a worker. It sets up the stats and logging before yielding. After completion of the body, the function will finish up the stats and logging, and starts the async update process for the job.
"This is the core wrapping method for running the job within a worker. It sets up the stats\n and logging before yielding. After completion of the body, the function will finish up the\n stats and logging, and starts the async update process for the job."
1,322
true
DataBiosphere/toil
_executor
9,033
LDU_FT/kontron/python-ipmi/set_routing
LDU_FT
[ "<BEGIN>\n## `sel_entries`", "Generator which returns all SEL entries.\n<END>", "<BEGIN>\n## `initiate_upgrade_action`", "Initiate Upgrade Action\n components:\n action:\n ACTION_BACKUP_COMPONENT = 0x00\n ACTION_PREPARE_COMPONENT = 0x01\n ACTION_UPLOAD_FOR_UPGRAD...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_routing API. 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 set_routing API. 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...
Set the path over which a target is reachable. The path is given as a list of tuples in the form (address, bridge_channel). Example #1: access to an ATCA blade in a chassis slave = 0x81, target = 0x82 routing = [(0x81,0x20,0),(0x20,0x82,None)] Example #2: a...
"Set the path over which a target is reachable.\n\n The path is given as a list of tuples in the form (address,\n bridge_channel).\n\n Example #1: access to an ATCA blade in a chassis\n slave = 0x81, target = 0x82\n routing = [(0x81,0x20,0),(0x20,0x82,None)]\n\n Exa...
87
false
kontron/python-ipmi
set_routing
9,034
LDU_FT/minrk/findspark/change_rc
LDU_FT
[ "<BEGIN>\n## `find`", "Find a local spark installation.", " Will first check the SPARK_HOME env variable, and otherwise\n search common installation locations, e.g. from homebrew\n<END>", "<BEGIN>\n## `change_rc`", "Persists changes to environment by changing shell config.", " Adds lines to .bash...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the change_rc API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the change_rc API. 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...
Persists changes to environment by changing shell config. Adds lines to .bashrc to set environment variables including the adding of dependencies to the system path. Will only edit this file if they already exist. Currently only works for bash. Parameters ---------- spark_home : str Pa...
"Persists changes to environment by changing shell config.\n\n Adds lines to .bashrc to set environment variables\n including the adding of dependencies to the system path. Will only\n edit this file if they already exist. Currently only works for bash.\n\n Parameters\n ----------\n spark_home : str\n...
25
false
minrk/findspark
change_rc
9,035
LDU_FT/AlexMathew/scrapple/execute_command
LDU_FT
[ "<BEGIN>\n## `execute_command`", "The web command runs the Scrapple web interface through a simple \\\n `Flask <http://flask.pocoo.org>`_ app. ", " When the execute_command() method is called from the \\\n :ref:`runCLI() <implementation-cli>` function, it starts of two simultaneous \\\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the execute_command API. 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 execute_command API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
The run command implements the web content extractor corresponding to the given \ configuration file. The execute_command() validates the input project name and opens the JSON \ configuration file. The run() method handles the execution of the extractor run. The extractor implementati...
"The run command implements the web content extractor corresponding to the given \\\n configuration file. \n\n The execute_command() validates the input project name and opens the JSON \\\n configuration file. The run() method handles the execution of the extractor run.\n\n The extractor imp...
62
false
AlexMathew/scrapple
execute_command
9,036
LDU_FT/TissueMAPS/TmClient/prompt_for_credentials
LDU_FT
[ "<BEGIN>\n## `map_logging_verbosity`", "Parameters\n ----------\n verbosity: int\n logging verbosity level (0-4)", " Returns\n -------\n A logging level as exported by `logging` module.\n By default returns logging.NOTSET", " Raises\n ------\n TypeError\n when `verbosi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the prompt_for_credentials 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 prompt_for_credentials API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
Prompt `username` for password. Parameters ---------- username: str name of the TissueMAPS user Returns ------- str password for the given user
"Prompt `username` for password.\n\n Parameters\n ----------\n username: str\n name of the TissueMAPS user\n\n Returns\n -------\n str\n password for the given user"
203
false
TissueMAPS/TmClient
prompt_for_credentials
9,037
LDU_FT/exxeleron/qPython/array_from_raw_qtemporal
LDU_FT
[ "<BEGIN>\n## `read`", "Reads and optionally parses a single message.", " :Parameters:\n - `source` - optional data buffer to be read, if not specified data is \n read from the wrapped stream\n :Options:\n - `raw` (`boolean`) - indicates whether read data should parsed or ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the array_from_raw_qtemporal 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 array_from_raw_qtemporal API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio...
Converts `numpy.array` containing raw q representation to ``datetime64``/``timedelta64`` array. Examples: >>> raw = numpy.array([366, 121, qnull(QDATE)]) >>> print(array_from_raw_qtemporal(raw, qtype = QDATE)) ['2001-01-01' '2000-05-01' 'NaT'] :Parameters: - `raw` (`num...
"Converts `numpy.array` containing raw q representation to ``datetime64``/``timedelta64``\n array.\n \n Examples:\n \n >>> raw = numpy.array([366, 121, qnull(QDATE)])\n >>> print(array_from_raw_qtemporal(raw, qtype = QDATE))\n ['2001-01-01' '2000-05-01' 'NaT']\n \n :Parameters:\n - ...
127
false
exxeleron/qPython
array_from_raw_qtemporal
9,038
LDU_FT/Groundworkstech/pybfd/archive_filenames
LDU_FT
[ "<BEGIN>\n## `generate_source_files`", "Genertate source files to be used during the compile process of the\n extension module.\n This is better than just hardcoding the values on python files because\n header definitions might change along differente Binutils versions and\n we'll be a...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the archive_filenames API. 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 archive_filenames API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Return the list of files inside an archive file.
"Return the list of files inside an archive file."
96
false
Groundworkstech/pybfd
archive_filenames
9,039
LDU_FT/faxir/faxir-python/update_outbox_fax
LDU_FT
[ "<BEGIN>\n## `get_number`", "Get number information # noqa: E501", " Get info of a single number # noqa: E501\n This method makes a synchronous HTTP request by default. To make an\n asynchronous HTTP request, please pass async=True\n >>> thread = api.get_number(number, async=True)\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update_outbox_fax API. 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 update_outbox_fax API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Modify a fax record in outbox # noqa: E501 Modify outbox record's comment # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async=True >>> thread = api.update_outbox_fax(outbox_fax_id, payload_outbox_modification, a...
"Modify a fax record in outbox # noqa: E501\n\n Modify outbox record's comment # noqa: E501\n This method makes a synchronous HTTP request by default. To make an\n asynchronous HTTP request, please pass async=True\n >>> thread = api.update_outbox_fax(outbox_fax_id, payload_outbox_modificat...
80
false
faxir/faxir-python
update_outbox_fax
9,040
LDU_FT/ahwillia/tensortools/hclust_linearize
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 hclust_linearize API. 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 hclust_linearize API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Sorts the rows of a matrix by hierarchical clustering. Parameters: U (ndarray) : matrix of data Returns: prm (ndarray) : permutation of the rows
"Sorts the rows of a matrix by hierarchical clustering.\n\n Parameters:\n U (ndarray) : matrix of data\n\n Returns:\n prm (ndarray) : permutation of the rows"
158
false
ahwillia/tensortools
hclust_linearize
9,041
LDU_FT/cds-astro/ipyaladin/add_moc_from_URL
LDU_FT
[ "<BEGIN>\n## `add_catalog_from_URL`", "load a VOTable table from an url and load its data into the widget \n Args:\n votable_URL: string url\n votable_options: dictionary object\n<END>", "<BEGIN>\n## `add_moc_from_URL`", "load a MOC from a URL and display it in Aladin ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_moc_from_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 ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_moc_from_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 ...
load a MOC from a URL and display it in Aladin Lite widget Arguments: moc_URL: string url moc_options: dictionary object
"load a MOC from a URL and display it in Aladin Lite widget\n Arguments:\n moc_URL: string url\n moc_options: dictionary object"
12
false
cds-astro/ipyaladin
add_moc_from_URL
9,042
LDU_FT/cloudera/impyla/fetchcbatch
LDU_FT
[ "<BEGIN>\n## `drop_database`", "Parameters:\n - name\n - deleteData\n - cascade\n<END>", "<BEGIN>\n## `get_fields`", "Parameters:\n - db_name\n - table_name\n<END>", "<BEGIN>\n## `get_fields_with_environment_context`", "Parameters:\n - db_name\n - table_name\n - environment...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the fetchcbatch API. 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 fetchcbatch API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
Return a CBatch object of any data currently in the buffer or if no data currently in buffer then fetch a batch
"Return a CBatch object of any data currently in the buffer or\n if no data currently in buffer then fetch a batch"
206
false
cloudera/impyla
fetchcbatch
9,043
LDU_FT/jlevy/strif/temp_output_dir
LDU_FT
[ "<BEGIN>\n## `new_timestamped_uid`", "A unique id that begins with an ISO timestamp followed by fractions of seconds and bits of\n randomness. The advantage of this is it sorts nicely by time, while still being unique.\n Example: 20150912T084555Z-378465-43vtwbx\n<END>", "<BEGIN>\n## `abbreviate_str`", "Abbr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the temp_output_dir API. 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 temp_output_dir API. 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...
A context manager for convenience in creating a temporary directory, which is deleted when exiting the context. Usage: with temp_output_dir() as dirname: ...
"A context manager for convenience in creating a temporary directory,\n which is deleted when exiting the context.\n\n Usage:\n with temp_output_dir() as dirname:\n ..."
38
false
jlevy/strif
temp_output_dir
9,044
LDU_FT/getnikola/coil/new
LDU_FT
[ "<BEGIN>\n## `orphans_single`", "Remove all orphans in the site, in the single user-mode.\n<END>", "<BEGIN>\n## `password_hash`", "Hash the password, using bcrypt+sha256.", " .. versionchanged:: 1.1.0", " :param str password: Password in plaintext\n :return: password hash\n :rtype: str\n<END>"...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the new API. 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 new API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
Create a new post or page. :param str obj: Object to create (post or page)
"Create a new post or page.\n\n :param str obj: Object to create (post or page)"
68
false
getnikola/coil
new
9,045
LDU_FT/lgiordani/dictregister/dpop
LDU_FT
[ "<BEGIN>\n## `kadd`", "Adds the given key/value to all elements.\n Single values for a key are stored directly, as key:value, multiple\n values for the same key are stored as key,set(values).\n<END>", "<BEGIN>\n## `kreplace`", "Replaces the given key/value for each element.\n If the key i...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the dpop API. 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 dpop API. 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...
Pops and returns the first element that matches the given specification. If no elements are found raises IndexError.
"Pops and returns the first element that matches the\n given specification. If no elements are found\n raises IndexError."
14
false
lgiordani/dictregister
dpop
9,046
LDU_FT/adblair/configloader/update_from_object
LDU_FT
[ "<BEGIN>\n## `update_from_object`", "Update dict from the attributes of a module, class or other object.", " By default only attributes with all-uppercase names will be retrieved.\n Use the ``criterion`` argument to modify that behaviour.", " :arg obj: Either the actual module/object, or ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update_from_object API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update_from_object API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
Update dict from the attributes of a module, class or other object. By default only attributes with all-uppercase names will be retrieved. Use the ``criterion`` argument to modify that behaviour. :arg obj: Either the actual module/object, or its absolute name, e.g. 'my_app.settings...
"Update dict from the attributes of a module, class or other object.\n\n By default only attributes with all-uppercase names will be retrieved.\n Use the ``criterion`` argument to modify that behaviour.\n\n :arg obj: Either the actual module/object, or its absolute name, e.g.\n 'my_app.s...
30
false
adblair/configloader
update_from_object
9,047
LDU_FT/Dallinger/Dallinger/check_credentials
LDU_FT
[ "<BEGIN>\n## `setup`", "Setup the networks.", " Setup only does stuff if there are no networks, this is so it only\n runs once at the start of the experiment. It first calls the same\n function in the super (see experiments.py in dallinger). Then it adds a\n source to each network.\n...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the check_credentials API. 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 check_credentials API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Verifies key/secret/host combination by making a balance inquiry
"Verifies key/secret/host combination by making a balance inquiry"
425
false
Dallinger/Dallinger
check_credentials
9,048
LDU_FT/KushalP/serfclient-py/event
LDU_FT
[ "<BEGIN>\n## `call`", "Sends the provided command to Serf for evaluation, with\n any parameters as the message body.\n<END>", "<BEGIN>\n## `handshake`", "Sets up the connection with the Serf agent and does the\n initial handshake.\n<END>", "<BEGIN>\n## `auth`", "Performs the initial authenti...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the event API. 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 event API. 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...
Send an event to the cluster. Can take an optional payload as well, which will be sent in the form that it's provided.
"Send an event to the cluster. Can take an optional payload as well,\n which will be sent in the form that it's provided."
18
false
KushalP/serfclient-py
event
9,049
LDU_FT/grst/geos/print_map
LDU_FT
[ "<BEGIN>\n## `griditer`", "Iterate through a grid of tiles.", " Args:\n x (int): x start-coordinate\n y (int): y start-coordinate\n ncol (int): number of tile columns\n nrow (int): number of tile rows. If not specified, this\n defaults to ncol, s.t. a quadratic region i...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the print_map API. 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 print_map API. 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...
Download map tiles and stitch them together in a single image, ready for printing. Args: map_source (MapSource): Map to download x (float): map center x-coordinate in Mercator projection (EPSG:4326) y (float): map center y-coordinate in Mercator projection (EPSG:4326) zoom (int): ti...
"Download map tiles and stitch them together in a single image, ready for printing.\n\n Args:\n map_source (MapSource): Map to download\n x (float): map center x-coordinate in Mercator projection (EPSG:4326)\n y (float): map center y-coordinate in Mercator projection (EPSG:4326)\n zoom (i...
153
false
grst/geos
print_map
9,050
LDU_FT/rtfd/sphinx-autoapi/is_exception
LDU_FT
[ "<BEGIN>\n## `load`", "Load objects from the filesystem into the ``paths`` dictionary.\n<END>", "<BEGIN>\n## `read_file`", "Read file input into memory, returning deserialized objects", " :param path: Path of file to read\n :param \\**kwargs:\n * ignore (``list``): List of file patt...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_exception API. 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 is_exception API. 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...
Check if a class is an exception. :param node: The node to check. :type node: astroid.nodes.ClassDef :returns: True if the class is an exception, False otherwise. :rtype: bool
"Check if a class is an exception.\n\n :param node: The node to check.\n :type node: astroid.nodes.ClassDef\n\n :returns: True if the class is an exception, False otherwise.\n :rtype: bool"
169
false
rtfd/sphinx-autoapi
is_exception
9,051
LDU_FT/axltxl/m2bk/msg
LDU_FT
[ "<BEGIN>\n## `chkstr`", "Small routine for checking whether a string is empty\n even a string", " :param s: the string in question\n :param v: variable name\n<END>", "<BEGIN>\n## `load`", "Load this driver", " Note that if either aws_access_key_id or aws_secret_access_key are\n not specifie...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the msg API. 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 msg API. 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...
Log a regular message :param message: the message to be logged
"Log a regular message\n\n :param message: the message to be logged"
83
false
axltxl/m2bk
msg
9,052
LDU_FT/briney/abutils/mafft
LDU_FT
[ "<BEGIN>\n## `cluster`", "Perform sequence clustering with CD-HIT.", " Args:", " seqs (list): An iterable of sequences, in any format that `abutils.utils.sequence.Sequence()`\n can handle", " threshold (float): Clustering identity threshold. Default is `0.975`.", " out_f...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the mafft API. 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 mafft API. 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...
Performs multiple sequence alignment with MAFFT. Args: sequences (list): Sequences to be aligned. ``sequences`` can be one of four things: 1. a FASTA-formatted string 2. a list of BioPython ``SeqRecord`` objects 3. a list of AbTools ``Sequence`` objects ...
"Performs multiple sequence alignment with MAFFT.\n\n Args:\n\n sequences (list): Sequences to be aligned. ``sequences`` can be one of four things:\n\n 1. a FASTA-formatted string\n\n 2. a list of BioPython ``SeqRecord`` objects\n\n 3. a list of AbTools ``Sequence`` objects\n\...
445
false
briney/abutils
mafft
9,053
LDU_FT/twoolie/NBT/write_chunk
LDU_FT
[ "<BEGIN>\n## `stats_per_chunk`", "Given a chunk, increment the block types with the number of blocks found\n<END>", "<BEGIN>\n## `bounded_stats_per_chunk`", "Given a chunk, return the number of blocks types within the specified selection\n<END>", "<BEGIN>\n## `process_region_file`", "Given a region, retur...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the write_chunk API. 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 write_chunk API. 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...
Pack the NBT file as binary data, and write to file in a compressed format.
"Pack the NBT file as binary data, and write to file in a compressed format."
84
false
twoolie/NBT
write_chunk
9,054
LDU_FT/RPi-Distro/python-sense-hat/_load_text_assets
LDU_FT
[ "<BEGIN>\n## `_load_text_assets`", "Internal. Builds a character indexed dictionary of pixels used by the\n show_message function below\n<END>", "<BEGIN>\n## `_trim_whitespace`", "Internal. Trims white space pixels from the front and back of loaded\n text characters\n<END>", "<BEGIN>\n## `_get...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _load_text_assets API. 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 _load_text_assets API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Internal. Builds a character indexed dictionary of pixels used by the show_message function below
"Internal. Builds a character indexed dictionary of pixels used by the\n show_message function below"
75
false
RPi-Distro/python-sense-hat
_load_text_assets
9,055
LDU_FT/facelessuser/soupsieve/is_root
LDU_FT
[ "<BEGIN>\n## `get_version`", "Get version and version_info without importing the entire module.\n<END>", "<BEGIN>\n## `css_unescape`", "Unescape CSS value.", " Strings allow for spanning the value on multiple strings by escaping a new line.\n<END>", "<BEGIN>\n## `parse_attribute_selector`", "Create a...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_root API. 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 is_root API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
Return whether element is a root element. We check that the element is the root of the tree (which we have already pre-calculated), and we check if it is the root element under an `iframe`.
"Return whether element is a root element.\n\n We check that the element is the root of the tree (which we have already pre-calculated),\n and we check if it is the root element under an `iframe`."
39
false
facelessuser/soupsieve
is_root
9,056
LDU_FT/coala/coala-decorators-USE-cOALA-UTILS-INSTEAD/generate_ordering
LDU_FT
[ "<BEGIN>\n## `yield_once`", "Decorator to make an iterator returned by a method yield each result only\n once.", " >>> @yield_once\n ... def generate_list(foo):\n ... return foo\n >>> list(generate_list([1, 2, 1]))\n [1, 2]", " :param iterator: Any method that returns an iterator\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the generate_ordering API. 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 generate_ordering API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Decorator that generates ordering operators for the decorated class based on the given member names. All ordering except equality functions will raise a TypeError when a comparison with an unrelated class is attempted. (Comparisons with child classes will thus work fine with the capabilities of the base...
"Decorator that generates ordering operators for the decorated class based\n on the given member names. All ordering except equality functions will\n raise a TypeError when a comparison with an unrelated class is attempted.\n (Comparisons with child classes will thus work fine with the capabilities\n of the...
35
false
coala/coala-decorators-USE-cOALA-UTILS-INSTEAD
generate_ordering
9,057
LDU_FT/pytorch/ignite/attach
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 attach API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the attach API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Register callbacks to control the timer. Args: engine (Engine): Engine that this timer will be attached to. start (Events): Event which should start (reset) the timer. pause (Events): Event which should pause the timer. ...
"Register callbacks to control the timer.\n\n Args:\n engine (Engine):\n Engine that this timer will be attached to.\n start (Events):\n Event which should start (reset) the timer.\n pause (Events):\n Event which should pause the timer...
110
false
pytorch/ignite
attach
9,058
LDU_FT/vovanec/httputil/_make_session
LDU_FT
[ "<BEGIN>\n## `_request`", "Perform asynchronous request.", " :param str url: request URL.\n :param str method: request method.\n :param dict headers: request headers.\n :param object data: JSON-encodable object.\n :param object -> object result_callback: result callback.", "...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _make_session API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _make_session API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
Create session object. :rtype: requests.Session
"Create session object.\n\n :rtype: requests.Session"
49
false
vovanec/httputil
_make_session
9,059
LDU_FT/RIPE-NCC/ripe-atlas-cousteau/update_http_method_params
LDU_FT
[ "<BEGIN>\n## `update_get_params`", "Update HTTP GET params with the given fields that user wants to fetch.\n<END>", "<BEGIN>\n## `_fetch_meta_data`", "Makes an API call to fetch meta data for the given probe and stores the raw data.\n<END>", "<BEGIN>\n## `_populate_data`", "Assing some probe's raw meta da...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update_http_method_params 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 update_http_method_params API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi...
Update HTTP url parameters based on msm_id and query filters if there are any.
"Update HTTP url parameters based on msm_id and query filters if\n there are any."
62
false
RIPE-NCC/ripe-atlas-cousteau
update_http_method_params
9,060
LDU_FT/saeschdivara/ArangoPy/create_edge
LDU_FT
[ "<BEGIN>\n## `all`", "Returns all documents of the collection", " :param collection Collection instance\n :param skip The number of documents to skip in the query\n :param limit The maximal amount of documents to return. The skip is applied before the limit restriction.", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_edge API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_edge API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
Creates edge document. :param from_doc Document from which the edge comes :param to_doc Document to which the edge goes :param edge_data Extra data for the edge :returns Document
"Creates edge document.\n\n :param from_doc Document from which the edge comes\n :param to_doc Document to which the edge goes\n :param edge_data Extra data for the edge\n\n :returns Document"
115
false
saeschdivara/ArangoPy
create_edge
9,061
LDU_FT/Valuehorizon/valuehorizon-companies/get_immediate_children_ownership
LDU_FT
[ "<BEGIN>\n## `get_all_children`", "Return all subsidiaries of this company.\n<END>", "<BEGIN>\n## `get_all_related_companies`", "Return all parents and subsidiaries of the company\n Include the company if include_self = True\n<END>", "<BEGIN>\n## `get_immediate_children`", "Return all direct subsid...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_immediate_children_ownership API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its c...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_immediate_children_ownership API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its c...
Return all direct subsidiaries of this company AS OWNERSHIP OBJECTS. Excludes subsidiaries of subsidiaries.
"Return all direct subsidiaries of this company AS OWNERSHIP OBJECTS.\n Excludes subsidiaries of subsidiaries."
20
false
Valuehorizon/valuehorizon-companies
get_immediate_children_ownership
9,062
LDU_FT/galaxyproject/pulsar/build_managers
LDU_FT
[ "<BEGIN>\n## `__posix_to_local_path`", "Converts a posix path (coming from Galaxy), to a local path (be it posix or Windows).", " >>> import ntpath\n >>> __posix_to_local_path('dataset_1_files/moo/cow', local_path_module=ntpath)\n 'dataset_1_files\\\\\\\\moo\\\\\\\\cow'\n >>> import posixpath\n >...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the build_managers API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the build_managers API. 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...
Takes in a config file as outlined in job_managers.ini.sample and builds a dictionary of job manager objects from them.
"Takes in a config file as outlined in job_managers.ini.sample and builds\n a dictionary of job manager objects from them."
142
false
galaxyproject/pulsar
build_managers
9,063
LDU_FT/NORDUnet/python-norduniclient/get_node_meta_type
LDU_FT
[ "<BEGIN>\n## `get_db_driver`", ":param uri: Bolt uri\n :type uri: str\n :param username: Neo4j username\n :type username: str\n :param password: Neo4j password\n :type password: str\n :param encrypted: Use TLS\n :type encrypted: Boolean\n :param max_pool_size: Maximum number of idle sessio...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_node_meta_type API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_node_meta_type API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
Returns the meta type of the supplied node as a string. :param manager: Neo4jDBSessionManager :param handle_id: Unique id :return: string
"Returns the meta type of the supplied node as a string.\n\n :param manager: Neo4jDBSessionManager\n :param handle_id: Unique id\n :return: string"
71
false
NORDUnet/python-norduniclient
get_node_meta_type
9,064
LDU_FT/markchil/gptools/_compute_dk_dy
LDU_FT
[ "<BEGIN>\n## `matern_function`", "r\"\"\"Matern covariance function of arbitrary dimension, for use with :py:class:`ArbitraryKernel`.", " The Matern kernel has the following hyperparameters, always referenced in\n the order listed:", " = ===== ====================================\n 0 sigma prefact...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _compute_dk_dy API. 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 _compute_dk_dy API. 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...
r"""Evaluate the derivative of the outer form of the Matern kernel. Uses the general Leibniz rule to compute the n-th derivative of: .. math:: f(y) = \frac{2^{1-\nu}}{\Gamma(\nu)} y^{\nu/2} K_\nu(y^{1/2}) Parameters ---------- y : :...
"r\"\"\"Evaluate the derivative of the outer form of the Matern kernel.\n \n Uses the general Leibniz rule to compute the n-th derivative of:\n \n .. math::\n \n f(y) = \\frac{2^{1-\\nu}}{\\Gamma(\\nu)} y^{\\nu/2} K_\\nu(y^{1/2})\n \n Parameters\n -----...
496
false
markchil/gptools
_compute_dk_dy
9,065
LDU_FT/Element-34/py.saunter/verify_is_not_none
LDU_FT
[ "<BEGIN>\n## `get_random_user`", "Gets a random user from the provider", " :returns: Dictionary\n<END>", "<BEGIN>\n## `is_element_available`", "Synchronization method for making sure the element we're looking for is not only on the page,\n but also visible -- since Se will happily deal with th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the verify_is_not_none API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the verify_is_not_none API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
Soft assert for whether the expr is not None :params want: the object to compare against :params second: the object to compare with :params msg: (Optional) msg explaining the difference
"Soft assert for whether the expr is not None\n\n :params want: the object to compare against\n :params second: the object to compare with\n :params msg: (Optional) msg explaining the difference"
81
false
Element-34/py.saunter
verify_is_not_none
9,066
LDU_FT/aws/aws-encryption-sdk-python/_read_bytes
LDU_FT
[ "<BEGIN>\n## `_encryption_context_hash`", "Generates the expected hash for the provided encryption context.", " :param hasher: Existing hasher to use\n :type hasher: cryptography.hazmat.primitives.hashes.Hash\n :param dict encryption_context: Encryption context to hash\n :returns: Complete hash\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _read_bytes API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _read_bytes API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
Reads the requested number of bytes from a streaming message body. :param int b: Number of bytes to read :raises NotSupportedError: if content type is not supported
"Reads the requested number of bytes from a streaming message body.\n\n :param int b: Number of bytes to read\n :raises NotSupportedError: if content type is not supported"
364
false
aws/aws-encryption-sdk-python
_read_bytes
9,067
LDU_FT/calmjs/calmjs.parse/encode_sourcemap
LDU_FT
[ "<BEGIN>\n## `optimize_structure_handler`", "Produce an \"optimized\" version of handler for the dispatcher to\n limit reference lookups.\n<END>", "<BEGIN>\n## `optimize_layout_handler`", "Produce an \"optimized\" version of handler for the dispatcher to\n limit reference lookups.\n<END>", "<BEGIN>\n#...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the encode_sourcemap API. 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 encode_sourcemap API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Take a filename, mappings and names produced from the write function and sources. As the write function currently does not handle the tracking of source filenames, the sources should be a list of one element with the original filename. Arguments filename The target filename that the strea...
"Take a filename, mappings and names produced from the write function\n and sources. As the write function currently does not handle the\n tracking of source filenames, the sources should be a list of one\n element with the original filename.\n\n Arguments\n\n filename\n The target filename that ...
253
false
calmjs/calmjs.parse
encode_sourcemap
9,068
LDU_FT/postlund/pyatv/initialize
LDU_FT
[ "<BEGIN>\n## `lookup_tag`", "Look up a tag based on its key. Returns a DmapTag.\n<END>", "<BEGIN>\n## `scan_for_apple_tvs`", "Scan for Apple TVs using zeroconf (bonjour) and returns them.\n<END>", "<BEGIN>\n## `add_service`", "Handle callback from zeroconf when a service has been discovered.\n<END>", "<...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the initialize API. 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 initialize API. 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...
Initialize handler operation. This method will generate new encryption keys and must be called prior to doing authentication or verification.
"Initialize handler operation.\n\n This method will generate new encryption keys and must be called prior\n to doing authentication or verification."
146
false
postlund/pyatv
initialize
9,069
LDU_FT/svenevs/exhale/reparentAll
LDU_FT
[ "<BEGIN>\n## `apply_sphinx_configurations`", "This method applies the various configurations users place in their ``conf.py``, in\n the dictionary ``exhale_args``. The error checking seems to be robust, and\n borderline obsessive, but there may very well be some glaring flaws.", " When the user reques...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the reparentAll API. 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 reparentAll API. 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...
Fixes some of the parental relationships lost in parsing the Breathe graph. File relationships are recovered in :func:`~exhale.graph.ExhaleRoot.fileRefDiscovery`. This method simply calls in this order: 1. :func:`~exhale.graph.ExhaleRoot.reparentUnions` 2. :func:`~exhale.graph....
"Fixes some of the parental relationships lost in parsing the Breathe graph.\n File relationships are recovered in\n :func:`~exhale.graph.ExhaleRoot.fileRefDiscovery`. This method simply calls in\n this order:\n\n 1. :func:`~exhale.graph.ExhaleRoot.reparentUnions`\n 2. :func:`~exhale...
239
false
svenevs/exhale
reparentAll
9,070
LDU_FT/sckott/pygbif/name_suggest
LDU_FT
[ "<BEGIN>\n## `name_suggest`", "A quick and simple autocomplete service that returns up to 20 name usages by\n doing prefix matching against the scientific name. Results are ordered by relevance.", " :param q: [str] Simple search parameter. The value for this parameter can be a\n simple word or a phrase. W...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the name_suggest API. 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 name_suggest API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
A quick and simple autocomplete service that returns up to 20 name usages by doing prefix matching against the scientific name. Results are ordered by relevance. :param q: [str] Simple search parameter. The value for this parameter can be a simple word or a phrase. Wildcards can be added to the simple word pa...
"A quick and simple autocomplete service that returns up to 20 name usages by\n doing prefix matching against the scientific name. Results are ordered by relevance.\n\n :param q: [str] Simple search parameter. The value for this parameter can be a\n simple word or a phrase. Wildcards can be added to the simple wo...
300
false
sckott/pygbif
name_suggest
9,071
LDU_FT/QuantEcon/QuantEcon.py/solve
LDU_FT
[ "<BEGIN>\n## `backward_induction`", "r\"\"\"\n Solve by backward induction a :math:`T`-period finite horizon\n discrete dynamic program with stationary reward and transition\n probability functions :math:`r` and :math:`q` and discount factor\n :math:`\\beta \\in [0, 1]`.", " The optimal value fun...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the solve API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the solve API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
r""" Solve the IVP by integrating the ODE given some initial condition. Parameters ---------- t0 : float Initial condition for the independent variable. y0 : array_like (float, shape=(n,)) Initial condition for the dependent variables. h : float, ...
"r\"\"\"\n Solve the IVP by integrating the ODE given some initial condition.\n\n Parameters\n ----------\n t0 : float\n Initial condition for the independent variable.\n y0 : array_like (float, shape=(n,))\n Initial condition for the dependent variables.\n ...
1,292
true
QuantEcon/QuantEcon.py
solve
9,072