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/SamLau95/nbinteract/convert
LDU_FT
[ "<BEGIN>\n## `multiple_choice`", "Generates a multiple choice question that allows the user to select an\n answer choice and shows whether choice was correct.", " Args:\n question (str): Question text displayed above choices.", " choices (list str): Answer choices that user can select.", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the convert API. 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 convert API. 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...
Converts notebook into an HTML file, outputting notebooks into output_folder if set and images into images_folder if set. Returns the path to the resulting HTML file.
"Converts notebook into an HTML file, outputting notebooks into\n output_folder if set and images into images_folder if set.\n\n Returns the path to the resulting HTML file."
159
false
SamLau95/nbinteract
convert
17,873
LDU_FT/kissmetrics/py-KISSmetrics/record
LDU_FT
[ "<BEGIN>\n## `record`", "Record event for identity with any properties.", " :param action: event performed\n :param props: any additional data to include\n :type props: dict\n :param resp: indicate whether to return response\n :type resp: boolean", " :returns: an HTTP...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the record API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the record API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Record `event` for `person` with any `properties`. :param person: the individual performing the `event` :param event: the `event` name that was performed :param properties: any additional data to include :type properties: dict :param timestamp: when the `event` was performed; op...
"Record `event` for `person` with any `properties`.\n\n :param person: the individual performing the `event`\n :param event: the `event` name that was performed\n :param properties: any additional data to include\n :type properties: dict\n :param timestamp: when the `event` was perfor...
37
false
kissmetrics/py-KISSmetrics
record
17,874
LDU_FT/KenjiTakahashi/td/edit
LDU_FT
[ "<BEGIN>\n## `save`", "@decorator: Saves data after executing :func:.", " Also performs modifications set as permanent options.\n<END>", "<BEGIN>\n## `add`", "Adds new item to the model.", " Name argument may contain (ref:) syntax, which will be\n stripped down as needed.", " :pa...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the edit API. 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 edit API. 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...
Handles the 'e' command. :args: Arguments supplied to the 'e' command.
"Handles the 'e' command.\n\n :args: Arguments supplied to the 'e' command."
82
false
KenjiTakahashi/td
edit
17,875
LDU_FT/edx/edx-val/get_prep_value
LDU_FT
[ "<BEGIN>\n## `generate_sjson_from_srt`", "Generate transcripts from sjson to SubRip (*.srt).", " Arguments:\n srt_subs(SubRip): \"SRT\" subs object", " Returns:\n Subs converted to \"SJSON\" format.\n<END>", "<BEGIN>\n## `generate_srt_from_sjson`", "Generate transcripts...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_prep_value API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_prep_value API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
Converts a list to its json representation to store in database as text.
"Converts a list to its json representation to store in database as text."
197
false
edx/edx-val
get_prep_value
17,876
LDU_FT/foremast/foremast/add_stickiness
LDU_FT
[ "<BEGIN>\n## `create_elb_dns`", "Create dns entries in route53.", " Args:\n regionspecific (bool): The DNS entry should have region on it\n Returns:\n str: Auto-generated DNS name for the Elastic Load Balancer.\n<END>", "<BEGIN>\n## `create_failover_dns`", "Create dns ent...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_stickiness API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_stickiness API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
Adds stickiness policy to created ELB Returns: dict: A dict of stickiness policies and ports:: example: { 80: "$policy_name" }
"Adds stickiness policy to created ELB\n\n Returns:\n dict: A dict of stickiness policies and ports::\n\n example:\n {\n 80: \"$policy_name\"\n }"
585
false
foremast/foremast
add_stickiness
17,877
LDU_FT/aiortc/aiortc/_get_extensions
LDU_FT
[ "<BEGIN>\n## `allocate_mid`", "Allocate a MID which has not been used yet.\n<END>", "<BEGIN>\n## `addIceCandidate`", "Add a new :class:`RTCIceCandidate` received from the remote peer.", " The specified candidate must have a value for either `sdpMid` or `sdpMLineIndex`.\n<END>", "<BEGIN>\n## `addTra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_extensions API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_extensions API. 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...
Gets what extensions are supported by the remote party.
"Gets what extensions are supported by the remote party."
126
false
aiortc/aiortc
_get_extensions
17,878
LDU_FT/dahlia/sqlalchemy-imageattach/from_file
LDU_FT
[ "<BEGIN>\n## `readlines`", "Reads until EOF using :meth:`readline()`.", " :param sizehint: if it's present, instead of reading up to EOF,\n whole lines totalling approximately ``sizehint``\n bytes (or more to accommodate a final whole line)\n :type s...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the from_file API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the from_file API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
Stores the ``file`` for the image into the ``store``. :param file: the readable file of the image :type file: file-like object, :class:`file` :param store: the storage to store the file. :data:`~sqlalchemy_imageattach.context.current_store` by default...
"Stores the ``file`` for the image into the ``store``.\n\n :param file: the readable file of the image\n :type file: file-like object, :class:`file`\n :param store: the storage to store the file.\n :data:`~sqlalchemy_imageattach.context.current_store`\n by ...
145
false
dahlia/sqlalchemy-imageattach
from_file
17,879
LDU_FT/vladimarius/pyap/_combine_results
LDU_FT
[ "<BEGIN>\n## `parse`", "Returns a list of addresses found in text\n together with parsed address parts\n<END>", "<BEGIN>\n## `_combine_results`", "Combine results from different parsed parts:\n we look for non-empty results in values like\n 'postal_code_b' or 'postal_code_c' and s...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _combine_results API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _combine_results API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Combine results from different parsed parts: we look for non-empty results in values like 'postal_code_b' or 'postal_code_c' and store them as main value. So 'postal_code_b':'123456' becomes: 'postal_code' :'123456'
"Combine results from different parsed parts:\n we look for non-empty results in values like\n 'postal_code_b' or 'postal_code_c' and store\n them as main value.\n\n So 'postal_code_b':'123456'\n becomes:\n 'postal_code' :'123456'"
11
false
vladimarius/pyap
_combine_results
17,880
LDU_FT/isislovecruft/python-gnupg/_hyphenate
LDU_FT
[ "<BEGIN>\n## `get_requirements`", "Extract the list of requirements from our requirements.txt.", " :rtype: 2-tuple\n :returns: Two lists, the first is a list of requirements in the form of\n pkgname==version. The second is a list of URIs or VCS checkout strings\n which specify the dependency...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _hyphenate API. 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 _hyphenate API. 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...
Change underscores to hyphens so that object attributes can be easily tranlated to GPG option names. :param str input: The attribute to hyphenate. :param bool add_prefix: If True, add leading hyphens to the input. :rtype: str :return: The ``input`` with underscores changed to hyphens.
"Change underscores to hyphens so that object attributes can be easily\n tranlated to GPG option names.\n\n :param str input: The attribute to hyphenate.\n :param bool add_prefix: If True, add leading hyphens to the input.\n :rtype: str\n :return: The ``input`` with underscores changed to hyphens."
371
false
isislovecruft/python-gnupg
_hyphenate
17,881
LDU_FT/Infinidat/infi.clickhouse_orm/from_tsv
LDU_FT
[ "<BEGIN>\n## `_range_check`", "Utility method to check that the given value is between min_value and max_value.\n<END>", "<BEGIN>\n## `get_sql`", "Returns an SQL expression describing the field (e.g. for CREATE TABLE).\n :param with_default_expression: If True, adds default value to sql.\n I...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the from_tsv API. 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 from_tsv API. 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...
Create a model instance from a tab-separated line. The line may or may not include a newline. The `field_names` list must match the fields defined in the model, but does not have to include all of them. - `line`: the TSV-formatted data. - `field_names`: names of the model fields in the data. ...
"Create a model instance from a tab-separated line. The line may or may not include a newline.\n The `field_names` list must match the fields defined in the model, but does not have to include all of them.\n\n - `line`: the TSV-formatted data.\n - `field_names`: names of the model fields in the dat...
86
false
Infinidat/infi.clickhouse_orm
from_tsv
17,882
LDU_FT/PRIArobotics/HedgehogUtils/configure
LDU_FT
[ "<BEGIN>\n## `configure`", "Allows to configure some common socket options and configurations, while allowing method chaining\n<END>", "<BEGIN>\n## `recv_multipart_expect`", "Waits for the next multipart message and asserts that it contains the given data.\n<END>", "<BEGIN>\n## `expect_all`", "\\\n Ass...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the configure API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the configure API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
Allows to configure some common socket options and configurations, while allowing method chaining
"Allows to configure some common socket options and configurations, while allowing method chaining"
22
false
PRIArobotics/HedgehogUtils
configure
17,883
LDU_FT/madjar/pyramid_persona/login
LDU_FT
[ "<BEGIN>\n## `verify_login`", "Verifies the assertion and the csrf token in the given request.", " Returns the email of the user if everything is valid, otherwise raises\n a HTTPBadRequest\n<END>", "<BEGIN>\n## `login`", "View to check the persona assertion and remember the user\n<END>", "<BEGIN>\n#...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the login API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the login API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
View to check the persona assertion and remember the user
"View to check the persona assertion and remember the user"
13
false
madjar/pyramid_persona
login
17,884
LDU_FT/roanuz/py-cricket/get_match
LDU_FT
[ "<BEGIN>\n## `set_value`", "Set key value to the file.", " The fuction will be make the key and value to dictinary formate.\n If its exist then it will update the current new key value to\n the file.\n Arg:\n key : cache key\n value : cache value\n<END>", "<BEGIN>\n##...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_match API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_match API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
Calling the Match API. Arg: match_key: key of the match card_type: optional, default to full_card. Accepted values are micro_card, summary_card & full_card. Return: json data
"Calling the Match API.\n \n Arg:\n match_key: key of the match\n card_type: optional, default to full_card. Accepted values are \n micro_card, summary_card & full_card.\n Return:\n json data"
72
false
roanuz/py-cricket
get_match
17,885
LDU_FT/dslackw/slpkg/case_insensitive
LDU_FT
[ "<BEGIN>\n## `repos`", "View or enabled or disabled repositories\n<END>", "<BEGIN>\n## `reset`", "Reset slpkg.conf file with default values\n<END>", "<BEGIN>\n## `case_sensitive`", "Create dictionary from list with key in lower case\n and value with default\n<END>", "<BEGIN>\n## `package_name`", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the case_insensitive API. 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 case_insensitive API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Matching packages distinguish between uppercase and lowercase
"Matching packages distinguish between uppercase and\n lowercase"
168
false
dslackw/slpkg
case_insensitive
17,886
LDU_FT/django-leonardo/django-leonardo/serve_protected_thumbnail
LDU_FT
[ "<BEGIN>\n## `sort_dependencies`", "Sort a list of (app_config, models) pairs into a single list of models.\n The single list of models is sorted so that any model with a natural key\n is serialized before a normal model, and any model with a natural key\n dependency has it's dependencies serialized firs...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the serve_protected_thumbnail API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the serve_protected_thumbnail API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi...
Serve protected thumbnails to authenticated users. If the user doesn't have read permissions, redirect to a static image.
"Serve protected thumbnails to authenticated users.\n If the user doesn't have read permissions, redirect to a static image."
267
false
django-leonardo/django-leonardo
serve_protected_thumbnail
17,887
LDU_FT/MKLab-ITI/reveal-user-annotation/query_list_of_words
LDU_FT
[ "<BEGIN>\n## `safe_twitter_request_handler`", "This is a safe function handler for any twitter request.", " Inputs: - twitter_api_func: The twython function object to be safely called.\n - call_rate_limit: THe call rate limit for this specific Twitter API function.\n - call_counter: ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the query_list_of_words API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the query_list_of_words API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
Checks whether a target word is within editing distance of any one in a set of keywords. Inputs: - target_word: A string containing the word we want to search in a list. - list_of_words: A python list of words. - edit_distance: For larger words, we also check for similar words based on edit...
"Checks whether a target word is within editing distance of any one in a set of keywords.\n\n Inputs: - target_word: A string containing the word we want to search in a list.\n - list_of_words: A python list of words.\n - edit_distance: For larger words, we also check for similar words based on...
192
false
MKLab-ITI/reveal-user-annotation
query_list_of_words
17,888
LDU_FT/django-getpaid/django-getpaid/get_gateway_url
LDU_FT
[ "<BEGIN>\n## `new_payment_query_listener`", "Here we fill only two obligatory fields of payment, and leave signal handler\n<END>", "<BEGIN>\n## `payment_status_changed_listener`", "Here we will actually do something, when payment is accepted.\n E.g. lets change an order status.\n<END>", "<BEGIN>\n## `reg...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_gateway_url API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_gateway_url API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
Tricky process that requires to get auth key, send order via POST and then present final URL for redirection to finalize payment.
"Tricky process that requires to get auth key, send order via POST and\n then present final URL for redirection to finalize payment."
20
false
django-getpaid/django-getpaid
get_gateway_url
17,889
LDU_FT/Chilipp/psyplot/get_yname
LDU_FT
[ "<BEGIN>\n## `_no_auto_update_getter`", ":class:`bool`. Boolean controlling whether the :meth:`start_update`\n method is automatically called by the :meth:`update` method", " Examples\n --------\n You can disable the automatic update via", " >>> with data.no_auto_update:\n ... da...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_yname API. 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_yname API. 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 the name of the y-dimension This method gives the name of the y-dimension (which is not necessarily the name of the coordinate if the variable has a coordinate attribute) Parameters ---------- var: xarray.Variables The variable to get the dimension for c...
"Get the name of the y-dimension\n\n This method gives the name of the y-dimension (which is not necessarily\n the name of the coordinate if the variable has a coordinate attribute)\n\n Parameters\n ----------\n var: xarray.Variables\n The variable to get the dimension for\...
800
false
Chilipp/psyplot
get_yname
17,890
LDU_FT/mwshinn/paranoidscientist/paranoidconfig
LDU_FT
[ "<BEGIN>\n## `accepts`", "A function decorator to specify argument types of the function.", " Types may be specified either in the order that they appear in the\n function or via keyword arguments (just as if you were calling the\n function).", " Example usage:", " | @accepts(Positive0)\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the paranoidconfig API. 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 paranoidconfig API. 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...
A function decorator to set a local setting. Settings may be set either globally (using settings.Settings.set()) or locally using this decorator. The setting name should be passed as a keyword argument, and the value to assign the setting should be passed as the value. See settings.Settings for t...
"A function decorator to set a local setting.\n\n Settings may be set either globally (using\n settings.Settings.set()) or locally using this decorator. The\n setting name should be passed as a keyword argument, and the value\n to assign the setting should be passed as the value. See\n settings.Setting...
68
false
mwshinn/paranoidscientist
paranoidconfig
17,891
LDU_FT/nitmir/django-cas-server/process_pgturl
LDU_FT
[ "<BEGIN>\n## `clean_deleted_sessions`", "remove old :class:`FederateSLO` object for which the session do not exists anymore\n<END>", "<BEGIN>\n## `send_mails`", "For each new django-cas-server version, if the current instance is not up to date\n send one mail to ``settings.ADMINS``.\n<END>", "<BE...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the process_pgturl API. 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 process_pgturl API. 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...
Handle PGT request :param dict params: A template context dict :raises ValidateError: if pgtUrl is invalid or if TLS validation of the pgtUrl fails :return: The rendering of ``cas_server/serviceValidate.xml``, using ``params`` :rtype: django.http.HttpResponse
"Handle PGT request\n\n :param dict params: A template context dict\n :raises ValidateError: if pgtUrl is invalid or if TLS validation of the pgtUrl fails\n :return: The rendering of ``cas_server/serviceValidate.xml``, using ``params``\n :rtype: django.http.HttpResponse"
182
false
nitmir/django-cas-server
process_pgturl
17,892
LDU_FT/raymontag/kppy/_get_date
LDU_FT
[ "<BEGIN>\n## `set_expire`", "This method is used to change the expire date of a group", " - y is the year between 1 and 9999 inclusive\n - mon is the month between 1 and 12\n - d is a day in the given month\n - h is a hour between 0 and 23\n - min_ is a min...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_date API. 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_date API. 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...
This method is used to decode the packed dates of entries
"This method is used to decode the packed dates of entries"
81
false
raymontag/kppy
_get_date
17,893
LDU_FT/xray7224/PyPump/minor
LDU_FT
[ "<BEGIN>\n## `verifier`", "Will ask user to click link to accept app and write code\n<END>", "<BEGIN>\n## `post_note`", "Post note and return the URL of the posted note\n<END>", "<BEGIN>\n## `get_obj_id`", "Get the id of a PumpObject.", " :param item: id string or PumpObject\n<END>", "<BEGIN>\n...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the minor API. 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 minor API. 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...
Minor inbox feed, contains minor activities such as likes, shares and follows.
"Minor inbox feed, contains minor activities such as likes, shares and follows."
100
false
xray7224/PyPump
minor
17,894
LDU_FT/ciena/afkak/_commit_timer_stopped
LDU_FT
[ "<BEGIN>\n## `_coerce_topic`", "Ensure that the topic name is text string of a valid length.", " :param topic: Kafka topic name. Valid characters are in the set ``[a-zA-Z0-9._-]``.\n :raises ValueError: when the topic name exceeds 249 bytes\n :raises TypeError: when the topic is not :class:`unicode` or...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _commit_timer_stopped 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 _commit_timer_stopped API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
We're shutting down, clean up our looping call...
"We're shutting down, clean up our looping call..."
326
false
ciena/afkak
_commit_timer_stopped
17,895
LDU_FT/infobloxopen/infoblox-client/_remap_fields
LDU_FT
[ "<BEGIN>\n## `generate_duid`", "DUID is consisted of 10 hex numbers.", " 0x00 + mac with last 3 hex + mac with 6 hex\n<END>", "<BEGIN>\n## `try_value_to_bool`", "Tries to convert value into boolean.", " strict_mode is True:\n - Only string representation of str(True) and str(False)\n are con...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _remap_fields API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _remap_fields API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
Map fields from kwargs into dict acceptable by NIOS
"Map fields from kwargs into dict acceptable by NIOS"
56
false
infobloxopen/infoblox-client
_remap_fields
17,896
LDU_FT/uw-it-aca/uw-restclients-nws/update_endpoint
LDU_FT
[ "<BEGIN>\n## `get_endpoint_by_subscriber_id_and_protocol`", "Get an endpoint by subscriber_id and protocol\n<END>", "<BEGIN>\n## `get_endpoints_by_subscriber_id`", "Search for all endpoints by a given subscriber\n<END>", "<BEGIN>\n## `resend_sms_endpoint_verification`", "Calls NWS function to resend verif...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update_endpoint API. 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_endpoint API. 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...
Update an existing endpoint :param endpoint: is the updated endpoint the client wants to update
"Update an existing endpoint\n :param endpoint: is the updated endpoint the client wants to update"
44
false
uw-it-aca/uw-restclients-nws
update_endpoint
17,897
LDU_FT/yahoo/TensorFlowOnSpark/is_cluster_ssh_available
LDU_FT
[ "<BEGIN>\n## `start`", "Create a new multiprocess.Manager (or return existing one).", " Args:\n :authkey: string authorization key\n :queues: *INTERNAL_USE*\n :mode: 'local' indicates that the manager will only be accessible from the same host, otherwise remotely accessible.", " Returns:\n A TFM...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_cluster_ssh_available API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_cluster_ssh_available API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio...
Check if SSH is available on all the instances in a cluster.
"Check if SSH is available on all the instances in a cluster."
483
false
yahoo/TensorFlowOnSpark
is_cluster_ssh_available
17,898
LDU_FT/ChristopherRabotin/bungiesearch/hook_alias
LDU_FT
[ "<BEGIN>\n## `update_index`", "Updates the index for the provided model_items.\n :param model_items: a list of model_items (django Model instances, or proxy instances) which are to be indexed/updated or deleted.\n If action is 'index', the model_items must be serializable objects. If action is 'delete', the...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the hook_alias API. 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 hook_alias API. 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 the alias function, if it exists and if it can be applied to this model.
"Returns the alias function, if it exists and if it can be applied to this model."
46
false
ChristopherRabotin/bungiesearch
hook_alias
17,899
LDU_FT/dakrauth/django-swingtime/event_view
LDU_FT
[ "<BEGIN>\n## `timeslot_options`", "Create a list of time slot options for use in swingtime forms.", " The list is comprised of 2-tuples containing a 24-hour time value and a\n 12-hour temporal representation of that offset.\n<END>", "<BEGIN>\n## `timeslot_offset_options`", "Create a list of time slot ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the event_view API. 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 event_view API. 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...
View an ``Event`` instance and optionally update either the event or its occurrences. Context parameters: ``event`` the event keyed by ``pk`` ``event_form`` a form object for updating the event ``recurrence_form`` a form object for adding occurrences
"View an ``Event`` instance and optionally update either the event or its\n occurrences.\n\n Context parameters:\n\n ``event``\n the event keyed by ``pk``\n\n ``event_form``\n a form object for updating the event\n\n ``recurrence_form``\n a form object for adding occurrences"
76
false
dakrauth/django-swingtime
event_view
17,900
LDU_FT/buildinspace/peru/_optional_list
LDU_FT
[ "<BEGIN>\n## `_find_plugin_dir`", "Find the directory containing the plugin definition for the given type.\n Do this by searching all the paths where plugins can live for a dir that\n matches the type name.\n<END>", "<BEGIN>\n## `_get_plugin_install_dirs`", "Return all the places on the filesystem where...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _optional_list API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _optional_list API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
Convert a value that may be a scalar (str) or list into a tuple. This produces uniform output for fields that may supply a single value or list of values, like the `imports` field.
"Convert a value that may be a scalar (str) or list into a tuple. This\n produces uniform output for fields that may supply a single value or list\n of values, like the `imports` field."
75
false
buildinspace/peru
_optional_list
17,901
LDU_FT/cloudsmith-io/cloudsmith-cli/read_file
LDU_FT
[ "<BEGIN>\n## `convert`", "Take a path with $HOME variables and resolve it to full path.\n<END>", "<BEGIN>\n## `make_user_agent`", "Get a suitable user agent for identifying the CLI process.\n<END>", "<BEGIN>\n## `pretty_print_list_info`", "Pretty print list info, with pagination, for user display.\n<END>"...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the read_file API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the read_file API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
Read the specific file into a string in its entirety.
"Read the specific file into a string in its entirety."
214
false
cloudsmith-io/cloudsmith-cli
read_file
17,902
LDU_FT/hosford42/xcs/convert_md_to_rst
LDU_FT
[ "<BEGIN>\n## `random`", "Create a bit string of the given length, with the probability of\n each bit being set equal to bit_prob, which defaults to .5.", " Usage:\n # Create a random BitString of length 10 with mostly zeros.\n bits = BitString.random(10, bit_prob=.1)", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the convert_md_to_rst API. 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 convert_md_to_rst API. 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 to convert the source, an .md (markdown) file, to an .rst (reStructuredText) file at the destination. If the destination isn't provided, it defaults to be the same as the source path except for the filename extension. If the destination file already exists, it will be overwritten. In the event of an...
"Try to convert the source, an .md (markdown) file, to an .rst\n (reStructuredText) file at the destination. If the destination isn't\n provided, it defaults to be the same as the source path except for the\n filename extension. If the destination file already exists, it will be\n overwritten. In the event ...
159
false
hosford42/xcs
convert_md_to_rst
17,903
LDU_FT/iansf/qj/_catch
LDU_FT
[ "<BEGIN>\n## `qj`", "A combined logging and debugging function.", " Arguments:\n x: The thing to log. x is also the return value. Defaults to '', although\n it's somewhat odd to call this function without passing x.\n s: Optional string to prefix the log message with. Defaults to '', which\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _catch API. 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 _catch API. 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 ...
Decorator to drop into the debugger if a function throws an exception.
"Decorator to drop into the debugger if a function throws an exception."
28
false
iansf/qj
_catch
17,904
LDU_FT/thespacedoctor/sherlock/ingest
LDU_FT
[ "<BEGIN>\n## `ingest`", "ingest the veron catalogue into the catalogues database", " See class docstring for usage.\n<END>", "<BEGIN>\n## `_create_dictionary_of_veron`", "create a list of dictionaries containing all the rows in the veron catalogue", " **Return:**\n - ``dictList`` ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the ingest API. 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 ingest API. 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 ...
*Import the IFS catalogue into the sherlock-catalogues database* The method first generates a list of python dictionaries from the IFS datafile, imports this list of dictionaries into a database table and then generates the HTMIDs for that table. **Usage:** See class docstring for usage
"*Import the IFS catalogue into the sherlock-catalogues database*\n\n The method first generates a list of python dictionaries from the IFS datafile, imports this list of dictionaries into a database table and then generates the HTMIDs for that table. \n\n **Usage:**\n\n See class docstring for...
348
false
thespacedoctor/sherlock
ingest
17,905
LDU_FT/asweigart/pyautogui/mouseUp
LDU_FT
[ "<BEGIN>\n## `_specialKeyEvent`", "Helper method for special keys.", " Source: http://stackoverflow.com/questions/11045814/emulate-media-key-press-on-mac\n<END>", "<BEGIN>\n## `_keyDown`", "Performs a keyboard key press without the release. This will put that\n key in a held down state.", " NOTE:...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the mouseUp API. 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 mouseUp API. 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...
Performs releasing a mouse button up (but not down beforehand). The x and y parameters detail where the mouse event happens. If None, the current mouse position is used. If a float value, it is rounded down. If outside the boundaries of the screen, the event happens at edge of the screen. Args: ...
"Performs releasing a mouse button up (but not down beforehand).\n\n The x and y parameters detail where the mouse event happens. If None, the\n current mouse position is used. If a float value, it is rounded down. If\n outside the boundaries of the screen, the event happens at edge of the\n screen.\n\n ...
162
false
asweigart/pyautogui
mouseUp
17,906
LDU_FT/IceflowRE/unidown/delete_dir_rec
LDU_FT
[ "<BEGIN>\n## `from_protobuf`", "Constructor from protobuf.", " :param proto: protobuf structure\n :type proto: ~unidown.plugin.protobuf.link_item_pb2.LinkItemProto\n :return: the LinkItem\n :rtype: ~unidown.plugin.link_item.LinkItem\n :raises ValueError: name of LinkItem does ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the delete_dir_rec API. 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 delete_dir_rec API. 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...
Delete a folder recursive. :param path: folder to deleted :type path: ~pathlib.Path
"Delete a folder recursive.\n\n :param path: folder to deleted\n :type path: ~pathlib.Path"
88
false
IceflowRE/unidown
delete_dir_rec
17,907
LDU_FT/closeio/quotequail/unwrap
LDU_FT
[ "<BEGIN>\n## `quote`", "Takes a plain text message as an argument, returns a list of tuples. The\n first argument of the tuple denotes whether the text should be expanded by\n default. The second argument is the unmodified corresponding text.", " Example: [(True, 'expanded text'), (False, '> Some quote...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the unwrap API. 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 unwrap API. 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 ...
If the passed text is the text body of a forwarded message, a reply, or contains quoted text, a dictionary with the following keys is returned: - type: "reply", "forward" or "quote" - text_top: Text at the top of the passed message (if found) - text_bottom: Text at the bottom of the passed message (if ...
"If the passed text is the text body of a forwarded message, a reply, or\n contains quoted text, a dictionary with the following keys is returned:\n\n - type: \"reply\", \"forward\" or \"quote\"\n - text_top: Text at the top of the passed message (if found)\n - text_bottom: Text at the bottom of the passed ...
65
false
closeio/quotequail
unwrap
17,908
LDU_FT/uchicago-cs/deepdish/load
LDU_FT
[ "<BEGIN>\n## `load`", "Loads an instance of the class from a file.", " Parameters\n ----------\n path : str\n Path to an HDF5 file.", " Examples\n --------\n This is an abstract data type, but let us say that ``Foo`` inherits\n from ``Saveable``. To ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
Loads an HDF5 saved with `save`. This function requires the `PyTables <http://www.pytables.org/>`_ module to be installed. Parameters ---------- path : string Filename from which to load the data. group : string or list Load a specific group in the HDF5 hierarchy. If `group` is...
"Loads an HDF5 saved with `save`.\n\n This function requires the `PyTables <http://www.pytables.org/>`_ module to\n be installed.\n\n Parameters\n ----------\n path : string\n Filename from which to load the data.\n group : string or list\n Load a specific group in the HDF5 hierarchy. If...
138
false
uchicago-cs/deepdish
load
17,909
LDU_FT/uber-common/opentracing-python-instrumentation/span_in_context
LDU_FT
[ "<BEGIN>\n## `install_all_patches`", "A convenience method that installs all available hooks.", " If a specific module is not available on the path, it is ignored.\n<END>", "<BEGIN>\n## `install_patches`", "Usually called from middleware to install client hooks\n specified in the client_hooks section ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the span_in_context API. 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 span_in_context API. 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...
Create a context manager that stores the given span in the thread-local request context. This function should only be used in single-threaded applications like Flask / uWSGI. ## Usage example in WSGI middleware: .. code-block:: python from opentracing_instrumentation.http_server import WSGIReq...
"Create a context manager that stores the given span in the thread-local\n request context. This function should only be used in single-threaded\n applications like Flask / uWSGI.\n\n ## Usage example in WSGI middleware:\n\n .. code-block:: python\n from opentracing_instrumentation.http_server import...
74
false
uber-common/opentracing-python-instrumentation
span_in_context
17,910
LDU_FT/yougov/vr.common/guess_folder_vcs
LDU_FT
[ "<BEGIN>\n## `str_to_pool`", "Given a string containing an nginx upstream section, return the pool name\n and list of nodes.\n<END>", "<BEGIN>\n## `get_buildfile_path`", "Path to which a build tarball should be downloaded.\n<END>", "<BEGIN>\n## `_retry`", "Try to call f(*args, **kwargs) \"n\" times bef...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the guess_folder_vcs API. 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 guess_folder_vcs API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Given a path for a folder on the local filesystem, see what kind of vcs repo it is, if any.
"Given a path for a folder on the local filesystem, see what kind of vcs\n repo it is, if any."
49
false
yougov/vr.common
guess_folder_vcs
17,911
LDU_FT/chrisspen/webarticle2text/cache_get
LDU_FT
[ "<BEGIN>\n## `tidyHTML`", "Runs an arbitrary HTML string through Tidy.\n<END>", "<BEGIN>\n## `generate_key`", "Generates the cache key for the given string using the content in pattern\n to format the output string\n<END>", "<BEGIN>\n## `cache_get`", "Returns the content of a cache item or the given de...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the cache_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 extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the cache_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 extract...
Returns the content of a cache item or the given default
"Returns the content of a cache item or the given default"
14
false
chrisspen/webarticle2text
cache_get
17,912
LDU_FT/silver-castle/mach9/get_receive_message
LDU_FT
[ "<BEGIN>\n## `get_connect_message`", "http://channels.readthedocs.io/en/stable/asgi/www.html#connection\n<END>", "<BEGIN>\n## `get_receive_message`", "http://channels.readthedocs.io/en/stable/asgi/www.html#receive\n<END>", "<BEGIN>\n## `get_disconnect_message`", "http://channels.readthedocs.io/en/stable/a...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_receive_message 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_receive_message 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...
http://channels.readthedocs.io/en/stable/asgi/www.html#receive
"http://channels.readthedocs.io/en/stable/asgi/www.html#receive"
78
false
silver-castle/mach9
get_receive_message
17,913
LDU_FT/rduplain/jeni-python/get
LDU_FT
[ "<BEGIN>\n## `see_doc`", "Copy docstring from existing object to the decorated callable.\n<END>", "<BEGIN>\n## `class_in_progress`", "True if currently inside a class definition, else False.\n<END>", "<BEGIN>\n## `get`", "Get initial yield value, or result of send(name) if name given.\n<END>", "<BEGIN>\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
Get initial yield value, or result of send(name) if name given.
"Get initial yield value, or result of send(name) if name given."
91
false
rduplain/jeni-python
get
17,914
LDU_FT/kivy/buildozer/cmd_list_identities
LDU_FT
[ "<BEGIN>\n## `_sdkmanager`", "Call the sdkmanager in our Android SDK with the given arguments.\n<END>", "<BEGIN>\n## `_locate_java`", "If JAVA_HOME is in the environ, return $JAVA_HOME/bin/s. Otherwise,\n return s.\n<END>", "<BEGIN>\n## `_android_get_installed_platform_tools_version`", "Crudely par...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the cmd_list_identities 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 cmd_list_identities 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...
List the available identities to use for signing.
"List the available identities to use for signing."
54
false
kivy/buildozer
cmd_list_identities
17,915
LDU_FT/SUSE-Enceladus/ipa/_get_ssh_client
LDU_FT
[ "<BEGIN>\n## `_get_instance_state`", "Attempt to retrieve the state of the instance.\n Raises:\n EC2CloudException: If the instance cannot be found.\n<END>", "<BEGIN>\n## `_get_user_data`", "Return formatted bash script string.", " The public ssh key is added by cloud init to the i...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_ssh_client API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_ssh_client API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
Return a new or existing SSH client for given ip.
"Return a new or existing SSH client for given ip."
143
false
SUSE-Enceladus/ipa
_get_ssh_client
17,916
LDU_FT/Yelp/detect-secrets/_analyze_yaml_file
LDU_FT
[ "<BEGIN>\n## `determine_file_type`", ":param filename: str", " :rtype: FileType\n<END>", "<BEGIN>\n## `write_baseline_to_file`", ":type filename: str\n :type data: dict\n :rtype: None\n<END>", "<BEGIN>\n## `load_baseline_from_string`", "Initializes a SecretsCollection object from string.", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _analyze_yaml_file API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _analyze_yaml_file API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
:returns: same format as super().analyze()
":returns: same format as super().analyze()"
194
false
Yelp/detect-secrets
_analyze_yaml_file
17,917
LDU_FT/huggingface/pytorch-pretrained-BERT/get_corpus_line
LDU_FT
[ "<BEGIN>\n## `from_json_file`", "Constructs a `GPT2Config` from a json file of parameters.\n<END>", "<BEGIN>\n## `from_pretrained`", "Instantiate a GPT2PreTrainedModel from a pre-trained model file or a pytorch state dict.\n Download and cache the pre-trained model file if needed.", " Params:\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_corpus_line API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_corpus_line API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
Get one sample from corpus consisting of a pair of two subsequent lines from the same doc. :param item: int, index of sample. :return: (str, str), two subsequent sentences from corpus
"Get one sample from corpus consisting of a pair of two subsequent lines from the same doc.\n :param item: int, index of sample.\n :return: (str, str), two subsequent sentences from corpus"
115
false
huggingface/pytorch-pretrained-BERT
get_corpus_line
17,918
LDU_FT/mozilla-releng/scriptworker/build_task_dependencies
LDU_FT
[ "<BEGIN>\n## `create_queue`", "Create a taskcluster queue.", " Args:\n credentials (dict): taskcluster credentials.\n<END>", "<BEGIN>\n## `write_json`", "Write json to disk.", " Args:\n path (str): the path to write to\n contents (dict): the contents of the j...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the build_task_dependencies API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the build_task_dependencies API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion...
Recursively build the task dependencies of a task. Args: chain (ChainOfTrust): the chain of trust to add to. task (dict): the task definition to operate on. name (str): the name of the task to operate on. my_task_id (str): the taskId of the task to operate on. Raises: C...
"Recursively build the task dependencies of a task.\n\n Args:\n chain (ChainOfTrust): the chain of trust to add to.\n task (dict): the task definition to operate on.\n name (str): the name of the task to operate on.\n my_task_id (str): the taskId of the task to operate on.\n\n Raises:\...
621
false
mozilla-releng/scriptworker
build_task_dependencies
17,919
LDU_FT/itamarst/crochet/wait_for_reactor
LDU_FT
[ "<BEGIN>\n## `register`", "Register an EventualResult.", " May be called in any thread.\n<END>", "<BEGIN>\n## `stop`", "Indicate no more results will get pushed into EventualResults, since\n the reactor has stopped.", " This should be called in the reactor thread.\n<END>", "<BEGIN>\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the wait_for_reactor API. 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 wait_for_reactor API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
DEPRECATED, use wait_for(timeout) instead. A decorator that ensures the wrapped function runs in the reactor thread. When the wrapped function is called, its result is returned or its exception raised. Deferreds are handled transparently.
"DEPRECATED, use wait_for(timeout) instead.\n\n A decorator that ensures the wrapped function runs in the reactor\n thread.\n\n When the wrapped function is called, its result is returned or its\n exception raised. Deferreds are handled transparently."
61
false
itamarst/crochet
wait_for_reactor
17,920
LDU_FT/XML-Security/signxml/sign
LDU_FT
[ "<BEGIN>\n## `bytes_to_long`", "bytes_to_long(string) : long\n Convert a byte string to a long integer.", " This is (essentially) the inverse of long_to_bytes().\n<END>", "<BEGIN>\n## `long_to_bytes`", "long_to_bytes(n:long, blocksize:int) : string\n Convert a long integer to a byte string.", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the sign API. 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 sign API. 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...
Sign the data and return the root element of the resulting XML tree. :param data: Data to sign :type data: String, file-like object, or XML ElementTree Element API compatible object :param key: Key to be used for signing. When signing with a certificate or RSA/DSA/ECDSA key, this ca...
"Sign the data and return the root element of the resulting XML tree.\n\n :param data: Data to sign\n :type data: String, file-like object, or XML ElementTree Element API compatible object\n :param key:\n Key to be used for signing. When signing with a certificate or RSA/DSA/ECDSA key, t...
36
false
XML-Security/signxml
sign
17,921
LDU_FT/benley/butcher/setup_function
LDU_FT
[ "<BEGIN>\n## `_metahash`", "Checksum hash of all the inputs to this rule.", " Output is invalid until collect_srcs and collect_deps have been run.", " In theory, if this hash doesn't change, the outputs won't change\n either, which makes it useful for caching.\n<END>", "<BEGIN>\n## `col...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the setup_function API. 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 setup_function API. 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...
twitter.comon.app runs this before any global main() function.
"twitter.comon.app runs this before any global main() function."
118
false
benley/butcher
setup_function
17,922
LDU_FT/sludgedesk/metoffer/get_nearest_site
LDU_FT
[ "<BEGIN>\n## `guidance_UV`", "Return Met Office guidance regarding UV exposure based on UV index\n<END>", "<BEGIN>\n## `parse_sitelist`", "Return list of Site instances from retrieved sitelist data\n<END>", "<BEGIN>\n## `get_nearest_site`", "Return a string which can be used as \"request\" in calls to loc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_nearest_site API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_nearest_site API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Return a string which can be used as "request" in calls to loc_forecast and loc_observations. sites: List of Site instances lat: float or int. Interesting latitude lon: float or int. Interesting longitude
"Return a string which can be used as \"request\" in calls to loc_forecast\n and loc_observations.\n \n sites: List of Site instances\n lat: float or int. Interesting latitude\n lon: float or int. Interesting longitude"
33
false
sludgedesk/metoffer
get_nearest_site
17,923
LDU_FT/pypa/setuptools/scanString
LDU_FT
[ "<BEGIN>\n## `indentedBlock`", "Helper method for defining space-delimited indentation blocks, such as\r\n those used to define block statements in Python source code.\r", " Parameters:\r\n - blockStatementExpr - expression defining syntax of statement that\r\n is repeated within the indent...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the scanString API. 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 scanString API. 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...
Scan the input string for expression matches. Each match will return the matching tokens, start location, and end location. May be called with optional C{maxMatches} argument, to clip scanning after 'n' matches are found. If C{overlap} is specified, then overlapping matches will be reporte...
"Scan the input string for expression matches. Each match will return the\r\n matching tokens, start location, and end location. May be called with optional\r\n C{maxMatches} argument, to clip scanning after 'n' matches are found. If\r\n C{overlap} is specified, then overlapping matches will be ...
565
false
pypa/setuptools
scanString
17,924
LDU_FT/debrouwere/google-analytics/authenticate
LDU_FT
[ "<BEGIN>\n## `serialize`", "Greedy serialization requires the value to either be a column\n or convertible to a column, whereas non-greedy serialization\n will pass through any string as-is and will only serialize\n Column objects.", " Non-greedy serialization is useful when preparin...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the authenticate API. 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 authenticate API. 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...
The `authenticate` function will authenticate the user with the Google Analytics API, using a variety of strategies: keyword arguments provided to this function, credentials stored in in environment variables, credentials stored in the keychain and, finally, by asking for missing information interactively i...
"The `authenticate` function will authenticate the user with the Google Analytics API,\n using a variety of strategies: keyword arguments provided to this function, credentials\n stored in in environment variables, credentials stored in the keychain and, finally, by\n asking for missing information interactive...
76
false
debrouwere/google-analytics
authenticate
17,925
LDU_FT/Knoema/knoema-python-driver/add_value
LDU_FT
[ "<BEGIN>\n## `is_equal_strings_ignore_case`", "The function compares strings ignoring case\n<END>", "<BEGIN>\n## `find_dimension_by_name`", "the method searching dimension with a given name\n<END>", "<BEGIN>\n## `find_dimension_by_id`", "the method searching dimension with a given id\n<END>", "<BEGIN>\n...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_value API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_value API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
The function is addeing new value to provied index. If index does not exist
"The function is addeing new value to provied index. If index does not exist"
48
false
Knoema/knoema-python-driver
add_value
17,926
LDU_FT/glomex/gcdt/main
LDU_FT
[ "<BEGIN>\n## `list_functions`", "List the deployed lambda functions and print configuration.", " :return: exit_code\n<END>", "<BEGIN>\n## `deploy_lambda`", "Create or update a lambda function.", " :param awsclient:\n :param function_name:\n :param role:\n :param handler_filename:\n :para...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the main API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the main API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
gcdt tools parametrized main function to initiate gcdt lifecycle. :param doc: docopt string :param tool: gcdt tool (gcdt, kumo, tenkai, ramuda, yugen) :param dispatch_only: list of commands which do not use gcdt lifecycle :return: exit_code
"gcdt tools parametrized main function to initiate gcdt lifecycle.\n\n :param doc: docopt string\n :param tool: gcdt tool (gcdt, kumo, tenkai, ramuda, yugen)\n :param dispatch_only: list of commands which do not use gcdt lifecycle\n :return: exit_code"
301
false
glomex/gcdt
main
17,927
LDU_FT/sqlboy/fileseq/setExtention
LDU_FT
[ "<BEGIN>\n## `xfrange`", "Returns a generator that yields the frames from start to stop, inclusive.\n In other words it adds or subtracts a frame, as necessary, to return the\n stop value as well, if the stepped range would touch that value.", " Args:\n start (int):\n stop (int):\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the setExtention API. 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 setExtention API. 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...
Deprecated: use :meth:`setExtension`. Args: ext (str):
"Deprecated: use :meth:`setExtension`.\n\n Args:\n ext (str):"
146
false
sqlboy/fileseq
setExtention
17,928
LDU_FT/anti1869/sunhead/deprecated
LDU_FT
[ "<BEGIN>\n## `discover_config_path`", "Search for config file in a number of places.\n If there is no config file found, will return None.", " :param config_filename: Config file name or custom path to filename with config.\n :return: Path to the discovered config file or None.\n<END>", "...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the deprecated API. 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 deprecated API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
This decorator will simply print warning before running decoratee. So, presumably, you want to use it with console-based commands. :return: Decorator for the function.
"This decorator will simply print warning before running decoratee.\n So, presumably, you want to use it with console-based commands.\n\n :return: Decorator for the function."
53
false
anti1869/sunhead
deprecated
17,929
LDU_FT/noxdafox/pebble/process_next_message
LDU_FT
[ "<BEGIN>\n## `waitforqueues`", "Waits for one or more *Queue* to be ready or until *timeout* expires.", " *queues* is a list containing one or more *Queue.Queue* objects.\n If *timeout* is not None the function will block\n for the specified amount of seconds.", " The function returns a list conta...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the process_next_message API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the process_next_message API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Processes the next message coming from the workers.
"Processes the next message coming from the workers."
83
false
noxdafox/pebble
process_next_message
17,930
LDU_FT/InformaticsMatters/pipelines-utils/create_simple_writer
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 create_simple_writer API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_simple_writer API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Create a simple writer suitable for writing flat data e.g. as BasicObject or TSV.
"Create a simple writer suitable for writing flat data\n e.g. as BasicObject or TSV."
39
false
InformaticsMatters/pipelines-utils
create_simple_writer
17,931
LDU_FT/blueset/ehForwarderBot/get_data_path
LDU_FT
[ "<BEGIN>\n## `self`", "Set the chat as yourself.\n In this context, \"yourself\" means the user behind the master channel.\n Every channel should relate this to the corresponding target.", " Returns:\n EFBChat: This object.\n<END>", "<BEGIN>\n## `system`", "Set the chat as a ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_data_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 ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_data_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 ext...
Get the path for persistent storage of a module. This method creates the queried path if not existing. Args: module_id (str): Module ID Returns: The data path of indicated module.
"Get the path for persistent storage of a module.\n \n This method creates the queried path if not existing.\n \n Args:\n module_id (str): Module ID\n\n Returns:\n The data path of indicated module."
66
false
blueset/ehForwarderBot
get_data_path
17,932
LDU_FT/datadesk/python-documentcloud/get_page_text
LDU_FT
[ "<BEGIN>\n## `_make_request`", "Configure a HTTP request, fire it off and return the response.\n<END>", "<BEGIN>\n## `_get_search_page`", "Retrieve one page of search results from the DocumentCloud API.\n<END>", "<BEGIN>\n## `search`", "Retrieve all objects that make a search query.", " Will loop...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_page_text API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_page_text API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
Downloads and returns the full text of a particular page in the document.
"Downloads and returns the full text of a particular page\n in the document."
107
false
datadesk/python-documentcloud
get_page_text
17,933
LDU_FT/abilian/abilian-core/to_image
LDU_FT
[ "<BEGIN>\n## `require_flush`", "Decorator for methods that need to query security.", " It ensures all security related operations are flushed to DB, but\n avoids unneeded flushes.\n<END>", "<BEGIN>\n## `query_pa_no_flush`", "Query for a :class:`PermissionAssignment` using `session` without any\n `f...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the to_image API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the to_image API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
Convert a file to a list of images. Returns image at the given index.
"Convert a file to a list of images.\n\n Returns image at the given index."
429
false
abilian/abilian-core
to_image
17,934
LDU_FT/KelSolaar/Umbra/__delete_path
LDU_FT
[ "<BEGIN>\n## `restore_geometry_on_layout_change`", "Setter for **self.__restore_geometry_on_layout_change** attribute.", " :param value: Attribute value.\n :type value: bool\n<END>", "<BEGIN>\n## `get`", "Returns given layout value.", " :param layout: Layout name.\n :type layou...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the __delete_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 ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the __delete_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 ext...
Deletes given path. :param path: Path to delete. :type path: unicode
"Deletes given path.\n\n :param path: Path to delete.\n :type path: unicode"
1,432
true
KelSolaar/Umbra
__delete_path
17,935
LDU_FT/ONSdigital/sdc-rabbit/on_consumer_cancelled
LDU_FT
[ "<BEGIN>\n## `_connect`", "Connect to a RabbitMQ instance", " :returns: Boolean corresponding to success of connection\n :rtype: bool\n<END>", "<BEGIN>\n## `_disconnect`", "Cleanly close a RabbitMQ connection.", " :returns: None\n<END>", "<BEGIN>\n## `publish_message`", "Publish a...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the on_consumer_cancelled 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 on_consumer_cancelled API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Invoked by pika when RabbitMQ sends a Basic.Cancel for a consumer receiving messages. :param pika.frame.Method method_frame: The Basic.Cancel frame
"Invoked by pika when RabbitMQ sends a Basic.Cancel for a consumer\n receiving messages.\n\n :param pika.frame.Method method_frame: The Basic.Cancel frame"
58
false
ONSdigital/sdc-rabbit
on_consumer_cancelled
17,936
LDU_FT/coopernurse/barrister/set_filters
LDU_FT
[ "<BEGIN>\n## `get_checksum`", "Returns a checksum based on the IDL that ignores comments and \n ordering, but detects changes to types, parameter order, \n and enum values.\n<END>", "<BEGIN>\n## `contract_from_file`", "Loads a Barrister IDL JSON from the given file and returns a Contract class",...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_filters API. 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_filters API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
Sets the filters for the server. :Parameters: filters List of filters to set on this server, or None to remove all filters. Elements in list should subclass Filter
"Sets the filters for the server.\n\n :Parameters:\n filters\n List of filters to set on this server, or None to remove all filters.\n Elements in list should subclass Filter"
126
false
coopernurse/barrister
set_filters
17,937
LDU_FT/miso-belica/sumy/f_score
LDU_FT
[ "<BEGIN>\n## `_compute_tf`", "Computes the normalized term frequency as explained in http://www.tfidf.com/\n<END>", "<BEGIN>\n## `f_score`", "Computation of F-Score measure. It is computed as\n F(E) = ( (W^2 + 1) * P(E) * R(E) ) / ( W^2 * P(E) + R(E) ), where:", " - P(E) is precision metrics of extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the f_score API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the f_score API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
Computation of F-Score measure. It is computed as F(E) = ( (W^2 + 1) * P(E) * R(E) ) / ( W^2 * P(E) + R(E) ), where: - P(E) is precision metrics of extract E. - R(E) is recall metrics of extract E. - W is a weighting factor that favours P(E) metrics when W > 1 and favours R(E) metrics when W < 1....
"Computation of F-Score measure. It is computed as\n F(E) = ( (W^2 + 1) * P(E) * R(E) ) / ( W^2 * P(E) + R(E) ), where:\n\n - P(E) is precision metrics of extract E.\n - R(E) is recall metrics of extract E.\n - W is a weighting factor that favours P(E) metrics\n when W > 1 and favours R(E) metrics when...
66
false
miso-belica/sumy
f_score
17,938
LDU_FT/laf/russound/all_on_off
LDU_FT
[ "<BEGIN>\n## `connect`", "Connect to the tcp gateway\n Allow for this function to be keypad agnostic\n If keypad value is omitted, then set it to the hex value of 70 which is the recommended value for an external\n device controlling the system (top of pg 3 of cav6.6_rnet_protocol_v1.01.00.pd...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the all_on_off API. 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 all_on_off API. 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...
Turn all zones on or off Note that the all on function is not supported by the Russound CAA66, although it does support the all off. On and off are supported by the CAV6.6. Note: Not tested (acambitsis)
"Turn all zones on or off\n Note that the all on function is not supported by the Russound CAA66, although it does support the all off.\n On and off are supported by the CAV6.6.\n Note: Not tested (acambitsis)"
24
false
laf/russound
all_on_off
17,939
LDU_FT/log2timeline/plaso/ParseFileDownloadedRow
LDU_FT
[ "<BEGIN>\n## `_GetStatus`", "Retrieves status information.", " Returns:\n dict[str, object]: status attributes, indexed by name.\n<END>", "<BEGIN>\n## `_ProcessEvent`", "Processes an event.", " Args:\n mediator (AnalysisMediator): mediates interactions between\n analysis plugins a...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the ParseFileDownloadedRow 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 ParseFileDownloadedRow API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
Parses a file downloaded row. Args: parser_mediator (ParserMediator): mediates interactions between parsers and other components, such as storage and dfvfs. query (str): query that created the row. row (sqlite3.Row): row.
"Parses a file downloaded row.\n\n Args:\n parser_mediator (ParserMediator): mediates interactions between parsers\n and other components, such as storage and dfvfs.\n query (str): query that created the row.\n row (sqlite3.Row): row."
5,157
true
log2timeline/plaso
ParseFileDownloadedRow
17,940
LDU_FT/mozilla/FoxPuppet/wait_for_notification
LDU_FT
[ "<BEGIN>\n## `is_tracking_shield_displayed`", "Tracking Protection shield.", " Returns:\n bool: True or False if the Tracking Shield is displayed.\n<END>", "<BEGIN>\n## `addon_name`", "Provide access to the add-on name.", " Returns:\n str: Add-on name.\n<END>", "<BEGI...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the wait_for_notification 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 wait_for_notification API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Wait for the specified notification to be displayed. Args: notification_class (:py:class:`BaseNotification`, optional): The notification class to wait for. If `None` is specified it will wait for any notification to be closed. Defaults to `BaseNotific...
"Wait for the specified notification to be displayed.\n\n Args:\n notification_class (:py:class:`BaseNotification`, optional):\n The notification class to wait for. If `None` is specified it\n will wait for any notification to be closed. Defaults to\n `Base...
36
false
mozilla/FoxPuppet
wait_for_notification
17,941
LDU_FT/benjamin-hodgson/asynqp/consume
LDU_FT
[ "<BEGIN>\n## `open_channel`", "Open a new channel on this connection.", " This method is a :ref:`coroutine <coroutine>`.", " :return: The new :class:`Channel` object.\n<END>", "<BEGIN>\n## `close`", "Close the connection by handshaking with the server.", " This method is a :ref:`cor...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the consume API. 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 consume API. 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...
Start a consumer on the queue. Messages will be delivered asynchronously to the consumer. The callback function will be called whenever a new message arrives on the queue. Advanced usage: the callback object must be callable (it must be a function or define a ``__call__`` method), but m...
"Start a consumer on the queue. Messages will be delivered asynchronously to the consumer.\n The callback function will be called whenever a new message arrives on the queue.\n\n Advanced usage: the callback object must be callable\n (it must be a function or define a ``__call__`` method),\n ...
95
false
benjamin-hodgson/asynqp
consume
17,942
LDU_FT/AlecAivazis/graphql-over-kafka/create_handler
LDU_FT
[ "<BEGIN>\n## `roll_call_handler`", "This action handler responds to the \"roll call\" emitted by the api\n gateway when it is brought up with the normal summary produced by\n the service.\n<END>", "<BEGIN>\n## `flexible_api_handler`", "This query handler builds the dynamic picture of availible s...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_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 ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_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 ex...
This factory returns an action handler that creates a new instance of the specified model when a create action is recieved, assuming the action follows nautilus convetions. Args: Model (nautilus.BaseModel): The model to create when the action received. Retur...
"This factory returns an action handler that creates a new instance of\n the specified model when a create action is recieved, assuming the\n action follows nautilus convetions.\n\n Args:\n Model (nautilus.BaseModel): The model to create when the action\n received.\n\n ...
145
false
AlecAivazis/graphql-over-kafka
create_handler
17,943
LDU_FT/ramses-tech/nefertari/add_from_child
LDU_FT
[ "<BEGIN>\n## `_import_public_names`", "Import public names from module into this module, like import *\n<END>", "<BEGIN>\n## `encrypt_password`", "Crypt :new_value: if it's not crypted yet.\n<END>", "<BEGIN>\n## `create_apikey_model`", "Generate ApiKey model class and connect it with :user_model:.", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_from_child API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_from_child API. 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...
Add a resource with its all children resources to the current resource.
"Add a resource with its all children resources to the current\n resource."
226
false
ramses-tech/nefertari
add_from_child
17,944
LDU_FT/kvesteri/intervals/canonicalize
LDU_FT
[ "<BEGIN>\n## `py2round`", "Round values as in Python 2, for Python 3 compatibility.", " All x.5 values are rounded away from zero.", " In Python 3, this has changed to avoid bias: when x is even,\n rounding is towards zero, when x is odd, rounding is away\n from zero. Thus, in Python 3, round(2.5)...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the canonicalize API. 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 canonicalize API. 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...
Convert equivalent discrete intervals to different representations.
"Convert equivalent discrete intervals to different representations."
19
false
kvesteri/intervals
canonicalize
17,945
LDU_FT/phac-nml/sistr_cmd/to_dict
LDU_FT
[ "<BEGIN>\n## `parse_cgmlst_alleles`", "Parse cgMLST alleles from fasta file\n cgMLST FASTA file must have a header format of \">{marker name}|{allele name}\"", " Args:\n cgmlst_fasta (str): cgMLST fasta file path", " Returns:\n dict of list: Marker name to list of allele sequences\n<END...
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...
Transform a nested object/dict/list into a regular dict json.dump(s) and pickle don't like to un/serialize regular Python objects so this function should handle arbitrarily nested objects to be serialized to regular string, float, int, bool, None values. This is a recursive function so by defa...
"Transform a nested object/dict/list into a regular dict\n \n json.dump(s) and pickle don't like to un/serialize regular Python objects so\n this function should handle arbitrarily nested objects to be serialized to\n regular string, float, int, bool, None values.\n \n This is a recursive function so ...
148
false
phac-nml/sistr_cmd
to_dict
17,946
LDU_FT/bheinzerling/pyrouge/output_to_dict
LDU_FT
[ "<BEGIN>\n## `split`", "Splits text and returns a list of the resulting sentences.\n<END>", "<BEGIN>\n## `xml_equal`", "Parse xml and convert to a canonical string representation so we don't\n have to worry about semantically meaningless differences\n<END>", "<BEGIN>\n## `process`", "Apply function to ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the output_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 ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the output_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 ex...
Convert the ROUGE output into python dictionary for further processing.
"Convert the ROUGE output into python dictionary for further\n processing."
45
false
bheinzerling/pyrouge
output_to_dict
17,947
LDU_FT/openstack/swauth/make_pre_authed_request
LDU_FT
[ "<BEGIN>\n## `filter_factory`", "Returns a WSGI filter app for use with paste.deploy.\n<END>", "<BEGIN>\n## `make_pre_authed_request`", "Nearly the same as swift.common.wsgi.make_pre_authed_request\n except that this also always sets the 'swift.source' and user\n agent.", " Newer Swift ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the make_pre_authed_request API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the make_pre_authed_request API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion...
Nearly the same as swift.common.wsgi.make_pre_authed_request except that this also always sets the 'swift.source' and user agent. Newer Swift code will support swift_source as a kwarg, but we do it this way so we don't have to have a newer Swift. Since we're doing this anyway, ...
"Nearly the same as swift.common.wsgi.make_pre_authed_request\n except that this also always sets the 'swift.source' and user\n agent.\n\n Newer Swift code will support swift_source as a kwarg, but we\n do it this way so we don't have to have a newer Swift.\n\n Since we're doing this ...
133
false
openstack/swauth
make_pre_authed_request
17,948
LDU_FT/mvn23/pyotgw/_get_flag8
LDU_FT
[ "<BEGIN>\n## `connection_made`", "Gets called when a connection to the gateway is established.\n Initialise the protocol object.\n<END>", "<BEGIN>\n## `connection_lost`", "Gets called when the connection to the gateway is lost.\n Tear down and clean up the protocol object.\n<END>", "<BEGIN>\n#...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_flag8 API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_flag8 API. 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...
Split a byte into a list of 8 bits (1/0).
"Split a byte into a list of 8 bits (1/0)."
115
false
mvn23/pyotgw
_get_flag8
17,949
LDU_FT/jedie/DragonPy/install_python
LDU_FT
[ "<BEGIN>\n## `create_environment`", "Creates a new environment in ``home_dir``.", " If ``site_packages`` is true, then the global ``site-packages/``\n directory will be on the path.", " If ``clear`` is true (default False) then the environment will\n first be cleared.\n<END>", "<BEGIN>\n## `path...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the install_python API. 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 install_python API. 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...
Install just the base environment, no distutils patches etc
"Install just the base environment, no distutils patches etc"
223
false
jedie/DragonPy
install_python
17,950
LDU_FT/w1ll1am23/pubnubsub-handler/status
LDU_FT
[ "<BEGIN>\n## `add_subscription`", "Add a channel to subscribe to and a callback function to\n run when the channel receives an update.\n If channel already exists, create a new \"subscription\"\n and append another callback function.", " Args:\n channel (str): The channel ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the status API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the status API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Things to do on different status updates.
"Things to do on different status updates."
11
false
w1ll1am23/pubnubsub-handler
status
17,951
LDU_FT/psphere-project/psphere/load_template
LDU_FT
[ "<BEGIN>\n## `get_options`", "Get the options that have been set.", " Called after the user has added all their own options\n and is ready to use the variables.\n<END>", "<BEGIN>\n## `_get_dataobject`", "This function only gets called if the decorated property\n doesn't have a value in ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load_template API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load_template API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
Loads a template of the specified name. Templates are placed in the <template_dir> directory in YAML format with a .yaml extension. If no name is specified then the function will return the default template (<template_dir>/default.yaml) if it exists. :param name: The name of the template to l...
"Loads a template of the specified name.\n\n Templates are placed in the <template_dir> directory in YAML format with\n a .yaml extension.\n\n If no name is specified then the function will return the default\n template (<template_dir>/default.yaml) if it exists.\n \n :param name: The name of the temp...
82
false
psphere-project/psphere
load_template
17,952
LDU_FT/csirtgadgets/csirtgsdk-py/_post
LDU_FT
[ "<BEGIN>\n## `show`", "Show a specific indicator by id", " :param user: feed username\n :param feed: feed name\n :param id: indicator endpoint id [INT]\n :return: dict", " Example:\n ret = Indicator.show('csirtgadgets','port-scanners', '1234')\n<END>", "<BEGIN>\...
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 d...
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 d...
HTTP POST function :param uri: REST endpoint to POST to :param data: list of dicts to be passed to the endpoint :return: list of dicts, usually will be a list of objects or id's Example: ret = cli.post('/indicators', { 'indicator': 'example.com' })
"HTTP POST function\n\n :param uri: REST endpoint to POST to\n :param data: list of dicts to be passed to the endpoint\n :return: list of dicts, usually will be a list of objects or id's\n\n Example:\n ret = cli.post('/indicators', { 'indicator': 'example.com' })"
52
false
csirtgadgets/csirtgsdk-py
_post
17,953
LDU_FT/awslabs/aws-shell/retrieve_candidate_values
LDU_FT
[ "<BEGIN>\n## `_create_key_manager`", "Create and initialize the keybinding manager.", " :type get_fuzzy_match: callable\n :param get_fuzzy_match: Gets the fuzzy matching config.", " :type set_fuzzy_match: callable\n :param set_fuzzy_match: Sets the fuzzy matching config.", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the retrieve_candidate_values API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the retrieve_candidate_values API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi...
Retrieve server side completions. :type service: str :param service: The service name, e.g. 'ec2', 'iam'. :type operation: str :param operation: The operation name, in the casing used by the CLI (words separated by hyphens), e.g. 'describe-instances', 'delete-us...
"Retrieve server side completions.\n\n :type service: str\n :param service: The service name, e.g. 'ec2', 'iam'.\n\n :type operation: str\n :param operation: The operation name, in the casing\n used by the CLI (words separated by hyphens), e.g.\n 'describe-instances', '...
109
false
awslabs/aws-shell
retrieve_candidate_values
17,954
LDU_FT/globus/globus-cli/get_versions
LDU_FT
[ "<BEGIN>\n## `role_show`", "Executor for `globus endpoint role show`\n<END>", "<BEGIN>\n## `outformat_is_json`", "Only safe to call within a click context.\n<END>", "<BEGIN>\n## `outformat_is_unix`", "Only safe to call within a click context.\n<END>", "<BEGIN>\n## `outformat_is_text`", "Only safe to c...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_versions API. 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_versions API. 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...
Wrap in a function to ensure that we don't run this every time a CLI command runs (yuck!) Also protects import of `requests` from issues when grabbed by setuptools. More on that inline
"Wrap in a function to ensure that we don't run this every time a CLI\n command runs (yuck!)\n\n Also protects import of `requests` from issues when grabbed by setuptools.\n More on that inline"
186
false
globus/globus-cli
get_versions
17,955
LDU_FT/discogs/python-cas-client/perform_api_request
LDU_FT
[ "<BEGIN>\n## `acquire_auth_token_ticket`", "Acquire an auth token from the CAS server.\n<END>", "<BEGIN>\n## `create_session`", "Create a session record from a service ticket.\n<END>", "<BEGIN>\n## `delete_session`", "Delete a session record associated with a service ticket.\n<END>", "<BEGIN>\n## `get_a...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the perform_api_request API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the perform_api_request API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
Perform an auth-token-protected request against a CAS API endpoint.
"Perform an auth-token-protected request against a CAS API endpoint."
30
false
discogs/python-cas-client
perform_api_request
17,956
LDU_FT/pettarin/ipapy/canonical_representation
LDU_FT
[ "<BEGIN>\n## `can_map_ipa_string`", "Return ``True`` if the mapper can map all the IPA characters\n in the given IPA string.", " :param IPAString ipa_string: the IPAString to be parsed\n :rtype: bool\n<END>", "<BEGIN>\n## `map_ipa_string`", "Convert the given IPAString to a string\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the canonical_representation API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the canonical_representation API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio...
Return a new IPAString, containing the canonical representation of the current string, that is, the one composed by the (prefix) minimum number of IPAChar objects. :rtype: IPAString
"Return a new IPAString, containing the canonical representation of the current string,\n that is, the one composed by the (prefix) minimum number of IPAChar objects.\n\n :rtype: IPAString"
205
false
pettarin/ipapy
canonical_representation
17,957
LDU_FT/abilian/abilian-core/clear
LDU_FT
[ "<BEGIN>\n## `require_flush`", "Decorator for methods that need to query security.", " It ensures all security related operations are flushed to DB, but\n avoids unneeded flushes.\n<END>", "<BEGIN>\n## `query_pa_no_flush`", "Query for a :class:`PermissionAssignment` using `session` without any\n `f...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the clear API. 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 clear API. 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...
Remove all content from indexes, and unregister all classes. After clear() the service is stopped. It must be started again to create new indexes and register classes.
"Remove all content from indexes, and unregister all classes.\n\n After clear() the service is stopped. It must be started again\n to create new indexes and register classes."
429
false
abilian/abilian-core
clear
17,958
LDU_FT/Dispersive-Hydrodynamics-Lab/PACE/analyze_full
LDU_FT
[ "<BEGIN>\n## `get_args`", "Get program arguments.", " Just use --help....\n<END>", "<BEGIN>\n## `get_keys`", "Return list of SHA512 hash keys that exist in datafile", " :return: list of keys\n<END>", "<BEGIN>\n## `check_key`", "Checks if key exists in datastore. True if yes, False if no.", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the analyze_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 extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the analyze_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 extr...
Determine noise, curvature, range, and domain of specified data. Like analyze, except examines the entire file. :param: float->pixel to inch ratio :return: array->curvatures :return: array->noises :return: array->ranges :return: array->domains
"Determine noise, curvature, range, and domain of specified data.\n Like analyze, except examines the entire file.\n\n :param: float->pixel to inch ratio\n\n :return: array->curvatures\n :return: array->noises\n :return: array->ranges\n :return: array->domains"
46
false
Dispersive-Hydrodynamics-Lab/PACE
analyze_full
17,959
LDU_FT/timdiels/pytil/pretty_print_head
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 pretty_print_head API. 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 pretty_print_head API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Pretty print some items of a dict. For an unordered dict, ``count`` arbitrary items will be printed. Parameters ---------- dict_ : ~typing.Dict Dict to print from. count : int Number of items to print. Raises ------ ValueError When ``count < 1``.
"Pretty print some items of a dict.\n\n For an unordered dict, ``count`` arbitrary items will be printed.\n\n Parameters\n ----------\n dict_ : ~typing.Dict\n Dict to print from.\n count : int\n Number of items to print.\n\n Raises\n ------\n ValueError\n When ``count < 1``....
147
false
timdiels/pytil
pretty_print_head
17,960
LDU_FT/pudo-attic/scrapekit/_consume
LDU_FT
[ "<BEGIN>\n## `log_path`", "Determine the file name for the JSON log.\n<END>", "<BEGIN>\n## `make_logger`", "Create two log handlers, one to output info-level ouput to the\n console, the other to store all logging in a JSON file which will\n later be used to generate reports.\n<END>", "<BEGIN>\n## `_ge...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _consume API. 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 _consume API. 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...
Main loop for each thread, handles picking a task off the queue, processing it and notifying the queue that it is done.
"Main loop for each thread, handles picking a task off the\n queue, processing it and notifying the queue that it is done."
33
false
pudo-attic/scrapekit
_consume
17,961
LDU_FT/ajdavis/mongo-mockup-db/go
LDU_FT
[ "<BEGIN>\n## `go`", "Launch an operation on a thread and get a handle to its future result.", " >>> from time import sleep\n >>> def print_sleep_print(duration):\n ... sleep(duration)\n ... print('hello from background thread')\n ... sleep(duration)\n ... print('goodbye from ba...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the go API. 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 go API. 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...
Launch an operation on a thread and get a handle to its future result. >>> from time import sleep >>> def print_sleep_print(duration): ... sleep(duration) ... print('hello from background thread') ... sleep(duration) ... print('goodbye from background thread') ... return...
"Launch an operation on a thread and get a handle to its future result.\n\n >>> from time import sleep\n >>> def print_sleep_print(duration):\n ... sleep(duration)\n ... print('hello from background thread')\n ... sleep(duration)\n ... print('goodbye from background thread')\n ... ...
129
false
ajdavis/mongo-mockup-db
go
17,962
LDU_FT/rbarrois/confutils/update
LDU_FT
[ "<BEGIN>\n## `update`", "Replace all lines matching `old_line` with `new_line`.", " If ``once`` is set to True, remove only the first instance.\n<END>", "<BEGIN>\n## `update`", "Replace all lines matching `old_line` with `new_line`.", " If ``once`` is set to True, remove only the first insta...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Replace all lines matching `old_line` with `new_line`. If ``once`` is set to True, remove only the first instance.
"Replace all lines matching `old_line` with `new_line`.\n\n If ``once`` is set to True, remove only the first instance."
42
false
rbarrois/confutils
update
17,963
LDU_FT/firstprayer/monsql/MonSQL
LDU_FT
[ "<BEGIN>\n## `MonSQL`", "Initialize and return a Database instance\n<END>", "<BEGIN>\n## `build_select`", "Given a Query obj, return the corresponding sql\n<END>", "<BEGIN>\n## `build_insert`", "Given the table_name and the data, return the sql to insert the data\n<END>", "<BEGIN>\n## `set_foreign_key_c...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the MonSQL API. 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 MonSQL API. 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 ...
Initialize and return a Database instance
"Initialize and return a Database instance"
76
false
firstprayer/monsql
MonSQL
17,964
LDU_FT/Kromey/django-simplecaptcha/generate_captcha
LDU_FT
[ "<BEGIN>\n## `_getsetting`", "Get `setting` if set, fallback to `default` if not", " This method tries to return the value of the specified setting from Django's\n settings module, after prefixing the name with _DJANGO_SETTING_PREFIX. If\n this fails for any reason, the value supplied in `default` will...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the generate_captcha API. 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 generate_captcha API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Generated a fresh captcha This method randomly generates a simple captcha question. It then generates a timestamp for the current time, and signs the answer cryptographically to protect against tampering and replay attacks.
"Generated a fresh captcha\n\n This method randomly generates a simple captcha question. It then\n generates a timestamp for the current time, and signs the answer\n cryptographically to protect against tampering and replay attacks."
29
false
Kromey/django-simplecaptcha
generate_captcha
17,965
LDU_FT/jeffknupp/sandman2/get
LDU_FT
[ "<BEGIN>\n## `to_dict`", "Return a dictionary representation of the exception.\n<END>", "<BEGIN>\n## `required`", "Return a list of all columns required by the database to create the\n resource.", " :param cls: The Model class to gather attributes from\n :rtype: list\n<END>", "<BEGIN>...
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...
Return an HTTP response object resulting from an HTTP GET call. If *resource_id* is provided, return just the single resource. Otherwise, return the full collection. :param resource_id: The value of the resource's primary key
"Return an HTTP response object resulting from an HTTP GET call.\n\n If *resource_id* is provided, return just the single resource.\n Otherwise, return the full collection.\n\n :param resource_id: The value of the resource's primary key"
74
false
jeffknupp/sandman2
get
17,966
LDU_FT/amcat/nlpipe/frog_naf
LDU_FT
[ "<BEGIN>\n## `_get_corenlp_version`", "Return the corenlp version pointed at by CORENLP_HOME, or None\n<END>", "<BEGIN>\n## `get_command`", "Return the system (shell) call to run corenlp\n<END>", "<BEGIN>\n## `corenlp2naf`", "Call from on the text and return a Naf object\n<END>", "<BEGIN>\n## `get_singl...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the frog_naf API. 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 frog_naf API. 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...
Call from on the text and return a Naf object
"Call from on the text and return a Naf object"
20
false
amcat/nlpipe
frog_naf
17,967
LDU_FT/alixnovosi/botskeleton/send_with_media
LDU_FT
[ "<BEGIN>\n## `cred_init`", "Initialize what requires credentials/secret files.", " :param secrets_dir: dir to expect credentials in and store logs/history in.\n :param log: logger to use for log output.\n :param bot_name: name of this bot,\n used for various kinds of labelling.\n...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the send_with_media API. 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 send_with_media API. 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...
Upload media to mastodon, and send status and media, and captions if present. :param text: post text. :param files: list of files to upload with post. :param captions: list of captions to include as alt-text with files. :returns: list of output records, each ...
"Upload media to mastodon,\n and send status and media,\n and captions if present.\n\n :param text: post text.\n :param files: list of files to upload with post.\n :param captions: list of captions to include as alt-text with files.\n :returns: list of output records,\n ...
69
false
alixnovosi/botskeleton
send_with_media
17,968
LDU_FT/Azure/msrestazure-for-python/_delay
LDU_FT
[ "<BEGIN>\n## `get_msi_token`", "Get MSI token if MSI_ENDPOINT is set.", " IF MSI_ENDPOINT is not set, will try legacy access through 'http://localhost:{}/oauth2/token'.format(port).", " If msi_conf is used, must be a dict of one key in [\"client_id\", \"object_id\", \"msi_res_id\"]", " :param str r...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _delay API. 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 _delay API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Check for a 'retry-after' header to set timeout, otherwise use configured timeout.
"Check for a 'retry-after' header to set timeout,\n otherwise use configured timeout."
167
false
Azure/msrestazure-for-python
_delay
17,969
LDU_FT/lambdalisue/django-permission/of_operator
LDU_FT
[ "<BEGIN>\n## `permission_required`", "Permission check decorator for classbased generic view", " This decorator works as class decorator\n DO NOT use ``method_decorator`` or whatever while this decorator will use\n ``self`` argument for method of classbased generic view.", " Parameters\n ------...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the of_operator API. 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 of_operator API. 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...
'of' operator of permission if This operator is used to specify the target object of permission
"'of' operator of permission if\n\n This operator is used to specify the target object of permission"
147
false
lambdalisue/django-permission
of_operator
17,970
LDU_FT/lra/mackup/confirm
LDU_FT
[ "<BEGIN>\n## `getFilepaths`", "Get home and mackup filepaths for given file", " Args:\n filename (str)", " Returns:\n home_filepath, mackup_filepath (str, str)\n<END>", "<BEGIN>\n## `backup`", "Backup the application config files.", " Algorithm:\n if...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the confirm API. 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 confirm API. 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...
Ask the user if he really want something to happen. Args: question(str): What can happen Returns: (boolean): Confirmed or not
"Ask the user if he really want something to happen.\n\n Args:\n question(str): What can happen\n\n Returns:\n (boolean): Confirmed or not"
116
false
lra/mackup
confirm
17,971
LDU_FT/se-esss-litterbox/Pynac/get_number_of_particles
LDU_FT
[ "<BEGIN>\n## `from_dynacRepr`", "Construct a ``Quad`` instance from the Pynac lattice element\n<END>", "<BEGIN>\n## `scaleField`", "Adjust the field of the magnet by the value of ``scalingFactor``. The adjustment\n is multiplicative, so a value of ``scalingFactor = 1.0`` will result in no change\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_number_of_particles 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_number_of_particles API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion...
Queries the ``dynac.short`` file for the number of particles used in the simulation.
"Queries the ``dynac.short`` file for the number of particles used in the\n simulation."
52
false
se-esss-litterbox/Pynac
get_number_of_particles
17,972