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/openego/ding0/build_residential_branches
LDU_FT
[ "<BEGIN>\n## `print_upper_triangular_matrix`", "Prints a CVRP data dict matrix", " Arguments\n ---------\n matrix : dict\n Description", " Notes\n -----\n It is assummed that the first row of matrix contains all needed headers.\n<END>", "<BEGIN>\n## `print_upper_triangular_matrix_as...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the build_residential_branches API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclus...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the build_residential_branches API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclus...
Based on population and identified peak load data, the according grid topology for residential sector is determined and attached to the grid graph Parameters ---------- lvgd : LVGridDistrictDing0 Low-voltage grid district object
"Based on population and identified peak load data, the according grid\n topology for residential sector is determined and attached to the grid graph\n\n Parameters\n ----------\n lvgd : LVGridDistrictDing0\n Low-voltage grid district object"
932
false
openego/ding0
build_residential_branches
24,973
LDU_FT/Yubico/yubikey-manager/write_object
LDU_FT
[ "<BEGIN>\n## `openpgp`", "Manage OpenPGP Application.", " Examples:", " \\b\n Set the retries for PIN, Reset Code and Admin PIN to 10:\n $ ykman openpgp set-retries 10 10 10", " \\b\n Require touch to use the authentication key:\n $ ykman openpgp touch aut on\n<END>", "<BEGIN>...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the write_object API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the write_object API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
Write an arbitrary PIV object. Write a PIV object by providing the object id. Yubico writable PIV objects are available in the range 5f0000 - 5fffff. \b OBJECT-ID Id of PIV object in HEX. DATA File containing the data to be written. Use '-' to use stdin.
"Write an arbitrary PIV object.\n\n Write a PIV object by providing the object id.\n Yubico writable PIV objects are available in\n the range 5f0000 - 5fffff.\n\n \\b\n OBJECT-ID Id of PIV object in HEX.\n DATA File containing the data to be written. Use '-' to use stdin."
180
false
Yubico/yubikey-manager
write_object
24,974
LDU_FT/openwisp/netdiff/_find_unchanged
LDU_FT
[ "<BEGIN>\n## `parse`", "Converts a NetJSON 'NetworkGraph' object\n to a NetworkX Graph object,which is then returned.\n Additionally checks for protocol version, revision and metric.\n<END>", "<BEGIN>\n## `parse`", "Converts a OpenVPN JSON to a NetworkX Graph object\n which is then return...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _find_unchanged API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _find_unchanged API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
returns edges that are in both old and new
"returns edges that are in both old and new"
30
false
openwisp/netdiff
_find_unchanged
24,975
LDU_FT/jborean93/requests-credssp/get_mechs_available
LDU_FT
[ "<BEGIN>\n## `check_error_code`", "For CredSSP version of 3 or newer, the server can response with an\n NtStatus error code with details of what error occurred. This method\n will check if the error code exists and throws an NTStatusException\n if it is no STATUS_SUCCESS.\n<END>", "<BEGIN>\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_mechs_available API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_mechs_available API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
Returns a list of auth mechanisms that are available to the local GSSAPI instance. Because we are interacting with Windows, we only care if SPNEGO, Kerberos and NTLM are available where NTLM is the only wildcard that may not be available by default. The only NTLM implementation that wor...
"Returns a list of auth mechanisms that are available to the local\n GSSAPI instance. Because we are interacting with Windows, we only\n care if SPNEGO, Kerberos and NTLM are available where NTLM is the\n only wildcard that may not be available by default.\n\n The only NTLM implementation th...
41
false
jborean93/requests-credssp
get_mechs_available
24,976
LDU_FT/Azure/azure-uamqp-python/get_properties_obj
LDU_FT
[ "<BEGIN>\n## `_close_received`", "Callback called when a connection CLOSE frame is received.\n This callback will process the received CLOSE error to determine if\n the connection is recoverable or whether it should be shutdown.\n :param error: The error information from the close\n f...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_properties_obj 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_properties_obj API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
Get the underlying C reference from this object. :rtype: uamqp.c_uamqp.cProperties
"Get the underlying C reference from this object.\n\n :rtype: uamqp.c_uamqp.cProperties"
299
false
Azure/azure-uamqp-python
get_properties_obj
24,977
LDU_FT/bennylope/django-organizations/registration_backend
LDU_FT
[ "<BEGIN>\n## `invitation_backend`", "Returns a specified invitation backend", " Args:\n backend: dotted path to the invitation backend class\n namespace: URL namespace to use", " Returns:\n an instance of an InvitationBackend\n<END>", "<BEGIN>\n## `registration_backend`", "Retur...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the registration_backend 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 registration_backend API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Returns a specified registration backend Args: backend: dotted path to the registration backend class namespace: URL namespace to use Returns: an instance of an RegistrationBackend
"Returns a specified registration backend\n\n Args:\n backend: dotted path to the registration backend class\n namespace: URL namespace to use\n\n Returns:\n an instance of an RegistrationBackend"
90
false
bennylope/django-organizations
registration_backend
24,978
LDU_FT/datakortet/dkfileutils/changed
LDU_FT
[ "<BEGIN>\n## `touch`", "Create this file with the given access mode, if it doesn't exist.\n Based on:", " https://github.com/python/cpython/blob/master/Lib/pathlib.py)\n<END>", "<BEGIN>\n## `glob`", "`pat` can be an extended glob pattern, e.g. `'**/*.less'`\n This code handl...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the changed API. 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 changed API. 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...
Has `glob` changed in `dirname` Args: dirname: directory to measure filename: filename to store checksum
"Has `glob` changed in `dirname`\n\n Args:\n dirname: directory to measure\n filename: filename to store checksum"
38
false
datakortet/dkfileutils
changed
24,979
LDU_FT/philipbergen/popen/returncode
LDU_FT
[ "<BEGIN>\n## `env`", "Allows adding/overriding env vars in the execution context.\n :param kw: Key-value pairs\n :return: self\n<END>", "<BEGIN>\n## `expand`", "Turn off argument expansion, useful for 'grep'. Example:", " Sh('grep .*').expand(False) > 'tango'", " :param exp...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the returncode API. 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 returncode API. 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...
Runs the command if it has not yet run (redirecting output to stdout). :return: The returncode of the last executed command in the chain.
"Runs the command if it has not yet run (redirecting output to stdout).\n :return: The returncode of the last executed command in the chain."
21
false
philipbergen/popen
returncode
24,980
LDU_FT/PyCQA/astroid/visit_expr
LDU_FT
[ "<BEGIN>\n## `_handle_blacklist`", "remove files/directories in the black list", " dirnames/filenames are usually from os.walk\n<END>", "<BEGIN>\n## `load_module_from_name`", "Load a Python module from its name.", " :type dotted_name: str\n :param dotted_name: python name of a module or package",...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the visit_expr API. 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 visit_expr API. 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...
visit a Expr node by returning a fresh instance of it
"visit a Expr node by returning a fresh instance of it"
1,051
true
PyCQA/astroid
visit_expr
24,981
LDU_FT/androguard/androguard/find_methods
LDU_FT
[ "<BEGIN>\n## `go`", "Launch the analysis.", " this will start a total of `max_fetcher` threads.\n<END>", "<BEGIN>\n## `filter_file`", "This method is called in order to filer a specific app", " :param log: an object which corresponds to a unique app\n :param bytes fileraw: the raw fil...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_methods API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_methods API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
Find a method by name using regular expression. This method will return all MethodClassAnalysis objects, which match the classname, methodname, descriptor and accessflags of the method. :param classname: regular expression for the classname :param methodname: regular expression for the ...
"Find a method by name using regular expression.\n This method will return all MethodClassAnalysis objects, which match the\n classname, methodname, descriptor and accessflags of the method.\n\n :param classname: regular expression for the classname\n :param methodname: regular expression fo...
823
false
androguard/androguard
find_methods
24,982
LDU_FT/EpistasisLab/tpot/source_decode
LDU_FT
[ "<BEGIN>\n## `auto_select_categorical_features`", "Make a feature mask of categorical features in X.", " Features with less than 10 unique values are considered categorical.", " Parameters\n ----------\n X : array-like or sparse matrix, shape=(n_samples, n_features)\n Dense array or sparse ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the source_decode API. 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 source_decode API. 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...
Decode operator source and import operator class. Parameters ---------- sourcecode: string a string of operator source (e.g 'sklearn.feature_selection.RFE') verbose: int, optional (default: 0) How much information TPOT communicates while it's running. 0 = none, 1 = minimal, 2 = ...
"Decode operator source and import operator class.\n\n Parameters\n ----------\n sourcecode: string\n a string of operator source (e.g 'sklearn.feature_selection.RFE')\n verbose: int, optional (default: 0)\n How much information TPOT communicates while it's running.\n 0 = none, 1 = mini...
249
false
EpistasisLab/tpot
source_decode
24,983
LDU_FT/klen/muffin/startup
LDU_FT
[ "<BEGIN>\n## `parse`", "Parse URL path and convert it to regexp if needed.\n<END>", "<BEGIN>\n## `create_signature`", "Create HMAC Signature from secret for value.\n<END>", "<BEGIN>\n## `generate_password_hash`", "Hash a password with given method and salt length.\n<END>", "<BEGIN>\n## `register`", "M...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the startup API. 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 startup API. 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...
Start the application. Support for start-callbacks and lock the application's configuration and plugins.
"Start the application.\n\n Support for start-callbacks and lock the application's configuration and plugins."
37
false
klen/muffin
startup
24,984
LDU_FT/prezi/django-zipkin/getTraceIdsBySpanName
LDU_FT
[ "<BEGIN>\n## `getTraceIdsBySpanName`", "Fetch trace ids by service and span name.\n Gets \"limit\" number of entries from before the \"end_ts\".", " Span name is optional.\n Timestamps are in microseconds.", " Parameters:\n - service_name\n - span_name\n - end_ts\n - limit\n - ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the getTraceIdsBySpanName 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 getTraceIdsBySpanName API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Fetch trace ids by service and span name. Gets "limit" number of entries from before the "end_ts". Span name is optional. Timestamps are in microseconds. Parameters: - service_name - span_name - end_ts - limit - order
"Fetch trace ids by service and span name.\n Gets \"limit\" number of entries from before the \"end_ts\".\n\n Span name is optional.\n Timestamps are in microseconds.\n\n Parameters:\n - service_name\n - span_name\n - end_ts\n - limit\n - order"
49
false
prezi/django-zipkin
getTraceIdsBySpanName
24,985
LDU_FT/Locu/chronology/_bucket_events
LDU_FT
[ "<BEGIN>\n## `is_remote_allowed`", "Check if `remote` is allowed to make a CORS request.\n<END>", "<BEGIN>\n## `endpoint`", "Returns a decorator which when applied a function, causes that function to\n serve `url` and only allows the HTTP methods in `methods`\n<END>", "<BEGIN>\n## `get_seconds`", "Conver...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _bucket_events API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _bucket_events API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
Convert an iterable of events into an iterable of lists of events per bucket.
"Convert an iterable of events into an iterable of lists of events\n per bucket."
156
false
Locu/chronology
_bucket_events
24,986
LDU_FT/townsenddw/jhubctl/create
LDU_FT
[ "<BEGIN>\n## `parse_command_line`", "Parse the jhubctl command line arguments.", " This overwrites traitlets' default `parse_command_line` method\n and tailors it to jhubctl's needs.\n<END>", "<BEGIN>\n## `define_parameters`", "Get a list of parameters to pass to AWS boto call.\n<END>", "<BE...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Deploy a cluster on Amazon's EKS Service configured for Jupyterhub Deployments.
"Deploy a cluster on Amazon's EKS Service configured\n for Jupyterhub Deployments."
31
false
townsenddw/jhubctl
create
24,987
LDU_FT/nvictus/priority-queue-dictionary/topitem
LDU_FT
[ "<BEGIN>\n## `nlargest`", "Takes a mapping and returns the n keys associated with the largest values\n in descending order. If the mapping has fewer than n items, all its keys\n are returned.", " Equivalent to:\n ``next(zip(*heapq.nlargest(mapping.items(), key=lambda x: x[1])))``", " Return...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the topitem API. 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 topitem API. 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 the item with highest priority. Raises ``KeyError`` if pqdict is empty.
"Return the item with highest priority. Raises ``KeyError`` if pqdict is\n empty."
25
false
nvictus/priority-queue-dictionary
topitem
24,988
LDU_FT/daviddrysdale/python-phonenumbers/is_carrier_specific
LDU_FT
[ "<BEGIN>\n## `_get_metadata_for_region`", "The metadata needed by this class is the same for all regions\n sharing the same country calling code. Therefore, we return the\n metadata for \"main\" region for this country calling code.\n<END>", "<BEGIN>\n## `_maybe_create_new_template`", "Returns True if a...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_carrier_specific API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_carrier_specific API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
Given a valid short number, determines whether it is carrier-specific (however, nothing is implied about its validity). Carrier-specific numbers may connect to a different end-point, or not connect at all, depending on the user's carrier. If it is important that the number is valid, then its validity m...
"Given a valid short number, determines whether it is carrier-specific\n (however, nothing is implied about its validity). Carrier-specific numbers\n may connect to a different end-point, or not connect at all, depending\n on the user's carrier. If it is important that the number is valid, then\n its valid...
501
false
daviddrysdale/python-phonenumbers
is_carrier_specific
24,989
LDU_FT/albahnsen/CostSensitiveClassification/_convexhull
LDU_FT
[ "<BEGIN>\n## `_partition_estimators`", "Private function used to partition estimators between jobs.\n<END>", "<BEGIN>\n## `_parallel_build_estimators`", "Private function used to build a batch of estimators within a job.\n<END>", "<BEGIN>\n## `_parallel_predict_proba`", "Private function used to compute (...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _convexhull API. 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 _convexhull API. 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...
Private function that calculate the convex hull of a set of points The algorithm was taken from [1]. http://code.activestate.com/recipes/66527-finding-the-convex-hull-of-a-set-of-2d-points/ References ---------- .. [1] Alex Martelli, Anna Ravenscroft, David Ascher, 'Python Cookbook', O'Reilly Medi...
"Private function that calculate the convex hull of a set of points\n The algorithm was taken from [1].\n http://code.activestate.com/recipes/66527-finding-the-convex-hull-of-a-set-of-2d-points/\n\n References\n ----------\n\n .. [1] Alex Martelli, Anna Ravenscroft, David Ascher, 'Python Cookbook', O'Rei...
334
false
albahnsen/CostSensitiveClassification
_convexhull
24,990
LDU_FT/zestyping/star-destroyer/scan_module
LDU_FT
[ "<BEGIN>\n## `for_each_child`", "Calls the callback for each AST node that's a child of the given node.\n<END>", "<BEGIN>\n## `resolve_frompath`", "Resolves the path of the module referred to by 'from ..x import y'.\n<END>", "<BEGIN>\n## `find_module`", "Determines whether a module exists with the given m...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the scan_module API. 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 scan_module API. 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...
Scans a module, collecting all used origins, assuming that modules are obtained only by dotted paths and no other kinds of expressions.
"Scans a module, collecting all used origins, assuming that modules\n are obtained only by dotted paths and no other kinds of expressions."
24
false
zestyping/star-destroyer
scan_module
24,991
LDU_FT/jurismarches/chopper/_get_elements
LDU_FT
[ "<BEGIN>\n## `parse`", "Parses the CSS contents and returns the cleaned CSS as a string", " :returns: The cleaned CSS\n :rtype: str\n<END>", "<BEGIN>\n## `rel_to_abs`", "Converts relative links from css contents to absolute links", " :param base_url: The base page url to use for build...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_elements API. 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_elements API. 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 list of HtmlElements for the source :param source: The source list to parse :type source: list :returns: A list of HtmlElements :rtype: list
"Returns the list of HtmlElements for the source\n\n :param source: The source list to parse\n :type source: list\n :returns: A list of HtmlElements\n :rtype: list"
47
false
jurismarches/chopper
_get_elements
24,992
LDU_FT/yougov/pmxbot/insult
LDU_FT
[ "<BEGIN>\n## `attach`", "Given a function and a namespace of possible parameters,\n\tbind any params matching the signature of the function\n\tto that function.\n<END>", "<BEGIN>\n## `init_config`", "Install the config dict as pmxbot.config, setting overrides,\n\tand return the result.\n<END>", "<BEGIN>\n##...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the insult API. 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 insult API. 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 ...
Generate a random insult from datahamster
"Generate a random insult from datahamster"
128
false
yougov/pmxbot
insult
24,993
LDU_FT/raghakot/keras-vis/draw_text
LDU_FT
[ "<BEGIN>\n## `visualize_activation_with_losses`", "Generates the `input_tensor` that minimizes the weighted `losses`. This function is intended for advanced\n use cases where a custom loss is desired.", " Args:\n input_tensor: An input tensor of shape: `(samples, channels, image_dims...)` if `image...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the draw_text API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the draw_text API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
Draws text over the image. Requires PIL. Args: img: The image to use. text: The text string to overlay. position: The text (x, y) position. (Default value = (10, 10)) font: The ttf or open type font to use. (Default value = 'FreeSans.ttf') font_size: The text font size. (Def...
"Draws text over the image. Requires PIL.\n\n Args:\n img: The image to use.\n text: The text string to overlay.\n position: The text (x, y) position. (Default value = (10, 10))\n font: The ttf or open type font to use. (Default value = 'FreeSans.ttf')\n font_size: The text font si...
138
false
raghakot/keras-vis
draw_text
24,994
LDU_FT/yougov/vr.runners/ensure_image
LDU_FT
[ "<BEGIN>\n## `untar`", "Unpack tarpath to outfolder. Make a guess about the compression based on\n file extension (.gz or .bz2).", " The unpacking of the tarfile is done in a temp directory and moved into\n place atomically at the end (assuming /tmp is on the same filesystem as\n outfolder).", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the ensure_image API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the ensure_image API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
Ensure that config.image_url has been downloaded and unpacked.
"Ensure that config.image_url has been downloaded and unpacked."
28
false
yougov/vr.runners
ensure_image
24,995
LDU_FT/openearth/mmi-python/tracker
LDU_FT
[ "<BEGIN>\n## `key_occurrence`", "Return a dict containing the value of the provided key and its uuid as\n value.\n<END>", "<BEGIN>\n## `zmq_address`", "Return a ZeroMQ address to the module with the provided key.\n<END>", "<BEGIN>\n## `send_array`", "send a numpy array with metadata over zmq", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the tracker API. 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 tracker API. 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...
start a tracker to register running models
"start a tracker to register running models"
30
false
openearth/mmi-python
tracker
24,996
LDU_FT/nabla-c0d3/sslyze/get_results
LDU_FT
[ "<BEGIN>\n## `do_handshake_with_robot`", "Modified do_handshake() to send a ROBOT payload and return the result.\n<END>", "<BEGIN>\n## `get_client_key_exchange_record`", "A client key exchange record with a hardcoded pre_master_secret, and a valid or invalid padding.\n<END>", "<BEGIN>\n## `get_finished_reco...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_results API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_results API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
Return the result of previously queued scan commands; new commands cannot be queued once this is called. Returns: The results of all the scan commands previously queued. Each result will be an instance of the scan corresponding command's PluginScanResult subclass. If there was an unexpe...
"Return the result of previously queued scan commands; new commands cannot be queued once this is called.\n\n Returns:\n The results of all the scan commands previously queued. Each result will be an instance of the scan\n corresponding command's PluginScanResult subclass. If there was an u...
92
false
nabla-c0d3/sslyze
get_results
24,997
LDU_FT/soravux/scoop/launchBootstraps
LDU_FT
[ "<BEGIN>\n## `_ensureAtomicity`", "Ensure atomicity of passed elements on the whole worker pool\n<END>", "<BEGIN>\n## `setConst`", "setConst(**kwargs)\n Set a constant that will be shared to every workers.", " :param **kwargs: One or more combination(s) key=value. Key being the\n variable name ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the launchBootstraps API. 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 launchBootstraps API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Launch the bootstrap instances in separate subprocesses
"Launch the bootstrap instances in separate subprocesses"
251
false
soravux/scoop
launchBootstraps
24,998
LDU_FT/PolicyStat/jobtastic/_validate_required_class_vars
LDU_FT
[ "<BEGIN>\n## `lock`", "Attempt to use lock and unlock, which will work if the Cache is Redis,\n but fall back to a memcached-compliant add/delete approach.", " If the Jobtastic Cache isn't Redis or Memcache, or another product\n with a compatible lock or add/delete API, then a custom lockin...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _validate_required_class_vars API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _validate_required_class_vars API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conc...
Ensure that this subclass has defined all of the required class variables.
"Ensure that this subclass has defined all of the required class\n variables."
38
false
PolicyStat/jobtastic
_validate_required_class_vars
24,999
LDU_FT/openstack/swauth/_get_concealed_token
LDU_FT
[ "<BEGIN>\n## `filter_factory`", "Returns a WSGI filter app for use with paste.deploy.\n<END>", "<BEGIN>\n## `make_pre_authed_request`", "Nearly the same as swift.common.wsgi.make_pre_authed_request\n except that this also always sets the 'swift.source' and user\n agent.", " Newer Swift ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_concealed_token API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_concealed_token API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Returns hashed token to be used as object name in Swift. Tokens are stored in auth account but object names are visible in Swift logs. Object names are hashed from token.
"Returns hashed token to be used as object name in Swift.\n\n Tokens are stored in auth account but object names are visible in Swift\n logs. Object names are hashed from token."
133
false
openstack/swauth
_get_concealed_token
25,000
LDU_FT/rootpy/rootpy/get_limits
LDU_FT
[ "<BEGIN>\n## `total`", "Return the total yield and its associated statistical uncertainty.\n<END>", "<BEGIN>\n## `sys_names`", "Return a list of unique systematic names from OverallSys and HistoSys\n<END>", "<BEGIN>\n## `iter_sys`", "Iterate over sys_name, overall_sys, histo_sys.\n overall_sys or h...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_limits API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_limits API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
Get the axes limits that should be used for a 1D histogram, graph, or stack of histograms. Parameters ---------- plottables : Hist, Graph, HistStack, or list of such objects The object(s) for which visually pleasing plot boundaries are requested. xpadding : float or 2-tuple, optio...
"Get the axes limits that should be used for a 1D histogram, graph, or stack\n of histograms.\n\n Parameters\n ----------\n\n plottables : Hist, Graph, HistStack, or list of such objects\n The object(s) for which visually pleasing plot boundaries are\n requested.\n\n xpadding : float or 2-t...
878
false
rootpy/rootpy
get_limits
25,001
LDU_FT/gridaphobe/pyGravatar/_get_profile
LDU_FT
[ "<BEGIN>\n## `secure`", "Set the secure parameter and regenerate the thumbnail link.\n<END>", "<BEGIN>\n## `rating`", "Set the rating parameter and regenerate the thumbnail link.\n<END>", "<BEGIN>\n## `size`", "Set the size parameter and regenerate the thumbnail link.\n<END>", "<BEGIN>\n## `default`", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_profile API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_profile API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
Retrieves the profile data of the user and formats it as a Python dictionary.
"Retrieves the profile data of the user and formats it as a\n Python dictionary."
13
false
gridaphobe/pyGravatar
_get_profile
25,002
LDU_FT/relwell/corenlp-xml-lib/speaker
LDU_FT
[ "<BEGIN>\n## `mentions`", "Returns mentions", " :return: list of mentions\n :rtype: list\n<END>", "<BEGIN>\n## `sentence`", "The sentence related to this mention", " :getter: returns the sentence this mention relates to\n :type: corenlp_xml.document.Sentence\n<END>", "<BEGIN>...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the speaker API. 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 speaker API. 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...
Lazy-loads the speaker for this word :getter: Returns the plain string value of the speaker tag for the word :type: str
"Lazy-loads the speaker for this word\n\n :getter: Returns the plain string value of the speaker tag for the word\n :type: str"
87
false
relwell/corenlp-xml-lib
speaker
25,003
LDU_FT/PMEAL/porespy/props_to_image
LDU_FT
[ "<BEGIN>\n## `show_mesh`", "r\"\"\"\n Visualizes the mesh of a region as obtained by ``get_mesh`` function in\n the ``metrics`` submodule.", " Parameters\n ----------\n mesh : tuple\n A mesh returned by ``skimage.measure.marching_cubes``", " Returns\n -------\n fig : Matplotlib ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the props_to_image API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the props_to_image API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
r""" Creates an image with each region colored according the specified ``prop``, as obtained by ``regionprops_3d``. Parameters ---------- regionprops : list This is a list of properties for each region that is computed by PoreSpy's ``regionprops_3D`` or Skimage's ``regionsprops``. ...
"r\"\"\"\n Creates an image with each region colored according the specified ``prop``,\n as obtained by ``regionprops_3d``.\n\n Parameters\n ----------\n regionprops : list\n This is a list of properties for each region that is computed\n by PoreSpy's ``regionprops_3D`` or Skimage's ``regio...
688
false
PMEAL/porespy
props_to_image
25,004
LDU_FT/Microsoft/azure-devops-python-api/get_path_contents
LDU_FT
[ "<BEGIN>\n## `create_attachment`", "CreateAttachment.\n Creates an attachment in the wiki.\n :param object upload_stream: Stream to upload\n :param str project: Project ID or project name\n :param str wiki_identifier: Wiki Id or name.\n :param str name: Wiki attachment name.\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_path_contents API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_path_contents API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
GetPathContents. [Preview API] Gets the contents of a directory in the given source code repository. :param str project: Project ID or project name :param str provider_name: The name of the source provider. :param str service_endpoint_id: If specified, the ID of the service endpoint to q...
"GetPathContents.\n [Preview API] Gets the contents of a directory in the given source code repository.\n :param str project: Project ID or project name\n :param str provider_name: The name of the source provider.\n :param str service_endpoint_id: If specified, the ID of the service endpoint...
1,304
true
Microsoft/azure-devops-python-api
get_path_contents
25,005
LDU_FT/T-002/pycast/sort_timeseries
LDU_FT
[ "<BEGIN>\n## `local_error`", "Calculates the error between the two given values.", " :param list originalValue: List containing the values of the original data.\n :param list calculatedValue: List containing the values of the calculated TimeSeries that\n corresponds to originalVal...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the sort_timeseries API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the sort_timeseries API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
Sorts the data points within the TimeSeries according to their occurrence inline. :param boolean ascending: Determines if the TimeSeries will be ordered ascending or descending. If this is set to descending once, the ordered parameter defined in :py:meth:`TimeSeries.__init__` will be se...
"Sorts the data points within the TimeSeries according to their occurrence inline.\n\n :param boolean ascending: Determines if the TimeSeries will be ordered ascending or\n descending. If this is set to descending once, the ordered parameter defined in\n :py:meth:`TimeSeries.__init__` will ...
338
false
T-002/pycast
sort_timeseries
25,006
LDU_FT/csparpa/pyowm/uvindex_forecast_around_coords
LDU_FT
[ "<BEGIN>\n## `parse_JSON`", "Parses a *StationHistory* instance out of raw JSON data. Only certain\n properties of the data are used: if these properties are not found or\n cannot be parsed, an error is issued.", " :param JSON_string: a raw JSON string\n :type JSON_string: str\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the uvindex_forecast_around_coords API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its con...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the uvindex_forecast_around_coords API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its con...
Queries the OWM Weather API for forecast Ultra Violet values in the next 8 days in the surroundings of the provided geocoordinates. :param lat: the location's latitude, must be between -90.0 and 90.0 :type lat: int/float :param lon: the location's longitude, must be between -180.0 and 1...
"Queries the OWM Weather API for forecast Ultra Violet values in the next 8\n days in the surroundings of the provided geocoordinates.\n\n :param lat: the location's latitude, must be between -90.0 and 90.0\n :type lat: int/float\n :param lon: the location's longitude, must be between -180.0...
612
false
csparpa/pyowm
uvindex_forecast_around_coords
25,007
LDU_FT/blackecho/Deep-Learning-TensorFlow/build_model
LDU_FT
[ "<BEGIN>\n## `fit`", "Fit the model to the given data.", " :param train_set: training data\n :param test_set: test data\n<END>", "<BEGIN>\n## `_run_train_step`", "Run a single training step.", " :param data: input data\n :param mode: 'train' or 'test'.\n<END>", "<BEGIN>\n## `...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the build_model API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the build_model API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
Create the computational graph of the model. :param n_features: Number of features. :param n_classes: number of classes. :return: self
"Create the computational graph of the model.\n\n :param n_features: Number of features.\n :param n_classes: number of classes.\n :return: self"
284
false
blackecho/Deep-Learning-TensorFlow
build_model
25,008
LDU_FT/rigetti/pyquil/all_bitstrings
LDU_FT
[ "<BEGIN>\n## `to_latex`", "Translates a given pyquil Program to a TikZ picture in a Latex document.", " :param Program circuit: The circuit to be drawn, represented as a pyquil program.\n :param dict settings: An optional dictionary with settings for drawing the circuit. See `get_default_settings`\n i...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the all_bitstrings API. 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 all_bitstrings API. 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...
All bitstrings in lexicographical order as a 2d np.ndarray. This should be the same as ``np.array(list(itertools.product([0,1], repeat=n_bits)))`` but faster.
"All bitstrings in lexicographical order as a 2d np.ndarray.\n\n This should be the same as ``np.array(list(itertools.product([0,1], repeat=n_bits)))``\n but faster."
1,152
true
rigetti/pyquil
all_bitstrings
25,009
LDU_FT/walkr/nanoservice/process
LDU_FT
[ "<BEGIN>\n## `initialize`", "Bind or connect the nanomsg socket to some address\n<END>", "<BEGIN>\n## `_set_timeouts`", "Set socket timeouts for send and receive respectively\n<END>", "<BEGIN>\n## `send`", "Encode and sign (optional) the send through socket\n<END>", "<BEGIN>\n## `receive`", "Receive f...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the process API. 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 process API. 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...
Receive a subscription from the socket and process it
"Receive a subscription from the socket and process it"
36
false
walkr/nanoservice
process
25,010
LDU_FT/spyder-ide/spyder-notebook/update_notebook_actions
LDU_FT
[ "<BEGIN>\n## `evaluate`", "Evaluate script in page frame.", " :param script: The script to evaluate.\n<END>", "<BEGIN>\n## `click`", "Click the targeted element.", " :param selector: A CSS3 selector to targeted element.\n :param btn: The number of mouse button.\n 0 - left b...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update_notebook_actions API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update_notebook_actions API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion...
Update actions of the recent notebooks menu.
"Update actions of the recent notebooks menu."
45
false
spyder-ide/spyder-notebook
update_notebook_actions
25,011
LDU_FT/jorisroovers/gitlint/_assert_git_repo
LDU_FT
[ "<BEGIN>\n## `find_rule_classes`", "Searches a given directory or python module for rule classes. This is done by\n adding the directory path to the python path, importing the modules and then finding\n any Rule class in those modules.", " :param extra_path: absolute directory or file path to search fo...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _assert_git_repo API. 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 _assert_git_repo API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Asserts that a given target directory is a git repository
"Asserts that a given target directory is a git repository"
58
false
jorisroovers/gitlint
_assert_git_repo
25,012
LDU_FT/itamarst/crochet/register
LDU_FT
[ "<BEGIN>\n## `register`", "Register an EventualResult.", " May be called in any thread.\n<END>", "<BEGIN>\n## `stop`", "Indicate no more results will get pushed into EventualResults, since\n the reactor has stopped.", " This should be called in the reactor thread.\n<END>", "<BEGIN>\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the register API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the register API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
Register a function and arguments to be called later.
"Register a function and arguments to be called later."
61
false
itamarst/crochet
register
25,013
LDU_FT/orsinium/textdistance/_make_probs
LDU_FT
[ "<BEGIN>\n## `optimize`", "Sort algorithm implementations by speed.\n<END>", "<BEGIN>\n## `_dynamic`", "https://github.com/chrislit/abydos/blob/master/abydos/distance/_lcsseq.py\n http://www.dis.uniroma1.it/~bonifaci/algo/LCSSEQ.py\n http://rosettacode.org/wiki/Longest_common_subsequence#Dynamic...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _make_probs API. 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 _make_probs API. 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...
https://github.com/gw-c/arith/blob/master/arith.py
"https://github.com/gw-c/arith/blob/master/arith.py"
15
false
orsinium/textdistance
_make_probs
25,014
LDU_FT/metagriffin/asset/filter
LDU_FT
[ "<BEGIN>\n## `load`", "Given a package asset-spec glob-pattern `pattern`, returns an\n :class:`AssetGroup` object, which in turn can act as a generator of\n :class:`Asset` objects that match the pattern.", " Example:", " .. code-block:: python", " import asset", " # concatenate all 'css' files i...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the filter API. 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 filter API. 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 ...
Identical to `PluginSet.handle`, except: #. If this plugin set is empty, `object` is returned as-is. #. If any plugin returns ``None``, it is returned without calling any further plugins.
"Identical to `PluginSet.handle`, except:\n\n #. If this plugin set is empty, `object` is returned as-is.\n #. If any plugin returns ``None``, it is returned without\n calling any further plugins."
39
false
metagriffin/asset
filter
25,015
LDU_FT/nimeshkverma/mongo_joins/full_outer
LDU_FT
[ "<BEGIN>\n## `change_dict_keys`", "Prefixes 'L_'/'R_' to the collection keys\n :param data_dict: dictionary which is to be altered\n :type data_dict: dict", " :param prefix: prefix to be attached before every key\n :type prefix: string", " :return dict_...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the full_outer API. 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 full_outer API. 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...
Performs Full Outer Join :return full_outer: dict
"Performs Full Outer Join\n :return full_outer: dict"
40
false
nimeshkverma/mongo_joins
full_outer
25,016
LDU_FT/DataMedSci/mcpartools/_rewrite_paths_in_file
LDU_FT
[ "<BEGIN>\n## `pip_command_output`", "Get output (as a string) from pip command\n :param pip_args: list o pip switches to pass\n :return: string with results\n<END>", "<BEGIN>\n## `setup_versioneer`", "Generate (temporarily) versioneer.py file in project root directory\n :return:\n<END>", "<BEGIN>\n...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _rewrite_paths_in_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....
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _rewrite_paths_in_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....
Rewrite paths in config files to match convention job_xxxx/symlink Requires path to run_xxxx/input/config_file and a list of paths_to_replace
"Rewrite paths in config files to match convention job_xxxx/symlink\n Requires path to run_xxxx/input/config_file and a list of paths_to_replace"
24
false
DataMedSci/mcpartools
_rewrite_paths_in_file
25,017
LDU_FT/bioasp/iggy/get_opt_add_remove_edges_greedy
LDU_FT
[ "<BEGIN>\n## `readProfile`", "input: string, name of a file containing a profile description\n output: asp.TermSet, with atoms matching the contents of the input file", " Parses a profile description, and returns\n a TermSet object.\n<END>", "<BEGIN>\n## `get_scenfit`", "returns the scenfit of data and m...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_opt_add_remove_edges_greedy API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its co...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_opt_add_remove_edges_greedy API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its co...
only apply with elementary path consistency notion
"only apply with elementary path consistency notion"
13
false
bioasp/iggy
get_opt_add_remove_edges_greedy
25,018
LDU_FT/canonical-ols/acceptable/clean_docstring
LDU_FT
[ "<BEGIN>\n## `metadata_lint`", "Run the linter over the new metadata, comparing to the old.\n<END>", "<BEGIN>\n## `bind`", "Bind the service API urls to a flask app.\n<END>", "<BEGIN>\n## `serialize`", "Serialize into JSONable dict, and associated locations data.\n<END>", "<BEGIN>\n## `api`", "Add an ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the clean_docstring API. 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 clean_docstring API. 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...
Dedent docstring, special casing the first line.
"Dedent docstring, special casing the first line."
61
false
canonical-ols/acceptable
clean_docstring
25,019
LDU_FT/apple/turicreate/register_id
LDU_FT
[ "<BEGIN>\n## `ReadTag`", "Read a tag from the buffer, and return a (tag_bytes, new_pos) tuple.", " We return the raw bytes of the tag rather than decoding them. The raw\n bytes can then be used to look up the proper decoder. This effectively allows\n us to trade some work that would be done in pure-python ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the register_id API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the register_id API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
Associate the given id with the given project module.
"Associate the given id with the given project module."
7,340
true
apple/turicreate
register_id
25,020
LDU_FT/pklaus/brother_ql/filtered_hsv
LDU_FT
[ "<BEGIN>\n## `send`", "Send instruction bytes to a printer.", " :param bytes instructions: The instructions to be sent to the printer.\n :param str printer_identifier: Identifier for the printer.\n :param str backend_identifier: Can enforce the use of a specific backend.\n :param bool blocking: Indi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the filtered_hsv API. 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 filtered_hsv API. 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...
https://stackoverflow.com/a/22237709/183995
"https://stackoverflow.com/a/22237709/183995"
37
false
pklaus/brother_ql
filtered_hsv
25,021
LDU_FT/GGiecold/Concurrent_AP/chunk_generator
LDU_FT
[ "<BEGIN>\n## `chunk_generator`", "Returns a generator of slice objects.", " Parameters\n ----------\n N : int\n The size of one of the dimensions of a two-dimensional array. ", " n : int\n The number of arrays of shape ('N', 'get_chunk_size(N, n)') that fit into\n memory.", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the chunk_generator API. 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 chunk_generator API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
Returns a generator of slice objects. Parameters ---------- N : int The size of one of the dimensions of a two-dimensional array. n : int The number of arrays of shape ('N', 'get_chunk_size(N, n)') that fit into memory. Returns ------- Slice objects of...
"Returns a generator of slice objects.\n \n Parameters\n ----------\n N : int\n The size of one of the dimensions of a two-dimensional array. \n \n n : int\n The number of arrays of shape ('N', 'get_chunk_size(N, n)') that fit into\n memory.\n \n Returns\n -------\n Sl...
61
false
GGiecold/Concurrent_AP
chunk_generator
25,022
LDU_FT/undertheseanlp/underthesea/prepend_line
LDU_FT
[ "<BEGIN>\n## `Text`", "provide a wrapper for python string\n map byte to str (python 3)\n all string in utf-8 encoding\n normalize string to NFC\n<END>", "<BEGIN>\n## `sent2features`", "extract features in a sentence", " :type sentence: list of token, each token is a list of tag\n<END>", "<BEG...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the prepend_line API. 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 prepend_line API. 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...
Rewrite a file adding a line to its beginning.
"Rewrite a file adding a line to its beginning."
62
false
undertheseanlp/underthesea
prepend_line
25,023
LDU_FT/bookieio/breadability/check_node_attributes
LDU_FT
[ "<BEGIN>\n## `check_node_attributes`", "Searches match in attributes against given pattern and if\n finds the match against any of them returns True.\n<END>", "<BEGIN>\n## `generate_hash_id`", "Generates a hash_id for the node in question.", " :param node: lxml etree node\n<END>", "<BEGIN>\n## `get_...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the check_node_attributes 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 check_node_attributes API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Searches match in attributes against given pattern and if finds the match against any of them returns True.
"Searches match in attributes against given pattern and if\n finds the match against any of them returns True."
48
false
bookieio/breadability
check_node_attributes
25,024
LDU_FT/mattloper/chumpy/minimize_dogleg
LDU_FT
[ "<BEGIN>\n## `get_peak_mem`", "this returns peak memory use since process starts till the moment its called\n<END>", "<BEGIN>\n## `dfs_do_func_on_graph`", "invoke func on each node of the dr graph\n<END>", "<BEGIN>\n## `sparse_is_desireable`", "Examines a pair of matrices and determines if the result of t...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the minimize_dogleg API. 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 minimize_dogleg API. 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...
Nonlinear optimization using Powell's dogleg method. See Lourakis et al, 2005, ICCV '05, "Is Levenberg-Marquardt the Most Efficient Optimization for Implementing Bundle Adjustment?": http://www.ics.forth.gr/cvrl/publications/conferences/0201-P0401-lourakis-levenberg.pdf e_N are stopping conditions: ...
"Nonlinear optimization using Powell's dogleg method.\n See Lourakis et al, 2005, ICCV '05, \"Is Levenberg-Marquardt the\n Most Efficient Optimization for Implementing Bundle Adjustment?\":\n http://www.ics.forth.gr/cvrl/publications/conferences/0201-P0401-lourakis-levenberg.pdf\n\n e_N are stopping conditi...
30
false
mattloper/chumpy
minimize_dogleg
25,025
LDU_FT/Xython/Linq.py/Drop
LDU_FT
[ "<BEGIN>\n## `ChunkBy`", "[\n {\n 'self': [1, 1, 3, 3, 1, 1],\n 'f': lambda x: x%2,\n 'assert': lambda ret: ret == [[1, 1], [3, 3], [1, 1]]\n }\n ]\n<END>", "<BEGIN>\n## `GroupBy`", "[\n {\n 'self': [1, 2, 3],\n 'f': lambda x: x%2...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the Drop API. 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 Drop API. 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...
[ { 'self': [1, 2, 3, 4, 5], 'n': 3, 'assert': lambda ret: list(ret) == [1, 2] } ]
"[\n {\n 'self': [1, 2, 3, 4, 5],\n 'n': 3,\n 'assert': lambda ret: list(ret) == [1, 2]\n }\n ]"
32
false
Xython/Linq.py
Drop
25,026
LDU_FT/uuazed/numerapi/get_staking_leaderboard
LDU_FT
[ "<BEGIN>\n## `_unzip_file`", "unzips file located at src_path into destination_path\n<END>", "<BEGIN>\n## `get_dataset_url`", "Fetch url of the current dataset.", " Args:\n tournament (int, optional): ID of the tournament, defaults to 1", " Returns:\n str: url of the cu...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_staking_leaderboard API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_staking_leaderboard API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion...
Retrieves the leaderboard of the staking competition for the given round. Args: round_num (int, optional): The round you are interested in, defaults to current round. tournament (int, optional): ID of the tournament, defaults to 1 Returns: li...
"Retrieves the leaderboard of the staking competition for the given\n round.\n\n Args:\n round_num (int, optional): The round you are interested in,\n defaults to current round.\n tournament (int, optional): ID of the tournament, defaults to 1\n\n Returns:\n ...
163
false
uuazed/numerapi
get_staking_leaderboard
25,027
LDU_FT/common-workflow-language/schema_salad/validate_doc
LDU_FT
[ "<BEGIN>\n## `declare_type`", "Add this type to our collection, if needed.\n<END>", "<BEGIN>\n## `add_namespaces`", "Collect the provided namespaces, checking for conflicts.\n<END>", "<BEGIN>\n## `collect_namespaces`", "Walk through the metadata object, collecting namespace declarations.\n<END>", "<BEGI...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the validate_doc API. 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 validate_doc API. 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...
Validate a document using the provided schema.
"Validate a document using the provided schema."
53
false
common-workflow-language/schema_salad
validate_doc
25,028
LDU_FT/abw333/dominoes/_validate_player
LDU_FT
[ "<BEGIN>\n## `_randomized_hands`", ":return: 4 hands, obtained by shuffling the 28 dominoes used in\n this variation of the game, and distributing them evenly\n<END>", "<BEGIN>\n## `_validate_player`", "Checks that a player is a valid player. Valid players are: 0, 1, 2, and 3.", " :param int ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _validate_player API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _validate_player API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Checks that a player is a valid player. Valid players are: 0, 1, 2, and 3. :param int player: player to be validated :return: None :raises NoSuchPlayerException: if the player is invalid
"Checks that a player is a valid player. Valid players are: 0, 1, 2, and 3.\n\n :param int player: player to be validated\n :return: None\n :raises NoSuchPlayerException: if the player is invalid"
70
false
abw333/dominoes
_validate_player
25,029
LDU_FT/booktype/python-ooxml/get_css_classes
LDU_FT
[ "<BEGIN>\n## `parse_drawing`", "Parse drawing element.", " We don't do much with drawing element. We can find embeded image but we don't do more than that.\n<END>", "<BEGIN>\n## `parse_paragraph`", "Parse paragraph element.", " Some other elements could be found inside of paragraph element (math, li...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_css_classes API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_css_classes API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
Returns CSS classes for this style. This function will check all the styles specified style is based on and return their CSS classes. :Args: - document (:class:`ooxml.doc.Document`): Document object - style (:class:`ooxml.doc.Style`): Style object :Returns: String representing all the C...
"Returns CSS classes for this style.\n\n This function will check all the styles specified style is based on and return their CSS classes.\n\n :Args:\n - document (:class:`ooxml.doc.Document`): Document object\n - style (:class:`ooxml.doc.Style`): Style object\n\n :Returns:\n String representing...
117
false
booktype/python-ooxml
get_css_classes
25,030
LDU_FT/TC01/calcpkg/setupLogFile
LDU_FT
[ "<BEGIN>\n## `structureOutput`", "Formats the output of a list of packages\n<END>", "<BEGIN>\n## `count`", "Counts the number of ticalc.org files containing some search term, doesn't return them\n<END>", "<BEGIN>\n## `searchHierarchy`", "Core function to search directory structure for child files and fold...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the setupLogFile API. 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 setupLogFile API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
Set up the logging file for a new session- include date and some whitespace
"Set up the logging file for a new session- include date and some whitespace"
62
false
TC01/calcpkg
setupLogFile
25,031
LDU_FT/hz-inova/run_jnb/find_duplicates
LDU_FT
[ "<BEGIN>\n## `kwargs_to_variable_assignment`", "Convert a dictionary into a string with assignments", " Each assignment is constructed based on:\n key assignment_operator value_representation(value) statement_separator,\n where key and value are the key and value of the dictionary.\n Moreover one ca...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_duplicates API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_duplicates API. 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...
Return the duplicates in a list. The function relies on https://stackoverflow.com/questions/9835762/find-and-list-duplicates-in-a-list . Parameters ---------- l : list Name Returns ------- set Duplicated values >>> find_duplicates([1,2,3]) set() >>> find_du...
"Return the duplicates in a list.\n\n The function relies on\n https://stackoverflow.com/questions/9835762/find-and-list-duplicates-in-a-list .\n Parameters\n ----------\n l : list\n Name\n\n Returns\n -------\n set\n Duplicated values\n\n >>> find_duplicates([1,2,3])\n set()...
65
false
hz-inova/run_jnb
find_duplicates
25,032
LDU_FT/childsish/sofia/step_worker
LDU_FT
[ "<BEGIN>\n## `consume_input`", "Make a copy of the input for the run function and consume the input to free up the queue for more input. If all\n input is consumed, there is no need to overload this function. Input is provided as lists. To copy and consume\n input the following commands can be run:"...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the step_worker API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the step_worker API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
All messages follow the form: <message>, <data> Valid messages -------------- run, <input_data> finalise, None next, None stop, None
"All messages follow the form: <message>, <data>\n\n Valid messages\n --------------\n run, <input_data>\n finalise, None\n next, None\n stop, None"
32
false
childsish/sofia
step_worker
25,033
LDU_FT/rasbt/biopandas/read_pdb
LDU_FT
[ "<BEGIN>\n## `docstring_to_markdown`", "Convert a Python object's docstring to markdown", " Parameters\n ----------\n docstring : str\n The docstring body.", " Returns\n ----------\n clean_lst : list\n The markdown formatted docstring as lines (str) in a Python list.\n<END>", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the read_pdb API. 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 read_pdb API. 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...
Read PDB files (unzipped or gzipped) from local drive Attributes ---------- path : str Path to the PDB file in .pdb format or gzipped format (.pdb.gz). Returns --------- self
"Read PDB files (unzipped or gzipped) from local drive\n\n Attributes\n ----------\n path : str\n Path to the PDB file in .pdb format or gzipped format (.pdb.gz).\n\n Returns\n ---------\n self"
110
false
rasbt/biopandas
read_pdb
25,034
LDU_FT/slackapi/python-slackclient/_connect_and_read
LDU_FT
[ "<BEGIN>\n## `run_on`", "A decorator to store and link a callback to an event.\n<END>", "<BEGIN>\n## `on`", "Stores and links the callback(s) to the event.", " Args:\n event (str): A string that specifies a Slack or websocket event.\n e.g. 'channel_joined' or 'open'\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _connect_and_read API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _connect_and_read API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Retreives and connects to Slack's RTM API. Makes an authenticated call to Slack's RTM API to retrieve a websocket URL. Then connects to the message server and reads event messages as they come in. If 'auto_reconnect' is specified we retrieve a new url and reconnect any time the...
"Retreives and connects to Slack's RTM API.\n\n Makes an authenticated call to Slack's RTM API to retrieve\n a websocket URL. Then connects to the message server and\n reads event messages as they come in.\n\n If 'auto_reconnect' is specified we\n retrieve a new url and reconnect any ...
222
false
slackapi/python-slackclient
_connect_and_read
25,035
LDU_FT/LogicalDash/LiSE/exist_node
LDU_FT
[ "<BEGIN>\n## `on_touch_down`", "If hit, record my starting position, that I may return to it in\n ``on_touch_up`` after creating a real :class:`board.Spot` or\n :class:`board.Pawn` instance.\n<END>", "<BEGIN>\n## `on_touch_up`", "Return to ``pos_start``, but first, save my current ``pos`` into\n...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the exist_node API. 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 exist_node API. 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...
Declare that the node exists or doesn't. Inserts a new record or updates an old one, as needed.
"Declare that the node exists or doesn't.\n\n Inserts a new record or updates an old one, as needed."
660
false
LogicalDash/LiSE
exist_node
25,036
LDU_FT/Pylons/pyramid_retry/mark_error_retryable
LDU_FT
[ "<BEGIN>\n## `RetryableExecutionPolicy`", "Create a :term:`execution policy` that catches any\n :term:`retryable error` and sends it through the pipeline again up to\n a maximum of ``attempts`` attempts.", " If ``activate_hook`` is set it will be consulted prior to each request\n to determine if ret...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the mark_error_retryable 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 mark_error_retryable API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Mark an exception instance or type as retryable. If this exception is caught by ``pyramid_retry`` then it may retry the request.
"Mark an exception instance or type as retryable. If this exception\n is caught by ``pyramid_retry`` then it may retry the request."
16
false
Pylons/pyramid_retry
mark_error_retryable
25,037
LDU_FT/anrosent/cli/print_help
LDU_FT
[ "<BEGIN>\n## `add_func`", "Adds a command to the CLI - specify args as you would to\n argparse.ArgumentParser.add_argument()\n<END>", "<BEGIN>\n## `add_cli`", "Adds the functionality of the other CLI to this one, where all\n commands to the other CLI are prefixed by the given prefix plus a hyphe...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the print_help API. 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 print_help API. 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...
Prints usage of all registered commands, collapsing aliases into one record
"Prints usage of all registered commands, collapsing aliases\n into one record"
13
false
anrosent/cli
print_help
25,038
LDU_FT/Yelp/detect-secrets/calculate_shannon_entropy
LDU_FT
[ "<BEGIN>\n## `determine_file_type`", ":param filename: str", " :rtype: FileType\n<END>", "<BEGIN>\n## `write_baseline_to_file`", ":type filename: str\n :type data: dict\n :rtype: None\n<END>", "<BEGIN>\n## `load_baseline_from_string`", "Initializes a SecretsCollection object from string.", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the calculate_shannon_entropy 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 calculate_shannon_entropy API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi...
In our investigations, we have found that when the input is all digits, the number of false positives we get greatly exceeds realistic true positive scenarios. Therefore, this tries to capture this heuristic mathemetically. We do this by noting that the maximum shannon entropy for this...
"In our investigations, we have found that when the input is all digits,\n the number of false positives we get greatly exceeds realistic true\n positive scenarios.\n\n Therefore, this tries to capture this heuristic mathemetically.\n\n We do this by noting that the maximum shannon entropy f...
194
false
Yelp/detect-secrets
calculate_shannon_entropy
25,039
LDU_FT/hsolbrig/pyjsg/union_conforms
LDU_FT
[ "<BEGIN>\n## `do_parse`", "Parse the jsg in infilename and save the results in outfilename\n :param infilename: file containing jsg\n :param outfilename: target python file\n :param verbose: verbose output flag\n :return: true if success\n<END>", "<BEGIN>\n## `parse`", "Parse the text in infile an...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the union_conforms API. 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 union_conforms API. 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...
Determine whether element conforms to at least one of the types in etype :param element: element to test :param etype: type to test against :param namespace: Namespace to use for resolving forward references :param conforms: conformance test function :return: True if element conforms to at least on...
"Determine whether element conforms to at least one of the types in etype\n\n :param element: element to test\n :param etype: type to test against\n :param namespace: Namespace to use for resolving forward references\n :param conforms: conformance test function\n :return: True if element conforms to at l...
146
false
hsolbrig/pyjsg
union_conforms
25,040
LDU_FT/awslabs/aws-sam-cli/_invoke_request_handler
LDU_FT
[ "<BEGIN>\n## `invoke_common_options`", "Common CLI options shared by \"local invoke\" and \"local start-api\" commands", " :param f: Callback passed by Click\n<END>", "<BEGIN>\n## `get_or_default_template_file_name`", "Default value for the template file name option is more complex than what Click can ha...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _invoke_request_handler API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _invoke_request_handler API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion...
Request Handler for the Local Lambda Invoke path. This method is responsible for understanding the incoming request and invoking the Local Lambda Function Parameters ---------- function_name str Name of the function to invoke Returns ------- A Flask ...
"Request Handler for the Local Lambda Invoke path. This method is responsible for understanding the incoming\n request and invoking the Local Lambda Function\n\n Parameters\n ----------\n function_name str\n Name of the function to invoke\n\n Returns\n -------\n ...
708
false
awslabs/aws-sam-cli
_invoke_request_handler
25,041
LDU_FT/tuxpiper/cloudcast/dump_json
LDU_FT
[ "<BEGIN>\n## `_run_resources_file`", "With a bit of import magic, we load the given path as a python module,\n while providing it access to the given stack under the import name '_context'.\n This function returns the module's global dictionary.\n<END>", "<BEGIN>\n## `load_template_srcmodule`", "This fu...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the dump_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 extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the dump_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 extract...
Return a string representation of this CloudFormation template.
"Return a string representation of this CloudFormation template."
28
false
tuxpiper/cloudcast
dump_json
25,042
LDU_FT/mjirik/imtools/donut
LDU_FT
[ "<BEGIN>\n## `get_superpxl_intensities`", "Calculates mean intensities of pixels in superpixels\n inputs:\n im ... grayscale image, ndarray [MxN]\n suppxls ... image with suppxls labels, ndarray -same shape as im\n outputs:\n suppxl_intens ... vector with suppxls mean intensities\n<END>...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the donut API. 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 donut API. 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...
Generate donut like shape with stick inside :return: datap with keys data3d, segmentation and voxelsize_mm
"Generate donut like shape with stick inside\n\n :return: datap with keys data3d, segmentation and voxelsize_mm"
75
false
mjirik/imtools
donut
25,043
LDU_FT/mattupstate/flask-security/create_role
LDU_FT
[ "<BEGIN>\n## `add_role_to_user`", "Adds a role to a user.", " :param user: The user to manipulate\n :param role: The role to add to the user\n<END>", "<BEGIN>\n## `remove_role_from_user`", "Removes a role from a user.", " :param user: The user to manipulate\n :param role: The r...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_role API. 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_role API. 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 and returns a new role from the given parameters.
"Creates and returns a new role from the given parameters."
145
false
mattupstate/flask-security
create_role
25,044
LDU_FT/broadinstitute/fiss/acl
LDU_FT
[ "<BEGIN>\n## `_set_session`", "Sets global __SESSION and __USER_ID if they haven't been set\n<END>", "<BEGIN>\n## `_fiss_agent_header`", "Return request headers for fiss.\n Inserts FISS as the User-Agent.\n Initializes __SESSION if it hasn't been set.", " Args:\n headers (dict): Incl...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the acl API. 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 acl API. 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...
Get the access control list for this method.
"Get the access control list for this method."
375
false
broadinstitute/fiss
acl
25,045
LDU_FT/smarie/python-valid8/validate_io
LDU_FT
[ "<BEGIN>\n## `instance_of`", "This type validation function can be used in two modes:\n * providing two arguments (x, ref_type), it returns `True` if isinstance(x, ref_type) and raises a HasWrongType\n error if not. If ref_type is a set of types, any match with one of the included types will do\n * pr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the validate_io API. 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 validate_io API. 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...
A function decorator to add input validation prior to the function execution. It should be called with named arguments: for each function arg name, provide a single validation function or a list of validation functions to apply. If validation fails, it will raise an InputValidationError with details about the f...
"A function decorator to add input validation prior to the function execution. It should be called with named\n arguments: for each function arg name, provide a single validation function or a list of validation functions to\n apply. If validation fails, it will raise an InputValidationError with details about th...
229
false
smarie/python-valid8
validate_io
25,046
LDU_FT/FujiMakoto/IPS-Vagrant/dev_tools_installer
LDU_FT
[ "<BEGIN>\n## `dev_tools_installer`", "Installer factory\n @param cv: Current version (The version of Developer Tools we are installing)\n @type cv: ips_vagrant.common.version.Version\n @return: Installer instance\n @rtype: ips_vagrant.installer.dev_tools.latest.DevToolsInstaller\n<END>", "...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the dev_tools_installer API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the dev_tools_installer API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
Installer factory @param cv: Current version (The version of Developer Tools we are installing) @type cv: ips_vagrant.common.version.Version @return: Installer instance @rtype: ips_vagrant.installer.dev_tools.latest.DevToolsInstaller
"Installer factory\n @param cv: Current version (The version of Developer Tools we are installing)\n @type cv: ips_vagrant.common.version.Version\n @return: Installer instance\n @rtype: ips_vagrant.installer.dev_tools.latest.DevToolsInstaller"
87
false
FujiMakoto/IPS-Vagrant
dev_tools_installer
25,047
LDU_FT/acrisci/i3ipc-python/get_config
LDU_FT
[ "<BEGIN>\n## `_pack`", "Packs the given message type and payload. Turns the resulting\n message into a byte string.\n<END>", "<BEGIN>\n## `_unpack`", "Unpacks the given byte string and parses the result from JSON.\n Returns None on failure and saves data into \"self.buffer\".\n<END>", "<BEGIN>...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_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 extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_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 extrac...
Currently only contains the "config" member, which is a string containing the config file as loaded by i3 most recently. :rtype: ConfigReply
"Currently only contains the \"config\" member, which is a string\n containing the config file as loaded by i3 most recently.\n\n :rtype: ConfigReply"
69
false
acrisci/i3ipc-python
get_config
25,048
LDU_FT/THLO/map/getDirectoryDictionary
LDU_FT
[ "<BEGIN>\n## `getDirectoryDictionary`", "This is an internal method to compute a dictionary containing\n all the directories that potentially contain (more) input.\n The dictionary 'table' indicates which of its contents are part of the input:", " table[directory] == 'ALL' means that its en...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the getDirectoryDictionary 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 getDirectoryDictionary API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
This is an internal method to compute a dictionary containing all the directories that potentially contain (more) input. The dictionary 'table' indicates which of its contents are part of the input: table[directory] == 'ALL' means that its entire content must be mapped table[directory] ...
"This is an internal method to compute a dictionary containing\n all the directories that potentially contain (more) input.\n The dictionary 'table' indicates which of its contents are part of the input:\n\n table[directory] == 'ALL' means that its entire content must be mapped\n table[direc...
26
false
THLO/map
getDirectoryDictionary
25,049
LDU_FT/glyphobet/fragments/init
LDU_FT
[ "<BEGIN>\n## `_visible_in_diff`", "Collects the set of lines that should be visible in a diff with a certain number of context lines\n<END>", "<BEGIN>\n## `_split_diff`", "Split diffs and context lines into groups based on None sentinel\n<END>", "<BEGIN>\n## `_diff_group_position`", "Generate a unified di...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the init API. 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 init API. 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...
Initialize a new fragments repository. Repository is in a directory named _fragments/, created in either the current working directory, or FRAGMENTS_ROOT if specified.
"Initialize a new fragments repository. Repository is in a directory named _fragments/, created in either the current working directory, or FRAGMENTS_ROOT if specified."
28
false
glyphobet/fragments
init
25,050
LDU_FT/aldur/cryptonator/get_available_currencies
LDU_FT
[ "<BEGIN>\n## `readme`", "Try converting the README to an RST document. Return it as is on failure.\n<END>", "<BEGIN>\n## `get_available_currencies`", "Return a list of all available Cryptonator currencies.\n<END>", "<BEGIN>\n## `get_exchange_rate`", "Return the ::base:: to ::target:: exchange rate.\n W...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_available_currencies API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_available_currencies API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio...
Return a list of all available Cryptonator currencies.
"Return a list of all available Cryptonator currencies."
10
false
aldur/cryptonator
get_available_currencies
25,051
LDU_FT/noobermin/lspreader/firsthash
LDU_FT
[ "<BEGIN>\n## `nearest_indices`", "Returns indices that perform nearest interpolation given a\n set of points. Similar to scipy.interpolate.griddata with\n method set to \"nearest\". In fact, it's construction is based\n on that function and related types.", " Parameters:\n -----------", " xs...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the firsthash API. 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 firsthash API. 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...
Hashes the first time step. Only will work as long as the hash can fit in a uint64. Parameters: ----------- frame : first frame. Keywords: --------- removedups: specify duplicates for the given frame. Returns a dictionary of everything needed to generate hashes from the ge...
"Hashes the first time step. Only will work as long as\n the hash can fit in a uint64.\n\n Parameters:\n -----------\n frame : first frame.\n\n Keywords:\n ---------\n removedups: specify duplicates for the given frame.\n \n Returns a dictionary of everything needed\n to generate hashe...
81
false
noobermin/lspreader
firsthash
25,052
LDU_FT/has2k1/plotnine/compute_panel
LDU_FT
[ "<BEGIN>\n## `iqr`", "Calculate the IQR for an array of numbers.\n<END>", "<BEGIN>\n## `freedman_diaconis_bins`", "Calculate number of hist bins using Freedman-Diaconis rule.\n<END>", "<BEGIN>\n## `breaks_from_binwidth`", "Calculate breaks given binwidth", " Parameters\n ----------\n x_range : ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the compute_panel API. 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 compute_panel API. 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...
Calculate the stats of all the groups and return the results in a single dataframe. This is a default function that can be overriden by individual stats Parameters ---------- data : dataframe data for the computing scales : types.SimpleNamespace ...
"Calculate the stats of all the groups and\n return the results in a single dataframe.\n\n This is a default function that can be overriden\n by individual stats\n\n Parameters\n ----------\n data : dataframe\n data for the computing\n scales : types.SimpleNam...
719
false
has2k1/plotnine
compute_panel
25,053
LDU_FT/praekeltfoundation/seed-message-sender/create_archived_outbound
LDU_FT
[ "<BEGIN>\n## `_get_filename`", "This function gets the base filename from the path, if a language code\n is present the filename will start from there.\n<END>", "<BEGIN>\n## `_override_payload`", "This function transforms the payload into a new format using the\n self.override_payload property.\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_archived_outbound 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 create_archived_outbound API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio...
Creates the required ArchivedOutbound entry with the file specified at `filename`
"Creates the required ArchivedOutbound entry with the file specified\n at `filename`"
36
false
praekeltfoundation/seed-message-sender
create_archived_outbound
25,054
LDU_FT/mdsol/rwslib/_processDML
LDU_FT
[ "<BEGIN>\n## `format_date_argument`", "Take a date as either a datetime.date/datetime or a string and return it as a iso8601 formatted value\n :param Union[datetime.date, datetime.datetime] date_element: passed argument\n :rtype str\n :return:\n<END>", "<BEGIN>\n## `dataset`", "Qualify the dataset_na...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _processDML API. 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 _processDML API. 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...
Overridden version of create DML for SQLLite
"Overridden version of create DML for SQLLite"
120
false
mdsol/rwslib
_processDML
25,055
LDU_FT/yhat/db.py/head
LDU_FT
[ "<BEGIN>\n## `all`", "Returns entire table as a DataFrame. This is executing:\n SELECT\n *\n FROM\n <name_of_the_table>", " Examples\n --------\n >>> from db import DemoDB\n >>> db = DemoDB()\n >>> len(db.tables.Track.all())\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the head API. 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 head API. 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 first n values of your column as a DataFrame. This is executing: SELECT <name_of_the_column> FROM <name_of_the_table> LIMIT <n> Parameters ---------- n: int number of rows to return Examples ...
"Returns first n values of your column as a DataFrame. This is executing:\n SELECT\n <name_of_the_column>\n FROM\n <name_of_the_table>\n LIMIT <n>\n\n Parameters\n ----------\n n: int\n number of rows to return\n\n Exa...
89
false
yhat/db.py
head
25,056
LDU_FT/tylertreat/BigQuery-Python/_submit_query_job
LDU_FT
[ "<BEGIN>\n## `get_client`", "Return a singleton instance of BigQueryClient. Either\n AssertionCredentials or a service account and private key combination need\n to be provided in order to authenticate requests to BigQuery.", " Parameters\n ----------\n project_id : str, optional\n The Big...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _submit_query_job API. 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 _submit_query_job API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Submit a query job to BigQuery. This is similar to BigQueryClient.query, but gives the user direct access to the query method on the offical BigQuery python client. For fine-grained control over a query job, see: https://google-api-client-libraries.appspot.c...
"Submit a query job to BigQuery.\n\n This is similar to BigQueryClient.query, but gives the user\n direct access to the query method on the offical BigQuery\n python client.\n\n For fine-grained control over a query job, see:\n https://google-api-client-libraries.a...
227
false
tylertreat/BigQuery-Python
_submit_query_job
25,057
LDU_FT/pyBookshelf/bookshelf/install_mesos_single_box_mode
LDU_FT
[ "<BEGIN>\n## `apt_install_from_url`", "installs a pkg from a url\n p pkg_name: the name of the package to install\n p url: the full URL for the rpm package\n<END>", "<BEGIN>\n## `apt_add_key`", "trust a new PGP key related to a apt-repository\n<END>", "<BEGIN>\n## `is_package_installed`", "c...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the install_mesos_single_box_mode API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the install_mesos_single_box_mode API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conc...
install mesos (all of it) on a single node
"install mesos (all of it) on a single node"
88
false
pyBookshelf/bookshelf
install_mesos_single_box_mode
25,058
LDU_FT/AnthonyBloomer/daftlistings/city_center_distance
LDU_FT
[ "<BEGIN>\n## `set_address`", "Set the address.\n :param address:\n<END>", "<BEGIN>\n## `set_min_lease`", "Set the minimum lease period in months.\n :param min_lease: int\n<END>", "<BEGIN>\n## `set_added_since`", "Set this to retrieve ads that are a given number of days old.\n For exam...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the city_center_distance API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the city_center_distance API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
This method gets the distance to city center, in km. :return:
"This method gets the distance to city center, in km.\n :return:"
96
false
AnthonyBloomer/daftlistings
city_center_distance
25,059
LDU_FT/PredixDev/predixpy/get_instance_guid
LDU_FT
[ "<BEGIN>\n## `create`", "Create an instance of the US Weather Forecast Service with\n typical starting settings.\n<END>", "<BEGIN>\n## `add_to_manifest`", "Add useful details to the manifest about this service\n so that it can be used in an application.", " :param manifest: An predix.ad...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_instance_guid API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_instance_guid API. 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 the GUID for the service instance with the given name.
"Returns the GUID for the service instance with\n the given name."
501
false
PredixDev/predixpy
get_instance_guid
25,060
LDU_FT/klen/adrest/get_default_filters
LDU_FT
[ "<BEGIN>\n## `convert_identifier_to_key`", "Takes an identifier (like a username or IP address) and converts it\n into a key usable by the cache system.\n<END>", "<BEGIN>\n## `emit`", "Serialize response.", " :return response: Instance of django.http.Response\n<END>", "<BEGIN>\n## `seria...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_default_filters API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_default_filters API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
Return default filters by a model fields. :return dict: name, field
"Return default filters by a model fields.\n\n :return dict: name, field"
146
false
klen/adrest
get_default_filters
25,061
LDU_FT/coopernurse/barrister/struct
LDU_FT
[ "<BEGIN>\n## `get_checksum`", "Returns a checksum based on the IDL that ignores comments and \n ordering, but detects changes to types, parameter order, \n and enum values.\n<END>", "<BEGIN>\n## `contract_from_file`", "Loads a Barrister IDL JSON from the given file and returns a Contract class",...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the struct API. 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 struct API. 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 the struct with the given name, or raises RpcException if no struct matches
"Returns the struct with the given name, or raises RpcException if no struct matches"
126
false
coopernurse/barrister
struct
25,062
LDU_FT/tobgu/pyrsistent/extend
LDU_FT
[ "<BEGIN>\n## `pdeque`", "Return deque containing the elements of iterable. If maxlen is specified then\n len(iterable) - maxlen elements are discarded from the left to if len(iterable) > maxlen.", " >>> pdeque([1, 2, 3])\n pdeque([1, 2, 3])\n >>> pdeque([1, 2, 3, 4], maxlen=2)\n pdeque([3, 4], ma...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the extend API. 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 extend API. 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 new deque with all elements of iterable appended to the right. >>> pdeque([1, 2]).extend([3, 4]) pdeque([1, 2, 3, 4])
"Return new deque with all elements of iterable appended to the right.\n\n >>> pdeque([1, 2]).extend([3, 4])\n pdeque([1, 2, 3, 4])"
130
false
tobgu/pyrsistent
extend
25,063
LDU_FT/limix/numpy-sugar/lstsq
LDU_FT
[ "<BEGIN>\n## `dotd`", "r\"\"\"Diagonal of :math:`\\mathrm A\\mathrm B^\\intercal`.", " If ``A`` is :math:`n\\times p` and ``B`` is :math:`p\\times n`, it is done in\n :math:`O(pn)`.", " Args:\n A (array_like): Left matrix.\n B (array_like): Right matrix.\n out (:class:`numpy.ndar...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the lstsq API. 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 lstsq API. 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"""Return the least-squares solution to a linear matrix equation. Args: A (array_like): Coefficient matrix. b (array_like): Ordinate values. Returns: :class:`numpy.ndarray`: Least-squares solution.
"r\"\"\"Return the least-squares solution to a linear matrix equation.\n\n Args:\n A (array_like): Coefficient matrix.\n b (array_like): Ordinate values.\n\n Returns:\n :class:`numpy.ndarray`: Least-squares solution."
124
false
limix/numpy-sugar
lstsq
25,064
LDU_FT/standage/tag/write
LDU_FT
[ "<BEGIN>\n## `accession`", "Parse accession number from commonly supported formats.", " If the defline does not match one of the following formats, the entire\n description (sans leading caret) will be returned.", " * >gi|572257426|ref|XP_006607122.1|\n * >gnl|Tcas|XP_008191512.1\n...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the write API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the write API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
Pull features from the instream and write them to the output.
"Pull features from the instream and write them to the output."
114
false
standage/tag
write
25,065
LDU_FT/edeposit/edeposit.amqp.antivirus/save_and_scan
LDU_FT
[ "<BEGIN>\n## `_parse_result`", "Parse ``clamscan`` output into same dictionary structured used by\n ``pyclamd``.", " Input example::\n /home/bystrousak/Plocha/prace/test/eicar.com: Eicar-Test-Signature FOUND", " Output dict::\n {\n \"/home/bystrousak/Plocha/prace/test/eicar.c...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the save_and_scan API. 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 save_and_scan API. 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...
Save `b64_data` to temporary file and scan it for viruses. Args: filename (str): Name of the file - used as basename for tmp file. b64_data (str): Content of the file encoded in base64. Returns: dict: ``{filename: ("FOUND", "virus type")}`` or blank dict.
"Save `b64_data` to temporary file and scan it for viruses.\n\n Args:\n filename (str): Name of the file - used as basename for tmp file.\n b64_data (str): Content of the file encoded in base64.\n\n Returns:\n dict: ``{filename: (\"FOUND\", \"virus type\")}`` or blank dict."
41
false
edeposit/edeposit.amqp.antivirus
save_and_scan
25,066
LDU_FT/harlowja/fasteners/try_lock
LDU_FT
[ "<BEGIN>\n## `_ensure_tree`", "Create a directory (and any ancestor directories required).", " :param path: Directory to create\n<END>", "<BEGIN>\n## `interprocess_locked`", "Acquires & releases a interprocess lock around call into\n decorated function.\n<END>", "<BEGIN>\n## `acquire`", "Attemp...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the try_lock API. 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 try_lock API. 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...
Attempts to acquire a lock, and auto releases if acquired (on exit).
"Attempts to acquire a lock, and auto releases if acquired (on exit)."
37
false
harlowja/fasteners
try_lock
25,067
LDU_FT/tensorflow/datasets/_make_builder_configs
LDU_FT
[ "<BEGIN>\n## `_decode_image`", "Reads and decodes an image from a file object as a Numpy array.", " The SUN dataset contains images in several formats (despite the fact that\n all of them have .jpg extension). Some of them are:\n - BMP (RGB)\n - PNG (grayscale, RGBA, RGB interlaced)\n - JPEG (RGB)\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _make_builder_configs 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 _make_builder_configs API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Make built-in Librispeech BuilderConfigs. Uses 4 text encodings (plain text, bytes, subwords with 8k vocab, subwords with 32k vocab) crossed with the data subsets (clean100, clean360, all). Returns: `list<tfds.audio.LibrispeechConfig>`
"Make built-in Librispeech BuilderConfigs.\n\n Uses 4 text encodings (plain text, bytes, subwords with 8k vocab, subwords\n with 32k vocab) crossed with the data subsets (clean100, clean360, all).\n\n Returns:\n `list<tfds.audio.LibrispeechConfig>`"
609
false
tensorflow/datasets
_make_builder_configs
25,068
LDU_FT/vicenteneto/python-cartolafc/set_credentials
LDU_FT
[ "<BEGIN>\n## `set_credentials`", "Realiza a autenticação no sistema do CartolaFC utilizando o email e password informados.", " Args:\n email (str): O email do usuário\n password (str): A senha do usuário", " Raises:\n cartolafc.CartolaFCError: Se o conjunto (emai...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_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 e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_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 e...
Realiza a autenticação no sistema do CartolaFC utilizando o email e password informados. Args: email (str): O email do usuário password (str): A senha do usuário Raises: cartolafc.CartolaFCError: Se o conjunto (email, password) não conseguiu realizar a autenticação ...
"Realiza a autenticação no sistema do CartolaFC utilizando o email e password informados.\n\n Args:\n email (str): O email do usuário\n password (str): A senha do usuário\n\n Raises:\n cartolafc.CartolaFCError: Se o conjunto (email, password) não conseguiu realizar a auten...
33
false
vicenteneto/python-cartolafc
set_credentials
25,069
LDU_FT/scottjbarr/bitfinex/place_order
LDU_FT
[ "<BEGIN>\n## `place_order`", "Submit a new order.\n :param amount:\n :param price:\n :param side:\n :param ord_type:\n :param symbol:\n :param exchange:\n :return:\n<END>", "<BEGIN>\n## `delete_order`", "Cancel an order.\n :param order_id:\n :retu...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the place_order API. 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 place_order API. 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...
Submit a new order. :param amount: :param price: :param side: :param ord_type: :param symbol: :param exchange: :return:
"Submit a new order.\n :param amount:\n :param price:\n :param side:\n :param ord_type:\n :param symbol:\n :param exchange:\n :return:"
28
false
scottjbarr/bitfinex
place_order
25,070
LDU_FT/HDI-Project/RDT/reverse_transform_table
LDU_FT
[ "<BEGIN>\n## `check_data_type`", "Check the type of the transformer and column match.", " Args:\n column_metadata(dict): Metadata of the column.", " Raises a ValueError if the types don't match\n<END>", "<BEGIN>\n## `fit`", "Prepare the transformer to convert data.", " Ar...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the reverse_transform_table API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the reverse_transform_table API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion...
Transform a `table` back to its original format. Args: table(pandas.DataFrame): Contents of the table to be transformed. table_meta(dict): Metadata for the given table. missing(bool): Wheter or not use NullTransformer to handle missing values. Returns: ...
"Transform a `table` back to its original format.\n\n Args:\n table(pandas.DataFrame): Contents of the table to be transformed.\n\n table_meta(dict): Metadata for the given table.\n\n missing(bool): Wheter or not use NullTransformer to handle missing values.\n\n ...
154
false
HDI-Project/RDT
reverse_transform_table
25,071
LDU_FT/softlayer/softlayer-python/edit_securitygroup_rule
LDU_FT
[ "<BEGIN>\n## `cli`", "List package items used for ordering.", " The item keyNames listed can be used with `slcli order place` to specify\n the items that are being ordered in the package.", " .. Note::\n Items with a numbered category, like disk0 or gpu0, can be included\n multiple time...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the edit_securitygroup_rule 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 edit_securitygroup_rule API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion...
Edit a security group rule. :param int group_id: The ID of the security group the rule belongs to :param int rule_id: The ID of the rule to edit :param str remote_ip: The remote IP or CIDR to enforce the rule on :param int remote_group: The remote security group ID to enforce ...
"Edit a security group rule.\n\n :param int group_id: The ID of the security group the rule belongs to\n :param int rule_id: The ID of the rule to edit\n :param str remote_ip: The remote IP or CIDR to enforce the rule on\n :param int remote_group: The remote security group ID to enforce\n ...
1,375
true
softlayer/softlayer-python
edit_securitygroup_rule
25,072