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/Sheeprider/BitBucket-api/dispatch
LDU_FT
[ "<BEGIN>\n## `auth`", "Return credentials for current Bitbucket user.\n<END>", "<BEGIN>\n## `authorize`", "Call this with your consumer key, secret and callback URL, to\n generate a token for verification.\n<END>", "<BEGIN>\n## `verify`", "After converting the token into verifier, call this to fina...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the dispatch API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the dispatch API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
Send HTTP request, with given method, credentials and data to the given URL, and return the success and the result on success.
"Send HTTP request, with given method,\n credentials and data to the given URL,\n and return the success and the result on success."
39
false
Sheeprider/BitBucket-api
dispatch
8,873
LDU_FT/mpapi/lazylights/run
LDU_FT
[ "<BEGIN>\n## `parse_packet`", "Parses a Lifx data packet (as a bytestring), returning into a Header object\n for the fields that are common to all data packets, and a bytestring of\n payload data for the type-specific fields (suitable for passing to\n `parse_payload`).\n<END>", "<BEGIN>\n## `parse_payl...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the run API. 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 run API. 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...
Process all log messages, until `stop()` is called. Intended to run in its own thread.
"Process all log messages, until `stop()` is called. Intended to run\n in its own thread."
63
false
mpapi/lazylights
run
8,874
LDU_FT/goerz/better-apidoc/create_module_file
LDU_FT
[ "<BEGIN>\n## `format_directive`", "Create the automodule directive and add the options.\n<END>", "<BEGIN>\n## `create_module_file`", "Generate RST for a top-level module (i.e., not part of a package)\n<END>", "<BEGIN>\n## `_get_members`", "Get (filtered) public/total members of the module or package `mod`...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_module_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. Th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_module_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. Th...
Generate RST for a top-level module (i.e., not part of a package)
"Generate RST for a top-level module (i.e., not part of a package)"
18
false
goerz/better-apidoc
create_module_file
8,875
LDU_FT/TUT-ARG/sed_eval/substitution_rate
LDU_FT
[ "<BEGIN>\n## `result_report_overall`", "Report overall results", " Returns\n -------\n str\n result report in string format\n<END>", "<BEGIN>\n## `result_report_class_wise_average`", "Report class-wise averages", " Returns\n -------\n str\n r...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the substitution_rate API. 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 substitution_rate API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Substitution rate Parameters ---------- Nref : int >=0 Number of entries in the reference. Nsubstitutions : int >=0 Number of substitutions. eps : float eps. Default value numpy.spacing(1) Returns ------- substitution_rate: float Substitution r...
"Substitution rate\n\n Parameters\n ----------\n Nref : int >=0\n Number of entries in the reference.\n\n Nsubstitutions : int >=0\n Number of substitutions.\n\n eps : float\n eps.\n Default value numpy.spacing(1)\n\n Returns\n -------\n substitution_rate: float\n ...
268
false
TUT-ARG/sed_eval
substitution_rate
8,876
LDU_FT/tgbugs/pyontutils/addTerms
LDU_FT
[ "<BEGIN>\n## `build_transgenic_lines`", "init class | \"transgenic_line_source_name\":\"stock_number\" a Class\n add superClass | rdfs:subClassOf ilxtr:transgenicLine\n add *order* | ilxtr:useObjectProperty ilxtr:<order>\n add name | rdfs:label \"name\"\n add def ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the addTerms API. 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 addTerms API. 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...
need: label <str> type term, cde, anntation, or relationship <str> options: definition <str> #bug with qutations superclasses [{'id':<int>}] synonyms [{'literal':<str>}] ...
"need:\n label <str>\n type term, cde, anntation, or relationship <str>\n options:\n definition <str> #bug with qutations\n superclasses [{'id':<int>}]\n synonyms [{'literal':<st...
301
false
tgbugs/pyontutils
addTerms
8,877
LDU_FT/nxdevel/nx_itertools/random_product
LDU_FT
[ "<BEGIN>\n## `pairwise`", "Pair each element with its neighbors.", " Arguments\n ---------\n iterable : iterable", " Returns\n -------\n The generator produces a tuple containing a pairing of each element with\n its neighbor.\n<END>", "<BEGIN>\n## `partition`", "Partition an iterable....
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the random_product API. 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 random_product API. 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...
Random selection from itertools.product(*args, **kwds)
"Random selection from itertools.product(*args, **kwds)"
43
false
nxdevel/nx_itertools
random_product
8,878
LDU_FT/MrMinimal64/timezonefinder/compile_id_list
LDU_FT
[ "<BEGIN>\n## `set_version`", "Set package version as listed in `__version__` in `__init__.py`.\n<END>", "<BEGIN>\n## `get_geometry`", ":param tz_name: one of the names in timezone_names\n :param tz_id: the id of the timezone (=index in timezone_names)\n :param use_id: determines whether id or na...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the compile_id_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 e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the compile_id_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 e...
sorts the polygons_id list from least to most occurrences of the zone ids (->speed up) only 4.8% of all shortcuts include polygons from more than one zone but only for about 0.4% sorting would be beneficial (zones have different frequencies) in most of those cases there are only two types of zon...
"sorts the polygons_id list from least to most occurrences of the zone ids (->speed up)\n only 4.8% of all shortcuts include polygons from more than one zone\n but only for about 0.4% sorting would be beneficial (zones have different frequencies)\n in most of those cases there are only two types of...
35
false
MrMinimal64/timezonefinder
compile_id_list
8,879
LDU_FT/gmr/tinman/digest_auth
LDU_FT
[ "<BEGIN>\n## `main`", "Invoked by the script installed by setuptools.\n<END>", "<BEGIN>\n## `enable_debug`", "If the cli arg for foreground is set, set the configuration option\n for debug.\n<END>", "<BEGIN>\n## `insert_paths`", "Inserts a base path into the sys.path list if one is specified in\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the digest_auth API. 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 digest_auth API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
A decorator used to protect methods with HTTP Digest authentication.
"A decorator used to protect methods with HTTP Digest authentication."
270
false
gmr/tinman
digest_auth
8,880
LDU_FT/jborean93/smbprotocol/set_name
LDU_FT
[ "<BEGIN>\n## `unpack_multiple`", "Get's a list of SMB2NetworkInterfaceInfo messages from the byte value\n passed in. This is the raw buffer value that is set on the\n SMB2IOCTLResponse message.", " :param data: bytes of the messages\n :return: List of SMB2NetworkInterfaceInfo message...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_name API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_name API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
Set's the path_buffer and print/substitute name length of the message with the values passed in. These values should be a string and not a byte string as it is encoded in this function. :param print_name: The print name string to set :param substitute_name: The substitute name string to...
"Set's the path_buffer and print/substitute name length of the message\n with the values passed in. These values should be a string and not a\n byte string as it is encoded in this function.\n\n :param print_name: The print name string to set\n :param substitute_name: The substitute name str...
106
false
jborean93/smbprotocol
set_name
8,881
LDU_FT/matplotlib/cmocean/print_colormaps
LDU_FT
[ "<BEGIN>\n## `read`", "Read in dataset for variable var", " :param varin: Variable for which to read in data.\n<END>", "<BEGIN>\n## `show`", "Show a colormap for a chosen input variable var side by side with\n black and white and jet colormaps.", " :param cmap: Colormap instance\n :param var: ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the print_colormaps API. 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 print_colormaps API. 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...
Print colormaps in 256 RGB colors to text files. :param returnrgb=False: Whether or not to return the rgb array. Only makes sense to do if print one colormaps' rgb.
"Print colormaps in 256 RGB colors to text files.\n\n :param returnrgb=False: Whether or not to return the rgb array. Only makes sense to do if print one colormaps' rgb."
43
false
matplotlib/cmocean
print_colormaps
8,882
LDU_FT/mardix/pylot/bind_
LDU_FT
[ "<BEGIN>\n## `read_pkginfo`", "Help us read the pkginfo without accessing __init__\n<END>", "<BEGIN>\n## `with_user_roles`", "with_user_roles(roles)", " It allows to check if a user has access to a view by adding the decorator\n with_user_roles([])", " Requires flask-login", " In your model,...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the bind_ API. 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 bind_ API. 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...
To bind application that needs the 'app' object to init :param app: callable function that will receive 'Flask.app' as first arg
"To bind application that needs the 'app' object to init\n :param app: callable function that will receive 'Flask.app' as first arg"
66
false
mardix/pylot
bind_
8,883
LDU_FT/mlavin/django-selectable/format_results
LDU_FT
[ "<BEGIN>\n## `has_changed`", "Detects if the data was changed. This is added in 1.6.\n<END>", "<BEGIN>\n## `results_decorator`", "Helper for constructing simple decorators around Lookup.results.", " func is a function which takes a request as the first parameter. If func\n returns an HttpReponse it is...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the format_results API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the format_results API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
Returns a python structure that later gets serialized. raw_data full list of objects matching the search term options a dictionary of the given options
"Returns a python structure that later gets serialized.\n raw_data\n full list of objects matching the search term\n options\n a dictionary of the given options"
21
false
mlavin/django-selectable
format_results
8,884
LDU_FT/chrlie/shorten/insert
LDU_FT
[ "<BEGIN>\n## `insert`", "\\\n Inserts a value and returns a :class:`Pair <Pair>`.", " If the generated key exists or memcache cannot store it, a \n :class:`KeyInsertError <shorten.KeyInsertError>` is raised (or a\n :class:`TokenInsertError <shorten.TokenInsertError>` if a token\n exists...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the insert API. 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 insert API. 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 ...
\ Inserts a value and returns a :class:`Pair <shorten.Pair>`. .. admonition :: Key Safety Keys and tokens are always inserted with a :class:`Pipeline`, so irrevocable keys will never occur. If `pipe` is given, :class:`KeyInsertError <shorten.KeyInsertError>` and :cla...
"\\\n Inserts a value and returns a :class:`Pair <shorten.Pair>`.\n\n .. admonition :: Key Safety\n\n Keys and tokens are always inserted with a :class:`Pipeline`, so \n irrevocable keys will never occur.\n \n If `pipe` is given, :class:`KeyInsertError <shorten.KeyInsertError>` and \...
39
false
chrlie/shorten
insert
8,885
LDU_FT/BerkeleyAutomation/visualization/save
LDU_FT
[ "<BEGIN>\n## `figure`", "Create a blank figure.", " Parameters\n ----------\n bgcolor : (3,) float\n Color of the background with values in [0,1].\n size : (2,) int\n Width and height of the figure in pixels.\n<END>", "<BEGIN>\n## `show`", "Display the current...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the save API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the save API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
Save frames from the viewer out to a file. Parameters ---------- filename : str The filename in which to save the output image. If more than one frame, should have extension .gif. n_frames : int Number of frames to render. If more than one, the scene ...
"Save frames from the viewer out to a file.\n\n Parameters\n ----------\n filename : str\n The filename in which to save the output image. If more than one frame,\n should have extension .gif.\n n_frames : int\n Number of frames to render. If more than one, t...
54
false
BerkeleyAutomation/visualization
save
8,886
LDU_FT/aws/aws-encryption-sdk-python/owns_data_key
LDU_FT
[ "<BEGIN>\n## `_encryption_context_hash`", "Generates the expected hash for the provided encryption context.", " :param hasher: Existing hasher to use\n :type hasher: cryptography.hazmat.primitives.hashes.Hash\n :param dict encryption_context: Encryption context to hash\n :returns: Complete hash\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the owns_data_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 ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the owns_data_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 ext...
Determines if data_key object is owned by this RawMasterKey. :param data_key: Data key to evaluate :type data_key: :class:`aws_encryption_sdk.structures.DataKey`, :class:`aws_encryption_sdk.structures.RawDataKey`, or :class:`aws_encryption_sdk.structures.EncryptedDataKey` ...
"Determines if data_key object is owned by this RawMasterKey.\n\n :param data_key: Data key to evaluate\n :type data_key: :class:`aws_encryption_sdk.structures.DataKey`,\n :class:`aws_encryption_sdk.structures.RawDataKey`,\n or :class:`aws_encryption_sdk.structures.EncryptedDataKey`\...
364
false
aws/aws-encryption-sdk-python
owns_data_key
8,887
LDU_FT/RI-imaging/qpsphere/contour_canny
LDU_FT
[ "<BEGIN>\n## `interpolate_grid`", "Return the 2D field averaged radially w.r.t. the center\n<END>", "<BEGIN>\n## `rytov`", "Field behind a dielectric sphere in the Rytov approximation", " Parameters\n ----------\n radius: float\n Radius of the sphere [m]\n sphere_index: float\n Ref...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the contour_canny API. 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 contour_canny API. 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...
Heuristic Canny edge detection for circular objects Two Canny-based edge detections with different filter sizes are performed to find the outmost contour of an object in a phase image while keeping artifacts at a minimum. Parameters ---------- image: 2d ndarray Image containing an appr...
"Heuristic Canny edge detection for circular objects\n\n Two Canny-based edge detections with different filter sizes are\n performed to find the outmost contour of an object in a phase image\n while keeping artifacts at a minimum.\n\n Parameters\n ----------\n image: 2d ndarray\n Image containi...
179
false
RI-imaging/qpsphere
contour_canny
8,888
LDU_FT/python-bonobo/bonobo/add_node
LDU_FT
[ "<BEGIN>\n## `run`", "Main entry point of bonobo. It takes a graph and creates all the necessary plumbing around to execute it.", " The only necessary argument is a :class:`Graph` instance, containing the logic you actually want to execute.", " By default, this graph will be executed using the \"threadp...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_node API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_node API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
Add a node without connections in this graph and returns its index.
"Add a node without connections in this graph and returns its index."
140
false
python-bonobo/bonobo
add_node
8,889
LDU_FT/echonest/pyechonest/track_from_md5
LDU_FT
[ "<BEGIN>\n## `write_xspf`", "send me a list of (artist,title,mp3_url)\n<END>", "<BEGIN>\n## `callm`", "Call the api! \n Param_dict is a *regular* *python* *dictionary* so if you want to have multi-valued params\n put them in a list.", " ** note, if we require 2.6, we can get rid of this timeout mun...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the track_from_md5 API. 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 track_from_md5 API. 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 track object from an md5 hash. NOTE: Does not create the detailed analysis for the Track. Call Track.get_analysis() for that. Args: md5: A string 32 characters long giving the md5 checksum of a track already analyzed. Example: >>> t = track.track_from_md5('b8abf85746ab3416ada...
"Create a track object from an md5 hash.\n\n NOTE: Does not create the detailed analysis for the Track. Call\n Track.get_analysis() for that.\n\n Args:\n md5: A string 32 characters long giving the md5 checksum of a track already analyzed.\n\n Example:\n >>> t = track.track_from_md5('b8abf8574...
438
false
echonest/pyechonest
track_from_md5
8,890
LDU_FT/testing-cabal/systemfixtures/listen
LDU_FT
[ "<BEGIN>\n## `allocate_port`", "Allocate an unused port.", " There is a small race condition here (between the time we allocate the\n port, and the time it actually gets used), but for the purposes for which\n this function gets used it isn't a problem in practice.\n<END>", "<BEGIN>\n## `spawn`", "...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the listen API. 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 listen API. 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 ...
Make the fake executable listen to the specified port. Possible values for 'port' are: - None: Allocate immediately a free port and instruct the fake executable to use it when it's invoked. This is subject to a race condition, if that port that was free when listen() was ...
"Make the fake executable listen to the specified port.\n\n Possible values for 'port' are:\n\n - None: Allocate immediately a free port and instruct the fake\n executable to use it when it's invoked. This is subject to\n a race condition, if that port that was free when listen() was\n ...
22
false
testing-cabal/systemfixtures
listen
8,891
LDU_FT/caffeinehit/django-oauth2-provider/cache_data
LDU_FT
[ "<BEGIN>\n## `check`", "Check if a desired scope ``wants`` is part of an available scope ``has``.", " Returns ``False`` if not, return ``True`` if yes.", " :example:", " If a list of scopes such as", " ::", " READ = 1 << 1\n WRITE = 1 << 2\n READ_WRITE = READ | WRITE", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the cache_data API. 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 cache_data API. 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...
Cache data in the session store. :param request: :attr:`django.http.HttpRequest` :param data: Arbitrary data to store. :param key: `str` The key under which to store the data.
"Cache data in the session store.\n\n :param request: :attr:`django.http.HttpRequest`\n :param data: Arbitrary data to store.\n :param key: `str` The key under which to store the data."
74
false
caffeinehit/django-oauth2-provider
cache_data
8,892
LDU_FT/bmuller/kademlia/remove
LDU_FT
[ "<BEGIN>\n## `add_node`", "Add a C{Node} to the C{KBucket}. Return True if successful,\n False if the bucket is full.", " If the bucket is full, keep track of node in a replacement list,\n per section 4.1 of the paper.\n<END>", "<BEGIN>\n## `lonely_buckets`", "Get all of the buckets th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the remove API. 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 remove API. 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 ...
Remove a list of peer ids from this heap. Note that while this heap retains a constant visible size (based on the iterator), it's actual size may be quite a bit larger than what's exposed. Therefore, removal of nodes may not change the visible size as previously added nodes suddenly be...
"Remove a list of peer ids from this heap. Note that while this\n heap retains a constant visible size (based on the iterator), it's\n actual size may be quite a bit larger than what's exposed. Therefore,\n removal of nodes may not change the visible size as previously added\n nodes sudden...
62
false
bmuller/kademlia
remove
8,893
LDU_FT/python-bonobo/bonobo/create_container
LDU_FT
[ "<BEGIN>\n## `run`", "Main entry point of bonobo. It takes a graph and creates all the necessary plumbing around to execute it.", " The only necessary argument is a :class:`Graph` instance, containing the logic you actually want to execute.", " By default, this graph will be executed using the \"threadp...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_container API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_container API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Create a container with reasonable default service implementations for commonly use, standard-named, services. Services: - `fs` defaults to a fs2 instance based on current working directory - `http`defaults to requests :param services: :return:
"Create a container with reasonable default service implementations for commonly use, standard-named, services.\n\n Services:\n - `fs` defaults to a fs2 instance based on current working directory\n - `http`defaults to requests\n\n :param services:\n :return:"
140
false
python-bonobo/bonobo
create_container
8,894
LDU_FT/danvk/pyjsonselect/match
LDU_FT
[ "<BEGIN>\n## `_reExec`", "This returns [full match, group1, group2, ...], just like JS.\n<END>", "<BEGIN>\n## `match`", "Match a selector to an object, yielding the matched values.", " Args:\n sel: The JSONSelect selector to apply (a string)\n obj: The object against which to apply the sele...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the match API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the match API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
Match a selector to an object, yielding the matched values. Args: sel: The JSONSelect selector to apply (a string) obj: The object against which to apply the selector arr: If sel contains ? characters, then the values in this array will be safely interpolated into the selector....
"Match a selector to an object, yielding the matched values.\n\n Args:\n sel: The JSONSelect selector to apply (a string)\n obj: The object against which to apply the selector\n arr: If sel contains ? characters, then the values in this array will\n be safely interpolated into the se...
13
false
danvk/pyjsonselect
match
8,895
LDU_FT/IdentityPython/pysaml2/add_information_about_person
LDU_FT
[ "<BEGIN>\n## `add_vo_information_about_user`", "Add information to the knowledge I have about the user. This is\n for Virtual organizations.", " :param name_id: The subject identifier\n :return: A possibly extended knowledge.\n<END>", "<BEGIN>\n## `create_authn_request`", "Creates an au...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_information_about_person 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 add_information_about_person API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its concl...
If there already are information from this source in the cache this function will overwrite that information
"If there already are information from this source in the cache\n this function will overwrite that information"
738
false
IdentityPython/pysaml2
add_information_about_person
8,896
LDU_FT/piotr-rusin/spam-lists/add
LDU_FT
[ "<BEGIN>\n## `is_valid_host`", "Check if given value is a valid host string.", " :param value: a value to test\n :returns: True if the value is valid\n<END>", "<BEGIN>\n## `is_valid_url`", "Check if given value is a valid URL string.", " :param value: a value to test\n :returns: True if the va...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add API. 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 add API. 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...
Add the given value to the collection. :param host: an ip address or a hostname :raises InvalidHostError: raised when the given value is not a valid ip address nor a hostname
"Add the given value to the collection.\n\n :param host: an ip address or a hostname\n :raises InvalidHostError: raised when the given value\n is not a valid ip address nor a hostname"
78
false
piotr-rusin/spam-lists
add
8,897
LDU_FT/nephila/python-taiga/create
LDU_FT
[ "<BEGIN>\n## `list`", "Retrieves a list of objects.", " By default uses local cache and remote pagination", " If pagination is used and no page is requested (the default), all the\n remote objects are retrieved and appended in a single list.", " If pagination is disabled, all the...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Create a new :class:`Attachment`. :param project: :class:`Project` id :param object_id: id of the current object :param ref: :class:`Task` reference :param attached_file: file path that you want to upload :param attrs: optional attributes for the :class:`Attachment`
"Create a new :class:`Attachment`.\n\n :param project: :class:`Project` id\n :param object_id: id of the current object\n :param ref: :class:`Task` reference\n :param attached_file: file path that you want to upload\n :param attrs: optional attributes for the :class:`Attachment`"
162
false
nephila/python-taiga
create
8,898
LDU_FT/Koed00/django-q/loads
LDU_FT
[ "<BEGIN>\n## `loads`", "Reverse of dumps(), raise BadSignature if signature fails.", " The serializer is expected to accept a bytestring.\n<END>", "<BEGIN>\n## `unsign`", "Retrieve original value and check it wasn't signed more\n than max_age seconds ago.\n<END>", "<BEGIN>\n## `get_broker`", "...
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...
Reverse of dumps(), raise BadSignature if signature fails. The serializer is expected to accept a bytestring.
"Reverse of dumps(), raise BadSignature if signature fails.\n\n The serializer is expected to accept a bytestring."
96
false
Koed00/django-q
loads
8,899
LDU_FT/flashashen/flange/search
LDU_FT
[ "<BEGIN>\n## `search`", "find matches for the given path expression in the data", " :param path_expression: path tuple or string\n :return:\n<END>", "<BEGIN>\n## `split_iter`", "Splits an iterable based on a separator, *sep*, a max of\n *maxsplit* times (no max by default). *sep* can be:", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the search API. 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 search API. 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 single model object instance matching given criteria :param path: tuple or dpath expression representing the hierarchy/chain of parent keys :param values: single value or list of values to match. If exact is False then .contains method is used as filter :param raise_absent: if True then rais...
"Return single model object instance matching given criteria\n :param path: tuple or dpath expression representing the hierarchy/chain of parent keys\n :param values: single value or list of values to match. If exact is False then .contains method is used as filter\n :param raise_absent: if True then ...
132
false
flashashen/flange
search
8,900
LDU_FT/totalgood/pugnlp/generate_slices
LDU_FT
[ "<BEGIN>\n## `make_datetime`", "Coerce a datetime or string into datetime.datetime object", " Arguments:\n dt (str or datetime.datetime or atetime.time or numpy.Timestamp): time or date\n to be coerced into a `datetime.date` object", " Returns:\n datetime.time: Time of day portion of a ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the generate_slices API. 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 generate_slices API. 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...
Iterate through a sequence (or generator) in batches of length `batch_len` See Also: pug.dj.db.generate_queryset_batches References: http://stackoverflow.com/a/761125/623735 Examples: >> [batch for batch in generate_slices(range(7), 3)] [(0, 1, 2), (3, 4, 5), (6,)] >> from...
"Iterate through a sequence (or generator) in batches of length `batch_len`\n\n See Also:\n pug.dj.db.generate_queryset_batches\n\n References:\n http://stackoverflow.com/a/761125/623735\n\n Examples:\n >> [batch for batch in generate_slices(range(7), 3)]\n [(0, 1, 2), (3, 4, 5), (6,)]\n ...
433
false
totalgood/pugnlp
generate_slices
8,901
LDU_FT/astroduff/commah/_getcosmoheader
LDU_FT
[ "<BEGIN>\n## `plotcommand`", "Example ways to interrogate the dataset and plot the commah output\n<END>", "<BEGIN>\n## `_izip`", "Iterate through multiple lists or arrays of equal size\n<END>", "<BEGIN>\n## `_checkinput`", "Check and convert any input scalar or array to numpy array\n<END>", "<BEGIN>\n##...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _getcosmoheader API. 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 _getcosmoheader API. 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...
Output the cosmology to a string for writing to file
"Output the cosmology to a string for writing to file"
81
false
astroduff/commah
_getcosmoheader
8,902
LDU_FT/Yelp/detect-secrets/scan_file
LDU_FT
[ "<BEGIN>\n## `determine_file_type`", ":param filename: str", " :rtype: FileType\n<END>", "<BEGIN>\n## `write_baseline_to_file`", ":type filename: str\n :type data: dict\n :rtype: None\n<END>", "<BEGIN>\n## `load_baseline_from_string`", "Initializes a SecretsCollection object from string.", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the scan_file API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the scan_file API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
Scans a specified file, and adds information to self.data :type filename: str :param filename: full path to file to scan. :type filename_key: str :param filename_key: key to store in self.data :returns: boolean; though this value is only used for testing
"Scans a specified file, and adds information to self.data\n\n :type filename: str\n :param filename: full path to file to scan.\n\n :type filename_key: str\n :param filename_key: key to store in self.data\n\n :returns: boolean; though this value is only used for testing"
194
false
Yelp/detect-secrets
scan_file
8,903
LDU_FT/SpotlightData/preprocessing/correct_word
LDU_FT
[ "<BEGIN>\n## `correct_word`", "Finds all valid one and two letter corrections for word_string, returning the word\n with the highest relative probability as type str.\n<END>", "<BEGIN>\n## `find_candidates`", "Finds all potential words word_string could have intended to mean. If a word is not incorrectly\n...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the correct_word API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the correct_word API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
Finds all valid one and two letter corrections for word_string, returning the word with the highest relative probability as type str.
"Finds all valid one and two letter corrections for word_string, returning the word\n with the highest relative probability as type str."
106
false
SpotlightData/preprocessing
correct_word
8,904
LDU_FT/dixudx/rtcclient/getPlannedFor
LDU_FT
[ "<BEGIN>\n## `getRoles`", "Get all :class:`rtcclient.models.Role` objects in this project\n area", " If no :class:`Roles` are retrieved, `None` is returned.", " :return: a :class:`list` that contains all\n :class:`rtcclient.models.Role` objects\n :rtype: list\n<END>", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the getPlannedFor API. 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 getPlannedFor API. 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...
Get :class:`rtcclient.models.PlannedFor` object by its name :param plannedfor_name: the plannedfor name :param projectarea_id: the :class:`rtcclient.project_area.ProjectArea` id :param projectarea_name: the project area name :param archived: (default is False) whether the pl...
"Get :class:`rtcclient.models.PlannedFor` object by its name\n\n :param plannedfor_name: the plannedfor name\n :param projectarea_id: the :class:`rtcclient.project_area.ProjectArea`\n id\n :param projectarea_name: the project area name\n :param archived: (default is False) whether...
285
false
dixudx/rtcclient
getPlannedFor
8,905
LDU_FT/onelogin/python3-saml/__build_signature
LDU_FT
[ "<BEGIN>\n## `get_issuer`", "Gets the Issuer of the Logout Response Message\n :return: The Issuer\n :rtype: string\n<END>", "<BEGIN>\n## `get_status`", "Gets the Status\n :return: The Status\n :rtype: string\n<END>", "<BEGIN>\n## `is_valid`", "Determines if the SAML LogoutRespo...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the __build_signature API. 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 __build_signature API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Builds the Signature :param data: The Request data :type data: dict :param saml_type: The target URL the user should be redirected to :type saml_type: string SAMLRequest | SAMLResponse :param sign_algorithm: Signature algorithm method :type sign_algorithm: string
"Builds the Signature\n :param data: The Request data\n :type data: dict\n\n :param saml_type: The target URL the user should be redirected to\n :type saml_type: string SAMLRequest | SAMLResponse\n\n :param sign_algorithm: Signature algorithm method\n :type sign_algorithm: str...
302
false
onelogin/python3-saml
__build_signature
8,906
LDU_FT/edeposit/edeposit.amqp.ltp/generate_checksums
LDU_FT
[ "<BEGIN>\n## `_get_suffix`", "Return suffix from `path`.", " ``/home/xex/somefile.txt`` --> ``txt``.", " Args:\n path (str): Full file path.", " Returns:\n str: Suffix.", " Raises:\n UserWarning: When ``/`` is detected in suffix.\n<END>", "<BEGIN>\n## `reactToAMQPMessage...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the generate_checksums API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the generate_checksums API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
Compute checksum for each file in `directory`, with exception of files specified in `blacklist`. Args: directory (str): Absolute or relative path to the directory. blacklist (list/set/tuple): List of blacklisted filenames. Only filenames are checked, not paths! Returns: ...
"Compute checksum for each file in `directory`, with exception of files\n specified in `blacklist`.\n\n Args:\n directory (str): Absolute or relative path to the directory.\n blacklist (list/set/tuple): List of blacklisted filenames. Only\n filenames are checked, not paths!\n\n R...
69
false
edeposit/edeposit.amqp.ltp
generate_checksums
8,907
LDU_FT/ktdreyer/txkoji/duration
LDU_FT
[ "<BEGIN>\n## `duration`", "Return a timedelta for this build.", " Measure the time between this build's start and end time, or \"now\"\n if the build has not yet finished.", " :returns: timedelta object\n<END>", "<BEGIN>\n## `url`", "Return a kojiweb URL for this resource.", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the duration API. 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 duration API. 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 a timedelta for this build. Measure the time between this build's start and end time, or "now" if the build has not yet finished. :returns: timedelta object
"Return a timedelta for this build.\n\n Measure the time between this build's start and end time, or \"now\"\n if the build has not yet finished.\n\n :returns: timedelta object"
213
false
ktdreyer/txkoji
duration
8,908
LDU_FT/kevinconway/confpy/set_environment_var_options
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 set_environment_var_options API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclu...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_environment_var_options API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclu...
Set any configuration options which have an environment var set. Args: config (confpy.core.config.Configuration): A configuration object which has been initialized with options. env (dict): Optional dictionary which contains environment variables. The default is os.environ i...
"Set any configuration options which have an environment var set.\n\n Args:\n config (confpy.core.config.Configuration): A configuration object which\n has been initialized with options.\n env (dict): Optional dictionary which contains environment variables.\n The default is os.en...
104
false
kevinconway/confpy
set_environment_var_options
8,909
LDU_FT/oz123/blogit/entries
LDU_FT
[ "<BEGIN>\n## `add_numbers`", "Add two numbers server side, ridiculous but well...\n<END>", "<BEGIN>\n## `find_new_posts_and_pages`", "Walk content dir, put each post and page in the database\n<END>", "<BEGIN>\n## `_get_last_entries`", "get all entries and the last qty entries\n<END>", "<BEGIN>\n## `upda...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the entries API. 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 entries API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
return the actual lists of entries tagged with
"return the actual lists of entries tagged with"
17
false
oz123/blogit
entries
8,910
LDU_FT/rjw57/throw/sendmail
LDU_FT
[ "<BEGIN>\n## `create_email`", "Create an email message object which implements the\n email.message.Message interface and which has the files to be shared\n attached to it.\n<END>", "<BEGIN>\n## `CreateGallery`", "Creates a Gallery on the server. Returns a Gallery object with the\n editor_id and reade...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the sendmail API. 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 sendmail API. 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...
Send mail to one or more recipients. The required arguments are a list of RFC 822 to-address strings (a bare string will be treated as a list with 1 address), and a message string.
"Send mail to one or more recipients. The required arguments are a\n list of RFC 822 to-address strings (a bare string will be treated as a\n list with 1 address), and a message string."
28
false
rjw57/throw
sendmail
8,911
LDU_FT/matthewdeanmartin/jiggle_version/via_find_packages
LDU_FT
[ "<BEGIN>\n## `require_python`", "Require at least a minimum Python version.", " The version number is expressed in terms of `sys.hexversion`. E.g. to\n require a minimum of Python 2.6, use::", " >>> require_python(0x206000f0)", " :param minimum: Minimum Python version supported.\n :type mini...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the via_find_packages API. 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 via_find_packages API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Use find_packages code to find modules. Can find LOTS of modules. :return:
"Use find_packages code to find modules. Can find LOTS of modules.\n :return:"
124
false
matthewdeanmartin/jiggle_version
via_find_packages
8,912
LDU_FT/d0ugal/python-rfxcom/_bytes_to_uint_48
LDU_FT
[ "<BEGIN>\n## `parse`", "Parse a 9 bytes packet in the Temperature format and return a\n dictionary containing the data extracted. An example of a return value\n would be:", " .. code-block:: python", " {\n 'id': \"0x2EB2\",\n 'packet_length': 8,\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _bytes_to_uint_48 API. 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 _bytes_to_uint_48 API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Converts an array of 6 bytes to a 48bit integer. :param data: bytearray to be converted to a 48bit integer :type data: bytearray :return: the integer :rtype: int
"Converts an array of 6 bytes to a 48bit integer.\n\n :param data: bytearray to be converted to a 48bit integer\n :type data: bytearray\n\n :return: the integer\n :rtype: int"
74
false
d0ugal/python-rfxcom
_bytes_to_uint_48
8,913
LDU_FT/awslabs/sockeye/call_sockeye_train
LDU_FT
[ "<BEGIN>\n## `check_arg_compatibility`", "Check if some arguments are incompatible with each other.", " :param args: Arguments as returned by argparse.\n<END>", "<BEGIN>\n## `check_resume`", "Check if we should resume a broken training run.", " :param args: Arguments as returned by argparse.\n :p...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the call_sockeye_train API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the call_sockeye_train API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
Call sockeye.train with specified arguments on prepared inputs. Will resume partial training or skip training if model is already finished. Record command for future use. :param model: Type of translation model to train. :param bpe_dir: Directory of BPE-encoded input data. :param model_dir: Model...
"Call sockeye.train with specified arguments on prepared inputs. Will resume\n partial training or skip training if model is already finished. Record\n command for future use.\n\n :param model: Type of translation model to train.\n :param bpe_dir: Directory of BPE-encoded input data.\n :param model_dir...
1,056
true
awslabs/sockeye
call_sockeye_train
8,914
LDU_FT/KeplerGO/K2fov/getKeplerFov
LDU_FT
[ "<BEGIN>\n## `angSepVincenty`", "Vincenty formula for distances on a sphere\n<END>", "<BEGIN>\n## `parse_file`", "Parse a comma-separated file with columns \"ra,dec,magnitude\".\n<END>", "<BEGIN>\n## `K2onSilicon`", "Checks whether targets are on silicon during a given campaign.", " This function wil...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the getKeplerFov API. 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 getKeplerFov API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
Returns a `fov.KeplerFov` object for a given campaign. Parameters ---------- fieldnum : int K2 Campaign number. Returns ------- fovobj : `fov.KeplerFov` object Details the footprint of the requested K2 campaign.
"Returns a `fov.KeplerFov` object for a given campaign.\n\n Parameters\n ----------\n fieldnum : int\n K2 Campaign number.\n\n Returns\n -------\n fovobj : `fov.KeplerFov` object\n Details the footprint of the requested K2 campaign."
185
false
KeplerGO/K2fov
getKeplerFov
8,915
LDU_FT/ptmcg/littletable/copy_template
LDU_FT
[ "<BEGIN>\n## `copy_template`", "Create empty copy of the current table, with copies of all\n index definitions.\n<END>", "<BEGIN>\n## `clone`", "Create full copy of the current table, including table contents\n and index definitions.\n<END>", "<BEGIN>\n## `create_index`", "Create a new...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the copy_template API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the copy_template API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
Create empty copy of the current table, with copies of all index definitions.
"Create empty copy of the current table, with copies of all\n index definitions."
75
false
ptmcg/littletable
copy_template
8,916
LDU_FT/biolink/ontobio/parse_line
LDU_FT
[ "<BEGIN>\n## `extract_subset`", "Find all nodes in a subset.", " We assume the oboInOwl encoding of subsets, and subset IDs are IRIs\n<END>", "<BEGIN>\n## `sparql`", "Execute a SPARQL query.", " The query is specified using `select` and `body` parameters.\n The argument for the Named ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_line API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_line API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
Parses a single line of a GAF Return a tuple `(processed_line, associations)`. Typically there will be a single association, but in some cases there may be none (invalid line) or multiple (disjunctive clause in annotation extensions) Note: most applications will only need to ca...
"Parses a single line of a GAF\n\n Return a tuple `(processed_line, associations)`. Typically\n there will be a single association, but in some cases there\n may be none (invalid line) or multiple (disjunctive clause in\n annotation extensions)\n\n Note: most applications will only ne...
526
false
biolink/ontobio
parse_line
8,917
LDU_FT/pysam-developers/pysam/usage
LDU_FT
[ "<BEGIN>\n## `distutils_dir_name`", "Returns the name of a distutils build directory\n see: http://stackoverflow.com/questions/14320220/\n testing-python-c-libraries-get-build-path\n<END>", "<BEGIN>\n## `usage`", "return the samtools usage information for this command\n<END>", "<BEGIN>\n## ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the usage API. 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 usage API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
return the samtools usage information for this command
"return the samtools usage information for this command"
23
false
pysam-developers/pysam
usage
8,918
LDU_FT/BerkeleyAutomation/perception/add_frame
LDU_FT
[ "<BEGIN>\n## `frames`", "Retrieve a new frame from the PhoXi and convert it to a ColorImage,\n a DepthImage, and an IrImage.", " Returns\n -------\n :obj:`tuple` of :obj:`ColorImage`, :obj:`DepthImage`, :obj:`IrImage`, :obj:`numpy.ndarray`\n The ColorImage, DepthImage, and...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_frame API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_frame API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
Adds a frame to the image, e.g. turns the boundaries white Parameters ---------- left_boundary : int the leftmost boundary of the frame right_boundary : int the rightmost boundary of the frame (must be greater than left_boundary) upper_boundary : int ...
"Adds a frame to the image, e.g. turns the boundaries white\n\n Parameters\n ----------\n left_boundary : int\n the leftmost boundary of the frame\n right_boundary : int\n the rightmost boundary of the frame (must be greater than left_boundary)\n upper_boundary :...
657
false
BerkeleyAutomation/perception
add_frame
8,919
LDU_FT/quadrismegistus/prosodic/dir
LDU_FT
[ "<BEGIN>\n## `loadLanguage`", "This function loads up a language configuration file and returns\n\tthe configuration to be passed to the syllabify function.\n<END>", "<BEGIN>\n## `syllabify`", "Syllabifies the word, given a language configuration loaded with loadLanguage.\n\t word is either a string of phon...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the dir API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the dir API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
Show this object's attributes and methods.
"Show this object's attributes and methods."
80
false
quadrismegistus/prosodic
dir
8,920
LDU_FT/genepattern/genepattern-python/get_alt_description
LDU_FT
[ "<BEGIN>\n## `GCT`", "Create a Dataframe with the contents of the GCT file\n<END>", "<BEGIN>\n## `ODF`", "Create a Dataframe with the contents of the ODF file", " For more information on the ODF format see:\n http://software.broadinstitute.org/cancer/software/genepattern/file-formats-guide", " :o...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_alt_description API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_alt_description API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
Returns the alternate description of a parameter. Only pipeline prompt-when-run parameters can have alternate names and alternate descriptions
"Returns the alternate description of a parameter.\n Only pipeline prompt-when-run parameters\n can have alternate names and alternate descriptions"
156
false
genepattern/genepattern-python
get_alt_description
8,921
LDU_FT/dhondta/tinyscript/demo_args
LDU_FT
[ "<BEGIN>\n## `_filtered_actions`", "Get actions filtered on a list of action types.", " :param a_type: argparse.Action instance name (e.g. count, append)\n<END>", "<BEGIN>\n## `_input_arg`", "Ask the user for input of a single argument.", " :param a: argparse.Action instance\n :return...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the demo_args API. 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 demo_args API. 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...
Additional method for replacing input arguments by demo ones.
"Additional method for replacing input arguments by demo ones."
74
false
dhondta/tinyscript
demo_args
8,922
LDU_FT/kxz/littlebrother/filesize
LDU_FT
[ "<BEGIN>\n## `duration`", "Return a string of the form \"1 hr 2 min 3 sec\" representing the\n given number of seconds.\n<END>", "<BEGIN>\n## `filesize`", "Return a string containing an approximate representation of\n *num_bytes* using a small number and decimal SI prefix.\n<END>", "<BEGIN>\n## `read_...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the filesize API. 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 filesize API. 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 a string containing an approximate representation of *num_bytes* using a small number and decimal SI prefix.
"Return a string containing an approximate representation of\n *num_bytes* using a small number and decimal SI prefix."
14
false
kxz/littlebrother
filesize
8,923
LDU_FT/afilipovich/gglsbl/get_full_hashes
LDU_FT
[ "<BEGIN>\n## `lookup_hash_prefix`", "Lookup hash prefixes by cue (first 4 bytes of hash)", " Returns a tuple of (value, negative_cache_expired).\n<END>", "<BEGIN>\n## `store_full_hash`", "Store full hash found for the given hash prefix\n<END>", "<BEGIN>\n## `get_client_state`", "Get a dict of kno...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_full_hashes API. 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_full_hashes API. 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...
Find full hashes matching hash prefixes. client_state is a dict which looks like {(threatType, platformType, threatEntryType): clientState}
"Find full hashes matching hash prefixes.\n\n client_state is a dict which looks like {(threatType, platformType, threatEntryType): clientState}"
35
false
afilipovich/gglsbl
get_full_hashes
8,924
LDU_FT/tommikaikkonen/prettyprinter/commentdoc
LDU_FT
[ "<BEGIN>\n## `comment`", "Annotates a value or a Doc with a comment.", " When printed by prettyprinter, the comment will be\n rendered next to the value or Doc.\n<END>", "<BEGIN>\n## `register_pretty`", "Returns a decorator that registers the decorated function\n as the pretty printer for instances...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the commentdoc API. 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 commentdoc API. 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...
Returns a Doc representing a comment `text`. `text` is treated as words, and any whitespace may be used to break the comment to multiple lines.
"Returns a Doc representing a comment `text`. `text` is\n treated as words, and any whitespace may be used to break\n the comment to multiple lines."
78
false
tommikaikkonen/prettyprinter
commentdoc
8,925
LDU_FT/vecnet/vecnet.openmalaria/interventions
LDU_FT
[ "<BEGIN>\n## `get_percentage_from_prob`", "Converted probability of being treated to total percentage of clinical cases treated\n<END>", "<BEGIN>\n## `get_schema_version_from_xml`", "Get schemaVersion attribute from OpenMalaria scenario file\n xml - open file or content of xml document to be processed\n<EN...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the interventions API. 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 interventions API. 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...
Dictionary of interventions in /scenario/interventions/vectorPop section
"Dictionary of interventions in /scenario/interventions/vectorPop section"
42
false
vecnet/vecnet.openmalaria
interventions
8,926
LDU_FT/ray-project/ray/collect_episodes
LDU_FT
[ "<BEGIN>\n## `_agent_import_failed`", "Returns dummy agent class for if PyTorch etc. is not installed.\n<END>", "<BEGIN>\n## `run`", "Executes training.", " Args:\n run_or_experiment (function|class|str|Experiment): If\n function|class|str, this is the algorithm or model to train.\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the collect_episodes API. 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 collect_episodes API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Gathers new episodes metrics tuples from the given evaluators.
"Gathers new episodes metrics tuples from the given evaluators."
1,706
true
ray-project/ray
collect_episodes
8,927
LDU_FT/dmgass/baseline/multiline_repr
LDU_FT
[ "<BEGIN>\n## `main`", "Command line interface.", " :param list args: command line options (defaults to sys.argv)\n :returns: exit code\n :rtype: int\n<END>", "<BEGIN>\n## `showpath`", "Return path in form most convenient for user to read.", " Return relative path when input path is within ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the multiline_repr API. 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 multiline_repr API. 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...
Get string representation for triple quoted context. Make string representation as normal except do not transform "special characters" into an escaped representation to support use of the representation in a triple quoted multi-line string context (to avoid escaping newlines and double quotes). P...
"Get string representation for triple quoted context.\n\n Make string representation as normal except do not transform\n \"special characters\" into an escaped representation to support\n use of the representation in a triple quoted multi-line string\n context (to avoid escaping newlines and double quotes)....
29
false
dmgass/baseline
multiline_repr
8,928
LDU_FT/simonw/datasette/serve
LDU_FT
[ "<BEGIN>\n## `fail_if_publish_binary_not_installed`", "Exit (with error message) if ``binary` isn't installed\n<END>", "<BEGIN>\n## `path_from_row_pks`", "Generate an optionally URL-quoted unique identifier\n for a row from its primary keys.\n<END>", "<BEGIN>\n## `detect_fts`", "Detect if table has...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the serve API. 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 serve API. 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...
Serve up specified SQLite database files with a web UI
"Serve up specified SQLite database files with a web UI"
36
false
simonw/datasette
serve
8,929
LDU_FT/ojarva/python-ledcontroller/get_brightness_level
LDU_FT
[ "<BEGIN>\n## `execute`", "Execute a single command, and sets sleep times properly.", " - controller_id = index of controller, zero-based\n - command is normal LedController command as a string\n - *args and **kwargs are passed to command", " For example, .execute(0, \"on\", 1) send...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_brightness_level 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_brightness_level API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Convert percents to bulbs internal range. percent should be integer from 0 to 100. Return value is 2 (minimum brightness) - 27 (maximum brightness)
"Convert percents to bulbs internal range.\n\n percent should be integer from 0 to 100.\n Return value is 2 (minimum brightness) - 27 (maximum brightness)"
49
false
ojarva/python-ledcontroller
get_brightness_level
8,930
LDU_FT/joestump/django-ajax/_get_record
LDU_FT
[ "<BEGIN>\n## `json_response`", "Wrap a view in JSON.", " This decorator runs the given function and looks out for ajax.AJAXError's,\n which it encodes into a proper HttpResponse object. If an unknown error\n is thrown it's encoded as a 500.", " All errors are then packaged up with an appropriate C...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_record API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_record API. 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...
Fetch a given record. Handles fetching a record from the database along with throwing an appropriate instance of ``AJAXError`.
"Fetch a given record.\n\n Handles fetching a record from the database along with throwing an\n appropriate instance of ``AJAXError`."
27
false
joestump/django-ajax
_get_record
8,931
LDU_FT/data61/clkhash/hash_and_serialize_chunk
LDU_FT
[ "<BEGIN>\n## `convert_v1_to_v2`", "Convert v1 schema dict to v2 schema dict.\n :param dict: v1 schema dict\n :return: v2 schema dict\n<END>", "<BEGIN>\n## `from_json_dict`", "Create a Schema for v1 or v2 according to dct", " :param dct: This dictionary must have a `'features'`\n key spec...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the hash_and_serialize_chunk 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 hash_and_serialize_chunk API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio...
Generate Bloom filters (ie hash) from chunks of PII then serialize the generated Bloom filters. It also computes and outputs the Hamming weight (or popcount) -- the number of bits set to one -- of the generated Bloom filters. :param chunk_pii_data: An iterable of indexable records. :param keys: A tuple...
"Generate Bloom filters (ie hash) from chunks of PII then serialize\n the generated Bloom filters. It also computes and outputs the Hamming weight (or popcount) -- the number of bits\n set to one -- of the generated Bloom filters.\n\n :param chunk_pii_data: An iterable of indexable records.\n :param keys: A...
212
false
data61/clkhash
hash_and_serialize_chunk
8,932
LDU_FT/flashashen/flange/windowed_iter
LDU_FT
[ "<BEGIN>\n## `search`", "find matches for the given path expression in the data", " :param path_expression: path tuple or string\n :return:\n<END>", "<BEGIN>\n## `split_iter`", "Splits an iterable based on a separator, *sep*, a max of\n *maxsplit* times (no max by default). *sep* can be:", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the windowed_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 ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the windowed_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 ext...
Returns tuples with length *size* which represent a sliding window over iterable *src*. >>> list(windowed_iter(range(7), 3)) [(0, 1, 2), (1, 2, 3), (2, 3, 4), (3, 4, 5), (4, 5, 6)] If the iterable is too short to make a window of length *size*, then no window tuples are returned. >>> list(win...
"Returns tuples with length *size* which represent a sliding\n window over iterable *src*.\n\n >>> list(windowed_iter(range(7), 3))\n [(0, 1, 2), (1, 2, 3), (2, 3, 4), (3, 4, 5), (4, 5, 6)]\n\n If the iterable is too short to make a window of length *size*,\n then no window tuples are returned.\n\n >>...
132
false
flashashen/flange
windowed_iter
8,933
LDU_FT/prezi/django-zipkin/getDependencies
LDU_FT
[ "<BEGIN>\n## `getTraceIdsBySpanName`", "Fetch trace ids by service and span name.\n Gets \"limit\" number of entries from before the \"end_ts\".", " Span name is optional.\n Timestamps are in microseconds.", " Parameters:\n - service_name\n - span_name\n - end_ts\n - limit\n - ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the getDependencies API. 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 getDependencies API. 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...
Get an aggregate representation of all services paired with every service they call in to. This includes information on call counts and mean/stdDev/etc of call durations. The two arguments specify epoch time in microseconds. The end time is optional and defaults to one day after the start time. Parame...
"Get an aggregate representation of all services paired with every service they call in to.\n This includes information on call counts and mean/stdDev/etc of call durations. The two arguments\n specify epoch time in microseconds. The end time is optional and defaults to one day after the\n start time.\n\n ...
49
false
prezi/django-zipkin
getDependencies
8,934
LDU_FT/tilde-lab/tilde/_unique_todict
LDU_FT
[ "<BEGIN>\n## `wrap_cell`", "Cell wrappers\n for customizing the GUI data table", " TODO : must coincide with hierarchy!\n TODO : simplify this!\n<END>", "<BEGIN>\n## `meminfo`", "Get the amount of memory and swap, Mebibytes\n<END>", "<BEGIN>\n## `serial_number`", "Get the serial number. Require...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _unique_todict API. 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 _unique_todict API. 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...
Checks if ORM entity exists according to criteria, if yes, returns it, if no, returns dict representation (required for further DB replication and syncing)
"Checks if ORM entity exists according to criteria,\n if yes, returns it, if no, returns dict representation\n (required for further DB replication and syncing)"
68
false
tilde-lab/tilde
_unique_todict
8,935
LDU_FT/peterwittek/ncpol2sdpa/_calculate_block_structure
LDU_FT
[ "<BEGIN>\n## `read_sdpa_out`", "Helper function to parse the output file of SDPA.", " :param filename: The name of the SDPA output file.\n :type filename: str.\n :param solutionmatrix: Optional parameter for retrieving the solution.\n :type solutionmatrix: bool.\n :param status: Optional paramete...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _calculate_block_structure API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclus...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _calculate_block_structure API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclus...
Calculates the block_struct array for the output file.
"Calculates the block_struct array for the output file."
217
false
peterwittek/ncpol2sdpa
_calculate_block_structure
8,936
LDU_FT/earlzo/hfut/curriculum2schedule
LDU_FT
[ "<BEGIN>\n## `get_point`", "根据成绩判断绩点", " :param grade_str: 一个字符串,因为可能是百分制成绩或等级制成绩\n :return: 成绩绩点\n :rtype: float\n<END>", "<BEGIN>\n## `cal_gpa`", "根据成绩数组计算课程平均绩点和 gpa, 算法不一定与学校一致, 结果仅供参考", " :param grades: :meth:`models.StudentSession.get_my_achievements` 返回的成绩数组\n :return: 包含了课程平均绩点和 gpa...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the curriculum2schedule 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 curriculum2schedule 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...
将课程表转换为上课时间表, 如果 compress=False 结果是未排序的, 否则为压缩并排序后的上课时间表 :param curriculum: 课表 :param first_day: 第一周周一, 如 datetime.datetime(2016, 8, 29) :param compress: 压缩连续的课时为一个 :param time_table: 每天上课的时间表, 形如 ``((start timedelta, end timedelta), ...)`` 的 11 × 2 的矩阵 :return: [(datetime.datetime, str) ...]
"将课程表转换为上课时间表, 如果 compress=False 结果是未排序的, 否则为压缩并排序后的上课时间表\n\n :param curriculum: 课表\n :param first_day: 第一周周一, 如 datetime.datetime(2016, 8, 29)\n :param compress: 压缩连续的课时为一个\n :param time_table: 每天上课的时间表, 形如 ``((start timedelta, end timedelta), ...)`` 的 11 × 2 的矩阵\n :return: [(datetime.datetime, str) ......
83
false
earlzo/hfut
curriculum2schedule
8,937
LDU_FT/pyroscope/auvyon/waveform_image
LDU_FT
[ "<BEGIN>\n## `extract_wav`", "Get LPCM 16bit audio stream from mediafile.", " If `target` is a directory, create a .wav with the same basename as the input.\n If target is empty, write to the directory of the source file. Otherwise, use it \n directly as the target filename.\n<END>", "<BE...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the waveform_image API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the waveform_image API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
Create waveform image from audio data. Return path to created image file.
"Create waveform image from audio data.\n Return path to created image file."
11
false
pyroscope/auvyon
waveform_image
8,938
LDU_FT/samdobson/image_slicer/get_columns_rows
LDU_FT
[ "<BEGIN>\n## `calc_columns_rows`", "Calculate the number of columns and rows required to divide an image\n into ``n`` parts.", " Return a tuple of integers in the format (num_columns, num_rows)\n<END>", "<BEGIN>\n## `validate_image`", "Basic sanity checks prior to performing a split.\n<END>", "<BEGI...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_columns_rows API. 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_columns_rows API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Derive number of columns and rows from filenames.
"Derive number of columns and rows from filenames."
21
false
samdobson/image_slicer
get_columns_rows
8,939
LDU_FT/AbletonAG/abl.vpath/shutdown
LDU_FT
[ "<BEGIN>\n## `content_item`", "if path1 is subpart of path2, get the next path item.\n example:\n path1 = '/foo'\n path2 = '/foo/bar/foo'\n -> 'bar'\n<END>", "<BEGIN>\n## `compare_path_strings`", "find out, if path1 is a file, or a directory (or unknown).\n<END>", "<BEGIN>\n## `compare_parts`", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the shutdown API. 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 shutdown API. 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...
shutdown: to be run by atexit handler. All open connection are closed.
"shutdown: to be run by atexit handler. All open connection are closed."
92
false
AbletonAG/abl.vpath
shutdown
8,940
LDU_FT/carpyncho/feets/cdf_single
LDU_FT
[ "<BEGIN>\n## `basic_animation`", "Plot a basic sine wave with oscillating amplitude\n<END>", "<BEGIN>\n## `lorenz_animation`", "Plot a 3D visualization of the dynamics of the Lorenz system\n<END>", "<BEGIN>\n## `_included_frames`", "frame_list should be a list of filenames\n<END>", "<BEGIN>\n## `_embedd...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the cdf_single API. 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 cdf_single API. 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...
Cumulative distribution for the Lomb-Scargle periodogram Compute the expected cumulative distribution of the periodogram for the null hypothesis - i.e. data consisting of Gaussian noise. Parameters ---------- z : array-like the periodogram value N : int the number of data point...
"Cumulative distribution for the Lomb-Scargle periodogram\n\n Compute the expected cumulative distribution of the periodogram\n for the null hypothesis - i.e. data consisting of Gaussian noise.\n\n Parameters\n ----------\n z : array-like\n the periodogram value\n N : int\n the number of...
111
false
carpyncho/feets
cdf_single
8,941
LDU_FT/FNNDSC/pfmisc/node_copy
LDU_FT
[ "<BEGIN>\n## `authorizeClientRequest`", "Checks the authorization permissions of the bearer token passed, and determines whether the sender is permitted to make the request housed in the payload.\n Usage:\n request = The header object from pfioh, or the whole request from pman. This is parsed fo...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the node_copy API. 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 node_copy API. 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...
Typically called by the explore()/recurse() methods and of form: f(pathInTree, **kwargs) and returns dictionary of which one element is 'status': True|False recursion continuation flag is returned: 'continue': True|False to sign...
"Typically called by the explore()/recurse() methods and of form:\n\n f(pathInTree, **kwargs)\n\n and returns dictionary of which one element is\n\n 'status': True|False\n\n recursion continuation flag is returned:\n\n 'continue': True|False\n\n ...
165
false
FNNDSC/pfmisc
node_copy
8,942
LDU_FT/xingjiepan/cylinder_fitting/projection_matrix
LDU_FT
[ "<BEGIN>\n## `direction`", "Return the direction vector of a cylinder defined\n by the spherical coordinates theta and phi.\n<END>", "<BEGIN>\n## `projection_matrix`", "Return the projection matrix of a direction w.\n<END>", "<BEGIN>\n## `skew_matrix`", "Return the skew matrix of a direction w.\n<END>...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the projection_matrix API. 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 projection_matrix API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Return the projection matrix of a direction w.
"Return the projection matrix of a direction w."
30
false
xingjiepan/cylinder_fitting
projection_matrix
8,943
LDU_FT/c0fec0de/anytree/findall
LDU_FT
[ "<BEGIN>\n## `siblings`", "Tuple of nodes with the same parent.", " >>> from anytree import Node\n >>> udo = Node(\"Udo\")\n >>> marc = Node(\"Marc\", parent=udo)\n >>> lian = Node(\"Lian\", parent=marc)\n >>> loui = Node(\"Loui\", parent=marc)\n >>> lazy = Node(\"Lazy\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the findall API. 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 findall API. 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...
Search nodes matching `filter_` but stop at `maxlevel` or `stop`. Return tuple with matching nodes. Args: node: top node, start searching. Keyword Args: filter_: function called with every `node` as argument, `node` is returned if `True`. stop: stop iteration at `node` if `stop` f...
"Search nodes matching `filter_` but stop at `maxlevel` or `stop`.\n\n Return tuple with matching nodes.\n\n Args:\n node: top node, start searching.\n\n Keyword Args:\n filter_: function called with every `node` as argument, `node` is returned if `True`.\n stop: stop iteration at `node` i...
99
false
c0fec0de/anytree
findall
8,944
LDU_FT/BernardFW/bernard/get
LDU_FT
[ "<BEGIN>\n## `_build_stack`", "Generates the stack of functions to call. It looks at the ordered list\n of all middlewares and only keeps those which have the method we're\n trying to call.\n<END>", "<BEGIN>\n## `instance`", "Creates, initializes and returns a unique MiddlewareManager instance.\...
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...
Get the function to call which will run all middlewares. :param name: Name of the function to be called :param final: Function to call at the bottom of the stack (that's the one provided by the implementer). :return:
"Get the function to call which will run all middlewares.\n\n :param name: Name of the function to be called\n :param final: Function to call at the bottom of the stack (that's the\n one provided by the implementer).\n :return:"
427
false
BernardFW/bernard
get
8,945
LDU_FT/vladcalin/gemstone/start_thread
LDU_FT
[ "<BEGIN>\n## `parse_json_structure`", "Given a raw representation of a json structure, returns the parsed corresponding data\n structure (``JsonRpcRequest`` or ``JsonRpcRequestBatch``)", " :param string_item:\n :return:\n<END>", "<BEGIN>\n## `from_dict`", "Validates a dict instance and transforms i...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the start_thread API. 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 start_thread API. 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...
Shortcut method for starting a thread. :param target: The function to be executed. :param args: A tuple or list representing the positional arguments for the thread. :param kwargs: A dictionary representing the keyword arguments. .. versionadded:: 0.5.0
"Shortcut method for starting a thread.\n\n :param target: The function to be executed.\n :param args: A tuple or list representing the positional arguments for the thread.\n :param kwargs: A dictionary representing the keyword arguments.\n\n .. versionadded:: 0.5.0"
107
false
vladcalin/gemstone
start_thread
8,946
LDU_FT/spacetelescope/pysynphot/GetWaveSet
LDU_FT
[ "<BEGIN>\n## `setUpClass`", "Always overridden by the child cases, but let's put some\n real values in here to test with\n<END>", "<BEGIN>\n## `extract_keywords`", "Helper function", " Parameters\n ----------\n icss : string\n comma-separated string", " Return...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the GetWaveSet API. 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 GetWaveSet API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
Return the wavelength set that optimally samples the Gaussian curve. It has 101 values, as defined below: .. math:: x_{\\textnormal{first,last}} = x_{0} \\; \\pm \\; 5 \\; \\sigma \\delta x = 0.1 \\; \\sigma Returns ------- waveset : array_like ...
"Return the wavelength set that optimally samples the Gaussian curve.\n It has 101 values, as defined below:\n\n .. math::\n\n x_{\\\\textnormal{first,last}} = x_{0} \\\\; \\\\pm \\\\; 5 \\\\; \\\\sigma\n\n \\\\delta x = 0.1 \\\\; \\\\sigma\n\n Returns\n -------\n ...
600
false
spacetelescope/pysynphot
GetWaveSet
8,947
LDU_FT/StorjOld/heartbeat/verify
LDU_FT
[ "<BEGIN>\n## `generate_challenges`", "Generate the specified number of hash challenges.", " :param num: The number of hash challenges we want to generate.\n :param root_seed: Some value that we use to generate our seeds from.\n<END>", "<BEGIN>\n## `meet_challenge`", "Get the SHA256 hash of a s...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the verify API. 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 verify API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
returns true if the proof matches the challenge. verifies that the server possesses the encoded file. :param proof: the proof that was returned from the server :param challenge: the challenge provided to the server :param state: the state of the file, which includes the merkle root of ...
"returns true if the proof matches the challenge. verifies that the\n server possesses the encoded file.\n\n :param proof: the proof that was returned from the server\n :param challenge: the challenge provided to the server\n :param state: the state of the file, which includes the merkle ro...
100
false
StorjOld/heartbeat
verify
8,948
LDU_FT/eventbrite/conformity/errors
LDU_FT
[ "<BEGIN>\n## `validate`", "Checks the value against the schema, and raises ValidationError if validation\n fails.\n<END>", "<BEGIN>\n## `validate_call`", "Decorator which runs validation on a callable's arguments and its return\n value. Pass a schema for the kwargs and for the return value. Positional\n...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the errors API. 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 errors API. 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 a list of errors with the value. An empty/None return means that it's valid.
"Returns a list of errors with the value. An empty/None return means\n that it's valid."
12
false
eventbrite/conformity
errors
8,949
LDU_FT/Aluriak/bubble-tools/tree_to_file
LDU_FT
[ "<BEGIN>\n## `bubble_to_dot`", "Write in dotfile a graph equivalent to those depicted in bubble file\n<END>", "<BEGIN>\n## `bubble_to_gexf`", "Write in bblfile a graph equivalent to those depicted in bubble file\n<END>", "<BEGIN>\n## `bubble_to_js`", "Write in jsdir a graph equivalent to those depicted in...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the tree_to_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 extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the tree_to_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 extr...
Compute the bubble representation of given power graph, and push it into given file.
"Compute the bubble representation of given power graph,\n and push it into given file."
88
false
Aluriak/bubble-tools
tree_to_file
8,950
LDU_FT/IAMconsortium/pyam/available_metadata
LDU_FT
[ "<BEGIN>\n## `read_ix`", "Read timeseries data from an ixmp object", " Parameters\n ----------\n ix: ixmp.TimeSeries or ixmp.Scenario\n this option requires the ixmp package as a dependency\n kwargs: arguments passed to ixmp.TimeSeries.timeseries()\n<END>", "<BEGIN>\n## `requires_package`",...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the available_metadata API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the available_metadata API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
List all scenario metadata indicators available in the connected data source
"List all scenario metadata indicators available in the connected\n data source"
256
false
IAMconsortium/pyam
available_metadata
8,951
LDU_FT/serge-sans-paille/pythran/handle_keywords
LDU_FT
[ "<BEGIN>\n## `check_specs`", "Does nothing but raising PythranSyntaxError if specs\n are incompatible with the actual code\n<END>", "<BEGIN>\n## `check_exports`", "Does nothing but raising PythranSyntaxError if specs\n references an undefined global\n<END>", "<BEGIN>\n## `visit_Import`", "Check if i...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the handle_keywords API. 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 handle_keywords API. 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...
Gather keywords to positional argument information Assumes the named parameter exist, raises a KeyError otherwise
"Gather keywords to positional argument information\n\n Assumes the named parameter exist, raises a KeyError otherwise"
547
false
serge-sans-paille/pythran
handle_keywords
8,952
LDU_FT/liminspace/dju-common/strip
LDU_FT
[ "<BEGIN>\n## `is_in`", "{% if tag|is_in:'div|p|span' %}is block tag{% endif %}\n {% if tag|is_in:tags_list %}is block tag{% endif %}\n<END>", "<BEGIN>\n## `captureas`", "example: {% captureas myvar 1 %}content...{% endcaptureas %} - {{ myvar }}\n result: content... - content...", " example: {% capt...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the strip API. 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 strip API. 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...
example: {% strip '<br>' %} content... content... {% endstrip %} result: content...<br>content... arg special symbols: {\n} = \n
"example:\n {% strip '<br>' %}\n content...\n content...\n {% endstrip %}\n result:\n content...<br>content...\n arg special symbols: {\\n} = \\n"
60
false
liminspace/dju-common
strip
8,953
LDU_FT/lowandrew/OLCTools/alignprotein
LDU_FT
[ "<BEGIN>\n## `classes`", "Uses .tfa files included in the ResFinder database to determine the resistance class of gene matches\n :param targetpath: Path to database files\n :return: Dictionary of resistance class: gene set\n<END>", "<BEGIN>\n## `gene_name`", "Split the FASTA header string into i...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the alignprotein API. 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 alignprotein API. 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...
Create alignments of the sample nucleotide and amino acid sequences to the reference sequences
"Create alignments of the sample nucleotide and amino acid sequences to the reference sequences"
432
false
lowandrew/OLCTools
alignprotein
8,954
LDU_FT/ergoithz/browsepy/register_plugin
LDU_FT
[ "<BEGIN>\n## `defaultsnamedtuple`", "Generate namedtuple with default values.", " :param name: name\n :param fields: iterable with field names\n :param defaults: iterable or mapping with field defaults\n :returns: defaultdict with given fields and given defaults\n :rtype: collections.defaultdict\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the register_plugin API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the register_plugin API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
Register blueprints and actions using given plugin manager. :param manager: plugin manager :type manager: browsepy.manager.PluginManager
"Register blueprints and actions using given plugin manager.\n\n :param manager: plugin manager\n :type manager: browsepy.manager.PluginManager"
207
false
ergoithz/browsepy
register_plugin
8,955
LDU_FT/python-rope/rope/find_insertion_line
LDU_FT
[ "<BEGIN>\n## `find_occurrences`", "Return a list of `Location`\\s", " If `unsure` is `True`, possible matches are returned, too. You\n can use `Location.unsure` to see which are unsure occurrences.\n `resources` can be a list of `rope.base.resource.File`\\s that\n should be searched for occurrences...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_insertion_line API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_insertion_line API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
Guess at what line the new import should be inserted
"Guess at what line the new import should be inserted"
312
false
python-rope/rope
find_insertion_line
8,956
LDU_FT/AgeOfLearning/coeus-unity-python-framework/assert_scene_loaded
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_scene_loaded 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 assert_scene_loaded 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...
Asserts that the scene is loaded. :param cli: :param scene_name: :return:
"Asserts that the scene is loaded.\n :param cli:\n :param scene_name:\n :return:"
38
false
AgeOfLearning/coeus-unity-python-framework
assert_scene_loaded
8,957
LDU_FT/Karaage-Cluster/karaage/_leaders_changed
LDU_FT
[ "<BEGIN>\n## `_gen_project_trend_graph`", "Generates a bar graph for a project", " Keyword arguments:\n project -- Project\n start -- start date\n end -- end date\n<END>", "<BEGIN>\n## `synchronise`", "If task already queued, running, or finished, don't restart.\n<END>", "<BEGIN>\n## `send_bou...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _leaders_changed API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _leaders_changed API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Hook that executes whenever the group members are changed.
"Hook that executes whenever the group members are changed."
214
false
Karaage-Cluster/karaage
_leaders_changed
8,958
LDU_FT/sorgerlab/indra/filter_concept_names
LDU_FT
[ "<BEGIN>\n## `group_and_sort_statements`", "Group statements by type and arguments, and sort by prevalence.", " Parameters\n ----------\n stmt_list : list[Statement]\n A list of INDRA statements.\n ev_totals : dict{int: int}\n A dictionary, keyed by statement hash (shallow) with counts...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the filter_concept_names API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the filter_concept_names API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Return Statements that refer to concepts/agents given as a list of names. Parameters ---------- stmts_in : list[indra.statements.Statement] A list of Statements to filter. name_list : list[str] A list of concept/agent names to filter for. policy : str The policy to apply whe...
"Return Statements that refer to concepts/agents given as a list of names.\n\n Parameters\n ----------\n stmts_in : list[indra.statements.Statement]\n A list of Statements to filter.\n name_list : list[str]\n A list of concept/agent names to filter for.\n policy : str\n The policy to...
2,493
true
sorgerlab/indra
filter_concept_names
8,959
LDU_FT/gpoulter/python-ngram/search
LDU_FT
[ "<BEGIN>\n## `copy`", "Return a new NGram object with the same settings, and\n referencing the same items. Copy is shallow in that\n each item is not recursively copied. Optionally specify\n alternate items to populate the copy.", " >>> from ngram import NGram\n >>> from co...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the search API. 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 search API. 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 ...
Search the index for items whose key exceeds threshold similarity to the query string. :param query: returned items will have at least `threshold` \ similarity to the query string. :return: list of pairs of (item, similarity) by decreasing similarity. >>> from ngram import NGr...
"Search the index for items whose key exceeds threshold\n similarity to the query string.\n\n :param query: returned items will have at least `threshold` \\\n similarity to the query string.\n\n :return: list of pairs of (item, similarity) by decreasing similarity.\n\n >>> from ngram ...
59
false
gpoulter/python-ngram
search
8,960
LDU_FT/RI-imaging/qpsphere/mie_avg
LDU_FT
[ "<BEGIN>\n## `interpolate_grid`", "Return the 2D field averaged radially w.r.t. the center\n<END>", "<BEGIN>\n## `rytov`", "Field behind a dielectric sphere in the Rytov approximation", " Parameters\n ----------\n radius: float\n Radius of the sphere [m]\n sphere_index: float\n Ref...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the mie_avg API. 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 mie_avg API. 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...
Mie-simulated non-polarized field behind a dielectric sphere Parameters ---------- radius: float Radius of the sphere [m] sphere_index: float Refractive index of the sphere medium_index: float Refractive index of the surrounding medium wavelength: float Vacuum wa...
"Mie-simulated non-polarized field behind a dielectric sphere\n\n Parameters\n ----------\n radius: float\n Radius of the sphere [m]\n sphere_index: float\n Refractive index of the sphere\n medium_index: float\n Refractive index of the surrounding medium\n wavelength: float\n ...
179
false
RI-imaging/qpsphere
mie_avg
8,961
LDU_FT/ranaroussi/ezibpy/requestMarketData
LDU_FT
[ "<BEGIN>\n## `registerContract`", "used for when callback receives a contract\n that isn't found in local database\n<END>", "<BEGIN>\n## `handleConnectionState`", ":Return: True if IBPy message `msg` indicates the connection is unavailable for any reason, else False.\n<END>", "<BEGIN>\n## `handleCont...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the requestMarketData API. 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 requestMarketData API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Register to streaming market data updates https://www.interactivebrokers.com/en/software/api/apiguide/java/reqmktdata.htm
"Register to streaming market data updates\n https://www.interactivebrokers.com/en/software/api/apiguide/java/reqmktdata.htm"
58
false
ranaroussi/ezibpy
requestMarketData
8,962
LDU_FT/camptocamp/Studio/index
LDU_FT
[ "<BEGIN>\n## `discover_datasources`", "Discover the datasources contained in the datastore\n corresponding to the OGR string ogr_str, return an\n array of {name,type, hash}\n<END>", "<BEGIN>\n## `discover_datasource_columns`", "Loop through the datastore's datasources to find\n the datasource identif...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the index API. 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 index API. 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...
GET /datastores: All items in the collection.
"GET /datastores: All items in the collection."
98
false
camptocamp/Studio
index
8,963
LDU_FT/blockcypher/blockcypher-python/safe_trim
LDU_FT
[ "<BEGIN>\n## `script_to_address`", "Like script_to_address but supports altcoins\n Copied 2015-10-02 from https://github.com/mflaxman/pybitcointools/blob/faf56c53148989ea390238c3c4541a6ae1d601f5/bitcoin/transaction.py#L224-L236\n<END>", "<BEGIN>\n## `get_address_details`", "Takes an address and coin_symbol...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the safe_trim API. 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 safe_trim API. 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...
Safe trimming means the following: 1.0010000 -> 1.001 1.0 -> 1.0 (no change) 1.0000001 -> 1.0000001 (no change)
"Safe trimming means the following:\n 1.0010000 -> 1.001\n 1.0 -> 1.0 (no change)\n 1.0000001 -> 1.0000001 (no change)"
163
false
blockcypher/blockcypher-python
safe_trim
8,964
LDU_FT/ramses-tech/ramses/generate_model_name
LDU_FT
[ "<BEGIN>\n## `get_existing_model`", "Try to find existing model class named `model_name`.", " :param model_name: String name of the model class.\n<END>", "<BEGIN>\n## `prepare_relationship`", "Create referenced model if it doesn't exist.", " When preparing a relationship, we check to see if the mode...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the generate_model_name API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the generate_model_name API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
Generate model name. :param raml_resource: Instance of ramlfications.raml.ResourceNode.
"Generate model name.\n\n :param raml_resource: Instance of ramlfications.raml.ResourceNode."
180
false
ramses-tech/ramses
generate_model_name
8,965
LDU_FT/fracpete/python-weka-wrapper3/check_input
LDU_FT
[ "<BEGIN>\n## `main`", "Runs a clusterer from the command-line. Calls JVM start/stop automatically.\n Use -h to see all options.\n<END>", "<BEGIN>\n## `update_clusterer`", "Updates the clusterer with the instance.", " :param inst: the Instance to update the clusterer with\n :type inst: Insta...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the check_input API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the check_input API. 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...
Performs checks on the input token. Raises an exception if unsupported. :param token: the token to check :type token: Token
"Performs checks on the input token. Raises an exception if unsupported.\n\n :param token: the token to check\n :type token: Token"
856
false
fracpete/python-weka-wrapper3
check_input
8,966
LDU_FT/elastic/elasticsearch-dsl-py/highlight_options
LDU_FT
[ "<BEGIN>\n## `scan_aggs`", "Helper function used to iterate over all possible bucket combinations of\n ``source_aggs``, returning results of ``inner_aggs`` for each. Uses the\n ``composite`` aggregation under the hood to perform this.\n<END>", "<BEGIN>\n## `clean`", "Automatically construct the suggesti...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the highlight_options API. 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 highlight_options API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Update the global highlighting options used for this request. For example:: s = Search() s = s.highlight_options(order='score')
"Update the global highlighting options used for this request. For\n example::\n\n s = Search()\n s = s.highlight_options(order='score')"
257
false
elastic/elasticsearch-dsl-py
highlight_options
8,967
LDU_FT/tammoippen/geohash-hilbert/decode_exactly
LDU_FT
[ "<BEGIN>\n## `encode_int`", "Encode int into a string preserving order", " It is using 2, 4 or 6 bits per coding character (default 6).", " Parameters:\n code: int Positive integer.\n bits_per_char: int The number of bits per coding character.", " Returns:\n str: the...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the decode_exactly API. 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 decode_exactly API. 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...
Decode a geohash on a hilbert curve as a lng/lat position with error-margins Decodes the geohash `code` as a lng/lat position with error-margins. It assumes, that the length of `code` corresponds to the precision! And that each character in `code` encodes `bits_per_char` bits. Do not mix geohashes with dif...
"Decode a geohash on a hilbert curve as a lng/lat position with error-margins\n\n Decodes the geohash `code` as a lng/lat position with error-margins. It assumes,\n that the length of `code` corresponds to the precision! And that each character\n in `code` encodes `bits_per_char` bits. Do not mix geohashes wit...
63
false
tammoippen/geohash-hilbert
decode_exactly
8,968
LDU_FT/Parisson/TimeSide/dict_to_hdf5
LDU_FT
[ "<BEGIN>\n## `JSON_NumpyArrayEncoder`", "Define Specialize JSON encoder for numpy array\n<END>", "<BEGIN>\n## `to_hdf5`", "Save a dictionnary-like object inside a h5 file group\n<END>", "<BEGIN>\n## `render`", "Render a matplotlib figure from the analyzer result", " Return the figure, use fig....
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the dict_to_hdf5 API. 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 dict_to_hdf5 API. 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...
Save a dictionnary-like object inside a h5 file group
"Save a dictionnary-like object inside a h5 file group"
88
false
Parisson/TimeSide
dict_to_hdf5
8,969
LDU_FT/wndhydrnt/python-oauth2/_request_token
LDU_FT
[ "<BEGIN>\n## `fetch_by_code`", "Returns data belonging to an authorization code from redis or\n ``None`` if no data was found.", " See :class:`oauth2.store.AuthCodeStore`.\n<END>", "<BEGIN>\n## `save_code`", "Stores the data belonging to an authorization code token in redis.", " See :...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _request_token API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _request_token API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
Retrieves a new access token from the OAuth2 server.
"Retrieves a new access token from the OAuth2 server."
165
false
wndhydrnt/python-oauth2
_request_token
8,970
LDU_FT/GoogleCloudPlatform/google-cloud-datastore/get_value
LDU_FT
[ "<BEGIN>\n## `get_default_connection`", "Returns the default datastore connection.", " Defaults endpoint to helper.get_project_endpoint_from_env() and\n credentials to helper.get_credentials_from_env().", " Use set_options to override defaults.\n<END>", "<BEGIN>\n## `get_all`", "Query for all Todo item...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_value API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_value API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
Gets the python object equivalent for the given value proto. Args: value_proto: datastore.Value proto message. Returns: the corresponding python object value. timestamps are converted to datetime, and datastore.Value is returned for blob_key_value.
"Gets the python object equivalent for the given value proto.\n\n Args:\n value_proto: datastore.Value proto message.\n\n Returns:\n the corresponding python object value. timestamps are converted to\n datetime, and datastore.Value is returned for blob_key_value."
94
false
GoogleCloudPlatform/google-cloud-datastore
get_value
8,971
LDU_FT/b3j0f/conf/paths
LDU_FT
[ "<BEGIN>\n## `pathresource`", "Returns specific resource.", " :param str rscpath: resource path.\n :param Logger logger: logger to use.\n :param bool error: raise internal error if True (False by default).\n :param bool force: create the resource even if rscpath does not exist.\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the paths API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the paths API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
Change of paths in adding it in watching list.
"Change of paths in adding it in watching list."
151
false
b3j0f/conf
paths
8,972