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/pikepdf/pikepdf/extract_to
LDU_FT
[ "<BEGIN>\n## `encode_pdf_date`", "Encode Python datetime object as PDF date string", " From Adobe pdfmark manual:\n (D:YYYYMMDDHHmmSSOHH'mm')\n D: is an optional prefix. YYYY is the year. All fields after the year are\n optional. MM is the month (01-12), DD is the day (01-31), HH is the\n hour (0...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the extract_to API. 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 extract_to API. 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...
Attempt to extract the image directly to a usable image file If possible, the compressed data is extracted and inserted into a compressed image file format without transcoding the compressed content. If this is not possible, the data will be decompressed and extracted to an appropriate ...
"Attempt to extract the image directly to a usable image file\n\n If possible, the compressed data is extracted and inserted into\n a compressed image file format without transcoding the compressed\n content. If this is not possible, the data will be decompressed\n and extracted to an approp...
104
false
pikepdf/pikepdf
extract_to
7,973
LDU_FT/BenjaminSchubert/NitPycker/addFailure
LDU_FT
[ "<BEGIN>\n## `add_result`", "Adds the given result to the list", " :param _type: type of the state of the test (TestState.failure, TestState.error, ...)\n :param test: the test\n :param exc_info: additional execution information\n<END>", "<BEGIN>\n## `addSuccess`", "Transforms the test ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the addFailure API. 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 addFailure API. 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...
Transforms the test in a serializable version of it and sends it to a queue for further analysis :param test: the test to save :param exc_info: tuple of the form (Exception class, Exception instance, traceback)
"Transforms the test in a serializable version of it and sends it to a queue for further analysis\n\n :param test: the test to save\n :param exc_info: tuple of the form (Exception class, Exception instance, traceback)"
53
false
BenjaminSchubert/NitPycker
addFailure
7,974
LDU_FT/pycampers/zproc/when_available
LDU_FT
[ "<BEGIN>\n## `_create_remote_dict_method`", "Generates a method for the State class,\n that will call the \"method_name\" on the state (a ``dict``) stored on the server,\n and return the result.", " Glorified RPC.\n<END>", "<BEGIN>\n## `run_dict_method`", "Execute a method on the state ``dict`` and...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the when_available API. 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 when_available API. 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...
Block until ``key in state``, and then return a copy of the state. .. include:: /api/state/get_when_equality.rst
"Block until ``key in state``, and then return a copy of the state.\n\n .. include:: /api/state/get_when_equality.rst"
134
false
pycampers/zproc
when_available
7,975
LDU_FT/v1k45/django-notify-x/notification_update
LDU_FT
[ "<BEGIN>\n## `include_notify_js_variables`", "Inclusion template tag to include all JS variables required by the\n notify.js file on the HTML page around <script> tags.", " Example::\n {% include_notify_js_variables %}", " :return: Prepares context for rendering in the inclusion file.\n<END>",...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the notification_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. T...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the notification_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. T...
Handles live updating of notifications, follows ajax-polling approach. Read more: http://stackoverflow.com/a/12855533/4726598 Required URL parameters: ``flag``. Explanation: - The ``flag`` parameter carries the last notification ID \ received by the user's browser. - This ``flag...
"Handles live updating of notifications, follows ajax-polling approach.\n\n Read more: http://stackoverflow.com/a/12855533/4726598\n\n Required URL parameters: ``flag``.\n\n Explanation:\n\n - The ``flag`` parameter carries the last notification ID \\\n received by the user's browser.\n\n ...
92
false
v1k45/django-notify-x
notification_update
7,976
LDU_FT/pywavefront/PyWavefront/pad_light
LDU_FT
[ "<BEGIN>\n## `load_vertex_buffer`", "Load vertex data from file. Can be overriden to reduce data copy", " :param fd: file object\n :param material: The material these vertices belong to\n :param length: Byte length of the vertex data\n<END>", "<BEGIN>\n## `_load_vertex_buffers`", "Load ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the pad_light API. 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 pad_light API. 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...
Accept an array of up to 4 values, and return an array of 4 values. If the input array is less than length 4, pad it with zeroes until it is length 4. Also ensure each value is a float
"Accept an array of up to 4 values, and return an array of 4 values.\n If the input array is less than length 4, pad it with zeroes until it\n is length 4. Also ensure each value is a float"
42
false
pywavefront/PyWavefront
pad_light
7,977
LDU_FT/delfick/nose-of-yeti/register_from_options
LDU_FT
[ "<BEGIN>\n## `normalise_key`", "Make sure key is a valid python attribute\n<END>", "<BEGIN>\n## `use_options`", "If extractor isn't specified, then just update self.values with options.", " Otherwise update values with whatever the result of calling extractor with\n our template and th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the register_from_options API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the register_from_options API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Register the spec codec using the provided options
"Register the spec codec using the provided options"
59
false
delfick/nose-of-yeti
register_from_options
7,978
LDU_FT/rgmining/ria/new_product
LDU_FT
[ "<BEGIN>\n## `update`", "Update reviewers' anomalous scores and products' summaries.", " Returns:\n maximum absolute difference between old summary and new one, and\n old anomalous score and new one.\n<END>", "<BEGIN>\n## `anomalous_score`", "Anomalous score of this reviewer.", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the new_product API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the new_product API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
Create a new product. Args: name: name of the new product. Returns: A new product instance.
"Create a new product.\n\n Args:\n name: name of the new product.\n\n Returns:\n A new product instance."
87
false
rgmining/ria
new_product
7,979
LDU_FT/shexSpec/grammar/visitInlineShapeAtomNodeConstraint
LDU_FT
[ "<BEGIN>\n## `visitNodeConstraintLiteral`", "nodeConstraint: KW_LITERAL xsFacet* # nodeConstraintLiteral\n<END>", "<BEGIN>\n## `visitNodeConstraintNonLiteral`", "nodeConstraint: nonLiteralKind stringFacet* # nodeConstraintNonLiteral\n<END>", "<BEGIN>\n## `visitNodeConstraintDatatype`", "nodeConstraint: d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the visitInlineShapeAtomNodeConstraint API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the visitInlineShapeAtomNodeConstraint API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its...
inlineShapeAtomNodeConstraint: nodeConstraint inlineShapeOrRef? # inlineShapeAtomShapeOrRef
"inlineShapeAtomNodeConstraint: nodeConstraint inlineShapeOrRef? # inlineShapeAtomShapeOrRef"
93
false
shexSpec/grammar
visitInlineShapeAtomNodeConstraint
7,980
LDU_FT/rosenbrockc/ci/load_xml
LDU_FT
[ "<BEGIN>\n## `_get_github`", "Creates an instance of github.Github to interact with the repos via the \n API interface in pygithub.\n<END>", "<BEGIN>\n## `_parse_repo`", "Parses a <repo> tag to update settings on this Repository instance.", " :arg xml: the <repo> tag XMLElement.\n<END>", "<B...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load_xml API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load_xml API. 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...
Loads the values of the configuration variables from an XML path.
"Loads the values of the configuration variables from an XML path."
123
false
rosenbrockc/ci
load_xml
7,981
LDU_FT/mozilla/taar/recommend
LDU_FT
[ "<BEGIN>\n## `flaskrun`", "Takes a flask.Flask instance and runs it. Parses\n command-line flags to configure the app.\n<END>", "<BEGIN>\n## `get_randomized_guid_sample`", "Fetch a subset of randomzied GUIDs from the whitelist\n<END>", "<BEGIN>\n## `can_recommend`", "The Curated recommender will always...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the recommend API. 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 recommend API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
Return recommendations for the given client. The recommendation logic will go through each recommender and pick the first one that "can_recommend". :param client_id: the client unique id. :param limit: the maximum number of recommendations to return. :param extra_data: a dictio...
"Return recommendations for the given client.\n\n The recommendation logic will go through each recommender and\n pick the first one that \"can_recommend\".\n\n :param client_id: the client unique id.\n :param limit: the maximum number of recommendations to return.\n :param extra_data...
45
false
mozilla/taar
recommend
7,982
LDU_FT/csurfer/rake-nltk/_build_word_co_occurance_graph
LDU_FT
[ "<BEGIN>\n## `extract_keywords_from_text`", "Method to extract keywords from the text provided.", " :param text: Text to extract keywords from, provided as a string.\n<END>", "<BEGIN>\n## `extract_keywords_from_sentences`", "Method to extract keywords from the list of sentences provided.", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _build_word_co_occurance_graph API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its con...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _build_word_co_occurance_graph API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its con...
Builds the co-occurance graph of words in the given body of text to compute degree of each word. :param phrase_list: List of List of strings where each sublist is a collection of words which form a contender phrase.
"Builds the co-occurance graph of words in the given body of text to\n compute degree of each word.\n\n :param phrase_list: List of List of strings where each sublist is a\n collection of words which form a contender phrase."
21
false
csurfer/rake-nltk
_build_word_co_occurance_graph
7,983
LDU_FT/mjj4791/python-buienradar/__cond_from_desc
LDU_FT
[ "<BEGIN>\n## `__to_float`", "Convert val into float with digits decimal.\n<END>", "<BEGIN>\n## `__getBarFC`", "Parse the pressure and return FC (numerical).\n<END>", "<BEGIN>\n## `__getBarFCName`", "Parse the pressure and return FC (String).\n<END>", "<BEGIN>\n## `get_json_data`", "Get buienradar json...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the __cond_from_desc API. 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 __cond_from_desc API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Get the condition name from the condition description.
"Get the condition name from the condition description."
50
false
mjj4791/python-buienradar
__cond_from_desc
7,984
LDU_FT/dropbox/pyannotate/is_redundant_union_item
LDU_FT
[ "<BEGIN>\n## `parse_json`", "Deserialize a JSON file containing runtime collected types.", " The input JSON is expected to to have a list of RawEntry items.\n<END>", "<BEGIN>\n## `tokenize`", "Translate a type comment into a list of tokens.\n<END>", "<BEGIN>\n## `generate_annotations_json_string`", "...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_redundant_union_item API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_redundant_union_item API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion...
If union has both items, is the first one redundant? For example, if first is 'str' and the other is 'Text', return True. If items are equal, return False.
"If union has both items, is the first one redundant?\n\n For example, if first is 'str' and the other is 'Text', return True.\n\n If items are equal, return False."
93
false
dropbox/pyannotate
is_redundant_union_item
7,985
LDU_FT/jic-dtool/dtoolcore/create
LDU_FT
[ "<BEGIN>\n## `generous_parse_uri`", "Return a urlparse.ParseResult object with the results of parsing the\n given URI. This has the same properties as the result of parse_uri.", " When passed a relative path, it determines the absolute path, sets the\n scheme to file, the netloc to localhost and return...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Create the required directory structure and admin metadata.
"Create the required directory structure and admin metadata."
111
false
jic-dtool/dtoolcore
create
7,986
LDU_FT/ansible/ansible-container/create_role_from_templates
LDU_FT
[ "<BEGIN>\n## `to_bytes`", "Make sure that a string is a byte string", " :arg obj: An object to make sure is a byte string. In most cases this\n will be either a text string or a byte string. However, with\n ``nonstring='simplerepr'``, this can be used as a traceback-free\n version of `...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_role_from_templates API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclus...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_role_from_templates API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclus...
Create a new role with initial files from templates. :param role_name: Name of the role :param role_path: Full path to the role :param project_name: Name of the project, or the base path name. :param description: One line description of the role. :return: None
"Create a new role with initial files from templates.\n :param role_name: Name of the role\n :param role_path: Full path to the role\n :param project_name: Name of the project, or the base path name.\n :param description: One line description of the role.\n :return: None"
64
false
ansible/ansible-container
create_role_from_templates
7,987
LDU_FT/jtpaasch/simplygithub/get_branch
LDU_FT
[ "<BEGIN>\n## `get_url`", "Get the URL for a resource.", " Args:", " profile\n A profile generated from ``simplygithub.authentication.profile``.\n Such profiles tell this module (i) the ``repo`` to connect to,\n and (ii) the ``token`` to connect with.", " res...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_branch API. 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_branch API. 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...
Fetch a branch. Args: profile A profile generated from ``simplygithub.authentication.profile``. Such profiles tell this module (i) the ``repo`` to connect to, and (ii) the ``token`` to connect with. name The name of the branch to fetch. Returns...
"Fetch a branch.\n\n Args:\n\n profile\n A profile generated from ``simplygithub.authentication.profile``.\n Such profiles tell this module (i) the ``repo`` to connect to,\n and (ii) the ``token`` to connect with.\n\n name\n The name of the branch to fetch.\n...
224
false
jtpaasch/simplygithub
get_branch
7,988
LDU_FT/useblocks/groundwork/deactivate
LDU_FT
[ "<BEGIN>\n## `set`", "Sets a new value for a given configuration parameter.", " If it already exists, an Exception is thrown.\n To overwrite an existing value, set overwrite to True.", " :param name: Unique name of the parameter\n :param value: Value of the configuration parameter\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the deactivate API. 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 deactivate API. 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...
Deactivates given plugins. A given plugin must be activated, otherwise it is ignored and no action takes place (no signals are fired, no deactivate functions are called.) A deactivated plugin is still loaded and initialised and can be reactivated by calling :func:`activate` again. It i...
"Deactivates given plugins.\n\n A given plugin must be activated, otherwise it is ignored and no action takes place (no signals are fired,\n no deactivate functions are called.)\n\n A deactivated plugin is still loaded and initialised and can be reactivated by calling :func:`activate` again.\n ...
198
false
useblocks/groundwork
deactivate
7,989
LDU_FT/jrief/djangocms-cascade/unset_required_for
LDU_FT
[ "<BEGIN>\n## `_enrich_link`", "Enrich the dict glossary['link'] with an identifier onto the model\n<END>", "<BEGIN>\n## `get_form`", "Extend the form for the given plugin with the form SharableCascadeForm\n<END>", "<BEGIN>\n## `get_picture_elements`", "Create a context, used to render a <picture> together...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the unset_required_for 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 unset_required_for 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...
Fields borrowed by `SharedGlossaryAdmin` to build its temporary change form, only are required if they are declared in `sharable_fields`. Otherwise just deactivate them.
"Fields borrowed by `SharedGlossaryAdmin` to build its temporary change form, only are\n required if they are declared in `sharable_fields`. Otherwise just deactivate them."
78
false
jrief/djangocms-cascade
unset_required_for
7,990
LDU_FT/inveniosoftware/invenio-formatter/create_badge_blueprint
LDU_FT
[ "<BEGIN>\n## `from_isodate`", "Convert an ISO formatted date into a Date object.", " :param value: The ISO formatted date.\n :param strict: If value is ``None``, then if strict is ``True`` it returns\n the Date object of today, otherwise it returns ``None``.\n (Default: ``False``)\n :retu...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_badge_blueprint 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_badge_blueprint 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 the badge blueprint. :param allowed_types: A list of allowed types. :returns: A Flask blueprint.
"Create the badge blueprint.\n\n :param allowed_types: A list of allowed types.\n :returns: A Flask blueprint."
26
false
inveniosoftware/invenio-formatter
create_badge_blueprint
7,991
LDU_FT/OCA/odoorpc/records2ids
LDU_FT
[ "<BEGIN>\n## `commit`", "Commit dirty records to the server. This method is automatically\n called when the `auto_commit` option is set to `True` (default).\n It can be useful to set the former option to `False` to get better\n performance by reducing the number of RPC requests generated.", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the records2ids API. 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 records2ids API. 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...
Replace records contained in `iterable` with their corresponding IDs: >>> groups = list(odoo.env.user.groups_id) >>> records2ids(groups) [1, 2, 3, 14, 17, 18, 19, 7, 8, 9, 5, 20, 21, 22, 23]
"Replace records contained in `iterable` with their corresponding IDs:\n\n >>> groups = list(odoo.env.user.groups_id)\n >>> records2ids(groups)\n [1, 2, 3, 14, 17, 18, 19, 7, 8, 9, 5, 20, 21, 22, 23]"
264
false
OCA/odoorpc
records2ids
7,992
LDU_FT/Trax-air/swagger-parser/_example_from_complex_def
LDU_FT
[ "<BEGIN>\n## `_validate_post_body`", "returns a tuple (boolean, msg)\n to indicate whether the validation passed\n if False then msg contains the reason\n if True then msg is empty\n<END>", "<BEGIN>\n## `build_definitions_example`", "Parse all definitions in the swagger specification.\n<E...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _example_from_complex_def 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 _example_from_complex_def API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi...
Get an example from a property specification. In case there is no "type" key in the root of the dictionary. Args: prop_spec: property specification you want an example of. Returns: An example.
"Get an example from a property specification.\n\n In case there is no \"type\" key in the root of the dictionary.\n\n Args:\n prop_spec: property specification you want an example of.\n\n Returns:\n An example."
100
false
Trax-air/swagger-parser
_example_from_complex_def
7,993
LDU_FT/xmunoz/sodapy/replace_non_data_file
LDU_FT
[ "<BEGIN>\n## `_raise_for_status`", "Custom raise_for_status with more appropriate error message.\n<END>", "<BEGIN>\n## `_download_file`", "Utility function that downloads a chunked response from the specified url to a local path.\n This method is suitable for larger downloads.\n<END>", "<BEGIN>\n## `data...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the replace_non_data_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. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the replace_non_data_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. ...
Same as create_non_data_file, but replaces a file that already exists in a file-based dataset. WARNING: a table-based dataset cannot be replaced by a file-based dataset. Use create_non_data_file in order to replace.
"Same as create_non_data_file, but replaces a file that already exists in a\n file-based dataset.\n\n WARNING: a table-based dataset cannot be replaced by a file-based dataset.\n Use create_non_data_file in order to replace."
41
false
xmunoz/sodapy
replace_non_data_file
7,994
LDU_FT/rshipp/python-dshield/webhoneypotsummary
LDU_FT
[ "<BEGIN>\n## `_get`", "Get and return data from the API.", " :returns: A str, list, or dict, depending on the input values and API data.\n<END>", "<BEGIN>\n## `backscatter`", "Returns possible backscatter data.", " This report only includes \"syn ack\" data and is summarized by source port.", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the webhoneypotsummary 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 webhoneypotsummary 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...
API data for `Webhoneypot: Web Server Log Project <https://dshield.org/webhoneypot/>`_. :param date: string or datetime.date() (required)
"API data for `Webhoneypot: Web Server Log Project\n <https://dshield.org/webhoneypot/>`_.\n\n :param date: string or datetime.date() (required)"
52
false
rshipp/python-dshield
webhoneypotsummary
7,995
LDU_FT/ska-sa/katversion/get_version_list
LDU_FT
[ "<BEGIN>\n## `patch_init_py`", "Patch __init__.py to remove version check and append hard-coded version.\n<END>", "<BEGIN>\n## `setuptools_entry`", "Setuptools entry point for setting version and baking it into package.\n<END>", "<BEGIN>\n## `date_version`", "Generate a version string based on the SCM typ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_version_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 ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_version_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 ...
Return the version information as a tuple. This uses get_version and breaks the string up. Would make more sense if the version was a tuple throughout katversion.
"Return the version information as a tuple.\n\n This uses get_version and breaks the string up. Would make more sense if\n the version was a tuple throughout katversion."
41
false
ska-sa/katversion
get_version_list
7,996
LDU_FT/timothydmorton/simpledist/save_hdf
LDU_FT
[ "<BEGIN>\n## `double_lorgauss`", "Evaluates a normalized distribution that is a mixture of a double-sided Gaussian and Double-sided Lorentzian.", " Parameters\n ----------\n x : float or array-like\n Value(s) at which to evaluate distribution", " p : array-like\n Input parameters: mu...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the save_hdf API. 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 save_hdf API. 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...
Saves distribution to an HDF5 file. Saves a pandas `dataframe` object containing tabulated pdf and cdf values at a specfied resolution. After saving to a particular path, a distribution may be regenerated using the `Distribution_FromH5` subclass. Parameters ---------- ...
"Saves distribution to an HDF5 file.\n\n Saves a pandas `dataframe` object containing tabulated pdf and cdf\n values at a specfied resolution. After saving to a particular path, a\n distribution may be regenerated using the `Distribution_FromH5` subclass. \n\n Parameters\n ---------...
90
false
timothydmorton/simpledist
save_hdf
7,997
LDU_FT/mfcloud/python-zvm-sdk/waitForVMState
LDU_FT
[ "<BEGIN>\n## `getConsole`", "Get the virtual machine's console output.", " Input:\n Request Handle with the following properties:\n function - 'CMDVM'\n subfunction - 'CMD'\n userid - userid of the virtual machine", " Output:\n Request Handle updated with t...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the waitForVMState API. 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 waitForVMState API. 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...
Wait for the virtual machine to go into the indicated state. Input: Request Handle userid whose state is to be monitored Desired state, 'on' or 'off', case sensitive Maximum attempts to wait for desired state before giving up Sleep duration between waits Output: Dicti...
"Wait for the virtual machine to go into the indicated state.\n\n Input:\n Request Handle\n userid whose state is to be monitored\n Desired state, 'on' or 'off', case sensitive\n Maximum attempts to wait for desired state before giving up\n Sleep duration between waits\n\n Output:\n ...
643
false
mfcloud/python-zvm-sdk
waitForVMState
7,998
LDU_FT/dtmilano/AndroidViewClient/getWifiState
LDU_FT
[ "<BEGIN>\n## `takeScreenshotAndShowItOnWindow`", "Takes the current screenshot and shows it on the main window.\n It also:\n - sizes the window\n - create the canvas\n - set the focus\n - enable the events\n - create widgets\n - finds the targets (as explaine...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the getWifiState API. 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 getWifiState API. 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...
Gets the Wi-Fi enabled state. @return: One of WIFI_STATE_DISABLED, WIFI_STATE_DISABLING, WIFI_STATE_ENABLED, WIFI_STATE_ENABLING, WIFI_STATE_UNKNOWN
"Gets the Wi-Fi enabled state.\n\n @return: One of WIFI_STATE_DISABLED, WIFI_STATE_DISABLING, WIFI_STATE_ENABLED, WIFI_STATE_ENABLING, WIFI_STATE_UNKNOWN"
197
false
dtmilano/AndroidViewClient
getWifiState
7,999
LDU_FT/fastavro/fastavro/read_enum
LDU_FT
[ "<BEGIN>\n## `_read_decimal`", "based on https://github.com/apache/avro/pull/82/\n<END>", "<BEGIN>\n## `read_long`", "int and long values are written using variable-length, zig-zag\n coding.\n<END>", "<BEGIN>\n## `read_bytes`", "Bytes are encoded as a long followed by that many bytes of data.\n<END>", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the read_enum API. 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_enum API. 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...
An enum is encoded by a int, representing the zero-based position of the symbol in the schema.
"An enum is encoded by a int, representing the zero-based position of the\n symbol in the schema."
136
false
fastavro/fastavro
read_enum
8,000
LDU_FT/klis87/django-cloudinary-storage/_save
LDU_FT
[ "<BEGIN>\n## `get_needful_files`", "Returns currently used static files.\n Assumes that manifest staticfiles.json is up-to-date.\n<END>", "<BEGIN>\n## `model_file_fields`", "Generator yielding all instances of FileField and its subclasses of a model.\n<END>", "<BEGIN>\n## `get_resource_types`", "Re...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _save API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _save API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
Saves only when a file with a name and a content is not already uploaded to Cloudinary.
"Saves only when a file with a name and a content is not already uploaded to Cloudinary."
20
false
klis87/django-cloudinary-storage
_save
8,001
LDU_FT/skylander86/uriutils/uri_dump
LDU_FT
[ "<BEGIN>\n## `join`", "Similar to :func:`os.path.join` but returns a storage object instead.", " :param str path: path to join on to this object's URI\n :returns: a storage object\n :rtype: BaseURI\n<END>", "<BEGIN>\n## `list_dir`", "Non-recursive file listing.", " :returns: A ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the uri_dump API. 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 uri_dump API. 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...
Dumps the contents of a string/bytestring into a URI. See :func:`uri_open` for complete description of keyword parameters. :param str uri: URI to dump contents to :param str content: Contents to write to URI :param str mode: Either ``w``, or ``wb`` to write binary/text content respectiely
"Dumps the contents of a string/bytestring into a URI.\n See :func:`uri_open` for complete description of keyword parameters.\n\n :param str uri: URI to dump contents to\n :param str content: Contents to write to URI\n :param str mode: Either ``w``, or ``wb`` to write binary/text content respectiely"
37
false
skylander86/uriutils
uri_dump
8,002
LDU_FT/rcsb/mmtf-python/add_header_info
LDU_FT
[ "<BEGIN>\n## `add_atom_data`", "Add the atomic data to the DataTransferInterface.\n :param data_api the data api from where to get the data\n :param data_setters the class to push the data to\n :param atom_nams the list of atom names for the group\n :param element_names the list of element names for t...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_header_info API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_header_info API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
Add ancilliary header information to the structure. :param data_api the interface to the decoded data :param struct_inflator the interface to put the data into the client object
"Add ancilliary header information to the structure.\n\t :param data_api the interface to the decoded data\n\t :param struct_inflator the interface to put the data into the client object"
130
false
rcsb/mmtf-python
add_header_info
8,003
LDU_FT/push-things/wallabag_api/get_entry
LDU_FT
[ "<BEGIN>\n## `query`", "Do a query to the System API", " :param path: url to the API\n :param method: the kind of query to do\n :param params: a dict with all the\n necessary things to query the API\n :return json data\n<END>", "<BEGIN>\n## `handle_json_response`", "get th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_entry API. 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_entry API. 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 /api/entries/{entry}.{_format} Retrieve a single entry :param entry: \w+ an integer The Entry ID :return data related to the ext
"GET /api/entries/{entry}.{_format}\n\n Retrieve a single entry\n\n :param entry: \\w+ an integer The Entry ID\n :return data related to the ext"
68
false
push-things/wallabag_api
get_entry
8,004
LDU_FT/infothrill/python-dyndnsc/parse_cmdline_args
LDU_FT
[ "<BEGIN>\n## `getDynDnsClientForConfig`", "Instantiate and return a complete and working dyndns client.", " :param config: a dictionary with configuration keys\n :param plugins: an object that implements PluginManager\n<END>", "<BEGIN>\n## `sync`", "Synchronize the registered IP with the detected IP (...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_cmdline_args API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_cmdline_args API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
Parse all updater and detector related arguments from args. Returns a list of ("name", { "k": "v"}) :param args: argparse arguments
"Parse all updater and detector related arguments from args.\n\n Returns a list of (\"name\", { \"k\": \"v\"})\n\n :param args: argparse arguments"
127
false
infothrill/python-dyndnsc
parse_cmdline_args
8,005
LDU_FT/mcs07/ChemDataExtractor/is_id_only
LDU_FT
[ "<BEGIN>\n## `train_punkt`", "Train Punkt sentence splitter using sentences in input.\n<END>", "<BEGIN>\n## `sentences`", "Read input document, and output sentences.\n<END>", "<BEGIN>\n## `_in_stoplist`", "Return True if the entity is in the stoplist.\n<END>", "<BEGIN>\n## `tag`", "Run individual chem...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_id_only API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_id_only API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
Return True if identifier information only.
"Return True if identifier information only."
243
false
mcs07/ChemDataExtractor
is_id_only
8,006
LDU_FT/majerteam/sqla_inspect/_collect_headers
LDU_FT
[ "<BEGIN>\n## `get_info_field`", "Return the info attribute of the given property\n<END>", "<BEGIN>\n## `add_formatter`", "Add a formatter to the registry\n if key_specific is provided, this formatter will only be used for some\n specific exports\n<END>", "<BEGIN>\n## `render`", "Write to the...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _collect_headers API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _collect_headers API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Collect headers from the models attribute info col
"Collect headers from the models attribute info col"
132
false
majerteam/sqla_inspect
_collect_headers
8,007
LDU_FT/GetmeUK/MongoFrames/finish
LDU_FT
[ "<BEGIN>\n## `to_json_type`", "Return a dictionary for the document with values converted to JSON safe\n types.\n<END>", "<BEGIN>\n## `_path_to_value`", "Return a value from a dictionary at the given path\n<END>", "<BEGIN>\n## `_remove_keys`", "Remove a list of keys from a dictionary.", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the finish API. 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 finish API. 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 ...
Finish a list of pre-assembled documents
"Finish a list of pre-assembled documents"
121
false
GetmeUK/MongoFrames
finish
8,008
LDU_FT/radjkarl/fancyTools/add
LDU_FT
[ "<BEGIN>\n## `similarity1DdiffShapedArrays`", "compare two strictly monotonous increasing 1d arrays\n of same or different size\n return a similarity index-> 0=identical\n<END>", "<BEGIN>\n## `inverseHistogram`", "sample data from given histogram and min, max values within range", " Returns:\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
Assign all self.merge_values to the self._mergeMatrix Get the position/intensity of a value
"Assign all self.merge_values to the self._mergeMatrix\n Get the position/intensity of a value"
210
false
radjkarl/fancyTools
add
8,009
LDU_FT/MechanicalSoup/MechanicalSoup/select_form
LDU_FT
[ "<BEGIN>\n## `new_control`", "Call :func:`Form.new_control` on the currently selected form.\n<END>", "<BEGIN>\n## `open`", "Open the URL and store the Browser's state in this object.\n All arguments are forwarded to :func:`Browser.get`.", " :return: Forwarded from :func:`Browser.get`.\n<END>",...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the select_form API. 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 select_form API. 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...
Select a form in the current page. :param selector: CSS selector or a bs4.element.Tag object to identify the form to select. If not specified, ``selector`` defaults to "form", which is useful if, e.g., there is only one form on the page. For ``selector`` syntax, ...
"Select a form in the current page.\n\n :param selector: CSS selector or a bs4.element.Tag object to identify\n the form to select.\n If not specified, ``selector`` defaults to \"form\", which is\n useful if, e.g., there is only one form on the page.\n For ``selector``...
119
false
MechanicalSoup/MechanicalSoup
select_form
8,010
LDU_FT/SUSE-Enceladus/ipa/_terminate_instance
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 _terminate_instance API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _terminate_instance API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
Terminate the resource group and instance.
"Terminate the resource group and instance."
143
false
SUSE-Enceladus/ipa
_terminate_instance
8,011
LDU_FT/litters/shrew/validate_password
LDU_FT
[ "<BEGIN>\n## `unlock_keychain`", "If the user is running via SSH, their Keychain must be unlocked first.\n<END>", "<BEGIN>\n## `save_password`", "Saves the given password in the user's keychain.", " :param entry: The entry in the keychain. This is a caller specific key.\n :param password: The pass...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the validate_password API. 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 validate_password API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Validate a password with a check function & retry if the password is incorrect. Useful for after a user has changed their password in LDAP, but their local keychain entry is then out of sync. :param str entry: The keychain entry to fetch a password from. :param str username: The username to authenti...
"Validate a password with a check function & retry if the password is incorrect.\n\n Useful for after a user has changed their password in LDAP, but their local keychain entry is then out of sync.\n\n :param str entry: The keychain entry to fetch a password from.\n :param str username: The username to au...
46
false
litters/shrew
validate_password
8,012
LDU_FT/Telefonica/toolium/_setup_opera
LDU_FT
[ "<BEGIN>\n## `create_driver`", "Create a selenium driver using specified config properties", " :returns: a new selenium driver\n :rtype: selenium.webdriver.remote.webdriver.WebDriver\n<END>", "<BEGIN>\n## `_create_remote_driver`", "Create a driver in a remote server\n View valid capabil...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _setup_opera API. 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 _setup_opera API. 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...
Setup Opera webdriver :param capabilities: capabilities object :returns: a new local Opera driver
"Setup Opera webdriver\n\n :param capabilities: capabilities object\n :returns: a new local Opera driver"
381
false
Telefonica/toolium
_setup_opera
8,013
LDU_FT/click-contrib/sphinx-click/_format_options
LDU_FT
[ "<BEGIN>\n## `_get_usage`", "Alternative, non-prefixed version of 'get_usage'.\n<END>", "<BEGIN>\n## `_get_help_record`", "Re-implementation of click.Opt.get_help_record.", " The variant of 'get_help_record' found in Click makes uses of slashes to\n separate multiple opts, and formats option arguments...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _format_options API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _format_options API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
Format all `click.Option` for a `click.Command`.
"Format all `click.Option` for a `click.Command`."
25
false
click-contrib/sphinx-click
_format_options
8,014
LDU_FT/pytorch/ignite/create_supervised_tbptt_trainer
LDU_FT
[ "<BEGIN>\n## `add_event_handler`", "Add an event handler to be executed when the specified event is fired.", " Args:\n event_name: An event to attach the handler to. Valid events are from :class:`~ignite.engine.Events`\n or any `event_name` added by :meth:`~ignite.engine.Engine....
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_supervised_tbptt_trainer API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its co...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_supervised_tbptt_trainer API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its co...
Create a trainer for truncated backprop through time supervised models. Training recurrent model on long sequences is computationally intensive as it requires to process the whole sequence before getting a gradient. However, when the training loss is computed over many outputs (`X to many <https://karp...
"Create a trainer for truncated backprop through time supervised models.\n\n Training recurrent model on long sequences is computationally intensive as\n it requires to process the whole sequence before getting a gradient.\n However, when the training loss is computed over many outputs\n (`X to many <https:...
110
false
pytorch/ignite
create_supervised_tbptt_trainer
8,015
LDU_FT/sailthru/sailthru-python-client/_api_request
LDU_FT
[ "<BEGIN>\n## `flatten_nested_hash`", "Flatten nested dictionary for GET / POST / DELETE API request\n<END>", "<BEGIN>\n## `sailthru_http_request`", "Perform an HTTP GET / POST / DELETE request\n<END>", "<BEGIN>\n## `extract_params`", "Extracts the values of a set of parameters, recursing into nested dicti...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _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. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _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. The extr...
Make Request to Sailthru API with given data and api key, format and signature hash
"Make Request to Sailthru API with given data and api key, format and signature hash"
64
false
sailthru/sailthru-python-client
_api_request
8,016
LDU_FT/AshleySetter/optoanalysis/calc_z0_and_conv_factor_from_ratio_of_harmonics
LDU_FT
[ "<BEGIN>\n## `InterpretWaveform`", "Take the raw binary from a file saved from the LeCroy, read from a file using \n the 2 lines:\n with open(filename, \"rb\") as file:\n raw = file.read()\n And extracts various properties of the saved time trace.", " Parameters\n -----...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the calc_z0_and_conv_factor_from_ratio_of_harmonics API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the calc_z0_and_conv_factor_from_ratio_of_harmonics API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> ...
Calculates the Conversion Factor and physical amplitude of motion in nms by comparison of the ratio of the heights of the z signal and second harmonic of z. Parameters ---------- z : ndarray array containing z signal in volts z2 : ndarray array containing second harmonic of z ...
"Calculates the Conversion Factor and physical amplitude of motion in nms \n by comparison of the ratio of the heights of the z signal and \n second harmonic of z.\n\n Parameters\n ----------\n z : ndarray\n array containing z signal in volts\n z2 : ndarray\n array containing second harm...
402
false
AshleySetter/optoanalysis
calc_z0_and_conv_factor_from_ratio_of_harmonics
8,017
LDU_FT/moralrecordings/mrcrowbar/property_set
LDU_FT
[ "<BEGIN>\n## `decode_nfo`", "Decodes a byte string in NFO format (beloved by PC scener groups) from DOS Code Page 437 \n to Unicode.\n<END>", "<BEGIN>\n## `ansi_format_iter`", "Return the ANSI escape sequence to render the image.", " x_start\n Offset from the left of the image data to r...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the property_set API. 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 property_set API. 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...
Wrapper for property writes which auto-deferences Refs. prop A Ref (which gets dereferenced and the target value set). instance The context object used to dereference the Ref. value The value to set the property to. Throws AttributeError if prop is not a Ref.
"Wrapper for property writes which auto-deferences Refs.\n\n prop\n A Ref (which gets dereferenced and the target value set).\n\n instance\n The context object used to dereference the Ref.\n\n value\n The value to set the property to.\n\n Throws AttributeError if prop is not a Ref."
214
false
moralrecordings/mrcrowbar
property_set
8,018
LDU_FT/rushter/heamy/onehot_features
LDU_FT
[ "<BEGIN>\n## `concat`", "Concatenate a sequence of pandas or numpy objects into one entity.\n<END>", "<BEGIN>\n## `reshape_1d`", "If parameter is 1D row vector then convert it into 2D matrix.\n<END>", "<BEGIN>\n## `idx`", "Universal indexing for numpy and pandas objects.\n<END>", "<BEGIN>\n## `xgb_progr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the onehot_features API. 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 onehot_features API. 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...
Encode categorical features using a one-hot scheme. Parameters ---------- train : pd.DataFrame test : pd.DataFrame features : list Column names in the DataFrame to be encoded. full : bool, default False Whether use all columns from train/test or only from train. sparse : boo...
"Encode categorical features using a one-hot scheme.\n\n Parameters\n ----------\n train : pd.DataFrame\n test : pd.DataFrame\n features : list\n Column names in the DataFrame to be encoded.\n full : bool, default False\n Whether use all columns from train/test or only from train.\n s...
91
false
rushter/heamy
onehot_features
8,019
LDU_FT/jmcarp/robobrowser/_group_flat_tags
LDU_FT
[ "<BEGIN>\n## `parsed`", "Lazily parse response content, using HTML parser specified by the\n browser.\n<END>", "<BEGIN>\n## `_build_send_args`", "Merge optional arguments with defaults.", " :param kwargs: Keyword arguments to `Session::send`\n<END>", "<BEGIN>\n## `open`", "Open a URL.", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _group_flat_tags API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _group_flat_tags API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Extract tags sharing the same name as the provided tag. Used to collect options for radio and checkbox inputs. :param Tag tag: BeautifulSoup tag :param list tags: List of tags :return: List of matching tags
"Extract tags sharing the same name as the provided tag. Used to collect\n options for radio and checkbox inputs.\n\n :param Tag tag: BeautifulSoup tag\n :param list tags: List of tags\n :return: List of matching tags"
73
false
jmcarp/robobrowser
_group_flat_tags
8,020
LDU_FT/westonplatter/fast_arrow/chunked_list
LDU_FT
[ "<BEGIN>\n## `in_chain`", "fetch all option instruments in an options chain\n - expiration_dates = optionally scope\n<END>", "<BEGIN>\n## `unroll_option_legs`", "unroll option orders like this,\n https://github.com/joshfraser/robinhood-to-csv/blob/master/csv-options-export.py\n<END>", "<BEGIN>...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the chunked_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 extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the chunked_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 extr...
Break lists into small lists for processing:w
"Break lists into small lists for processing:w"
23
false
westonplatter/fast_arrow
chunked_list
8,021
LDU_FT/aio-libs/aiozipkin/request_span
LDU_FT
[ "<BEGIN>\n## `unsigned_hex_to_signed_int`", "Converts a 64-bit hex string to a signed int value.", " This is due to the fact that Apache Thrift only has signed values.", " Examples:\n '17133d482ba4f605' => 1662740067609015813\n 'b6dbb1c2b362bf51' => -5270423489115668655", " :param hex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the request_span API. 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 request_span API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
Returns span created by middleware from request context, you can use it as parent on next child span.
"Returns span created by middleware from request context, you can use it\n as parent on next child span."
32
false
aio-libs/aiozipkin
request_span
8,022
LDU_FT/Genida/archan/inflate_plugin_list
LDU_FT
[ "<BEGIN>\n## `validate_rows_length`", "Validate that all rows have the same length.\n<END>", "<BEGIN>\n## `validate_square`", "Validate that the matrix has equal number of rows and columns.\n<END>", "<BEGIN>\n## `validate_categories_equal_entities`", "Validate that the matrix has equal number of entities ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the inflate_plugin_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. T...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the inflate_plugin_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. T...
Inflate a list of strings/dictionaries to a list of plugin instances. Args: plugin_list (list): a list of str/dict. inflate_plugin (method): the method to inflate the plugin. Returns: list: a plugin instances list. Raises: ValueError: when a dic...
"Inflate a list of strings/dictionaries to a list of plugin instances.\n\n Args:\n plugin_list (list): a list of str/dict.\n inflate_plugin (method): the method to inflate the plugin.\n\n Returns:\n list: a plugin instances list.\n\n Raises:\n ValueError:...
127
false
Genida/archan
inflate_plugin_list
8,023
LDU_FT/log2timeline/dfwinreg/JoinKeyPath
LDU_FT
[ "<BEGIN>\n## `_CheckKeyPath`", "Checks the key path find specification.", " Args:\n registry_key (WinRegistryKey): Windows Registry key.\n search_depth (int): number of key path segments to compare.", " Returns:\n bool: True if the Windows Registry key matches the find specification,\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the JoinKeyPath API. 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 JoinKeyPath API. 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...
Joins the path segments into key path. Args: path_segments (list[str]): Windows Registry key path segments. Returns: str: key path.
"Joins the path segments into key path.\n\n Args:\n path_segments (list[str]): Windows Registry key path segments.\n\n Returns:\n str: key path."
199
false
log2timeline/dfwinreg
JoinKeyPath
8,024
LDU_FT/google/fleetspeak/_ReadN
LDU_FT
[ "<BEGIN>\n## `_EnvOpen`", "Open a file descriptor identified by an environment variable.\n<END>", "<BEGIN>\n## `Send`", "Send a message through Fleetspeak.", " Args:\n message: A message protocol buffer.\n Returns:\n Size of the message in bytes.\n Raises:\n ValueError: If message is...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _ReadN API. 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 _ReadN API. 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 ...
Reads n characters from the input stream, or until EOF. This is equivalent to the current CPython implementation of read(n), but not guaranteed by the docs. Args: n: int Returns: string
"Reads n characters from the input stream, or until EOF.\n\n This is equivalent to the current CPython implementation of read(n), but\n not guaranteed by the docs.\n\n Args:\n n: int\n\n Returns:\n string"
35
false
google/fleetspeak
_ReadN
8,025
LDU_FT/wmayner/pyphi/all_complexes
LDU_FT
[ "<BEGIN>\n## `memory_full`", "Check if the memory is too full for further caching.\n<END>", "<BEGIN>\n## `cache`", "Memory-limited cache decorator.", " ``maxmem`` is a float between 0 and 100, inclusive, specifying the maximum\n percentage of physical memory that the cache can use.", " If ``typed...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the all_complexes API. 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 all_complexes API. 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...
Return a generator for all complexes of the network. .. note:: Includes reducible, zero-|big_phi| complexes (which are not, strictly speaking, complexes at all). Args: network (Network): The |Network| of interest. state (tuple[int]): The state of the network (a binary tuple). ...
"Return a generator for all complexes of the network.\n\n .. note::\n Includes reducible, zero-|big_phi| complexes (which are not, strictly\n speaking, complexes at all).\n\n Args:\n network (Network): The |Network| of interest.\n state (tuple[int]): The state of the network (a binary ...
914
false
wmayner/pyphi
all_complexes
8,026
LDU_FT/arne-cl/discoursegraphs/select_nodes_by_layer
LDU_FT
[ "<BEGIN>\n## `merging_cli`", "simple commandline interface of the merging module.", " This function is called when you use the ``discoursegraphs`` application\n directly on the command line.\n<END>", "<BEGIN>\n## `add_node_ids_as_labels`", "Adds the ID of each node of a discourse graph as a label (an ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the select_nodes_by_layer 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 select_nodes_by_layer API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Get all nodes belonging to (any of) the given layer(s). Parameters ---------- docgraph : DiscourseDocumentGraph document graph from which the nodes will be extracted layer : str or collection of str or None name(s) of the layer(s) to select nodes from. If None, returns all nodes...
"Get all nodes belonging to (any of) the given layer(s).\n\n Parameters\n ----------\n docgraph : DiscourseDocumentGraph\n document graph from which the nodes will be extracted\n layer : str or collection of str or None\n name(s) of the layer(s) to select nodes from. If None, returns all\n ...
846
false
arne-cl/discoursegraphs
select_nodes_by_layer
8,027
LDU_FT/tensorflow/skflow/_generate_signature_for_function
LDU_FT
[ "<BEGIN>\n## `collect_members`", "Collect all symbols from a list of modules.", " Args:\n module_to_name: Dictionary mapping modules to short names.", " Returns:\n Dictionary mapping name to (fullname, member) pairs.\n<END>", "<BEGIN>\n## `_get_anchor`", "Turn a full member name into an anchor.", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _generate_signature_for_function API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its c...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _generate_signature_for_function API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its c...
Given a function, returns a string representing its args.
"Given a function, returns a string representing its args."
46
false
tensorflow/skflow
_generate_signature_for_function
8,028
LDU_FT/VisTrails/tej/main
LDU_FT
[ "<BEGIN>\n## `escape_queue`", "Escapes the path to a queue, e.g. preserves ~ at the begining.\n<END>", "<BEGIN>\n## `get_client`", "Gets the SSH client.", " This will check that the connection is still alive first, and reconnect\n if necessary.\n<END>", "<BEGIN>\n## `_call`", "Calls a comm...
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...
Entry point when called on the command-line.
"Entry point when called on the command-line."
26
false
VisTrails/tej
main
8,029
LDU_FT/Yelp/threat_intel/_cull
LDU_FT
[ "<BEGIN>\n## `init_poolmanager`", "Called to initialize the HTTPAdapter when no proxy is used.\n<END>", "<BEGIN>\n## `proxy_manager_for`", "Called to initialize the HTTPAdapter when a proxy is used.\n<END>", "<BEGIN>\n## `make_calls`", "Adds appropriate sleep to avoid making too many calls.", " A...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _cull API. 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 _cull API. 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 calls more than 1 second old from the queue.
"Remove calls more than 1 second old from the queue."
149
false
Yelp/threat_intel
_cull
8,030
LDU_FT/lvieirajr/mongorest/find_one
LDU_FT
[ "<BEGIN>\n## `insert`", "Saves the Document to the database if it is valid.\n Returns errors otherwise.\n<END>", "<BEGIN>\n## `update`", "Updates the document with the given _id saved in the collection if it\n is valid.\n Returns errors otherwise.\n<END>", "<BEGIN>\n## `delete`", "Del...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_one API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_one API. 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...
Returns one document dict if one passes the filter. Returns None otherwise.
"Returns one document dict if one passes the filter.\n Returns None otherwise."
42
false
lvieirajr/mongorest
find_one
8,031
LDU_FT/viveksck/changepoint/compute_balance_median_ts
LDU_FT
[ "<BEGIN>\n## `estimate_cp`", "Estimate changepoints in a time series by using R.\n<END>", "<BEGIN>\n## `estimate_cp_pval`", "Estimate changepoints in a time series by using R.\n<END>", "<BEGIN>\n## `get_ts_stats_significance`", "Returns the statistics, pvalues and the actual number of bootstrap\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the compute_balance_median_ts 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 compute_balance_median_ts API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi...
Compute the balance at each time 't' of the time series.
"Compute the balance at each time 't' of the time series."
28
false
viveksck/changepoint
compute_balance_median_ts
8,032
LDU_FT/EpistasisLab/scikit-rebate/transform
LDU_FT
[ "<BEGIN>\n## `fit`", "Scikit-learn required: Computes the feature importance scores from the training data.", " Parameters\n ----------\n X: array-like {n_samples, n_features}\n Training instances to compute the feature importance scores from\n y: array-like {n_samples}\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the transform API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the transform API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
Scikit-learn required: Reduces the feature set down to the top `n_features_to_select` features. Parameters ---------- X: array-like {n_samples, n_features} Feature matrix to perform feature selection on Returns ------- X_reduced: array-like {n_samples, n_fea...
"Scikit-learn required: Reduces the feature set down to the top `n_features_to_select` features.\n\n Parameters\n ----------\n X: array-like {n_samples, n_features}\n Feature matrix to perform feature selection on\n\n Returns\n -------\n X_reduced: array-like {n_samp...
46
false
EpistasisLab/scikit-rebate
transform
8,033
LDU_FT/The-Politico/politico-civic-election/save
LDU_FT
[ "<BEGIN>\n## `save`", "**uid**: :code:`{office.uid}_{cycle.uid}_race`\n<END>", "<BEGIN>\n## `save`", "**uid**: :code:`division_cycle_ballotmeasure:{number}`\n<END>", "<BEGIN>\n## `save`", "**uid**: :code:`{race.uid}_election:{election_day}-{party}`\n<END>", "<BEGIN>\n## `get_candidates`", "Get all Can...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the save API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the save API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
**uid**: :code:`{race.uid}_election:{election_day}-{party}`
"**uid**: :code:`{race.uid}_election:{election_day}-{party}`"
32
false
The-Politico/politico-civic-election
save
8,034
LDU_FT/heikomuller/sco-engine/update_model_connector
LDU_FT
[ "<BEGIN>\n## `handle_request`", "Convert a model run request from the buffer into a message in a RabbitMQ\n queue.", " Parameters\n ----------\n request : dict\n Buffer entry containing 'connector' and 'request' field\n<END>", "<BEGIN>\n## `from_dict`", "Create a model output file object ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update_model_connector 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 update_model_connector API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
Update the connector information for a given model. Returns None if the specified model not exist. Parameters ---------- model_id : string Unique model identifier connector : dict New connection information Returns ------- ModelH...
"Update the connector information for a given model.\n\n Returns None if the specified model not exist.\n\n Parameters\n ----------\n model_id : string\n Unique model identifier\n connector : dict\n New connection information\n\n Returns\n -------\n...
66
false
heikomuller/sco-engine
update_model_connector
8,035
LDU_FT/glomex/gcdt/output_deployment_summary
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 output_deployment_summary 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 output_deployment_summary API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi...
summary :param awsclient: :param deployment_id:
"summary\n\n :param awsclient:\n :param deployment_id:"
301
false
glomex/gcdt
output_deployment_summary
8,036
LDU_FT/Alignak-monitoring/alignak/api
LDU_FT
[ "<BEGIN>\n## `is_active`", "Know if this result modulation is active now", " :return: True is we are in the period, otherwise False\n :rtype: bool\n<END>", "<BEGIN>\n## `module_return`", "Module the exit code if necessary ::", " * modulation_period is legit\n * exit_code_modula...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the api API. 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 api API. 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...
List the methods available on the daemon Web service interface :return: a list of methods and parameters :rtype: dict
"List the methods available on the daemon Web service interface\n\n :return: a list of methods and parameters\n :rtype: dict"
3,377
true
Alignak-monitoring/alignak
api
8,037
LDU_FT/simoninireland/epyc/_crossProduct
LDU_FT
[ "<BEGIN>\n## `_parametersAsIndex`", "Private method to turn a parameter dict into a string suitable for\n keying a dict.", " ps: the parameters as a hash\n returns: a string key\n<END>", "<BEGIN>\n## `addResult`", "Add a result. This should be :term:`results dict` as returned from\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _crossProduct API. 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 _crossProduct API. 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...
Internal method to generate the cross product of all parameter values, creating the parameter space for the experiment. :param ls: an array of parameter names :returns: list of dicts
"Internal method to generate the cross product of all parameter\n values, creating the parameter space for the experiment.\n\n :param ls: an array of parameter names\n :returns: list of dicts"
116
false
simoninireland/epyc
_crossProduct
8,038
LDU_FT/UniversalDevicesInc/polyglot-v2-python-interface/save_typed_params
LDU_FT
[ "<BEGIN>\n## `init_interface`", "Grab the ~/.polyglot/.env file for variables\n If you are running Polyglot v2 on this same machine\n then it should already exist. If not create it.\n<END>", "<BEGIN>\n## `_connect`", "The callback for when the client receives a CONNACK response from the server.\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the save_typed_params API. 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 save_typed_params API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Send custom parameters descriptions to Polyglot to be used in front end UI configuration screen Accepts list of objects with the followin properties name - used as a key when data is sent from UI title - displayed in UI defaultValue - optionanl type - opti...
"Send custom parameters descriptions to Polyglot to be used\n in front end UI configuration screen\n Accepts list of objects with the followin properties\n name - used as a key when data is sent from UI\n title - displayed in UI\n defaultValue - optionanl\n type...
42
false
UniversalDevicesInc/polyglot-v2-python-interface
save_typed_params
8,039
LDU_FT/riggsd/davies/included_length
LDU_FT
[ "<BEGIN>\n## `lint`", "Run verbose PyLint on source. Optionally specify fmt=html for HTML output.\n<END>", "<BEGIN>\n## `azm`", "Corrected azimuth, taking into account backsight, declination, and compass corrections.\n<END>", "<BEGIN>\n## `inc`", "Corrected inclination, taking into account backsight and c...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the included_length API. 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 included_length API. 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...
Surveyed length, not including "excluded" shots
"Surveyed length, not including \"excluded\" shots"
60
false
riggsd/davies
included_length
8,040
LDU_FT/karel-brinda/rnftools/destringize
LDU_FT
[ "<BEGIN>\n## `recode_curesim_reads`", "Recode CuReSim output FASTQ file to the RNF-compatible output FASTQ file.", "\t\tArgs:\n\t\t\tcuresim_fastq_fo (file object): File object of CuReSim FASTQ file.\n\t\t\tfastq_rnf_fo (file object): File object of RNF FASTQ.\n\t\t\tfai_fo (file object): File object for FAI fi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the destringize API. 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 destringize API. 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...
Get RNF values for this read from its textual representation and save them into this object. Args: string(str): Textual representation of a read. Raises: ValueError
"Get RNF values for this read from its textual representation and save them \n\t\tinto this object.\n\n\t\tArgs:\n\t\t\tstring(str): Textual representation of a read.\n\n\t\tRaises:\n\t\t\tValueError"
84
false
karel-brinda/rnftools
destringize
8,041
LDU_FT/nfcpy/nfcpy/read_with_mac
LDU_FT
[ "<BEGIN>\n## `reset_mode`", "Send a Reset command to set the operation mode to 0.\n<END>", "<BEGIN>\n## `sense_tta`", "Activate the RF field and probe for a Type A Target.", " The RC-S956 can discover all Type A Targets (Type 1 Tag, Type\n 2 Tag, and Type 4A Tag) at 106 kbps. Due to firmware\n...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the read_with_mac API. 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 read_with_mac API. 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...
Read a number of data blocks with integrity check. This method accepts a variable number of integer arguments as the block numbers to read. The blocks are read with service code 0x000B (NDEF). Along with the requested block data the tag returns a message authentication code that is veri...
"Read a number of data blocks with integrity check.\n\n This method accepts a variable number of integer arguments as\n the block numbers to read. The blocks are read with service\n code 0x000B (NDEF). Along with the requested block data the\n tag returns a message authentication code that i...
452
false
nfcpy/nfcpy
read_with_mac
8,042
LDU_FT/vecnet/vecnet.openmalaria/tag_value
LDU_FT
[ "<BEGIN>\n## `get_percentage_from_prob`", "Converted probability of being treated to total percentage of clinical cases treated\n<END>", "<BEGIN>\n## `get_schema_version_from_xml`", "Get schemaVersion attribute from OpenMalaria scenario file\n xml - open file or content of xml document to be processed\n<EN...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the tag_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 tag_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...
Decorator used to declare that the property is attribute of embedded tag
"Decorator used to declare that the property is attribute of embedded tag"
42
false
vecnet/vecnet.openmalaria
tag_value
8,043
LDU_FT/memphis-iis/GLUDB/_auto_init
LDU_FT
[ "<BEGIN>\n## `read_rec`", "Generator that yields keyed recs from store.\n<END>", "<BEGIN>\n## `set_db_application_prefix`", "Set the global app prefix and separator.\n<END>", "<BEGIN>\n## `find_by_index`", "Find records matching index query - defer to backend.\n<END>", "<BEGIN>\n## `_auto_init`", "Our...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _auto_init API. 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 _auto_init API. 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...
Our decorator will add this as __init__ to target classes.
"Our decorator will add this as __init__ to target classes."
57
false
memphis-iis/GLUDB
_auto_init
8,044
LDU_FT/jmcgeheeiv/pyfakefs/get_object_from_normpath
LDU_FT
[ "<BEGIN>\n## `_classify_directory_contents`", "Classify contents of a directory as files/directories.", " Args:\n filesystem: The fake filesystem used for implementation\n root: (str) Directory to examine.", " Returns:\n (tuple) A tuple consisting of three values: the directory exam...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_object_from_normpath API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_object_from_normpath API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio...
Search for the specified filesystem object within the fake filesystem. Args: file_path: Specifies target FakeFile object to retrieve, with a path that has already been normalized/resolved. Returns: The FakeFile object corresponding to file_path. ...
"Search for the specified filesystem object within the fake\n filesystem.\n\n Args:\n file_path: Specifies target FakeFile object to retrieve, with a\n path that has already been normalized/resolved.\n\n Returns:\n The FakeFile object corresponding to file_path....
534
false
jmcgeheeiv/pyfakefs
get_object_from_normpath
8,045
LDU_FT/beregond/jsonmodels/parse_value
LDU_FT
[ "<BEGIN>\n## `compare_schemas`", "Compare two structures that represents JSON schemas.", " For comparison you can't use normal comparison, because in JSON schema\n lists DO NOT keep order (and Python lists do), so this must be taken into\n account during comparison.", " Note this wont check all co...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_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 extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_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 extra...
Cast value to `int`, e.g. from string or long
"Cast value to `int`, e.g. from string or long"
32
false
beregond/jsonmodels
parse_value
8,046
LDU_FT/doakey3/DashTable/right_sections
LDU_FT
[ "<BEGIN>\n## `check_table`", "Ensure the table is valid for converting to grid table.", " * The table must a list of lists\n * Each row must contain the same number of columns\n * The table must not be empty", " Parameters\n ----------\n table : list of lists of str\n The list of rows...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the right_sections API. 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 right_sections API. 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...
The number of sections that touch the right side. Returns ------- sections : int The number of sections on the right
"The number of sections that touch the right side.\n\n Returns\n -------\n sections : int\n The number of sections on the right"
230
false
doakey3/DashTable
right_sections
8,047
LDU_FT/mogproject/mog-commons-python/distinct
LDU_FT
[ "<BEGIN>\n## `_detect_encoding`", "Detect the default encoding for the terminal's output.\n :return: string: encoding string\n<END>", "<BEGIN>\n## `_get_restore_function`", "Return the binary function for restoring terminal attributes.\n :return: function (signal, frame) => None:\n<END>", "<BE...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the distinct API. 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 distinct API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
Get the list of distinct values with preserving order.
"Get the list of distinct values with preserving order."
49
false
mogproject/mog-commons-python
distinct
8,048
LDU_FT/fake-name/WebRequest/getFileNameMime
LDU_FT
[ "<BEGIN>\n## `getFileAndName`", "Give a requested page (note: the arguments for this call are forwarded to getpage()),\n\t\treturn the content at the target URL and the filename for the target content as a\n\t\t2-tuple (pgctnt, hName) for the content at the target URL.", "\t\tThe filename specified in the conte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the getFileNameMime API. 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 getFileNameMime API. 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...
Give a requested page (note: the arguments for this call are forwarded to getpage()), return the content at the target URL, the filename for the target content, and the mimetype for the content at the target URL, as a 3-tuple (pgctnt, hName, mime). The filename specified in the content-disposition header is used...
"Give a requested page (note: the arguments for this call are forwarded to getpage()),\n\t\treturn the content at the target URL, the filename for the target content, and\n\t\tthe mimetype for the content at the target URL, as a 3-tuple (pgctnt, hName, mime).\n\n\t\tThe filename specified in the content-disposition hea...
66
false
fake-name/WebRequest
getFileNameMime
8,049
LDU_FT/jefflovejapan/drench/bencode
LDU_FT
[ "<BEGIN>\n## `build_dirs`", "Build necessary directories based on a list of file paths\n<END>", "<BEGIN>\n## `get_want_file_pos`", "Ask the user which files in file_list he or she is interested in.\n Return indices for the files inside file_list\n<END>", "<BEGIN>\n## `get_file_starts`", "Return the sta...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the bencode API. 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 bencode API. 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...
Turns a dictionary into a bencoded str with alphabetized keys e.g., {'spam': 'eggs', 'cow': 'moo'} --> d3:cow3:moo4:spam4:eggse
"Turns a dictionary into a bencoded str with alphabetized keys\n e.g., {'spam': 'eggs', 'cow': 'moo'} --> d3:cow3:moo4:spam4:eggse"
32
false
jefflovejapan/drench
bencode
8,050
LDU_FT/mattimck/python-exist/release_attributes
LDU_FT
[ "<BEGIN>\n## `arquire_attributes`", "Claims a list of attributes for the current client.\n Can also disable attributes. Returns update response object.\n<END>", "<BEGIN>\n## `release_attributes`", "Releases named attributes from this service. Returns update response object.\n<END>", "<BEGIN>\n## `own...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the release_attributes 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 release_attributes 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...
Releases named attributes from this service. Returns update response object.
"Releases named attributes from this service. Returns update response object."
28
false
mattimck/python-exist
release_attributes
8,051
LDU_FT/Julian/jsonschema/unbool
LDU_FT
[ "<BEGIN>\n## `load_schema`", "Load a schema from ./schemas/``name``.json and return it.\n<END>", "<BEGIN>\n## `find_additional_properties`", "Return the set of additional properties for the given ``instance``.", " Weeds out properties that should have been validated by ``properties`` and\n / or ``patt...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the unbool API. 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 unbool API. 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 ...
A hack to make True and 1 and False and 0 unique for ``uniq``.
"A hack to make True and 1 and False and 0 unique for ``uniq``."
181
false
Julian/jsonschema
unbool
8,052
LDU_FT/simpleai-team/simpleai/_create_genetic_expander
LDU_FT
[ "<BEGIN>\n## `_all_expander`", "Expander that expands all nodes on the fringe.\n<END>", "<BEGIN>\n## `beam`", "Beam search.", " beam_size is the size of the beam.\n If iterations_limit is specified, the algorithm will end after that\n number of iterations. Else, it will continue until it can't find...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _create_genetic_expander 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 _create_genetic_expander API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio...
Creates an expander that expands the bests nodes of the population, crossing over them.
"Creates an expander that expands the bests nodes of the population,\n crossing over them."
130
false
simpleai-team/simpleai
_create_genetic_expander
8,053
LDU_FT/fredRos/pypmc/run
LDU_FT
[ "<BEGIN>\n## `r_value`", "Calculate the Gelman-Rubin R value (Chapter 2.2 in [GR92]_).", " The R value can be used to quantify mixing of \"multiple iterative\n simulations\" (e.g. Markov Chains) in parameter space. An R value\n \"close to one\" indicates that all chains explored the same region\n o...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the run API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the run API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
r"""Perform the clustering on the input components updating the initial guess. The result is available in the member ``self.g``. Return the number of iterations at convergence, or None. :param eps: If relative change of distance between current and last step falls below ``eps``, ...
"r\"\"\"Perform the clustering on the input components updating the initial\n guess. The result is available in the member ``self.g``.\n\n Return the number of iterations at convergence, or None.\n\n :param eps:\n\n If relative change of distance between current and last step falls below...
279
false
fredRos/pypmc
run
8,054
LDU_FT/casacore/python-casacore/makescacoldesc
LDU_FT
[ "<BEGIN>\n## `fitter`", "Create a sub-fitter.", " The created sub-fitter can be used in the same way as a fitter\n default fitter. This function returns an identification, which has to\n be used in the `fid` argument of subsequent calls. The call can\n specify the standard constructo...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the makescacoldesc API. 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 makescacoldesc API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
Create description of a scalar column. A description for a scalar column can be created from a name for the column and a data value, which is used only to determine the type of the column. Note that a dict value is also possible. It is possible to create the column description in more detail by gi...
"Create description of a scalar column.\n\n A description for a scalar column can be created from a name for\n the column and a data value, which is used only to determine the\n type of the column. Note that a dict value is also possible.\n\n It is possible to create the column description in more detail\n ...
618
false
casacore/python-casacore
makescacoldesc
8,055
LDU_FT/singularityhub/singularity-python/download_repo
LDU_FT
[ "<BEGIN>\n## `get_template`", "get_template will return a template in the template folder,\n with some substitutions (eg, {'{{ graph | safe }}':\"fill this in!\"}\n<END>", "<BEGIN>\n## `container_similarity_vector`", "container similarity_vector is similar to compare_packages, but intended\n to compare ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the download_repo API. 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 download_repo API. 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...
download_repo :param repo_url: the url of the repo to clone from :param destination: the full path to the destination for the repo
"download_repo\n :param repo_url: the url of the repo to clone from\n :param destination: the full path to the destination for the repo"
135
false
singularityhub/singularity-python
download_repo
8,056
LDU_FT/openspending/ckanext-budgets/_get_headers
LDU_FT
[ "<BEGIN>\n## `configure`", "Initialize the plugin. This creates a data object which holds a\n BudgetDataPackage parser which operates based on a specification\n which is either provided in the config via:\n ``ckan.budgets.specification`` or the included version.\n<END>", "<BEGIN>\n## `in_re...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_headers API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_headers API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
Get CSV file headers from the provided resource.
"Get CSV file headers from the provided resource."
19
false
openspending/ckanext-budgets
_get_headers
8,057
LDU_FT/mbi/django-rosetta/get_entries
LDU_FT
[ "<BEGIN>\n## `timestamp_with_timezone`", "Return a timestamp with a timezone for the configured locale. If all else\n fails, consider localtime to be UTC.\n<END>", "<BEGIN>\n## `find_pos`", "scans a couple possible repositories of gettext catalogs for the given\n language code\n<END>", "<BEGIN>\n## `...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_entries API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_entries API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
Return a list of the entries (messages) that would be part of the current "view"; that is, all of the ones from this .po file matching the current query or msg_filter.
"Return a list of the entries (messages) that would be part of the\n current \"view\"; that is, all of the ones from this .po file matching the\n current query or msg_filter."
31
false
mbi/django-rosetta
get_entries
8,058
LDU_FT/darkfeline/mir.sqlite3m/migration
LDU_FT
[ "<BEGIN>\n## `CheckForeignKeysWrapper`", "Migration wrapper that checks foreign keys.", " Note that this may raise different exceptions depending on the\n underlying database API.\n<END>", "<BEGIN>\n## `register_migration`", "Register a migration.", " You can only register migrations in order...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the migration API. 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 migration API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
Decorator to create and register a migration. >>> manager = MigrationManager() >>> @manager.migration(0, 1) ... def migrate(conn): ... pass
"Decorator to create and register a migration.\n\n >>> manager = MigrationManager()\n >>> @manager.migration(0, 1)\n ... def migrate(conn):\n ... pass"
15
false
darkfeline/mir.sqlite3m
migration
8,059
LDU_FT/allenai/allennlp/_update_expression_reference
LDU_FT
[ "<BEGIN>\n## `forward`", "Parameters\n ----------\n inputs : ``PackedSequence``, required.\n A batch first ``PackedSequence`` to run the stacked LSTM over.\n initial_state : Tuple[torch.Tensor, torch.Tensor], optional, (default = None)\n A tuple (state, memory) represent...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _update_expression_reference API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its concl...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _update_expression_reference API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its concl...
When we add a new expression, there may be other expressions that refer to it, and we need to update those to point to the new expression.
"When we add a new expression, there may be other expressions that refer to\n it, and we need to update those to point to the new expression."
1,296
true
allenai/allennlp
_update_expression_reference
8,060
LDU_FT/Workiva/furious/_find_furious_yaml
LDU_FT
[ "<BEGIN>\n## `_handle_task`", "Pass request info to the async framework.\n<END>", "<BEGIN>\n## `_init`", "Initialize the furious context and registry.", " NOTE: Do not directly run this method.\n<END>", "<BEGIN>\n## `run_job`", "Takes an async object and executes its job.\n<END>", "<BEGIN>\n## `_ha...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _find_furious_yaml 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 _find_furious_yaml 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...
Traverse the directory tree identified by start until a directory already in checked is encountered or the path of furious.yaml is found. Checked is present both to make the loop termination easy to reason about and so the same directories do not get rechecked Args: start: the path to ...
"Traverse the directory tree identified by start\n until a directory already in checked is encountered or the path\n of furious.yaml is found.\n\n Checked is present both to make the loop termination easy\n to reason about and so the same directories do not get\n rechecked\n\n Args:\n start: th...
211
false
Workiva/furious
_find_furious_yaml
8,061
LDU_FT/seomoz/qless-py/stop
LDU_FT
[ "<BEGIN>\n## `clone`", "Clone the redis client to be slowlog-compatible\n<END>", "<BEGIN>\n## `stop`", "Set everything back to normal and collect our data\n<END>", "<BEGIN>\n## `class_string`", "Return a string representative of the class\n<END>", "<BEGIN>\n## `put`", "Either create a new job in the p...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the stop API. 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 stop API. 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...
Set everything back to normal and collect our data
"Set everything back to normal and collect our data"
66
false
seomoz/qless-py
stop
8,062
LDU_FT/nschloe/pygmsh/add_ellipsoid
LDU_FT
[ "<BEGIN>\n## `add_circle`", "Add circle in the :math:`x`-:math:`y`-plane.\n<END>", "<BEGIN>\n## `extrude`", "Extrusion (translation + rotation) of any entity along a given\n translation_axis, around a given rotation_axis, about a given angle. If\n one of the entities is not provided, this method...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_ellipsoid API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_ellipsoid API. 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...
Creates an ellipsoid with radii around a given midpoint :math:`x_0`.
"Creates an ellipsoid with radii around a given midpoint\n :math:`x_0`."
37
false
nschloe/pygmsh
add_ellipsoid
8,063
LDU_FT/jidn/flask-resteasy/_deferred_blueprint_init
LDU_FT
[ "<BEGIN>\n## `unpack`", "Unpack the response from a view.", " :param rv: the view response\n :type rv: either a :class:`werkzeug.wrappers.Response` or a\n tuple of (data, status_code, headers)\n<END>", "<BEGIN>\n## `init_app`", "Initialize actions with the app or blueprint.", " :param ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _deferred_blueprint_init 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 _deferred_blueprint_init API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio...
Bind resources to the app as recorded in blueprint. Synchronize prefix between blueprint/api and registration options, then perform initialization with setup_state.app :class:`flask.Flask` object. When a :class:`flask.ext.resteasy.Api` object is initialized with a blueprint, this method...
"Bind resources to the app as recorded in blueprint.\n\n Synchronize prefix between blueprint/api and registration options, then\n perform initialization with setup_state.app :class:`flask.Flask` object.\n When a :class:`flask.ext.resteasy.Api` object is initialized with a blueprint,\n this ...
36
false
jidn/flask-resteasy
_deferred_blueprint_init
8,064
LDU_FT/tijme/not-your-average-web-crawler/make_absolute
LDU_FT
[ "<BEGIN>\n## `get_new_requests`", "Retrieve all the new request that were found in this request.", " Returns:\n list(:class:`nyawc.http.Request`): A list of request objects.\n<END>", "<BEGIN>\n## `__make_request`", "Execute a request with the given data.", " Args:\n url...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the make_absolute API. 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 make_absolute API. 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...
Make the given (relative) URL absolute. Args: base (str): The absolute URL the relative url was found on. relative (str): The (possibly relative) url to make absolute. Returns: str: The absolute URL.
"Make the given (relative) URL absolute.\n\n Args:\n base (str): The absolute URL the relative url was found on.\n relative (str): The (possibly relative) url to make absolute.\n\n Returns:\n str: The absolute URL."
220
false
tijme/not-your-average-web-crawler
make_absolute
8,065
LDU_FT/tundish/turberfield-dialogue/run
LDU_FT
[ "<BEGIN>\n## `options`", "Generate folders to best match metadata.", " The results will be a single, perfectly matched folder, or the two nearest\n neighbours of an imperfect match.", " :param dict data: metadata matching criteria.", " This method is a generator. It yields\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the run API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the run API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
Parse the script file. :rtype: :py:class:`~turberfield.dialogue.model.Model`
"Parse the script file.\n\n :rtype: :py:class:`~turberfield.dialogue.model.Model`"
63
false
tundish/turberfield-dialogue
run
8,066
LDU_FT/lambdamusic/Ontospy/get_default_preds
LDU_FT
[ "<BEGIN>\n## `main_cli`", "Ontospy allows to extract and visualise ontology information included in RDF data. Use one of the commands listed below to find out more, or visit http://lambdamusic.github.io/ontospy\n<END>", "<BEGIN>\n## `scan`", "SCAN: get ontology data from RDF source and print out a report.\n<E...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_default_preds API. 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_default_preds API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
dynamically build autocomplete options based on an external file
"dynamically build autocomplete options based on an external file"
360
false
lambdamusic/Ontospy
get_default_preds
8,067
LDU_FT/jadolg/rocketchat_API/groups_archive
LDU_FT
[ "<BEGIN>\n## `directory`", "Search by users or channels on all server.\n<END>", "<BEGIN>\n## `spotlight`", "Searches for users or rooms that are visible to the user.\n<END>", "<BEGIN>\n## `users_info`", "Gets a user’s information, limited to the caller’s permissions.\n<END>", "<BEGIN>\n## `chat_search`"...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the groups_archive API. 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 groups_archive API. 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...
Archives a private group, only if you’re part of the group.
"Archives a private group, only if you’re part of the group."
82
false
jadolg/rocketchat_API
groups_archive
8,068
LDU_FT/gpoulter/fablib/chput
LDU_FT
[ "<BEGIN>\n## `default_roles`", "Decorate task with these roles by default, but override with -R, -H\n<END>", "<BEGIN>\n## `chown`", "User sudo to set user and group ownership\n<END>", "<BEGIN>\n## `chput`", "Put file and set user and group ownership. Default to use sudo.\n<END>", "<BEGIN>\n## `diff`", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the chput API. 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 chput API. 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...
Put file and set user and group ownership. Default to use sudo.
"Put file and set user and group ownership. Default to use sudo."
29
false
gpoulter/fablib
chput
8,069
LDU_FT/elifesciences/elife-tools/contrib_phone
LDU_FT
[ "<BEGIN>\n## `strip_punctuation_space`", "Strip excess whitespace prior to punctuation.\n<END>", "<BEGIN>\n## `join_sentences`", "concatenate two sentences together with punctuation glue\n<END>", "<BEGIN>\n## `coerce_to_int`", "Attempts to cast given value to an integer, return the original value if faile...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the contrib_phone API. 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 contrib_phone API. 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...
Given a contrib tag, look for an phone tag
"Given a contrib tag, look for an phone tag"
201
false
elifesciences/elife-tools
contrib_phone
8,070
LDU_FT/senaite/senaite.lims/getViewportValues
LDU_FT
[ "<BEGIN>\n## `getViewletByName`", "Viewlets allow through-the-web customizations.", " Through-the-web customization magic is managed by five.customerize.\n We need to think of this when looking up viewlets.", " @return: Viewlet registration object\n<END>", "<BEGIN>\n## `setupViewletByNa...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the getViewportValues API. 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 getViewportValues API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Determine the value of the viewport meta-tag
"Determine the value of the viewport meta-tag"
32
false
senaite/senaite.lims
getViewportValues
8,071
LDU_FT/cnobile2012/pololu-motors/getPWMFrequency
LDU_FT
[ "<BEGIN>\n## `getError`", "Get the error message or value stored in the Qik 2s9v1 hardware.", " :Keywords:\n device : `int`\n The device is the integer number of the hardware devices ID and\n is only used with the Pololu Protocol. Defaults to the hardware's\n def...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the getPWMFrequency API. 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 getPWMFrequency API. 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 the motor shutdown on error status stored on the hardware device. :Keywords: device : `int` The device is the integer number of the hardware devices ID and is only used with the Pololu Protocol. Defaults to the hardware's default value. message : `boo...
"Get the motor shutdown on error status stored on the hardware device.\n\n :Keywords:\n device : `int`\n The device is the integer number of the hardware devices ID and\n is only used with the Pololu Protocol. Defaults to the hardware's\n default value.\n messag...
97
false
cnobile2012/pololu-motors
getPWMFrequency
8,072