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/asyrjasalo/RESTinstance/set_headers
LDU_FT
[ "<BEGIN>\n## `set_client_cert`", "*Sets the client cert for the requests.*", " The cert is either a path to a .pem file, or a JSON array, or a list\n having the cert path and the key path.", " Values ``null`` and ``${None}`` can be used for clearing the cert.", " *Examples*", "...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_headers API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_headers API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
*Sets new request headers or updates the existing.* ``headers``: The headers to add or update as a JSON object or a dictionary. *Examples* | `Set Headers` | { "authorization": "Basic QWxhZGRpbjpPcGVuU2VzYW1"} | | `Set Headers` | { "Accept-Encoding": "identity"} | | `Se...
"*Sets new request headers or updates the existing.*\n\n ``headers``: The headers to add or update as a JSON object or a\n dictionary.\n\n *Examples*\n\n | `Set Headers` | { \"authorization\": \"Basic QWxhZGRpbjpPcGVuU2VzYW1\"} |\n | `Set Headers` | { \"Accept-Encoding\": \"identity\"...
135
false
asyrjasalo/RESTinstance
set_headers
15,573
LDU_FT/daviddrysdale/python-phonenumbers/_extract_possible_number
LDU_FT
[ "<BEGIN>\n## `_get_metadata_for_region`", "The metadata needed by this class is the same for all regions\n sharing the same country calling code. Therefore, we return the\n metadata for \"main\" region for this country calling code.\n<END>", "<BEGIN>\n## `_maybe_create_new_template`", "Returns True if a...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _extract_possible_number 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 _extract_possible_number API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio...
Attempt to extract a possible number from the string passed in. This currently strips all leading characters that cannot be used to start a phone number. Characters that can be used to start a phone number are defined in the VALID_START_CHAR_PATTERN. If none of these characters are found in the number ...
"Attempt to extract a possible number from the string passed in.\n\n This currently strips all leading characters that cannot be used to\n start a phone number. Characters that can be used to start a phone number\n are defined in the VALID_START_CHAR_PATTERN. If none of these characters\n are found in the n...
501
false
daviddrysdale/python-phonenumbers
_extract_possible_number
15,574
LDU_FT/tjvr/skip/tick
LDU_FT
[ "<BEGIN>\n## `blit_alpha`", "Hack: blit per-pixel alpha source onto dest with surface opacity.\n<END>", "<BEGIN>\n## `trigger_hats`", "Returns a list with each script that is triggered.\n<END>", "<BEGIN>\n## `push_script`", "Run the script and add it to the list of threads.\n<END>", "<BEGIN>\n## `tick`"...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the tick API. 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 tick API. 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...
Execute one frame of the interpreter. Don't call more than 40 times per second.
"Execute one frame of the interpreter.\n\n Don't call more than 40 times per second."
13
false
tjvr/skip
tick
15,575
LDU_FT/peopledoc/workalendar/get_first_weekday_after
LDU_FT
[ "<BEGIN>\n## `get_variable_days`", "Add Late Summer holiday (First Monday of September)\n<END>", "<BEGIN>\n## `iso_register`", "Registers Calendar class as country or region in IsoRegistry.", " Registered country must set class variables ``iso`` using this decorator.", " >>> from workalendar.core im...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_first_weekday_after 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_first_weekday_after API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion...
Get the first weekday after a given day. If the day is the same weekday, the same day will be returned. >>> # the first monday after Apr 1 2015 >>> Calendar.get_first_weekday_after(date(2015, 4, 1), MON) datetime.date(2015, 4, 6) >>> # the first tuesday after Apr 14 2015 ...
"Get the first weekday after a given day. If the day is the same\n weekday, the same day will be returned.\n\n >>> # the first monday after Apr 1 2015\n >>> Calendar.get_first_weekday_after(date(2015, 4, 1), MON)\n datetime.date(2015, 4, 6)\n\n >>> # the first tuesday after Apr 14 201...
106
false
peopledoc/workalendar
get_first_weekday_after
15,576
LDU_FT/kpdyer/regex2dfa/SplitPatch
LDU_FT
[ "<BEGIN>\n## `MakeRanges`", "Turn a list like [1,2,3,7,8,9] into a range list [[1,3], [7,9]]\n<END>", "<BEGIN>\n## `PrintRanges`", "Print the ranges as an array of type named name.\n<END>", "<BEGIN>\n## `PrintGroup`", "Print the data structures for the group of codes.\n Return a UGroup literal for the gr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the SplitPatch API. 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 SplitPatch API. 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...
Splits a patch into separate pieces for each file. Args: data: A string containing the output of svn diff. Returns: A list of 2-tuple (filename, text) where text is the svn diff output pertaining to filename.
"Splits a patch into separate pieces for each file.\n\n\tArgs:\n\t\tdata: A string containing the output of svn diff.\n\n\tReturns:\n\t\tA list of 2-tuple (filename, text) where text is the svn diff output\n\t\t\tpertaining to filename."
163
false
kpdyer/regex2dfa
SplitPatch
15,577
LDU_FT/erget/StereoVision/search_range
LDU_FT
[ "<BEGIN>\n## `get_frames_singleimage`", "Get current left and right frames from a single image,\n by splitting the image in half.\n<END>", "<BEGIN>\n## `show_frames`", "Show current frames from cameras.", " ``wait`` is the wait interval in milliseconds before the window closes.\n<END>", "<BE...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the search_range API. 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 search_range API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
Set private ``_search_range`` and reset ``_block_matcher``.
"Set private ``_search_range`` and reset ``_block_matcher``."
83
false
erget/StereoVision
search_range
15,578
LDU_FT/BasementCat/bubbler/unbind
LDU_FT
[ "<BEGIN>\n## `trigger`", "Trigger this event.\r", "\t\tAny passed in args/kwargs are passed to the event handlers - if the event\r\n\t\thandlers cannot accept those arguments then they will cause an exception!\n<END>", "<BEGIN>\n## `getContext`", "Get a context by name, create the default context if it does...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the unbind API. 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 unbind API. 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 ...
Unbind a callback from an event Params: callback (callable): Callback to unbind event_name (string): If None (default) this callback is removed from every event to which it's bound. If a name is given then it is only removed from that event, if it is bound to that event.
"Unbind a callback from an event\r\n\r\n\t\tParams:\r\n\t\t\tcallback (callable):\r\n\t\t\t\tCallback to unbind\r\n\t\t\tevent_name (string):\r\n\t\t\t\tIf None (default) this callback is removed from every event to\r\n\t\t\t\twhich it's bound. If a name is given then it is only removed from\r\n\t\t\t\tthat event, if ...
19
false
BasementCat/bubbler
unbind
15,579
LDU_FT/edx/edx-submissions/create_submission
LDU_FT
[ "<BEGIN>\n## `validate_answer`", "Check that the answer is JSON-serializable and not too long.\n<END>", "<BEGIN>\n## `get_annotations`", "Inspect ScoreAnnotations to attach all relevant annotations.\n<END>", "<BEGIN>\n## `create_reset_score`", "Create a \"reset\" score (a score with a null submission).", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_submission API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_submission API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Creates a submission for assessment. Generic means by which to submit an answer for assessment. Args: student_item_dict (dict): The student_item this submission is associated with. This is used to determine which course, student, and location this submission belongs to. ...
"Creates a submission for assessment.\n\n Generic means by which to submit an answer for assessment.\n\n Args:\n student_item_dict (dict): The student_item this\n submission is associated with. This is used to determine which\n course, student, and location this submission belongs to....
118
false
edx/edx-submissions
create_submission
15,580
LDU_FT/soravux/scoop/getTimes
LDU_FT
[ "<BEGIN>\n## `_ensureAtomicity`", "Ensure atomicity of passed elements on the whole worker pool\n<END>", "<BEGIN>\n## `setConst`", "setConst(**kwargs)\n Set a constant that will be shared to every workers.", " :param **kwargs: One or more combination(s) key=value. Key being the\n variable name ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the getTimes API. 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 getTimes API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
Get the start time and the end time of data in milliseconds
"Get the start time and the end time of data in milliseconds"
251
false
soravux/scoop
getTimes
15,581
LDU_FT/taddeus/wspy/parse_digest_challenge
LDU_FT
[ "<BEGIN>\n## `conflicts`", "Check if the extension conflicts with an already accepted extension.\n This may be the case when the two extensions use the same reserved\n bits, or have the same name (when the same extension is negotiated\n multiple times with different parameters).\n<END>", "<...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_digest_challenge 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 parse_digest_challenge API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
Parses the value of a 'WWW-Authenticate' header. Returns an object with properties corresponding to each of the recognized parameters in the header.
"Parses the value of a 'WWW-Authenticate' header. Returns an object with properties\n corresponding to each of the recognized parameters in the header."
72
false
taddeus/wspy
parse_digest_challenge
15,582
LDU_FT/alvinlindstam/grapheme/startswith
LDU_FT
[ "<BEGIN>\n## `length`", "Returns the number of graphemes in the string.", " Note that this functions needs to traverse the full string to calculate the length,\n unlike `len(string)` and it's time consumption is linear to the length of the string\n (up to the `until` value).", " Only counts up to ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the startswith API. 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 startswith API. 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...
Like str.startswith, but also checks that the string starts with the given prefixes sequence of graphemes. str.startswith may return true for a prefix that is not visually represented as a prefix if a grapheme cluster is continued after the prefix ends. >>> grapheme.startswith("✊🏾", "✊") False >>...
"Like str.startswith, but also checks that the string starts with the given prefixes sequence of graphemes.\n\n str.startswith may return true for a prefix that is not visually represented as a prefix if a grapheme cluster\n is continued after the prefix ends.\n\n >>> grapheme.startswith(\"✊🏾\", \"✊\")\n F...
28
false
alvinlindstam/grapheme
startswith
15,583
LDU_FT/Duke-GCB/DukeDSClient/get_folder_children
LDU_FT
[ "<BEGIN>\n## `_create_parser`", "Create a parser hooking up the command methods below to be run when chosen.\n :return: CommandParser parser with commands attached.\n<END>", "<BEGIN>\n## `_check_pypi_version`", "When the version is out of date or we have trouble retrieving it print a error to stderr an...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_folder_children API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_folder_children 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...
Get direct files and folders of a folder. :param folder_id: str: uuid of the folder :param name_contains: str: filter children based on a pattern :return: File|Folder
"Get direct files and folders of a folder.\n :param folder_id: str: uuid of the folder\n :param name_contains: str: filter children based on a pattern\n :return: File|Folder"
440
false
Duke-GCB/DukeDSClient
get_folder_children
15,584
LDU_FT/thautwarm/RBNF/dispatch
LDU_FT
[ "<BEGIN>\n## `run`", "You can apply immediate tests on your parser.\n P.S: use `--opt` option takes longer starting time.\n<END>", "<BEGIN>\n## `recover_codes`", "from a series of tokenizers to code string. (preserve the indentation)\n<END>", "<BEGIN>\n## `dispatch`", "Dispatcher function, dispatching ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the dispatch API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the dispatch API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
Dispatcher function, dispatching tree type T to method _T.
"Dispatcher function, dispatching tree type T to method _T."
12
false
thautwarm/RBNF
dispatch
15,585
LDU_FT/django-cumulus/django-cumulus/get_content_type
LDU_FT
[ "<BEGIN>\n## `set_options`", "Sets instance variables based on an options dict\n<END>", "<BEGIN>\n## `match_cloud`", "Returns the cloud objects that match the include and exclude patterns.\n<END>", "<BEGIN>\n## `match_local`", "Filters os.walk() with include and exclude patterns.\n See: http://stac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_content_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. The ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_content_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. The ...
Checks if the content_type is already set. Otherwise uses the mimetypes library to guess.
"Checks if the content_type is already set.\n Otherwise uses the mimetypes library to guess."
30
false
django-cumulus/django-cumulus
get_content_type
15,586
LDU_FT/aio-libs/aiomysql/mogrify
LDU_FT
[ "<BEGIN>\n## `terminate`", "Terminate pool.", " Close pool with instantly closing all acquired connections also.\n<END>", "<BEGIN>\n## `release`", "Release free connection back to the connection pool.", " This is **NOT** a coroutine.\n<END>", "<BEGIN>\n## `close`", "Closing a cursor just...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the mogrify API. 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 mogrify API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
Returns the exact string that is sent to the database by calling the execute() method. This method follows the extension to the DB API 2.0 followed by Psycopg. :param query: ``str`` sql statement :param args: ``tuple`` or ``list`` of arguments for sql query
"Returns the exact string that is sent to the database by calling\n the execute() method. This method follows the extension to the DB\n API 2.0 followed by Psycopg.\n\n :param query: ``str`` sql statement\n :param args: ``tuple`` or ``list`` of arguments for sql query"
114
false
aio-libs/aiomysql
mogrify
15,587
LDU_FT/orbeckst/RecSQL/parse_fields
LDU_FT
[ "<BEGIN>\n## `make_python_name`", "Returns a unicode string that can be used as a legal python identifier.", " :Arguments:\n *s*\n string\n *default*\n use *default* if *s* is ``None``\n *number_prefix*\n string to prepend if *s* starts with a number\n<END>", "<BEGIN>...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_fields API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_fields API. 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...
Determine the start and end columns and names of the fields.
"Determine the start and end columns and names of the fields."
96
false
orbeckst/RecSQL
parse_fields
15,588
LDU_FT/MycroftAI/adapt/register_domain
LDU_FT
[ "<BEGIN>\n## `lookup`", "TODO: Implement trie lookup with edit distance", " Args:\n iterable(list?): key used to find what is requested this could\n be a generator.\n index(int): index of what is requested\n gather(bool): of weather to gather or not\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the register_domain API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the register_domain API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
Register a domain with the intent engine. Args: tokenizer(tokenizer): The tokenizer you wish to use. trie(Trie): the Trie() you wish to use. domain(str): a string representing the domain you wish to add
"Register a domain with the intent engine.\n\n Args:\n tokenizer(tokenizer): The tokenizer you wish to use.\n trie(Trie): the Trie() you wish to use.\n domain(str): a string representing the domain you wish to add"
178
false
MycroftAI/adapt
register_domain
15,589
LDU_FT/jbasko/configmanager/_get_kwarg
LDU_FT
[ "<BEGIN>\n## `values`", "Returns a mapping of items to their new values. The mapping includes only items whose value or raw string value\n has changed in the context.\n<END>", "<BEGIN>\n## `changes`", "Returns a mapping of items to their effective change objects which include the old values\n an...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_kwarg API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_kwarg API. 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...
Helper to get value of a named attribute irrespective of whether it is passed with or without "@" prefix.
"Helper to get value of a named attribute irrespective of whether it is passed\n with or without \"@\" prefix."
120
false
jbasko/configmanager
_get_kwarg
15,590
LDU_FT/gdoermann/voicebase/get_user
LDU_FT
[ "<BEGIN>\n## `session`", "This is what you should use to make requests. It sill authenticate for you.\n :return: requests.sessions.Session\n<END>", "<BEGIN>\n## `get_user`", "Details for a specific user.\n Will pull from cached users first, or get and add to cached users.\n :param userna...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_user API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_user API. 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...
Details for a specific user. Will pull from cached users first, or get and add to cached users. :param username: the username or userId of the user :return: VoicebaseUser
"Details for a specific user.\n Will pull from cached users first, or get and add to cached users.\n :param username: the username or userId of the user\n :return: VoicebaseUser"
14
false
gdoermann/voicebase
get_user
15,591
LDU_FT/projectshift/shift-boiler/version
LDU_FT
[ "<BEGIN>\n## `asset`", "Asset helper\n Generates path to a static asset based on configuration base path and\n support for versioning. Will easily allow you to move your assets away to\n a CDN without changing templates. Versioning allows you to cache your asset\n changes forever by the webserver.", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the version API. 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 version API. 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...
Version Imports and displays current boiler version. :return:
"Version\n Imports and displays current boiler version.\n :return:"
166
false
projectshift/shift-boiler
version
15,592
LDU_FT/merll/docker-fabric/get_connection
LDU_FT
[ "<BEGIN>\n## `reset_socat`", "Finds and closes all processes of `socat`.", " :param use_sudo: Use `sudo` command. As Docker-Fabric does not run `socat` with `sudo`, this is by default set to\n ``False``. Setting it to ``True`` could unintentionally remove instances from other users.\n :type use_sudo:...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_connection API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_connection API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
Create a new connection, or return an existing one from the cache. Uses Fabric's current ``env.host_string`` and the URL to the Docker service. :param args: Additional arguments for the client constructor, if a new client has to be instantiated. :param kwargs: Additional keyword args for the cl...
"Create a new connection, or return an existing one from the cache. Uses Fabric's current ``env.host_string``\n and the URL to the Docker service.\n\n :param args: Additional arguments for the client constructor, if a new client has to be instantiated.\n :param kwargs: Additional keyword args for t...
157
false
merll/docker-fabric
get_connection
15,593
LDU_FT/alvarogzp/telegram-bot-framework/format
LDU_FT
[ "<BEGIN>\n## `default_format`", "Returns full name (first and last) if name is available.\n If not, returns username if available.\n If not available too, returns the user id as a string.\n<END>", "<BEGIN>\n## `full_name`", "Returns the first and last name of the user separated by a space.\n<END...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the format API. 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 format API. 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 ...
:param member_info: If True, adds also chat member info. Please, note that this additional info requires to make ONE api call.
":param member_info: If True, adds also chat member info. Please, note that this additional info requires\n to make ONE api call."
36
false
alvarogzp/telegram-bot-framework
format
15,594
LDU_FT/todddeluca/python-vagrant/_run_vagrant_command
LDU_FT
[ "<BEGIN>\n## `which`", "Emulate unix 'which' command. If program is a path to an executable file\n (i.e. it contains any directory components, like './myscript'), return\n program. Otherwise, if an executable file matching program is found in one\n of the directories in the PATH environment variable, r...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _run_vagrant_command API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _run_vagrant_command API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Run a vagrant command and return its stdout. args: A sequence of arguments to a vagrant command line. e.g. ['up', 'my_vm_name', '--no-provision'] or ['up', None, '--no-provision'] for a non-Multi-VM environment.
"Run a vagrant command and return its stdout.\n args: A sequence of arguments to a vagrant command line.\n e.g. ['up', 'my_vm_name', '--no-provision'] or\n ['up', None, '--no-provision'] for a non-Multi-VM environment."
94
false
todddeluca/python-vagrant
_run_vagrant_command
15,595
LDU_FT/ministryofjustice/money-to-prisoners-common/logout
LDU_FT
[ "<BEGIN>\n## `get_form_errors`", "Django form errors do not obey natural field order,\n this template tag returns non-field and field-specific errors\n :param form: the form instance\n<END>", "<BEGIN>\n## `sub_nav`", "Sub-nav displayed below proposition header\n - creates alternate language links if ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the logout API. 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 logout API. 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 ...
Removes the authenticated user's ID from the request and flushes their session data.
"Removes the authenticated user's ID from the request and flushes their\n session data."
84
false
ministryofjustice/money-to-prisoners-common
logout
15,596
LDU_FT/iotile/coretools/_try_reconnect
LDU_FT
[ "<BEGIN>\n## `_value_length`", "Given an integer or list of them, convert it to an array of bytes.\n<END>", "<BEGIN>\n## `_parse_line`", "Parse a line in a TileBus file", " Args:\n line_no (int): The line number for printing useful error messages\n line (string): The line that w...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _try_reconnect API. 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 _try_reconnect API. 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...
Try to recover an interrupted connection.
"Try to recover an interrupted connection."
4,849
true
iotile/coretools
_try_reconnect
15,597
LDU_FT/juju/charm-helpers/get_os_codename_install_source
LDU_FT
[ "<BEGIN>\n## `get_ubuntu_release_from_sentry`", "Get Ubuntu release codename from sentry unit.", " :param sentry_unit: amulet sentry/service unit pointer\n :returns: list of strings - release codename, failure message\n<END>", "<BEGIN>\n## `validate_services`", "Validate that lists of commands...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_os_codename_install_source API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its con...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_os_codename_install_source API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its con...
Derive OpenStack release codename from a given installation source.
"Derive OpenStack release codename from a given installation source."
1,689
true
juju/charm-helpers
get_os_codename_install_source
15,598
LDU_FT/GPflow/GPflow/_cust_square_dist
LDU_FT
[ "<BEGIN>\n## `multivariate_normal`", "Computes the log-density of a multivariate normal.\n :param x : Dx1 or DxN sample(s) for which we want the density\n :param mu : Dx1 or DxN mean(s) of the normal distribution\n :param L : DxD Cholesky decomposition of the covariance matrix\n :return p : (1,) or ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _cust_square_dist API. 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 _cust_square_dist API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Custom version of _square_dist that allows sc to provide per-datapoint length scales. sc: N x M x D.
"Custom version of _square_dist that allows sc to provide per-datapoint length\n scales. sc: N x M x D."
589
false
GPflow/GPflow
_cust_square_dist
15,599
LDU_FT/totokaka/pySpaceGDN/_fetch
LDU_FT
[ "<BEGIN>\n## `_create_user_agent`", "Create the user agent and return it as a string.\n<END>", "<BEGIN>\n## `sort`", "Sort the results.", " Define how the results should be sorted. The arguments should be tuples\n of string defining the key and direction to sort by. For example\n `('nam...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _fetch API. 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 _fetch API. 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 ...
Internal method for fetching. This differs from :meth:`.fetch` in that it accepts a default path as an argument.
"Internal method for fetching.\n\n This differs from :meth:`.fetch` in that it accepts a default path as\n an argument."
27
false
totokaka/pySpaceGDN
_fetch
15,600
LDU_FT/alerta/python-alerta-client/cli
LDU_FT
[ "<BEGIN>\n## `cli`", "Suppress alerts for specified duration based on alert attributes.\n<END>", "<BEGIN>\n## `cli`", "Add group/org/domain/role-to-customer or delete lookup entry.\n<END>", "<BEGIN>\n## `cli`", "Create user or update user details, including password reset.\n<END>", "<BEGIN>\n## `cli`", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the cli API. 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 cli API. 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...
Trigger the expiration and deletion of alerts.
"Trigger the expiration and deletion of alerts."
30
false
alerta/python-alerta-client
cli
15,601
LDU_FT/twisted/epsilon/_timedeltaToSignHrMin
LDU_FT
[ "<BEGIN>\n## `main`", "Create a private key and a certificate and write them to a file.\n<END>", "<BEGIN>\n## `setTimeout`", "Change the timeout period", " @type period: C{int} or C{NoneType}\n @param period: The period, in seconds, to change the timeout to, or\n C{None} to disable the ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _timedeltaToSignHrMin 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 _timedeltaToSignHrMin API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Return a (sign, hour, minute) triple for the offset described by timedelta. sign is a string, either "+" or "-". In the case of 0 offset, sign is "+".
"Return a (sign, hour, minute) triple for the offset described by timedelta.\n\n sign is a string, either \"+\" or \"-\". In the case of 0 offset, sign is \"+\"."
217
false
twisted/epsilon
_timedeltaToSignHrMin
15,602
LDU_FT/aws/aws-dynamodb-encryption-python/decrypt
LDU_FT
[ "<BEGIN>\n## `encrypt_item`", "Demonstrate use of EncryptedTable to transparently encrypt an item.\n<END>", "<BEGIN>\n## `to_str`", "Takes an input str or bytes object and returns an equivalent str object.", " :param data: Input data\n :type data: str or bytes\n :returns: Data normalized to str\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the decrypt API. 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 decrypt API. 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...
Decrypt data using the supplied values. :param bytes key: Loaded decryption key :param bytes data: IV prepended to encrypted data :param JavaMode mode: Decryption mode to use (not used by :class:`JavaAsymmetricEncryptionAlgorithm`) :param JavaPadding padding: Padding mode to use ...
"Decrypt data using the supplied values.\n\n :param bytes key: Loaded decryption key\n :param bytes data: IV prepended to encrypted data\n :param JavaMode mode: Decryption mode to use (not used by :class:`JavaAsymmetricEncryptionAlgorithm`)\n :param JavaPadding padding: Padding mode to use\n...
175
false
aws/aws-dynamodb-encryption-python
decrypt
15,603
LDU_FT/eng-tools/sfsimodels/migrate_ecp
LDU_FT
[ "<BEGIN>\n## `set_beam_prop`", "Specify the properties of the beams", " :param values:\n :param repeat: if 'up' then duplicate up the structure\n :return:\n<END>", "<BEGIN>\n## `set_column_prop`", "Specify the properties of the columns", " :param values:\n :param repeat:...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the migrate_ecp API. 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 migrate_ecp API. 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...
Migrates and ECP file to the current version of sfsimodels
"Migrates and ECP file to the current version of sfsimodels"
126
false
eng-tools/sfsimodels
migrate_ecp
15,604
LDU_FT/swevm/scaleio-py/set_abort_pending
LDU_FT
[ "<BEGIN>\n## `get`", "Returns a `list` of all the `System` objects to the cluster. Updates every time - no caching.\n :return: a `list` of all the `System` objects known to the cluster.\n :rtype: list\n<END>", "<BEGIN>\n## `set_sds_name`", "Set name for SDS\n :param name: Name of SDS\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_abort_pending API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_abort_pending API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Method to set Abort state if something goes wrong during provisioning Method also used to finish provisioning process when all is completed Method: POST
"Method to set Abort state if something goes wrong during provisioning\n Method also used to finish provisioning process when all is completed\n Method: POST"
113
false
swevm/scaleio-py
set_abort_pending
15,605
LDU_FT/treethought/flask-assistant/post_intent
LDU_FT
[ "<BEGIN>\n## `build_item`", "Builds an item that may be added to List or Carousel\n<END>", "<BEGIN>\n## `suggest`", "Use suggestion chips to hint at responses to continue or pivot the conversation\n<END>", "<BEGIN>\n## `link_out`", "Presents a chip similar to suggestion, but instead links to a url\n<END>"...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the post_intent API. 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 post_intent API. 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...
Sends post request to create a new intent
"Sends post request to create a new intent"
65
false
treethought/flask-assistant
post_intent
15,606
LDU_FT/akatrevorjay/mainline/update
LDU_FT
[ "<BEGIN>\n## `update`", "Update our providers from either an ICatalog subclass/instance or a mapping.", " If arg is an ICatalog, we update from it's ._providers attribute.", " :param arg: Di/Catalog/Mapping to update from.\n :type arg: ICatalog or collections.Mapping\n :param allow...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Convenience method to update this Di instance with the specified contents. :param catalog: ICatalog supporting class or mapping :type catalog: ICatalog or collections.Mapping :param dependencies: Mapping of dependencies :type dependencies: collections.Mapping :param allow_overwr...
"Convenience method to update this Di instance with the specified contents.\n\n :param catalog: ICatalog supporting class or mapping\n :type catalog: ICatalog or collections.Mapping\n :param dependencies: Mapping of dependencies\n :type dependencies: collections.Mapping\n :param allow...
36
false
akatrevorjay/mainline
update
15,607
LDU_FT/poldracklab/niworkflows/_chunk_read_
LDU_FT
[ "<BEGIN>\n## `spike_regressors`", "Add spike regressors to a confound/nuisance matrix.", " Parameters\n ----------\n data: pandas DataFrame object\n A tabulation of observations from which spike regressors should be\n estimated.\n criteria: dict{str: ('>' or '<', float)}\n Crite...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _chunk_read_ API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _chunk_read_ API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
Download a file chunk by chunk and show advancement :param urllib.response.addinfourl response: response to the download request in order to get file size :param str local_file: hard disk file where data should be written :param int chunk_size: size of downloaded chunks. Default: 8192 :param bo...
"Download a file chunk by chunk and show advancement\n\n :param urllib.response.addinfourl response: response to the download\n request in order to get file size\n :param str local_file: hard disk file where data should be written\n :param int chunk_size: size of downloaded chunks. Default: 8192\n :p...
305
false
poldracklab/niworkflows
_chunk_read_
15,608
LDU_FT/datadotworld/data.world-py/read
LDU_FT
[ "<BEGIN>\n## `download_dataset`", "Download dataset\n This endpoint will return a .zip containing all files within the dataset as originally uploaded. If you are interested retrieving clean data extracted from those files by data.world, check out `GET:/sql` and `GET:/sparql`.\n This method makes a...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the read API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the read API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
read the contents of the file that's been opened in read mode
"read the contents of the file that's been opened in read mode"
398
false
datadotworld/data.world-py
read
15,609
LDU_FT/nerdvegas/rez/get_errno
LDU_FT
[ "<BEGIN>\n## `add_node`", "Add given node to the graph.", " @attention: While nodes can be of any type, it's strongly recommended to use only\n numbers and single-line strings as node identifiers if you intend to use write().", " @type node: node\n @param node: Node identifier.", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_errno API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_errno API. 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...
:exc:`socket.error` and :exc:`IOError` first got the ``.errno`` attribute in Py2.7
":exc:`socket.error` and :exc:`IOError` first got\n the ``.errno`` attribute in Py2.7"
2,330
true
nerdvegas/rez
get_errno
15,610
LDU_FT/bigcommerce/bigcommerce-api-python/delete
LDU_FT
[ "<BEGIN>\n## `all`", "Returns first page if no params passed in as a list.\n<END>", "<BEGIN>\n## `iterall`", "Returns a autopaging generator that yields each object returned one by one.\n<END>", "<BEGIN>\n## `get`", "Retrieves the resource with given id 'rid', or all resources of given type.\n Keep...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the delete API. 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 delete API. 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 ...
Deletes the resource with given id 'rid', or all resources of given type if rid is not supplied.
"Deletes the resource with given id 'rid', or all resources of given type if rid is not supplied."
25
false
bigcommerce/bigcommerce-api-python
delete
15,611
LDU_FT/apache/spark/substring
LDU_FT
[ "<BEGIN>\n## `_parse_datatype_string`", "Parses the given data type string to a :class:`DataType`. The data type string format equals\n to :class:`DataType.simpleString`, except that top level struct type can omit\n the ``struct<>`` and atomic types use ``typeName()`` as their format, e.g. use ``byte`` inst...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the substring API. 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 substring API. 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...
Substring starts at `pos` and is of length `len` when str is String type or returns the slice of byte array that starts at `pos` in byte and is of length `len` when str is Binary type. .. note:: The position is not zero based, but 1 based index. >>> df = spark.createDataFrame([('abcd',)], ['s',]) ...
"Substring starts at `pos` and is of length `len` when str is String type or\n returns the slice of byte array that starts at `pos` in byte and is of length `len`\n when str is Binary type.\n\n .. note:: The position is not zero based, but 1 based index.\n\n >>> df = spark.createDataFrame([('abcd',)], ['s',...
2,386
true
apache/spark
substring
15,612
LDU_FT/smnorris/bcdata/define_request
LDU_FT
[ "<BEGIN>\n## `parse_db_url`", "provided a db url, return a dict with connection properties\n<END>", "<BEGIN>\n## `from_like_context`", "Return the value for an option from the context if the option\n or `--all` is given, else return None.\n<END>", "<BEGIN>\n## `info`", "Print basic metadata about a Dat...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the define_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 ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the define_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 ex...
Define the getfeature request parameters required to download a dataset References: - http://www.opengeospatial.org/standards/wfs - http://docs.geoserver.org/stable/en/user/services/wfs/vendor.html - http://docs.geoserver.org/latest/en/user/tutorials/cql/cql_tutorial.html
"Define the getfeature request parameters required to download a dataset\n\n References:\n - http://www.opengeospatial.org/standards/wfs\n - http://docs.geoserver.org/stable/en/user/services/wfs/vendor.html\n - http://docs.geoserver.org/latest/en/user/tutorials/cql/cql_tutorial.html"
35
false
smnorris/bcdata
define_request
15,613
LDU_FT/Trax-air/swagger-parser/get_example_from_prop_spec
LDU_FT
[ "<BEGIN>\n## `_validate_post_body`", "returns a tuple (boolean, msg)\n to indicate whether the validation passed\n if False then msg contains the reason\n if True then msg is empty\n<END>", "<BEGIN>\n## `build_definitions_example`", "Parse all definitions in the swagger specification.\n<E...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_example_from_prop_spec 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_example_from_prop_spec API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclus...
Return an example value from a property specification. Args: prop_spec: the specification of the property. from_allof: whether these properties are part of an allOf section Returns: An example value
"Return an example value from a property specification.\n\n Args:\n prop_spec: the specification of the property.\n from_allof: whether these properties are part of an\n allOf section\n\n Returns:\n An example value"
100
false
Trax-air/swagger-parser
get_example_from_prop_spec
15,614
LDU_FT/MLAB-project/pymlab/get_angle
LDU_FT
[ "<BEGIN>\n## `Move`", "Move some distance units from current position\n<END>", "<BEGIN>\n## `SPI_write_byte`", "Writes a data to a SPI device selected by chipselect bit.\n<END>", "<BEGIN>\n## `SPI_write`", "Writes data to SPI device selected by chipselect bit.\n<END>", "<BEGIN>\n## `GPIO_read`", "Read...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_angle API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_angle API. 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...
Retuns measured angle in degrees in range 0-360.
"Retuns measured angle in degrees in range 0-360."
99
false
MLAB-project/pymlab
get_angle
15,615
LDU_FT/KenLauLab/NVR/adaptive_knn_graph
LDU_FT
[ "<BEGIN>\n## `parseNoise`", "Function returns indices that contain non-noisy genes as an integer array\n :param rawArray: numpy ndarray of data set\n :return nnGenes : numpy ndarray of non-noise gene indices\n<END>", "<BEGIN>\n## `mkIndexedArr`", "Function returns ndarray of gene expression values from ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the adaptive_knn_graph 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 adaptive_knn_graph 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...
Function returns an adjacency matrix based on the euclidean distance of each gene's expression across all cells :param traj_dist: ndarray of euclidean distances :param k: int of the minimum number of connections needed for a minimally connected graph, calculated by min_conn_k() :return adj_mat: ndarray repr...
"Function returns an adjacency matrix based on the euclidean distance of each gene's expression across all cells\n :param traj_dist: ndarray of euclidean distances\n :param k: int of the minimum number of connections needed for a minimally connected graph, calculated by min_conn_k()\n :return adj_mat: ndarray ...
22
false
KenLauLab/NVR
adaptive_knn_graph
15,616
LDU_FT/cons3rt/pycons3rt/set_text
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 set_text API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_text API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
Sets the text attribute of the payload :param text: (str) Text of the message :return: None
"Sets the text attribute of the payload\n\n :param text: (str) Text of the message\n :return: None"
386
false
cons3rt/pycons3rt
set_text
15,617
LDU_FT/StevenMaude/bbc-radio-tracklisting-downloader/extract_listing
LDU_FT
[ "<BEGIN>\n## `open_listing_page`", "Opens a BBC radio tracklisting page based on trailing part of url.\n Returns a lxml ElementTree derived from that page.", " trailing_part_of_url: a string, like the pid or e.g. pid/segments.inc\n<END>", "<BEGIN>\n## `get_programme_title`", "Take BBC programme ID as ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the extract_listing API. 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 extract_listing API. 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...
Extract listing; return list of tuples (artist(s), title, label).
"Extract listing; return list of tuples (artist(s), title, label)."
23
false
StevenMaude/bbc-radio-tracklisting-downloader
extract_listing
15,618
LDU_FT/glomex/gcdt/_get_event_source_obj
LDU_FT
[ "<BEGIN>\n## `list_functions`", "List the deployed lambda functions and print configuration.", " :return: exit_code\n<END>", "<BEGIN>\n## `deploy_lambda`", "Create or update a lambda function.", " :param awsclient:\n :param function_name:\n :param role:\n :param handler_filename:\n :para...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_event_source_obj API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_event_source_obj API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Given awsclient, event_source dictionary item create an event_source object of the appropriate event type to schedule this event, and return the object.
"Given awsclient, event_source dictionary item\n create an event_source object of the appropriate event type\n to schedule this event, and return the object."
301
false
glomex/gcdt
_get_event_source_obj
15,619
LDU_FT/YuriyGuts/pygoose/save
LDU_FT
[ "<BEGIN>\n## `split_into_batches`", "Break the input data into smaller batches, optionally saving each one to disk.", " Args:\n input_list: An input object that has a list-like interface (indexing and slicing).\n batch_size: The maximum number of input items in each batch.\n batch_storag...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the save API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the save API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
Serialize an object to disk using pickle protocol. Args: obj: The object to serialize. filename: Path to the output file. protocol: Version of the pickle protocol.
"Serialize an object to disk using pickle protocol.\n\n Args:\n obj: The object to serialize.\n filename: Path to the output file.\n protocol: Version of the pickle protocol."
72
false
YuriyGuts/pygoose
save
15,620
LDU_FT/striglia/stockfighter/_load_data
LDU_FT
[ "<BEGIN>\n## `_load_data`", "Internal method for querying the GM api for currently running levels\n and storing that state.\n<END>", "<BEGIN>\n## `heartbeat`", "Check The API Is Up.", " https://starfighter.readme.io/docs/heartbeat\n<END>", "<BEGIN>\n## `venue_healthcheck`", "Check A Venue ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _load_data API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _load_data API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
Internal method for querying the GM api for currently running levels and storing that state.
"Internal method for querying the GM api for currently running levels\n and storing that state."
29
false
striglia/stockfighter
_load_data
15,621
LDU_FT/qiniu/python-sdk/private_download_url
LDU_FT
[ "<BEGIN>\n## `execute`", "执行持久化处理:", " Args:\n key: 待处理的源文件\n fops: 处理详细操作,规格详见 https://developer.qiniu.com/dora/manual/1291/persistent-data-processing-pfop\n force: 强制执行持久化处理开关", " Returns:\n 一个dict变量,返回持久化处理的persistentId,类似{\"persistentId\": 54...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the private_download_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. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the private_download_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. ...
生成私有资源下载链接 Args: url: 私有空间资源的原始URL expires: 下载凭证有效期,默认为3600s Returns: 私有资源的下载链接
"生成私有资源下载链接\n\n Args:\n url: 私有空间资源的原始URL\n expires: 下载凭证有效期,默认为3600s\n\n Returns:\n 私有资源的下载链接"
337
false
qiniu/python-sdk
private_download_url
15,622
LDU_FT/radjkarl/fancyTools/smooth
LDU_FT
[ "<BEGIN>\n## `similarity1DdiffShapedArrays`", "compare two strictly monotonous increasing 1d arrays\n of same or different size\n return a similarity index-> 0=identical\n<END>", "<BEGIN>\n## `inverseHistogram`", "sample data from given histogram and min, max values within range", " Returns:\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the smooth API. 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 smooth API. 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 ...
smooth every polyline using spline interpolation
"smooth every polyline using spline interpolation"
210
false
radjkarl/fancyTools
smooth
15,623
LDU_FT/cni/MRS/bi_square
LDU_FT
[ "<BEGIN>\n## `fetch_data`", "Downloads files to folder and checks their md5 checksums", " Parameters\n ----------\n files : dictionary\n For each file in `files` the value should be (url, md5). The file will\n be downloaded from url if the file does not already exist or if the\n fi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the bi_square API. 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 bi_square API. 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...
The bi-square weight function calculated over values of xx Parameters ---------- xx: float array Notes ----- This is the first equation on page 831 of [Cleveland79].
"The bi-square weight function calculated over values of xx\n\n Parameters\n ----------\n xx: float array\n\n Notes\n -----\n This is the first equation on page 831 of [Cleveland79]."
328
false
cni/MRS
bi_square
15,624
LDU_FT/sendgrid/sendgrid-python/get_raw_email
LDU_FT
[ "<BEGIN>\n## `threshold`", "Threshold used to determine if your content qualifies as spam.\n On a scale from 1 to 10, with 10 being most strict, or most likely to\n be considered as spam.", " :param value: Threshold used to determine if your content qualifies as\n spam....
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_raw_email API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_raw_email API. 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...
This only applies to raw payloads: https://sendgrid.com/docs/Classroom/Basics/Inbound_Parse_Webhook/setting_up_the_inbound_parse_webhook.html#-Raw-Parameters
"This only applies to raw payloads:\n https://sendgrid.com/docs/Classroom/Basics/Inbound_Parse_Webhook/setting_up_the_inbound_parse_webhook.html#-Raw-Parameters"
229
false
sendgrid/sendgrid-python
get_raw_email
15,625
LDU_FT/MediaFire/mediafire-python-open-sdk/login
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 login API. 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 login API. 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...
Login to MediaFire account. Keyword arguments: email -- account email password -- account password app_id -- application ID api_key -- API Key (optional)
"Login to MediaFire account.\n\n Keyword arguments:\n email -- account email\n password -- account password\n app_id -- application ID\n api_key -- API Key (optional)"
145
false
MediaFire/mediafire-python-open-sdk
login
15,626
LDU_FT/PyAr/fades/check_pypi_updates
LDU_FT
[ "<BEGIN>\n## `consolidate_dependencies`", "Parse files, get deps and merge them. Deps read later overwrite those read earlier.\n<END>", "<BEGIN>\n## `decide_child_program`", "Decide which the child program really is (if any).\n<END>", "<BEGIN>\n## `detect_inside_virtualenv`", "Tell if fades is running ins...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the check_pypi_updates 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 check_pypi_updates API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
Return a list of dependencies to upgrade.
"Return a list of dependencies to upgrade."
85
false
PyAr/fades
check_pypi_updates
15,627
LDU_FT/tallforasmurf/byteplay/_findlinestarts
LDU_FT
[ "<BEGIN>\n## `object_attributes`", "Return a sorted list of names defined by thing that are not also names in\n a standard object, except include __doc__.\n<END>", "<BEGIN>\n## `print_object_attributes`", "Print the attribute names in thing vertically\n<END>", "<BEGIN>\n## `print_attr_values`", "Print ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _findlinestarts API. 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 _findlinestarts API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
Find the offsets in a byte code which are the start of source lines. Generate pairs (offset, lineno) as described in Python/compile.c. This is a modified version of dis.findlinestarts. This version allows multiple "line starts" with the same line number. (The dis version conditions its...
"Find the offsets in a byte code which are the start of source lines.\n\n Generate pairs (offset, lineno) as described in Python/compile.c.\n\n This is a modified version of dis.findlinestarts. This version allows\n multiple \"line starts\" with the same line number. (The dis version\n condi...
35
false
tallforasmurf/byteplay
_findlinestarts
15,628
LDU_FT/IS-ENES-Data/esgf-pid/retrieve_dataset_handles_or_version_numbers_of_all_versions
LDU_FT
[ "<BEGIN>\n## `logtrace`", "If esgfpid.defaults.LOG_TRACE_TO_DEBUG, messages are treated\n like debug messages (with an added [trace]).\n Otherwise, they are ignored.\n<END>", "<BEGIN>\n## `logdebug`", "Logs messages as DEBUG,\n unless show=True and esgfpid.defaults.LOG_SHOW_TO_INFO=True,\n (then i...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the retrieve_dataset_handles_or_version_numbers_of_all_versions API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the retrieve_dataset_handles_or_version_numbers_of_all_versions API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation...
:return: Dict. Should never return None. :raise: SolrSwitchedOff :raise SolrError: If ...
":return: Dict. Should never return None.\n :raise: SolrSwitchedOff\n :raise SolrError: If ..."
67
false
IS-ENES-Data/esgf-pid
retrieve_dataset_handles_or_version_numbers_of_all_versions
15,629
LDU_FT/phaethon/kamene/activatePdpContextRequest
LDU_FT
[ "<BEGIN>\n## `post_build`", "Called implicitly before a packet is sent.\n<END>", "<BEGIN>\n## `float_encode`", "Convert the integer value to its IGMPv3 encoded time value if needed.", " If value < 128, return the value specified. If >= 128, encode as a floating \n point value. Value can be 0 - 31744.\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the activatePdpContextRequest 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 activatePdpContextRequest API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi...
ACTIVATE PDP CONTEXT REQUEST Section 9.5.1
"ACTIVATE PDP CONTEXT REQUEST Section 9.5.1"
477
false
phaethon/kamene
activatePdpContextRequest
15,630
LDU_FT/ponty/eagexp/export_image3d
LDU_FT
[ "<BEGIN>\n## `export_image3d`", "Exporting eagle .brd file into 3D image file\n using Eagle3D and povray.\n GUI is not displayed if ``pyvirtualdisplay`` is installed.\n If export is blocked somehow (e.g. popup window is displayed) then after timeout operation is canceled with exception.\n Problem can ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the export_image3d API. 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 export_image3d API. 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...
Exporting eagle .brd file into 3D image file using Eagle3D and povray. GUI is not displayed if ``pyvirtualdisplay`` is installed. If export is blocked somehow (e.g. popup window is displayed) then after timeout operation is canceled with exception. Problem can be investigated by setting 'showgui' flag. ...
"Exporting eagle .brd file into 3D image file\n using Eagle3D and povray.\n GUI is not displayed if ``pyvirtualdisplay`` is installed.\n If export is blocked somehow (e.g. popup window is displayed) then after timeout operation is canceled with exception.\n Problem can be investigated by setting 'showgui' f...
35
false
ponty/eagexp
export_image3d
15,631
LDU_FT/pvlib/pvlib-python/ephemeris
LDU_FT
[ "<BEGIN>\n## `systemdef`", "Generates a dict of system parameters used throughout a simulation.", " Parameters\n ----------", " meta : dict\n meta dict either generated from a TMY file using readtmy2 or\n readtmy3, or a dict containing at least the following fields:", " ===...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the ephemeris API. 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 ephemeris API. 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...
Python-native solar position calculator. The accuracy of this code is not guaranteed. Consider using the built-in spa_c code or the PyEphem library. Parameters ---------- time : pandas.DatetimeIndex latitude : float longitude : float pressure : float or Series, default 101325 Am...
"Python-native solar position calculator.\n The accuracy of this code is not guaranteed.\n Consider using the built-in spa_c code or the PyEphem library.\n\n Parameters\n ----------\n time : pandas.DatetimeIndex\n latitude : float\n longitude : float\n pressure : float or Series, default 101325\...
1,499
true
pvlib/pvlib-python
ephemeris
15,632
LDU_FT/PedalPi/PluginsManager/save_bank
LDU_FT
[ "<BEGIN>\n## `load`", "Load the index file and reorder the banks based in order listed in index", " :param list[Indexable] indexables: Banks that will be reordered based in index file\n :return list[Bank]: Banks reordered\n<END>", "<BEGIN>\n## `register`", "Register an observer for it be notif...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the save_bank API. 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 save_bank API. 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...
Save the bank in your file :param Bank bank: Bank that will be persisted
"Save the bank in your file\n\n :param Bank bank: Bank that will be persisted"
139
false
PedalPi/PluginsManager
save_bank
15,633
LDU_FT/RetailMeNotSandbox/acky/move
LDU_FT
[ "<BEGIN>\n## `destroy`", "Release an EIP. If the EIP was allocated for a VPC instance, an\n AllocationId(aid) must be provided instead of a PublicIp. Setting\n disassociate to True will attempt to disassociate the IP before\n releasing it (required for associated nondefault VPC instances).\n<...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the move API. 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 move API. 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...
Copy a single S3 object to another S3 location, then delete the original object.
"Copy a single S3 object to another S3 location, then delete the\n original object."
32
false
RetailMeNotSandbox/acky
move
15,634
LDU_FT/mandiant/ioc_writer/make_eventlogitem_eid
LDU_FT
[ "<BEGIN>\n## `get_embedded_yara`", "Extract YARA signatures embedded in Yara/Yara indicatorItem nodes.\n This is done regardless of logic structure in the OpenIOC.\n<END>", "<BEGIN>\n## `get_yara_condition_string`", "get_yara_condition_string", " input\n indicator_node: this is the ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the make_eventlogitem_eid API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the make_eventlogitem_eid API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Create a node for EventLogItem/EID :return: A IndicatorItem represented as an Element node
"Create a node for EventLogItem/EID\n \n :return: A IndicatorItem represented as an Element node"
320
false
mandiant/ioc_writer
make_eventlogitem_eid
15,635
LDU_FT/datadesk/django-bakery/build_dated_queryset
LDU_FT
[ "<BEGIN>\n## `serve`", "Serve static files below a given point in the directory structure.", " To use, put a URL pattern such as::", " (r'^(?P<path>.*)$', 'django.views.static.serve',\n {'document_root' : '/path/to/my/files/'})", " in your URLconf. You must provide the ``document_roo...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the build_dated_queryset 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 build_dated_queryset API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Build pages for all years in the queryset.
"Build pages for all years in the queryset."
104
false
datadesk/django-bakery
build_dated_queryset
15,636
LDU_FT/timothydmorton/isochrones/fit_multinest
LDU_FT
[ "<BEGIN>\n## `interp_box`", "box is 8x3 array, though not really a box", " values is length-8 array, corresponding to values at the \"box\" coords", " TODO: should make power `p` an argument\n<END>", "<BEGIN>\n## `interp_values`", "mass_arr, age_arr, feh_arr are all arrays at which values are desire...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the fit_multinest API. 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 fit_multinest API. 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...
Fits model using MultiNest, via pymultinest. :param n_live_points: Number of live points to use for MultiNest fit. :param basename: Where the MulitNest-generated files will live. By default this will be in a folder named `chains` in the current worki...
"Fits model using MultiNest, via pymultinest. \n\n :param n_live_points:\n Number of live points to use for MultiNest fit.\n\n :param basename:\n Where the MulitNest-generated files will live. \n By default this will be in a folder named `chains`\n in the curr...
314
false
timothydmorton/isochrones
fit_multinest
15,637
LDU_FT/joealcorn/xbox/read
LDU_FT
[ "<BEGIN>\n## `_get`", "Makes a GET request, setting Authorization\n header by default\n<END>", "<BEGIN>\n## `_post`", "Makes a POST request, setting Authorization\n header by default\n<END>", "<BEGIN>\n## `_post_json`", "Makes a POST request, setting Authorization\n and Content-Type h...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the read API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the read API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
Similar to :meth:`httplib.HTTPResponse.read`, but with two additional parameters: ``decode_content`` and ``cache_content``. :param amt: How much of the content to read. If specified, caching is skipped because it doesn't make sense to cache partial content as the full ...
"Similar to :meth:`httplib.HTTPResponse.read`, but with two additional\n parameters: ``decode_content`` and ``cache_content``.\n\n :param amt:\n How much of the content to read. If specified, caching is skipped\n because it doesn't make sense to cache partial content as the full\n ...
62
false
joealcorn/xbox
read
15,638
LDU_FT/RockFeng0/rtsf/_run_grid_multithread
LDU_FT
[ "<BEGIN>\n## `get_summary`", "summarize the report data\r\n @param list_all: a list which save the report data\r\n @param kwargs: such as\r\n show_all: True/False report show all status cases\r\n proj_name: project name \r\n home_page: ho...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _run_grid_multithread 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 _run_grid_multithread API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
running case with mutil process to support selenium grid-mode(multiple web) and appium grid-mode(multiple devices). @param func: function object @param iterables: iterable objects
"running case with mutil process to support selenium grid-mode(multiple web) and appium grid-mode(multiple devices). \r\n @param func: function object\r\n @param iterables: iterable objects"
53
false
RockFeng0/rtsf
_run_grid_multithread
15,639
LDU_FT/Autodesk/pyccc/get_global_vars
LDU_FT
[ "<BEGIN>\n## `persistent_id`", "Tags objects with a persistent ID, but do NOT emit it\n<END>", "<BEGIN>\n## `open`", "Return file-like object (actually opens the file for this class)\n<END>", "<BEGIN>\n## `_open_tmpfile`", "Open a temporary, unique file in CACHEDIR (/tmp/cyborgcache) by default.\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_global_vars API. 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_global_vars API. 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...
Store any methods or variables bound from the function's closure Args: func (function): function to inspect Returns: dict: mapping of variable names to globally bound VARIABLES
"Store any methods or variables bound from the function's closure\n\n Args:\n func (function): function to inspect\n\n Returns:\n dict: mapping of variable names to globally bound VARIABLES"
114
false
Autodesk/pyccc
get_global_vars
15,640
LDU_FT/gtaylor/python-colormath/get_value_tuple
LDU_FT
[ "<BEGIN>\n## `get_value_tuple`", "Returns a tuple of the color's values (in order). For example,\n an LabColor object will return (lab_l, lab_a, lab_b), where each\n member of the tuple is the float value for said variable.\n<END>", "<BEGIN>\n## `set_observer`", "Validates and sets the color's o...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_value_tuple API. 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_value_tuple API. 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 tuple of the color's values (in order). For example, an LabColor object will return (lab_l, lab_a, lab_b), where each member of the tuple is the float value for said variable.
"Returns a tuple of the color's values (in order). For example,\n an LabColor object will return (lab_l, lab_a, lab_b), where each\n member of the tuple is the float value for said variable."
133
false
gtaylor/python-colormath
get_value_tuple
15,641
LDU_FT/NicolasLM/spinach/inspect_periodic_tasks
LDU_FT
[ "<BEGIN>\n## `_reset`", "Initialization that must happen before the arbiter is (re)started\n<END>", "<BEGIN>\n## `attach_tasks`", "Attach a set of tasks.", " A task cannot be scheduled or executed before it is attached to an\n Engine.", " >>> tasks = Tasks()\n >>> spin.attach_t...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the inspect_periodic_tasks 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 inspect_periodic_tasks API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
Get the next periodic task schedule. Used only for debugging and during tests.
"Get the next periodic task schedule.\n\n Used only for debugging and during tests."
93
false
NicolasLM/spinach
inspect_periodic_tasks
15,642
LDU_FT/rapidpro/expressions/_make_result
LDU_FT
[ "<BEGIN>\n## `_read_requirements`", "Returns a list of package requirements read from the file.\n<END>", "<BEGIN>\n## `field`", "Reference a field in string separated by a delimiter\n<END>", "<BEGIN>\n## `epoch`", "Converts the given date to the number of seconds since January 1st, 1970 UTC\n<END>", "<B...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _make_result API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _make_result API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
Makes a date or datetime or time object from a map of component values :param values: the component values :param now: the current now :param timezone: the current timezone :return: the date, datetime, time or none if values are invalid
"Makes a date or datetime or time object from a map of component values\n :param values: the component values\n :param now: the current now\n :param timezone: the current timezone\n :return: the date, datetime, time or none if values are invalid"
124
false
rapidpro/expressions
_make_result
15,643
LDU_FT/acorg/dark-matter/codonInformation
LDU_FT
[ "<BEGIN>\n## `iter`", "Extract BLAST records and yield C{ReadAlignments} instances.", " For each file except the first, check that the BLAST parameters are\n compatible with those found (above, in __init__) in the first file.", " @return: A generator that yields C{ReadAlignments} instance...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the codonInformation API. 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 codonInformation API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Take two C{list} of codons, and returns information about the min and max distance between them. @param codon1: a C{list} of codons. @param codon2: a C{list} of codons. @return: a dict whose keys are C{int} distances and whose values are lists of pairs of codons.
"Take two C{list} of codons, and returns information about the min and\n max distance between them.\n\n @param codon1: a C{list} of codons.\n @param codon2: a C{list} of codons.\n\n @return: a dict whose keys are C{int} distances and whose values are lists\n of pairs of codons."
601
false
acorg/dark-matter
codonInformation
15,644
LDU_FT/osrg/ryu/is_valid_ext_comm_attr
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 is_valid_ext_comm_attr API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_valid_ext_comm_attr API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
Validates *attr* as string representation of RT or SOO. Returns True if *attr* is as per our convention of RT or SOO, else False. Our convention is to represent RT/SOO is a string with format: *global_admin_part:local_admin_path*
"Validates *attr* as string representation of RT or SOO.\n\n Returns True if *attr* is as per our convention of RT or SOO, else\n False. Our convention is to represent RT/SOO is a string with format:\n *global_admin_part:local_admin_path*"
1,172
true
osrg/ryu
is_valid_ext_comm_attr
15,645
LDU_FT/frejanordsiek/hdf5storage/update_type_lookups
LDU_FT
[ "<BEGIN>\n## `update_type_lookups`", "Update type and typestring lookup dicts.", " Must be called once the ``types`` and ``python_type_strings``\n attributes are set so that ``type_to_typestring`` and\n ``typestring_to_type`` are constructed.", " .. versionadded:: 0.2", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update_type_lookups 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 update_type_lookups 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...
Update type and typestring lookup dicts. Must be called once the ``types`` and ``python_type_strings`` attributes are set so that ``type_to_typestring`` and ``typestring_to_type`` are constructed. .. versionadded:: 0.2 Notes ----- Subclasses need to call this f...
"Update type and typestring lookup dicts.\n\n Must be called once the ``types`` and ``python_type_strings``\n attributes are set so that ``type_to_typestring`` and\n ``typestring_to_type`` are constructed.\n\n .. versionadded:: 0.2\n\n Notes\n -----\n Subclasses need to ...
264
false
frejanordsiek/hdf5storage
update_type_lookups
15,646
LDU_FT/DaveMcEwan/ndim/pts_on_bezier_curve
LDU_FT
[ "<BEGIN>\n## `pt_on_bezier_curve`", "Return point at t on bezier curve defined by control points P.\n<END>", "<BEGIN>\n## `pts_on_bezier_curve`", "Return list N+1 points representing N line segments on bezier curve\n defined by control points P.\n<END>", "<BEGIN>\n## `bezier_curve_approx_len`", "Return a...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the pts_on_bezier_curve 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 pts_on_bezier_curve API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
Return list N+1 points representing N line segments on bezier curve defined by control points P.
"Return list N+1 points representing N line segments on bezier curve\n defined by control points P."
40
false
DaveMcEwan/ndim
pts_on_bezier_curve
15,647
LDU_FT/ianlini/bistiming/get_percentage
LDU_FT
[ "<BEGIN>\n## `get_percentage`", "Get the cumulative time percentage of each stopwatch (including the current split).", " Returns\n -------\n cumulative_elapsed_time_percentage : List[float]\n<END>", "<BEGIN>\n## `get_mean_per_split`", "Get the mean elapsed time per split of each stopwat...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_percentage API. 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_percentage API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
Get the cumulative time percentage of each stopwatch (including the current split). Returns ------- cumulative_elapsed_time_percentage : List[float]
"Get the cumulative time percentage of each stopwatch (including the current split).\n\n Returns\n -------\n cumulative_elapsed_time_percentage : List[float]"
22
false
ianlini/bistiming
get_percentage
15,648
LDU_FT/refinery29/chassis/retrieve_object
LDU_FT
[ "<BEGIN>\n## `detect_circle`", "Wrapper for recursive _detect_circle function\n<END>", "<BEGIN>\n## `_detect_circle`", "Recursively iterate over nodes checking\n if we've traveled to that node before.\n<END>", "<BEGIN>\n## `_do`", "Recursive method to instantiate services\n<END>", "<BEGIN>\n## `_...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the retrieve_object API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the retrieve_object API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
Retrieve an object from Redis using a pipeline. Arguments: template: a dictionary containg the keys for the object and template strings for the corresponding redis keys. The template string uses named string interpolation format. Example: { 'username': '...
"Retrieve an object from Redis using a pipeline.\n\n Arguments:\n template: a dictionary containg the keys for the object and\n template strings for the corresponding redis keys. The template\n string uses named string interpolation format. Example:\n\n {\n 'use...
75
false
refinery29/chassis
retrieve_object
15,649
LDU_FT/woolfson-group/isambard/assign_force_field
LDU_FT
[ "<BEGIN>\n## `covalent_bonds`", "Returns all the covalent bonds in a list of `Atom` pairs.", " Notes\n -----\n Uses information `element_data`, which can be accessed directly\n through this module i.e. `isambard.ampal.interactions.element_data`.", " Parameters\n ----------\n atoms : [(`At...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the assign_force_field 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 assign_force_field 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...
Assigns force field parameters to Atoms in the AMPAL object. Parameters ---------- ff: BuffForceField The force field to be used for scoring. mol2: bool, optional If true, mol2 style labels will also be used.
"Assigns force field parameters to Atoms in the AMPAL object.\n\n Parameters\n ----------\n ff: BuffForceField\n The force field to be used for scoring.\n mol2: bool, optional\n If true, mol2 style labels will also be used."
880
false
woolfson-group/isambard
assign_force_field
15,650
LDU_FT/rlisagor/pynetlinux/iterifs
LDU_FT
[ "<BEGIN>\n## `iterbridges`", "Iterate over all the bridges in the system.\n<END>", "<BEGIN>\n## `iterifs`", "Iterate over all the interfaces in this bridge.\n<END>", "<BEGIN>\n## `addif`", "Add the interface with the given name to this bridge. Equivalent to\n brctl addif [bridge] [interface].\n...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the iterifs API. 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 iterifs API. 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...
Iterate over all the interfaces in this bridge.
"Iterate over all the interfaces in this bridge."
23
false
rlisagor/pynetlinux
iterifs
15,651
LDU_FT/proycon/clam/loadmetadata
LDU_FT
[ "<BEGIN>\n## `convertforinput`", "Convert from target format into one of the source formats. Relevant if converters are used in InputTemplates. Metadata already is metadata for the to-be-generated file. 'filepath' is both the source and the target file, the source file will be erased and overwritten with the conv...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the loadmetadata API. 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 loadmetadata API. 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...
Load metadata for this file. This is usually called automatically upon instantiation, except if explicitly disabled. Works both locally as well as for clients connecting to a CLAM service.
"Load metadata for this file. This is usually called automatically upon instantiation, except if explicitly disabled. Works both locally as well as for clients connecting to a CLAM service."
194
false
proycon/clam
loadmetadata
15,652
LDU_FT/IceflowRE/unidown/run
LDU_FT
[ "<BEGIN>\n## `from_protobuf`", "Constructor from protobuf.", " :param proto: protobuf structure\n :type proto: ~unidown.plugin.protobuf.link_item_pb2.LinkItemProto\n :return: the LinkItem\n :rtype: ~unidown.plugin.link_item.LinkItem\n :raises ValueError: name of LinkItem does ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the run API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the run API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
Run a plugin so use the download routine and clean up after. :param plugin_name: name of plugin :type plugin_name: str :param options: parameters which will be send to the plugin initialization :type options: List[str] :return: success :rtype: ~unidown.plugin.plugin_state.PluginState
"Run a plugin so use the download routine and clean up after.\n\n :param plugin_name: name of plugin\n :type plugin_name: str\n :param options: parameters which will be send to the plugin initialization\n :type options: List[str]\n :return: success\n :rtype: ~unidown.plugin.plugin_state.PluginState"
88
false
IceflowRE/unidown
run
15,653
LDU_FT/475Cumulus/TBone/create_app_collections
LDU_FT
[ "<BEGIN>\n## `request_args`", "Returns the arguments passed with the request in a dictionary.\n Returns both URL resolved arguments and query string arguments.\n<END>", "<BEGIN>\n## `connect`", "Connects a signal to a receiver function", " :param receiver:\n The callback function wh...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_app_collections API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_app_collections API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
load all models in app and create collections in db with specified indices
"load all models in app and create collections in db with specified indices"
100
false
475Cumulus/TBone
create_app_collections
15,654
LDU_FT/linkedin/luminol/align
LDU_FT
[ "<BEGIN>\n## `_analyze_root_causes`", "Conduct root cause analysis.\n The first metric of the list is taken as the root cause right now.\n<END>", "<BEGIN>\n## `_load`", "Load time series into a TimeSeries object.\n :param timeseries: a TimeSeries, a dictionary or a path to a csv file(str).\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the align API. 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 align API. 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...
Align two time series so that len(self) == len(other) and self.timstamps == other.timestamps. :return: :tuple:(`TimeSeries` object(the aligned self), `TimeSeries` object(the aligned other))
"Align two time series so that len(self) == len(other) and self.timstamps == other.timestamps.\n\n :return: :tuple:(`TimeSeries` object(the aligned self), `TimeSeries` object(the aligned other))"
95
false
linkedin/luminol
align
15,655
LDU_FT/AoiKuiyuyou/AoikLiveReload/build_ctx
LDU_FT
[ "<BEGIN>\n## `main`", "Main function.", " :return:\n None.\n<END>", "<BEGIN>\n## `start_watcher_thread`", "Start watcher thread.", " :return:\n Watcher thread object.\n<END>", "<BEGIN>\n## `run_watcher`", "Watcher thread's function.", " :return:\n None.\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the build_ctx API. 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 build_ctx API. 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...
Decorator that makes decorated function use BuildContext instead of \ Context instance. BuildContext instance has more methods. :param pythonpath: Path or list of paths to add to environment variable PYTHONPATH. Each path can be absolute path, or relative path relative to top directory. ...
"Decorator that makes decorated function use BuildContext instead of \\\n Context instance. BuildContext instance has more methods.\n\n :param pythonpath: Path or list of paths to add to environment variable\n PYTHONPATH. Each path can be absolute path, or relative path relative\n to top directory.\...
216
false
AoiKuiyuyou/AoikLiveReload
build_ctx
15,656
LDU_FT/fronzbot/blinkpy/refresh
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 refresh API. 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 refresh API. 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 a system refresh. :param force_cache: Force an update of the camera cache
"Perform a system refresh.\n\n :param force_cache: Force an update of the camera cache"
71
false
fronzbot/blinkpy
refresh
15,657
LDU_FT/bhmm/bhmm/compute_viterbi_paths
LDU_FT
[ "<BEGIN>\n## `_forward_backward`", "Estimation step: Runs the forward-back algorithm on trajectory with index itraj", " Parameters\n ----------\n itraj : int\n index of the observation trajectory to process", " Results\n -------\n logprob : float\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the compute_viterbi_paths API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the compute_viterbi_paths API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Computes the viterbi paths using the current HMM model
"Computes the viterbi paths using the current HMM model"
497
false
bhmm/bhmm
compute_viterbi_paths
15,658
LDU_FT/srittau/python-asserts/assert_is_instance
LDU_FT
[ "<BEGIN>\n## `assert_true`", "Fail the test unless the expression is truthy.", " >>> assert_true(\"Hello World!\")\n >>> assert_true(\"\")\n Traceback (most recent call last):\n ...\n AssertionError: '' is not truthy", " The following msg_fmt arguments are supported:\n * msg - the def...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the assert_is_instance 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 assert_is_instance 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...
Fail if an object is not an instance of a class or tuple of classes. >>> assert_is_instance(5, int) >>> assert_is_instance('foo', (str, bytes)) >>> assert_is_instance(5, str) Traceback (most recent call last): ... AssertionError: 5 is an instance of <class 'int'>, expected <class 'str'> ...
"Fail if an object is not an instance of a class or tuple of classes.\n\n >>> assert_is_instance(5, int)\n >>> assert_is_instance('foo', (str, bytes))\n >>> assert_is_instance(5, str)\n Traceback (most recent call last):\n ...\n AssertionError: 5 is an instance of <class 'int'>, expected <class 's...
131
false
srittau/python-asserts
assert_is_instance
15,659
LDU_FT/pyblish/pyblish-qml/add_exclusion
LDU_FT
[ "<BEGIN>\n## `process`", "Given JSON objects from client, perform actual processing", " Arguments:\n plugin (dict): JSON representation of plug-in to process\n instance (dict, optional): JSON representation of Instance to\n be processed.\n action (str, opti...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_exclusion API. 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 add_exclusion API. 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...
Exclude item if `role` equals `value` Attributes: role (int, string): Qt role or name to compare `value` to value (object): Value to exclude
"Exclude item if `role` equals `value`\n\n Attributes:\n role (int, string): Qt role or name to compare `value` to\n value (object): Value to exclude"
272
false
pyblish/pyblish-qml
add_exclusion
15,660
LDU_FT/sidecars/python-quickbooks/json_filter
LDU_FT
[ "<BEGIN>\n## `get_authorize_url`", "Returns the Authorize URL as returned by QB, and specified by OAuth 1.0a.\n :return URI:\n<END>", "<BEGIN>\n## `get_access_tokens`", "Wrapper around get_auth_session, returns session, and sets access_token and\n access_token_secret on the QB Object.\n :...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the json_filter API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the json_filter API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
filter out properties that have names starting with _ or properties that have a value of None
"filter out properties that have names starting with _\n or properties that have a value of None"
26
false
sidecars/python-quickbooks
json_filter
15,661
LDU_FT/hyperledger/indy-node/prepare_attr_for_state
LDU_FT
[ "<BEGIN>\n## `init_domain_ledger`", "This is usually an implementation of Ledger\n<END>", "<BEGIN>\n## `update_txn_with_extra_data`", "All the data of the transaction might not be stored in ledger so the\n extra data that is omitted from ledger needs to be fetched from the\n appropriate data sto...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the prepare_attr_for_state 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 prepare_attr_for_state API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
Make key(path)-value pair for state from ATTRIB or GET_ATTR :return: state path, state value, value for attribute store
"Make key(path)-value pair for state from ATTRIB or GET_ATTR\n :return: state path, state value, value for attribute store"
109
false
hyperledger/indy-node
prepare_attr_for_state
15,662
LDU_FT/src-d/modelforge/save
LDU_FT
[ "<BEGIN>\n## `initialize_registry`", "Initialize the registry and the index.", " :param args: :class:`argparse.Namespace` with \"backend\", \"args\", \"force\" and \"log_level\".\n :param backend: Backend which is responsible for working with model files.\n :param log: Logger supplied by supply_backend...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the save API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the save API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
Serialize the model to a file. :param output: Path to the file or a file object. :param series: Name of the model series. If it is None, it will be taken from \ the current value; if the current value is empty, an error is raised. :param deps: List of the dependencies. ...
"Serialize the model to a file.\n\n :param output: Path to the file or a file object.\n :param series: Name of the model series. If it is None, it will be taken from \\\n the current value; if the current value is empty, an error is raised.\n :param deps: List of the dependenc...
118
false
src-d/modelforge
save
15,663
LDU_FT/gusutabopb/aioinflux/iterpoints
LDU_FT
[ "<BEGIN>\n## `lineprotocol`", "Adds ``to_lineprotocol`` method to arbitrary user-defined classes", " :param cls: Class to monkey-patch\n :param schema: Schema dictionary (attr/type pairs).\n :param rm_none: Whether apply a regex to remove ``None`` values.\n If ``False``, passing ``None`` values ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the iterpoints API. 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 iterpoints API. 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...
Iterates a response JSON yielding data point by point. Can be used with both regular and chunked responses. By default, returns just a plain list of values representing each point, without column names, or other metadata. In case a specific format is needed, an optional ``parser`` argument can be pass...
"Iterates a response JSON yielding data point by point.\n\n Can be used with both regular and chunked responses.\n By default, returns just a plain list of values representing each point,\n without column names, or other metadata.\n\n In case a specific format is needed, an optional ``parser`` argument can ...
41
false
gusutabopb/aioinflux
iterpoints
15,664
LDU_FT/tipsi/aiozk/parse
LDU_FT
[ "<BEGIN>\n## `deserialize`", "Deserializes the given raw bytes into an instance.", " Since this is a subclass of ``Part`` but a top-level one (i.e. no other\n subclass of ``Part`` would have a ``Response`` as a part) this merely\n has to parse the raw bytes and discard the resulting offset....
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse API. 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 parse API. 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...
Given a buffer and offset, returns the parsed value and new offset. Calls `parse()` on the given buffer for each sub-part in order and creates a new instance with the results.
"Given a buffer and offset, returns the parsed value and new offset.\n\n Calls `parse()` on the given buffer for each sub-part in order and\n creates a new instance with the results."
38
false
tipsi/aiozk
parse
15,665
LDU_FT/CiscoUcs/UcsPythonSDK/Compare
LDU_FT
[ "<BEGIN>\n## `get_boot_device`", "Get the current boot device for the node.\r", " Provides the current boot device of the node. Be aware that not\r\n all drivers support this.\r", " :raises: InvalidParameterValue if any connection parameters are\r\n incorrect.\r...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the Compare API. 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 Compare API. 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...
Internal method to support CompareManagedObject functionality.
"Internal method to support CompareManagedObject functionality."
179
false
CiscoUcs/UcsPythonSDK
Compare
15,666
LDU_FT/hharnisc/python-meteor/logout
LDU_FT
[ "<BEGIN>\n## `_reconnected`", "Reconnect", " Currently we get a new session every time so we have\n to clear all the data an resubscribe\n<END>", "<BEGIN>\n## `login`", "Login with a username and password", " Arguments:\n user - username or email address\n password - the...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the logout API. 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 logout API. 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 ...
Logout a user Keyword Arguments: callback - callback function called when the user has been logged out
"Logout a user\n\n Keyword Arguments:\n callback - callback function called when the user has been logged out"
40
false
hharnisc/python-meteor
logout
15,667
LDU_FT/SystemRDL/systemrdl-compiler/subprocess_run
LDU_FT
[ "<BEGIN>\n## `derive_coordinates`", "Depending on the compilation source, some members of the SourceRef\n object may be incomplete.\n Calling this function performs the necessary derivations to complete the\n object.\n<END>", "<BEGIN>\n## `format_message`", "Formats the message prior to e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the subprocess_run API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the subprocess_run API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
Run command with arguments and return a CompletedProcess instance. The returned instance will have attributes args, returncode, stdout and stderr. By default, stdout and stderr are not captured, and those attributes will be None. Pass stdout=PIPE and/or stderr=PIPE in order to capture them. If check i...
"Run command with arguments and return a CompletedProcess instance.\n\n The returned instance will have attributes args, returncode, stdout and\n stderr. By default, stdout and stderr are not captured, and those attributes\n will be None. Pass stdout=PIPE and/or stderr=PIPE in order to capture them.\n\n If ...
207
false
SystemRDL/systemrdl-compiler
subprocess_run
15,668
LDU_FT/datadotworld/data.world-py/configure
LDU_FT
[ "<BEGIN>\n## `download_dataset`", "Download dataset\n This endpoint will return a .zip containing all files within the dataset as originally uploaded. If you are interested retrieving clean data extracted from those files by data.world, check out `GET:/sql` and `GET:/sparql`.\n This method makes a...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the configure API. 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 configure API. 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...
Use this command to configure API tokens
"Use this command to configure API tokens"
398
false
datadotworld/data.world-py
configure
15,669
LDU_FT/synw/dataswim/to_int
LDU_FT
[ "<BEGIN>\n## `ndlayout_`", "Create a Holoview NdLayout from a dictionnary of chart objects\n<END>", "<BEGIN>\n## `layout_`", "Returns a Holoview Layout from chart objects\n<END>", "<BEGIN>\n## `_hline_bokeh_`", "Returns an horizontal line from a column mean value\n<END>", "<BEGIN>\n## `_sline_bokeh`", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the to_int API. 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_int API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Convert some column values to integers :param \*cols: names of the colums :type \*cols: str, at least one :param \*\*kwargs: keyword arguments for ``pd.to_numeric`` :type \*\*kwargs: optional :example: ``ds.to_int("mycol1", "mycol2", errors="coerce")``
"Convert some column values to integers\n\n :param \\*cols: names of the colums\n :type \\*cols: str, at least one\n :param \\*\\*kwargs: keyword arguments for ``pd.to_numeric``\n :type \\*\\*kwargs: optional\n\n :example: ``ds.to_int(\"mycol1\", \"mycol2\", errors=\"coerce\")``"
393
false
synw/dataswim
to_int
15,670
LDU_FT/MitalAshok/objecttools/as_decorator
LDU_FT
[ "<BEGIN>\n## `create`", "Create a new :class:`Singleton` class", " :param name: Name of the new class (Used in its __repr__ if no object_name)\n :type name: str\n :param dict: Optional dictionary of the classes' attributes\n :type dict: Optional[Dict[str, Any]]\n :param object...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the as_decorator API. 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 as_decorator API. 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...
Use :class:`Singleton` as a decorator for Python 2/3 compatibility:: @Singleton.as_decorator class SingletonType(object): def __repr__(self): return 'singleton' singleton = SingletonType() :param cls: Class to become a singleton ...
"Use :class:`Singleton` as a decorator for Python 2/3 compatibility::\n\n @Singleton.as_decorator\n class SingletonType(object):\n def __repr__(self):\n return 'singleton'\n\n singleton = SingletonType()\n\n :param cls: Class to become a singleto...
24
false
MitalAshok/objecttools
as_decorator
15,671
LDU_FT/fedora-infra/fedora-messaging/pauseProducing
LDU_FT
[ "<BEGIN>\n## `cli`", "The fedora-messaging command line interface.\n<END>", "<BEGIN>\n## `consume`", "Consume messages from an AMQP queue using a Python callback.\n<END>", "<BEGIN>\n## `_consume_errback`", "Handle any errors that occur during consumer registration.\n<END>", "<BEGIN>\n## `_consume_callba...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the pauseProducing API. 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 pauseProducing API. 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...
Pause the reception of messages by canceling all existing consumers. This does not disconnect from the server. Message reception can be resumed with :meth:`resumeProducing`. Returns: Deferred: fired when the production is paused.
"Pause the reception of messages by canceling all existing consumers.\n This does not disconnect from the server.\n\n Message reception can be resumed with :meth:`resumeProducing`.\n\n Returns:\n Deferred: fired when the production is paused."
302
false
fedora-infra/fedora-messaging
pauseProducing
15,672