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/acutesoftware/AIKIF/document_core_programs
LDU_FT
[ "<BEGIN>\n## `where_am_i`", "high level function that can estimate where user is based \n on predefined setups.\n<END>", "<BEGIN>\n## `dump_all`", "prints all attributes and returns them as a dictionary \n (mainly for testing how it will all integrate)\n<END>", "<BEGIN>\n## `summarise`", "extrap...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the document_core_programs 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 document_core_programs API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
Document a subset of core programs with purpose (and intent)
"Document a subset of core programs with purpose (and intent)"
486
false
acutesoftware/AIKIF
document_core_programs
11,373
LDU_FT/trustar/trustar-python/from_string
LDU_FT
[ "<BEGIN>\n## `from_dict`", "Create an indicator object from a dictionary.", " :param indicator: The dictionary.\n :return: The indicator object.\n<END>", "<BEGIN>\n## `to_dict`", "Creates a dictionary representation of the indicator.", " :param remove_nones: Whether ``None`` values sh...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the from_string API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the from_string API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
Simply logs a warning if the desired enum value is not found. :param string: :return:
"Simply logs a warning if the desired enum value is not found.\n\n :param string:\n :return:"
243
false
trustar/trustar-python
from_string
11,374
LDU_FT/cameronmaske/celery-once/queue_once_key
LDU_FT
[ "<BEGIN>\n## `parse_url`", "Parse the argument url and return a redis connection.\n Two patterns of url are supported:\n * redis://host:port[/db][?options]\n * redis+socket:///path/to/redis.sock[?options]\n A ValueError is raised if the URL is not recognized.\n<END>", "<BEGIN>\n## `raise_or_...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the queue_once_key API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the queue_once_key API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
Turns a list the name of the task, the kwargs and allowed keys into a redis key.
"Turns a list the name of the task, the kwargs and allowed keys\n into a redis key."
21
false
cameronmaske/celery-once
queue_once_key
11,375
LDU_FT/axialmarket/fsq/push
LDU_FT
[ "<BEGIN>\n## `barf`", "Exit with a log message (usually a fatal error)\n<END>", "<BEGIN>\n## `done_item`", "Succeed or fail an item based on the return code of a program\n<END>", "<BEGIN>\n## `setenv`", "Set environment, based on item. Usually done in a baby fork\n<END>", "<BEGIN>\n## `shout`", "Log ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the push API. 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 push API. 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...
Enqueue an FSQWorkItem at a remote queue
"Enqueue an FSQWorkItem at a remote queue"
99
false
axialmarket/fsq
push
11,376
LDU_FT/bitly/asyncmongo/command
LDU_FT
[ "<BEGIN>\n## `_unpack_response`", "Unpack a response from the database.", " Check the response for errors and unpack, returning a dictionary\n containing the response data.", " :Parameters:\n - `response`: byte string as returned from the database\n - `cursor_id` (optional): cursor_id we se...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the command API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the command API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
Issue a MongoDB command. Send command `command` to the database and return the response. If `command` is an instance of :class:`basestring` then the command {`command`: `value`} will be sent. Otherwise, `command` must be an instance of :class:`dict` and will be sent as is. ...
"Issue a MongoDB command.\n\n Send command `command` to the database and return the\n response. If `command` is an instance of :class:`basestring`\n then the command {`command`: `value`} will be sent. Otherwise,\n `command` must be an instance of :class:`dict` and will be\n sent as is...
88
false
bitly/asyncmongo
command
11,377
LDU_FT/xflr6/features/make_features
LDU_FT
[ "<BEGIN>\n## `uniqued`", "Return unique list of items preserving order.", " >>> uniqued([3, 2, 1, 3, 2, 1, 0])\n [3, 2, 1, 0]\n<END>", "<BEGIN>\n## `butlast`", "Yield all items from ``iterable`` except the last one.", " >>> list(butlast(['spam', 'eggs', 'ham']))\n ['spam', 'eggs']", " >>>...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the make_features API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the make_features API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
Return a new feature system from context string in the given format. Args: context (str): Formal context table as plain-text string. frmat: Format of the context string (``'table'``, ``'cxt'``, ``'csv'``). str_maximal (bool): Example: >>> make_features(''' ... |+ma...
"Return a new feature system from context string in the given format.\n\n Args:\n context (str): Formal context table as plain-text string.\n frmat: Format of the context string (``'table'``, ``'cxt'``, ``'csv'``).\n str_maximal (bool):\n\n Example:\n >>> make_features('''\n ......
33
false
xflr6/features
make_features
11,378
LDU_FT/kevinconway/confpy/coerce
LDU_FT
[ "<BEGIN>\n## `configfile_from_path`", "Get a ConfigFile object based on a file path.", " This method will inspect the file extension and return the appropriate\n ConfigFile subclass initialized with the given path.", " Args:\n path (str): The file path which represents the configuration file.\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the coerce API. 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 coerce API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Convert an iterable of literals to an iterable of options. Args: values (iterable or string): An iterable of raw values to convert into options. If the value is a string is is assumed to be a comma separated list and will be split before processing. Returns: ...
"Convert an iterable of literals to an iterable of options.\r\n\r\n Args:\r\n values (iterable or string): An iterable of raw values to convert\r\n into options. If the value is a string is is assumed to be a\r\n comma separated list and will be split before processing.\r\n\r\n ...
104
false
kevinconway/confpy
coerce
11,379
LDU_FT/bitcraft/PyTMX/default_image_loader
LDU_FT
[ "<BEGIN>\n## `default_image_loader`", "This default image loader just returns filename, rect, and any flags\n<END>", "<BEGIN>\n## `decode_gid`", "Decode a GID from TMX data", " as of 0.7.0 it determines if the tile should be flipped when rendered\n as of 0.8.0 bit 30 determines if GID is rotated", "...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the default_image_loader 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 default_image_loader 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 default image loader just returns filename, rect, and any flags
"This default image loader just returns filename, rect, and any flags"
134
false
bitcraft/PyTMX
default_image_loader
11,380
LDU_FT/Felspar/django-fost-authn/filter_query_string
LDU_FT
[ "<BEGIN>\n## `sha1_hmac`", "Calculate the Base 64 encoding of the HMAC for the given document.\n<END>", "<BEGIN>\n## `filter_query_string`", "Return a version of the query string with the _e, _k and _s values\n removed.\n<END>", "<BEGIN>\n## `fost_hmac_url_signature`", "Return a signature that corr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the filter_query_string API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the filter_query_string API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
Return a version of the query string with the _e, _k and _s values removed.
"Return a version of the query string with the _e, _k and _s values\n removed."
11
false
Felspar/django-fost-authn
filter_query_string
11,381
LDU_FT/romanz/trezor-agent/sign_digest
LDU_FT
[ "<BEGIN>\n## `create_default_options_getter`", "Return current TTY and DISPLAY settings for GnuPG pinentry.\n<END>", "<BEGIN>\n## `write`", "Send and flush a single line to the subprocess' stdin.\n<END>", "<BEGIN>\n## `expect`", "Read a line and return it without required prefix.\n<END>", "<BEGIN>\n## `...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the sign_digest API. 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 sign_digest API. 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...
Sign a digest using specified key using GPG agent.
"Sign a digest using specified key using GPG agent."
235
false
romanz/trezor-agent
sign_digest
11,382
LDU_FT/rdireen/spherepy/_reshape_n_vecs
LDU_FT
[ "<BEGIN>\n## `sbessely`", "Returns a vector of spherical bessel functions yn:\r", " x: The argument.\r\n N: values of n will run from 0 to N-1.\n<END>", "<BEGIN>\n## `sbesselj`", "Returns a vector of spherical bessel functions jn:\r", " x: The argument.\r\n N: values of...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _reshape_n_vecs API. 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 _reshape_n_vecs API. 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 list of arrays, each array represents a different m mode
"return list of arrays, each array represents a different m mode"
194
false
rdireen/spherepy
_reshape_n_vecs
11,383
LDU_FT/rsmuc/health_monitoring_plugins/normal_check
LDU_FT
[ "<BEGIN>\n## `check_ups_estimated_minutes_remaining`", "OID .1.3.6.1.2.1.33.1.2.3.0\n MIB excerpt\n An estimate of the time to battery charge depletion\n under the present load conditions if the utility power\n is off and remains off, or if it were to be lost and\n remain off.\n<END>", "<BEGIN>\n...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the normal_check API. 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 normal_check API. 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...
if the status is "ok" in the NORMAL_STATE dict, return ok + string if the status is not "ok", return critical + string
"if the status is \"ok\" in the NORMAL_STATE dict, return ok + string\n if the status is not \"ok\", return critical + string"
75
false
rsmuc/health_monitoring_plugins
normal_check
11,384
LDU_FT/pkgw/pwkit/ellbiv
LDU_FT
[ "<BEGIN>\n## `sample_gamma`", "This is mostly about recording the conversion between Numpy/Scipy\n conventions and Wikipedia conventions. Some equations:", " mean = alpha / beta\n variance = alpha / beta**2\n mode = (alpha - 1) / beta [if alpha > 1; otherwise undefined]\n skewness = 2 / sqrt(alph...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the ellbiv API. 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 ellbiv API. 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 ...
Given a 2D Gaussian expressed as an ellipse (major, minor, pa), compute the equivalent parameters for a Gaussian bivariate distribution. We assume that the ellipse is normalized so that the functions evaluate identicall for major = minor. Inputs: * mjr: major axis (sigma not FWHM) of the Gaussian ...
"Given a 2D Gaussian expressed as an ellipse (major, minor, pa), compute the\n equivalent parameters for a Gaussian bivariate distribution. We assume\n that the ellipse is normalized so that the functions evaluate identicall\n for major = minor.\n\n Inputs:\n\n * mjr: major axis (sigma not FWHM) of the G...
1,269
true
pkgw/pwkit
ellbiv
11,385
LDU_FT/mar10/pyftpsync/write_text
LDU_FT
[ "<BEGIN>\n## `match_path`", "Return True if `path` matches `match` and `exclude` options.\n<END>", "<BEGIN>\n## `_compare_file`", "Byte compare two files (early out on first difference).\n<END>", "<BEGIN>\n## `_tick`", "Write progress info and move cursor to beginning of line.\n<END>", "<BEGIN>\n## `_sy...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the write_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 extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the write_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 extrac...
Write string data to cur_dir/name using write_file().
"Write string data to cur_dir/name using write_file()."
122
false
mar10/pyftpsync
write_text
11,386
LDU_FT/dwavesystems/dimod/data_struct_array
LDU_FT
[ "<BEGIN>\n## `sample`", "Give random samples for a binary quadratic model.", " Variable assignments are chosen by coin flip.", " Args:\n bqm (:obj:`.BinaryQuadraticModel`):\n Binary quadratic model to be sampled from.", " num_reads (int, optional, default=1...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the data_struct_array API. 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 data_struct_array API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Combine samples and per-sample data into a numpy structured array. Args: sample (array_like): Samples, in any form that can be converted into a numpy array. energy (array_like, required): Required keyword argument. Energies, in any form that can be converted into a numpy ...
"Combine samples and per-sample data into a numpy structured array.\n\n Args:\n sample (array_like):\n Samples, in any form that can be converted into a numpy array.\n\n energy (array_like, required):\n Required keyword argument. Energies, in any form that can be converted into a ...
908
false
dwavesystems/dimod
data_struct_array
11,387
LDU_FT/orbingol/NURBS-Python/keypress_callback
LDU_FT
[ "<BEGIN>\n## `bspline_to_nurbs`", "Converts non-rational parametric shapes to rational ones.", " :param obj: B-Spline shape\n :type obj: BSpline.Curve, BSpline.Surface or BSpline.Volume\n :return: NURBS shape\n :rtype: NURBS.Curve, NURBS.Surface or NURBS.Volume\n :raises: TypeError\n<END>", "<B...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the keypress_callback API. 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 keypress_callback API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
VTK callback for keypress events. Keypress events: * ``e``: exit the application * ``p``: pick object (hover the mouse and then press to pick) * ``f``: fly to point (click somewhere in the window and press to fly) * ``r``: reset the camera * ``s`` and...
"VTK callback for keypress events.\n\n Keypress events:\n * ``e``: exit the application\n * ``p``: pick object (hover the mouse and then press to pick)\n * ``f``: fly to point (click somewhere in the window and press to fly)\n * ``r``: reset the camera\n * `...
809
false
orbingol/NURBS-Python
keypress_callback
11,388
LDU_FT/agoragames/leaderboard-python/expire_leaderboard_at_for
LDU_FT
[ "<BEGIN>\n## `pool`", "Fetch a redis conenction pool for the unique combination of host\n and port. Will create a new one if there isn't one already.\n<END>", "<BEGIN>\n## `rank_member`", "Rank a member in the leaderboard.", " @param member [String] Member name.\n @param score [float] M...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the expire_leaderboard_at_for 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 expire_leaderboard_at_for API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi...
Expire the given leaderboard at a specific UNIX timestamp. Do not use this with leaderboards that utilize member data as there is no facility to cascade the expiration out to the keys for the member data. @param leaderboard_name [String] Name of the leaderboard. @param timestamp [int] U...
"Expire the given leaderboard at a specific UNIX timestamp. Do not use this with\n leaderboards that utilize member data as there is no facility to cascade the\n expiration out to the keys for the member data.\n\n @param leaderboard_name [String] Name of the leaderboard.\n @param timestamp [...
180
false
agoragames/leaderboard-python
expire_leaderboard_at_for
11,389
LDU_FT/angr/claripy/_align_ast
LDU_FT
[ "<BEGIN>\n## `_align_ast`", "Aligns the AST so that the argument with the highest cardinality is on the left.", " :return: a new AST.\n<END>", "<BEGIN>\n## `_doit`", "This function processes the list of truisms and finds bounds for ASTs.\n<END>", "<BEGIN>\n## `_handleable_truism`", "Checks whethe...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _align_ast API. 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 _align_ast API. 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...
Aligns the AST so that the argument with the highest cardinality is on the left. :return: a new AST.
"Aligns the AST so that the argument with the highest cardinality is on the left.\n\n :return: a new AST."
453
false
angr/claripy
_align_ast
11,390
LDU_FT/fdb/aufmachen/decompose
LDU_FT
[ "<BEGIN>\n## `phantomjs_retrieve`", "Retrieve the given URL using PhantomJS.\n PhantomJS will evaluate all scripts and return the HTML after body.onload.", " url - The page URL to retrieve\n data - The form data. TODO: Currently ignored.", " Returns a status code (e.g. 200) and the HTML as a unic...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the decompose API. 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 decompose API. 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...
Recursively destroys the contents of this tree.
"Recursively destroys the contents of this tree."
43
false
fdb/aufmachen
decompose
11,391
LDU_FT/brainiak/brainiak/mask_brain
LDU_FT
[ "<BEGIN>\n## `_generate_feature`", "Generate features corresponding to signal", " Generate a single feature, that can be inserted into the signal volume.\n A feature is a region of activation with a specific shape such as cube\n or ring", " Parameters\n ----------", " feature_type : str\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the mask_brain API. 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 mask_brain API. 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...
Mask the simulated volume This creates a mask specifying the approximate likelihood that a voxel is part of the brain. All values are bounded to the range of 0 to 1. An appropriate threshold to isolate brain voxels is >0.2. Critically, the data that should be used to create a template shouldn't already ...
"Mask the simulated volume\n This creates a mask specifying the approximate likelihood that a voxel is\n part of the brain. All values are bounded to the range of 0 to 1. An\n appropriate threshold to isolate brain voxels is >0.2. Critically,\n the data that should be used to create a template shouldn't alr...
1,513
true
brainiak/brainiak
mask_brain
11,392
LDU_FT/sengupta/twss/is_twss
LDU_FT
[ "<BEGIN>\n## `import_training_data`", "This method imports the positive and negative training data from the\n two corpus files and creates the training data list.\n<END>", "<BEGIN>\n## `train`", "This method generates the classifier. This method assumes that the\n training data has been loaded\n...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_twss API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_twss API. 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...
The magic function- this accepts a phrase and tells you if it classifies as an entendre
"The magic function- this accepts a phrase and tells you if it\n classifies as an entendre"
10
false
sengupta/twss
is_twss
11,393
LDU_FT/amoffat/sh/setwinsize
LDU_FT
[ "<BEGIN>\n## `encode_to_py3bytes_or_py2str`", "takes anything and attempts to return a py2 string or py3 bytes. this\n is typically used when creating command + arguments to be executed via\n os.exec*\n<END>", "<BEGIN>\n## `get_exc_from_name`", "takes an exception name, like:", " ErrorReturnCo...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the setwinsize API. 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 setwinsize API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
set the terminal size of a tty file descriptor. borrowed logic from pexpect.py
"set the terminal size of a tty file descriptor. borrowed logic\n from pexpect.py"
83
false
amoffat/sh
setwinsize
11,394
LDU_FT/sveetch/django-feedparser/get
LDU_FT
[ "<BEGIN>\n## `safe_import_module`", "Try to import the specified module from the given Python path", " @path is a string containing a Python path to the wanted module, @default is \n an object to return if import fails, it can be None, a callable or whatever you need.", " Return a object or None\n<EN...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
Fetch the feed if no cache exist or if cache is stale
"Fetch the feed if no cache exist or if cache is stale"
22
false
sveetch/django-feedparser
get
11,395
LDU_FT/CI-WATER/mapkit/getAsGdalRaster
LDU_FT
[ "<BEGIN>\n## `getAsKmlGrid`", "Creates a KML file with each cell in the raster represented by a polygon. The result is a vector grid representation of the raster.\n Note that pixels with values between -1 and 0 are omitted as no data values. Also note that this method only works on the first band.\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the getAsGdalRaster API. 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 getAsGdalRaster API. 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 string/buffer representation of the raster in the specified format. Wrapper for ST_AsGDALRaster function in the database.
"Returns a string/buffer representation of the raster in the specified format. Wrapper for\n ST_AsGDALRaster function in the database."
62
false
CI-WATER/mapkit
getAsGdalRaster
11,396
LDU_FT/tk0miya/tk.phpautodoc/p_static_scalar_namespace_name
LDU_FT
[ "<BEGIN>\n## `p_top_statement_namespace`", "top_statement : NAMESPACE namespace_name SEMI\n | NAMESPACE LBRACE top_statement_list RBRACE\n | NAMESPACE namespace_name LBRACE top_statement_list RBRACE\n<END>", "<BEGIN>\n## `p_use_declaration`", "use_declaration : namespac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the p_static_scalar_namespace_name 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 p_static_scalar_namespace_name API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its con...
static_scalar : namespace_name | NS_SEPARATOR namespace_name | NAMESPACE NS_SEPARATOR namespace_name
"static_scalar : namespace_name\n | NS_SEPARATOR namespace_name\n | NAMESPACE NS_SEPARATOR namespace_name"
152
false
tk0miya/tk.phpautodoc
p_static_scalar_namespace_name
11,397
LDU_FT/closeio/tasktiger/_filter_queues
LDU_FT
[ "<BEGIN>\n## `set_system_lock`", "Set system lock for the semaphore.", " Sets a system lock that will expire in timeout seconds. This\n overrides all other locks. Existing locks cannot be renewed\n and no new locks will be permitted until the system lock\n expires.", " Argum...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _filter_queues API. 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 _filter_queues API. 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...
Applies the queue filter to the given list of queues and returns the queues that match. Note that a queue name matches any subqueues starting with the name, followed by a date. For example, "foo" will match both "foo" and "foo.bar".
"Applies the queue filter to the given list of queues and returns the\n queues that match. Note that a queue name matches any subqueues\n starting with the name, followed by a date. For example, \"foo\" will\n match both \"foo\" and \"foo.bar\"."
124
false
closeio/tasktiger
_filter_queues
11,398
LDU_FT/micahhausler/container-transform/ingest_memory
LDU_FT
[ "<BEGIN>\n## `_read_stream`", "We override the return signature of\n ``super(BaseTransformer, self)._read_stream()`` to return extra volume\n data. This is intentional.", " :param stream: A file like object\n :returns: Return the family name, containers, and volumes. If there are\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the ingest_memory API. 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 ingest_memory API. 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...
Transform the memory into bytes :param memory: Compose memory definition. (1g, 24k) :type memory: memory string or integer :return: The memory in bytes :rtype: int
"Transform the memory into bytes\n\n :param memory: Compose memory definition. (1g, 24k)\n :type memory: memory string or integer\n :return: The memory in bytes\n :rtype: int"
61
false
micahhausler/container-transform
ingest_memory
11,399
LDU_FT/dsoprea/PySchedules/startElement
LDU_FT
[ "<BEGIN>\n## `_startXTVDNode`", "Process the start of the top-level xtvd node\n<END>", "<BEGIN>\n## `_startStationsNode`", "Process the start of a node under xtvd/stations\n<END>", "<BEGIN>\n## `_endStationsNode`", "Process the end of a node under xtvd/stations\n<END>", "<BEGIN>\n## `_startLineupsNode`"...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the startElement API. 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 startElement API. 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...
Callback run at the start of each XML element
"Callback run at the start of each XML element"
50
false
dsoprea/PySchedules
startElement
11,400
LDU_FT/razor-x/dichalcogenides/parameter_list
LDU_FT
[ "<BEGIN>\n## `get`", "Get a parameter object by name.", " :param name: Name of the parameter object.\n :type name: str", " :return: The parameter.\n :rtype: Parameter\n<END>", "<BEGIN>\n## `add_parameter`", "Add a parameter to the parameter list.", " :param name: New p...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parameter_list API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parameter_list API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
Create a list of parameter objects from a dict. :param data: Dictionary to convert to parameter list. :type data: dict :return: Parameter list. :rtype: dict
"Create a list of parameter objects from a dict.\n\n :param data: Dictionary to convert to parameter list.\n :type data: dict\n\n :return: Parameter list.\n :rtype: dict"
60
false
razor-x/dichalcogenides
parameter_list
11,401
LDU_FT/nornir-automation/nornir/open_connection
LDU_FT
[ "<BEGIN>\n## `start`", "Run the task for the given host.", " Arguments:\n host (:obj:`nornir.core.inventory.Host`): Host we are operating with. Populated right\n before calling the ``task``\n nornir(:obj:`nornir.core.Nornir`): Populated right before calling\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the open_connection API. 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 open_connection API. 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...
Open a new connection. If ``default_to_host_attributes`` is set to ``True`` arguments will default to host attributes if not specified. Raises: AttributeError: if it's unknown how to establish a connection for the given type Returns: An already established conn...
"Open a new connection.\n\n If ``default_to_host_attributes`` is set to ``True`` arguments will default to host\n attributes if not specified.\n\n Raises:\n AttributeError: if it's unknown how to establish a connection for the given type\n\n Returns:\n An already establ...
175
false
nornir-automation/nornir
open_connection
11,402
LDU_FT/insightindustry/validator-collection/none
LDU_FT
[ "<BEGIN>\n## `disable_on_env`", "Disable the ``func`` called if its name is present in ``VALIDATORS_DISABLED``.", " :param func: The function/validator to be disabled.\n :type func: callable", " :returns: If disabled, the ``value`` (first positional argument) passed to\n ``func``. If enabled, th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the none API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the none API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
Validate that ``value`` is :obj:`None <python:None>`. :param value: The value to validate. :param allow_empty: If ``True``, returns :obj:`None <python:None>` if ``value`` is empty but **not** :obj:`None <python:None>`. If ``False``, raises a :class:`NotNoneError` if ``value`` is empty but **not**...
"Validate that ``value`` is :obj:`None <python:None>`.\n\n :param value: The value to validate.\n\n :param allow_empty: If ``True``, returns :obj:`None <python:None>` if ``value``\n is empty but **not** :obj:`None <python:None>`. If ``False``, raises a\n :class:`NotNoneError` if ``value`` is empty but ...
599
false
insightindustry/validator-collection
none
11,403
LDU_FT/benoitkugler/abstractDataLibrary/update
LDU_FT
[ "<BEGIN>\n## `recherche`", "abstractSearch in fields of collection and reset rendering.\n Returns number of results.\n If in_all is True, call get_all before doing the search.\n<END>", "<BEGIN>\n## `launch_background_job`", "Launch the callable job in background thread.\n Succes or failur...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Update row with Id from table. Set fields given by dic.
"Update row with Id from table. Set fields given by dic."
131
false
benoitkugler/abstractDataLibrary
update
11,404
LDU_FT/pyvec/pyvodb/calendar
LDU_FT
[ "<BEGIN>\n## `handle_raw_output`", "If a raw output format is set, dump data and exit\n<END>", "<BEGIN>\n## `start`", "The event's start time, as a timezone-aware datetime object\n<END>", "<BEGIN>\n## `next_occurrences`", "Yield the next planned occurrences after the date \"since\"", " The `since...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the calendar API. 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 calendar API. 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...
Show a 3-month calendar of meetups. \b date: The date around which the calendar is centered. May be: - YYYY-MM-DD, YY-MM-DD, YYYY-MM or YY-MM (e.g. 2015-08) - MM (e.g. 08): the given month in the current year - pN (e.g. p1): N-th last month - +N (e.g. +2): N-th next month ...
"Show a 3-month calendar of meetups.\n\n \\b\n date: The date around which the calendar is centered. May be:\n - YYYY-MM-DD, YY-MM-DD, YYYY-MM or YY-MM (e.g. 2015-08)\n - MM (e.g. 08): the given month in the current year\n - pN (e.g. p1): N-th last month\n - +N (e.g. +2): N-th next mon...
26
false
pyvec/pyvodb
calendar
11,405
LDU_FT/suurjaak/InputScope/update
LDU_FT
[ "<BEGIN>\n## `start`", "Starts the listener with incoming and outgoing queues.\n<END>", "<BEGIN>\n## `fetch`", "Convenience wrapper for database SELECT and fetch all.\n<END>", "<BEGIN>\n## `fetchone`", "Convenience wrapper for database SELECT and fetch one.\n<END>", "<BEGIN>\n## `insert`", "Convenienc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Convenience wrapper for database UPDATE.
"Convenience wrapper for database UPDATE."
38
false
suurjaak/InputScope
update
11,406
LDU_FT/Josef-Friedrich/tmep/parse_expression
LDU_FT
[ "<BEGIN>\n## `ex_literal`", "An int, float, long, bool, string, or None literal with the given\n value.\n<END>", "<BEGIN>\n## `ex_varassign`", "Assign an expression into a single variable. The expression may\n either be an `ast.expr` object or a value to be used as a literal.\n<END>", "<BEGIN>\n## `ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_expression API. 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 parse_expression API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Parse a template expression starting at ``pos``. Resulting components (Unicode strings, Symbols, and Calls) are added to the ``parts`` field, a list. The ``pos`` field is updated to be the next character after the expression.
"Parse a template expression starting at ``pos``. Resulting\n components (Unicode strings, Symbols, and Calls) are added to\n the ``parts`` field, a list. The ``pos`` field is updated to be\n the next character after the expression."
72
false
Josef-Friedrich/tmep
parse_expression
11,407
LDU_FT/kyuupichan/aiorpcX/_add_task
LDU_FT
[ "<BEGIN>\n## `timeout_after`", "Execute the specified coroutine and return its result. However,\n issue a cancellation request to the calling task after seconds\n have elapsed. When this happens, a TaskTimeout exception is\n raised. If coro is None, the result of this function serves\n as an asynchr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _add_task API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _add_task API. 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...
Add an already existing task to the task group.
"Add an already existing task to the task group."
118
false
kyuupichan/aiorpcX
_add_task
11,408
LDU_FT/tomduck/pandoc-xnos/_getel
LDU_FT
[ "<BEGIN>\n## `_repeat`", "Repeats func(...) call until something other than None is returned.\n<END>", "<BEGIN>\n## `init`", "Sets or determines the pandoc version. This must be called.", " The pandoc version is needed for multi-version support.\n See: https://github.com/jgm/pandoc/issues/2640", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _getel API. 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 _getel API. 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 an element given a key and value.
"Returns an element given a key and value."
63
false
tomduck/pandoc-xnos
_getel
11,409
LDU_FT/CitrineInformatics/pypif/loads
LDU_FT
[ "<BEGIN>\n## `to_camel_case`", "Convert a string from snake case to camel case. For example, \"some_var\" would become \"someVar\".", " :param snake_case_string: Snake-cased string to convert to camel case.\n :returns: Camel-cased version of snake_case_string.\n<END>", "<BEGIN>\n## `to_capitalized_camel...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the loads API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the loads API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
Convert content in a JSON-encoded string to a Physical Information Object or a list of such objects. :param s: String to deserialize. :param class_: Subclass of :class:`.Pio` to produce, if not unambiguous :param kwargs: Any options available to json.loads(). :return: Single object derived from :class:...
"Convert content in a JSON-encoded string to a Physical Information Object or a list of such objects.\n\n :param s: String to deserialize.\n :param class_: Subclass of :class:`.Pio` to produce, if not unambiguous\n :param kwargs: Any options available to json.loads().\n :return: Single object derived from :...
46
false
CitrineInformatics/pypif
loads
11,410
LDU_FT/reanahub/reana-db/update_workflow_status
LDU_FT
[ "<BEGIN>\n## `update_workflow_status`", "Update database workflow status.", " :param workflow_uuid: UUID which represents the workflow.\n :param status: String that represents the workflow status.\n :param new_logs: New logs from workflow execution.\n :param message: Unused.\n<END>",...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update_workflow_status API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update_workflow_status API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
Update database workflow status. :param workflow_uuid: UUID which represents the workflow. :param status: String that represents the workflow status. :param new_logs: New logs from workflow execution. :param message: Unused.
"Update database workflow status.\n\n :param workflow_uuid: UUID which represents the workflow.\n :param status: String that represents the workflow status.\n :param new_logs: New logs from workflow execution.\n :param message: Unused."
20
false
reanahub/reana-db
update_workflow_status
11,411
LDU_FT/rm-hull/luma.core/add_hotspot
LDU_FT
[ "<BEGIN>\n## `animate`", "Returns a generator which \"executes\" an animation sequence for the given\n ``seq_name``, inasmuch as the next frame for the given animation is\n yielded when requested.", " :param seq_name: The name of a previously defined animation sequence.\n :type seq_n...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_hotspot API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_hotspot API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
Add the hotspot at ``(x, y)``. The hotspot must fit inside the bounds of the virtual device. If it does not then an ``AssertError`` is raised.
"Add the hotspot at ``(x, y)``. The hotspot must fit inside the bounds\n of the virtual device. If it does not then an ``AssertError`` is\n raised."
126
false
rm-hull/luma.core
add_hotspot
11,412
LDU_FT/incf-nidash/nidmresults/fix_for_specific_versions
LDU_FT
[ "<BEGIN>\n## `parse`", "Parse a result directory to extract the pieces information to be\n stored in NIDM-Results.\n<END>", "<BEGIN>\n## `add_object`", "Add a NIDMObject to a NIDM-Results export.\n<END>", "<BEGIN>\n## `_get_model_fitting`", "Retreive model fitting with identifier 'mf_id' from the l...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the fix_for_specific_versions 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 fix_for_specific_versions API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi...
Fixes of the RDF before loading the graph. All of these are workaround to circuvent known issues of the SPM and FSL exporters.
"Fixes of the RDF before loading the graph. All of these are workaround\n to circuvent known issues of the SPM and FSL exporters."
21
false
incf-nidash/nidmresults
fix_for_specific_versions
11,413
LDU_FT/cmcqueen/simplerandom/_traverse_iter
LDU_FT
[ "<BEGIN>\n## `mask`", "Make a BitColumnMatrix that represents a mask.\n BitColumnMatrix size of n*n, to manipulate n binary bits.\n If start <= end, then bits in half-open range [start, end) are set.\n If end < start, then bits in ranges [0, end) and [start, n) are set,\n i.e. bits in ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _traverse_iter API. 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 _traverse_iter API. 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...
Iterate over nested containers and/or iterators. This allows generator __init__() functions to be passed seeds either as a series of arguments, or as a list/tuple.
"Iterate over nested containers and/or iterators.\n This allows generator __init__() functions to be passed seeds either as\n a series of arguments, or as a list/tuple."
16
false
cmcqueen/simplerandom
_traverse_iter
11,414
LDU_FT/GGiecold/Cluster_Ensembles/load_hypergraph_adjacency
LDU_FT
[ "<BEGIN>\n## `memory`", "Determine memory specifications of the machine.", " Returns\n -------\n mem_info : dictonary\n Holds the current values for the total, free and used memory of the system.\n<END>", "<BEGIN>\n## `get_chunk_size`", "Given a two-dimensional array with a dimension of size...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load_hypergraph_adjacency 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 load_hypergraph_adjacency API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi...
Parameters ---------- hdf5_file_name : file handle or string Returns ------- hypergraph_adjacency : compressed sparse row matrix
"Parameters\n ----------\n hdf5_file_name : file handle or string\n \n Returns\n -------\n hypergraph_adjacency : compressed sparse row matrix"
110
false
GGiecold/Cluster_Ensembles
load_hypergraph_adjacency
11,415
LDU_FT/jrief/django-angular/get_email_regex
LDU_FT
[ "<BEGIN>\n## `THUMBNAIL_OPTIONS`", "Set the size as a 2-tuple for thumbnailed images after uploading them.\n<END>", "<BEGIN>\n## `get_context`", "Some widgets require a modified rendering context, if they contain angular directives.\n<END>", "<BEGIN>\n## `errors`", "Returns a TupleErrorList for this field...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_email_regex API. 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_email_regex API. 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 a regex pattern matching valid email addresses. Uses the same logic as the django validator, with the folowing exceptions: - Internationalized domain names not supported - IP addresses not supported - Strips lookbehinds (not supported in javascript regular expressions)
"Return a regex pattern matching valid email addresses. Uses the same\n logic as the django validator, with the folowing exceptions:\n\n - Internationalized domain names not supported\n - IP addresses not supported\n - Strips lookbehinds (not supported in javascript regular expressions)"
63
false
jrief/django-angular
get_email_regex
11,416
LDU_FT/MacHu-GWU/constant2-project/BackAssign
LDU_FT
[ "<BEGIN>\n## `get_all_attributes`", "Get all attribute members (attribute, property style method).\n<END>", "<BEGIN>\n## `is_same_dict`", "Test two dictionary is equal on values. (ignore order)\n<END>", "<BEGIN>\n## `Items`", "non-class attributes ordered by alphabetical order.", " ::", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the BackAssign API. 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 BackAssign API. 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...
Assign defined one side mapping relationship to other side. For example, each employee belongs to one department, then one department includes many employees. If you defined each employee's department, this method will assign employees to ``Department.employees`` field. This is an one t...
"Assign defined one side mapping relationship to other side.\n\n For example, each employee belongs to one department, then one department\n includes many employees. If you defined each employee's department,\n this method will assign employees to ``Department.employees`` field.\n This is an...
59
false
MacHu-GWU/constant2-project
BackAssign
11,417
LDU_FT/skorch-dev/skorch/_format_target
LDU_FT
[ "<BEGIN>\n## `get_data`", "Get synthetic classification data with n_samples samples.\n<END>", "<BEGIN>\n## `get_model`", "Get a multi-layer perceptron model.", " Optionally, put it in a pipeline that scales the data.\n<END>", "<BEGIN>\n## `net`", "Train an MLP classifier on synthetic data.", " n...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _format_target API. 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 _format_target API. 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...
Apply formatting to the target filename template.
"Apply formatting to the target filename template."
394
false
skorch-dev/skorch
_format_target
11,418
LDU_FT/bfrog/whizzer/call
LDU_FT
[ "<BEGIN>\n## `remote`", "Decorator that adds a remote attribute to a function.", " fn -- function being decorated\n name -- aliased name of the function, used for remote proxies\n types -- a argument type specifier, can be used to ensure\n arguments are of the correct type\n<END>", "<BEGI...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the call API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the call API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
Perform a synchronous remote call where the returned value is given immediately. This may block for sometime in certain situations. If it takes more than the Proxies set timeout then a TimeoutError is raised. Any exceptions the remote call raised that can be sent over the wire are raised. ...
"Perform a synchronous remote call where the returned value is given immediately.\n\n This may block for sometime in certain situations. If it takes more than the Proxies\n set timeout then a TimeoutError is raised.\n\n Any exceptions the remote call raised that can be sent over the wire are raised...
107
false
bfrog/whizzer
call
11,419
LDU_FT/mvn23/pyotgw/set_outside_temp
LDU_FT
[ "<BEGIN>\n## `connection_made`", "Gets called when a connection to the gateway is established.\n Initialise the protocol object.\n<END>", "<BEGIN>\n## `connection_lost`", "Gets called when the connection to the gateway is lost.\n Tear down and clean up the protocol object.\n<END>", "<BEGIN>\n#...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_outside_temp API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_outside_temp API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Configure the outside temperature to send to the thermostat. Allowed values are between -40.0 and +64.0, although thermostats may not display the full range. Specify a value above 64 (suggestion: 99) to clear a previously configured value. Return the accepted value on success, '-...
"Configure the outside temperature to send to the thermostat.\n Allowed values are between -40.0 and +64.0, although\n thermostats may not display the full range. Specify a value\n above 64 (suggestion: 99) to clear a previously configured\n value.\n Return the accepted value on succe...
115
false
mvn23/pyotgw
set_outside_temp
11,420
LDU_FT/schettino72/import-deps/_get_fqn
LDU_FT
[ "<BEGIN>\n## `ast_imports`", "get list of import from python module\n :return: (list - tuple) (module, name, asname, level)\n<END>", "<BEGIN>\n## `_get_fqn`", "get full qualified name as list of strings\n :return: (list - str) of path segments from top package to given path\n<END>", "<BEGIN>\n## `...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_fqn API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_fqn API. 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...
get full qualified name as list of strings :return: (list - str) of path segments from top package to given path
"get full qualified name as list of strings\n :return: (list - str) of path segments from top package to given path"
10
false
schettino72/import-deps
_get_fqn
11,421
LDU_FT/bitcraze/crazyflie-lib-python/_connected
LDU_FT
[ "<BEGIN>\n## `set_group_mask`", "Set the group mask that the Crazyflie belongs to", " :param group_mask: mask for which groups this CF belongs to\n<END>", "<BEGIN>\n## `takeoff`", "vertical takeoff from current x-y position to given height", " :param absolute_height_m: absolut (m)\n :...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _connected API. 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 _connected API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
This callback is called form the Crazyflie API when a Crazyflie has been connected and the TOCs have been downloaded.
"This callback is called form the Crazyflie API when a Crazyflie\n has been connected and the TOCs have been downloaded."
312
false
bitcraze/crazyflie-lib-python
_connected
11,422
LDU_FT/ifduyue/urlfetch/url_concat
LDU_FT
[ "<BEGIN>\n## `fetch`", "fetch an URL.", " :func:`~urlfetch.fetch` is a wrapper of :func:`~urlfetch.request`.\n It calls :func:`~urlfetch.get` by default. If one of parameter ``data``\n or parameter ``files`` is supplied, :func:`~urlfetch.post` is called.\n<END>", "<BEGIN>\n## `request`", "request a...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the url_concat API. 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 url_concat API. 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...
Concatenate url and argument dictionary >>> url_concat("http://example.com/foo?a=b", dict(c="d")) 'http://example.com/foo?a=b&c=d' :arg string url: URL being concat to. :arg dict args: Args being concat. :arg bool keep_existing: (Optional) Whether to keep the args which are ...
"Concatenate url and argument dictionary\n\n >>> url_concat(\"http://example.com/foo?a=b\", dict(c=\"d\"))\n 'http://example.com/foo?a=b&c=d'\n\n :arg string url: URL being concat to.\n :arg dict args: Args being concat.\n :arg bool keep_existing: (Optional) Whether to keep the args which are\n ...
33
false
ifduyue/urlfetch
url_concat
11,423
LDU_FT/ivknv/s3m/acquire
LDU_FT
[ "<BEGIN>\n## `normalize_path`", ">>> normalize_path(\"/a/b/c/\")\n '/a/b/c'\n >>> normalize_path(\"/a/b/c\")\n '/a/b/c'\n >>> normalize_path(\"/a/b/c////////\")\n '/a/b/c'\n >>> normalize_path(\"///a/b/c\")\n '/a/b/c'\n >>> normalize_path(\"/a/././b/../b/c/\")\n '/a/b/c'\n >>> normal...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the acquire API. 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 acquire API. 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...
Acquire the connection locks. :param lock_transactions: `bool`, acquire the transaction lock (`self.lock_transactions` is the default value)
"Acquire the connection locks.\n\n :param lock_transactions: `bool`, acquire the transaction lock\n (`self.lock_transactions` is the default value)"
27
false
ivknv/s3m
acquire
11,424
LDU_FT/log2timeline/dfwinreg/_CheckKeyPath
LDU_FT
[ "<BEGIN>\n## `_CheckKeyPath`", "Checks the key path find specification.", " Args:\n registry_key (WinRegistryKey): Windows Registry key.\n search_depth (int): number of key path segments to compare.", " Returns:\n bool: True if the Windows Registry key matches the find specification,\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _CheckKeyPath API. 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 _CheckKeyPath API. 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...
Checks the key path find specification. Args: registry_key (WinRegistryKey): Windows Registry key. search_depth (int): number of key path segments to compare. Returns: bool: True if the Windows Registry key matches the find specification, False if not.
"Checks the key path find specification.\n\n Args:\n registry_key (WinRegistryKey): Windows Registry key.\n search_depth (int): number of key path segments to compare.\n\n Returns:\n bool: True if the Windows Registry key matches the find specification,\n False if not."
199
false
log2timeline/dfwinreg
_CheckKeyPath
11,425
LDU_FT/regardscitoyens/anpy/get
LDU_FT
[ "<BEGIN>\n## `an_text_url`", "Port of the PHP function used by the National Assembly:", " public function urlOpaque($identifiant, $codeType = NULL)\n {\n $datas = array(\n 'PRJL' => array('repertoire' => 'projets', 'prefixe' => 'pl', 'suffixe' => ''),\n 'PION' => array('repert...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
:param texteRecherche: :param numAmend: :param idArticle: :param idAuteur: :param idDossierLegislatif: :param idExamen: :param idExamens: :param periodeParlementaire: :param dateDebut: :param dateFin: :param rows: :param start: ...
":param texteRecherche:\n :param numAmend:\n :param idArticle:\n :param idAuteur:\n :param idDossierLegislatif:\n :param idExamen:\n :param idExamens:\n :param periodeParlementaire:\n :param dateDebut:\n :param dateFin:\n :param rows:\n :param...
15
false
regardscitoyens/anpy
get
11,426
LDU_FT/veltzer/pypitools/main
LDU_FT
[ "<BEGIN>\n## `main`", "Install a package from the local folder\n :return:\n<END>", "<BEGIN>\n## `main`", "upload a package to pypi or gemfury\n :return:\n<END>", "<BEGIN>\n## `array_indented`", "return an array indented according to indent level\n :param level:\n :param l:\n :param quote_ch...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the main API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the main API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
Install a package from pypi or gemfury :return:
"Install a package from pypi or gemfury\n :return:"
24
false
veltzer/pypitools
main
11,427
LDU_FT/praekeltfoundation/seaworthy/list_users
LDU_FT
[ "<BEGIN>\n## `wait_for_response`", "Try make a GET request with an HTTP client against a certain path and\n return once any response has been received, ignoring any errors.", " :param ContainerHttpClient client:\n The HTTP client to use to connect to the container.\n :param timeout:\n Tim...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the list_users API. 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 list_users API. 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 ``\\du`` command and returns a list of column values with information about all user roles.
"Runs the ``\\\\du`` command and returns a list of column values with\n information about all user roles."
173
false
praekeltfoundation/seaworthy
list_users
11,428
LDU_FT/feliphebueno/Rinzler/get_callback_pattern
LDU_FT
[ "<BEGIN>\n## `authenticate`", "Your AuhtService should override this method for request authentication, otherwise means no authentication.\n :param request: HttpRequest Django's HttpRequest object\n :param auth_route: str User's resqueted route\n :param actual_params: User's url parameters\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_callback_pattern 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_callback_pattern API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Assembles a dictionary whith the parameters schema defined for this route :param expected_params dict parameters schema defined for this route :param actual_params dict actual url parameters :rtype: dict
"Assembles a dictionary whith the parameters schema defined for this route\n :param expected_params dict parameters schema defined for this route\n :param actual_params dict actual url parameters\n :rtype: dict"
50
false
feliphebueno/Rinzler
get_callback_pattern
11,429
LDU_FT/BlackEarth/bf/cmyk_to_rgb
LDU_FT
[ "<BEGIN>\n## `gswrite`", "use ghostscript to create output file(s) from the PDF\n<END>", "<BEGIN>\n## `merge_stylesheets`", "merge the given CSS files, in order, into a single stylesheet. First listed takes priority.\n<END>", "<BEGIN>\n## `all_selectors`", "return a sorted list of selectors that occur in ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the cmyk_to_rgb API. 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 cmyk_to_rgb API. 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...
CMYK in % to RGB in 0-255 based on https://www.openprocessing.org/sketch/46231#
"CMYK in % to RGB in 0-255\r\n based on https://www.openprocessing.org/sketch/46231#"
16
false
BlackEarth/bf
cmyk_to_rgb
11,430
LDU_FT/cqparts/cqparts/_make_tooth_template
LDU_FT
[ "<BEGIN>\n## `register_exporter`", "Register an exporter to use for a :class:`Part <cqparts.Part>`,\n :class:`Assembly <cqparts.Assembly>`, or both\n (with :class:`Component <cqparts.Component>`).", " Registration is necessary to use with\n :meth:`Component.exporter() <cqparts.Component.exporter>`."...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _make_tooth_template API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _make_tooth_template API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Builds a single tooth including the cylinder with tooth faces tangential to its circumference.
"Builds a single tooth including the cylinder with tooth faces\n tangential to its circumference."
377
false
cqparts/cqparts
_make_tooth_template
11,431
LDU_FT/uw-it-aca/uw-restclients-libraries/get_subject_guide_for_canvas_course_sis_id
LDU_FT
[ "<BEGIN>\n## `get_account`", "The Libraries object has a method for getting information\n about a user's library account\n<END>", "<BEGIN>\n## `get_subject_guide_for_section_params`", "Returns a SubjectGuide model for the passed section params:", " year: year for the section term (4-digits)\n quart...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_subject_guide_for_canvas_course_sis_id API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indic...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_subject_guide_for_canvas_course_sis_id API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indic...
Returns a SubjectGuide model for the passed Canvas course SIS ID.
"Returns a SubjectGuide model for the passed Canvas course SIS ID."
11
false
uw-it-aca/uw-restclients-libraries
get_subject_guide_for_canvas_course_sis_id
11,432
LDU_FT/cherrypy/cheroot/parse_wsgi_bind_location
LDU_FT
[ "<BEGIN>\n## `respond`", "Process the current request.", " From :pep:`333`:", " The start_response callable must not actually transmit\n the response headers. Instead, it must store them for the\n server or gateway to transmit only after the first\n iteration...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_wsgi_bind_location 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 parse_wsgi_bind_location API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio...
Convert bind address string to a BindLocation.
"Convert bind address string to a BindLocation."
143
false
cherrypy/cheroot
parse_wsgi_bind_location
11,433
LDU_FT/kronenthaler/mod-pbxproj/get_configurations_on_targets
LDU_FT
[ "<BEGIN>\n## `has_child`", "Checks if the given child id\n :param child: The id to check if it's a child of the group\n :return: True if the given id it's a child of this group, False otherwise\n<END>", "<BEGIN>\n## `add_file`", "Adds a file to the project, taking care of the type of the file an...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_configurations_on_targets API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_configurations_on_targets API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conc...
Retrieves all configuration given a name on the specified target :param target_name: Searches for a specific target name or a list of target names. If None all targets are used :param configuration_name: Searches for a specific configuration, if None all configuration of the target are used ...
"Retrieves all configuration given a name on the specified target\n :param target_name: Searches for a specific target name or a list of target names. If None all targets are used\n :param configuration_name: Searches for a specific configuration, if None all configuration of the target\n are u...
71
false
kronenthaler/mod-pbxproj
get_configurations_on_targets
11,434
LDU_FT/TUNE-Archive/freight_forwarder/_info
LDU_FT
[ "<BEGIN>\n## `commercial_invoice`", ":param action:\n :param data_center:\n :param environment:\n :param transport_service:\n :param tagging_scheme:\n :return:\n<END>", "<BEGIN>\n## `deploy_containers`", "Deploy containers to specific container ship.\n 'restart_policy...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _info API. 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 _info API. 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...
Print freight forwarder info to the user.
"Print freight forwarder info to the user."
132
false
TUNE-Archive/freight_forwarder
_info
11,435
LDU_FT/django-crispy-forms/django-crispy-forms/get_response_dict
LDU_FT
[ "<BEGIN>\n## `do_uni_form`", "You need to pass in at least the form/formset object, and can also pass in the\n optional `crispy_forms.helpers.FormHelper` object.", " helper (optional): A `crispy_forms.helper.FormHelper` object.", " Usage::", " {% load crispy_tags %}\n {% crispy form f...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_response_dict API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_response_dict API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Returns a dictionary with all the parameters necessary to render the form/formset in a template. :param context: `django.template.Context` for the node :param is_formset: Boolean value. If set to True, indicates we are working with a formset.
"Returns a dictionary with all the parameters necessary to render the form/formset in a template.\n\n :param context: `django.template.Context` for the node\n :param is_formset: Boolean value. If set to True, indicates we are working with a formset."
89
false
django-crispy-forms/django-crispy-forms
get_response_dict
11,436
LDU_FT/OnroerendErfgoed/crabpy/_split_capakey
LDU_FT
[ "<BEGIN>\n## `crab_gateway_request`", "Utility function that helps making requests to the CRAB service.", " This is a specialised version of :func:`crabpy.client.crab_request` that\n allows adding extra functionality for the calls made by the gateway.", " :param client: A :class:`suds.client.Client` ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _split_capakey API. 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 _split_capakey API. 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...
Split a capakey into more readable elements. Splits a capakey into it's grondnummer, bisnummer, exponent and macht.
"Split a capakey into more readable elements.\n\n Splits a capakey into it's grondnummer, bisnummer, exponent and macht."
196
false
OnroerendErfgoed/crabpy
_split_capakey
11,437
LDU_FT/ThreatConnect-Inc/tcex/victim_assets
LDU_FT
[ "<BEGIN>\n## `_print_results`", "Print the download results.", " Args:\n file (str): The filename.\n status (str): The file download status.\n<END>", "<BEGIN>\n## `_confirm_overwrite`", "Confirm overwrite of template files.", " Make sure the user would like to continue ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the victim_assets API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the victim_assets API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
Victim Asset endpoint for this resource with optional asset type. This method will set the resource endpoint for working with Victim Assets. The HTTP GET method will return all Victim Assets associated with this resource or if a asset type is provided it will return the provided asset t...
"Victim Asset endpoint for this resource with optional asset type.\n\n This method will set the resource endpoint for working with Victim Assets.\n The HTTP GET method will return all Victim Assets associated with this\n resource or if a asset type is provided it will return the provided asset\n ...
1,591
true
ThreatConnect-Inc/tcex
victim_assets
11,438
LDU_FT/ranaroussi/qtpylib/_base_bar_handler
LDU_FT
[ "<BEGIN>\n## `load_cli_args`", "Parse command line arguments and return only the non-default ones", " :Retruns: dict\n a dict of any non-default args passed on the command-line.\n<END>", "<BEGIN>\n## `run`", "Starts the reporting module", " Makes the dashboard web app available vi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _base_bar_handler API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _base_bar_handler API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
non threaded bar handler (called by threaded _tick_handler)
"non threaded bar handler (called by threaded _tick_handler)"
155
false
ranaroussi/qtpylib
_base_bar_handler
11,439
LDU_FT/AgeOfLearning/coeus-unity-python-framework/assert_await_transform_exists
LDU_FT
[ "<BEGIN>\n## `await_transform_exists`", "Waits for a single transform to exist based on does_exist.\n :param cli:\n :param transform_path:\n :param does_exist: Whether or not to await for exist state (True | False)\n :param timeout_seconds: How long until this returns with failure\n :return: bool\n...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the assert_await_transform_exists 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 assert_await_transform_exists API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conc...
Asserts that we successfully awaited for the transform to exist based on does_exist. If the timeout passes or the expression is_registered != actual state, then it will fail. :param cli: :param transform_path: :param does_exist: (True | False) the state change we are waiting for. :param timeout_seco...
"Asserts that we successfully awaited for the transform to exist based on does_exist. If the timeout passes\n or the expression is_registered != actual state, then it will fail.\n :param cli:\n :param transform_path:\n :param does_exist: (True | False) the state change we are waiting for.\n :param timeou...
38
false
AgeOfLearning/coeus-unity-python-framework
assert_await_transform_exists
11,440
LDU_FT/kcallin/mqtt-codec/unpack
LDU_FT
[ "<BEGIN>\n## `encode_bytes`", "Encode a buffer length followed by the bytes of the buffer\n itself.", " Parameters\n ----------\n src_buf: bytes\n Source bytes to be encoded. Function asserts that\n 0 <= len(src_buf) <= 2**16-1.\n dst_file: file\n File-like object with write...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the unpack API. 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 unpack API. 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 ...
Read as many bytes as are required to extract struct then unpack and return a tuple of the values. Raises ------ UnderflowDecodeError Raised when a read failed to extract enough bytes from the underlying stream to extract the bytes. Parameters --...
"Read as many bytes as are required to extract struct then\n unpack and return a tuple of the values.\n\n Raises\n ------\n UnderflowDecodeError\n Raised when a read failed to extract enough bytes from the\n underlying stream to extract the bytes.\n\n Parameters\...
116
false
kcallin/mqtt-codec
unpack
11,441
LDU_FT/ResilienceTesting/gremlinsdk-python/_get_by
LDU_FT
[ "<BEGIN>\n## `add_rule`", "@param args keyword argument list, consisting of:", " source: <source service name>,\n dest: <destination service name>,\n messagetype: <request|response|publish|subscribe|stream>", " headerpattern: <regex to match against the value of the X-Gremlin-ID tr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_by API. 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 _get_by API. 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...
Out of list *l* return all elements that have *key=val* This comes in handy when you are working with aggregated/bucketed queries
"Out of list *l* return all elements that have *key=val*\n This comes in handy when you are working with aggregated/bucketed queries"
31
false
ResilienceTesting/gremlinsdk-python
_get_by
11,442
LDU_FT/wind-python/windpowerlib/power_curve_density_correction
LDU_FT
[ "<BEGIN>\n## `reduce_wind_speed`", "r\"\"\"\n Reduces wind speed by a wind efficiency curve.", " The wind efficiency curves are provided in the windpowerlib and were\n calculated in the dena-Netzstudie II and in the work of Knorr\n (see [1]_ and [2]_).", " Parameters\n ----------\n wind_s...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the power_curve_density_correction 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 power_curve_density_correction API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its con...
r""" Calculates the turbine power output using a density corrected power curve. This function is carried out when the parameter `density_correction` of an instance of the :class:`~.modelchain.ModelChain` class is True. Parameters ---------- wind_speed : pandas.Series or numpy.array Win...
"r\"\"\"\n Calculates the turbine power output using a density corrected power curve.\n\n This function is carried out when the parameter `density_correction` of an\n instance of the :class:`~.modelchain.ModelChain` class is True.\n\n Parameters\n ----------\n wind_speed : pandas.Series or numpy.array...
249
false
wind-python/windpowerlib
power_curve_density_correction
11,443
LDU_FT/mkouhei/tonicdnscli/update
LDU_FT
[ "<BEGIN>\n## `check_infile`", "Check text file exisitense.", " Argument:", " filename: text file of bulk updating\n<END>", "<BEGIN>\n## `set_json`", "Convert text file to JSON.", " Arguments:", " domain: domain name of updating target\n action: True ; for PUT/POST HTTP m...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Update a record. Argument: args: arguments object Firstly call delete(), then create().
"Update a record.\n\n Argument:\n\n args: arguments object\n\n Firstly call delete(), then create()."
192
false
mkouhei/tonicdnscli
update
11,444
LDU_FT/tmux-python/tmuxp/command_freeze
LDU_FT
[ "<BEGIN>\n## `get_config_dir`", "Return tmuxp configuration directory.", " ``TMUXP_CONFIGDIR`` environmental variable has precedence if set. We also \n evaluate XDG default directory from XDG_CONFIG_HOME environmental variable \n if set or its default. Then the old default ~/.tmuxp is returned for \n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the command_freeze API. 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 command_freeze API. 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...
Snapshot a session into a config. If SESSION_NAME is provided, snapshot that session. Otherwise, use the current session.
"Snapshot a session into a config.\n\n If SESSION_NAME is provided, snapshot that session. Otherwise, use the\n current session."
161
false
tmux-python/tmuxp
command_freeze
11,445
LDU_FT/dpgaspar/Flask-AppBuilder/has_access
LDU_FT
[ "<BEGIN>\n## `dict_to_json`", "Converts a list of dicts from datamodel query results\n to google chart json data.", " :param xcol:\n The name of a string column to be used has X axis on chart\n :param ycols:\n A list with the names of series cols, that can be used as n...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the has_access API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the has_access API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
Use this decorator to enable granular security permissions to your methods. Permissions will be associated to a role, and roles are associated to users. By default the permission's name is the methods name.
"Use this decorator to enable granular security permissions to your methods.\n Permissions will be associated to a role, and roles are associated to users.\n\n By default the permission's name is the methods name."
393
false
dpgaspar/Flask-AppBuilder
has_access
11,446
LDU_FT/michaelaye/pyciss/download_and_calibrate
LDU_FT
[ "<BEGIN>\n## `get_config`", "Read the configfile and return config dict.", " Returns\n -------\n dict\n Dictionary with the content of the configpath file.\n<END>", "<BEGIN>\n## `set_database_path`", "Use to write the database path into the config.", " Parameters\n ----------\n db...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the download_and_calibrate API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the download_and_calibrate API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
Download and calibrate one or more image ids, in parallel. Parameters ---------- img_id : str or io.PathManager, optional If more than one item is in img_id, a parallel process is started overwrite: bool, optional If the pm.cubepath exists, this switch controls if it is being overwritte...
"Download and calibrate one or more image ids, in parallel.\n\n Parameters\n ----------\n img_id : str or io.PathManager, optional\n If more than one item is in img_id, a parallel process is started\n overwrite: bool, optional\n If the pm.cubepath exists, this switch controls if it is being ov...
83
false
michaelaye/pyciss
download_and_calibrate
11,447
LDU_FT/prthkms/alex/parse_result
LDU_FT
[ "<BEGIN>\n## `calculate_inverse_document_frequencies`", "Q.calculate_inverse_document_frequencies() -- measures how much\n\t\tinformation the term provides, i.e. whether the term is common or\n\t\trare across all documents.", "\t\tThis is obtained by dividing the total number of documents \n\t\tby the number of...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_result API. 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 parse_result API. 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...
parse_result(json result) -- print the web query according to the type of result from duckduckgo.
"parse_result(json result) -- print the web query according to the type \n\tof result from duckduckgo."
41
false
prthkms/alex
parse_result
11,448
LDU_FT/tjguk/networkzero/do_output
LDU_FT
[ "<BEGIN>\n## `get_command`", "Attempt to return a unicode object from the command socket", " If no message is available without blocking (as opposed to a blank \n message), return None\n<END>", "<BEGIN>\n## `send_response`", "Send a unicode object as reply to the most recently-issued command\n...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the do_output API. 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 do_output API. 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...
Pass a command directly to the current output processor
"Pass a command directly to the current output processor"
76
false
tjguk/networkzero
do_output
11,449
LDU_FT/MozillaSecurity/laniakea/_configure_ebs_volume
LDU_FT
[ "<BEGIN>\n## `list_tags`", "List all used macros within a UserData script.", " :param userdata: The UserData script.\n :type userdata: str\n<END>", "<BEGIN>\n## `handle_tags`", "Insert macro values or auto export variables in UserData scripts.", " :param userdata: The UserData script....
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _configure_ebs_volume 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 _configure_ebs_volume API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Sets the desired root EBS size, otherwise the default EC2 value is used. :param vol_type: Type of EBS storage - gp2 (SSD), io1 or standard (magnetic) :type vol_type: str :param size: Desired root EBS size. :type size: int :param delete_on_termination: Toggle this flag to delete ...
"Sets the desired root EBS size, otherwise the default EC2 value is used.\n\n :param vol_type: Type of EBS storage - gp2 (SSD), io1 or standard (magnetic)\n :type vol_type: str\n :param size: Desired root EBS size.\n :type size: int\n :param delete_on_termination: Toggle this flag to ...
136
false
MozillaSecurity/laniakea
_configure_ebs_volume
11,450
LDU_FT/boronine/discipline/_status
LDU_FT
[ "<BEGIN>\n## `word`", "This function generates a fake word by creating between two and three\n random syllables and then joining them together.\n<END>", "<BEGIN>\n## `save_object`", "Save an object with Discipline", " Only argument is a Django object. This function saves the object\n (r...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _status API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _status API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
Return html saying whether this Action is reverted by another one or reverts another one.
"Return html saying whether this Action is reverted by another\n one or reverts another one."
49
false
boronine/discipline
_status
11,451
LDU_FT/ungarj/tilematrix/is_valid
LDU_FT
[ "<BEGIN>\n## `tile`", "Return Tile object of this TilePyramid.", " - zoom: zoom level\n - row: tile matrix row\n - col: tile matrix column\n<END>", "<BEGIN>\n## `matrix_width`", "Tile matrix width (number of columns) at zoom level.", " - zoom: zoom level\n<END>", "<BEGIN>\n##...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_valid API. 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 is_valid API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
Return True if tile is available in tile pyramid.
"Return True if tile is available in tile pyramid."
71
false
ungarj/tilematrix
is_valid
11,452
LDU_FT/bjodah/pycompilation/pyx2obj
LDU_FT
[ "<BEGIN>\n## `compile_sources`", "Compile source code files to object files.", " Parameters\n ----------\n files: iterable of path strings\n source files, if cwd is given, the paths are taken as relative.\n CompilerRunner_: CompilerRunner instance (optional)\n could be e.g. pycompilati...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the pyx2obj API. 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 pyx2obj API. 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...
Convenience function If cwd is specified, pyxpath and dst are taken to be relative If only_update is set to `True` the modification time is checked and compilation is only run if the source is newer than the destination Parameters ---------- pyxpath: path string path to Cython sour...
"Convenience function\n\n If cwd is specified, pyxpath and dst are taken to be relative\n If only_update is set to `True` the modification time is checked\n and compilation is only run if the source is newer than the\n destination\n\n Parameters\n ----------\n pyxpath: path string\n path to ...
71
false
bjodah/pycompilation
pyx2obj
11,453
LDU_FT/mila-iqia/fuel/fill_hdf5_file
LDU_FT
[ "<BEGIN>\n## `convert_mnist`", "Converts the MNIST dataset to HDF5.", " Converts the MNIST dataset to an HDF5 dataset compatible with\n :class:`fuel.datasets.MNIST`. The converted dataset is\n saved as 'mnist.hdf5'.", " This method assumes the existence of the following files:\n `train-images-i...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the fill_hdf5_file API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the fill_hdf5_file API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
Fills an HDF5 file in a H5PYDataset-compatible manner. Parameters ---------- h5file : :class:`h5py.File` File handle for an HDF5 file. data : tuple of tuple One element per split/source pair. Each element consists of a tuple of (split_name, source_name, data_array, comment), whe...
"Fills an HDF5 file in a H5PYDataset-compatible manner.\n\n Parameters\n ----------\n h5file : :class:`h5py.File`\n File handle for an HDF5 file.\n data : tuple of tuple\n One element per split/source pair. Each element consists of a\n tuple of (split_name, source_name, data_array, comm...
358
false
mila-iqia/fuel
fill_hdf5_file
11,454
LDU_FT/jaraco/jaraco.functools/retry_call
LDU_FT
[ "<BEGIN>\n## `compose`", "Compose any number of unary functions into a single unary function.", "\t>>> import textwrap\n\t>>> from six import text_type\n\t>>> stripped = text_type.strip(textwrap.dedent(compose.__doc__))\n\t>>> compose(text_type.strip, textwrap.dedent)(compose.__doc__) == stripped\n\tTrue", "\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the retry_call API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the retry_call API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
Given a callable func, trap the indicated exceptions for up to 'retries' times, invoking cleanup on the exception. On the final attempt, allow any exceptions to propagate.
"Given a callable func, trap the indicated exceptions\n\tfor up to 'retries' times, invoking cleanup on the\n\texception. On the final attempt, allow any exceptions\n\tto propagate."
65
false
jaraco/jaraco.functools
retry_call
11,455
LDU_FT/pmacosta/pmisc/normalize_windows_fname
LDU_FT
[ "<BEGIN>\n## `make_dir`", "Create the directory of a fully qualified file name if it does not exist.", " :param fname: File name\n :type fname: string", " Equivalent to these Bash shell commands:", " .. code-block:: bash", " $ fname=\"${HOME}/mydir/myfile.txt\"\n $ dir=$(dirname...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the normalize_windows_fname 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 normalize_windows_fname API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion...
r""" Fix potential problems with a Microsoft Windows file name. Superfluous backslashes are removed and unintended escape sequences are converted to their equivalent (presumably correct and intended) representation, for example :code:`r'\\\\x07pps'` is transformed to :code:`r'\\\\\\\\apps'`. A file...
"r\"\"\"\n Fix potential problems with a Microsoft Windows file name.\n\n Superfluous backslashes are removed and unintended escape sequences are\n converted to their equivalent (presumably correct and intended)\n representation, for example :code:`r'\\\\\\\\x07pps'` is transformed to\n :code:`r'\\\\\\\\...
151
false
pmacosta/pmisc
normalize_windows_fname
11,456
LDU_FT/textX/textX/load_models_using_filepattern
LDU_FT
[ "<BEGIN>\n## `needs_to_be_resolved`", "This function determines, if a reference (CrossReference) needs to be\n resolved or not (while creating the model, while resolving references).", " Args:\n parent_obj: the object containing the attribute to be resolved.\n attr_name: the attribute identi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load_models_using_filepattern 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 load_models_using_filepattern API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conc...
add a new model to all relevant objects Args: filename_pattern: models to be loaded model: model holding the loaded models in its _tx_model_repository field (may be None). glob_args: arguments passed to the glob.glob function. Returns: ...
"add a new model to all relevant objects\n\n Args:\n filename_pattern: models to be loaded\n model: model holding the loaded models in its _tx_model_repository\n field (may be None).\n glob_args: arguments passed to the glob.glob function.\n\n Returns:\n ...
140
false
textX/textX
load_models_using_filepattern
11,457
LDU_FT/erocarrera/pefile/dump_dict
LDU_FT
[ "<BEGIN>\n## `is_suspicious`", "unusual locations of import tables\n non recognized section names\n presence of long ASCII strings\n<END>", "<BEGIN>\n## `is_probably_packed`", "Returns True is there is a high likelihood that a file is packed or contains compressed data.", " The sections of the PE f...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the dump_dict API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the dump_dict API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
Returns a dictionary representation of the structure.
"Returns a dictionary representation of the structure."
160
false
erocarrera/pefile
dump_dict
11,458
LDU_FT/ontio/ontology-python-sdk/sign_transaction
LDU_FT
[ "<BEGIN>\n## `init`", "This interface is used to call the TotalSupply method in ope4\n that initialize smart contract parameter.", " :param acct: an Account class that used to sign the transaction.\n :param payer_acct: an Account class that used to pay for the transaction.\n :param g...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the sign_transaction API. 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 sign_transaction API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
This interface is used to sign the transaction. :param signer: an Account object which will sign the transaction. :return: a Transaction object which has been signed.
"This interface is used to sign the transaction.\n\n :param signer: an Account object which will sign the transaction.\n :return: a Transaction object which has been signed."
375
false
ontio/ontology-python-sdk
sign_transaction
11,459
LDU_FT/wtsi-hgi/python-baton-wrapper/revoke
LDU_FT
[ "<BEGIN>\n## `validate_baton_binaries_location`", "Validates that the given directory contains the baton binaries required to use the runner.\n :param baton_binaries_directory: the directory to check\n :return: exception that describes the issue else `None` if no issues\n<END>", "<BEGIN>\n## `_rai...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the revoke API. 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 revoke API. 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 ...
See `AccessControlMapper.revoke`. :param paths: see `AccessControlMapper.revoke` :param users: see `AccessControlMapper.revoke` :param recursive: whether the access control list should be changed recursively for all nested collections
"See `AccessControlMapper.revoke`.\n :param paths: see `AccessControlMapper.revoke`\n :param users: see `AccessControlMapper.revoke`\n :param recursive: whether the access control list should be changed recursively for all nested collections"
71
false
wtsi-hgi/python-baton-wrapper
revoke
11,460
LDU_FT/dead-beef/markovchain/load
LDU_FT
[ "<BEGIN>\n## `create_arg_parser`", "Create command subparsers.", " Parameters\n ----------\n parent : `argparse.ArgumentParser`\n Command parser.\n<END>", "<BEGIN>\n## `read`", "Read data files and update a generator.", " Parameters\n ----------\n fnames : `list` of `str`\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
Load a generator. Parameters ---------- cls : `type` Generator class. fname : `str` Input file path. args : `argparse.Namespace` Command arguments. Returns ------- `cls`
"Load a generator.\n\n Parameters\n ----------\n cls : `type`\n Generator class.\n fname : `str`\n Input file path.\n args : `argparse.Namespace`\n Command arguments.\n\n Returns\n -------\n `cls`"
323
false
dead-beef/markovchain
load
11,461
LDU_FT/hellock/icrawler/scan_cnproxy
LDU_FT
[ "<BEGIN>\n## `to_dict`", "convert detailed proxy info into a dict", " Returns:\n dict: A dict with four keys: ``addr``, ``protocol``,\n ``weight`` and ``last_checked``\n<END>", "<BEGIN>\n## `proxy_num`", "Get the number of proxies in the pool", " Args:\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the scan_cnproxy API. 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 scan_cnproxy API. 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...
Scan candidate (mainland) proxies from http://cn-proxy.com
"Scan candidate (mainland) proxies from http://cn-proxy.com"
105
false
hellock/icrawler
scan_cnproxy
11,462
LDU_FT/IdentityPython/SATOSA/disco_query
LDU_FT
[ "<BEGIN>\n## `handle_authn_response`", "See super class method satosa.frontends.base.FrontendModule#handle_authn_response\n :type context: satosa.context.Context\n :type internal_response: satosa.internal.InternalData\n :rtype satosa.response.Response\n<END>", "<BEGIN>\n## `handle_authn_req...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the disco_query API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the disco_query API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
Makes a request to the discovery server :type context: satosa.context.Context :type internal_req: satosa.internal.InternalData :rtype: satosa.response.SeeOther :param context: The current context :param internal_req: The request :return: Response
"Makes a request to the discovery server\n\n :type context: satosa.context.Context\n :type internal_req: satosa.internal.InternalData\n :rtype: satosa.response.SeeOther\n\n :param context: The current context\n :param internal_req: The request\n :return: Response"
435
false
IdentityPython/SATOSA
disco_query
11,463
LDU_FT/VisTrails/tej/escape_queue
LDU_FT
[ "<BEGIN>\n## `escape_queue`", "Escapes the path to a queue, e.g. preserves ~ at the begining.\n<END>", "<BEGIN>\n## `get_client`", "Gets the SSH client.", " This will check that the connection is still alive first, and reconnect\n if necessary.\n<END>", "<BEGIN>\n## `_call`", "Calls a comm...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the escape_queue API. 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 escape_queue API. 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...
Escapes the path to a queue, e.g. preserves ~ at the begining.
"Escapes the path to a queue, e.g. preserves ~ at the begining."
26
false
VisTrails/tej
escape_queue
11,464
LDU_FT/xenon-middleware/pyxenon/create_self_signed_cert
LDU_FT
[ "<BEGIN>\n## `make_exception`", "Creates an exception for a given method, and RpcError.\n<END>", "<BEGIN>\n## `get_field_type`", "Obtain the type name of a GRPC Message field.\n<END>", "<BEGIN>\n## `get_field_description`", "Get the type description of a GRPC Message field.\n<END>", "<BEGIN>\n## `make_s...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_self_signed_cert API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_self_signed_cert API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion...
Creates a self-signed certificate key pair.
"Creates a self-signed certificate key pair."
35
false
xenon-middleware/pyxenon
create_self_signed_cert
11,465
LDU_FT/KnuVerse/knuverse-sdk-python/client_id
LDU_FT
[ "<BEGIN>\n## `_auth`", "Makes sure the request has a valid authorization jwt before calling the wrapped function.\n It does this by checking the timestamp of the last jwt and if > 10 minutes have elapsed,\n it refreshes it's existing jwt from the server.\n Args:\n f: Function to wr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the client_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 extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the client_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 extract...
Get a client's ID. Uses GET to /clients?name=<client> interface. :Args: * *client*: (str) Client's name :Returns: (str) Client id
"Get a client's ID. Uses GET to /clients?name=<client> interface.\n\n :Args:\n * *client*: (str) Client's name\n\n :Returns: (str) Client id"
138
false
KnuVerse/knuverse-sdk-python
client_id
11,466
LDU_FT/openstack/networking-cisco/_setup_notification_listener
LDU_FT
[ "<BEGIN>\n## `assign_hosting_device_to_cfg_agent`", "Make config agent handle an (unassigned) hosting device.\n<END>", "<BEGIN>\n## `unassign_hosting_device_from_cfg_agent`", "Make config agent handle an (unassigned) hosting device.\n<END>", "<BEGIN>\n## `update_subports`", "Set port attributes for trunk ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _setup_notification_listener API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its concl...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _setup_notification_listener API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its concl...
Setup notification listener for a service.
"Setup notification listener for a service."
1,517
true
openstack/networking-cisco
_setup_notification_listener
11,467
LDU_FT/klmitch/turnstile/setup_limits
LDU_FT
[ "<BEGIN>\n## `add_argument`", "Define an argument for the function when running in console script\n mode. The positional and keyword arguments are the same as for\n ArgumentParser.add_argument().\n<END>", "<BEGIN>\n## `add_preprocessor`", "Define a preprocessor to run after the arguments are parsed and...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the setup_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 extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the setup_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 extr...
Set up or update limits in the Redis database. :param conf_file: Name of the configuration file, for connecting to the Redis database. :param limits_file: Name of the XML file describing the limits to configure. :param do_reload: Controls reloading behavior. I...
"Set up or update limits in the Redis database.\n\n :param conf_file: Name of the configuration file, for connecting\n to the Redis database.\n :param limits_file: Name of the XML file describing the limits to\n configure.\n :param do_reload: Controls reloading behav...
208
false
klmitch/turnstile
setup_limits
11,468
LDU_FT/timknip/pyswf/readACTIONRECORDs
LDU_FT
[ "<BEGIN>\n## `export`", "Export this SWF using the specified exporter. \n When no exporter is passed in the default exporter used \n is swf.export.SVGExporter.", " Exporters should extend the swf.export.BaseExporter class.", " @param exporter : the exporter to use\n @param f...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the readACTIONRECORDs API. 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 readACTIONRECORDs API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Read zero or more button records (zero-terminated)
"Read zero or more button records (zero-terminated)"
43
false
timknip/pyswf
readACTIONRECORDs
11,469
LDU_FT/MozillaSecurity/fuzzfetch/extract_dmg
LDU_FT
[ "<BEGIN>\n## `_si`", "Format a number using base-2 SI prefixes\n<END>", "<BEGIN>\n## `_extract_file`", "Extract files while explicitly setting the proper permissions\n<END>", "<BEGIN>\n## `build_string`", "Taskcluster denotes builds in one of two formats - i.e. linux64-asan or linux64-asan-opt\n Th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the extract_dmg API. 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 extract_dmg API. 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...
Extract builds with .dmg extension Will only work if `hdiutil` is available. @type path: @param path:
"Extract builds with .dmg extension\n\n Will only work if `hdiutil` is available.\n\n @type path:\n @param path:"
60
false
MozillaSecurity/fuzzfetch
extract_dmg
11,470
LDU_FT/mayfield/shellish/complete
LDU_FT
[ "<BEGIN>\n## `hone_cache`", "A caching decorator that follows after the style of lru_cache. Calls\n that are sharper than previous requests are returned from the cache after\n honing in on the requested results using the `refineby` technique.", " The `refineby` technique can be `startswith`, `container...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the complete API. 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 complete API. 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...
Get and format completer choices. Note that all internal calls to completer functions must use [frozen]set()s.
"Get and format completer choices. Note that all internal calls to\n completer functions must use [frozen]set()s."
172
false
mayfield/shellish
complete
11,471
LDU_FT/fdb/aufmachen/_subMSChar
LDU_FT
[ "<BEGIN>\n## `phantomjs_retrieve`", "Retrieve the given URL using PhantomJS.\n PhantomJS will evaluate all scripts and return the HTML after body.onload.", " url - The page URL to retrieve\n data - The form data. TODO: Currently ignored.", " Returns a status code (e.g. 200) and the HTML as a unic...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _subMSChar API. 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 _subMSChar API. 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...
Changes a MS smart quote character to an XML or HTML entity.
"Changes a MS smart quote character to an XML or HTML\n entity."
43
false
fdb/aufmachen
_subMSChar
11,472