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/lduchesne/python-openstacksdk-hubic/_get_authorization_token
LDU_FT
[ "<BEGIN>\n## `get_headers`", "Get the authentication header.", " If the current session has not been authenticated, this will trigger a\n new authentication to the HubiC OAuth service.", " :param keystoneclient.Session session: The session object to use for\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_authorization_token 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_authorization_token API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio...
Load the HubiC form, submit it and return an authorization token. This will load the HTML form to accept if the application can access the user account and submit the form using the user's credentials. :raises keystoneclient.exceptions.AuthorizationFailure: if something ...
"Load the HubiC form, submit it and return an authorization token.\n\n This will load the HTML form to accept if the application can access\n the user account and submit the form using the user's credentials.\n\n :raises keystoneclient.exceptions.AuthorizationFailure: if something\n ...
27
false
lduchesne/python-openstacksdk-hubic
_get_authorization_token
35,273
LDU_FT/ihiji/version_utils/_pop_letters
LDU_FT
[ "<BEGIN>\n## `compare_packages`", "Compare two RPM strings to determine which is newer", " Parses version information out of RPM package strings of the form\n returned by the ``rpm -q`` command and compares their versions to\n determine which is newer. Provided strings *do not* require an\n architec...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _pop_letters API. 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 _pop_letters API. 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...
Pop consecutive letters from the front of a list and return them Pops any and all consecutive letters from the start of the provided character list and returns them as a list of characters. Operates on (and possibly alters) the passed list :param list char_list: a list of characters :return: a lis...
"Pop consecutive letters from the front of a list and return them\n\n Pops any and all consecutive letters from the start of the provided\n character list and returns them as a list of characters. Operates\n on (and possibly alters) the passed list\n\n :param list char_list: a list of characters\n :retur...
56
false
ihiji/version_utils
_pop_letters
35,274
LDU_FT/RLBot/RLBot/create_config_headers_dicts
LDU_FT
[ "<BEGIN>\n## `configure_processes`", "This will update the priority and CPU affinity of the processes owned by bots to try to achieve fairness and\n good performance.", " :param agent_metadata_map: A mapping of player index to agent metadata, including a list of owned process ids.\n<END>", "<BEGIN>\n## ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_config_headers_dicts API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclu...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_config_headers_dicts API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclu...
Creates the config_headers_to_widgets and config_widgets_to_headers and config_headers_to_categories dicts
"Creates the config_headers_to_widgets and config_widgets_to_headers and config_headers_to_categories dicts"
181
false
RLBot/RLBot
create_config_headers_dicts
35,275
LDU_FT/maximkulkin/lollipop/validated_type
LDU_FT
[ "<BEGIN>\n## `merge_errors`", "Deeply merges two error messages. Error messages can be\n string, list of strings or dict of error messages (recursively).\n Format is the same as accepted by :exc:`ValidationError`.\n Returns new error messages.\n<END>", "<BEGIN>\n## `add_error`", "Add error message fo...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the validated_type API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the validated_type API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
Convenient way to create a new type by adding validation to existing type. Example: :: Ipv4Address = validated_type( String, 'Ipv4Address', # regexp simplified for demo purposes Regexp('^\d+\.\d+\.\d+\.\d+$', error='Invalid IP address') ) Percentage = v...
"Convenient way to create a new type by adding validation to existing type.\n\n Example: ::\n\n Ipv4Address = validated_type(\n String, 'Ipv4Address',\n # regexp simplified for demo purposes\n Regexp('^\\d+\\.\\d+\\.\\d+\\.\\d+$', error='Invalid IP address')\n )\n\n ...
46
false
maximkulkin/lollipop
validated_type
35,276
LDU_FT/DataONEorg/d1_python/setDocumentedBy
LDU_FT
[ "<BEGIN>\n## `wrap`", "Work with the AccessPolicy in a SystemMetadata PyXB object.", " Args:\n access_pyxb : AccessPolicy PyXB object\n The AccessPolicy to modify.", " read_only: bool\n Do not update the wrapped AccessPolicy.", " When only a single AccessPolicy operation is nee...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the setDocumentedBy API. 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 setDocumentedBy API. 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 a CiTO, the Citation Typing Ontology, triple asserting that ``documented_pid`` isDocumentedBy ``documenting_pid``. Adds assertion: ``documented_pid cito:isDocumentedBy documenting_pid`` Args: documented_pid: str PID of a Science Object that is documented by ``document...
"Add a CiTO, the Citation Typing Ontology, triple asserting that\n ``documented_pid`` isDocumentedBy ``documenting_pid``.\n\n Adds assertion: ``documented_pid cito:isDocumentedBy documenting_pid``\n\n Args:\n documented_pid: str\n PID of a Science Object that is documented by ``...
1,937
true
DataONEorg/d1_python
setDocumentedBy
35,277
LDU_FT/bwengals/ccsnmultivar/_run_arguement_object_fits
LDU_FT
[ "<BEGIN>\n## `_inner_product`", "Compute inner product between two time domain waveforms, weighted by noisecurve.\n<END>", "<BEGIN>\n## `_overlap`", "returns the detector noise weighted inner product\n<END>", "<BEGIN>\n## `_run_arguement_object_fits`", "This function fits objects passed to Multivar, guara...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _run_arguement_object_fits 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 _run_arguement_object_fits API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclus...
This function fits objects passed to Multivar, guarantees wave ordering in Catalog object and DesignMatrix object matches up
"This function fits objects passed to Multivar, guarantees wave ordering in\n Catalog object and DesignMatrix object matches up"
82
false
bwengals/ccsnmultivar
_run_arguement_object_fits
35,278
LDU_FT/cloudnull/turbolift/list_items
LDU_FT
[ "<BEGIN>\n## `start`", "Return a list of objects from the API for a container.\n<END>", "<BEGIN>\n## `_cdn`", "Retrieve a long list of all files in a container.", " :return final_list, list_count, last_obj:\n<END>", "<BEGIN>\n## `remove_dirs`", "Delete a directory recursively.", " :param...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the list_items API. 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 list_items API. 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...
Builds a long list of objects found in a container. NOTE: This could be millions of Objects. :param url: :param container: :param last_obj: :param spr: "single page return" Limit the returned data to one page :type spr: ``bol`` :return None | list:
"Builds a long list of objects found in a container.\n\n NOTE: This could be millions of Objects.\n\n :param url:\n :param container:\n :param last_obj:\n :param spr: \"single page return\" Limit the returned data to one page\n :type spr: ``bol``\n :return None | list:"
148
false
cloudnull/turbolift
list_items
35,279
LDU_FT/statueofmike/rtsp/openRtpPort
LDU_FT
[ "<BEGIN>\n## `encode`", "Encode the RTP packet with header fields and payload.\n<END>", "<BEGIN>\n## `preview_stream`", "Display stream in an OpenCV window until \"q\" key is pressed\n<END>", "<BEGIN>\n## `get_resources`", "Do an RTSP-DESCRIBE request, then parse out available resources from the response\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the openRtpPort API. 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 openRtpPort API. 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...
Open RTP socket binded to a specified port.
"Open RTP socket binded to a specified port."
30
false
statueofmike/rtsp
openRtpPort
35,280
LDU_FT/scraperwiki/scraperwiki-python/select
LDU_FT
[ "<BEGIN>\n## `has_external_dependency`", "Check that a non-Python dependency is installed.\n<END>", "<BEGIN>\n## `scrape`", "Scrape a URL optionally with parameters.\n This is effectively a wrapper around urllib2.urlopen.\n<END>", "<BEGIN>\n## `execute`", "Execute an arbitrary SQL query given by query,...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the select API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the select API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Perform a sql select statement with the given query (without 'select') and return any results as a list of OrderedDicts.
"Perform a sql select statement with the given query (without 'select') and\n return any results as a list of OrderedDicts."
22
false
scraperwiki/scraperwiki-python
select
35,281
LDU_FT/matthiask/django-cte-forest/_default_node_visitor
LDU_FT
[ "<BEGIN>\n## `_ensure_parameters`", "Attempts to load and verify the CTE node parameters. Will use\n default values for all missing parameters, and raise an exception if\n a parameter's value cannot be verified. This method will only\n perform these actions once, and set the :attr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _default_node_visitor 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 _default_node_visitor API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Generates a dictionary representation of the given :class:`CTENode` `node`, which consists of the node itself under the key ``node``, as well as structural information under the keys ``depth``, ``path``, ``ordering``, ``leaf``, and ``branch``. :param node: the :class:`CTENode` for which...
"Generates a dictionary representation of the given :class:`CTENode`\n `node`, which consists of the node itself under the key ``node``, as\n well as structural information under the keys ``depth``, ``path``,\n ``ordering``, ``leaf``, and ``branch``.\n\n :param node: the :class:`CTENode` for...
153
false
matthiask/django-cte-forest
_default_node_visitor
35,282
LDU_FT/bennylope/django-organizations/send_notification
LDU_FT
[ "<BEGIN>\n## `invitation_backend`", "Returns a specified invitation backend", " Args:\n backend: dotted path to the invitation backend class\n namespace: URL namespace to use", " Returns:\n an instance of an InvitationBackend\n<END>", "<BEGIN>\n## `registration_backend`", "Retur...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the send_notification API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the send_notification API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
An intermediary function for sending an notification email informing a pre-existing, active user that they have been added to a new organization.
"An intermediary function for sending an notification email informing\n a pre-existing, active user that they have been added to a new\n organization."
90
false
bennylope/django-organizations
send_notification
35,283
LDU_FT/thewca/wca-regulations-compiler/list2html
LDU_FT
[ "<BEGIN>\n## `parse`", "Parse an input string, and return an AST\n doctype must have WCADocument as a baseclass\n<END>", "<BEGIN>\n## `_act_on_list`", "Act on the following rule :\n items : items item\n | item\n<END>", "<BEGIN>\n## `p_content`", "content : TITLE opttexts...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the list2html API. 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 list2html API. 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...
Very simple replacement for lists, no nesting, not even two lists in the same 'text'... (yet sufficient for the current regulations) Assumes list is in a paragraph.
"Very simple replacement for lists, no nesting, not even two lists in the\n same 'text'... (yet sufficient for the current regulations)\n Assumes list is in a paragraph."
36
false
thewca/wca-regulations-compiler
list2html
35,284
LDU_FT/raamana/mrivis/check_image_is_3d
LDU_FT
[ "<BEGIN>\n## `checkerboard`", "Checkerboard mixer.", " Parameters\n ----------\n img_spec1 : str or nibabel image-like object\n MR image (or path to one) to be visualized", " img_spec2 : str or nibabel image-like object\n MR image (or path to one) to be visualized", " patch_size...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the check_image_is_3d API. 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 check_image_is_3d API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Ensures the image loaded is 3d and nothing else.
"Ensures the image loaded is 3d and nothing else."
216
false
raamana/mrivis
check_image_is_3d
35,285
LDU_FT/toomore/grs/fetch_data
LDU_FT
[ "<BEGIN>\n## `real`", "Real time data", " :rtype: dict\n :returns:", " :name: 股票名稱 Unicode\n :no: 股票代碼\n :range: 漲跌價\n :ranges: 漲跌判斷 True, False\n :time: 取得時間\n :max: 漲停價\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the fetch_data API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the fetch_data API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
Fetch data from gretai.org.tw(OTC) return list. 從 gretai.org.tw 下載資料,回傳格式為 csv.reader 0. 日期 1. 成交股數 2. 成交金額 3. 開盤價 4. 最高價(續) 5. 最低價 6. 收盤價 7. 漲跌價差 8. 成交筆數 :param str stock_no...
"Fetch data from gretai.org.tw(OTC)\n return list.\n 從 gretai.org.tw 下載資料,回傳格式為 csv.reader\n\n 0. 日期\n 1. 成交股數\n 2. 成交金額\n 3. 開盤價\n 4. 最高價(續)\n 5. 最低價\n 6. 收盤價\n 7. 漲跌價差\n 8. 成交筆數\n\n :par...
88
false
toomore/grs
fetch_data
35,286
LDU_FT/workforce-data-initiative/skills-utils/quarter_to_daterange
LDU_FT
[ "<BEGIN>\n## `quarter_boundaries`", "Returns first and last day of a quarter", " Args:\n quarter (str) quarter, in format '2015Q1'", " Returns: (tuple) datetime.dates for the first and last days of the quarter\n<END>", "<BEGIN>\n## `metta_config`", "Returns metta metadata for a quarter's SOC ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the quarter_to_daterange 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 quarter_to_daterange API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Convert a quarter in arbitrary filename-ready format (e.g. 2015Q1) into start and end datetimes
"Convert a quarter in arbitrary filename-ready format (e.g. 2015Q1)\n into start and end datetimes"
63
false
workforce-data-initiative/skills-utils
quarter_to_daterange
35,287
LDU_FT/kobejohn/PQHelper/_swap_optimizer_allows
LDU_FT
[ "<BEGIN>\n## `_create_board_image_cv`", "Return a cv image of the board or empty board if not provided.\n<END>", "<BEGIN>\n## `_draw_swap_cv`", "Add a white tile border to indicate the swap.\n<END>", "<BEGIN>\n## `_convert_cv_to_tk`", "Convert an OpenCV image to a tkinter PhotoImage\n<END>", "<BEGIN>\n#...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _swap_optimizer_allows 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 _swap_optimizer_allows API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
Identify easily discarded meaningless swaps. This is motivated by the cost of millions of swaps being simulated.
"Identify easily discarded meaningless swaps.\n\n This is motivated by the cost of millions of swaps being simulated."
114
false
kobejohn/PQHelper
_swap_optimizer_allows
35,288
LDU_FT/libnano/primer3-py/assessOligo
LDU_FT
[ "<BEGIN>\n## `_parse_ntthal`", "Helper method that uses regex to parse ntthal output.\n<END>", "<BEGIN>\n## `calcThermo`", "Main subprocess wrapper for calls to the ntthal executable.", " Returns a named tuple with tm, ds, dh, and dg values or None if no\n structure / complex could be computed.\n<END>...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the assessOligo API. 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 assessOligo API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
Return the thermodynamic characteristics of hairpin/homodimer structures. Returns a tuple of namedtuples (hairpin data, homodimer data) in which each individual tuple is structured (dS, dH, dG, Tm).
"Return the thermodynamic characteristics of hairpin/homodimer structures.\n\n Returns a tuple of namedtuples (hairpin data, homodimer data) in which each\n individual tuple is structured (dS, dH, dG, Tm)."
43
false
libnano/primer3-py
assessOligo
35,289
LDU_FT/DomainTools/python_api/iris_enrich
LDU_FT
[ "<BEGIN>\n## `parse`", "Defines how to parse CLI arguments for the DomainTools API\n<END>", "<BEGIN>\n## `run`", "Defines how to start the CLI for the DomainTools API\n<END>", "<BEGIN>\n## `flattened`", "Returns a flattened version of the parsed whois data\n<END>", "<BEGIN>\n## `delimited`", "Returns ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the iris_enrich API. 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 iris_enrich API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
Returns back enriched data related to the specified domains using our Iris Enrich service each domain should be passed in as an un-named argument to the method: iris_enrich('domaintools.com', 'google.com') api.iris_enrich(*DOMAIN_LIST)['results_count'] Returns the number of results...
"Returns back enriched data related to the specified domains using our Iris Enrich service\n each domain should be passed in as an un-named argument to the method:\n iris_enrich('domaintools.com', 'google.com')\n\n api.iris_enrich(*DOMAIN_LIST)['results_count'] Returns the number of re...
58
false
DomainTools/python_api
iris_enrich
35,290
LDU_FT/mretegan/crispy/setData
LDU_FT
[ "<BEGIN>\n## `loadFromDisk`", "Read the spectra from the files generated by Quanty and store them\n as a list of spectum objects.\n<END>", "<BEGIN>\n## `populateWidget`", "Populate the widget using data stored in the state\n object. The order in which the individual widgets are populated\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the setData API. 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 setData API. 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...
Set the role data for the item at index to value.
"Set the role data for the item at index to value."
38
false
mretegan/crispy
setData
35,291
LDU_FT/devision-io/metasdk/data_get
LDU_FT
[ "<BEGIN>\n## `get_feed`", "Получение настроек для фида\n :param datasource_id: идентификатор фида\n :return: FeedDataSource\n<END>", "<BEGIN>\n## `get_data`", "Сохранение медиафайла\n :param task:\n :param media_metadata:\n :param file_suffix:\n :param callback:\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the data_get API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the data_get API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
Запрашивает данные по настройке :param data_only: Вернуть только данные без метаинформации :param conf_alias: Уникальный альяс конфига :param use_cache: Запросить один ра и далее работать с закешированной в памяти копией :return:
"Запрашивает данные по настройке\n :param data_only: Вернуть только данные без метаинформации\n :param conf_alias: Уникальный альяс конфига\n :param use_cache: Запросить один ра и далее работать с закешированной в памяти копией\n :return:"
88
false
devision-io/metasdk
data_get
35,292
LDU_FT/wbond/asn1crypto/_compute_public_key
LDU_FT
[ "<BEGIN>\n## `_pep425_version`", ":return:\n A tuple of integers representing the Python version number\n<END>", "<BEGIN>\n## `_pep425_supports_manylinux`", ":return:\n A boolean indicating if the machine can use manylinux1 packages\n<END>", "<BEGIN>\n## `_pep425_get_abi`", ":return:\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _compute_public_key API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _compute_public_key API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
Computes the public key corresponding to the current private key. :return: For RSA keys, an RSAPublicKey object. For DSA keys, an Integer object. For EC keys, an ECPointBitString.
"Computes the public key corresponding to the current private key.\n\n :return:\n For RSA keys, an RSAPublicKey object. For DSA keys, an Integer\n object. For EC keys, an ECPointBitString."
739
false
wbond/asn1crypto
_compute_public_key
35,293
LDU_FT/spacetelescope/synphot_refactor/evaluate
LDU_FT
[ "<BEGIN>\n## `overlap_status`", "Check overlap between two arrays.", " Parameters\n ----------\n a, b : array-like\n Arrays to check. Assumed to be in the same unit.", " Returns\n -------\n result : {'full', 'partial', 'none'}\n * 'full' - ``a`` is within or same as ``b``\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the evaluate API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the evaluate API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
One dimensional constant flux model function. Parameters ---------- x : number or ndarray Wavelengths in Angstrom. Returns ------- y : number or ndarray Flux in PHOTLAM.
"One dimensional constant flux model function.\n\n Parameters\n ----------\n x : number or ndarray\n Wavelengths in Angstrom.\n\n Returns\n -------\n y : number or ndarray\n Flux in PHOTLAM."
519
false
spacetelescope/synphot_refactor
evaluate
35,294
LDU_FT/davedoesdev/dxf/blob_size
LDU_FT
[ "<BEGIN>\n## `hash_bytes`", "Hash bytes using the same method the registry uses (currently SHA-256).", " :param buf: Bytes to hash\n :type buf: binary str", " :rtype: str\n :returns: Hex-encoded hash of file's content (prefixed by ``sha256:``)\n<END>", "<BEGIN>\n## `hash_file`", "Hash a file u...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the blob_size API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the blob_size API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
Return the size of a blob in the registry given the hash of its content. :param digest: Hash of the blob's content (prefixed by ``sha256:``). :type digest: str :rtype: long :returns: Whether the blob exists.
"Return the size of a blob in the registry given the hash of its content.\n\n :param digest: Hash of the blob's content (prefixed by ``sha256:``).\n :type digest: str\n\n :rtype: long\n :returns: Whether the blob exists."
84
false
davedoesdev/dxf
blob_size
35,295
LDU_FT/jaredLunde/vital-tools/padd
LDU_FT
[ "<BEGIN>\n## `line`", "Prints a line separator the full width of the terminal.", " @separator: the #str chars to create the line from\n @color: line color from :mod:vital.debug.colors\n @padding: adds extra lines to either the top, bottom or both\n of the line via :func:padd\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the padd API. 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 padd API. 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...
Adds extra new lines to the top, bottom or both of a String @text: #str text to pad @padding: #str 'top', 'bottom' or 'all' @size: #int number of new lines -> #str padded @text .. from vital.debug import * padd("Hello world") # -> '\\nHello ...
"Adds extra new lines to the top, bottom or both of a String\n\n @text: #str text to pad\n @padding: #str 'top', 'bottom' or 'all'\n @size: #int number of new lines\n\n -> #str padded @text\n ..\n from vital.debug import *\n\n padd(\"Hello world\")\n #...
396
false
jaredLunde/vital-tools
padd
35,296
LDU_FT/IntegralDefense/critsapi/find_distinct
LDU_FT
[ "<BEGIN>\n## `connect`", "Starts the mongodb connection. Must be called before anything else\n will work.\n<END>", "<BEGIN>\n## `find`", "Search a collection for the query provided. Just a raw interface to\n mongo to do any query you want.", " Args:\n collection: The db colle...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_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 ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_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 ext...
Search a collection for the distinct key values provided. Args: collection: The db collection. See main class documentation. key: The name of the key to find distinct values. For example with the indicators collection, the key could be "type". Returns: ...
"Search a collection for the distinct key values provided.\n\n Args:\n collection: The db collection. See main class documentation.\n key: The name of the key to find distinct values. For example with\n the indicators collection, the key could be \"type\".\n Returns:\...
67
false
IntegralDefense/critsapi
find_distinct
35,297
LDU_FT/tisimst/mcerp/Gamma
LDU_FT
[ "<BEGIN>\n## `correlate`", "Force a correlation matrix on a set of statistically distributed objects.\r\n This function works on objects in-place.\r", " Parameters\r\n ----------\r\n params : array\r\n An array of of uv objects.\r\n corrmat : 2d-array\r\n The correlation matrix to b...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the Gamma API. 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 Gamma API. 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...
A Gamma random variate Parameters ---------- k : scalar The shape parameter (must be positive and non-zero) theta : scalar The scale parameter (must be positive and non-zero)
"A Gamma random variate\n \n Parameters\n ----------\n k : scalar\n The shape parameter (must be positive and non-zero)\n theta : scalar\n The scale parameter (must be positive and non-zero)"
166
false
tisimst/mcerp
Gamma
35,298
LDU_FT/rameshg87/pyremotevbox/_import
LDU_FT
[ "<BEGIN>\n## `_check_typecode_list`", "Check a list of typecodes for compliance with Struct\n requirements.\n<END>", "<BEGIN>\n## `_get_type_or_substitute`", "return typecode or substitute type for wildcard or\n derived type. For serialization only.\n<END>", "<BEGIN>\n## `setDerivedTypeContents`", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _import API. 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 _import API. 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...
Algo take <import> element's children, clone them, and add them to the main document. Support for relative locations is a bit complicated. The orig document context is lost, so we need to store base location in DOM elements representing <types>, by creating a special temporary ...
"Algo take <import> element's children, clone them,\n and add them to the main document. Support for relative \n locations is a bit complicated. The orig document context\n is lost, so we need to store base location in DOM elements\n representing <types>, by creating a special temporary \n...
529
false
rameshg87/pyremotevbox
_import
35,299
LDU_FT/gunthercox/mathparse/evaluate_postfix
LDU_FT
[ "<BEGIN>\n## `is_symbol`", "Return true if the string is a mathematical symbol.\n<END>", "<BEGIN>\n## `find_word_groups`", "Find matches for words in the format \"3 thousand 6 hundred 2\".\n The words parameter should be the list of words to check for\n such as \"hundred\".\n<END>", "<BEGIN>\n## `repl...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the evaluate_postfix API. 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 evaluate_postfix API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Given a list of evaluatable tokens in postfix format, calculate a solution.
"Given a list of evaluatable tokens in postfix format,\n calculate a solution."
20
false
gunthercox/mathparse
evaluate_postfix
35,300
LDU_FT/CloudGenix/sdk-python/interactive_tenant_update_vars
LDU_FT
[ "<BEGIN>\n## `jdout`", "JD Output function. Does quick pretty printing of a CloudGenix Response body. This function returns a string\n instead of directly printing content.", " **Parameters:**", " - **api_response:** A CloudGenix-attribute extended `requests.Response` object", " **Returns:**...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the interactive_tenant_update_vars 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 interactive_tenant_update_vars API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its con...
Function to update the `cloudgenix.API` object with tenant login info. Run after login or client login. **Returns:** Boolean on success/failure,
"Function to update the `cloudgenix.API` object with tenant login info. Run after login or client login.\n\n **Returns:** Boolean on success/failure,"
153
false
CloudGenix/sdk-python
interactive_tenant_update_vars
35,301
LDU_FT/matrix-org/matrix-python-sdk/backfill_previous_messages
LDU_FT
[ "<BEGIN>\n## `set_user_profile`", "Set user profile within a room.", " This sets displayname and avatar_url for the logged in user only in a\n specific room. It does not change the user's global user profile.\n<END>", "<BEGIN>\n## `send_html`", "Send an html formatted message.", " Arg...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the backfill_previous_messages 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 backfill_previous_messages API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclus...
Backfill handling of previous messages. Args: reverse (bool): When false messages will be backfilled in their original order (old to new), otherwise the order will be reversed (new to old). limit (int): Number of messages to go back.
"Backfill handling of previous messages.\n\n Args:\n reverse (bool): When false messages will be backfilled in their original\n order (old to new), otherwise the order will be reversed (new to old).\n limit (int): Number of messages to go back."
304
false
matrix-org/matrix-python-sdk
backfill_previous_messages
35,302
LDU_FT/SALib/SALib/requires_gurobipy
LDU_FT
[ "<BEGIN>\n## `analyze`", "Perform a fractional factorial analysis", " Returns a dictionary with keys 'ME' (main effect) and 'IE' (interaction\n effect). The techniques bulks out the number of parameters with dummy\n parameters to the nearest 2**n. Any results involving dummy parameters\n could indi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the requires_gurobipy API. 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 requires_gurobipy API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Decorator function which takes a boolean _has_gurobi as an argument. Use decorate any functions which require gurobi. Raises an import error at runtime if gurobi is not present. Note that all runtime errors should be avoided in the working code, using brute force options as preference.
"Decorator function which takes a boolean _has_gurobi as an argument.\n Use decorate any functions which require gurobi.\n Raises an import error at runtime if gurobi is not present.\n Note that all runtime errors should be avoided in the working code,\n using brute force options as preference."
249
false
SALib/SALib
requires_gurobipy
35,303
LDU_FT/inveniosoftware/invenio-pidrelations/resolve_relation_type_config
LDU_FT
[ "<BEGIN>\n## `resolve_pid`", "Retrieve the real PID given a fetched PID.", " :param pid: fetched PID to resolve.\n<END>", "<BEGIN>\n## `ordered`", "Order the query result on the relations' indexes.\n<END>", "<BEGIN>\n## `_resolved_pid`", "Resolve self.pid if it is a fetched pid.\n<END>", "<BEGIN>\n...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the resolve_relation_type_config 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 resolve_relation_type_config API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its concl...
Resolve the relation type to config object. Resolve relation type from string (e.g.: serialization) or int (db value) to the full config object.
"Resolve the relation type to config object.\n\n Resolve relation type from string (e.g.: serialization) or int (db value)\n to the full config object."
53
false
inveniosoftware/invenio-pidrelations
resolve_relation_type_config
35,304
LDU_FT/LordGaav/python-chaos/getWorker
LDU_FT
[ "<BEGIN>\n## `registerWorker`", "Register a new Worker, under the given descriptive name.", "\t\tTrying to register multiple workers under the same name will raise an Exception.", "\t\tParameters\n\t\t----------\n\t\tname: string\n\t\t\tName to register the given worker under.\n\t\tworker: multiprocessing.Pro...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the getWorker API. 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 getWorker API. 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...
Retrieve the Worker registered under the given name. If the given name does not exists in the Worker list, an Exception is raised. Parameters ---------- name: string Name of the Worker to retrieve
"Retrieve the Worker registered under the given name.\n\n\t\tIf the given name does not exists in the Worker list, an Exception is raised.\n\n\t\tParameters\n\t\t----------\n\t\tname: string\n\t\t\tName of the Worker to retrieve"
138
false
LordGaav/python-chaos
getWorker
35,305
LDU_FT/napalm-automation/napalm/ping
LDU_FT
[ "<BEGIN>\n## `parse_intf_section`", "Parse a single entry from show interfaces output.", " Different cases:\n mgmt0 is up\n admin state is up", " Ethernet2/1 is up\n admin state is up, Dedicated Interface", " Vlan1 is down (Administratively down), line protocol is down, autostate enabled",...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the ping API. 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 ping API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
Execute ping on the device and returns a dictionary with the result. Output dictionary has one of following keys: * success * error In case of success, inner dictionary will have the followin keys: * probes_sent (int) * packet_loss (int) * rtt_...
"Execute ping on the device and returns a dictionary with the result.\n Output dictionary has one of following keys:\n * success\n * error\n In case of success, inner dictionary will have the followin keys:\n * probes_sent (int)\n * packet_loss (int)\n ...
254
false
napalm-automation/napalm
ping
35,306
LDU_FT/pudo/normality/collapse_spaces
LDU_FT
[ "<BEGIN>\n## `_safe_name`", "Convert the file name to ASCII and normalize the string.\n<END>", "<BEGIN>\n## `safe_filename`", "Create a secure filename for plain file system storage.\n<END>", "<BEGIN>\n## `stringify`", "Brute-force convert a given object to a string.", " This will attempt an increasi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the collapse_spaces API. 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 collapse_spaces API. 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...
Remove newlines, tabs and multiple spaces with single spaces.
"Remove newlines, tabs and multiple spaces with single spaces."
33
false
pudo/normality
collapse_spaces
35,307
LDU_FT/ewiger/mlab/invertDict
LDU_FT
[ "<BEGIN>\n## `saveVarsInMat`", "Hacky convinience function to dump a couple of python variables in a\n .mat file. See `awmstools.saveVars`.\n<END>", "<BEGIN>\n## `_make_proxy`", "Creates a proxy for a variable.", " XXX create and cache nested proxies also here.\n<END>", "<BEGIN>\n## `_do`", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the invertDict API. 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 invertDict API. 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...
r"""Return an inverted version of dict `d`, so that values become keys and vice versa. If multiple keys in `d` have the same value an error is raised, unless `allowManyToOne` is true, in which case one of those key-value pairs is chosen at random for the inversion. Examples: >>> invertDict({1: 2, ...
"r\"\"\"Return an inverted version of dict `d`, so that values become keys and\n vice versa. If multiple keys in `d` have the same value an error is\n raised, unless `allowManyToOne` is true, in which case one of those\n key-value pairs is chosen at random for the inversion.\n\n Examples:\n\n >>> invertD...
247
false
ewiger/mlab
invertDict
35,308
LDU_FT/aaugustin/websockets/_extract_parameters
LDU_FT
[ "<BEGIN>\n## `ensure_open`", "Check that the WebSocket connection is open.", " Raise :exc:`~websockets.exceptions.ConnectionClosed` if it isn't.\n<END>", "<BEGIN>\n## `transfer_data`", "Read incoming messages and put them in a queue.", " This coroutine runs in a task until the closing handsh...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _extract_parameters 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 _extract_parameters 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...
Extract compression parameters from a list of ``(name, value)`` pairs. If ``is_server`` is ``True``, ``client_max_window_bits`` may be provided without a value. This is only allow in handshake requests.
"Extract compression parameters from a list of ``(name, value)`` pairs.\n\n If ``is_server`` is ``True``, ``client_max_window_bits`` may be provided\n without a value. This is only allow in handshake requests."
346
false
aaugustin/websockets
_extract_parameters
35,309
LDU_FT/Nukesor/pueue/write
LDU_FT
[ "<BEGIN>\n## `clean`", "Clean queue items from a previous session.", " In case a previous session crashed and there are still some running\n entries in the queue ('running', 'stopping', 'killing'), we clean those\n and enqueue them again.\n<END>", "<BEGIN>\n## `clear`", "Remove all comp...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the write API. 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 write API. 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...
Write the output of all finished processes to a compiled log file.
"Write the output of all finished processes to a compiled log file."
104
false
Nukesor/pueue
write
35,310
LDU_FT/edwards-lab/MVtest/result
LDU_FT
[ "<BEGIN>\n## `standardize`", "Standardize the variables within a range [-1.0 and 1.0]", " This replaces the local copies of this data. When it's time to\n scale back, use destandardize from the datasource for that.\n<END>", "<BEGIN>\n## `destandardize`", "Revert the betas and variance componen...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the result API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the result API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Return log message containing ellapsed time as a string. When true, do_reset will result in a reset of start time.
"Return log message containing ellapsed time as a string.\n\n When true, do_reset will result in a reset of start time."
44
false
edwards-lab/MVtest
result
35,311
LDU_FT/aws/chalice/connect_s3_bucket_to_lambda
LDU_FT
[ "<BEGIN>\n## `create_from_lambda_arn`", "Create a LogRetriever from a client and lambda arn.", " :type client: botocore.client.Logs\n :param client: A ``logs`` client.", " :type lambda_arn: str\n :param lambda_arn: The ARN of the lambda function.", " :return: An instance o...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the connect_s3_bucket_to_lambda API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclu...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the connect_s3_bucket_to_lambda API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclu...
Configure S3 bucket to invoke a lambda function. The S3 bucket must already have permission to invoke the lambda function before you call this function, otherwise the service will return an error. You can add permissions by using the ``add_permission_for_s3_event`` below. The ...
"Configure S3 bucket to invoke a lambda function.\n\n The S3 bucket must already have permission to invoke the\n lambda function before you call this function, otherwise\n the service will return an error. You can add permissions\n by using the ``add_permission_for_s3_event`` below. The\n ...
96
false
aws/chalice
connect_s3_bucket_to_lambda
35,312
LDU_FT/zooniverse/panoptes-python-client/describe_export
LDU_FT
[ "<BEGIN>\n## `find`", "Like :py:meth:`.PanoptesObject.find` but can also query by user and\n project.", " - **user** and **project** can be either a :py:class:`.User` and\n :py:class:`.Project` instance respectively, or they can be given as\n IDs. If either argument is given, the...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the describe_export API. 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 describe_export API. 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...
Fetch metadata for an export. - **export_type** is a string specifying which type of export to look up. Returns a :py:class:`dict` containing metadata for the export.
"Fetch metadata for an export.\n\n - **export_type** is a string specifying which type of export to look\n up.\n\n Returns a :py:class:`dict` containing metadata for the export."
104
false
zooniverse/panoptes-python-client
describe_export
35,313
LDU_FT/swharden/PyOriginTools/getSheet
LDU_FT
[ "<BEGIN>\n## `getcols`", "find every column in every sheet and put it in a new sheet or book.\n<END>", "<BEGIN>\n## `updateVersion`", "given a filename to a file containing a __counter__ variable,\n open it, read the count, add one, rewrite the file.", " This:\n __counter__=123\n Becomes:\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the getSheet API. 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 getSheet API. 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 the pyorigin object for a sheet.
"returns the pyorigin object for a sheet."
52
false
swharden/PyOriginTools
getSheet
35,314
LDU_FT/VisualOps/cli/create_container
LDU_FT
[ "<BEGIN>\n## `create_app`", "insert app record when stack run as a app\n<END>", "<BEGIN>\n## `create_container`", "insert container record when create container\n<END>", "<BEGIN>\n## `get_app_data`", "get app data ( include name and app_data )\n<END>", "<BEGIN>\n## `_get_config`", "Get user docker con...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_container API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_container API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Create a new container image image to create the container from command command to execute while starting hostname hostname of the container user user to run docker as detach daemon mode entrypoint entrypoint to the container stdin_open ...
"Create a new container\n\n image\n image to create the container from\n command\n command to execute while starting\n hostname\n hostname of the container\n user\n user to run docker as\n detach\n daemon mode\n entrypoint\n entrypoint to the container\n st...
90
false
VisualOps/cli
create_container
35,315
LDU_FT/mozilla-releng/scriptworker/verify_worker_impls
LDU_FT
[ "<BEGIN>\n## `create_queue`", "Create a taskcluster queue.", " Args:\n credentials (dict): taskcluster credentials.\n<END>", "<BEGIN>\n## `write_json`", "Write json to disk.", " Args:\n path (str): the path to write to\n contents (dict): the contents of the j...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the verify_worker_impls 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 verify_worker_impls 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...
Verify the task type (e.g. decision, build) of each link in the chain. Args: chain (ChainOfTrust): the chain we're operating on Raises: CoTError: on failure
"Verify the task type (e.g. decision, build) of each link in the chain.\n\n Args:\n chain (ChainOfTrust): the chain we're operating on\n\n Raises:\n CoTError: on failure"
621
false
mozilla-releng/scriptworker
verify_worker_impls
35,316
LDU_FT/mdavidsaver/p4p/_request
LDU_FT
[ "<BEGIN>\n## `_sync`", "I will wait until all pending handlers cothreads have completed\n<END>", "<BEGIN>\n## `close`", "Close PV, disconnecting any clients.", " :param bool destroy: Indicate \"permanent\" closure. Current clients will not see subsequent open().\n :param bool sync: When block...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _request API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _request API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
helper for building pvRequests :param str process: Control remote processing. May be 'true', 'false', 'passive', or None. :param bool wait: Wait for all server processing to complete.
"helper for building pvRequests\n\n :param str process: Control remote processing. May be 'true', 'false', 'passive', or None.\n :param bool wait: Wait for all server processing to complete."
201
false
mdavidsaver/p4p
_request
35,317
LDU_FT/chrisspen/webarticle2text/cache_info
LDU_FT
[ "<BEGIN>\n## `tidyHTML`", "Runs an arbitrary HTML string through Tidy.\n<END>", "<BEGIN>\n## `generate_key`", "Generates the cache key for the given string using the content in pattern\n to format the output string\n<END>", "<BEGIN>\n## `cache_get`", "Returns the content of a cache item or the given de...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the cache_info API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the cache_info API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
Returns the cache files mtime or 0 if it does not exists
"Returns the cache files mtime or 0 if it does not exists"
14
false
chrisspen/webarticle2text
cache_info
35,318
LDU_FT/blockcypher/blockcypher-python/make_tx_signatures
LDU_FT
[ "<BEGIN>\n## `script_to_address`", "Like script_to_address but supports altcoins\n Copied 2015-10-02 from https://github.com/mflaxman/pybitcointools/blob/faf56c53148989ea390238c3c4541a6ae1d601f5/bitcoin/transaction.py#L224-L236\n<END>", "<BEGIN>\n## `get_address_details`", "Takes an address and coin_symbol...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the make_tx_signatures 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 make_tx_signatures 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...
Loops through txs_to_sign and makes signatures using privkey_list and pubkey_list Not sure what privkeys and pubkeys to supply? Use get_input_addresses() to return a list of addresses. Matching those addresses to keys is up to you and how you store your private keys. A future version of this library ma...
"Loops through txs_to_sign and makes signatures using privkey_list and pubkey_list\n\n Not sure what privkeys and pubkeys to supply?\n Use get_input_addresses() to return a list of addresses.\n Matching those addresses to keys is up to you and how you store your private keys.\n A future version of this libr...
163
false
blockcypher/blockcypher-python
make_tx_signatures
35,319
LDU_FT/fr33jc/bang/_prepare_servers
LDU_FT
[ "<BEGIN>\n## `set_ssh_creds`", "Set ssh credentials into config.", " Note that these values might also be set in ~/.bangrc. If they are\n specified both in ~/.bangrc and as command-line arguments to ``bang``, then\n the command-line arguments win.\n<END>", "<BEGIN>\n## `run_bang`", "Runs bang with...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _prepare_servers API. 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 _prepare_servers API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Prepare the variables that are exposed to the servers. Most attributes in the server config are used directly. However, due to variations in how cloud providers treat regions and availability zones, this method allows either the ``availability_zone`` or the ``region_name`` to be used a...
"Prepare the variables that are exposed to the servers.\n\n Most attributes in the server config are used directly. However, due\n to variations in how cloud providers treat regions and availability\n zones, this method allows either the ``availability_zone`` or the\n ``region_name`` to be ...
336
false
fr33jc/bang
_prepare_servers
35,320
LDU_FT/scrapinghub/exporters/set_last_position
LDU_FT
[ "<BEGIN>\n## `formatted_prefix`", "Gets a dict with format info, and formats a prefix template with that info. For example:\n if our prefix template is:\n 'some_file_{groups[0]}_{file_number}'", " And we have this method called with:", " formatted_prefix(groups=[US], file_number=0)...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_last_position API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_last_position API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Called from the manager, it is in charge of updating the last position of data commited by the writer, in order to have resume support
"Called from the manager, it is in charge of updating the last position of data commited\n by the writer, in order to have resume support"
90
false
scrapinghub/exporters
set_last_position
35,321
LDU_FT/bjmorgan/vasppy/read_projected_dos
LDU_FT
[ "<BEGIN>\n## `md5sum`", "Generate the md5 checksum for a string", " Args:\n string (Str): The string to be checksummed.", " Returns:\n (Str): The hex checksum.\n<END>", "<BEGIN>\n## `file_md5`", "Generate the md5 checksum for a file", " Args:\n filename (Str): The file to b...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the read_projected_dos 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 read_projected_dos 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...
Read the projected density of states data into
"Read the projected density of states data into"
174
false
bjmorgan/vasppy
read_projected_dos
35,322
LDU_FT/openstack/networking-arista/_parse_binding_config
LDU_FT
[ "<BEGIN>\n## `synchronize`", "Synchronizes Router DB from Neturon DB with EOS.", " Walks through the Neturon Db and ensures that all the routers\n created in Netuton DB match with EOS. After creating appropriate\n routers, it ensures to add interfaces as well.\n Uses idempotent prope...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _parse_binding_config API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _parse_binding_config API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Parse configured interface -> ACL bindings Bindings are returned as a set of (intf, name, direction) tuples: set([(intf1, acl_name, direction), (intf2, acl_name, direction), ..., ])
"Parse configured interface -> ACL bindings\n\n Bindings are returned as a set of (intf, name, direction) tuples:\n set([(intf1, acl_name, direction),\n (intf2, acl_name, direction),\n ...,\n ])"
213
false
openstack/networking-arista
_parse_binding_config
35,323
LDU_FT/dustin/twitty-twister/direct_messages
LDU_FT
[ "<BEGIN>\n## `__downloadPage`", "Start a HTTP download, returning a HTTPDownloader object\n<END>", "<BEGIN>\n## `__encodeMultipart`", "fields is a sequence of (name, value) elements for regular form fields.\n files is a sequence of (name, filename, value) elements for data to be uploaded as files\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the direct_messages API. 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 direct_messages API. 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 direct messages for the authenticating user. Search results are returned one message at a time a DirectMessage objects
"Get direct messages for the authenticating user.\n\n Search results are returned one message at a time a DirectMessage\n objects"
93
false
dustin/twitty-twister
direct_messages
35,324
LDU_FT/pseudonym117/Riot-Watcher/by_summoner_by_champion
LDU_FT
[ "<BEGIN>\n## `matchlist_by_account`", "Get matchlist for ranked games played on given account ID and platform ID\n and filtered using given filter parameters, if any", " A number of optional parameters are provided for filtering. It is up to the caller to\n ensure that the combination of fi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the by_summoner_by_champion 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 by_summoner_by_champion API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion...
Get a champion mastery by player ID and champion ID. :param string region: the region to execute this request on :param string encrypted_summoner_id: Summoner ID associated with the player :param long champion_id: Champion ID to retrieve Champion Mast...
"Get a champion mastery by player ID and champion ID.\n\n :param string region: the region to execute this request on\n :param string encrypted_summoner_id: Summoner ID associated with the player\n :param long champion_id: Champion ID to retrieve Champion...
80
false
pseudonym117/Riot-Watcher
by_summoner_by_champion
35,325
LDU_FT/inspirehep/inspire-json-merger/filter_conflicts
LDU_FT
[ "<BEGIN>\n## `scan_author_string_for_phrases`", "Scan a name string and output an object representing its structure.\n Example:\n Sample output for the name 'Jingleheimer Schmitt, John Jacob, XVI.' is::\n {\n 'TOKEN_TAG_LIST' : ['lastnames', 'nonlastnames', 'titles', 'raw'],\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the filter_conflicts API. 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 filter_conflicts API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Use this function to automatically filter all the entries defined for a given rule. Params: conflicts_list(List[Conflict]): the list of conflicts to filter. fields(List[str]): fields to filter out, using an accessor syntax of the form ``field.subfield.subsubfield``. Return: ...
"Use this function to automatically filter all the entries defined for a\n given rule.\n\n Params:\n conflicts_list(List[Conflict]): the list of conflicts to filter.\n fields(List[str]): fields to filter out, using an accessor syntax of\n the form ``field.subfield.subsubfield``.\n\n Re...
32
false
inspirehep/inspire-json-merger
filter_conflicts
35,326
LDU_FT/ddorn/GUI/normnorm
LDU_FT
[ "<BEGIN>\n## `select`", "Select an arbitrary item, by possition or by reference.\n<END>", "<BEGIN>\n## `on_select`", "Add an action to make when an object is selected.\n Only one action can be stored this way.\n<END>", "<BEGIN>\n## `on_unselect`", "Add an action to make when an object is unfocused....
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the normnorm API. 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 normnorm API. 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...
Return a vecor noraml to this one with a norm of one :return: V2
"Return a vecor noraml to this one with a norm of one\n\n :return: V2"
84
false
ddorn/GUI
normnorm
35,327
LDU_FT/KieranWynn/pyquaternion/random
LDU_FT
[ "<BEGIN>\n## `_validate_number_sequence`", "Validate a sequence to be of a certain length and ensure it's a numpy array of floats.", " Raises:\n ValueError: Invalid length or non-numeric value\n<END>", "<BEGIN>\n## `_from_matrix`", "Initialise from matrix representation", " Create...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the random API. 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 random API. 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 ...
Generate a random unit quaternion. Uniformly distributed across the rotation space As per: http://planning.cs.uiuc.edu/node198.html
"Generate a random unit quaternion.\n\n Uniformly distributed across the rotation space\n As per: http://planning.cs.uiuc.edu/node198.html"
129
false
KieranWynn/pyquaternion
random
35,328
LDU_FT/JIC-CSB/jicimagelib/manifest
LDU_FT
[ "<BEGIN>\n## `transformation`", "Function decorator to turn another function into a transformation.\n<END>", "<BEGIN>\n## `smooth_gaussian`", "Returns Gaussian smoothed image.", " :param image: numpy array or :class:`jicimagelib.image.Image`\n :param sigma: standard deviation\n :returns: :class:`ji...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the manifest API. 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 manifest API. 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 manifest as a list. :param entry: :class:`jicimagelib.image.FileBackend.Entry` :returns: list
"Returns manifest as a list.\n \n :param entry: :class:`jicimagelib.image.FileBackend.Entry`\n :returns: list"
91
false
JIC-CSB/jicimagelib
manifest
35,329
LDU_FT/jaraco/jaraco.windows/set_data
LDU_FT
[ "<BEGIN>\n## `CryptUnprotectData`", "Returns a tuple of (description, data) where description is the\n\tthe description that was passed to the CryptProtectData call and\n\tdata is the decrypted result.\n<END>", "<BEGIN>\n## `set_data`", "Use this method to set the data for this blob\n<END>", "<BEGIN>\n## `m...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_data API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_data API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
Use this method to set the data for this blob
"Use this method to set the data for this blob"
119
false
jaraco/jaraco.windows
set_data
35,330
LDU_FT/KimiNewt/pyshark/_get_tshark_process
LDU_FT
[ "<BEGIN>\n## `get_field`", "Gets the XML field object of the given name.\n<END>", "<BEGIN>\n## `get_field_value`", "Tries getting the value of the given field.\n Tries it in the following order: show (standard nice display), value (raw value), showname (extended nice display).", " :param name:...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_tshark_process API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_tshark_process 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...
Returns a new tshark process with previously-set parameters.
"Returns a new tshark process with previously-set parameters."
91
false
KimiNewt/pyshark
_get_tshark_process
35,331
LDU_FT/royi1000/py-libhdate/upcoming_shabbat_or_yom_tov
LDU_FT
[ "<BEGIN>\n## `gdate_to_jdn`", "Compute Julian day from Gregorian day, month and year.", " Algorithm from wikipedia's julian_day article.\n Return: The julian day number\n<END>", "<BEGIN>\n## `hdate_to_jdn`", "Compute Julian day from Hebrew day, month and year.", " Return: julian day number,\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the upcoming_shabbat_or_yom_tov API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclu...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the upcoming_shabbat_or_yom_tov API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclu...
Return the HDate for the upcoming or current Shabbat or Yom Tov. If it is currently Shabbat, returns the HDate of the Saturday. If it is currently Yom Tov, returns the HDate of the first day (rather than "leil" Yom Tov). To access Leil Yom Tov, use upcoming_shabbat_or_yom_tov.previous_d...
"Return the HDate for the upcoming or current Shabbat or Yom Tov.\n\n If it is currently Shabbat, returns the HDate of the Saturday.\n If it is currently Yom Tov, returns the HDate of the first day\n (rather than \"leil\" Yom Tov). To access Leil Yom Tov, use\n upcoming_shabbat_or_yom_tov.pr...
70
false
royi1000/py-libhdate
upcoming_shabbat_or_yom_tov
35,332
LDU_FT/clalancette/pycdlib/parse
LDU_FT
[ "<BEGIN>\n## `parse`", "A method to parse an ISO9660 Path Table Record out of a string.", " Parameters:\n data - The string to parse.\n Returns:\n Nothing.\n<END>", "<BEGIN>\n## `_record`", "An internal method to generate a string representing this Path Table Record.", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
Parse the passed in data into a UDF Entity ID. Parameters: data - The data to parse. Returns: Nothing.
"Parse the passed in data into a UDF Entity ID.\n\n Parameters:\n data - The data to parse.\n Returns:\n Nothing."
1,112
true
clalancette/pycdlib
parse
35,333
LDU_FT/CiscoTestAutomation/yang/get_width
LDU_FT
[ "<BEGIN>\n## `retrieve_config`", "retrieve_config", " High-level api: Retrive config from rpc-reply.", " Parameters\n ----------", " element : `Element`\n A rpc-reply or content of Config instance.", " Returns\n -------", " Element\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_width API. 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_width API. 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_width High-level api: Calculate how much indent is needed for a node. Parameters ---------- element : `Element` A node in model tree. Returns ------- int Start position from the left margin.
"get_width\n\n High-level api: Calculate how much indent is needed for a node.\n\n Parameters\n ----------\n\n element : `Element`\n A node in model tree.\n\n Returns\n -------\n\n int\n Start position from the left margin."
554
false
CiscoTestAutomation/yang
get_width
35,334
LDU_FT/yougov/pmxbot/date_key
LDU_FT
[ "<BEGIN>\n## `attach`", "Given a function and a namespace of possible parameters,\n\tbind any params matching the signature of the function\n\tto that function.\n<END>", "<BEGIN>\n## `init_config`", "Install the config dict as pmxbot.config, setting overrides,\n\tand return the result.\n<END>", "<BEGIN>\n##...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the date_key API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the date_key API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
Return a key suitable for sorting by month. >>> k1 = ChannelPage.date_key('September, 2012') >>> k2 = ChannelPage.date_key('August, 2013') >>> k2 > k1 True
"Return a key suitable for sorting by month.\n\n\t\t>>> k1 = ChannelPage.date_key('September, 2012')\n\t\t>>> k2 = ChannelPage.date_key('August, 2013')\n\t\t>>> k2 > k1\n\t\tTrue"
128
false
yougov/pmxbot
date_key
35,335
LDU_FT/consbio/gis-metadata-parser/parse_property
LDU_FT
[ "<BEGIN>\n## `convert_parser_to`", ":return: a parser of type parser_or_type, initialized with the properties of parser. If parser_or_type\n is a type, an instance of it must contain a update method. The update method must also process\n the set of properties supported by MetadataParser for the conversion t...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_property API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_property API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
Defines the default parsing behavior for metadata values. :param tree_to_parse: the XML tree compatible with element_utils to be parsed :param xpath_root: used to determine the relative XPATH location within the parent element :param xpath_map: a dict of XPATHs that may contain alternate locations for a pro...
"Defines the default parsing behavior for metadata values.\n :param tree_to_parse: the XML tree compatible with element_utils to be parsed\n :param xpath_root: used to determine the relative XPATH location within the parent element\n :param xpath_map: a dict of XPATHs that may contain alternate locations for a...
122
false
consbio/gis-metadata-parser
parse_property
35,336
LDU_FT/HDI-Project/MLPrimitives/find_anomalies
LDU_FT
[ "<BEGIN>\n## `resample`", "pd.DataFrame.resample adapter.", " Call the `df.resample` method on the given time_index\n and afterwards call the indicated aggregation.", " Optionally group the dataframe by the indicated columns before\n performing the resampling.", " If groupby option is used, t...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_anomalies API. 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 find_anomalies API. 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...
Find sequences of values that are anomalous. We first find the ideal threshold for the set of errors that we have, and then find the sequences of values that are above this threshold. Lastly, we compute a score proportional to the maximum error in the sequence, and finally return the index pairs that ...
"Find sequences of values that are anomalous.\n\n We first find the ideal threshold for the set of errors that we have,\n and then find the sequences of values that are above this threshold.\n\n Lastly, we compute a score proportional to the maximum error in the\n sequence, and finally return the index pair...
96
false
HDI-Project/MLPrimitives
find_anomalies
35,337
LDU_FT/Hackerfleet/hfos/section
LDU_FT
[ "<BEGIN>\n## `_augment_book`", "Checks if the newly created object is a book and only has an ISBN.\n If so, tries to fetch the book data off the internet.", " :param uuid: uuid of book to augment\n :param client: requesting client\n<END>", "<BEGIN>\n## `serial_ports`", "Lists serial por...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the section API. 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 section API. 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 section consisting of rows and columns
"A section consisting of rows and columns"
344
false
Hackerfleet/hfos
section
35,338
LDU_FT/timmahrt/pysle/lookup
LDU_FT
[ "<BEGIN>\n## `spellCheckTextgrid`", "Spell check words by using the praatio spellcheck function", " Incorrect items are noted in a new tier and optionally\n printed to the screen\n<END>", "<BEGIN>\n## `naiveWordAlignment`", "Performs naive alignment for utterances in a textgrid", " Naive alig...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the lookup API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the lookup API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Lookup a word and receive a list of syllables and stressInfo Output example for the word 'another' which has two pronunciations [(([[u'ə'], [u'n', u'ˈʌ'], [u'ð', u'ɚ']], [1], [1]), ([[u'ə'], [u'n', u'ˈʌ'], [u'ð', u'ə', u'ɹ']], [1], [1]))]
"Lookup a word and receive a list of syllables and stressInfo\n \n Output example for the word 'another' which has two pronunciations\n [(([[u'ə'], [u'n', u'ˈʌ'], [u'ð', u'ɚ']], [1], [1]),\n ([[u'ə'], [u'n', u'ˈʌ'], [u'ð', u'ə', u'ɹ']], [1], [1]))]"
60
false
timmahrt/pysle
lookup
35,339
LDU_FT/Arubacloud/pyArubaCloud/purchase_ip
LDU_FT
[ "<BEGIN>\n## `find`", "Return a list of subset of VM that match the pattern name\n @param name (str): the vm name of the virtual machine\n @param name (Obj): the vm object that represent the virtual\n machine (can be Pro or Smart)\n @return (list): the subset contain...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the purchase_ip API. 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 purchase_ip API. 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 an ip object representing a new bought IP @param debug [Boolean] if true, request and response will be printed @return (Ip): Ip object
"Return an ip object representing a new bought IP\n @param debug [Boolean] if true, request and response will be printed\n @return (Ip): Ip object"
43
false
Arubacloud/pyArubaCloud
purchase_ip
35,340
LDU_FT/Phyks/libbmc/replace_all
LDU_FT
[ "<BEGIN>\n## `is_valid`", "Check that a given HAL id is a valid one.", " :param hal_id: The HAL id to be checked.\n :returns: Boolean indicating whether the HAL id is valid or not.", " >>> is_valid(\"hal-01258754, version 1\")\n True", " >>> is_valid(\"hal-01258754\")\n True", " >>> i...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the replace_all API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the replace_all API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
Replace multiple strings in a text. .. note:: Replacements are made successively, without any warranty on the order \ in which they are made. :param text: Text to replace in. :param replace_dict: Dictionary mapping strings to replace with their \ substitution. :returns: T...
"Replace multiple strings in a text.\n\n\n .. note::\n\n Replacements are made successively, without any warranty on the order \\\n in which they are made.\n\n :param text: Text to replace in.\n :param replace_dict: Dictionary mapping strings to replace with their \\\n substitution.\n ...
271
false
Phyks/libbmc
replace_all
35,341
LDU_FT/DataKitchen/DKCloudCommand/merge_kitchens_improved
LDU_FT
[ "<BEGIN>\n## `is_same`", "Compare two directory trees content.\n Return False if they differ, True is they are the same.\n :param dir2:\n :param dir1:\n<END>", "<BEGIN>\n## `phase3`", "Find out differences between common files.\n Ensure we are using content comparison with shallow=False.\n<END...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the merge_kitchens_improved 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 merge_kitchens_improved API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion...
merges kitchens '/v2/kitchen/merge/<string:kitchenname>/<string:kitchenname>', methods=['POST'] :param resolved_conflicts: :param self: DKCloudAPI :param from_kitchen: string :param to_kitchen: string :rtype: dict
"merges kitchens\n '/v2/kitchen/merge/<string:kitchenname>/<string:kitchenname>', methods=['POST']\n :param resolved_conflicts:\n :param self: DKCloudAPI\n :param from_kitchen: string\n :param to_kitchen: string\n :rtype: dict"
70
false
DataKitchen/DKCloudCommand
merge_kitchens_improved
35,342
LDU_FT/heigeo/climata/fill_date_range
LDU_FT
[ "<BEGIN>\n## `load_sites`", "Load metadata for all sites in given basin codes.\n<END>", "<BEGIN>\n## `get_huc8`", "Return all HUC8s matching the given prefix (e.g. 1801) or basin name\n (e.g. Klamath)\n<END>", "<BEGIN>\n## `parse`", "Convert ACIS 'll' value into separate latitude and longitude.\n<END>"...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the fill_date_range API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the fill_date_range API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
Function accepts start date, end date, and format (if dates are strings) and returns a list of Python dates.
"Function accepts start date, end date, and format (if dates are strings)\n and returns a list of Python dates."
30
false
heigeo/climata
fill_date_range
35,343
LDU_FT/EpistasisLab/tpot/clean_pipeline_string
LDU_FT
[ "<BEGIN>\n## `auto_select_categorical_features`", "Make a feature mask of categorical features in X.", " Features with less than 10 unique values are considered categorical.", " Parameters\n ----------\n X : array-like or sparse matrix, shape=(n_samples, n_features)\n Dense array or sparse ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the clean_pipeline_string API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the clean_pipeline_string API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Provide a string of the individual without the parameter prefixes. Parameters ---------- individual: individual Individual which should be represented by a pretty string Returns ------- A string like str(individual), but with parameter prefixes removed.
"Provide a string of the individual without the parameter prefixes.\n\n Parameters\n ----------\n individual: individual\n Individual which should be represented by a pretty string\n\n Returns\n -------\n A string like str(individual), but with parameter prefixes rem...
249
false
EpistasisLab/tpot
clean_pipeline_string
35,344
LDU_FT/jaraco/keyrings.alt/_save_keyring
LDU_FT
[ "<BEGIN>\n## `_ensure_file_path`", "Ensure the storage path exists.\n If it doesn't, create it with \"go-rwx\" permissions.\n<END>", "<BEGIN>\n## `delete_password`", "Delete the password for the username of the service.\n<END>", "<BEGIN>\n## `get_password`", "Get password of the username for the se...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _save_keyring API. 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 _save_keyring API. 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...
Helper to actually write the keyring to Google
"Helper to actually write the keyring to Google"
43
false
jaraco/keyrings.alt
_save_keyring
35,345
LDU_FT/src-d/jgit-spark-connector/master_ref
LDU_FT
[ "<BEGIN>\n## `repositories`", "Returns a DataFrame with the data about the repositories found at\n the specified repositories path in the form of siva files.", " >>> repos_df = engine.repositories", " :rtype: RepositoriesDataFrame\n<END>", "<BEGIN>\n## `blobs`", "Retrieves the blobs o...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the master_ref API. 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 master_ref API. 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...
Filters the current DataFrame to only contain those rows whose reference is master. >>> master_df = refs_df.master_ref :rtype: ReferencesDataFrame
"Filters the current DataFrame to only contain those rows whose reference is master.\n\n >>> master_df = refs_df.master_ref\n\n :rtype: ReferencesDataFrame"
76
false
src-d/jgit-spark-connector
master_ref
35,346
LDU_FT/brews/snakebacon/calibrate_dates
LDU_FT
[ "<BEGIN>\n## `date`", "Date a proxy record", " Parameters\n ----------\n proxy : ProxyRecord\n how : str\n How to perform the dating. 'median' returns the average of the MCMC ensemble. 'ensemble' returns a 'n'\n randomly selected members of the MCMC ensemble. De...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the calibrate_dates API. 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 calibrate_dates API. 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 density of calendar dates for chron date segment in core Parameters ---------- chron : DatedProxy-like calib_curve : CalibCurve or list of CalibCurves d_r : scalar or ndarray Carbon reservoir offset. d_std : scalar or ndarray Carbon reservoir offset error standard deviation....
"Get density of calendar dates for chron date segment in core\n\n Parameters\n ----------\n chron : DatedProxy-like\n calib_curve : CalibCurve or list of CalibCurves\n d_r : scalar or ndarray\n Carbon reservoir offset.\n d_std : scalar or ndarray\n Carbon reservoir offset error standard ...
40
false
brews/snakebacon
calibrate_dates
35,347
LDU_FT/wbond/pybars3/clean_whitespace
LDU_FT
[ "<BEGIN>\n## `prepare`", "Prepares a value to be added to the result", " :param value:\n The value to add to the result", " :param should_escape:\n If the string should be HTML-escaped", " :return:\n A unicode string or strlist\n<END>", "<BEGIN>\n## `grow`", "Make the list ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the clean_whitespace API. 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 clean_whitespace API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Cleans up whitespace around block open and close tags if they are the only thing on the line :param tree: The AST - will be modified in place
"Cleans up whitespace around block open and close tags if they are the\n only thing on the line\n\n :param tree:\n The AST - will be modified in place"
22
false
wbond/pybars3
clean_whitespace
35,348
LDU_FT/humilis/humilis-lambdautils/annotate_filter
LDU_FT
[ "<BEGIN>\n## `unpack_kinesis_event`", "Extracts events (a list of dicts) from a Kinesis event.\n<END>", "<BEGIN>\n## `send_to_delivery_stream`", "Sends a list of events to a Firehose delivery stream.\n<END>", "<BEGIN>\n## `_secrets_table_name`", "Name of the secrets table associated to a humilis deploymen...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the annotate_filter API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the annotate_filter API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
Add input and output watermarks to filtered events.
"Add input and output watermarks to filtered events."
40
false
humilis/humilis-lambdautils
annotate_filter
35,349
LDU_FT/wesleyfr/boxpython/get_folder_items
LDU_FT
[ "<BEGIN>\n## `get_access_tokens`", "From the authorization code, get the \"access token\" and the \"refresh token\" from Box.", " Args:\n authorization_code (str). Authorisation code emitted by Box at the url provided by the function :func:`get_authorization_url`.", " Returns:\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_folder_items API. 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_folder_items API. 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 files and folders inside a given folder Args: folder_id (int): Where to get files and folders info. limit (int): The number of items to return. offset (int): The item at which to begin the response. fields_list (list): List of attributes to get. All attrib...
"Get files and folders inside a given folder\n\n Args:\n folder_id (int): Where to get files and folders info.\n\n limit (int): The number of items to return.\n\n offset (int): The item at which to begin the response.\n\n fields_list (list): List of attributes to get. ...
104
false
wesleyfr/boxpython
get_folder_items
35,350
LDU_FT/wroberts/fsed/set_log_level
LDU_FT
[ "<BEGIN>\n## `open_file`", "Opens a file for access with the given mode. This function\n transparently wraps gzip and xz files as well as normal files.\n You can also open zip files using syntax like:", " f = utils.open_file('../semcor-parsed.zip:semcor000.txt')\n<END>", "<BEGIN>\n## `boundary_trans...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_log_level API. 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 set_log_level API. 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...
Ses the logging level of the script based on command line options. Arguments: - `verbose`: - `quiet`:
"Ses the logging level of the script based on command line options.\n\n Arguments:\n - `verbose`:\n - `quiet`:"
50
false
wroberts/fsed
set_log_level
35,351
LDU_FT/noxdafox/vminspect/lookup_folder
LDU_FT
[ "<BEGIN>\n## `keys`", "Iterates over the hive's keys.", " Yields WinRegKey namedtuples containing:", " path: path of the key \"RootKey\\\\Key\\\\...\"\n timestamp: date and time of last modification\n values: list of values ((\"ValueKey\", \"ValueType\", ValueValue), .....
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the lookup_folder API. 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 lookup_folder API. 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...
Lookup the parent folder in the filesystem content.
"Lookup the parent folder in the filesystem content."
123
false
noxdafox/vminspect
lookup_folder
35,352
LDU_FT/galaxyproject/pulsar/rewrite_paths
LDU_FT
[ "<BEGIN>\n## `__posix_to_local_path`", "Converts a posix path (coming from Galaxy), to a local path (be it posix or Windows).", " >>> import ntpath\n >>> __posix_to_local_path('dataset_1_files/moo/cow', local_path_module=ntpath)\n 'dataset_1_files\\\\\\\\moo\\\\\\\\cow'\n >>> import posixpath\n >...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the rewrite_paths API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the rewrite_paths API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
Rewrite references to `local_path` with `remote_path` in job inputs.
"Rewrite references to `local_path` with `remote_path` in job inputs."
142
false
galaxyproject/pulsar
rewrite_paths
35,353
LDU_FT/williamgilpin/pypdb/get_pdb_file
LDU_FT
[ "<BEGIN>\n## `make_query`", "Repackage strings into a search dictionary", " This function takes a list of search terms and specifications\n and repackages it as a dictionary object that can be used to conduct a search", " Parameters\n ----------\n search_term : str", " The specific ter...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_pdb_file API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_pdb_file API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
Get the full PDB file associated with a PDB_ID Parameters ---------- pdb_id : string A 4 character string giving a pdb entry of interest filetype: string The file type. 'pdb' is the older file format, 'cif' is the newer replacement. 'xml' an also be obtained an...
"Get the full PDB file associated with a PDB_ID\n\n Parameters\n ----------\n\n pdb_id : string\n A 4 character string giving a pdb entry of interest\n\n filetype: string\n The file type.\n 'pdb' is the older file format,\n 'cif' is the newer replacement.\n 'xml' an also b...
243
false
williamgilpin/pypdb
get_pdb_file
35,354
LDU_FT/dmcc/PyStanfordDependencies/from_conll
LDU_FT
[ "<BEGIN>\n## `convert_trees`", "Convert a list of Penn Treebank formatted strings (ptb_trees)\n into Stanford Dependencies. The dependencies are represented\n as a list of sentences (CoNLL.Corpus), where each sentence\n (CoNLL.Sentence) is itself a list of CoNLL.Token objects.", " Cu...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the from_conll API. 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 from_conll API. 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...
Construct a Sentence. stream is an iterable over strings where each string is a line in CoNLL-X format. If there are multiple sentences in this stream, we only return the first one.
"Construct a Sentence. stream is an iterable over strings where\n each string is a line in CoNLL-X format. If there are multiple\n sentences in this stream, we only return the first one."
56
false
dmcc/PyStanfordDependencies
from_conll
35,355
LDU_FT/pennersr/django-allauth/user_field
LDU_FT
[ "<BEGIN>\n## `_stash_user`", "Now, be aware, the following is quite ugly, let me explain:", " Even if the user credentials match, the authentication can fail because\n Django's default ModelBackend calls user_can_authenticate(), which\n checks `is_active`. Now, earlier versions of allauth d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the user_field API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the user_field API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
Gets or sets (optional) user model fields. No-op if fields do not exist.
"Gets or sets (optional) user model fields. No-op if fields do not exist."
130
false
pennersr/django-allauth
user_field
35,356
LDU_FT/user-cont/conu/logs
LDU_FT
[ "<BEGIN>\n## `clean`", "remove the directory we operated on", " :return: None\n<END>", "<BEGIN>\n## `initialize`", "create the directory if needed and configure it", " :return: None\n<END>", "<BEGIN>\n## `_set_selinux_context`", "Set SELinux context or fields using chcon program. Raises ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the logs API. 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 logs API. 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...
Get logs from this container. Every item of the iterator contains one log line terminated with a newline. The logs are encoded (they are bytes, not str). Let's look at an example:: image = conu.DockerImage("fedora", tag="27") command = ["bash", "-c", "for x in `seq 1 5`; do ech...
"Get logs from this container. Every item of the iterator contains one log line\n terminated with a newline. The logs are encoded (they are bytes, not str).\n\n Let's look at an example::\n\n image = conu.DockerImage(\"fedora\", tag=\"27\")\n command = [\"bash\", \"-c\", \"for x in `...
487
false
user-cont/conu
logs
35,357
LDU_FT/kathyxchen/crosstalk-correction/initialize_membership_matrix
LDU_FT
[ "<BEGIN>\n## `crosstalk_correction`", "A wrapper function around the maximum impact estimation algorithm.", " Parameters\n -----------\n pathway_definitions : dict(str -> set(str))\n The original pathway definitions.\n A pathway (key) is defined by a set of genes (value).\n random_seed...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the initialize_membership_matrix 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 initialize_membership_matrix API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its concl...
Create the binary gene-to-pathway membership matrix that will be considered in the maximum impact estimation procedure. Parameters ----------- gene_row_names : set(str) The genes for which we want to assess pathway membership pathway_definitions : dict(str -> set(str)) Pathway defin...
"Create the binary gene-to-pathway membership matrix that\n will be considered in the maximum impact estimation procedure.\n\n Parameters\n -----------\n gene_row_names : set(str)\n The genes for which we want to assess pathway membership\n pathway_definitions : dict(str -> set(str))\n Path...
29
false
kathyxchen/crosstalk-correction
initialize_membership_matrix
35,358
LDU_FT/MozillaSecurity/fuzzfetch/rmtree
LDU_FT
[ "<BEGIN>\n## `_si`", "Format a number using base-2 SI prefixes\n<END>", "<BEGIN>\n## `_extract_file`", "Extract files while explicitly setting the proper permissions\n<END>", "<BEGIN>\n## `build_string`", "Taskcluster denotes builds in one of two formats - i.e. linux64-asan or linux64-asan-opt\n Th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the rmtree API. 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 rmtree API. 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 ...
shutil.rmtree() but also handle junction points and access errors on Windows.
"shutil.rmtree() but also handle junction points and access errors on Windows."
60
false
MozillaSecurity/fuzzfetch
rmtree
35,359
LDU_FT/maceoutliner/django-fiction-outlines/return_json_response
LDU_FT
[ "<BEGIN>\n## `mk_dropdown_tree`", "Override of ``treebeard`` method to enforce the same root.\n<END>", "<BEGIN>\n## `length_estimate`", "Calculates and estimated word count based on number of characters, locations,\n and arcs. For reference see:\n http://www.writingexcuses.com/2017/07/02/12-27-c...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the return_json_response 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 return_json_response API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Returns detailed outline structure as :class:`django.http.JsonResponse`.
"Returns detailed outline structure as :class:`django.http.JsonResponse`."
61
false
maceoutliner/django-fiction-outlines
return_json_response
35,360
LDU_FT/kdeldycke/maildir-deduplicate/hash
LDU_FT
[ "<BEGIN>\n## `check_differences`", "In-depth check of mail differences.", " Compare all mails of the duplicate set with each other, both in size\n and content. Raise an error if we're not within the limits imposed by\n the threshold setting.\n<END>", "<BEGIN>\n## `diff`", "Return differ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the hash API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the hash API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
Take a single mail message and show its canonicalised form and hash. Mainly used to debug message hashing.
"Take a single mail message and show its canonicalised form and hash.\n\n Mainly used to debug message hashing."
68
false
kdeldycke/maildir-deduplicate
hash
35,361
LDU_FT/junzis/pyModeS/read_skysense_buffer
LDU_FT
[ "<BEGIN>\n## `category`", "Aircraft category number", " Args:\n msg (string): 28 bytes hexadecimal message string", " Returns:\n int: category number\n<END>", "<BEGIN>\n## `callsign`", "Aircraft callsign", " Args:\n msg (string): 28 bytes hexadecimal message string", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the read_skysense_buffer API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the read_skysense_buffer API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Skysense stream format. :: ---------------------------------------------------------------------------------- Field SS MS MS MS MS MS MS MS MS MS MS MS MS MS MS TS TS TS TS TS TS RS RS RS ---------------------------------------------------------------------------------...
"Skysense stream format.\n\n ::\n\n ----------------------------------------------------------------------------------\n Field SS MS MS MS MS MS MS MS MS MS MS MS MS MS MS TS TS TS TS TS TS RS RS RS\n --------------------------------------------------------------------------...
310
false
junzis/pyModeS
read_skysense_buffer
35,362
LDU_FT/sods/paramz/_raveled_index_for
LDU_FT
[ "<BEGIN>\n## `adjust_name_for_printing`", "Make sure a name can be printed, alongside used as a variable name.\n<END>", "<BEGIN>\n## `name`", "Set the name of this object.\n Tell the parent if the name has changed.\n<END>", "<BEGIN>\n## `hierarchy_name`", "return the name for this object with the p...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _raveled_index_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 _raveled_index_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...
get the raveled index for a param that is an int array, containing the indexes for the flattened param inside this parameterized logic. !Warning! be sure to call this method on the highest parent of a hierarchy, as it uses the fixes to do its work
"get the raveled index for a param\n that is an int array, containing the indexes for the flattened\n param inside this parameterized logic.\n\n !Warning! be sure to call this method on the highest parent of a hierarchy,\n as it uses the fixes to do its work"
225
false
sods/paramz
_raveled_index_for
35,363
LDU_FT/Karaage-Cluster/karaage/get_model_and_form_class
LDU_FT
[ "<BEGIN>\n## `_gen_project_trend_graph`", "Generates a bar graph for a project", " Keyword arguments:\n project -- Project\n start -- start date\n end -- end date\n<END>", "<BEGIN>\n## `synchronise`", "If task already queued, running, or finished, don't restart.\n<END>", "<BEGIN>\n## `send_bou...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_model_and_form_class 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_model_and_form_class API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio...
Returns a model and form class based on the model and form_class parameters that were passed to the generic view. If ``form_class`` is given then its associated model will be returned along with ``form_class`` itself. Otherwise, if ``model`` is given, ``model`` itself will be returned along with a ``M...
"Returns a model and form class based on the model and form_class\n parameters that were passed to the generic view.\n\n If ``form_class`` is given then its associated model will be returned along\n with ``form_class`` itself. Otherwise, if ``model`` is given, ``model``\n itself will be returned along with...
214
false
Karaage-Cluster/karaage
get_model_and_form_class
35,364
LDU_FT/KeithSSmith/switcheo-python/sign_execute_cancellation
LDU_FT
[ "<BEGIN>\n## `neo_get_scripthash_from_address`", "Convert a Public Address String to a ScriptHash (Address) String.", " :param address: The Public address to convert.\n :type address: str\n :return: String containing the converted ScriptHash.\n<END>", "<BEGIN>\n## `num2hexstring`", "Converts a numb...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the sign_execute_cancellation 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 sign_execute_cancellation API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi...
Function to sign the parameters required to execute a cancellation request on the Switcheo Exchange. Execution of this function is as follows:: sign_execute_cancellation(cancellation_params=signable_params, private_key=eth_private_key) The expected return result for this function is as follows:: ...
"Function to sign the parameters required to execute a cancellation request on the Switcheo Exchange.\n Execution of this function is as follows::\n\n sign_execute_cancellation(cancellation_params=signable_params, private_key=eth_private_key)\n\n The expected return result for this function is as follows::...
218
false
KeithSSmith/switcheo-python
sign_execute_cancellation
35,365
LDU_FT/blockadeio/analyst_toolbench/clean_indicators
LDU_FT
[ "<BEGIN>\n## `clean_indicators`", "Remove any extra details from indicators.\n<END>", "<BEGIN>\n## `check_whitelist`", "Check the indicators against known whitelists.\n<END>", "<BEGIN>\n## `cache_items`", "Cache indicators that were successfully sent to avoid dups.\n<END>", "<BEGIN>\n## `prune_cached`",...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the clean_indicators API. 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 clean_indicators API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Remove any extra details from indicators.
"Remove any extra details from indicators."
50
false
blockadeio/analyst_toolbench
clean_indicators
35,366
LDU_FT/thecynic/pylutron/parse
LDU_FT
[ "<BEGIN>\n## `_send_locked`", "Sends the specified command to the lutron controller.", " Assumes self._lock is held.\n<END>", "<BEGIN>\n## `_do_login_locked`", "Executes the login procedure (telnet) as well as setting up some\n connection defaults like turning off the prompt, etc.\n<END>", "<BEGIN>\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
Main entrypoint into the parser. It interprets and creates all the relevant Lutron objects and stuffs them into the appropriate hierarchy.
"Main entrypoint into the parser. It interprets and creates all the\n relevant Lutron objects and stuffs them into the appropriate hierarchy."
73
false
thecynic/pylutron
parse
35,367
LDU_FT/O365/python-o365/move_folder
LDU_FT
[ "<BEGIN>\n## `deprecated`", "Decorator to mark a specified function as deprecated", " :param version: version in which it is deprecated\n :param replacement: replacement functions to use\n<END>", "<BEGIN>\n## `to_api_data`", "Returns a dictionary in cloud format", " :param restrict_keys: a se...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the move_folder API. 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 move_folder API. 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...
Move this folder to another folder :param to_folder: the destination Folder/folder_id to move into :type to_folder: mailbox.Folder or str :param bool update_parent_if_changed: updates self.parent with the new parent Folder if changed :return: The new folder after copying ...
"Move this folder to another folder\n\n :param to_folder: the destination Folder/folder_id to move into\n :type to_folder: mailbox.Folder or str\n :param bool update_parent_if_changed: updates self.parent with the\n new parent Folder if changed\n :return: The new folder after copying...
589
false
O365/python-o365
move_folder
35,368
LDU_FT/ui/django-html_sanitizer/escape_html
LDU_FT
[ "<BEGIN>\n## `sanitize`", "Sanitizes strings according to SANITIZER_ALLOWED_TAGS,\n SANITIZER_ALLOWED_ATTRIBUTES and SANITIZER_ALLOWED_STYLES variables in\n settings.", " Example usage:", " {% load sanitizer %}\n {{ post.content|escape_html }}\n<END>", "<BEGIN>\n## `strip_filter`", "Strips ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the escape_html API. 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 escape_html API. 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...
Template tag to sanitize string values. It accepts lists of allowed tags, attributes or styles in comma separated string or list format. For example: {% load sanitizer %} {% escape_html '<a href="">bar</a> <script>alert('baz')</script>' "a,img' 'href',src' %} Will output: <a href="">bar</a> ...
"Template tag to sanitize string values. It accepts lists of\n allowed tags, attributes or styles in comma separated string or list format.\n\n For example:\n\n {% load sanitizer %}\n {% escape_html '<a href=\"\">bar</a> <script>alert('baz')</script>' \"a,img' 'href',src' %}\n\n Will output:\n\n <a hr...
27
false
ui/django-html_sanitizer
escape_html
35,369
LDU_FT/rhgrant10/Groupy/remove
LDU_FT
[ "<BEGIN>\n## `from_data`", "Create an attachment from data.", " :param str type: attachment type\n :param kwargs data: additional attachment data\n :return: an attachment subclass object\n :rtype: `~groupy.api.attachments.Attachment`\n<END>", "<BEGIN>\n## `from_file`", "Create a ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the remove API. 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 remove API. 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 ...
Remove a member from the group. :param str membership_id: the ID of a member in this group :return: ``True`` if the member was successfully removed :rtype: bool
"Remove a member from the group.\n\n :param str membership_id: the ID of a member in this group\n :return: ``True`` if the member was successfully removed\n :rtype: bool"
194
false
rhgrant10/Groupy
remove
35,370
LDU_FT/nanoporetech/ont_fast5_api/add_channel_info
LDU_FT
[ "<BEGIN>\n## `_clean`", "Convert numpy numeric types to their python equivalents.\n<END>", "<BEGIN>\n## `get_prior_alignment`", "Return the prior alignment that was used for 2D basecalling.", " :return: Alignment data table.\n<END>", "<BEGIN>\n## `get_2d_call_alignment`", "Return the alignment an...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_channel_info API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_channel_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 ...
Add channel info data to the channel_id group. :param data: A dictionary of key/value pairs. Keys must be strings. Values can be strings or numeric values. :param clear: If set, any existing channel info data will be removed.
"Add channel info data to the channel_id group.\n \n :param data: A dictionary of key/value pairs. Keys must be strings.\n Values can be strings or numeric values.\n :param clear: If set, any existing channel info data will be removed."
159
false
nanoporetech/ont_fast5_api
add_channel_info
35,371
LDU_FT/OCA/vertical-hotel/create_folio
LDU_FT
[ "<BEGIN>\n## `_offset_format_timestamp1`", "Convert a source timeStamp string into a destination timeStamp string,\n attempting to apply the correct offset if both the server and local\n timeZone are recognized,or no offset at all if they aren't or if\n tz_offset is false (i.e. assuming they are both in ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_folio API. 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 create_folio API. 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...
This method is for create new hotel folio. ----------------------------------------- @param self: The object pointer @return: new record set for hotel folio.
"This method is for create new hotel folio.\n -----------------------------------------\n @param self: The object pointer\n @return: new record set for hotel folio."
71
false
OCA/vertical-hotel
create_folio
35,372