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/jimzhan/pyx/slugify
LDU_FT
[ "<BEGIN>\n## `get_version`", "Derives a PEP386-compliant version number from VERSION.\n<END>", "<BEGIN>\n## `attr`", "Decorator that add attributes into func.", " Added attributes can be access outside via function's `func_dict` property.\n<END>", "<BEGIN>\n## `timeit`", "Decorator that logs the cost...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the slugify API. 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 slugify API. 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...
Normalizes string, converts to lowercase, removes non-alpha characters, and converts spaces to hyphens. Took from django sources.
"Normalizes string, converts to lowercase, removes non-alpha characters,\n and converts spaces to hyphens.\n\n Took from django sources."
41
false
jimzhan/pyx
slugify
3,773
LDU_FT/cloudnull/cloudlib/start
LDU_FT
[ "<BEGIN>\n## `getLogger`", "Return a logger from a given name.", " If the name does not have a log handler, this will create one for it based\n on the module name which will log everything to a log file in a location\n the executing user will have access to.", " :param name: ``str``\n :return: ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the start API. 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 start API. 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...
Indicate that we are performing work in a thread. :returns: multiprocessing job object
"Indicate that we are performing work in a thread.\n\n :returns: multiprocessing job object"
136
false
cloudnull/cloudlib
start
3,774
LDU_FT/cobrateam/splinter/double_click
LDU_FT
[ "<BEGIN>\n## `Browser`", "Returns a driver instance for the given name.", " When working with ``firefox``, it's possible to provide a profile name\n and a list of extensions.", " If you don't provide any driver_name, then ``firefox`` will be used.", " If there is no driver registered with the pr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the double_click API. 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 double_click API. 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...
Performs a double click in the element. Currently works only on Chrome driver.
"Performs a double click in the element.\n\n Currently works only on Chrome driver."
22
false
cobrateam/splinter
double_click
3,775
LDU_FT/adblair/configloader/update_from_env_namespace
LDU_FT
[ "<BEGIN>\n## `update_from_object`", "Update dict from the attributes of a module, class or other object.", " By default only attributes with all-uppercase names will be retrieved.\n Use the ``criterion`` argument to modify that behaviour.", " :arg obj: Either the actual module/object, or ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update_from_env_namespace API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update_from_env_namespace API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi...
Update dict from any environment variables that have a given prefix. The common prefix is removed when converting the variable names to dictionary keys. For example, if the following environment variables were set:: MY_APP_SETTING1=foo MY_APP_SETTING2=bar Then ...
"Update dict from any environment variables that have a given prefix.\n\n The common prefix is removed when converting the variable names to\n dictionary keys. For example, if the following environment variables\n were set::\n\n MY_APP_SETTING1=foo\n MY_APP_SETTING2=bar\n\n ...
30
false
adblair/configloader
update_from_env_namespace
3,776
LDU_FT/robhowley/nhlscrapi/parse_matchup
LDU_FT
[ "<BEGIN>\n## `totals`", "Computes and returns dictionary containing home/away by player, shots and face-off totals", " :returns: dict of the form ``{ 'home/away': { 'all_keys': w_numeric_data } }``\n<END>", "<BEGIN>\n## `filter_players`", "Return the subset home and away players that satisfy the prov...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_matchup API. 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 parse_matchup API. 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...
Parse the banner matchup meta info for the game. :returns: ``self`` on success or ``None``
"Parse the banner matchup meta info for the game.\n \n :returns: ``self`` on success or ``None``"
126
false
robhowley/nhlscrapi
parse_matchup
3,777
LDU_FT/olt/scriptine/splitext
LDU_FT
[ "<BEGIN>\n## `autocmds`", "Parse and run commands.", " Will search ``namespace`` for functions that end with ``command_suffix``.", " :param namespace: the namespace/module to search for commands\n :param args: the arguments for the command parser. defaults to\n :data:`sys.argv`\n :param com...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the splitext API. 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 splitext API. 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...
p.splitext() -> Return (p.stripext(), p.ext). Split the filename extension from this path and return the two parts. Either part may be empty. The extension is everything from '.' to the end of the last path segment. This has the property that if (a, b) == p.splitext(), then a...
"p.splitext() -> Return (p.stripext(), p.ext).\n\n Split the filename extension from this path and return\n the two parts. Either part may be empty.\n\n The extension is everything from '.' to the end of the\n last path segment. This has the property that if\n (a, b) == p.splitext()...
84
false
olt/scriptine
splitext
3,778
LDU_FT/cs50/style50/run_score
LDU_FT
[ "<BEGIN>\n## `get_terminal_size`", "Return tuple containing columns and rows of controlling terminal, trying harder\n than shutil.get_terminal_size to find a tty before returning fallback.", " Theoretically, stdout, stderr, and stdin could all be different ttys that could\n cause us to get the wrong me...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the run_score API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the run_score API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
Run checks on self.files, printing raw percentage to stdout.
"Run checks on self.files, printing raw percentage to stdout."
25
false
cs50/style50
run_score
3,779
LDU_FT/Ezhil-Language-Foundation/open-tamil/_get_unique_common_encodes
LDU_FT
[ "<BEGIN>\n## `unicode2encode`", "charmap : dictionary which has both encode as key, unicode as value\n<END>", "<BEGIN>\n## `unicode2auto`", "This function will convert unicode (first argument) text into other\r\n encodes by auto find the encode (from available encodes) by using sample\r\n encode text in...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_unique_common_encodes 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 _get_unique_common_encodes API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclus...
This function will return both unique_encodes and common_encodes as tuple. unique_encodes : In dictionary with encodes name as key and its corresponding encode's unique characters among other available encodes. common_encodes : In set type which has all common encode compound characters from...
"This function will return both unique_encodes and common_encodes as tuple.\r\n\r\n unique_encodes : In dictionary with encodes name as key and its\r\n corresponding encode's unique characters among other available encodes.\r\n common_encodes : In set type which has all common encode compound\r\n char...
90
false
Ezhil-Language-Foundation/open-tamil
_get_unique_common_encodes
3,780
LDU_FT/peergradeio/flask-mongo-profiler/generic_ref_formatter
LDU_FT
[ "<BEGIN>\n## `generic_ref_formatter`", "For GenericReferenceField and LazyGenericReferenceField", " See Also\n --------\n diff_formatter\n<END>", "<BEGIN>\n## `generic_lazy_ref_formatter`", "See Also\n --------\n diff_formatter\n<END>", "<BEGIN>\n## `generic_document_type_formatter`", "Re...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the generic_ref_formatter 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 generic_ref_formatter API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
For GenericReferenceField and LazyGenericReferenceField See Also -------- diff_formatter
"For GenericReferenceField and LazyGenericReferenceField\n\n See Also\n --------\n diff_formatter"
40
false
peergradeio/flask-mongo-profiler
generic_ref_formatter
3,781
LDU_FT/StorjOld/pyp2p/get_gateway_addr
LDU_FT
[ "<BEGIN>\n## `set_keep_alive`", "This function instructs the TCP socket to send a heart beat every n\n seconds to detect dead connections. It's the TCP equivalent of the\n IRC ping-pong protocol and allows for better cleanup / detection\n of dead TCP connections.", " It activates aft...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_gateway_addr API. 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_gateway_addr API. 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 netifaces to get the gateway address, if we can't import it then fall back to a hack to obtain the current gateway automatically, since Python has no interface to sysctl(). This may or may not be the gateway we should be contacting. It does not guarantee correct results. ...
"Use netifaces to get the gateway address, if we can't import it then\r\n fall back to a hack to obtain the current gateway automatically, since\r\n Python has no interface to sysctl().\r\n\r\n This may or may not be the gateway we should be contacting.\r\n It does not guarantee correct results....
88
false
StorjOld/pyp2p
get_gateway_addr
3,782
LDU_FT/cons3rt/pycons3rt/add_attachment
LDU_FT
[ "<BEGIN>\n## `getdict`", "Returns a standard python Dict with computed values\n from the DynDict\n :param source: (DynDict) input\n :return: (dict) Containing computed values\n<END>", "<BEGIN>\n## `get_ec2_client`", "Gets an EC2 client", " :return: boto3.client object\n :raises: AWSAPIError\n...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_attachment API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_attachment API. 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...
Adds an attachment to the SlackMessage payload This public method adds a slack message to the attachment list. :param attachment: SlackAttachment object :return: None
"Adds an attachment to the SlackMessage payload\n\n This public method adds a slack message to the attachment\n list.\n\n :param attachment: SlackAttachment object\n :return: None"
386
false
cons3rt/pycons3rt
add_attachment
3,783
LDU_FT/rmorshea/spectate/before
LDU_FT
[ "<BEGIN>\n## `views`", "Return a model's views keyed on what events they respond to.", " Model views are added by calling :func:`view` on a model.\n<END>", "<BEGIN>\n## `view`", "A decorator for registering a callback to a model", " Parameters:\n model: the model object whose changes the call...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the before API. 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 before API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Register a control method that reacts before the trigger method is called. Parameters: callback: The control method. If given as a callable, then that function will be used as the callback. If given as a string, then the control will look up a method ...
"Register a control method that reacts before the trigger method is called.\n\n Parameters:\n callback:\n The control method. If given as a callable, then that function will be\n used as the callback. If given as a string, then the control will look\n up a ...
94
false
rmorshea/spectate
before
3,784
LDU_FT/tortoise/tortoise-orm/get
LDU_FT
[ "<BEGIN>\n## `transform_model`", "Anything that uses the ModelMeta needs _meta and id.\n Also keep track of relationships and make them in the related model class.\n<END>", "<BEGIN>\n## `apply_type_shim`", "Morphs model fields to representative type\n<END>", "<BEGIN>\n## `list_encoder`", "Encodes an it...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
Fetch exactly one object matching the parameters.
"Fetch exactly one object matching the parameters."
89
false
tortoise/tortoise-orm
get
3,785
LDU_FT/cytoscape/py2cytoscape/getSingleVisualPropertyValue
LDU_FT
[ "<BEGIN>\n## `to_networkx`", "Return this network in NetworkX graph object.", " :return: Network as NetworkX graph object\n<END>", "<BEGIN>\n## `to_dataframe`", "Return this network in pandas DataFrame.", " :return: Network as DataFrame. This is equivalent to SIF.\n<END>", "<BEGIN>\n## `a...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the getSingleVisualPropertyValue 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 getSingleVisualPropertyValue API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its concl...
Gets the Visual Property specificed by the `visualProperty` parameter for the node or edge specified by the `objectId` parameter in the Network View specified by the `viewId` and `networkId` parameters. Additional details on common Visual Properties can be found in the [Basic Visual Lexicon JavaDoc API...
"Gets the Visual Property specificed by the `visualProperty` parameter for the node or edge specified by the `objectId` parameter in the Network View specified by the `viewId` and `networkId` parameters.\n \n Additional details on common Visual Properties can be found in the [Basic Visual Lexicon JavaDoc ...
598
false
cytoscape/py2cytoscape
getSingleVisualPropertyValue
3,786
LDU_FT/ScottDuckworth/python-anyvcs/propget
LDU_FT
[ "<BEGIN>\n## `clone`", "Clone an existing repository to a new bare repository.\n<END>", "<BEGIN>\n## `parse_isodate`", "Parse a string that loosely fits ISO 8601 formatted date-time string\n<END>", "<BEGIN>\n## `ls`", "List directory or file", " :param rev: The revision to use.\n :param pa...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the propget API. 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 propget API. 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...
Get Subversion property value of the path
"Get Subversion property value of the path"
45
false
ScottDuckworth/python-anyvcs
propget
3,787
LDU_FT/Kozea/wdb/handle_exception
LDU_FT
[ "<BEGIN>\n## `import_from_stdlib`", "Copied from pdbpp https://bitbucket.org/antocuni/pdb\n<END>", "<BEGIN>\n## `handle_exc`", "Return a formated exception traceback for wdb.js use\n<END>", "<BEGIN>\n## `_patch_tcpserver`", "Patch shutdown_request to open blocking interaction after the end of the\n req...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the handle_exception API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the handle_exception API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
This function is called if an exception occurs, but only if we are to stop at or just below this level.
"This function is called if an exception occurs,\n but only if we are to stop at or just below this level."
45
false
Kozea/wdb
handle_exception
3,788
LDU_FT/pyqt/python-qt5/load_plugin
LDU_FT
[ "<BEGIN>\n## `set_base_dir`", "Set the base directory to be used for all relative filenames.\n<END>", "<BEGIN>\n## `_parse_alignment`", "Convert a C++ alignment to the corresponding flags.\n<END>", "<BEGIN>\n## `_layout_position`", "Return either (), (0, alignment), (row, column, rowspan, colspan) or\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load_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 extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load_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 extra...
Load the plugin from the given file. Return True if the plugin was loaded, or False if it wanted to be ignored. Raise an exception if there was an error.
"Load the plugin from the given file. Return True if the plugin was\n loaded, or False if it wanted to be ignored. Raise an exception if\n there was an error."
45
false
pyqt/python-qt5
load_plugin
3,789
LDU_FT/davisd50/sparc.cache/initialize
LDU_FT
[ "<BEGIN>\n## `schema_map`", "Return a valid ICachedItemMapper.map for schema\n<END>", "<BEGIN>\n## `items`", "Returns a generator of available ICachableItem in the ICachableSource\n<END>", "<BEGIN>\n## `getById`", "Returns ICachableItem that matches id", " Args:\n id: String that ident...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the initialize API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the initialize API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
Instantiates the cache area to be ready for updates
"Instantiates the cache area to be ready for updates"
37
false
davisd50/sparc.cache
initialize
3,790
LDU_FT/nint8835/jigsaw/load_manifests
LDU_FT
[ "<BEGIN>\n## `load_manifests`", "Loads all plugin manifests on the plugin path\n<END>", "<BEGIN>\n## `load_manifest`", "Loads a plugin manifest from a given path", " :param path: The folder to load the plugin manifest from\n<END>", "<BEGIN>\n## `load_plugin`", "Loads a plugin from the given manif...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load_manifests API. 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 load_manifests API. 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...
Loads all plugin manifests on the plugin path
"Loads all plugin manifests on the plugin path"
25
false
nint8835/jigsaw
load_manifests
3,791
LDU_FT/azavea/python-omgeo/add_source
LDU_FT
[ "<BEGIN>\n## `_geocode`", ":arg PlaceQuery pq: PlaceQuery object to use for geocoding\n :returns: list of location Candidates\n<END>", "<BEGIN>\n## `_street_addr_from_response`", "Construct a street address (no city, region, etc.) from a geocoder response.", " :param attributes: A dict of addr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_source API. 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 add_source API. 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...
Add a geocoding service to this instance.
"Add a geocoding service to this instance."
78
false
azavea/python-omgeo
add_source
3,792
LDU_FT/dstufft/potpie/precondition
LDU_FT
[ "<BEGIN>\n## `_transpose`", "Convert unicode char to something similar to it.\n<END>", "<BEGIN>\n## `_MapVowels`", "Return a copy of ``string`` where characters that exist as keys in\n cls._VOWELS have been replaced with the corresponding value. If\n also_p is True, this function will also chan...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the precondition API. 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 precondition API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
Check if the number of plurals in the two languages is the same.
"Check if the number of plurals in the two languages is the same."
13
false
dstufft/potpie
precondition
3,793
LDU_FT/rocky/python-xdis/load_code
LDU_FT
[ "<BEGIN>\n## `disco`", "diassembles and deparses a given code block 'co'\n<END>", "<BEGIN>\n## `disco_loop`", "Disassembles a queue of code objects. If we discover\n another code object which will be found in co_consts, we add\n the new code to the list. Note that the order of code discovery\n is in ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load_code API. 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 load_code API. 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...
marshal.load() written in Python. When the Python bytecode magic loaded is the same magic for the running Python interpreter, we can simply use the Python-supplied marshal.load(). However we need to use this when versions are different since the internal code structures are different. Sigh.
"marshal.load() written in Python. When the Python bytecode magic loaded is the\n same magic for the running Python interpreter, we can simply use the\n Python-supplied marshal.load().\n\n However we need to use this when versions are different since the internal\n code structures are different. Sigh."
133
false
rocky/python-xdis
load_code
3,794
LDU_FT/mozilla/libnfldap/getUserByNumber
LDU_FT
[ "<BEGIN>\n## `insertSaneDefaults`", "Add sane defaults rules to the raw and filter tables\n<END>", "<BEGIN>\n## `appendDefaultDrop`", "Add a DROP policy at the end of the rules\n<END>", "<BEGIN>\n## `template`", "Create a rules file in iptables-restore format\n<END>", "<BEGIN>\n## `template`", "Create...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the getUserByNumber API. 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 getUserByNumber API. 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...
search for a user in LDAP and return its DN and uid
"search for a user in LDAP and return its DN and uid"
12
false
mozilla/libnfldap
getUserByNumber
3,795
LDU_FT/ib-lundgren/flask-oauthprovider/access_token
LDU_FT
[ "<BEGIN>\n## `authorized`", "Create a verifier for an user authorized client\n<END>", "<BEGIN>\n## `request_token`", "Create an OAuth request token for a valid client request.", " Defaults to /request_token. Invoked by client applications.\n<END>", "<BEGIN>\n## `access_token`", "Create an OAuth a...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the access_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 extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the access_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 extr...
Create an OAuth access token for an authorized client. Defaults to /access_token. Invoked by client applications.
"Create an OAuth access token for an authorized client.\n\n Defaults to /access_token. Invoked by client applications."
20
false
ib-lundgren/flask-oauthprovider
access_token
3,796
LDU_FT/osrg/ryu/flow_removed_handler
LDU_FT
[ "<BEGIN>\n## `update`", "Updates global configuration settings with given values.", " First checks if given configuration values differ from current values.\n If any of the configuration values changed, generates a change event.\n Currently we generate change event for any configuration cha...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the flow_removed_handler API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the flow_removed_handler API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
FlowRemoved event handler. when the removed flow entry was for LACP, set the status of the slave i/f to disabled, and send a event.
"FlowRemoved event handler. when the removed flow entry was\n for LACP, set the status of the slave i/f to disabled, and\n send a event."
1,172
true
osrg/ryu
flow_removed_handler
3,797
LDU_FT/moonso/loqusdb/get_individual_positions
LDU_FT
[ "<BEGIN>\n## `update_database`", "Update a case in the database", " Args:\n adapter: Connection to database\n variant_file(str): Path to variant file\n sv_file(str): Path to sv variant file\n family_file(str): Path to family file\n family_type(str): Format of fami...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_individual_positions API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_individual_positions API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio...
Return a dictionary with individual positions Args: individuals(list): A list with vcf individuals in correct order Returns: ind_pos(dict): Map from ind_id -> index position
"Return a dictionary with individual positions\n\n Args:\n individuals(list): A list with vcf individuals in correct order\n\n Returns:\n ind_pos(dict): Map from ind_id -> index position"
216
false
moonso/loqusdb
get_individual_positions
3,798
LDU_FT/NoviceLive/intellicoder/query_info
LDU_FT
[ "<BEGIN>\n## `format`", "Format the record using the corresponding formatter.\n<END>", "<BEGIN>\n## `make_c_header`", "Build a C header from the front and body.\n<END>", "<BEGIN>\n## `reloc_var`", "Build C source code to relocate a variable.\n<END>", "<BEGIN>\n## `make_c_args`", "Build a C argument li...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the query_info API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the query_info API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
Query the information of the name in the database.
"Query the information of the name in the database."
117
false
NoviceLive/intellicoder
query_info
3,799
LDU_FT/aio-libs/aiohttp-cors/add
LDU_FT
[ "<BEGIN>\n## `_parse_config_options`", "Parse CORS configuration (default or per-route)", " :param config:\n Mapping from Origin to Resource configuration (allowed headers etc)\n defined either as mapping or `ResourceOptions` instance.", " Raises `ValueError` if configuration is not correc...
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...
Enable CORS for specific route or resource. If route is passed CORS is enabled for route's resource. :param routing_entity: Route or Resource for which CORS should be enabled. :param config: CORS options for the route. :return: `routing_entity`.
"Enable CORS for specific route or resource.\n\n If route is passed CORS is enabled for route's resource.\n\n :param routing_entity:\n Route or Resource for which CORS should be enabled.\n :param config:\n CORS options for the route.\n :return: `routing_entity`."
38
false
aio-libs/aiohttp-cors
add
3,800
LDU_FT/etal/biofrills/aa_frequencies
LDU_FT
[ "<BEGIN>\n## `read_logodata`", "Get weblogo data for a sequence alignment.", " Returns a list of tuples: (posn, letter_counts, entropy, weight)\n<END>", "<BEGIN>\n## `aln2logodata`", "Get weblogo data for an alignment object.", " Returns a list of tuples: (posn, letter_counts, entropy, weight)\n<END...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the aa_frequencies API. 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 aa_frequencies API. 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...
Calculate the amino acid frequencies in a sequence set.
"Calculate the amino acid frequencies in a sequence set."
81
false
etal/biofrills
aa_frequencies
3,801
LDU_FT/dragnet-org/dragnet/bytes_block_cast
LDU_FT
[ "<BEGIN>\n## `fit`", "Fit :class`Extractor` features and model to a training dataset.", " Args:\n blocks (List[Block])\n labels (``np.ndarray``)\n weights (``np.ndarray``)", " Returns:\n :class`Extractor`\n<END>", "<BEGIN>\n## `get_html_labels_weight...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the bytes_block_cast API. 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_block_cast API. 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 any string-like items in input Block object to bytes-like values, with respect to python version Parameters ---------- block : blocks.Block any string-like objects contained in the block object will be converted to bytes include_text : bool, default=True if True, ca...
"Converts any string-like items in input Block object to bytes-like values,\n with respect to python version\n\n Parameters\n ----------\n block : blocks.Block\n any string-like objects contained in the block object will be converted\n to bytes\n include_text : bool, default=True\n i...
134
false
dragnet-org/dragnet
bytes_block_cast
3,802
LDU_FT/fronzbot/blinkpy/http_req
LDU_FT
[ "<BEGIN>\n## `refresh`", "Get all blink cameras and pulls their most recent status.\n<END>", "<BEGIN>\n## `attributes`", "Return dictionary of all camera attributes.\n<END>", "<BEGIN>\n## `snap_picture`", "Take a picture with camera to create a new thumbnail.\n<END>", "<BEGIN>\n## `image_to_file`", "W...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the http_req API. 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 http_req API. 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...
Perform server requests and check if reauthorization neccessary. :param blink: Blink instance :param url: URL to perform request :param data: Data to send (default: None) :param headers: Headers to send (default: None) :param reqtype: Can be 'get' or 'post' (default: 'get') :param stream: Strea...
"Perform server requests and check if reauthorization neccessary.\n\n :param blink: Blink instance\n :param url: URL to perform request\n :param data: Data to send (default: None)\n :param headers: Headers to send (default: None)\n :param reqtype: Can be 'get' or 'post' (default: 'get')\n :param strea...
71
false
fronzbot/blinkpy
http_req
3,803
LDU_FT/fastai/fastai/index_row
LDU_FT
[ "<BEGIN>\n## `xception`", "Preview version of Xception network. Not tested yet - use at own risk. No pretrained model yet.\n<END>", "<BEGIN>\n## `get_model`", "Method returns a RNN_Learner object, that wraps an instance of the RNN_Encoder module.", " Args:\n opt_fn (Optimizer): the torch o...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the index_row API. 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 index_row API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
Return the slice of `a` corresponding to `idxs`.
"Return the slice of `a` corresponding to `idxs`."
1,382
true
fastai/fastai
index_row
3,804
LDU_FT/emory-libraries/eulcommon/pagination_links
LDU_FT
[ "<BEGIN>\n## `search_terms`", "Takes a search string and parses it into a list of keywords and\n phrases.\n<END>", "<BEGIN>\n## `pages_to_show`", "Generate a dictionary of pages to show around the current page. Show\n 3 numbers on either side of the specified page, or more if close to end or\n beginn...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the pagination_links API. 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 pagination_links API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Django template tag to display pagination links for a paginated list of items. Expects the following variables: * the current :class:`~django.core.paginator.Page` of a :class:`~django.core.paginator.Paginator` object * a dictionary of the pages to be displayed, in the format generated b...
"Django template tag to display pagination links for a paginated\n list of items.\n\n Expects the following variables:\n * the current :class:`~django.core.paginator.Page` of a\n :class:`~django.core.paginator.Paginator` object\n * a dictionary of the pages to be displayed, in the format\n gen...
52
false
emory-libraries/eulcommon
pagination_links
3,805
LDU_FT/warrenspe/hconf/getArgumentParser
LDU_FT
[ "<BEGIN>\n## `registerParser`", "Registers a parser to parse configuration inputs.\n<END>", "<BEGIN>\n## `addConfig`", "Adds the given configuration option to the ConfigManager.", " Inputs: name - The configuration name to accept.\n required - A boolean indicating whether or ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the getArgumentParser API. 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 getArgumentParser API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
May be overidden to provide custom functionality. Constructs an argparse.ArgumentParser used to parse configuration options from the command line. Inputs: configManager - Our parent ConfigManager instance which is constructing the Config object. config - The _Config object contai...
"May be overidden to provide custom functionality.\n Constructs an argparse.ArgumentParser used to parse configuration options from the command line.\n\n Inputs: configManager - Our parent ConfigManager instance which is constructing the Config object.\n config - The _Config object c...
39
false
warrenspe/hconf
getArgumentParser
3,806
LDU_FT/quaddra/provision/add_bundle
LDU_FT
[ "<BEGIN>\n## `NodeDriver_wait_until_running`", "Block until node is fully booted and has an IP address assigned.", " @keyword node: Node instance.\n @type node: C{Node}", " @keyword wait_period: How many seconds to between each loop\n iteration (default is 3)\n...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_bundle API. 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 add_bundle API. 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...
High level, simplified interface for creating a bundle which takes the bundle name, a list of script file names in a common scripts directory, and a list of absolute target file paths, of which the basename is also located in a common files directory. It converts those lists into maps and then calls new...
"High level, simplified interface for creating a bundle which\n takes the bundle name, a list of script file names in a common\n scripts directory, and a list of absolute target file paths, of\n which the basename is also located in a common files directory.\n It converts those lists into maps and then call...
59
false
quaddra/provision
add_bundle
3,807
LDU_FT/glue-viz/glue-vispy-viewers/set_data
LDU_FT
[ "<BEGIN>\n## `iso_mesh_line`", "Generate an isocurve from vertex data in a surface mesh.", " Parameters\n ----------\n vertices : ndarray, shape (Nv, 3)\n Vertex coordinates.\n tris : ndarray, shape (Nf, 3)\n Indices of triangular element into the vertices array.\n vertex_data : nda...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_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 extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_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 extracte...
Set data (deferred operation) Parameters ---------- data : ndarray Data to be uploaded copy: bool Since the operation is deferred, data may change before data is actually uploaded to GPU memory. Asking explicitly for a copy will prevent th...
"Set data (deferred operation)\n\n Parameters\n ----------\n data : ndarray\n Data to be uploaded\n copy: bool\n Since the operation is deferred, data may change before\n data is actually uploaded to GPU memory.\n Asking explicitly for a copy will ...
1,752
true
glue-viz/glue-vispy-viewers
set_data
3,808
LDU_FT/opencobra/memote/find_reactions_with_partially_identical_annotations
LDU_FT
[ "<BEGIN>\n## `validate`", "Use a defined schema to validate the medium table format.\n<END>", "<BEGIN>\n## `apply`", "Set the defined medium on the given model.\n<END>", "<BEGIN>\n## `find_transported_elements`", "Return a dictionary showing the amount of transported elements of a rxn.", " Collects t...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_reactions_with_partially_identical_annotations API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <E...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_reactions_with_partially_identical_annotations API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <E...
Return duplicate reactions based on identical annotation. Identify duplicate reactions globally by checking if any two metabolic reactions have the same entries in their annotation attributes. This can be useful to identify one 'type' of reactions that occurs in several compartments, to curate merged m...
"Return duplicate reactions based on identical annotation.\n\n Identify duplicate reactions globally by checking if any two metabolic\n reactions have the same entries in their annotation attributes. This can be\n useful to identify one 'type' of reactions that occurs in several\n compartments, to curate me...
508
false
opencobra/memote
find_reactions_with_partially_identical_annotations
3,809
LDU_FT/cherrypy/cheroot/resolve_real_bind_addr
LDU_FT
[ "<BEGIN>\n## `respond`", "Process the current request.", " From :pep:`333`:", " The start_response callable must not actually transmit\n the response headers. Instead, it must store them for the\n server or gateway to transmit only after the first\n iteration...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the resolve_real_bind_addr 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 resolve_real_bind_addr API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
Retrieve actual bind addr from bound socket.
"Retrieve actual bind addr from bound socket."
143
false
cherrypy/cheroot
resolve_real_bind_addr
3,810
LDU_FT/mosdef-hub/foyer/_prepare_atoms
LDU_FT
[ "<BEGIN>\n## `_find_chordless_cycles`", "Find all chordless cycles (i.e. rings) in the bond graph", " Traverses the bond graph to determine all cycles (i.e. rings) each\n atom is contained within. Algorithm has been adapted from:\n https://stackoverflow.com/questions/4022662/find-all-chordless-cycles-i...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _prepare_atoms API. 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 _prepare_atoms API. 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...
Compute cycles and add white-/blacklists to atoms.
"Compute cycles and add white-/blacklists to atoms."
53
false
mosdef-hub/foyer
_prepare_atoms
3,811
LDU_FT/openstack/networking-arista/get_remove_security_group_commands
LDU_FT
[ "<BEGIN>\n## `synchronize`", "Synchronizes Router DB from Neturon DB with EOS.", " Walks through the Neturon Db and ensures that all the routers\n created in Netuton DB match with EOS. After creating appropriate\n routers, it ensures to add interfaces as well.\n Uses idempotent prope...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_remove_security_group_commands API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_remove_security_group_commands API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its...
Commands for removing ACL from interface
"Commands for removing ACL from interface"
213
false
openstack/networking-arista
get_remove_security_group_commands
3,812
LDU_FT/robmarkcole/HASS-data-detective/plot
LDU_FT
[ "<BEGIN>\n## `default_hass_config_dir`", "Put together the default configuration directory based on the OS.\n<END>", "<BEGIN>\n## `_secret_yaml`", "Load secrets and embed it into the configuration YAML.\n<END>", "<BEGIN>\n## `_include_yaml`", "Load another YAML file and embeds it using the !include tag.",...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the plot API. 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 plot API. 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...
Basic plot of a numerical sensor data. Parameters ---------- entities : a list of entities
"Basic plot of a numerical sensor data.\n\n Parameters\n ----------\n entities : a list of entities"
30
false
robmarkcole/HASS-data-detective
plot
3,813
LDU_FT/satellogic/telluric/warp
LDU_FT
[ "<BEGIN>\n## `join`", "This method takes a list of rasters and returns a raster that is constructed of all of them\n<END>", "<BEGIN>\n## `merge_all`", "Merge a list of rasters, cropping by a region of interest.\n There are cases that the roi is not precise enough for this cases one can use,\n the ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the warp API. 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 warp API. 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...
Warp a raster dataset. Parameters ------------ source_file: str, file object or pathlib.Path object Source file. destination_file: str, file object or pathlib.Path object Destination file. dst_crs: rasterio.crs.CRS, optional Target coordinate reference system. resolution...
"Warp a raster dataset.\n\n Parameters\n ------------\n source_file: str, file object or pathlib.Path object\n Source file.\n destination_file: str, file object or pathlib.Path object\n Destination file.\n dst_crs: rasterio.crs.CRS, optional\n Target coordinate reference system.\n ...
261
false
satellogic/telluric
warp
3,814
LDU_FT/lucasmaystre/choix/mm_rankings
LDU_FT
[ "<BEGIN>\n## `_init_lsr`", "Initialize the LSR Markov chain and the weights.\n<END>", "<BEGIN>\n## `_ilsr`", "Iteratively refine LSR estimates until convergence.", " Raises\n ------\n RuntimeError\n If the algorithm does not converge after ``max_iter`` iterations.\n<END>", "<BEGIN>\n## `ls...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the mm_rankings API. 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 mm_rankings API. 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...
Compute the ML estimate of model parameters using the MM algorithm. This function computes the maximum-likelihood (ML) estimate of model parameters given ranking data (see :ref:`data-rankings`), using the minorization-maximization (MM) algorithm [Hun04]_, [CD12]_. If ``alpha > 0``, the function return...
"Compute the ML estimate of model parameters using the MM algorithm.\n\n This function computes the maximum-likelihood (ML) estimate of model\n parameters given ranking data (see :ref:`data-rankings`), using the\n minorization-maximization (MM) algorithm [Hun04]_, [CD12]_.\n\n If ``alpha > 0``, the function...
211
false
lucasmaystre/choix
mm_rankings
3,815
LDU_FT/buzzfeed/caliendo/__wrap
LDU_FT
[ "<BEGIN>\n## `increment`", "Static method used to increment the depth of a context belonging to 'method'", " :param function method: A method with a context", " :rtype: caliendo.hooks.Context\n :returns: The context instance for the method.\n<END>", "<BEGIN>\n## `skip_once`", "Indicat...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the __wrap API. 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 __wrap API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
This method actually does the wrapping. When it's given a method to copy it returns that method with facilities to log the call so it can be repeated. :param str method_name: The name of the method precisely as it's called on the object to wrap. :rtype lambda function:
"This method actually does the wrapping. When it's given a method to copy it\n returns that method with facilities to log the call so it can be repeated.\n\n :param str method_name: The name of the method precisely as it's called on\n the object to wrap.\n\n :rtype lambda function:"
177
false
buzzfeed/caliendo
__wrap
3,816
LDU_FT/wmayner/pyphi/to_multidimensional
LDU_FT
[ "<BEGIN>\n## `memory_full`", "Check if the memory is too full for further caching.\n<END>", "<BEGIN>\n## `cache`", "Memory-limited cache decorator.", " ``maxmem`` is a float between 0 and 100, inclusive, specifying the maximum\n percentage of physical memory that the cache can use.", " If ``typed...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the to_multidimensional 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 to_multidimensional 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...
Reshape a state-by-node TPM to the multidimensional form. See documentation for the |Network| object for more information on TPM formats.
"Reshape a state-by-node TPM to the multidimensional form.\n\n See documentation for the |Network| object for more information on TPM\n formats."
914
false
wmayner/pyphi
to_multidimensional
3,817
LDU_FT/liip/taxi/get_start_time
LDU_FT
[ "<BEGIN>\n## `round_to_quarter`", "Return the duration between `start_time` and `end_time` :class:`datetime.time` objects, rounded to 15 minutes.\n<END>", "<BEGIN>\n## `_timesheets_callback`", "Call a method on all the timesheets, aggregate the return values in a\n list and return it.\n<END>", "<BEGI...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_start_time API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_start_time API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
Return the start time of the entry as a :class:`datetime.time` object. If the start time is `None`, the end time of the previous entry will be returned instead. If the current entry doesn't have a duration in the form of a tuple, if there's no previous entry or if the previous entry has ...
"Return the start time of the entry as a :class:`datetime.time` object.\n If the start time is `None`, the end time of the previous entry will be\n returned instead. If the current entry doesn't have a duration in the\n form of a tuple, if there's no previous entry or if the previous entry\n ...
131
false
liip/taxi
get_start_time
3,818
LDU_FT/sphinx-gallery/sphinx-gallery/save_figures
LDU_FT
[ "<BEGIN>\n## `extract_object_names_from_docs`", "Add matches from the text blocks (must be full names!)\n<END>", "<BEGIN>\n## `identify_names`", "Builds a codeobj summary by identifying and resolving used names.\n<END>", "<BEGIN>\n## `scan_used_functions`", "save variables so we can later add links to the...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the save_figures API. 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 save_figures API. 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 all open figures of the example code-block. Parameters ---------- block : tuple A tuple containing the (label, content, line_number) of the block. block_vars : dict Dict of block variables. gallery_conf : dict Contains the configuration of Sphinx-Gallery Returns ...
"Save all open figures of the example code-block.\n\n Parameters\n ----------\n block : tuple\n A tuple containing the (label, content, line_number) of the block.\n block_vars : dict\n Dict of block variables.\n gallery_conf : dict\n Contains the configuration of Sphinx-Gallery\n\n ...
169
false
sphinx-gallery/sphinx-gallery
save_figures
3,819
LDU_FT/craffel/mir_eval/evaluate
LDU_FT
[ "<BEGIN>\n## `_open`", "Either open a file handle, or use an existing file-like object.", " This will behave as the `open` function if `file_or_str` is a string.", " If `file_or_str` has the `read` attribute, it will return `file_or_str`.", " Otherwise, an `IOError` is raised.\n<END>", "<BEGIN>\n...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the evaluate API. 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 evaluate API. 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...
Compute all metrics for the given reference and estimated annotations. Examples -------- >>> (ref_intervals, ... ref_labels) = mir_eval.io.load_labeled_intervals('ref.lab') >>> (est_intervals, ... est_labels) = mir_eval.io.load_labeled_intervals('est.lab') >>> scores = mir_eval.segment.ev...
"Compute all metrics for the given reference and estimated annotations.\n\n Examples\n --------\n >>> (ref_intervals,\n ... ref_labels) = mir_eval.io.load_labeled_intervals('ref.lab')\n >>> (est_intervals,\n ... est_labels) = mir_eval.io.load_labeled_intervals('est.lab')\n >>> scores = mir_eval.s...
1,001
false
craffel/mir_eval
evaluate
3,820
LDU_FT/lambdalisue/notify/config_to_options
LDU_FT
[ "<BEGIN>\n## `create_message`", "Create message object for sending email", " Parameters\n ----------\n from_addr : string\n An email address used for 'From' attribute\n to_addr : string\n An email address used for 'To' attribute\n subject : string\n An email subject string\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the config_to_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 config_to_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...
Convert ConfigParser instance to argparse.Namespace Parameters ---------- config : object A ConfigParser instance Returns ------- object An argparse.Namespace instance
"Convert ConfigParser instance to argparse.Namespace\n\n Parameters\n ----------\n config : object\n A ConfigParser instance\n\n Returns\n -------\n object\n An argparse.Namespace instance"
40
false
lambdalisue/notify
config_to_options
3,821
LDU_FT/uw-it-aca/uw-restclients-sws/get_term_before
LDU_FT
[ "<BEGIN>\n## `get_term_by_year_and_quarter`", "Returns a uw_sws.models.Term object,\n for the passed year and quarter.\n<END>", "<BEGIN>\n## `get_current_term`", "Returns a uw_sws.models.Term object,\n for the current term.\n<END>", "<BEGIN>\n## `get_term_before`", "Returns a uw_sws.models.Term obje...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_term_before API. 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_term_before API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
Returns a uw_sws.models.Term object, for the term before the term given.
"Returns a uw_sws.models.Term object,\n for the term before the term given."
74
false
uw-it-aca/uw-restclients-sws
get_term_before
3,822
LDU_FT/kejbaly2/metrique/_load_cube_pkg
LDU_FT
[ "<BEGIN>\n## `filtered`", "Decorator function that wraps functions returning pandas\n dataframes, such that the dataframe is filtered\n according to left and right bounds set.\n<END>", "<BEGIN>\n## `to_datetime`", "This function converts epoch timestamps to datetimes.", " :param column: column ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _load_cube_pkg API. 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 _load_cube_pkg API. 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...
NOTE: all items in fromlist must be strings
"NOTE: all items in fromlist must be strings"
224
false
kejbaly2/metrique
_load_cube_pkg
3,823
LDU_FT/openstax/cnx-archive/insert_file
LDU_FT
[ "<BEGIN>\n## `redirect_legacy_content`", "Redirect from legacy /content/id/version to new /contents/uuid@version.", " Handles collection context (book) as well.\n<END>", "<BEGIN>\n## `robots`", "Return a simple \"don't index me\" robots.txt file.\n<END>", "<BEGIN>\n## `_get_sql`", "Returns the conten...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the insert_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 extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the insert_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 extra...
Upsert the ``file`` and ``media_type`` into the files table. Returns the ``fileid`` and ``sha1`` of the upserted file.
"Upsert the ``file`` and ``media_type`` into the files table.\n Returns the ``fileid`` and ``sha1`` of the upserted file."
208
false
openstax/cnx-archive
insert_file
3,824
LDU_FT/Rockhopper-Technologies/enlighten/get_manager
LDU_FT
[ "<BEGIN>\n## `_check_bool`", "Used as an error handler for Windows calls\n Gets last error if call is not successful\n<END>", "<BEGIN>\n## `get_csbi`", "Returns a CONSOLE_SCREEN_BUFFER_INFO structure for the given console or stdout\n<END>", "<BEGIN>\n## `enable_vt_mode`", "Enables virtual terminal proc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_manager API. 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_manager API. 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...
Args: stream(:py:term:`file object`): Output stream. If :py:data:`None`, defaults to :py:data:`sys.stdout` counter_class(:py:term:`class`): Progress bar class (Default: :py:class:`Counter`) kwargs(dict): Any additional :py:term:`keyword arguments<keyword argument>` will p...
"Args:\n stream(:py:term:`file object`): Output stream. If :py:data:`None`,\n defaults to :py:data:`sys.stdout`\n counter_class(:py:term:`class`): Progress bar class (Default: :py:class:`Counter`)\n kwargs(dict): Any additional :py:term:`keyword arguments<keyword argument>`\n ...
104
false
Rockhopper-Technologies/enlighten
get_manager
3,825
LDU_FT/philklei/tahoma-api/get_action_groups
LDU_FT
[ "<BEGIN>\n## `get_user`", "Get the user informations from the server.", " :return: a dict with all the informations\n :rtype: dict", " raises ValueError in case of protocol issues", " :Example:", " >>> \"creationTime\": <time>,\n >>> \"lastUpdateTime\": <time>,\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_action_groups API. 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_action_groups API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Get all Action Groups. :return: List of Action Groups
"Get all Action Groups.\n\n :return: List of Action Groups"
37
false
philklei/tahoma-api
get_action_groups
3,826
LDU_FT/ddorn/GUI/select
LDU_FT
[ "<BEGIN>\n## `select`", "Select an arbitrary item, by possition or by reference.\n<END>", "<BEGIN>\n## `on_select`", "Add an action to make when an object is selected.\n Only one action can be stored this way.\n<END>", "<BEGIN>\n## `on_unselect`", "Add an action to make when an object is unfocused....
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the select API. 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 select API. 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 ...
Select an arbitrary item, by possition or by reference.
"Select an arbitrary item, by possition or by reference."
84
false
ddorn/GUI
select
3,827
LDU_FT/rliebz/whoswho/_compare_title
LDU_FT
[ "<BEGIN>\n## `deep_compare`", "Compares each field of the name one at a time to see if they match.\n Each name field has context-specific comparison logic.", " :param Name other: other Name for comparison\n :return bool: whether the two names are compatible\n<END>", "<BEGIN>\n## `ratio_de...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _compare_title API. 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 _compare_title API. 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...
Return False if titles have different gender associations
"Return False if titles have different gender associations"
38
false
rliebz/whoswho
_compare_title
3,828
LDU_FT/bokeh/bokeh/autoload_static
LDU_FT
[ "<BEGIN>\n## `notify_owner`", "A decorator for mutating methods of property container classes\n that notifies owners of the property container about mutating changes.", " Args:\n func (callable) : the container method to wrap in a notification", " Returns:\n wrapped method", " Exam...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the autoload_static API. 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 autoload_static API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
Return JavaScript code and a script tag that can be used to embed Bokeh Plots. The data for the plot is stored directly in the returned JavaScript code. Args: model (Model or Document) : resources (Resources) : script_path (str) : Returns: (js, tag) : Jav...
"Return JavaScript code and a script tag that can be used to embed\n Bokeh Plots.\n\n The data for the plot is stored directly in the returned JavaScript code.\n\n Args:\n model (Model or Document) :\n\n resources (Resources) :\n\n script_path (str) :\n\n Returns:\n (js, tag) :\n...
2,090
true
bokeh/bokeh
autoload_static
3,829
LDU_FT/bjmorgan/vasppy/absorption_coefficient
LDU_FT
[ "<BEGIN>\n## `md5sum`", "Generate the md5 checksum for a string", " Args:\n string (Str): The string to be checksummed.", " Returns:\n (Str): The hex checksum.\n<END>", "<BEGIN>\n## `file_md5`", "Generate the md5 checksum for a file", " Args:\n filename (Str): The file to b...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the absorption_coefficient 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 absorption_coefficient API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
Calculate the optical absorption coefficient from an input set of pymatgen vasprun dielectric constant data. Args: dielectric (list): A list containing the dielectric response function in the pymatgen vasprun format. | element 0: list of energies ...
"Calculate the optical absorption coefficient from an input set of\n pymatgen vasprun dielectric constant data.\n\n Args:\n dielectric (list): A list containing the dielectric response function\n in the pymatgen vasprun format.\n\n | element 0: list of en...
174
false
bjmorgan/vasppy
absorption_coefficient
3,830
LDU_FT/datamachine/twx.botapi/export_chat_invite_link
LDU_FT
[ "<BEGIN>\n## `export_chat_invite_link`", "Use this method to generate a new invite link for a chat; any previously generated link is revoked.\n The bot must be an administrator in the chat for this to work and must have the appropriate admin rights.\n :param chat_id: Unique identifier for the target chat or...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the export_chat_invite_link 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 export_chat_invite_link API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion...
Use this method to generate a new invite link for a chat; any previously generated link is revoked. The bot must be an administrator in the chat for this to work and must have the appropriate admin rights. :param chat_id: Unique identifier for the target chat or username of the target channel (in the format @ch...
"Use this method to generate a new invite link for a chat; any previously generated link is revoked.\n The bot must be an administrator in the chat for this to work and must have the appropriate admin rights.\n :param chat_id: Unique identifier for the target chat or username of the target channel (in the format ...
194
false
datamachine/twx.botapi
export_chat_invite_link
3,831
LDU_FT/klavinslab/coral/_process_feature_type
LDU_FT
[ "<BEGIN>\n## `sequence_type`", "Validates a coral.sequence data type.", " :param sequence_in: input DNA sequence.\n :type sequence_in: any\n :returns: The material - 'dna', 'rna', or 'peptide'.\n :rtype: str\n :raises: ValueError\n<END>", "<BEGIN>\n## `pcr`", "Simulate a PCR.", " :param ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _process_feature_type API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _process_feature_type API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Translate genbank feature types into usable ones (currently identical). The feature table is derived from the official genbank spec (gbrel.txt) available at http://www.insdc.org/documents/feature-table :param feature_type: feature to convert :type feature_type: str :param bio_to_coral: from coral t...
"Translate genbank feature types into usable ones (currently identical).\n The feature table is derived from the official genbank spec (gbrel.txt)\n available at http://www.insdc.org/documents/feature-table\n\n :param feature_type: feature to convert\n :type feature_type: str\n :param bio_to_coral: from ...
364
false
klavinslab/coral
_process_feature_type
3,832
LDU_FT/MartinThoma/mpu/is_iban
LDU_FT
[ "<BEGIN>\n## `timing`", "Measure the execution time of a function call and print the result.\n<END>", "<BEGIN>\n## `deprecated`", "Mark functions as deprecated.", " It will result in a warning being emitted when the function is used.\n<END>", "<BEGIN>\n## `get_currency`", "Convert an identifier for a...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_iban API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_iban API. 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...
Check if a string is a valid IBAN number. IBAN is described in ISO 13616-1:2007 Part 1. Spaces are ignored. # CODE 0 = always zero b = BIC or National Bank code c = Account number i = holder's kennitala (national identification number) k = IBAN check digits n = Branch number t...
"Check if a string is a valid IBAN number.\n\n IBAN is described in ISO 13616-1:2007 Part 1.\n\n Spaces are ignored.\n\n # CODE\n 0 = always zero\n b = BIC or National Bank code\n c = Account number\n i = holder's kennitala (national identification number)\n k = IBAN check digits\n n = Branch...
255
false
MartinThoma/mpu
is_iban
3,833
LDU_FT/openid/JWTConnect-Python-CryptoJWT/init_key_jar
LDU_FT
[ "<BEGIN>\n## `encrypt`", "Encrypts and authenticates the data provided as well as authenticating\n the associated_data.", " :param msg: The message to be encrypted\n :param iv: MUST be present, at least 96-bit long\n :param auth_data: Associated data\n :return: The cipher text...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the init_key_jar API. 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 init_key_jar API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
A number of cases here: 1. A private path is given a. The file exists and a JWKS is found there. From that JWKS a KeyJar instance is built. b. If the private path file doesn't exit the key definitions are used to build a KeyJar instance. A JWKS with the private keys are...
"A number of cases here:\n\n 1. A private path is given\n\n a. The file exists and a JWKS is found there.\n From that JWKS a KeyJar instance is built.\n b.\n If the private path file doesn't exit the key definitions are\n used to build a KeyJar instance. A JWKS with the private...
399
false
openid/JWTConnect-Python-CryptoJWT
init_key_jar
3,834
LDU_FT/Cadene/pretrained-models.pytorch/nasnetamobile
LDU_FT
[ "<BEGIN>\n## `bninception`", "r\"\"\"BNInception model architecture from <https://arxiv.org/pdf/1502.03167.pdf>`_ paper.\n<END>", "<BEGIN>\n## `resnet18`", "Constructs a ResNet-18 model.", " Args:\n pretrained (bool): If True, returns a model pre-trained on ImageNet\n<END>", "<BEGIN>\n## `resnet...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the nasnetamobile API. 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 nasnetamobile API. 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...
r"""NASNetALarge model architecture from the `"NASNet" <https://arxiv.org/abs/1707.07012>`_ paper.
"r\"\"\"NASNetALarge model architecture from the\n `\"NASNet\" <https://arxiv.org/abs/1707.07012>`_ paper."
40
false
Cadene/pretrained-models.pytorch
nasnetamobile
3,835
LDU_FT/CulturePlex/django-zotero/zotero_tags
LDU_FT
[ "<BEGIN>\n## `zotero_inline_tags`", "Render an inline formset of tags.", " Usage:\n {% zotero_inline_tags formset[ option] %}\n option = \"all\" | \"media\" | \"formset\"\n<END>", "<BEGIN>\n## `zotero_tags`", "Returns the code to be translated by Zotero.\n Usage:\n {% zotero_tags\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the zotero_tags API. 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 zotero_tags API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
Returns the code to be translated by Zotero. Usage: {% zotero_tags object=object vocabulary=vocabulary output_method=output_method %} Example: {% zotero_tags object=document1 vocabulary="dc" output_method="meta" %}
"Returns the code to be translated by Zotero.\n Usage:\n {% zotero_tags\n object=object\n vocabulary=vocabulary\n output_method=output_method %}\n Example:\n {% zotero_tags object=document1 vocabulary=\"dc\" output_method=\"meta\" %}"
13
false
CulturePlex/django-zotero
zotero_tags
3,836
LDU_FT/gofed/gofedlib/truncateGraph
LDU_FT
[ "<BEGIN>\n## `compare`", "Compare two snapshots:\n\t\t- return a list of new packages in this snapshot\n\t\t- return a list of new builds in this snapshot", "\t\t:param snapshot: distribution snapshot\n\t\t:type snapshot: DistributionSnapshot\n<END>", "<BEGIN>\n## `branches`", "Return a list of branches fo...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the truncateGraph API. 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 truncateGraph API. 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 a set of all nodes containg the root_nodes and all nodes reacheable from them
"Create a set of all nodes containg the root_nodes and\n\t\t all nodes reacheable from them"
98
false
gofed/gofedlib
truncateGraph
3,837
LDU_FT/pytorn/torn/error
LDU_FT
[ "<BEGIN>\n## `settings`", "Definition to set settings from config file to the app instance.\n<END>", "<BEGIN>\n## `uri_creator`", "Creates url and replaces regex and gives variables\n<END>", "<BEGIN>\n## `warning`", "Display Warning.", " Method prints the warning message, message being given\n as ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the error API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the error API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
Display Error. Method prints the error message, message being given as an input. Arguments: message {string} -- The message to be displayed.
"Display Error.\n\n Method prints the error message, message being given\n as an input.\n\n Arguments:\n message {string} -- The message to be displayed."
18
false
pytorn/torn
error
3,838
LDU_FT/django-treebeard/django-treebeard/treebeard_js
LDU_FT
[ "<BEGIN>\n## `get_foreign_keys`", "Get foreign keys and models they refer to, so we can pre-process\n the data for load_bulk\n<END>", "<BEGIN>\n## `_process_foreign_keys`", "For each foreign key try to load the actual object so load_bulk\n doesn't fail trying to load an int where django expects ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the treebeard_js API. 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 treebeard_js API. 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...
Template tag to print out the proper <script/> tag to include a custom .js
"Template tag to print out the proper <script/> tag to include a custom .js"
194
false
django-treebeard/django-treebeard
treebeard_js
3,839
LDU_FT/facetoe/zenpy/assignee
LDU_FT
[ "<BEGIN>\n## `agents`", "| Description: IDs of agents involved in the chat\n<END>", "<BEGIN>\n## `department`", "| Description: The ID of the department to which the chat is directed\n<END>", "<BEGIN>\n## `zendesk_ticket`", "| Description: The ID of the Zendesk Support ticket created from this chat. Av...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the assignee API. 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 assignee API. 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...
| Comment: The id of the assignee if the field is visible to end users
"| Comment: The id of the assignee if the field is visible to end users"
321
false
facetoe/zenpy
assignee
3,840
LDU_FT/EmbodiedCognition/py-c3d/binary_size
LDU_FT
[ "<BEGIN>\n## `write`", "Write binary header data to a file handle.", " This method writes exactly 512 bytes to the beginning of the given file\n handle.", " Parameters\n ----------\n handle : file handle\n The given handle will be reset to 0 using `seek` and then ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the binary_size API. 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 binary_size API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
Return the number of bytes needed to store this parameter.
"Return the number of bytes needed to store this parameter."
61
false
EmbodiedCognition/py-c3d
binary_size
3,841
LDU_FT/inveniosoftware/invenio-webhooks/get_hook_url
LDU_FT
[ "<BEGIN>\n## `get_hmac`", "Calculate HMAC value of message using ``WEBHOOKS_SECRET_KEY``.", " :param message: String to calculate HMAC for.\n<END>", "<BEGIN>\n## `check_x_hub_signature`", "Check X-Hub-Signature used by GitHub to sign requests.", " :param signature: HMAC signature extracted from requ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_hook_url API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_hook_url API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
Get URL for webhook. In debug and testing mode the hook URL can be overwritten using ``WEBHOOKS_DEBUG_RECEIVER_URLS`` configuration variable to allow testing webhooks via services such as e.g. Ultrahook. .. code-block:: python WEBHOOKS_DEBUG_RECEIVER_URLS = dict( ...
"Get URL for webhook.\n\n In debug and testing mode the hook URL can be overwritten using\n ``WEBHOOKS_DEBUG_RECEIVER_URLS`` configuration variable to allow\n testing webhooks via services such as e.g. Ultrahook.\n\n .. code-block:: python\n\n WEBHOOKS_DEBUG_RECEIVER_URLS = dict(\...
17
false
inveniosoftware/invenio-webhooks
get_hook_url
3,842
LDU_FT/LasLabs/python-helpscout/_to_camel_case
LDU_FT
[ "<BEGIN>\n## `create`", "Create an object on HelpScout.", " Args:\n session (requests.sessions.Session): Authenticated session.\n record (helpscout.BaseModel): The record to be created.\n endpoint_override (str, optional): Override the default\n endpoint us...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _to_camel_case API. 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 _to_camel_case API. 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...
Return a camel cased version of the input string. Args: string (str): A snake cased string. Returns: str: A camel cased string.
"Return a camel cased version of the input string.\n\n Args:\n string (str): A snake cased string.\n\n Returns:\n str: A camel cased string."
178
false
LasLabs/python-helpscout
_to_camel_case
3,843
LDU_FT/data-8/datascience/pivot_bin
LDU_FT
[ "<BEGIN>\n## `_is_array_integer`", "Returns True if an array contains integers (integer type or near-int\n float values) and False otherwise.", " >>> _is_array_integer(np.arange(10))\n True\n >>> _is_array_integer(np.arange(7.0, 20.0, 1.0))\n True\n >>> _is_array_integer(np.arange(0, 1, 0.1))\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the pivot_bin API. 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 pivot_bin API. 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...
Form a table with columns formed by the unique tuples in pivot_columns containing counts per bin of the values associated with each tuple in the value_column. By default, bins are chosen to contain all values in the value_column. The following named arguments from numpy.histogram can be applied...
"Form a table with columns formed by the unique tuples in pivot_columns\n containing counts per bin of the values associated with each tuple in the value_column.\n\n By default, bins are chosen to contain all values in the value_column. The\n following named arguments from numpy.histogram can be ap...
401
false
data-8/datascience
pivot_bin
3,844
LDU_FT/peterdemin/pip-compile-multi/fix_pin
LDU_FT
[ "<BEGIN>\n## `create_lockfile`", "Write recursive dependencies list to outfile\n with hard-pinned versions.\n Then fix it.\n<END>", "<BEGIN>\n## `parse_references`", "Read filename line by line searching for pattern:", " -r file.in\n or\n --requirement file.in", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the fix_pin API. 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 fix_pin API. 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...
Fix dependency by removing post-releases from versions and loosing constraints on internal packages. Drop packages from ignore set Also populate packages set
"Fix dependency by removing post-releases from versions\n and loosing constraints on internal packages.\n Drop packages from ignore set\n\n Also populate packages set"
61
false
peterdemin/pip-compile-multi
fix_pin
3,845
LDU_FT/jeongyoonlee/Kaggler/logloss
LDU_FT
[ "<BEGIN>\n## `fit`", "Train a network with the quasi-Newton method.", " Args:\n X (np.array of float): feature matrix for training\n y (np.array of float): target values for training\n X_val (np.array of float): feature matrix for validation\n y_val (np.array o...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the logloss API. 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 logloss API. 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...
Bounded log loss error. Args: y (numpy.array): target p (numpy.array): prediction Returns: bounded log loss error
"Bounded log loss error.\n\n Args:\n y (numpy.array): target\n p (numpy.array): prediction\n\n Returns:\n bounded log loss error"
114
false
jeongyoonlee/Kaggler
logloss
3,846
LDU_FT/frictionlessdata/tabulator-py/normalize_encoding
LDU_FT
[ "<BEGIN>\n## `detect_scheme_and_format`", "Detect scheme and format based on source and return as a tuple.", " Scheme is a minimum 2 letters before `://` (will be lower cased).\n For example `http` from `http://example.com/table.csv`\n<END>", "<BEGIN>\n## `detect_encoding`", "Detect encoding of a byte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the normalize_encoding 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 normalize_encoding 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...
Normalize encoding including 'utf-8-sig', 'utf-16-be', utf-16-le tweaks.
"Normalize encoding including 'utf-8-sig', 'utf-16-be', utf-16-le tweaks."
35
false
frictionlessdata/tabulator-py
normalize_encoding
3,847
LDU_FT/apple/turicreate/GetVersion
LDU_FT
[ "<BEGIN>\n## `ReadTag`", "Read a tag from the buffer, and return a (tag_bytes, new_pos) tuple.", " We return the raw bytes of the tag rather than decoding them. The raw\n bytes can then be used to look up the proper decoder. This effectively allows\n us to trade some work that would be done in pure-python ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the GetVersion API. 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 GetVersion API. 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...
Gets the version from google/protobuf/__init__.py Do not import google.protobuf.__init__ directly, because an installed protobuf library may be loaded instead.
"Gets the version from google/protobuf/__init__.py\n\n Do not import google.protobuf.__init__ directly, because an installed\n protobuf library may be loaded instead."
7,340
true
apple/turicreate
GetVersion
3,848
LDU_FT/bovee/Aston/is_parans_exp
LDU_FT
[ "<BEGIN>\n## `simple_integrate`", "Integrate each peak naively; without regard to overlap.", " This is used as the terminal step by most of the other integrators.\n<END>", "<BEGIN>\n## `drop_integrate`", "Resolves overlap by breaking at the minimum value.\n<END>", "<BEGIN>\n## `_integrate_mpwrap`", "...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_parans_exp API. 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 is_parans_exp API. 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 an expression is a valid function "call"
"Determines if an expression is a valid function \"call\""
89
false
bovee/Aston
is_parans_exp
3,849
LDU_FT/tomislater/RandomWords/random_words
LDU_FT
[ "<BEGIN>\n## `load_nouns`", "Load dict from file for random words.", " :param str file: filename\n<END>", "<BEGIN>\n## `load_dmails`", "Load list from file for random mails", " :param str file: filename\n<END>", "<BEGIN>\n## `load_nicknames`", "Load dict from file for random nicknames.",...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the random_words API. 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 random_words API. 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 list of random words. :param str letter: letter :param int count: how much words :rtype: list :returns: list of random words :raises: ValueError
"Returns list of random words.\n\n :param str letter: letter\n :param int count: how much words\n :rtype: list\n :returns: list of random words\n :raises: ValueError"
24
false
tomislater/RandomWords
random_words
3,850
LDU_FT/OpenTreeOfLife/peyotl/TNRS
LDU_FT
[ "<BEGIN>\n## `write_taxon_info`", "Writes out data from `taxon` to the `output` stream to demonstrate\n the attributes of a taxon object.\n (currently some lines are commented out until the web-services call returns more info. See:\n https://github.com/OpenTreeOfLife/taxomachine/issues/85\n ).\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the TNRS API. 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 TNRS API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
Takes a name and optional contextName returns a list of matches. `wrap_response` can be True to return a TNRSResponse object, None to return the "raw" response dict, or a function/class that takes (response, query_data=dict) as its arguments. Each match is a dict with: ...
"Takes a name and optional contextName returns a list of matches.\n `wrap_response` can be True to return a TNRSResponse object, None to return\n the \"raw\" response dict, or a function/class that takes (response, query_data=dict)\n as its arguments.\n\n Each match is a dict with:\n...
456
false
OpenTreeOfLife/peyotl
TNRS
3,851
LDU_FT/smira/py-numa/set_affinity
LDU_FT
[ "<BEGIN>\n## `get_node_size`", "Get size of memory on C{node}.", " @param node: node idx\n @type node: C{int}\n @return: free memory/total memory\n @rtype: C{tuple}(C{int}, C{int})\n<END>", "<BEGIN>\n## `node_to_cpus`", "Get CPUs available on C{node}.", " @return: set of CPU ids\n @rtype...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_affinity API. 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 set_affinity API. 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...
Sets the CPU affinity mask of the process whose ID is pid to the value specified by mask. If pid is zero, then the calling process is used. @param pid: process PID (0 == current process) @type pid: C{int} @param cpuset: set of CPU ids @type cpuset: C{set}
"Sets the CPU affinity mask of the process whose ID is pid to the value specified by mask.\n\n If pid is zero, then the calling process is used.\n\n @param pid: process PID (0 == current process)\n @type pid: C{int}\n @param cpuset: set of CPU ids\n @type cpuset: C{set}"
44
false
smira/py-numa
set_affinity
3,852
LDU_FT/MoseleyBioinformaticsLab/nmrstarlib/_build_file
LDU_FT
[ "<BEGIN>\n## `csview`", "View chemical shift values organized by amino acid residue.", " :param view: Open in default image viewer or save file in current working directory quietly.\n :type view: :py:obj:`True` or :py:obj:`False`\n :return: None\n :rtype: :py:obj:`None`\n<END>", "<...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _build_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 extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _build_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 extra...
Build :class:`~nmrstarlib.nmrstarlib.NMRStarFile` object. :param nmrstar_str: NMR-STAR-formatted string. :type nmrstar_str: :py:class:`str` or :py:class:`bytes` :return: instance of :class:`~nmrstarlib.nmrstarlib.NMRStarFile`. :rtype: :class:`~nmrstarlib.nmrstarlib.NMRStarFile`
"Build :class:`~nmrstarlib.nmrstarlib.NMRStarFile` object.\n\n :param nmrstar_str: NMR-STAR-formatted string.\n :type nmrstar_str: :py:class:`str` or :py:class:`bytes`\n :return: instance of :class:`~nmrstarlib.nmrstarlib.NMRStarFile`.\n :rtype: :class:`~nmrstarlib.nmrstarlib.NMRStarFile`"
117
false
MoseleyBioinformaticsLab/nmrstarlib
_build_file
3,853
LDU_FT/cocaine/cocaine-framework-python/_shrink
LDU_FT
[ "<BEGIN>\n## `fetch_token`", "Gains token from secure backend service.", " :return: Token formatted for Cocaine protocol header.\n<END>", "<BEGIN>\n## `make_secure_adaptor`", ":param service: Service to wrap in.\n :param mod: Name (type) of token refresh backend.\n :param client_id: Cli...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _shrink API. 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 _shrink API. 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...
Shrinks the dynamic table to be at or below maxsize
"Shrinks the dynamic table to be at or below maxsize"
33
false
cocaine/cocaine-framework-python
_shrink
3,854
LDU_FT/mbr/simplekv/map_boto_exceptions
LDU_FT
[ "<BEGIN>\n## `delete`", "Implementation of :meth:`~simplekv.KeyValueStore.delete`.", " If an exception occurs in either the cache or backing store, all are\n passing on.\n<END>", "<BEGIN>\n## `get`", "Implementation of :meth:`~simplekv.KeyValueStore.get`.", " If a cache miss occurs, t...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the map_boto_exceptions 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 map_boto_exceptions 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...
Map boto-specific exceptions to the simplekv-API.
"Map boto-specific exceptions to the simplekv-API."
86
false
mbr/simplekv
map_boto_exceptions
3,855
LDU_FT/jelmer/python-fastimport/format_property
LDU_FT
[ "<BEGIN>\n## `check_path`", "Check that a path is legal.", " :return: the path if all is OK\n :raise ValueError: if the path is illegal\n<END>", "<BEGIN>\n## `format_path`", "Format a path in utf8, quoting it if necessary.\n<END>", "<BEGIN>\n## `format_who_when`", "Format a tuple of name,email,sec...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the format_property API. 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 format_property API. 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...
Format the name and value (both unicode) of a property as a string.
"Format the name and value (both unicode) of a property as a string."
100
false
jelmer/python-fastimport
format_property
3,856
LDU_FT/MediaFire/mediafire-python-open-sdk/request
LDU_FT
[ "<BEGIN>\n## `decode_resumable_upload_bitmap`", "Decodes bitmap_node to hash of unit_id: is_uploaded", " bitmap_node -- bitmap node of resumable_upload with\n 'count' number and 'words' containing array\n number_of_units -- number of units we are uploading to\n defi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the request API. 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 request API. 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...
Perform request to MediaFire API action -- "category/name" of method to call params -- dict of parameters or query string action_token_type -- action token to use: None, "upload", "image" upload_info -- in case of upload, dict of "fd" and "filename" headers -- additional headers...
"Perform request to MediaFire API\n\n action -- \"category/name\" of method to call\n params -- dict of parameters or query string\n action_token_type -- action token to use: None, \"upload\", \"image\"\n upload_info -- in case of upload, dict of \"fd\" and \"filename\"\n headers -- a...
145
false
MediaFire/mediafire-python-open-sdk
request
3,857
LDU_FT/openstack/swauth/handle
LDU_FT
[ "<BEGIN>\n## `filter_factory`", "Returns a WSGI filter app for use with paste.deploy.\n<END>", "<BEGIN>\n## `make_pre_authed_request`", "Nearly the same as swift.common.wsgi.make_pre_authed_request\n except that this also always sets the 'swift.source' and user\n agent.", " Newer Swift ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the handle API. 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 handle API. 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 ...
WSGI entry point for auth requests (ones that match the self.auth_prefix). Wraps env in swob.Request object and passes it down. :param env: WSGI environment dictionary :param start_response: WSGI callable
"WSGI entry point for auth requests (ones that match the\n self.auth_prefix).\n Wraps env in swob.Request object and passes it down.\n\n :param env: WSGI environment dictionary\n :param start_response: WSGI callable"
133
false
openstack/swauth
handle
3,858
LDU_FT/ewels/MultiQC/featurecounts_stats_table
LDU_FT
[ "<BEGIN>\n## `star_stats_table`", "Take the parsed stats from the STAR report and add them to the\n basic stats table at the top of the report\n<END>", "<BEGIN>\n## `mirtrace_length_plot`", "Generate the miRTrace Read Length Distribution\n<END>", "<BEGIN>\n## `mirtrace_contamination_check`", "Gener...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the featurecounts_stats_table API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the featurecounts_stats_table API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi...
Take the parsed stats from the featureCounts report and add them to the basic stats table at the top of the report
"Take the parsed stats from the featureCounts report and add them to the\n basic stats table at the top of the report"
532
false
ewels/MultiQC
featurecounts_stats_table
3,859
LDU_FT/EventRegistry/event-registry-python/getArticles
LDU_FT
[ "<BEGIN>\n## `compute`", "compute the list of most similar events for the given text\n<END>", "<BEGIN>\n## `getUpdates`", "Get the latest new or updated events from Event Registry\n NOTE: call this method exactly once per minute - calling it more frequently will return the same results multiple times,\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the getArticles API. 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 getArticles API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
return a list of articles that match the topic page @param page: which page of the results to return (default: 1) @param count: number of articles to return (default: 100) @param sortBy: how are articles sorted. Options: id (internal id), date (publishing date), cosSim (closeness to the event ce...
"return a list of articles that match the topic page\n @param page: which page of the results to return (default: 1)\n @param count: number of articles to return (default: 100)\n @param sortBy: how are articles sorted. Options: id (internal id), date (publishing date), cosSim (closeness to the even...
89
false
EventRegistry/event-registry-python
getArticles
3,860
LDU_FT/hanguokai/youku/find_show_premium_by_ids
LDU_FT
[ "<BEGIN>\n## `check_error`", "Youku error should return in json form, like:\n HTTP 400\n {\n \"error\":{\n \"code\":120010223,\n \"type\":\"UploadsException\",\n \"description\":\"Expired upload token\"\n }\n }", " But error also maybe in response url p...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_show_premium_by_ids 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 find_show_premium_by_ids API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio...
doc: http://open.youku.com/docs/doc?id=61
"doc: http://open.youku.com/docs/doc?id=61"
120
false
hanguokai/youku
find_show_premium_by_ids
3,861
LDU_FT/blockchain-certificates/cert-issuer/verify_signature
LDU_FT
[ "<BEGIN>\n## `check_internet_off`", "If internet off and USB plugged in, returns true. Else, continues to wait...\n<END>", "<BEGIN>\n## `check_internet_on`", "If internet on and USB unplugged, returns true. Else, continues to wait...\n<END>", "<BEGIN>\n## `issue`", "Issue the certificates on the blockchai...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the verify_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 verify_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 ...
Verify the certificate signature matches the expected. Double-check the uid field in the certificate and use VerifyMessage to confirm that the signature in the certificate matches the issuing_address. Raises error is verification fails. Raises UnverifiedSignatureError if signature is invalid :param u...
"Verify the certificate signature matches the expected. Double-check the uid field in the certificate and use\n VerifyMessage to confirm that the signature in the certificate matches the issuing_address.\n\n Raises error is verification fails.\n\n Raises UnverifiedSignatureError if signature is invalid\n\n ...
62
false
blockchain-certificates/cert-issuer
verify_signature
3,862
LDU_FT/trustar/trustar-python/normalize_timestamp
LDU_FT
[ "<BEGIN>\n## `from_dict`", "Create an indicator object from a dictionary.", " :param indicator: The dictionary.\n :return: The indicator object.\n<END>", "<BEGIN>\n## `to_dict`", "Creates a dictionary representation of the indicator.", " :param remove_nones: Whether ``None`` values sh...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the normalize_timestamp API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the normalize_timestamp API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
TODO: get rid of this function and all references to it / uses of it. Attempt to convert a string timestamp in to a TruSTAR compatible format for submission. Will return current time with UTC time zone if None :param date_time: int that is seconds or milliseconds since epoch, or string/datetime object conta...
"TODO: get rid of this function and all references to it / uses of it.\n Attempt to convert a string timestamp in to a TruSTAR compatible format for submission.\n Will return current time with UTC time zone if None\n :param date_time: int that is seconds or milliseconds since epoch, or string/datetime object c...
243
false
trustar/trustar-python
normalize_timestamp
3,863
LDU_FT/ForensicArtifacts/artifacts/AsDict
LDU_FT
[ "<BEGIN>\n## `_PrintDictAsTable`", "Prints a table of artifact definitions.", " Args:\n src_dict (dict[str, ArtifactDefinition]): artifact definitions by name.\n<END>", "<BEGIN>\n## `PrintStats`", "Build stats and print in MarkDown format.\n<END>", "<BEGIN>\n## `AsDict`", "Represents a source ty...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the AsDict API. 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 AsDict API. 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 ...
Represents a source type as a dictionary. Returns: dict[str, str]: source type attributes.
"Represents a source type as a dictionary.\n\n Returns:\n dict[str, str]: source type attributes."
160
false
ForensicArtifacts/artifacts
AsDict
3,864
LDU_FT/raphaelgyory/django-rest-messaging/get_or_create_thread
LDU_FT
[ "<BEGIN>\n## `compat_serializer_check_is_valid`", "http://www.django-rest-framework.org/topics/3.0-announcement/#using-is_validraise_exceptiontrue\n<END>", "<BEGIN>\n## `compat_serializer_attr`", "Required only for DRF 3.1, which does not make dynamically added attribute available in obj in serializer.\n T...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_or_create_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. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_or_create_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. ...
When a Participant posts a message to other participants without specifying an existing Thread, we must 1. Create a new Thread if they have not yet opened the discussion. 2. If they have already opened the discussion and multiple Threads are not allowed for the same users, we must re...
"When a Participant posts a message to other participants without specifying an existing Thread,\n we must\n 1. Create a new Thread if they have not yet opened the discussion.\n 2. If they have already opened the discussion and multiple Threads are not allowed for the same users, we must\n ...
28
false
raphaelgyory/django-rest-messaging
get_or_create_thread
3,865
LDU_FT/UpCloudLtd/upcloud-python-api/to_dict
LDU_FT
[ "<BEGIN>\n## `get_storages`", "Return a list of Storage objects from the API.", " Storage types: public, private, normal, backup, cdrom, template, favorite\n<END>", "<BEGIN>\n## `create_storage`", "Create a Storage object. Returns an object based on the API's response.\n<END>", "<BEGIN>\n## `modify...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the to_dict API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the to_dict API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
Return a dict that can be serialised to JSON and sent to UpCloud's API. Uses the convenience attribute `os` for determining `action` and `storage` fields.
"Return a dict that can be serialised to JSON and sent to UpCloud's API.\n\n Uses the convenience attribute `os` for determining `action` and `storage`\n fields."
153
false
UpCloudLtd/upcloud-python-api
to_dict
3,866
LDU_FT/hph/mov/ls
LDU_FT
[ "<BEGIN>\n## `get_size`", "Return the size of path in bytes if it exists and can be determined.\n<END>", "<BEGIN>\n## `local_data`", "Return tuples of names, directories, total sizes and files. Each\n directory represents a single film and the files are the files contained\n in the directory, such...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the ls API. 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 docu...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the ls API. 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 docu...
List all items in the database in a predefined format.
"List all items in the database in a predefined format."
12
false
hph/mov
ls
3,867
LDU_FT/PGower/PyCanvas/export_content_users
LDU_FT
[ "<BEGIN>\n## `get_all_quiz_submissions`", "Get all quiz submissions.\r", " Get a list of all submissions for this quiz. Users who can view or manage\r\n grades for a course will have submissions from multiple users returned. A\r\n user who can only submit will have only their own submission...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the export_content_users API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the export_content_users API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Export content. Begin a content export job for a course, group, or user. You can use the {api:ProgressController#show Progress API} to track the progress of the export. The migration's progress is linked to with the _progress_url_ value. When the export...
"Export content.\r\n\r\n Begin a content export job for a course, group, or user.\r\n \r\n You can use the {api:ProgressController#show Progress API} to track the\r\n progress of the export. The migration's progress is linked to with the\r\n _progress_url_ value.\r\n \r\n ...
833
false
PGower/PyCanvas
export_content_users
3,868
LDU_FT/eddiejessup/agaro/t_measures
LDU_FT
[ "<BEGIN>\n## `get_average_measure`", "Calculate a measure of a model in an output directory, averaged over\n all times when the model is at steady-state.", " Parameters\n ----------\n dirname: str\n Output directory\n measure_func: function\n Function which takes a :class:`Model` in...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the t_measures API. 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 t_measures API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
Calculate a measure over time for a single output directory, and its uncertainty. Parameters ---------- dirname: str Path to a model output directory. time_func: function Function which takes a :class:`Model` instance as a single argument, and returns its time. measure_f...
"Calculate a measure over time for a single output directory,\n and its uncertainty.\n\n Parameters\n ----------\n dirname: str\n Path to a model output directory.\n time_func: function\n Function which takes a :class:`Model` instance as a single argument,\n and returns its time.\n ...
62
false
eddiejessup/agaro
t_measures
3,869
LDU_FT/chrisspen/weka/open_stream
LDU_FT
[ "<BEGIN>\n## `convert_weka_to_py_date_pattern`", "Converts the date format pattern used by Weka to the date format pattern used by Python's datetime.strftime().\n<END>", "<BEGIN>\n## `get_attribute_value`", "Returns the value associated with the given value index\n of the attribute with the given name....
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the open_stream API. 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 open_stream API. 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...
Save an arff structure to a file, leaving the file object open for writing of new data samples. This prevents you from directly accessing the data via Python, but when generating a huge file, this prevents all your data from being stored in memory.
"Save an arff structure to a file, leaving the file object\n open for writing of new data samples.\n This prevents you from directly accessing the data via Python,\n but when generating a huge file, this prevents all your data\n from being stored in memory."
27
false
chrisspen/weka
open_stream
3,870
LDU_FT/rongcloud/server-sdk-python/queryUser
LDU_FT
[ "<BEGIN>\n## `getToken`", "获取 Token 方法 方法\n @param userId:用户 Id,最大长度 64 字节.是用户在 App 中的唯一标识码,必须保证在同一个 App 内不重复,重复的用户 Id 将被当作是同一用户。(必传)\n @param name:用户名称,最大长度 128 字节.用来在 Push 推送时显示用户的名称.用户名称,最大长度 128 字节.用来在 Push 推送时显示用户的名称。(必传)\n @param portraitUri:用户头像 URI,最大长度 1024 字节.用来在 Push 推送时显示用户的头像。...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the queryUser API. 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 queryUser API. 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...
查询群成员方法 方法 @param groupId:群组Id。(必传) @return code:返回码,200 为正常。 @return id:群成员用户Id。 @return users:群成员列表。
"查询群成员方法 方法\n @param groupId:群组Id。(必传)\n\t \n @return code:返回码,200 为正常。\n @return id:群成员用户Id。\n @return users:群成员列表。"
93
false
rongcloud/server-sdk-python
queryUser
3,871
LDU_FT/kytos/kytos-utils/log_configs
LDU_FT
[ "<BEGIN>\n## `get_napp`", "Return napp metadata or None if not found.\n<END>", "<BEGIN>\n## `reload_napps`", "Reload a specific NApp or all Napps.", " Args:\n napp (list): NApp list to be reload.\n Raises:\n requests.HTTPError: When there's a server error.\n<END>", "<BE...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the log_configs API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the log_configs API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
Log the read configs if debug is enabled.
"Log the read configs if debug is enabled."
128
false
kytos/kytos-utils
log_configs
3,872