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/hydraplatform/hydra-base/get_links
LDU_FT
[ "<BEGIN>\n## `check_perm`", "Checks whether a user has permission to perform an action.\n The permission_code parameter should be a permission contained in tPerm.", " If the user does not have permission to perfom an action, a permission\n error is thrown.\n<END>", "<BEGIN>\n## `required_...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_links API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_links API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
Get all the links in a network. args: network_id (int): The network in which to search template_id (int): Only return links whose type is in this template.
"Get all the links in a network.\n args:\n network_id (int): The network in which to search\n template_id (int): Only return links whose type is in this template."
576
false
hydraplatform/hydra-base
get_links
6,873
LDU_FT/Autodesk/cryptorito/stderr_with_input
LDU_FT
[ "<BEGIN>\n## `polite_string`", "Returns a \"proper\" string that should work in both Py3/Py2\n<END>", "<BEGIN>\n## `not_a_string`", "It's probably not a string, in the sense\n that Python2/3 get confused about these things\n<END>", "<BEGIN>\n## `actually_flatten`", "Flatten iterables\n This is super...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the stderr_with_input API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the stderr_with_input API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Runs a command, passing something in stdin, and returning whatever came out from stdout
"Runs a command, passing something in stdin, and returning\n whatever came out from stdout"
36
false
Autodesk/cryptorito
stderr_with_input
6,874
LDU_FT/v1k45/python-qBittorrent/recheck
LDU_FT
[ "<BEGIN>\n## `_post`", "Method to perform POST request on the API.", " :param endpoint: Endpoint of the API.\n :param data: POST DATA for the request.\n :param kwargs: Other keyword arguments for requests.", " :return: Response of the POST request.\n<END>", "<BEGIN>\n## `_request...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the recheck API. 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 recheck API. 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...
Recheck torrents. :param infohash_list: Single or list() of infohashes.
"Recheck torrents.\n\n :param infohash_list: Single or list() of infohashes."
98
false
v1k45/python-qBittorrent
recheck
6,875
LDU_FT/autokey/autokey/send_key
LDU_FT
[ "<BEGIN>\n## `save`", "Called by the parent settings dialog when the user clicks on the Save button.\n Stores the current settings in the ConfigManager.\n<END>", "<BEGIN>\n## `_settings_str`", "Returns a human readable settings representation for logging purposes.\n<END>", "<BEGIN>\n## `_should_trigg...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the send_key API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the send_key API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
Send a keyboard event Usage: C{keyboard.send_key(key, repeat=1)} @param key: they key to be sent (e.g. "s" or "<enter>") @param repeat: number of times to repeat the key event
"Send a keyboard event\n \n Usage: C{keyboard.send_key(key, repeat=1)}\n \n @param key: they key to be sent (e.g. \"s\" or \"<enter>\")\n @param repeat: number of times to repeat the key event"
363
false
autokey/autokey
send_key
6,876
LDU_FT/SylvanasSun/FishFishJump/hash
LDU_FT
[ "<BEGIN>\n## `hash`", "function hash() implement to acquire hash value that use simply method that weighted sum.", " Parameters:\n -----------\n value: string\n the value is param of need acquire hash\n Returns:\n --------\n result...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the hash API. 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 hash API. 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...
function hash() implement to acquire hash value that use simply method that weighted sum. Parameters: ----------- value: string the value is param of need acquire hash Returns: -------- result hash code for value
"function hash() implement to acquire hash value that use simply method that weighted sum.\n\n Parameters:\n -----------\n value: string\n the value is param of need acquire hash\n Returns:\n --------\n result\n hash code fo...
97
false
SylvanasSun/FishFishJump
hash
6,877
LDU_FT/TrafficSenseMSD/SumoTools/subscribe
LDU_FT
[ "<BEGIN>\n## `getDistance2D`", "getDistance2D(double, double, double, double, boolean, boolean) -> double", " Returns the distance between the two coordinate pairs (x1,y1) and (x2,y2)", " If isGeo=True, coordinates are interpreted as longitude and latitude rather\n than cartesian coordina...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the subscribe API. 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 subscribe API. 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...
subscribe(string, list(integer), double, double) -> None Subscribe to one or more object values for the given interval.
"subscribe(string, list(integer), double, double) -> None\n\n Subscribe to one or more object values for the given interval."
475
false
TrafficSenseMSD/SumoTools
subscribe
6,878
LDU_FT/iblancasa/GitHubCity/__launchThreads
LDU_FT
[ "<BEGIN>\n## `export`", "Export all attributes of the user to a dict.", " :return: attributes of the user.\n :rtype: dict.\n<END>", "<BEGIN>\n## `__getContributions`", "Scrap the contributions from a GitHub profile.", " :param web: parsed web.\n :type web: BeautifulSoup node.\n...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the __launchThreads API. 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 __launchThreads API. 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...
Launch some threads and start to process users. :param numThreads: number of thrads to launch. :type numThreads: int.
"Launch some threads and start to process users.\n\n :param numThreads: number of thrads to launch.\n :type numThreads: int."
97
false
iblancasa/GitHubCity
__launchThreads
6,879
LDU_FT/inveniosoftware-contrib/json-merger/merge
LDU_FT
[ "<BEGIN>\n## `dedupe_list`", "Remove duplicates from a list preserving the order.", " We might be tempted to use the list(set(l)) idiom, but it doesn't preserve\n the order, which hinders testability and does not work for lists with\n unhashable elements.\n<END>", "<BEGIN>\n## `keep_longest`", "Kee...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the merge API. 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 merge API. 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...
Populates result members. Performs the merge algorithm using the specified config and fills in the members that provide stats about the merging procedure. Attributes: merged_root: The result of the merge. aligned_root, aligned_head, aligned_update: Copies of root, head...
"Populates result members.\n\n Performs the merge algorithm using the specified config and fills in\n the members that provide stats about the merging procedure.\n\n Attributes:\n merged_root: The result of the merge.\n\n aligned_root, aligned_head, aligned_update: Copies of r...
54
false
inveniosoftware-contrib/json-merger
merge
6,880
LDU_FT/sryza/spark-timeseries/fit_model
LDU_FT
[ "<BEGIN>\n## `fit_model`", "Fits an EWMA model to a time series. Uses the first point in the time series as a starting\n value. Uses sum squared error as an objective function to optimize to find smoothing parameter\n The model for EWMA is recursively defined as S_t = (1 - a) * X_t + a * S_{t-1}, where\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the fit_model API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the fit_model API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
Fits an EWMA model to a time series. Uses the first point in the time series as a starting value. Uses sum squared error as an objective function to optimize to find smoothing parameter The model for EWMA is recursively defined as S_t = (1 - a) * X_t + a * S_{t-1}, where a is the smoothing parameter, X is t...
"Fits an EWMA model to a time series. Uses the first point in the time series as a starting\n value. Uses sum squared error as an objective function to optimize to find smoothing parameter\n The model for EWMA is recursively defined as S_t = (1 - a) * X_t + a * S_{t-1}, where\n a is the smoothing parameter, X ...
137
false
sryza/spark-timeseries
fit_model
6,881
LDU_FT/memphis-iis/GLUDB/map_index_val
LDU_FT
[ "<BEGIN>\n## `read_rec`", "Generator that yields keyed recs from store.\n<END>", "<BEGIN>\n## `set_db_application_prefix`", "Set the global app prefix and separator.\n<END>", "<BEGIN>\n## `find_by_index`", "Find records matching index query - defer to backend.\n<END>", "<BEGIN>\n## `_auto_init`", "Our...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the map_index_val API. 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 map_index_val API. 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...
Xform index_val so that it can be stored/queried.
"Xform index_val so that it can be stored/queried."
57
false
memphis-iis/GLUDB
map_index_val
6,882
LDU_FT/the01/python-floscraper/get
LDU_FT
[ "<BEGIN>\n## `prepare_headers`", "Prepare headers object for request (add cache information", " :param headers: Headers object\n :type headers: dict\n :param cache_info: Cache information to add\n :type cache_info: floscraper.models.CacheInfo\n :return: Prepared headers\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
Make get request to url (might use cache) :param url: Url to make request to :type url: str | unicode :param timeout: Timeout for request (default: None) None -> infinite timeout :type timeout: None | int | float :param headers: Headers to be passed along (default: N...
"Make get request to url (might use cache)\n\n :param url: Url to make request to\n :type url: str | unicode\n :param timeout: Timeout for request (default: None)\n None -> infinite timeout\n :type timeout: None | int | float\n :param headers: Headers to be passed along (de...
50
false
the01/python-floscraper
get
6,883
LDU_FT/PyCQA/pyflakes/source_statement
LDU_FT
[ "<BEGIN>\n## `syntaxError`", "There was a syntax error in C{filename}.", " @param filename: The path to the file with the syntax error.\n @ptype filename: C{unicode}\n @param msg: An explanation of the syntax error.\n @ptype msg: C{unicode}\n @param lineno: The line number whe...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the source_statement API. 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 source_statement API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Generate a source statement equivalent to the import.
"Generate a source statement equivalent to the import."
54
false
PyCQA/pyflakes
source_statement
6,884
LDU_FT/django-auth-ldap/django-auth-ldap/_get_or_create_user
LDU_FT
[ "<BEGIN>\n## `get_or_build_user`", "This must return a (User, built) 2-tuple for the given LDAP user.", " username is the Django-friendly username of the user. ldap_user.dn is\n the user's DN and ldap_user.attrs contains all of their LDAP\n attributes.", " The returned User object ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_or_create_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. T...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_or_create_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. T...
Loads the User model object from the database or creates it if it doesn't exist. Also populates the fields, subject to AUTH_LDAP_ALWAYS_UPDATE_USER.
"Loads the User model object from the database or creates it if it\n doesn't exist. Also populates the fields, subject to\n AUTH_LDAP_ALWAYS_UPDATE_USER."
65
false
django-auth-ldap/django-auth-ldap
_get_or_create_user
6,885
LDU_FT/timdiels/pytil/_value_equals
LDU_FT
[ "<BEGIN>\n## `load`", "Load configuration (from configuration files).", " Parameters\n ----------\n path : ~pathlib.Path or None\n Path to configuration file, which must exist; or path to directory\n containing a configuration file; or None.", " Returns\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _value_equals API. 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 _value_equals API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
Get whether 2 values are equal value1, value2 : ~typing.Any all_close : bool compare with np.isclose instead of ==
"Get whether 2 values are equal\n\n value1, value2 : ~typing.Any\n all_close : bool\n compare with np.isclose instead of =="
147
false
timdiels/pytil
_value_equals
6,886
LDU_FT/go-macaroon-bakery/py-macaroon-bakery/canonical_ops
LDU_FT
[ "<BEGIN>\n## `encode_caveat`", "Encrypt a third-party caveat.", " The third_party_info key holds information about the\n third party we're encrypting the caveat for; the key is the\n public/private key pair of the party that's adding the caveat.", " The caveat will be encoded according to the vers...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the canonical_ops API. 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 canonical_ops API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
Returns the given operations array sorted with duplicates removed. @param ops checker.Ops @return: checker.Ops
"Returns the given operations array sorted with duplicates removed.\n\n @param ops checker.Ops\n @return: checker.Ops"
223
false
go-macaroon-bakery/py-macaroon-bakery
canonical_ops
6,887
LDU_FT/s1s1ty/py-jsonq/reset
LDU_FT
[ "<BEGIN>\n## `__parse_json_data`", "Process Json data", " :@param data\n :@type data: json/dict", " :throws TypeError\n<END>", "<BEGIN>\n## `__parse_json_file`", "Process Json file data", " :@param file_path\n :@type file_path: string", " :@throws IOError\n<EN...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the reset API. 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 reset API. 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...
JsonQuery object cen be reset to new data according to given data or previously given raw Json data :@param data: {} :@type data: json/dict :@return self
"JsonQuery object cen be reset to new data\n\n according to given data or previously given raw Json data\n\n :@param data: {}\n :@type data: json/dict\n\n :@return self"
71
false
s1s1ty/py-jsonq
reset
6,888
LDU_FT/jut-io/jut-python-tools/is_default
LDU_FT
[ "<BEGIN>\n## `_print_jobs`", "internal method to print the provided jobs array in a nice tabular\n format\n<END>", "<BEGIN>\n## `debug`", "debug output goes to stderr so you can still redirect the stdout to a file\n or another program. Controlled by the JUT_DEBUG environment variable being\n present\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_default API. 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 is_default API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
returns True if the specified configuration is the default one
"returns True if the specified configuration is the default one"
72
false
jut-io/jut-python-tools
is_default
6,889
LDU_FT/ricequant/rqalpha/report
LDU_FT
[ "<BEGIN>\n## `buy_open`", "买入开仓。", " :param id_or_ins: 下单标的物\n :type id_or_ins: :class:`~Instrument` object | `str` | List[:class:`~Instrument`] | List[`str`]", " :param int amount: 下单手数", " :param float price: 下单价格,默认为None,表示 :class:`~MarketOrder`, 此参数主要用于简化 `style` 参数。", " :param style: 下...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the report API. 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 report API. 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 ...
[sys_analyser] Generate report from backtest output file
"[sys_analyser] Generate report from backtest output file"
254
false
ricequant/rqalpha
report
6,890
LDU_FT/telefonicaid/fiware-sdc/post
LDU_FT
[ "<BEGIN>\n## `_xml_to_dict`", "Convert RAW XML string to Python dict\n :param xml_to_convert: XML to convert (string/text)\n :return: Python dict with all XML data\n<END>", "<BEGIN>\n## `response_body_to_dict`", "Convert a XML or JSON response in a Python dict\n :param http_requests_response: 'Reques...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the post API. 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 post API. 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...
Launch HTTP POST request to the API with given arguments :param uri_pattern: string pattern of the full API url with keyword arguments (format string syntax) :param body: Raw Body content (string) (Plain/XML/JSON to be sent) :param headers: HTTP header (dict) :param parameters: Query par...
"Launch HTTP POST request to the API with given arguments\n :param uri_pattern: string pattern of the full API url with keyword arguments (format string syntax)\n :param body: Raw Body content (string) (Plain/XML/JSON to be sent)\n :param headers: HTTP header (dict)\n :param parameters: Quer...
60
false
telefonicaid/fiware-sdc
post
6,891
LDU_FT/vowatchka/palindromus/checkword
LDU_FT
[ "<BEGIN>\n## `check`", "Checks that some string, word or text are palindrome. Checking performs case-insensitive", "\t\t:param str somestr:\n\t\t It is some string that will be checked for palindrome", "\t\t:keyword int check:\n\t\t It is mode of checking. Follows modes are available:", "\t\t - ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the checkword API. 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 checkword API. 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...
Checks that some word is palindrome. Checking performs case-insensitive :param str someword: It is some string that will be checked for palindrome as word. What is the word see at help(palindromus.isword) :keyword dict interchange: It is dictionary of interchangeable letters :except T...
"Checks that some word is palindrome. Checking performs case-insensitive\n\t\t\n\t\t:param str someword:\n\t\t It is some string that will be checked for palindrome as word.\n\t\t What is the word see at help(palindromus.isword)\n\t\t\t\n\t\t:keyword dict interchange:\n\t\t It is dictionary of interchangeable ...
71
false
vowatchka/palindromus
checkword
6,892
LDU_FT/futurecolors/django-geoip/get_mod_func
LDU_FT
[ "<BEGIN>\n## `get_class`", "Convert a string version of a function name to the callable object.\n<END>", "<BEGIN>\n## `get_mod_func`", "Converts 'django.views.news.stories.story_detail' to\n ('django.views.news.stories', 'story_detail')", " Taken from django.core.urlresolvers\n<END>", "<BEGIN>\n## `...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_mod_func API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_mod_func API. 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...
Converts 'django.views.news.stories.story_detail' to ('django.views.news.stories', 'story_detail') Taken from django.core.urlresolvers
"Converts 'django.views.news.stories.story_detail' to\n ('django.views.news.stories', 'story_detail')\n\n Taken from django.core.urlresolvers"
34
false
futurecolors/django-geoip
get_mod_func
6,893
LDU_FT/ahawker/ulid/encode_ulid
LDU_FT
[ "<BEGIN>\n## `datetime`", "Creates a :class:`~datetime.datetime` instance (assumes UTC) from the Unix time value of the timestamp\n with millisecond precision.", " :return: Timestamp in datetime form.\n :rtype: :class:`~datetime.datetime`\n<END>", "<BEGIN>\n## `new`", "Create a new :cla...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the encode_ulid API. 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 encode_ulid API. 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...
Encode the given buffer to a :class:`~str` using Base32 encoding. .. note:: This uses an optimized strategy from the `NUlid` project for encoding ULID bytes specifically and is not meant for arbitrary encoding. :param value: Bytes to encode :type value: :class:`~bytes`, :class:`~bytearray`, or :cl...
"Encode the given buffer to a :class:`~str` using Base32 encoding.\n\n .. note:: This uses an optimized strategy from the `NUlid` project for encoding ULID\n bytes specifically and is not meant for arbitrary encoding.\n\n :param value: Bytes to encode\n :type value: :class:`~bytes`, :class:`~bytearray`,...
72
false
ahawker/ulid
encode_ulid
6,894
LDU_FT/muckamuck/stackility/read_config_info
LDU_FT
[ "<BEGIN>\n## `_init_boto3_clients`", "The utililty requires boto3 clients to CloudFormation.", " Args:\n None", " Returns:\n Good or Bad; True or False\n<END>", "<BEGIN>\n## `determine_drift`", "Determine the drift of the stack.", " Args:\n None", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the read_config_info API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the read_config_info API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Read the INI file Args: ini_file - path to the file Returns: A dictionary of stuff from the INI file Exits: 1 - if problems are encountered
"Read the INI file\n\n Args:\n ini_file - path to the file\n\n Returns:\n A dictionary of stuff from the INI file\n\n Exits:\n 1 - if problems are encountered"
89
false
muckamuck/stackility
read_config_info
6,895
LDU_FT/pennersr/django-allauth/_get_at_from_session
LDU_FT
[ "<BEGIN>\n## `_stash_user`", "Now, be aware, the following is quite ugly, let me explain:", " Even if the user credentials match, the authentication can fail because\n Django's default ModelBackend calls user_can_authenticate(), which\n checks `is_active`. Now, earlier versions of allauth d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_at_from_session 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_at_from_session 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 saved access token for private resources from the session.
"Get the saved access token for private resources from the session."
130
false
pennersr/django-allauth
_get_at_from_session
6,896
LDU_FT/SKA-ScienceDataProcessor/integration-prototype/generate_sb
LDU_FT
[ "<BEGIN>\n## `_check_status`", "SDP Status check.", " Do all the tests to determine, if the SDP state is\n \"broken\", what could be the cause, and return a\n suitable status message to be sent back by the calling\n function.\n<END>", "<BEGIN>\n## `allowed_transitions`", "Get target states allow...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the generate_sb API. 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 generate_sb API. 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...
Generate a Scheduling Block data object. Args: date (datetime.datetime): UTC date of the SBI project (str): Project Name programme_block (str): Programme Returns: str, Scheduling Block Instance (SBI) ID.
"Generate a Scheduling Block data object.\n\n Args:\n date (datetime.datetime): UTC date of the SBI\n project (str): Project Name\n programme_block (str): Programme\n\n Returns:\n str, Scheduling Block Instance (SBI) ID."
573
false
SKA-ScienceDataProcessor/integration-prototype
generate_sb
6,897
LDU_FT/daknuett/py_register_machine2/read
LDU_FT
[ "<BEGIN>\n## `int_to_bytes`", ".. _int_to_bytes:", "\tConverts the ``int`` ``int_`` to a ``bytes`` object.\n\t``len(result) == width``.", "\tIf ``width`` is None, a number of bytes that is able to hold the\n\tnumber is choosen, depending on ``int_.bit_length()``.", "\tSee also: bytes_to_int_\n<END>", "<BE...
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 a ``str`` from ``open_stream_in`` and convert it to an integer using ``ord``. The result will be truncated according to Integer_.
"Read a ``str`` from ``open_stream_in`` and convert it to an integer\n\t\tusing ``ord``. The result will be truncated according to Integer_."
154
false
daknuett/py_register_machine2
read
6,898
LDU_FT/jjjake/giganews/clean_up
LDU_FT
[ "<BEGIN>\n## `_download_article`", "Download a given article.", " :type article_number: str\n :param article_number: the article number to download.", " :type group: str\n :param group: the group that contains the article to be downloaded.", " :returns: nntplib article res...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the clean_up API. 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 clean_up API. 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...
Delete all of a groups local mbox, index, and state files. :type group: str :param group: group name :type identifier: str :param identifier: the identifier for the given group. :rtype: bool :returns: True
"Delete all of a groups local mbox, index, and state files.\n\n :type group: str\n :param group: group name\n\n :type identifier: str\n :param identifier: the identifier for the given group.\n\n :rtype: bool\n :returns: True"
36
false
jjjake/giganews
clean_up
6,899
LDU_FT/jazzband/inflect/a
LDU_FT
[ "<BEGIN>\n## `bysize`", "take a list of words and return a dict of sets sorted by word length\n e.g.\n ret[3]=set(['ant', 'cat', 'dog', 'pig'])\n ret[4]=set(['frog', 'goat'])\n ret[5]=set(['horse'])\n ret[8]=set(['elephant'])\n<END>", "<BEGIN>\n## `make_pl_si_lists`", "given a list of singular ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the a API. 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 docum...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the a API. 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 docum...
Return the appropriate indefinite article followed by text. The indefinite article is either 'a' or 'an'. If count is not one, then return count followed by text instead of 'a' or 'an'. Whitespace at the start and end is preserved.
"Return the appropriate indefinite article followed by text.\n\n The indefinite article is either 'a' or 'an'.\n\n If count is not one, then return count followed by text\n instead of 'a' or 'an'.\n\n Whitespace at the start and end is preserved."
90
false
jazzband/inflect
a
6,900
LDU_FT/KelSolaar/Oncilla/_readmodule
LDU_FT
[ "<BEGIN>\n## `reStructuredText_to_html`", "Outputs a reStructuredText file to html.", " :param input: Input reStructuredText file to convert.\n :type input: unicode\n :param output: Output html file.\n :type output: unicode\n :param css_file: Css file.\n :type css_file: unicode\n :return: D...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _readmodule API. 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 _readmodule API. 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...
Do the hard work for readmodule[_ex]. If INPACKAGE is given, it must be the dotted name of the package in which we are searching for a submodule, and then PATH must be the package search path; otherwise, we are searching for a top-level module, and PATH is combined with sys.path.
"Do the hard work for readmodule[_ex].\n\n If INPACKAGE is given, it must be the dotted name of the package in\n which we are searching for a submodule, and then PATH must be the\n package search path; otherwise, we are searching for a top-level\n module, and PATH is combined with sys.path."
33
false
KelSolaar/Oncilla
_readmodule
6,901
LDU_FT/inveniosoftware-attic/invenio-utils/handle_startendtag
LDU_FT
[ "<BEGIN>\n## `get_callable_signature_as_string`", "Return a string representing a callable.", " It is executed as if it would have been declared on the prompt.", " >>> def foo(arg1, arg2, arg3='val1', arg4='val2', *args, **argd):\n ... pass\n >>> get_callable_signature_as_string(foo)\n def ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the handle_startendtag 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 handle_startendtag 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 called for empty tags (e.g. <br />)
"Function called for empty tags (e.g. <br />)"
424
false
inveniosoftware-attic/invenio-utils
handle_startendtag
6,902
LDU_FT/networks-lab/tidyextractors/expand_on
LDU_FT
[ "<BEGIN>\n## `_col_type_set`", "Determines the set of types present in a DataFrame column.", " :param str col: A column name.\n :param pandas.DataFrame df: The dataset. Usually ``self._data``.\n :return: A set of Types.\n<END>", "<BEGIN>\n## `_drop_collections`", "Drops columns containi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the expand_on API. 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 expand_on API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
Returns a reshaped version of extractor's data, where unique combinations of values from col1 and col2 are given individual rows. Example function call from ``tidymbox``: .. code-block:: python self.expand_on('From', 'To', ['MessageID', 'Recipient'], rename1='From', rename2='Recip...
"Returns a reshaped version of extractor's data, where unique combinations of values from col1 and col2\n are given individual rows.\n\n Example function call from ``tidymbox``:\n\n .. code-block:: python\n\n self.expand_on('From', 'To', ['MessageID', 'Recipient'], rename1='From', rename...
81
false
networks-lab/tidyextractors
expand_on
6,903
LDU_FT/flaviogrossi/sockjs-cyclone/set_handler
LDU_FT
[ "<BEGIN>\n## `enable_cache`", "Enable client-side caching for the current request\n<END>", "<BEGIN>\n## `flush`", "Add accumulator to the moving average queue and reset it. For\n example, called by the StatsCollector once per second to calculate\n per-second average.\n<END>", "<BEGIN>\n## `cre...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_handler API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_handler API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
Set transport handler @param handler: Handler, should derive from the C{sockjs.cyclone.transports.base.BaseTransportMixin}
"Set transport handler\n\n @param handler: Handler, should derive from the\n C{sockjs.cyclone.transports.base.BaseTransportMixin}"
56
false
flaviogrossi/sockjs-cyclone
set_handler
6,904
LDU_FT/b3j0f/aop/find_ctx
LDU_FT
[ "<BEGIN>\n## `find_ctx`", "Find a Pointcut ctx which is a class/instance related to input\n function/method.", " :param elt: elt from where find a ctx.\n :return: elt ctx. None if no ctx available or if elt is a None method.\n<END>", "<BEGIN>\n## `base_ctx`", "Get base ctx.", " :param ctx: ini...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_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 extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_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 extracte...
Find a Pointcut ctx which is a class/instance related to input function/method. :param elt: elt from where find a ctx. :return: elt ctx. None if no ctx available or if elt is a None method.
"Find a Pointcut ctx which is a class/instance related to input\n function/method.\n\n :param elt: elt from where find a ctx.\n :return: elt ctx. None if no ctx available or if elt is a None method."
79
false
b3j0f/aop
find_ctx
6,905
LDU_FT/driftx/Telephus/keyspaceConnection
LDU_FT
[ "<BEGIN>\n## `set_keyspace`", "switch all connections to another keyspace\n<END>", "<BEGIN>\n## `retry`", "Retry this factory's connection. It is assumed that a previous\n connection was attempted and failed- either before or after a\n successful connection.\n<END>", "<BEGIN>\n## `prep_connect...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the keyspaceConnection 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 keyspaceConnection 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 CassandraClient instance which uses this CassandraClusterPool by way of a CassandraKeyspaceConnection, so that all requests made through it are guaranteed to go to the given keyspace, no matter what other consumers of this pool may do.
"Return a CassandraClient instance which uses this CassandraClusterPool\n by way of a CassandraKeyspaceConnection, so that all requests made\n through it are guaranteed to go to the given keyspace, no matter what\n other consumers of this pool may do."
132
false
driftx/Telephus
keyspaceConnection
6,906
LDU_FT/twneale/visitors/itervisit
LDU_FT
[ "<BEGIN>\n## `continues`", "Method decorator signifying that the visitor should not visit the\n current node's children once this method has been invoked.\n<END>", "<BEGIN>\n## `get_methodnames`", "Given a node, generate all names for matching visitor methods.\n<END>", "<BEGIN>\n## `get_method`", "...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the itervisit API. 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 itervisit API. 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 main visit function. Visits the passed-in node and calls finalize.
"The main visit function. Visits the passed-in node and calls\n finalize."
19
false
twneale/visitors
itervisit
6,907
LDU_FT/seperman/s3utils/ll
LDU_FT
[ "<BEGIN>\n## `connect`", "Establish the connection. This is done automatically for you.", " If you lose the connection, you can manually run this to be re-connected.\n<END>", "<BEGIN>\n## `connect_cloudfront`", "Connect to Cloud Front. This is done automatically for you when needed.\n<END>", "<BEGI...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the ll API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted docu...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the ll API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted docu...
Get the list of files and permissions from S3. This is similar to LL (ls -lah) in Linux: List of files with permissions. Parameters ---------- folder : string Path to file on S3 num: integer, optional number of results to return, by default it returns ...
"Get the list of files and permissions from S3.\n\n This is similar to LL (ls -lah) in Linux: List of files with permissions.\n\n Parameters\n ----------\n\n folder : string\n Path to file on S3\n\n num: integer, optional\n number of results to return, by default...
74
false
seperman/s3utils
ll
6,908
LDU_FT/GGiecold/Concurrent_AP/to_numpy_array
LDU_FT
[ "<BEGIN>\n## `chunk_generator`", "Returns a generator of slice objects.", " Parameters\n ----------\n N : int\n The size of one of the dimensions of a two-dimensional array. ", " n : int\n The number of arrays of shape ('N', 'get_chunk_size(N, n)') that fit into\n memory.", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the to_numpy_array API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the to_numpy_array API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
Convert a share multiprocessing array to a numpy array. No data copying involved.
"Convert a share multiprocessing array to a numpy array.\n No data copying involved."
61
false
GGiecold/Concurrent_AP
to_numpy_array
6,909
LDU_FT/InformaticsMatters/pipelines-utils/generate_molecule_object_dict
LDU_FT
[ "<BEGIN>\n## `round_sig`", "Round the number to the specified number of significant figures\n<END>", "<BEGIN>\n## `open_file`", "Open the file gunzipping it if it ends with .gz.\n If as_text the file is opened in text mode,\n otherwise the file's opened in binary mode.\n<END>", "<BEGIN>\n## `create_si...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the generate_molecule_object_dict API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the generate_molecule_object_dict API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conc...
Generate a dictionary that represents a Squonk MoleculeObject when written as JSON :param source: Molecules in molfile or smiles format :param format: The format of the molecule. Either 'mol' or 'smiles' :param values: Optional dict of values (properties) for the MoleculeObject
"Generate a dictionary that represents a Squonk MoleculeObject when\n written as JSON\n\n :param source: Molecules in molfile or smiles format\n :param format: The format of the molecule. Either 'mol' or 'smiles'\n :param values: Optional dict of values (properties) for the MoleculeObject"
39
false
InformaticsMatters/pipelines-utils
generate_molecule_object_dict
6,910
LDU_FT/hyperledger-archives/indy-ledger/_hash_full
LDU_FT
[ "<BEGIN>\n## `_useChunk`", "Switch to specific chunk", " :param index:\n<END>", "<BEGIN>\n## `iterator`", "Store iterator", " :return: Iterator for data in all chunks\n<END>", "<BEGIN>\n## `numKeys`", "This will iterate only over the last chunk since the name of the last\n chunk i...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _hash_full API. 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 _hash_full API. 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...
Hash the leaves between (l_idx, r_idx) as a valid entire tree. Note that this is only valid for certain combinations of indexes, depending on where the leaves are meant to be located in a parent tree. Returns: (root_hash, hashes): where root_hash is that of the entire tree, ...
"Hash the leaves between (l_idx, r_idx) as a valid entire tree.\n\n Note that this is only valid for certain combinations of indexes,\n depending on where the leaves are meant to be located in a parent tree.\n\n Returns:\n (root_hash, hashes): where root_hash is that of the entire tree,\...
20
false
hyperledger-archives/indy-ledger
_hash_full
6,911
LDU_FT/bitlabstudio/django-development-fabfile/prod
LDU_FT
[ "<BEGIN>\n## `require_server`", "Checks if the user has called the task with a server name.", " Fabric tasks decorated with this decorator must be called like so::", " fab <server name> <task name>", " If no server name is given, the task will not be executed.\n<END>", "<BEGIN>\n## `run_deplo...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the prod API. 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 prod API. 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...
Option to do something on the production server.
"Option to do something on the production server."
77
false
bitlabstudio/django-development-fabfile
prod
6,912
LDU_FT/blazelibs/blazeutils/compose
LDU_FT
[ "<BEGIN>\n## `workbook_to_reader`", "convert xlwt Workbook instance to an xlrd instance for reading\n<END>", "<BEGIN>\n## `xlsx_to_strio`", "convert xlwt Workbook instance to a BytesIO instance\n<END>", "<BEGIN>\n## `xlsx_to_reader`", "convert xlwt Workbook instance to an xlrd instance for reading\n<END>"...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the compose API. 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 compose API. 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...
Function composition on a series of functions. Remember that function composition runs right-to-left: `f . g . h = f(g(h(x)))`. As a unix pipeline, it would be written: `h | g | f`. From https://mathieularose.com/function-composition-in-python/.
"Function composition on a series of functions.\n\n Remember that function composition runs right-to-left: `f . g . h = f(g(h(x)))`. As a unix\n pipeline, it would be written: `h | g | f`.\n\n From https://mathieularose.com/function-composition-in-python/."
135
false
blazelibs/blazeutils
compose
6,913
LDU_FT/ethereum/eth-abi/parse_type_str
LDU_FT
[ "<BEGIN>\n## `abbr`", "Converts a value into its string representation and abbreviates that\n representation based on the given length `limit` if necessary.\n<END>", "<BEGIN>\n## `invalidate_value`", "Throws a standard exception for when a value is not encodable by an\n encoder.\n<END>", "<BEGIN>\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_type_str API. 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 parse_type_str API. 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...
Used by BaseCoder subclasses as a convenience for implementing the ``from_type_str`` method required by ``ABIRegistry``. Useful if normalizing then parsing a type string with an (optional) expected base is required in that method.
"Used by BaseCoder subclasses as a convenience for implementing the\n ``from_type_str`` method required by ``ABIRegistry``. Useful if normalizing\n then parsing a type string with an (optional) expected base is required in\n that method."
57
false
ethereum/eth-abi
parse_type_str
6,914
LDU_FT/mmoussallam/bird/imdct
LDU_FT
[ "<BEGIN>\n## `_single_multichannel_mp_run`", "run of the structured variant of the RSSMP algorithm\n<END>", "<BEGIN>\n## `_pad`", "add zeroes on the border to make sure the signal length is a\n power of two\n<END>", "<BEGIN>\n## `_denoise`", "multiple rssmp runs with a smart stopping criterion using\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the imdct API. 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 imdct API. 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...
Inverse Modified Discrete Cosine Transform (MDCT) Returns the Inverse Modified Discrete Cosine Transform with fixed window size L of the vector of coefficients y. The window is based on a sine window. Parameters ---------- y : ndarray, shape (L/2, 2 * N / L) The MDCT coefficients ...
"Inverse Modified Discrete Cosine Transform (MDCT)\n\n Returns the Inverse Modified Discrete Cosine Transform\n with fixed window size L of the vector of coefficients y.\n\n The window is based on a sine window.\n\n Parameters\n ----------\n y : ndarray, shape (L/2, 2 * N / L)\n The MDCT coeffi...
35
false
mmoussallam/bird
imdct
6,915
LDU_FT/tumblr/pytumblr/avatar
LDU_FT
[ "<BEGIN>\n## `new_oauth`", "Return the consumer and oauth tokens with three-legged OAuth process and\n save in a yaml file in the user's home directory.\n<END>", "<BEGIN>\n## `validate_params`", "Helps us validate the parameters for the request", " :param valid_options: a list of strings of valid opti...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the avatar API. 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 avatar API. 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 ...
Retrieves the url of the blog's avatar :param blogname: a string, the blog you want the avatar for :returns: A dict created from the JSON response
"Retrieves the url of the blog's avatar\n\n :param blogname: a string, the blog you want the avatar for\n\n :returns: A dict created from the JSON response"
126
false
tumblr/pytumblr
avatar
6,916
LDU_FT/genomoncology/related/to_child_field
LDU_FT
[ "<BEGIN>\n## `init_default`", "Returns optional default if field is not required and\n default was not provided.", " :param bool required: whether the field is required in a given model.\n :param default: default provided by creator of field.\n :param optional_default: default for the data type if n...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the to_child_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. The ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the to_child_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. The ex...
Returns an callable instance that will convert a value to a Child object. :param cls: Valid class type of the Child. :return: instance of ChildConverter.
"Returns an callable instance that will convert a value to a Child object.\n\n :param cls: Valid class type of the Child.\n :return: instance of ChildConverter."
95
false
genomoncology/related
to_child_field
6,917
LDU_FT/pytroll/satpy/to_scales
LDU_FT
[ "<BEGIN>\n## `_get_coarse_dataset`", "Get the coarse dataset refered to by `key` from the XML data.\n<END>", "<BEGIN>\n## `get_dataset`", "Get output data and metadata of specified dataset.\n<END>", "<BEGIN>\n## `find_coefficient_index`", "Return index in to coefficient arrays for this band's wavelength."...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the to_scales API. 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 to_scales API. 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...
Parse *val* to return an array of scale factors.
"Parse *val* to return an array of scale factors."
924
false
pytroll/satpy
to_scales
6,918
LDU_FT/AirtestProject/Poco/command
LDU_FT
[ "<BEGIN>\n## `jsonrpc_map`", "Map of json-rpc available calls.", " :return str:\n<END>", "<BEGIN>\n## `command`", "通过hunter调用gm指令,可调用hunter指令库中定义的所有指令,也可以调用text类型的gm指令\n gm指令相关功能请参考safaia GM指令扩展模块", " :param cmd: 指令\n :param type: 语言,默认text\n :return: None\n<END>", "<B...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the command API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the command API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
通过hunter调用gm指令,可调用hunter指令库中定义的所有指令,也可以调用text类型的gm指令 gm指令相关功能请参考safaia GM指令扩展模块 :param cmd: 指令 :param type: 语言,默认text :return: None
"通过hunter调用gm指令,可调用hunter指令库中定义的所有指令,也可以调用text类型的gm指令\n gm指令相关功能请参考safaia GM指令扩展模块\n\n :param cmd: 指令\n :param type: 语言,默认text\n :return: None"
191
false
AirtestProject/Poco
command
6,919
LDU_FT/silenc3r/dikicli/_cache_lookup
LDU_FT
[ "<BEGIN>\n## `_parse_html`", "Parse html string.", " Parameters\n ----------\n html_dump : str\n HTML content.\n native : bool, optional\n Whether to translate from native to foreign language.", " Returns\n -------\n translations : list\n Translations list.", " R...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _cache_lookup API. 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 _cache_lookup API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
Checks if word is in cache. Parameters ---------- word : str Word to check in cache. data_dir : pathlib.Path Cache directory location. Returns ------- translation : str or None Translation of given word.
"Checks if word is in cache.\n\n Parameters\n ----------\n word : str\n Word to check in cache.\n data_dir : pathlib.Path\n Cache directory location.\n\n Returns\n -------\n translation : str or None\n Translation of given word."
62
false
silenc3r/dikicli
_cache_lookup
6,920
LDU_FT/aerogear/digger-build-cli/from_path
LDU_FT
[ "<BEGIN>\n## `jarsign`", "Uses Jarsign to sign an apk target file using the provided keystore information.", " :param storepass(str) - keystore storepass\n :param keypass(str) - keystore keypass\n :param keystore(str) - keystore file path\n :param source(str) - apk path\n :param alias(str) - keystore alias...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the from_path API. 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 from_path API. 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...
Instantiates a project class from a given path. :param path: app folder path source code Returns A project instance.
"Instantiates a project class from a given path.\n\n :param path: app folder path source code\n\n Returns\n A project instance."
100
false
aerogear/digger-build-cli
from_path
6,921
LDU_FT/mithro/python-datetime-tz/_tzinfome
LDU_FT
[ "<BEGIN>\n## `_tzinfome`", "Gets a tzinfo object from a string.", " Args:\n tzinfo: A string (or string like) object, or a datetime.tzinfo object.", " Returns:\n An datetime.tzinfo object.", " Raises:\n UnknownTimeZoneError: If the timezone given can't be decoded.\n<END>", "<BEGIN>\n## `locali...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _tzinfome API. 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 _tzinfome API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
Gets a tzinfo object from a string. Args: tzinfo: A string (or string like) object, or a datetime.tzinfo object. Returns: An datetime.tzinfo object. Raises: UnknownTimeZoneError: If the timezone given can't be decoded.
"Gets a tzinfo object from a string.\n\n Args:\n tzinfo: A string (or string like) object, or a datetime.tzinfo object.\n\n Returns:\n An datetime.tzinfo object.\n\n Raises:\n UnknownTimeZoneError: If the timezone given can't be decoded."
89
false
mithro/python-datetime-tz
_tzinfome
6,922
LDU_FT/JarryShaw/PyPCAPKit/_read_mptcp_fastclose
LDU_FT
[ "<BEGIN>\n## `_missing_`", "Lookup function used when value is not found.\n<END>", "<BEGIN>\n## `count`", "S.count(value) -> integer -- return number of occurrences of value\n<END>", "<BEGIN>\n## `index`", "S.index(value, [start, [stop]]) -> integer -- return first index of value.\n Raises Value...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _read_mptcp_fastclose 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 _read_mptcp_fastclose API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Read Fast Close option. Positional arguments: * bits - str, 4-bit data * size - int, length of option Returns: * dict -- extracted Fast Close (MP_FASTCLOSE) option Structure of MP_FASTCLOSE [RFC 6824]: 1 2 ...
"Read Fast Close option.\n\n Positional arguments:\n * bits - str, 4-bit data\n * size - int, length of option\n\n Returns:\n * dict -- extracted Fast Close (MP_FASTCLOSE) option\n\n Structure of MP_FASTCLOSE [RFC 6824]:\n 1 ...
733
false
JarryShaw/PyPCAPKit
_read_mptcp_fastclose
6,923
LDU_FT/pachyderm/python-pachyderm/inspect_commit
LDU_FT
[ "<BEGIN>\n## `create_repo`", "Creates a new Repo object in PFS with the given name. Repos are the \n top level data object in PFS and should be used to store data of a\n similar type. For example rather than having a single Repo for an\n entire project you might have separate Repos for logs, ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the inspect_commit API. 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 inspect_commit API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
Returns info about a specific Commit. Params: * commit: A tuple, string, or Commit object representing the commit.
"Returns info about a specific Commit.\n\n Params:\n * commit: A tuple, string, or Commit object representing the commit."
66
false
pachyderm/python-pachyderm
inspect_commit
6,924
LDU_FT/Phylliade/ikpy/scale_transform
LDU_FT
[ "<BEGIN>\n## `plot_basis`", "Plot le repère adapté à la taille du robot\n<END>", "<BEGIN>\n## `plot_target_trajectory`", "Ajoute la trajectoire (liste des targets) au plot\n<END>", "<BEGIN>\n## `symbolic_Rz_matrix`", "Matrice symbolique de rotation autour de l'axe Z\n<END>", "<BEGIN>\n## `rotation_matri...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the scale_transform API. 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 scale_transform API. 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...
Apply a scale to a transform :param t: The transform [[x, y, z], [x, y, z, w]] to be scaled OR the position [x, y, z] to be scaled :param scale: the scale of type float OR the scale [scale_x, scale_y, scale_z] :return: The scaled
"Apply a scale to a transform\n :param t: The transform [[x, y, z], [x, y, z, w]] to be scaled OR the position [x, y, z] to be scaled\n :param scale: the scale of type float OR the scale [scale_x, scale_y, scale_z]\n :return: The scaled"
88
false
Phylliade/ikpy
scale_transform
6,925
LDU_FT/astooke/gtimer/collapse_times
LDU_FT
[ "<BEGIN>\n## `start`", "Mark the start of timing, overwriting the automatic start data written on\n import, or the automatic start at the beginning of a subdivision.", " Notes:\n Backdating: For subdivisions only. Backdate time must be in the past\n but more recent than the latest stamp in ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the collapse_times API. 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 collapse_times API. 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...
Make copies of everything, assign to global shortcuts so functions work on them, extract the times, then restore the running stacks.
"Make copies of everything, assign to global shortcuts so functions work\n on them, extract the times, then restore the running stacks."
137
false
astooke/gtimer
collapse_times
6,926
LDU_FT/MacHu-GWU/macro-project/page_up
LDU_FT
[ "<BEGIN>\n## `learn_all_skill`", "在技能编辑界面学会所有的技能。运行脚本前, 将鼠标放在第一个技能的技能等级\n 的数字上, 并选中所有文本。然后运行此脚本, 并在1秒内切回到修改器界面。", " :param level: 技能等级\n :param master_level: 专精等级, 0是普通, 1是专家, 2是大师\n<END>", "<BEGIN>\n## `right_click`", "Right click at ``(x, y)`` on screen for ``n`` times.\n at begin.", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the page_up API. 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 page_up API. 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...
Pres page_up key n times. **中文文档** 按 page_up 键n次。
"Pres page_up key n times.\n\n **中文文档**\n\n 按 page_up 键n次。"
125
false
MacHu-GWU/macro-project
page_up
6,927
LDU_FT/xflr6/graphviz/mkdirs
LDU_FT
[ "<BEGIN>\n## `command`", "Return args list for ``subprocess.Popen`` and name of the rendered file.\n<END>", "<BEGIN>\n## `run`", "Run the command described by cmd and return its (stdout, stderr) tuple.\n<END>", "<BEGIN>\n## `render`", "Render file with Graphviz ``engine`` into ``format``, return result f...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the mkdirs API. 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 mkdirs API. 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 ...
Recursively create directories up to the path of ``filename`` as needed.
"Recursively create directories up to the path of ``filename`` as needed."
93
false
xflr6/graphviz
mkdirs
6,928
LDU_FT/pebble/libpebble2/_broadcast_transport_message
LDU_FT
[ "<BEGIN>\n## `send_notification`", "Sends a notification. Blocks as long as necessary.", " :param subject: The subject.\n :type subject: str\n :param message: The message.\n :type message: str\n :param sender: The sender.\n :type sender: str\n :param source: The ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _broadcast_transport_message API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its concl...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _broadcast_transport_message API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its concl...
Broadcasts an event originating from a transport that does not represent a message from the Pebble. :param origin: The type of transport responsible for the message. :type origin: .MessageTarget :param message: The message from the transport
"Broadcasts an event originating from a transport that does not represent a message from the Pebble.\n\n :param origin: The type of transport responsible for the message.\n :type origin: .MessageTarget\n :param message: The message from the transport"
121
false
pebble/libpebble2
_broadcast_transport_message
6,929
LDU_FT/GibbsConsulting/django-plotly-dash/as_dash_app
LDU_FT
[ "<BEGIN>\n## `find_stateless_by_name`", "Find stateless app given its name", " First search the Django ORM, and if not found then look the app up in a local registry.\n If the app does not have an ORM entry then a StatelessApp model instance is created.\n<END>", "<BEGIN>\n## `as_dash_app`", "Return a ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the as_dash_app API. 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 as_dash_app API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
Return a DjangoDash instance of the dash application
"Return a DjangoDash instance of the dash application"
96
false
GibbsConsulting/django-plotly-dash
as_dash_app
6,930
LDU_FT/Richienb/quilt/cowsay
LDU_FT
[ "<BEGIN>\n## `userinput`", "Get the input of the user via a universally secure method.", " :type prompttext: string\n :param prompttext: The text to display while receiving the data.", " :type times: integer\n :param times: The amount of times to ask the user. If value is not 1, a list will be ret...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the cowsay API. 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 cowsay API. 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 ...
Simulate an ASCII cow saying text. :type text: string :param text: The text to print out. :type align: string :param algin: Where to align the cow. Can be 'left', 'centre' or 'right'
"Simulate an ASCII cow saying text.\n\n :type text: string\n :param text: The text to print out.\n\n :type align: string\n :param algin: Where to align the cow. Can be 'left', 'centre' or 'right'"
210
false
Richienb/quilt
cowsay
6,931
LDU_FT/juju/charm-helpers/revoke_access
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 revoke_access API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the revoke_access API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
Revoke access to an address or subnet :param src: address (e.g. 192.168.1.234) or subnet (e.g. 192.168.1.0/24). :param dst: destiny of the connection, if the machine has multiple IPs and connections to only one of those have to accepted this is the field has to b...
"Revoke access to an address or subnet\n\n :param src: address (e.g. 192.168.1.234) or subnet\n (e.g. 192.168.1.0/24).\n :param dst: destiny of the connection, if the machine has multiple IPs and\n connections to only one of those have to accepted this is the\n field h...
1,689
true
juju/charm-helpers
revoke_access
6,932
LDU_FT/alorence/django-modern-rpc/get_modernrpc_logger
LDU_FT
[ "<BEGIN>\n## `_generic_convert_string`", "Generic method to convert any argument type (string type, list, set, tuple, dict) to an equivalent,\n with string values converted to given 'to_type' (str or unicode).\n This method must be used with Python 2 interpreter only.", " :param v: The value to convert...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_modernrpc_logger 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_modernrpc_logger 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 a logger from default logging manager. If no handler is associated, add a default NullHandler
"Get a logger from default logging manager. If no handler is associated, add a default NullHandler"
86
false
alorence/django-modern-rpc
get_modernrpc_logger
6,933
LDU_FT/PedalPi/PluginsManager/register
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 register API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the register API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
Register an observer for it be notified when occurs changes. For more details, see :class:`.UpdatesObserver` :param UpdatesObserver observer: Observer that will be notified then occurs changes
"Register an observer for it be notified when occurs changes.\n\n For more details, see :class:`.UpdatesObserver`\n\n :param UpdatesObserver observer: Observer that will be notified then occurs changes"
139
false
PedalPi/PluginsManager
register
6,934
LDU_FT/moonso/loqusdb/update_profiles
LDU_FT
[ "<BEGIN>\n## `update_database`", "Update a case in the database", " Args:\n adapter: Connection to database\n variant_file(str): Path to variant file\n sv_file(str): Path to sv variant file\n family_file(str): Path to family file\n family_type(str): Format of fami...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update_profiles API. 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 update_profiles API. 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...
For all cases having vcf_path, update the profile string for the samples Args: adapter (MongoAdapter): Adapter to mongodb
"For all cases having vcf_path, update the profile string for the samples\n\n Args:\n adapter (MongoAdapter): Adapter to mongodb"
216
false
moonso/loqusdb
update_profiles
6,935
LDU_FT/appknox/pyaxmlparser/_get_file_magic_name
LDU_FT
[ "<BEGIN>\n## `_decode8`", "Decode an UTF-8 String at the given offset", " :param offset: offset of the string inside the data\n :return: str\n<END>", "<BEGIN>\n## `_decode16`", "Decode an UTF-16 String at the given offset", " :param offset: offset of the string inside the data\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_file_magic_name API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_file_magic_name API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Return the filetype guessed for a buffer :param buffer: bytes :return: str of filetype
"Return the filetype guessed for a buffer\n :param buffer: bytes\n :return: str of filetype"
63
false
appknox/pyaxmlparser
_get_file_magic_name
6,936
LDU_FT/danielhrisca/asammdf/extend
LDU_FT
[ "<BEGIN>\n## `extract_cncomment_xml`", "extract *TX* tag or otherwise the *common_properties* from a xml comment", " Paremeters\n ----------\n comment : str\n xml string comment", " Returns\n -------\n comment : str\n extracted string\n<END>", "<BEGIN>\n## `matlab_compatible`...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the extend API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the extend API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Extend a group with new samples. *signals* contains (values, invalidation_bits) pairs for each extended signal. The first pair is the master channel's pair, and the next pairs must respect the same order in which the signals were appended. The samples must have raw or physical values according t...
"Extend a group with new samples. *signals* contains (values, invalidation_bits)\n pairs for each extended signal. The first pair is the master channel's pair, and the\n next pairs must respect the same order in which the signals were appended. The samples must have raw\n or physical values accordi...
381
false
danielhrisca/asammdf
extend
6,937
LDU_FT/czielinski/portfolioopt/markowitz_portfolio
LDU_FT
[ "<BEGIN>\n## `markowitz_portfolio`", "Computes a Markowitz portfolio.", " Parameters\n ----------\n cov_mat: pandas.DataFrame\n Covariance matrix of asset returns.\n exp_rets: pandas.Series\n Expected asset returns (often historical returns).\n target_ret: float\n Target retu...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the markowitz_portfolio 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 markowitz_portfolio 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...
Computes a Markowitz portfolio. Parameters ---------- cov_mat: pandas.DataFrame Covariance matrix of asset returns. exp_rets: pandas.Series Expected asset returns (often historical returns). target_ret: float Target return of portfolio. allow_short: bool, optional ...
"Computes a Markowitz portfolio.\n\n Parameters\n ----------\n cov_mat: pandas.DataFrame\n Covariance matrix of asset returns.\n exp_rets: pandas.Series\n Expected asset returns (often historical returns).\n target_ret: float\n Target return of portfolio.\n allow_short: bool, opti...
24
false
czielinski/portfolioopt
markowitz_portfolio
6,938
LDU_FT/hthiery/python-fritzhome/list_all
LDU_FT
[ "<BEGIN>\n## `list_all`", "Command that prints all device information.\n<END>", "<BEGIN>\n## `device_statistics`", "Command that prints the device statistics.\n<END>", "<BEGIN>\n## `get_device_elements`", "Get the DOM elements for the device list.\n<END>", "<BEGIN>\n## `get_device_element`", "Get the ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the list_all API. 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 list_all API. 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...
Command that prints all device information.
"Command that prints all device information."
11
false
hthiery/python-fritzhome
list_all
6,939
LDU_FT/adamreeve/npTDMS/groups
LDU_FT
[ "<BEGIN>\n## `to_file`", "Wrapper around ndarray.tofile to support any file-like object\n<END>", "<BEGIN>\n## `write_segment`", "Write a segment of data to a TDMS file", " :param objects: A list of TdmsObject instances to write\n<END>", "<BEGIN>\n## `fromfile`", "Wrapper around np.fromfile to sup...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the groups API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the groups API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Return the names of groups in the file Note that there is not necessarily a TDMS object associated with each group name. :rtype: List of strings.
"Return the names of groups in the file\n\n Note that there is not necessarily a TDMS object associated with\n each group name.\n\n :rtype: List of strings."
65
false
adamreeve/npTDMS
groups
6,940
LDU_FT/tomduck/pandoc-xnos/_process_refs
LDU_FT
[ "<BEGIN>\n## `_repeat`", "Repeats func(...) call until something other than None is returned.\n<END>", "<BEGIN>\n## `init`", "Sets or determines the pandoc version. This must be called.", " The pandoc version is needed for multi-version support.\n See: https://github.com/jgm/pandoc/issues/2640", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _process_refs API. 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 _process_refs API. 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...
Strips surrounding curly braces and adds modifiers to the attributes of Cite elements. Only references with labels in the 'labels' list are processed. Repeats processing (via decorator) until no more broken references are found.
"Strips surrounding curly braces and adds modifiers to the\n attributes of Cite elements. Only references with labels in the 'labels'\n list are processed. Repeats processing (via decorator) until no more\n broken references are found."
63
false
tomduck/pandoc-xnos
_process_refs
6,941
LDU_FT/Xion/taipan/select
LDU_FT
[ "<BEGIN>\n## `decorator`", "Decorator for decorators (sic), written either as classes or functions.", " In either case, the decorator ``decor`` must be \"doubly-callable\":", " * for classes, this means implementing ``__call__`` method\n in addition to possible ``__init__``\n * for f...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the select API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the select API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Selects a subsequence of given tuple, including only specified indices. :param indices: Iterable of indices to include :param strict: Whether ``indices`` are required to exist in the tuple. :return: Tuple with selected elements, in the order corresponding to the order of ``indices``. :ra...
"Selects a subsequence of given tuple, including only specified indices.\n\n :param indices: Iterable of indices to include\n :param strict: Whether ``indices`` are required to exist in the tuple.\n\n :return: Tuple with selected elements, in the order corresponding\n to the order of ``indices``.\n...
396
false
Xion/taipan
select
6,942
LDU_FT/SheffieldML/GPy/to_dict
LDU_FT
[ "<BEGIN>\n## `pdf_link`", ":param link_f: latent variables link(f)\n :type link_f: Nx1 array\n :param y: data\n :type y: Nx1 array\n :param Y_metadata: includes censoring information in dictionary key 'censored'\n :returns: likelihood evaluated for this point\n :rtype: fl...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the to_dict API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the to_dict API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
Convert the object into a json serializable dictionary. Note: It uses the private method _save_to_input_dict of the parent. :return dict: json serializable dictionary containing the needed information to instantiate the object
"Convert the object into a json serializable dictionary.\n\n Note: It uses the private method _save_to_input_dict of the parent.\n\n :return dict: json serializable dictionary containing the needed information to instantiate the object"
1,670
true
SheffieldML/GPy
to_dict
6,943
LDU_FT/hellock/icrawler/feed
LDU_FT
[ "<BEGIN>\n## `to_dict`", "convert detailed proxy info into a dict", " Returns:\n dict: A dict with four keys: ``addr``, ``protocol``,\n ``weight`` and ``last_checked``\n<END>", "<BEGIN>\n## `proxy_num`", "Get the number of proxies in the pool", " Args:\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the feed API. 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 feed API. 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...
Feed urls once Args: url_template: A string with parameters replaced with "{}". keyword: A string indicating the searching keyword. offset: An integer indicating the starting index. max_num: An integer indicating the max number of images to be crawled. ...
"Feed urls once\n\n Args:\n url_template: A string with parameters replaced with \"{}\".\n keyword: A string indicating the searching keyword.\n offset: An integer indicating the starting index.\n max_num: An integer indicating the max number of images to be crawled.\n...
105
false
hellock/icrawler
feed
6,944
LDU_FT/TomasTomecek/sen/filter
LDU_FT
[ "<BEGIN>\n## `quit`", "This could be called from another thread, so let's do this via alarm\n<END>", "<BEGIN>\n## `_set_main_widget`", "add provided widget to widget list and display it", " :param widget:\n :return:\n<END>", "<BEGIN>\n## `display_buffer`", "display provided buffer", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the filter API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the filter API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
since django is so awesome, let's use their ORM API :return:
"since django is so awesome, let's use their ORM API\n\n :return:"
85
false
TomasTomecek/sen
filter
6,945
LDU_FT/sixty-north/added-value/strip_hidden
LDU_FT
[ "<BEGIN>\n## `make_repr_node`", "Render a Python object to text using the repr() function.", " :param rawtext: Text being replaced with link node.\n :param app: Sphinx application context\n :param prefixed_name: The dotted Python name for obj.\n :param obj: The Python object to be rendered to text.\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the strip_hidden API. 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 strip_hidden API. 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...
Filter each tuple according to visibility. Args: key_tuples: A sequence of tuples of equal length (i.e. rectangular) visibilities: A sequence of booleans equal in length to the tuples contained in key_tuples. Returns: A sequence equal in length to key_tuples where the items are tuples ...
"Filter each tuple according to visibility.\n\n Args:\n key_tuples: A sequence of tuples of equal length (i.e. rectangular)\n visibilities: A sequence of booleans equal in length to the tuples contained in key_tuples.\n\n Returns:\n A sequence equal in length to key_tuples where the items are...
66
false
sixty-north/added-value
strip_hidden
6,946
LDU_FT/edx/edx-submissions/get_all_submissions
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 get_all_submissions 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_all_submissions 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...
For the given item, get the most recent submission for every student who has submitted. This may return a very large result set! It is implemented as a generator for efficiency. Args: course_id, item_id, item_type (string): The values of the respective student_item fields to filter the sub...
"For the given item, get the most recent submission for every student who has submitted.\n\n This may return a very large result set! It is implemented as a generator for efficiency.\n\n Args:\n course_id, item_id, item_type (string): The values of the respective student_item fields\n to filter ...
118
false
edx/edx-submissions
get_all_submissions
6,947
LDU_FT/wrongwaycn/ssdb-py/zrange
LDU_FT
[ "<BEGIN>\n## `execute`", "Execute all the commands in the current pipeline\n<END>", "<BEGIN>\n## `execute_command`", "Execute a command and return a parsed response.\n<END>", "<BEGIN>\n## `incr`", "Increase the value at key ``name`` by ``amount``. If no key exists, the value\n will be initialized a...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the zrange API. 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 zrange API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Return a dict mapping key/score in a range of score from zset ``name`` between ``offset`` and ``offset+limit`` sorted in ascending order. Like **Redis.ZRANGE** .. warning:: This method is SLOW for large offset! :param string name: the zset name ...
"Return a dict mapping key/score in a range of score from zset ``name``\n between ``offset`` and ``offset+limit`` sorted in ascending order.\n\n Like **Redis.ZRANGE** \n \n .. warning:: This method is SLOW for large offset!\n \n :param string name: the zset na...
215
false
wrongwaycn/ssdb-py
zrange
6,948
LDU_FT/openpermissions/koi/stringify
LDU_FT
[ "<BEGIN>\n## `define_options`", "Define the options from default.conf dynamically\n<END>", "<BEGIN>\n## `log_config`", "Logs the config used to start the application\n<END>", "<BEGIN>\n## `ssl_server_options`", "ssl options for tornado https server\n these options are defined in each application's defa...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the stringify API. 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 stringify API. 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...
Joins args to build a string, unless there's one arg and it's a function, then acts a decorator.
"Joins args to build a string, unless there's one arg and it's a\n function, then acts a decorator."
122
false
openpermissions/koi
stringify
6,949
LDU_FT/linuxsoftware/ls.joyous/_getEventFromUid
LDU_FT
[ "<BEGIN>\n## `getLocalTime`", "Get the time in the local timezone from date and time\n<END>", "<BEGIN>\n## `getLocalDateAndTime`", "Get the date and time in the local timezone from date and optionally time\n<END>", "<BEGIN>\n## `getLocalDatetime`", "Get a datetime in the local timezone from date and optio...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _getEventFromUid API. 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 _getEventFromUid API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Try and find a child event with the given UID.
"Try and find a child event with the given UID."
192
false
linuxsoftware/ls.joyous
_getEventFromUid
6,950
LDU_FT/klmitch/framer/set_framer
LDU_FT
[ "<BEGIN>\n## `factory`", "Generates and returns a callable suitable for passing as the\n ``protocol_factory`` parameter of the ``create_connection()``\n or ``create_server()`` loop methods. This class method\n performs some sanity checks on the arguments, and is preferred\n over using...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_framer API. 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 set_framer API. 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...
Called by the client protocol to replace the current send framer, receive framer, or both. This does not alter the stack maintained by ``push_framer()`` and ``pop_framer()``; if this method is called after ``push_framer()``, then ``pop_framer()`` is called, the framers in force at the t...
"Called by the client protocol to replace the current send\n framer, receive framer, or both. This does not alter the\n stack maintained by ``push_framer()`` and ``pop_framer()``; if\n this method is called after ``push_framer()``, then\n ``pop_framer()`` is called, the framers in force at ...
77
false
klmitch/framer
set_framer
6,951
LDU_FT/greyli/flask-dropzone/load_css
LDU_FT
[ "<BEGIN>\n## `load`", "Load Dropzone resources with given version and init dropzone configuration.", " .. versionchanged:: 1.4.3\n Added ``js_url`` and ``css_url`` parameters to pass custom resource URL.", " .. versionchanged:: 1.4.4\n This method was deprecated due to infl...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load_css API. 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 load_css API. 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...
Load Dropzone's css resources with given version. .. versionadded:: 1.4.4 :param css_url: The CSS url for Dropzone.js. :param version: The version of Dropzone.js.
"Load Dropzone's css resources with given version.\n\n .. versionadded:: 1.4.4\n\n :param css_url: The CSS url for Dropzone.js.\n :param version: The version of Dropzone.js."
23
false
greyli/flask-dropzone
load_css
6,952
LDU_FT/Alignak-monitoring/alignak/got_scheduler_module_type_defined
LDU_FT
[ "<BEGIN>\n## `is_active`", "Know if this result modulation is active now", " :return: True is we are in the period, otherwise False\n :rtype: bool\n<END>", "<BEGIN>\n## `module_return`", "Module the exit code if necessary ::", " * modulation_period is legit\n * exit_code_modula...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the got_scheduler_module_type_defined API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the got_scheduler_module_type_defined API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its ...
Check if a module type is defined in one of the schedulers :param module_type: module type to search for :type module_type: str :return: True if mod_type is found else False :rtype: bool TODO: Factorize it with got_broker_module_type_defined
"Check if a module type is defined in one of the schedulers\n\n :param module_type: module type to search for\n :type module_type: str\n :return: True if mod_type is found else False\n :rtype: bool\n TODO: Factorize it with got_broker_module_type_defined"
3,377
true
Alignak-monitoring/alignak
got_scheduler_module_type_defined
6,953
LDU_FT/tarmstrong/nbdiff/notebook_diff
LDU_FT
[ "<BEGIN>\n## `merge`", "Generate unmerged series of changes (including conflicts).", " By diffing the two diffs, we find *changes* that are\n on the local branch, the remote branch, or both.\n We arbitrarily choose the \"local\" branch to be the \"before\"\n and the \"remote\" branch to be the \"aft...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the notebook_diff API. 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 notebook_diff API. 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...
Unify two notebooks into a single notebook with diff metadata. The result of this function is a valid notebook that can be loaded by the IPython Notebook front-end. This function adds additional cell metadata that the front-end Javascript uses to render the diffs. Parameters ---------- nb1 : d...
"Unify two notebooks into a single notebook with diff metadata.\n\n The result of this function is a valid notebook that can be loaded\n by the IPython Notebook front-end. This function adds additional\n cell metadata that the front-end Javascript uses to render the diffs.\n\n Parameters\n ----------\n ...
41
false
tarmstrong/nbdiff
notebook_diff
6,954
LDU_FT/svinota/mdns/get
LDU_FT
[ "<BEGIN>\n## `to_string`", "String representation with additional information\n<END>", "<BEGIN>\n## `answered_by`", "Returns true if the question is answered by the record\n<END>", "<BEGIN>\n## `reset_ttl`", "Sets this record's TTL and created time to that of\n another record.\n<END>", "<BEGIN>\n...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
Gets an entry by key. Will return None if there is no matching entry.
"Gets an entry by key. Will return None if there is no\n matching entry."
67
false
svinota/mdns
get
6,955
LDU_FT/ReadabilityHoldings/python-readability-api/get_article_status
LDU_FT
[ "<BEGIN>\n## `cast_datetime_filter`", "Cast a datetime filter value.", " :param value: string representation of a value that needs to be casted to\n a `datetime` object.\n<END>", "<BEGIN>\n## `filter_args_to_dict`", "Cast and validate filter args.", " :param filter_dict: Filter kwargs\n :p...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_article_status API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_article_status API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
Send a HEAD request to the `parser` endpoint to the parser API to get the articles status. Returned is a `requests.Response` object. The id and status for the article can be extracted from the `X-Article-Id` and `X-Article-Status` headers. Note that either the `url` or `article...
"Send a HEAD request to the `parser` endpoint to the parser API to\n get the articles status.\n\n Returned is a `requests.Response` object. The id and status for the\n article can be extracted from the `X-Article-Id` and `X-Article-Status`\n headers.\n\n Note that either the `url` or ...
83
false
ReadabilityHoldings/python-readability-api
get_article_status
6,956
LDU_FT/rosshamish/catan-py/next_player
LDU_FT
[ "<BEGIN>\n## `do`", "Does the command using the undo_manager's stack\n :param command: Command\n<END>", "<BEGIN>\n## `restore`", "Restore this Game object to match the properties and state of the given Game object\n :param game: properties to restore to the current (self) Game\n<END>", "<BEGIN...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the next_player API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the next_player API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
Returns the player whose turn it will be next. Uses regular seat-wise clockwise rotation. Compare to GameStatePreGame's implementation, which uses snake draft. :return Player
"Returns the player whose turn it will be next.\n\n Uses regular seat-wise clockwise rotation.\n\n Compare to GameStatePreGame's implementation, which uses snake draft.\n\n :return Player"
52
false
rosshamish/catan-py
next_player
6,957
LDU_FT/bw2/ConfigArgParse/get_items_for_config_file_output
LDU_FT
[ "<BEGIN>\n## `init_argument_parser`", "Creates a global ArgumentParser instance with the given name,\n passing any args other than \"name\" to the ArgumentParser constructor.\n This instance can then be retrieved using get_argument_parser(..)\n<END>", "<BEGIN>\n## `get_argument_parser`", "Returns the gl...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_items_for_config_file_output API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its c...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_items_for_config_file_output API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its c...
Converts the given settings back to a dictionary that can be passed to ConfigFormatParser.serialize(..). Args: source_to_settings: the dictionary described in parse_known_args() parsed_namespace: namespace object created within parse_known_args() Returns: an ...
"Converts the given settings back to a dictionary that can be passed\n to ConfigFormatParser.serialize(..).\n\n Args:\n source_to_settings: the dictionary described in parse_known_args()\n parsed_namespace: namespace object created within parse_known_args()\n Returns:\n ...
42
false
bw2/ConfigArgParse
get_items_for_config_file_output
6,958
LDU_FT/mikemaccana/python-docx/appproperties
LDU_FT
[ "<BEGIN>\n## `opendocx`", "Open a docx file, return a document XML tree\n<END>", "<BEGIN>\n## `pagebreak`", "Insert a break, default 'page'.\n See http://openxmldeveloper.org/forums/thread/4075.aspx\n Return our page break element.\n<END>", "<BEGIN>\n## `paragraph`", "Return a new paragraph element ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the appproperties API. 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 appproperties API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
Create app-specific properties. See docproperties() for more common document properties.
"Create app-specific properties. See docproperties() for more common\n document properties."
51
false
mikemaccana/python-docx
appproperties
6,959
LDU_FT/05bit/peewee-async/count
LDU_FT
[ "<BEGIN>\n## `execute`", "Execute *SELECT*, *INSERT*, *UPDATE* or *DELETE* query asyncronously.", " :param query: peewee query instance created with ``Model.select()``,\n ``Model.update()`` etc.\n :return: result depends on query type, it's the same as for sync\n ``query.execute()`...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the count API. 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 count API. 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...
Perform *COUNT* aggregated query asynchronously. :return: number of objects in ``select()`` query
"Perform *COUNT* aggregated query asynchronously.\n\n :return: number of objects in ``select()`` query"
92
false
05bit/peewee-async
count
6,960
LDU_FT/MultipedRobotics/pyxl320/makeDelayPacket
LDU_FT
[ "<BEGIN>\n## `makeServoIDPacket`", "Given the current ID, returns a packet to set the servo to a new ID\n<END>", "<BEGIN>\n## `packetToDict`", "Given a packet, this turns it into a dictionary ... is this useful?", "\tin: packet, array of numbers\n\tout: dictionary (key, value)\n<END>", "<BEGIN>\n## `sweep...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the makeDelayPacket API. 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 makeDelayPacket API. 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...
It is the delay time per data value that takes from the transmission of Instruction Packet until the return of Status Packet. 0 to 254 (0xFE) can be used, and the delay time per data value is 2 usec. That is to say, if the data value is 10, 20 usec is delayed. The initial value is 250 (0xFA) (i.e., 0.5 msec).
"It is the delay time per data value that takes from the transmission of\n\tInstruction Packet until the return of Status Packet.\n\t0 to 254 (0xFE) can be used, and the delay time per data value is 2 usec.\n\tThat is to say, if the data value is 10, 20 usec is delayed. The initial\n\tvalue is 250 (0xFA) (i.e., 0.5 mse...
71
false
MultipedRobotics/pyxl320
makeDelayPacket
6,961
LDU_FT/chimera0/accel-brain-code/initialize
LDU_FT
[ "<BEGIN>\n## `draw`", "Draws samples from the `true` distribution.\r", " Returns:\r\n `np.ndarray` of samples.\n<END>", "<BEGIN>\n## `generate`", "Generate noise samples.\r", " Returns:\r\n `np.ndarray` of samples.\n<END>", "<BEGIN>\n## `generate`", "Draws samples f...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the initialize API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the initialize API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
Initialize map of maze and setup reward value. Args: map_arr: Map. the 2d- `np.ndarray`. start_point_label: Label of start point. end_point_label: Label of end point. wall_label: Label of wall. agent_label: Labe...
"Initialize map of maze and setup reward value.\n\n Args:\n map_arr: Map. the 2d- `np.ndarray`.\n start_point_label: Label of start point.\n end_point_label: Label of end point.\n wall_label: Label of wall.\n agent_label: ...
550
false
chimera0/accel-brain-code
initialize
6,962
LDU_FT/wbond/certvalidator/_cert_type
LDU_FT
[ "<BEGIN>\n## `fetch`", "Fetches an OCSP response for a certificate", " :param cert:\n An asn1cyrpto.x509.Certificate object to get an OCSP reponse for", " :param issuer:\n An asn1crypto.x509.Certificate object that is the issuer of cert", " :param hash_algo:\n A unicode string ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _cert_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 extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _cert_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 extrac...
:param index: An integer of the index of the certificate in the path :param last_index: An integer of the last index in the path :param end_entity_name_override: None or a unicode string of the name to use for the final certificate in the path. Used for indirect CRL issuer and ...
":param index:\n An integer of the index of the certificate in the path\n\n :param last_index:\n An integer of the last index in the path\n\n :param end_entity_name_override:\n None or a unicode string of the name to use for the final certificate\n in the path. Used for indirect CRL is...
202
false
wbond/certvalidator
_cert_type
6,963
LDU_FT/HarveyHunt/i3situation/load_objects
LDU_FT
[ "<BEGIN>\n## `main`", "Generates an output string by replacing the keywords in the format\n string with the corresponding values from a submission dictionary.\n<END>", "<BEGIN>\n## `login`", "Logs into Reddit in order to display a personalised front page.\n<END>", "<BEGIN>\n## `manage_submissions`", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load_objects API. 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 load_objects API. 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...
Matches the plugins that have been specified in the config file with the available plugins. Returns instantiated objects based upon the classes defined in the plugins.
"Matches the plugins that have been specified in the config file\n with the available plugins. Returns instantiated objects based upon\n the classes defined in the plugins."
63
false
HarveyHunt/i3situation
load_objects
6,964
LDU_FT/brmscheiner/ideogram/formatBodyNode
LDU_FT
[ "<BEGIN>\n## `traversal`", "Tree traversal function that generates nodes. For each subtree, the \n deepest node is evaluated first. Then, the next-deepest nodes are \n evaluated until all the nodes in the subtree are generated.\n<END>", "<BEGIN>\n## `firstPass`", "Return a dictionary of function definit...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the formatBodyNode API. 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 formatBodyNode API. 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...
Format the root node for use as the body node.
"Format the root node for use as the body node."
50
false
brmscheiner/ideogram
formatBodyNode
6,965
LDU_FT/dask/dask-ml/init_scalable
LDU_FT
[ "<BEGIN>\n## `normalize_params`", "Take a list of dictionaries, and tokenize/normalize.\n<END>", "<BEGIN>\n## `check_cv`", "Dask aware version of ``sklearn.model_selection.check_cv``", " Same as the scikit-learn version, but works if ``y`` is a dask object.\n<END>", "<BEGIN>\n## `compute_n_splits`", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the init_scalable API. 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 init_scalable API. 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...
K-Means initialization using k-means|| This is algorithm 2 in Scalable K-Means++ (2012).
"K-Means initialization using k-means||\n\n This is algorithm 2 in Scalable K-Means++ (2012)."
361
false
dask/dask-ml
init_scalable
6,966
LDU_FT/divio/aldryn-apphooks-config/_set_config_defaults
LDU_FT
[ "<BEGIN>\n## `namespace`", "Filter by namespace. Try to guess which field to use in lookup.\n Accept 'to' argument if you need to specify.\n<END>", "<BEGIN>\n## `_app_config_select`", "Return the select value for apphook configs", " :param request: request object\n :param obj: current o...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _set_config_defaults 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 _set_config_defaults API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Cycle through app_config_values and sets the form value according to the options in the current apphook config. self.app_config_values is a dictionary containing config options as keys, form fields as values:: app_config_values = { 'apphook_config': 'form_field', ...
"Cycle through app_config_values and sets the form value according to the\n options in the current apphook config.\n\n self.app_config_values is a dictionary containing config options as keys, form fields as\n values::\n\n app_config_values = {\n 'apphook_config': 'form_fi...
39
false
divio/aldryn-apphooks-config
_set_config_defaults
6,967
LDU_FT/exa-analytics/exa/cardinal_groupby
LDU_FT
[ "<BEGIN>\n## `_create`", "Globally called function for creating the isotope/element API.\n<END>", "<BEGIN>\n## `read_tarball`", "Read a (possibly compressed) tarball archive and return a dictionary of\n editors.", " .. code-block:: python", " eds = read_tarball(path, classes=MyEditor) # Al...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the cardinal_groupby API. 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 cardinal_groupby API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Create an instance of this class for every step in the cardinal dimension.
"Create an instance of this class for every step in the cardinal dimension."
194
false
exa-analytics/exa
cardinal_groupby
6,968
LDU_FT/Commonists/CommonsDownloader/download_files_if_not_in_manifest
LDU_FT
[ "<BEGIN>\n## `make_thumbnail_name`", "Return name of the downloaded thumbnail, based on the extension.\n<END>", "<BEGIN>\n## `get_thumbnail_of_file`", "Return the file contents of the thumbnail of the given file.\n<END>", "<BEGIN>\n## `get_exception_based_on_api_message`", "Return the exception matching t...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the download_files_if_not_in_manifest API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the download_files_if_not_in_manifest API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its ...
Download the given files to the given path, unless in manifest.
"Download the given files to the given path, unless in manifest."
16
false
Commonists/CommonsDownloader
download_files_if_not_in_manifest
6,969
LDU_FT/paragbaxi/qualysapi/connect
LDU_FT
[ "<BEGIN>\n## `connect`", "Return a QGAPIConnect object for v1 API pulling settings from config\n file.\n<END>", "<BEGIN>\n## `format_api_version`", "Return QualysGuard API version for api_version specified.\n<END>", "<BEGIN>\n## `which_api_version`", "Return QualysGuard API version for api_call specifi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the connect API. 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 connect API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
Return a QGAPIConnect object for v1 API pulling settings from config file.
"Return a QGAPIConnect object for v1 API pulling settings from config\n file."
16
false
paragbaxi/qualysapi
connect
6,970
LDU_FT/rauenzi/discordbot.py/ignore
LDU_FT
[ "<BEGIN>\n## `stop_pages`", "stops the interactive pagination session\n<END>", "<BEGIN>\n## `paginate`", "Actually paginate the entries and run the interactive loop if necessary.\n<END>", "<BEGIN>\n## `_do`", "Repeats a command a specified number of times.\n<END>", "<BEGIN>\n## `disable`", "Disables a...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the ignore API. 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 ignore API. 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 ...
Handles the bot's ignore lists. To use these commands, you must have the Bot Admin role or have Manage Channels permissions. These commands are not allowed to be used in a private message context. Users with Manage Roles or Bot Admin role can still invoke the bot in ignored cha...
"Handles the bot's ignore lists.\n\n To use these commands, you must have the Bot Admin role or have\n Manage Channels permissions. These commands are not allowed to be used\n in a private message context.\n\n Users with Manage Roles or Bot Admin role can still invoke the bot\n in ign...
52
false
rauenzi/discordbot.py
ignore
6,971
LDU_FT/load-tools/netort/resource_string
LDU_FT
[ "<BEGIN>\n## `execute`", "Execute UNIX command and wait for its completion", " Args:\n cmd (str or list): command to execute\n shell (bool): invoke inside shell environment\n catch_out (bool): collect process' output", " Returns:\n returncode (int): process return code\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the resource_string API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the resource_string API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
Args: path: str, resource file url or resource file absolute/relative path. Returns: string, file content
"Args:\n path: str, resource file url or resource file absolute/relative path.\n\n Returns:\n string, file content"
32
false
load-tools/netort
resource_string
6,972