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/sammchardy/python-kucoin/get_orders
LDU_FT
[ "<BEGIN>\n## `subscribe`", "Subscribe to a channel", " :param topic: required\n :returns: None", " Sample ws response", " .. code-block:: python", " {\n \"type\":\"message\",\n \"topic\":\"/market/ticker:BTC-USDT\",\n \"su...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_orders API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_orders API. 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...
Get list of orders https://docs.kucoin.com/#list-orders :param symbol: (optional) Name of symbol e.g. KCS-BTC :type symbol: string :param status: (optional) Specify status active or done (default done) :type status: string :param side: (optional) buy or sell :ty...
"Get list of orders\n\n https://docs.kucoin.com/#list-orders\n\n :param symbol: (optional) Name of symbol e.g. KCS-BTC\n :type symbol: string\n :param status: (optional) Specify status active or done (default done)\n :type status: string\n :param side: (optional) buy or sell\n ...
271
false
sammchardy/python-kucoin
get_orders
13,873
LDU_FT/redbridge/molnctrl/savecache
LDU_FT
[ "<BEGIN>\n## `_create_api_method`", "Create dynamic class methods based on the Cloudmonkey precached_verbs\n<END>", "<BEGIN>\n## `Initialize`", "Initializes the Cloudstack API\n Accepts arguments: \n api_host (localhost)\n api_port (443)\n api_ssl (True)\n ap...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the savecache API. 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 savecache API. 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...
Saves apicache dictionary as json_file, returns dictionary as indented str
"Saves apicache dictionary as json_file, returns dictionary as indented str"
12
false
redbridge/molnctrl
savecache
13,874
LDU_FT/hendrix/hendrix/save_chat_message
LDU_FT
[ "<BEGIN>\n## `save_chat_message`", "kwargs will always include:", " 'data': \n # will always be exactly what your client sent on the socket\n # in this case...\n {u'message': u'hi', u'sender': u'anonymous', u'channel': u'homepage'},", " 'dispatcher': \n # the dispatcher tha...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the save_chat_message API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the save_chat_message API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
kwargs will always include: 'data': # will always be exactly what your client sent on the socket # in this case... {u'message': u'hi', u'sender': u'anonymous', u'channel': u'homepage'}, 'dispatcher': # the dispatcher that will allow for broadcasting a response <hendri...
"kwargs will always include:\n\n 'data': \n # will always be exactly what your client sent on the socket\n # in this case...\n {u'message': u'hi', u'sender': u'anonymous', u'channel': u'homepage'},\n\n 'dispatcher': \n # the dispatcher that will allow for broadcasting a response\n ...
119
false
hendrix/hendrix
save_chat_message
13,875
LDU_FT/ecmwf/cfgrib/codes_get_bytes_array
LDU_FT
[ "<BEGIN>\n## `from_grib_date_time`", "Return the number of seconds since the ``epoch`` from the values of the ``message`` keys,\n using datetime.total_seconds().", " :param message: the target GRIB message\n :param date_key: the date key, defaults to \"dataDate\"\n :param time_key: the time key, def...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the codes_get_bytes_array API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the codes_get_bytes_array API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Get unsigned chars array values from a key. :param bytes key: the keyword whose value(s) are to be extracted :rtype: List(int)
"Get unsigned chars array values from a key.\n\n :param bytes key: the keyword whose value(s) are to be extracted\n\n :rtype: List(int)"
50
false
ecmwf/cfgrib
codes_get_bytes_array
13,876
LDU_FT/mongolab/mongoctl/validate_against_current_config
LDU_FT
[ "<BEGIN>\n## `ensure_dir`", "If DIR_PATH does not exist, makes it. Failing that, raises Exception.\n Returns True if dir already existed; False if it had to be made.\n<END>", "<BEGIN>\n## `is_same_host`", "Returns true if host1 == host2 OR map to the same host (using DNS)\n<END>", "<BEGIN>\n## `is_same_a...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the validate_against_current_config API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its co...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the validate_against_current_config API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its co...
Validates the member document against current rs conf 1- If there is a member in current config with _id equals to my id then ensure hosts addresses resolve to the same host 2- If there is a member in current config with host resolving to my host then ensure that ...
"Validates the member document against current rs conf\n 1- If there is a member in current config with _id equals to my id\n then ensure hosts addresses resolve to the same host\n\n 2- If there is a member in current config with host resolving to my\n host then ensure...
46
false
mongolab/mongoctl
validate_against_current_config
13,877
LDU_FT/ModisWorks/modis/on_message
LDU_FT
[ "<BEGIN>\n## `success`", "Creates an embed UI containing a hex color message", " Args:\n channel (discord.Channel): The Discord channel to bind the embed to\n image (str): The url of the image to add\n hex_str (str): The hex value", " Returns:\n ui (ui_embed.UI): The embed UI...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the on_message API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the on_message API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
The on_message event handler for this module Args: message (discord.Message): Input message
"The on_message event handler for this module\n\n Args:\n message (discord.Message): Input message"
278
false
ModisWorks/modis
on_message
13,878
LDU_FT/dustin/twitty-twister/__downloadPage
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 __downloadPage API. 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 __downloadPage API. 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...
Start a HTTP download, returning a HTTPDownloader object
"Start a HTTP download, returning a HTTPDownloader object"
93
false
dustin/twitty-twister
__downloadPage
13,879
LDU_FT/chukysoria/pyspotify-connect/login
LDU_FT
[ "<BEGIN>\n## `load_application_key_file`", "Load your libspotify application key file.", " If called without arguments, it tries to read ``spotify_appkey.key``\n from the current working directory.", " This is an alternative to setting :attr:`application_key` yourself. The\n file m...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the login API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the login API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
Authenticate to Spotify's servers. You can login with one of three combinations: - ``username`` and ``password`` - ``username`` and ``blob`` - ``username`` and ``zeroconf`` To get the ``blob`` string, you must once log in with ``username`` and ``password``. You'll then...
"Authenticate to Spotify's servers.\n\n You can login with one of three combinations:\n\n - ``username`` and ``password``\n - ``username`` and ``blob``\n - ``username`` and ``zeroconf``\n\n To get the ``blob`` string, you must once log in with ``username`` and\n ``password``. Y...
65
false
chukysoria/pyspotify-connect
login
13,880
LDU_FT/iotile/coretools/_order_pases
LDU_FT
[ "<BEGIN>\n## `_value_length`", "Given an integer or list of them, convert it to an array of bytes.\n<END>", "<BEGIN>\n## `_parse_line`", "Parse a line in a TileBus file", " Args:\n line_no (int): The line number for printing useful error messages\n line (string): The line that w...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _order_pases API. 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 _order_pases API. 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...
Topologically sort optimization passes. This ensures that the resulting passes are run in order respecting before/after constraints. Args: passes (iterable): An iterable of pass names that should be included in the optimization passes run.
"Topologically sort optimization passes.\n\n This ensures that the resulting passes are run in order\n respecting before/after constraints.\n\n Args:\n passes (iterable): An iterable of pass names that should\n be included in the optimization passes run."
4,849
true
iotile/coretools
_order_pases
13,881
LDU_FT/inbo/pyinaturalist/make_inaturalist_api_get_call
LDU_FT
[ "<BEGIN>\n## `make_inaturalist_api_get_call`", "Make an API call to iNaturalist.", " endpoint is a string such as 'observations' !! do not put / in front\n method: 'GET', 'HEAD', 'POST', 'PUT', 'PATCH', 'DELETE'\n kwargs are passed to requests.request\n Returns a requests.Response object\n<END>", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the make_inaturalist_api_get_call API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the make_inaturalist_api_get_call API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conc...
Make an API call to iNaturalist. endpoint is a string such as 'observations' !! do not put / in front method: 'GET', 'HEAD', 'POST', 'PUT', 'PATCH', 'DELETE' kwargs are passed to requests.request Returns a requests.Response object
"Make an API call to iNaturalist.\n\n endpoint is a string such as 'observations' !! do not put / in front\n method: 'GET', 'HEAD', 'POST', 'PUT', 'PATCH', 'DELETE'\n kwargs are passed to requests.request\n Returns a requests.Response object"
45
false
inbo/pyinaturalist
make_inaturalist_api_get_call
13,882
LDU_FT/chop-dbhi/varify/get_change_type
LDU_FT
[ "<BEGIN>\n## `set_cell_value`", "Convenience method for setting the value of an openpyxl cell", " This is necessary since the value property changed from internal_value\n to value between version 1.* and 2.*.\n<END>", "<BEGIN>\n## `get_change_type`", "Given ref, allele1, and allele2, returns the type ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_change_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 e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_change_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 e...
Given ref, allele1, and allele2, returns the type of change. The only case of an amino acid insertion is when the ref is represented as a '.'.
"Given ref, allele1, and allele2, returns the type of change.\n The only case of an amino acid insertion is when the ref is\n represented as a '.'."
27
false
chop-dbhi/varify
get_change_type
13,883
LDU_FT/fastavro/fastavro/_read_decimal
LDU_FT
[ "<BEGIN>\n## `_read_decimal`", "based on https://github.com/apache/avro/pull/82/\n<END>", "<BEGIN>\n## `read_long`", "int and long values are written using variable-length, zig-zag\n coding.\n<END>", "<BEGIN>\n## `read_bytes`", "Bytes are encoded as a long followed by that many bytes of data.\n<END>", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _read_decimal API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _read_decimal API. 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...
based on https://github.com/apache/avro/pull/82/
"based on https://github.com/apache/avro/pull/82/"
136
false
fastavro/fastavro
_read_decimal
13,884
LDU_FT/mjirik/sed3/get_seed_sub
LDU_FT
[ "<BEGIN>\n## `show_slices`", "Show slices as tiled image\r", " :param data3d: Input data\r\n :param contour: Data for contouring\r\n :param seeds: Seed data\r\n :param axis: Axis for sliceing\r\n :param slice_step: Show each \"slice_step\"-th slice, can be float\r\n :param shape: tuple(vertica...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_seed_sub API. 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_seed_sub API. 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...
Return list of all seeds with specific label
"Return list of all seeds with specific label"
30
false
mjirik/sed3
get_seed_sub
13,885
LDU_FT/mozilla/mozilla-django-oidc/get_oidc_backend
LDU_FT
[ "<BEGIN>\n## `get_next_url`", "Retrieves next url from request", " Note: This verifies that the url is safe before returning it. If the url\n is not safe, this returns None.", " :arg HttpRequest request: the http request\n :arg str redirect_field_name: the name of the field holding the next url", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_oidc_backend API. 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_oidc_backend API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Get the Django auth backend that uses OIDC.
"Get the Django auth backend that uses OIDC."
49
false
mozilla/mozilla-django-oidc
get_oidc_backend
13,886
LDU_FT/cyface/django-termsandconditions/user_accept_terms
LDU_FT
[ "<BEGIN>\n## `is_path_protected`", "returns True if given path is to be protected, otherwise False", " The path is not to be protected when it appears on:\n TERMS_EXCLUDE_URL_PREFIX_LIST, TERMS_EXCLUDE_URL_LIST, TERMS_EXCLUDE_URL_CONTAINS_LIST or as\n ACCEPT_TERMS_PATH\n<END>", "<BEGIN>\n## `process_...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the user_accept_terms API. 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 user_accept_terms API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Check if the user has accepted the terms and conditions after creation.
"Check if the user has accepted the terms and conditions after creation."
34
false
cyface/django-termsandconditions
user_accept_terms
13,887
LDU_FT/census-instrumentation/opencensus-python/get_metrics
LDU_FT
[ "<BEGIN>\n## `get_node`", "Generates Node message from params and system information.\n<END>", "<BEGIN>\n## `proto_ts_from_datetime_str`", "Converts string datetime in ISO format to protobuf timestamp.\n :type dt: str\n :param dt: string with datetime in ISO format\n :rtype: :class:`~google.protobuf....
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_metrics API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_metrics API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
Get a Metric for each registered view. Convert each registered view's associated `ViewData` into a `Metric` to be exported. :type timestamp: :class: `datetime.datetime` :param timestamp: The timestamp to use for metric conversions, usually the current time. :rtype: Ite...
"Get a Metric for each registered view.\n\n Convert each registered view's associated `ViewData` into a `Metric` to\n be exported.\n\n :type timestamp: :class: `datetime.datetime`\n :param timestamp: The timestamp to use for metric conversions, usually\n the current time.\n\n :...
528
false
census-instrumentation/opencensus-python
get_metrics
13,888
LDU_FT/nabla-c0d3/sslyze/_resume_with_session_ticket
LDU_FT
[ "<BEGIN>\n## `do_handshake_with_robot`", "Modified do_handshake() to send a ROBOT payload and return the result.\n<END>", "<BEGIN>\n## `get_client_key_exchange_record`", "A client key exchange record with a hardcoded pre_master_secret, and a valid or invalid padding.\n<END>", "<BEGIN>\n## `get_finished_reco...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _resume_with_session_ticket 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 _resume_with_session_ticket API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclu...
Perform one session resumption using TLS Session Tickets.
"Perform one session resumption using TLS Session Tickets."
92
false
nabla-c0d3/sslyze
_resume_with_session_ticket
13,889
LDU_FT/shaldengeki/python-mal/set
LDU_FT
[ "<BEGIN>\n## `logged_in`", "Checks the logged-in status of the current session. \n Expensive (requests a page), so use sparingly! Best practice is to try a request and catch an UnauthorizedError.", " :rtype: bool\n :return: Whether or not the current session is logged-in.\n<END>", "<BEGIN>\n## `login...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
Sets attributes of this user object. :type attr_dict: dict :param attr_dict: Parameters to set, with attribute keys. :rtype: :class:`.Base` :return: The current object.
"Sets attributes of this user object.\n\n :type attr_dict: dict\n :param attr_dict: Parameters to set, with attribute keys.\n\n :rtype: :class:`.Base`\n :return: The current object."
152
false
shaldengeki/python-mal
set
13,890
LDU_FT/psss/did/updated
LDU_FT
[ "<BEGIN>\n## `search`", "Perform issue search for given stats instance\n<END>", "<BEGIN>\n## `updated`", "True if the issue was commented by given user\n<END>", "<BEGIN>\n## `issues`", "Filter unique issues for given activity type and email\n<END>", "<BEGIN>\n## `_fetch_activities`", "Get organization...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the updated API. 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 updated API. 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...
True if the issue was commented by given user
"True if the issue was commented by given user"
118
false
psss/did
updated
13,891
LDU_FT/eandersson/amqpstorm/unbind
LDU_FT
[ "<BEGIN>\n## `open`", "Open Socket and establish a connection.", " :raises AMQPConnectionError: Raises if the connection\n encountered an error.\n :return:\n<END>", "<BEGIN>\n## `write_to_socket`", "Write data to the socket.", " :param str frame_dat...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the unbind API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the unbind API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Unbind a Queue. :param str queue: Queue name :param str exchange: Exchange name :param str routing_key: The routing key to use :param str virtual_host: Virtual host name :param str properties_key: :raises ApiError: Raises if the remote server encountered an error. ...
"Unbind a Queue.\n\n :param str queue: Queue name\n :param str exchange: Exchange name\n :param str routing_key: The routing key to use\n :param str virtual_host: Virtual host name\n :param str properties_key:\n\n :raises ApiError: Raises if the remote server encountered an err...
612
false
eandersson/amqpstorm
unbind
13,892
LDU_FT/jbarlow83/OCRmyPDF/generate_pdfa_ps
LDU_FT
[ "<BEGIN>\n## `re_symlink`", "Helper function: relinks soft symbolic link if necessary\n<END>", "<BEGIN>\n## `is_file_writable`", "Intentionally racy test if target is writable.", " We intend to write to the output file if and only if we succeed and\n can replace it atomically. Before doing the OCR wor...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the generate_pdfa_ps API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the generate_pdfa_ps API. 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 Postscript pdfmark file for Ghostscript PDF/A conversion A pdfmark file is a small Postscript program that provides some information Ghostscript needs to perform PDF/A conversion. The only information we put in specifies that we want the file to be a PDF/A, and we want to Ghostscript to conver...
"Create a Postscript pdfmark file for Ghostscript PDF/A conversion\n\n A pdfmark file is a small Postscript program that provides some information\n Ghostscript needs to perform PDF/A conversion. The only information we put\n in specifies that we want the file to be a PDF/A, and we want to Ghostscript\n to ...
195
false
jbarlow83/OCRmyPDF
generate_pdfa_ps
13,893
LDU_FT/dossier/dossier.models/_generate_report_all
LDU_FT
[ "<BEGIN>\n## `run`", "Generate the report to the given output.", " :param output: writable file-like object or file path\n<END>", "<BEGIN>\n## `_generate_report_all`", "Generate report for all subfolders contained by self.folder_id.\n<END>", "<BEGIN>\n## `_generate_report_single`", "Generate repo...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _generate_report_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. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _generate_report_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. ...
Generate report for all subfolders contained by self.folder_id.
"Generate report for all subfolders contained by self.folder_id."
217
false
dossier/dossier.models
_generate_report_all
13,894
LDU_FT/vcs-python/vcspull/in_dir
LDU_FT
[ "<BEGIN>\n## `expand_dir`", "Return path with environmental variables and tilde ~ expanded.", " :param _dir:\n :type _dir: str\n :param cwd: current working dir (for deciphering relative _dir paths)\n :type cwd: str\n :rtype; str\n<END>", "<BEGIN>\n## `extract_repos`", "Return expanded config...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the in_dir API. 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 in_dir API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Return a list of configs in ``config_dir``. :param config_dir: directory to search :type config_dir: str :param extensions: filetypes to check (e.g. ``['.yaml', '.json']``). :type extensions: list :rtype: list
"Return a list of configs in ``config_dir``.\n\n :param config_dir: directory to search\n :type config_dir: str\n :param extensions: filetypes to check (e.g. ``['.yaml', '.json']``).\n :type extensions: list\n :rtype: list"
29
false
vcs-python/vcspull
in_dir
13,895
LDU_FT/bloomberg/bqplot/register_axis
LDU_FT
[ "<BEGIN>\n## `register_mark`", "Returns a decorator registering a mark class in the mark type registry.", " If no key is provided, the class name is used as a key. A key is provided\n for each core bqplot mark so that the frontend can use\n this key regardless of the kernel language.\n<END>", "<BEGIN...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the register_axis API. 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 register_axis API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
Returns a decorator registering an axis class in the axis type registry. If no key is provided, the class name is used as a key. A key is provided for each core bqplot axis so that the frontend can use this key regardless of the kernel language.
"Returns a decorator registering an axis class in the axis type registry.\n\n If no key is provided, the class name is used as a key. A key is provided\n for each core bqplot axis so that the frontend can use this key regardless\n of the kernel language."
142
false
bloomberg/bqplot
register_axis
13,896
LDU_FT/idlesign/django-sitegate/verify_email
LDU_FT
[ "<BEGIN>\n## `verify_email`", "Verifies an account activation code a user received by e-mail.", " Requires Messages Django Contrib.", " :param Requset request:\n :param str code:\n :param str redirect_to:\n :return:\n<END>", "<BEGIN>\n## `get_template_name`", "Returns template path, either ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the verify_email API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the verify_email API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
Verifies an account activation code a user received by e-mail. Requires Messages Django Contrib. :param Requset request: :param str code: :param str redirect_to: :return:
"Verifies an account activation code a user received by e-mail.\n\n Requires Messages Django Contrib.\n\n :param Requset request:\n :param str code:\n :param str redirect_to:\n :return:"
31
false
idlesign/django-sitegate
verify_email
13,897
LDU_FT/NiklasRosenstein-Python/nr-deprecated/parse
LDU_FT
[ "<BEGIN>\n## `skip`", "Must be called from within `__enter__()`. Performs some magic to have a\n #ContextSkipped exception be raised the moment the with context is entered.\n The #ContextSkipped must then be handled in `__exit__()` to suppress the\n propagation of the exception.", " > Important: This functi...
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...
Shortcut for #IgnoreList.parse() and #IgnoreListCollection.append().
"Shortcut for #IgnoreList.parse() and #IgnoreListCollection.append()."
305
false
NiklasRosenstein-Python/nr-deprecated
parse
13,898
LDU_FT/oisinmulvihill/stomper/_findMessageBytes
LDU_FT
[ "<BEGIN>\n## `unpack_frame`", "Called to unpack a STOMP message into a dictionary.", " returned = {\n # STOMP Command:\n 'cmd' : '...',", " # Headers e.g.\n 'headers' : {\n 'destination' : 'xyz',\n 'message-id' : 'some event',\n :\n et...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _findMessageBytes API. 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 _findMessageBytes API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
I examine the data passed to me and return a 2-tuple of the form: ( message_length, header_length ) where message_length is the length in bytes of the first complete message, if it contains at least one message, or 0 if it contains no message. If me...
"I examine the data passed to me and return a 2-tuple of the form:\n \n ( message_length, header_length )\n \n where message_length is the length in bytes of the first complete\n message, if it contains at least one message, or 0 if it\n contains no message.\n \n ...
88
false
oisinmulvihill/stomper
_findMessageBytes
13,899
LDU_FT/uw-it-aca/uw-restclients-libraries/get_account
LDU_FT
[ "<BEGIN>\n## `get_account`", "The Libraries object has a method for getting information\n about a user's library account\n<END>", "<BEGIN>\n## `get_subject_guide_for_section_params`", "Returns a SubjectGuide model for the passed section params:", " year: year for the section term (4-digits)\n quart...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_account API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_account API. 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...
The Libraries object has a method for getting information about a user's library account
"The Libraries object has a method for getting information\n about a user's library account"
11
false
uw-it-aca/uw-restclients-libraries
get_account
13,900
LDU_FT/gusdan/geoindex/rad_latitude
LDU_FT
[ "<BEGIN>\n## `distance_to`", "Calculate distance in miles or kilometers between current and other\n passed point.\n<END>", "<BEGIN>\n## `rad_latitude`", "Lazy conversion degrees latitude to radians.\n<END>", "<BEGIN>\n## `rad_longitude`", "Lazy conversion degrees longitude to radians.\n<END>", "<...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the rad_latitude API. 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 rad_latitude API. 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...
Lazy conversion degrees latitude to radians.
"Lazy conversion degrees latitude to radians."
14
false
gusdan/geoindex
rad_latitude
13,901
LDU_FT/calocan/rescape-python-helpers/map_with_obj_deep
LDU_FT
[ "<BEGIN>\n## `prop`", "Implementation of prop (get_item) that also supports object attributes\n :param key:\n :param dct_or_obj:\n :return:\n<END>", "<BEGIN>\n## `all_pass_dict`", "Returns true if all dct values pass f\n :param f: binary lambda predicate\n :param dct:\n :return: True or fals...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the map_with_obj_deep API. 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 map_with_obj_deep API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Implementation of map that recurses. This tests the same keys at every level of dict and in lists :param f: 2-ary function expecting a key and value and returns a modified value :param dct: Dict for deep processing :return: Modified dct with matching props mapped
"Implementation of map that recurses. This tests the same keys at every level of dict and in lists\n :param f: 2-ary function expecting a key and value and returns a modified value\n :param dct: Dict for deep processing\n :return: Modified dct with matching props mapped"
54
false
calocan/rescape-python-helpers
map_with_obj_deep
13,902
LDU_FT/luqasz/librouteros/read
LDU_FT
[ "<BEGIN>\n## `connect`", "Connect and login to routeros device.\n Upon success return a Api class.", " :param host: Hostname to connecto to. May be ipv4,ipv6,FQDN.\n :param username: Username to login with.\n :param password: Password to login with. Only ASCII characters allowed.\n :param timeout...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the read API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the read API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
Read as many bytes from socket as specified in length. Loop as long as every byte is read unless exception is raised.
"Read as many bytes from socket as specified in length.\n Loop as long as every byte is read unless exception is raised."
40
false
luqasz/librouteros
read
13,903
LDU_FT/happyleavesaoc/python-limitlessled/_wait
LDU_FT
[ "<BEGIN>\n## `command_set_factory`", "Create command set for controlling a specific led group.\n :param bridge: The bridge the leds are connected to.\n :param group_number: The group number.\n :param led_type: The type of the leds.\n :return: The created command set.\n<END>", "<BEGIN>\n## `rate`", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _wait API. 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 _wait API. 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...
Compute wait time. :param duration: Total time (in seconds). :param steps: Number of steps. :param commands: Number of commands. :returns: Wait in seconds.
"Compute wait time.\n\n :param duration: Total time (in seconds).\n :param steps: Number of steps.\n :param commands: Number of commands.\n :returns: Wait in seconds."
164
false
happyleavesaoc/python-limitlessled
_wait
13,904
LDU_FT/ModisWorks/modis/create_stream_player
LDU_FT
[ "<BEGIN>\n## `success`", "Creates an embed UI containing a hex color message", " Args:\n channel (discord.Channel): The Discord channel to bind the embed to\n image (str): The url of the image to add\n hex_str (str): The hex value", " Returns:\n ui (ui_embed.UI): The embed UI...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_stream_player API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_stream_player API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Creates a streamer that plays from a URL
"Creates a streamer that plays from a URL"
278
false
ModisWorks/modis
create_stream_player
13,905
LDU_FT/michael-lazar/rtv/comment_stream
LDU_FT
[ "<BEGIN>\n## `refresh_content`", "Re-download all subscriptions and reset the page index\n<END>", "<BEGIN>\n## `select_subreddit`", "Store the selected subreddit and return to the subreddit page\n<END>", "<BEGIN>\n## `alias_function`", "Create a RedditContentObject function mapped to a BaseReddit function...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the comment_stream API. 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 comment_stream API. 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...
Indefinitely yield new comments from the provided subreddit. Comments are yielded from oldest to newest. :param reddit_session: The reddit_session to make requests from. In all the examples this is assigned to the variable ``r``. :param subreddit: Either a subreddit object, or the name of a ...
"Indefinitely yield new comments from the provided subreddit.\n\n Comments are yielded from oldest to newest.\n\n :param reddit_session: The reddit_session to make requests from. In all the\n examples this is assigned to the variable ``r``.\n :param subreddit: Either a subreddit object, or the name of a...
919
false
michael-lazar/rtv
comment_stream
13,906
LDU_FT/heroku/sf-suds/invoke
LDU_FT
[ "<BEGIN>\n## `splitPrefix`", "Split the name into a tuple (I{prefix}, I{name}). The first element in\n the tuple is I{None} when the name does't have a prefix.\n @param name: A node name containing an optional prefix.\n @type name: basestring\n @return: A tuple containing the (2) parts of I{name}\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the invoke API. 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 invoke API. 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 ...
Send the required soap message to invoke the specified method @param args: A list of args for the method invoked. @type args: list @param kwargs: Named (keyword) args for the method invoked. @type kwargs: dict @return: The result of the method invocation. @rtype: I{builti...
"Send the required soap message to invoke the specified method\n @param args: A list of args for the method invoked.\n @type args: list\n @param kwargs: Named (keyword) args for the method invoked.\n @type kwargs: dict\n @return: The result of the method invocation.\n @rtype: I...
38
false
heroku/sf-suds
invoke
13,907
LDU_FT/thombashi/DateTimeRange/get_end_time_str
LDU_FT
[ "<BEGIN>\n## `validate_time_inversion`", "Check time inversion of the time range.", " :raises ValueError:\n If |attr_start_datetime| is\n bigger than |attr_end_datetime|.\n :raises TypeError:\n Any one of |attr_start_datetime| and |attr_end_datetime|,\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_end_time_str API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_end_time_str API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
:return: |attr_end_datetime| as a |str| formatted with |attr_end_time_format|. Return |NaT| if invalid datetime or format. :rtype: str :Sample Code: .. code:: python from datetimerange import DateTimeRange time_range = Dat...
":return:\n |attr_end_datetime| as a |str| formatted with\n |attr_end_time_format|.\n Return |NaT| if invalid datetime or format.\n :rtype: str\n\n :Sample Code:\n .. code:: python\n\n from datetimerange import DateTimeRange\n time_...
58
false
thombashi/DateTimeRange
get_end_time_str
13,908
LDU_FT/django-auth-ldap/django-auth-ldap/_get_connection
LDU_FT
[ "<BEGIN>\n## `get_or_build_user`", "This must return a (User, built) 2-tuple for the given LDAP user.", " username is the Django-friendly username of the user. ldap_user.dn is\n the user's DN and ldap_user.attrs contains all of their LDAP\n attributes.", " The returned User object ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_connection API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_connection API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
Returns our cached LDAPObject, which may or may not be bound.
"Returns our cached LDAPObject, which may or may not be bound."
65
false
django-auth-ldap/django-auth-ldap
_get_connection
13,909
LDU_FT/Othernet-Project/conz/abrt
LDU_FT
[ "<BEGIN>\n## `read`", "Display a prompt and ask user for input", " A function to clean the user input can be passed as ``clean`` argument.\n This function takes a single value, which is the string user entered,\n and returns a cleaned value. Default is a pass-through function, which\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the abrt API. 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 abrt API. 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...
Prints the abrt banner and raises ``ProgressAbrt`` exception When ``noraise`` flag is set to ``True``, then the exception is not raised, and progress is allowed to continue. If ``post`` function is supplied it is invoked with no arguments after the close banner is printed, but before e...
"Prints the abrt banner and raises ``ProgressAbrt`` exception\n\n When ``noraise`` flag is set to ``True``, then the exception is not\n raised, and progress is allowed to continue.\n\n If ``post`` function is supplied it is invoked with no arguments after\n the close banner is printed, but b...
57
false
Othernet-Project/conz
abrt
13,910
LDU_FT/xmunoz/sodapy/set_permission
LDU_FT
[ "<BEGIN>\n## `_raise_for_status`", "Custom raise_for_status with more appropriate error message.\n<END>", "<BEGIN>\n## `_download_file`", "Utility function that downloads a chunked response from the specified url to a local path.\n This method is suitable for larger downloads.\n<END>", "<BEGIN>\n## `data...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_permission API. 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 set_permission API. 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...
Set a dataset's permissions to private or public Options are private, public
"Set a dataset's permissions to private or public\n Options are private, public"
41
false
xmunoz/sodapy
set_permission
13,911
LDU_FT/flyingrub/scdl/size_in_bytes
LDU_FT
[ "<BEGIN>\n## `size_in_bytes`", "Returns the size in bytes from strings such as '5 mb' into 5242880.", " >>> size_in_bytes('1m')\n 1048576\n >>> size_in_bytes('1.5m')\n 1572864\n >>> size_in_bytes('2g')\n 2147483648\n >>> size_in_bytes(None)\n Traceback (most recent call last):\n r...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the size_in_bytes API. 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 size_in_bytes API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
Returns the size in bytes from strings such as '5 mb' into 5242880. >>> size_in_bytes('1m') 1048576 >>> size_in_bytes('1.5m') 1572864 >>> size_in_bytes('2g') 2147483648 >>> size_in_bytes(None) Traceback (most recent call last): raise ValueError('no string specified') ValueEr...
"Returns the size in bytes from strings such as '5 mb' into 5242880.\n\n >>> size_in_bytes('1m')\n 1048576\n >>> size_in_bytes('1.5m')\n 1572864\n >>> size_in_bytes('2g')\n 2147483648\n >>> size_in_bytes(None)\n Traceback (most recent call last):\n raise ValueError('no string specified')\...
27
false
flyingrub/scdl
size_in_bytes
13,912
LDU_FT/zalando/patroni/fetch_node_status
LDU_FT
[ "<BEGIN>\n## `create_connection`", "This method is trying to establish connection with one of the zookeeper nodes.\n Somehow strategy \"fail earlier and retry more often\" works way better comparing to\n the original strategy \"try to connect with specified timeout\".\n Since we want...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the fetch_node_status API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the fetch_node_status API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
This function perform http get request on member.api_url and fetches its status :returns: `_MemberStatus` object
"This function perform http get request on member.api_url and fetches its status\n :returns: `_MemberStatus` object"
228
false
zalando/patroni
fetch_node_status
13,913
LDU_FT/sassoo/goldman/_from_rest_ignore
LDU_FT
[ "<BEGIN>\n## `_gen_s3_path`", "Return the part of the S3 path based on inputs", " The path will be passed to the s3_upload method &\n will ultimately be merged with the standard AWS S3\n URL.", " An example model type of 'users' with a resource ID\n of 99 & an API endpoint e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _from_rest_ignore API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _from_rest_ignore API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Purge fields that are completely unknown
"Purge fields that are completely unknown"
446
false
sassoo/goldman
_from_rest_ignore
13,914
LDU_FT/lreis2415/PyGeoC/output_compressed_dinf
LDU_FT
[ "<BEGIN>\n## `get_cell_length`", "Get flow direction induced cell length dict.\n Args:\n flow_model: Currently, \"TauDEM\", \"ArcGIS\", and \"Whitebox\" are supported.\n<END>", "<BEGIN>\n## `get_cell_shift`", "Get flow direction induced cell shift dict.\n Args:\n flow_model...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the output_compressed_dinf 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 output_compressed_dinf API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
Output compressed Dinf flow direction and weight to raster file Args: dinfflowang: Dinf flow direction raster file compdinffile: Compressed D8 flow code weightfile: The correspond weight
"Output compressed Dinf flow direction and weight to raster file\n Args:\n dinfflowang: Dinf flow direction raster file\n compdinffile: Compressed D8 flow code\n weightfile: The correspond weight"
259
false
lreis2415/PyGeoC
output_compressed_dinf
13,915
LDU_FT/portfoliome/postpy/install_extensions
LDU_FT
[ "<BEGIN>\n## `check_extension`", "Check to see if an extension is installed.\n<END>", "<BEGIN>\n## `generate_numeric_range`", "Generate postgresql numeric range and label for insertion.", " Parameters\n ----------\n items: iterable labels for ranges.\n lower_bound: numeric lower bound\n upper...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the install_extensions API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the install_extensions API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
Install Postgres extension if available. Notes ----- - superuser is generally required for installing extensions. - Currently does not support specific schema.
"Install Postgres extension if available.\n\n Notes\n -----\n - superuser is generally required for installing extensions.\n - Currently does not support specific schema."
50
false
portfoliome/postpy
install_extensions
13,916
LDU_FT/KarchinLab/probabilistic2020/log_error_decorator
LDU_FT
[ "<BEGIN>\n## `compute_indel_length`", "Computes the indel length accounting for wether it is an insertion or\n deletion.", " Parameters\n ----------\n fs_df : pd.DataFrame\n mutation input as dataframe only containing indel mutations", " Returns\n -------\n indel_len : pd.Series\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the log_error_decorator API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the log_error_decorator API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
Writes exception to log file if occured in decorated function. This decorator wrapper is needed for multiprocess logging since otherwise the python multiprocessing module will obscure the actual line of the error.
"Writes exception to log file if occured in decorated function.\n\n This decorator wrapper is needed for multiprocess logging since otherwise\n the python multiprocessing module will obscure the actual line of the error."
281
false
KarchinLab/probabilistic2020
log_error_decorator
13,917
LDU_FT/Giphy/giphy-python-client/gifs_translate_get
LDU_FT
[ "<BEGIN>\n## `gifs_categories_category_get`", "Category Tags Endpoint.\n Returns a list of tags for a given category. NOTE `limit` and `offset` must both be set; otherwise they're ignored.\n This method makes a synchronous HTTP request by default. To make an\n asynchronous HTTP request, pleas...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the gifs_translate_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. Th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the gifs_translate_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. Th...
Translate Endpoint The translate API draws on search, but uses the Giphy `special sauce` to handle translating from one vocabulary to another. In this case, words and phrases to GIFs. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `...
"Translate Endpoint\n The translate API draws on search, but uses the Giphy `special sauce` to handle translating from one vocabulary to another. In this case, words and phrases to GIFs.\n This method makes a synchronous HTTP request by default. To make an\n asynchronous HTTP request, please define...
48
false
Giphy/giphy-python-client
gifs_translate_get
13,918
LDU_FT/rocky/python-filecache/clear_file_format_cache
LDU_FT
[ "<BEGIN>\n## `pyc2py`", "Find corresponding .py name given a .pyc or .pyo\n<END>", "<BEGIN>\n## `clear_file_cache`", "Clear the file cache. If no filename is given clear it entirely.\n if a filename is given, clear just that filename.\n<END>", "<BEGIN>\n## `clear_file_format_cache`", "Remove syntax-for...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the clear_file_format_cache 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 clear_file_format_cache API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion...
Remove syntax-formatted lines in the cache. Use this when you change the Pygments syntax or Token formatting and want to redo how files may have previously been syntax marked.
"Remove syntax-formatted lines in the cache. Use this\n when you change the Pygments syntax or Token formatting\n and want to redo how files may have previously been\n syntax marked."
32
false
rocky/python-filecache
clear_file_format_cache
13,919
LDU_FT/vladcalin/gemstone/parse_json_structure
LDU_FT
[ "<BEGIN>\n## `parse_json_structure`", "Given a raw representation of a json structure, returns the parsed corresponding data\n structure (``JsonRpcRequest`` or ``JsonRpcRequestBatch``)", " :param string_item:\n :return:\n<END>", "<BEGIN>\n## `from_dict`", "Validates a dict instance and transforms i...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_json_structure 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_json_structure API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Given a raw representation of a json structure, returns the parsed corresponding data structure (``JsonRpcRequest`` or ``JsonRpcRequestBatch``) :param string_item: :return:
"Given a raw representation of a json structure, returns the parsed corresponding data\n structure (``JsonRpcRequest`` or ``JsonRpcRequestBatch``)\n\n :param string_item:\n :return:"
107
false
vladcalin/gemstone
parse_json_structure
13,920
LDU_FT/ResilienceTesting/gremlinsdk-python/add_rule
LDU_FT
[ "<BEGIN>\n## `add_rule`", "@param args keyword argument list, consisting of:", " source: <source service name>,\n dest: <destination service name>,\n messagetype: <request|response|publish|subscribe|stream>", " headerpattern: <regex to match against the value of the X-Gremlin-ID tr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_rule API. 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 add_rule API. 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 args keyword argument list, consisting of: source: <source service name>, dest: <destination service name>, messagetype: <request|response|publish|subscribe|stream> headerpattern: <regex to match against the value of the X-Gremlin-ID trackingheader present in HTTP headers> ...
"@param args keyword argument list, consisting of:\n\n source: <source service name>,\n dest: <destination service name>,\n messagetype: <request|response|publish|subscribe|stream>\n\n headerpattern: <regex to match against the value of the X-Gremlin-ID trackingheader present in HTTP headers...
31
false
ResilienceTesting/gremlinsdk-python
add_rule
13,921
LDU_FT/quikmile/trellio/run
LDU_FT
[ "<BEGIN>\n## `publish`", "publish the return value of this function as a message from this endpoint\n<END>", "<BEGIN>\n## `xsubscribe`", "Used to listen for publications from a specific endpoint of a service. If multiple instances\n subscribe to an endpoint, only one of them receives the event. And the pub...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the run API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the run API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
Fires up the event loop and starts serving attached services
"Fires up the event loop and starts serving attached services"
47
false
quikmile/trellio
run
13,922
LDU_FT/quantopian/serializable-traitlets/example_value
LDU_FT
[ "<BEGIN>\n## `validate_all_attributes`", "Force validation of all traits.", " Useful for circumstances where an attribute won't be accessed until\n well after construction, but we want to fail eagerly if that attribute\n is passed incorrectly.", " Consider using ``StrictSerializabl...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the example_value API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the example_value API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
If we're an instance of a Serializable, fall back to its `example_instance()` method.
"If we're an instance of a Serializable, fall back to its\n `example_instance()` method."
26
false
quantopian/serializable-traitlets
example_value
13,923
LDU_FT/ToFuProject/tofu/_set_arrayorder
LDU_FT
[ "<BEGIN>\n## `Struct_plot`", "Plot the projections of a list of Struct subclass instances", " D. VEZINET, Aug. 2014\n Inputs :\n V A Ves instance\n Nstep An int (the number of points for evaluation of theta by np.linspace)\n axP A plt.Axes instance (if given) on...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _set_arrayorder API. 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 _set_arrayorder API. 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...
Set the memory order of all np.ndarrays in a tofu object
"Set the memory order of all np.ndarrays in a tofu object"
424
false
ToFuProject/tofu
_set_arrayorder
13,924
LDU_FT/tkhyn/dirsync/update
LDU_FT
[ "<BEGIN>\n## `load_cfg`", "Load defaults from configuration file:\r\n - from the source/directory/.dirsync file (prioritary)\r\n - and/or a %HOME%/.dirsync user config file\n<END>", "<BEGIN>\n## `_cmptimestamps`", "Compare time stamps of two files and return True\n if file1 (source) is ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Update will try to update the target directory w.r.t source directory. Only files that are common to both directories will be updated, no new files or directories are created
"Update will try to update the target directory\n w.r.t source directory. Only files that are common\n to both directories will be updated, no new files\n or directories are created"
20
false
tkhyn/dirsync
update
13,925
LDU_FT/emory-libraries/eulxml/is_empty
LDU_FT
[ "<BEGIN>\n## `_serialize`", "Generate token strings which, when joined together, form a valid\n XPath serialization of the AST.\n<END>", "<BEGIN>\n## `download_schema`", "Download a schema from a specified URI and save it locally.", " :param uri: url where the schema should be downloaded\n :param p...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_empty API. 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 is_empty API. 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 True if the root node contains no child elements, no text, and no attributes other than **type**. Returns False if any are present.
"Returns True if the root node contains no child elements, no text,\n and no attributes other than **type**. Returns False if any are present."
109
false
emory-libraries/eulxml
is_empty
13,926
LDU_FT/pbrod/numdifftools/directionaldiff
LDU_FT
[ "<BEGIN>\n## `approx_fprime`", "Gradient of function, or Jacobian if function fun returns 1d array", " Parameters\n ----------\n x : array\n parameters at which the derivative is evaluated\n fun : function\n `fun(*((x,)+args), **kwargs)` returning either one value or 1d array\n epsi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the directionaldiff API. 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 directionaldiff API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
Return directional derivative of a function of n variables Parameters ---------- fun: callable analytical function to differentiate. x0: array vector location at which to differentiate fun. If x0 is an nxm array, then fun is assumed to be a function of n*m variables. vec: ar...
"Return directional derivative of a function of n variables\n\n Parameters\n ----------\n fun: callable\n analytical function to differentiate.\n x0: array\n vector location at which to differentiate fun. If x0 is an nxm array,\n then fun is assumed to be a function of n*m variables.\n ...
107
false
pbrod/numdifftools
directionaldiff
13,927
LDU_FT/limix/limix-core/getResiduals
LDU_FT
[ "<BEGIN>\n## `addFixedEffect`", "set sample and trait designs\n F: NxK sample design\n A: LxP sample design\n REML: REML for this term?\n index: index of which fixed effect to replace. If None, just append.\n<END>", "<BEGIN>\n## `removeFixedEffect`", "set sample and tr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the getResiduals API. 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 getResiduals API. 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...
regress out fixed effects and results residuals
"regress out fixed effects and results residuals"
61
false
limix/limix-core
getResiduals
13,928
LDU_FT/gtalarico/airtable-python-wrapper/match
LDU_FT
[ "<BEGIN>\n## `to_param_dict`", "Sorts to ensure Order is consistent for Testing\n<END>", "<BEGIN>\n## `_discover_params`", "Returns a dict where filter keyword is key, and class is value.\r\n To handle param alias (maxRecords or max_records), both versions are\r\n added.\n<END>", "<BEGIN>\n## ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the match API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the match API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
Returns first match found in :any:`get_all` >>> airtable.match('Name', 'John') {'fields': {'Name': 'John'} } Args: field_name (``str``): Name of field to match (column name). field_value (``str``): Value of field to match. Keyword Args: ma...
"Returns first match found in :any:`get_all`\r\n\r\n >>> airtable.match('Name', 'John')\r\n {'fields': {'Name': 'John'} }\r\n\r\n Args:\r\n field_name (``str``): Name of field to match (column name).\r\n field_value (``str``): Value of field to match.\r\n\r\n Keyword Ar...
90
false
gtalarico/airtable-python-wrapper
match
13,929
LDU_FT/src-d/modelforge/list_models
LDU_FT
[ "<BEGIN>\n## `initialize_registry`", "Initialize the registry and the index.", " :param args: :class:`argparse.Namespace` with \"backend\", \"args\", \"force\" and \"log_level\".\n :param backend: Backend which is responsible for working with model files.\n :param log: Logger supplied by supply_backend...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the list_models API. 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 list_models API. 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...
Output the list of known models in the registry. :param args: :class:`argparse.Namespace` with "username", "password", "remote_repo" and \ "log_level" :return: None
"Output the list of known models in the registry.\n\n :param args: :class:`argparse.Namespace` with \"username\", \"password\", \"remote_repo\" and \\\n \"log_level\"\n :return: None"
118
false
src-d/modelforge
list_models
13,930
LDU_FT/thiagopbueno/pyrddl/p_objects_list
LDU_FT
[ "<BEGIN>\n## `rename_next_state_fluent`", "Returns next state fluent canonical name.", " Args:\n name (str): The current state fluent name.", " Returns:\n str: The next state fluent name.\n<END>", "<BEGIN>\n## `rename_state_fluent`", "Returns current state fluent canonical name.", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the p_objects_list API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the p_objects_list API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
objects_list : objects_list objects_def | objects_def | empty
"objects_list : objects_list objects_def\n | objects_def\n | empty"
158
false
thiagopbueno/pyrddl
p_objects_list
13,931
LDU_FT/clinicedc/edc-notification/register
LDU_FT
[ "<BEGIN>\n## `notify`", "Overridden to only call `notify` if model matches.\n<END>", "<BEGIN>\n## `notification_on_post_create_historical_record`", "Checks and processes any notifications for this model.", " Processes if `label_lower` is in site_notifications.models.", " Note, this is the post_creat...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the register API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the register API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
Registers a Notification class unique by name.
"Registers a Notification class unique by name."
54
false
clinicedc/edc-notification
register
13,932
LDU_FT/xguse/table_enforcer/_dict_of_funcs
LDU_FT
[ "<BEGIN>\n## `minmax`", "Test that the data items fall within range: low <= x <= high.\n<END>", "<BEGIN>\n## `choice`", "Test that the data items are members of the set `choices`.\n<END>", "<BEGIN>\n## `bounded_length`", "Test that the length of the data items fall within range: low <= x <= high.", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _dict_of_funcs API. 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 _dict_of_funcs API. 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...
Return a pd.Series of functions with index derived from the function name.
"Return a pd.Series of functions with index derived from the function name."
42
false
xguse/table_enforcer
_dict_of_funcs
13,933
LDU_FT/lambdalisue/notify/send_email
LDU_FT
[ "<BEGIN>\n## `create_message`", "Create message object for sending email", " Parameters\n ----------\n from_addr : string\n An email address used for 'From' attribute\n to_addr : string\n An email address used for 'To' attribute\n subject : string\n An email subject string\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the send_email API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the send_email API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
Send an email (via TLS when username and password are specified) Parameters ---------- msg : object An instance of MIMEText. Create this with :func:`create_message` function. host : string A mail user agent host name (Default: localhost) port : int A mail user agent ...
"Send an email (via TLS when username and password are specified)\n\n Parameters\n ----------\n msg : object\n An instance of MIMEText. Create this with :func:`create_message`\n function.\n host : string\n A mail user agent host name (Default: localhost)\n port : int\n A mail ...
40
false
lambdalisue/notify
send_email
13,934
LDU_FT/dmort27/panphon/fts_match
LDU_FT
[ "<BEGIN>\n## `fts`", "Return features corresponding to segment as list of (value,\n feature) tuples", " Args:\n segment (unicode): segment for which features are to be returned as\n Unicode string", " Returns:\n list: None if `segment` c...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the fts_match API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the fts_match API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
Answer question "are `ft_mask`'s features a subset of ft_seg?" This is like `FeatureTable.match` except that it checks whether a segment is valid and returns None if it is not. Args: features (set): pattern defined as set of (value, feature) tuples segment (set): segmen...
"Answer question \"are `ft_mask`'s features a subset of ft_seg?\"\n\n This is like `FeatureTable.match` except that it checks whether a\n segment is valid and returns None if it is not.\n\n Args:\n features (set): pattern defined as set of (value, feature) tuples\n segment (se...
112
false
dmort27/panphon
fts_match
13,935
LDU_FT/bgyori/pykqml/append
LDU_FT
[ "<BEGIN>\n## `translate_argv`", "Enables conversion from system arguments.", " Parameters\n ----------\n raw_args : list\n Arguments taken raw from the system input.", " Returns\n -------\n kwargs : dict\n The input arguments formatted as a kwargs dict.\n To use as input...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the append API. 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 append API. 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 ...
Append an element to the end of the list. Parameters ---------- obj : KQMLObject or str If a string is passed, it is instantiated as a KQMLToken before being added to the list.
"Append an element to the end of the list.\n\n Parameters\n ----------\n obj : KQMLObject or str\n If a string is passed, it is instantiated as a\n KQMLToken before being added to the list."
30
false
bgyori/pykqml
append
13,936
LDU_FT/polysquare/polysquare-generic-file-linter/filter_nonspellcheckable_tokens
LDU_FT
[ "<BEGIN>\n## `create`", "Create a Dictionary at spellchecker_cache_path with technical words.\n<END>", "<BEGIN>\n## `_comment_type_from_line`", "Return the \"comment header\" (' * ', '# ', 'rem ', '// ', '/* ').", " This header goes before the content of a start of the\n line in a replacement.\n<END>"...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the filter_nonspellcheckable_tokens API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its co...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the filter_nonspellcheckable_tokens API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its co...
Return line with paths, urls and emails filtered out. Block out other strings of text matching :block_out_regexes: if passed in.
"Return line with paths, urls and emails filtered out.\n\n Block out other strings of text matching :block_out_regexes: if passed in."
143
false
polysquare/polysquare-generic-file-linter
filter_nonspellcheckable_tokens
13,937
LDU_FT/RI-imaging/nrefocus/fft_propagate_2d
LDU_FT
[ "<BEGIN>\n## `_get_pad_left_right`", "Compute left and right padding values.", " Here we use the convention that if the padding\n size is odd, we pad the odd part to the right\n and the even part to the left.", " Parameters\n ----------\n small : int\n Old size of original 1D array\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the fft_propagate_2d API. 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 fft_propagate_2d API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Propagate a 1D Fourier transformed field in 2D Parameters ---------- fftfield : 1d array Fourier transform of 1D Electric field component d : float Distance to be propagated in pixels (negative for backwards) nm : float Refractive index of medium res : float Wa...
"Propagate a 1D Fourier transformed field in 2D\n\n\n Parameters\n ----------\n fftfield : 1d array\n Fourier transform of 1D Electric field component\n d : float\n Distance to be propagated in pixels (negative for backwards)\n nm : float\n Refractive index of medium\n res : floa...
71
false
RI-imaging/nrefocus
fft_propagate_2d
13,938
LDU_FT/azavea/python-sld/normalize
LDU_FT
[ "<BEGIN>\n## `makeproperty`", "Make a property on an instance of an SLDNode. If cls is omitted, the\n property is assumed to be a text node, with no corresponding class\n object. If name is omitted, the property is assumed to be a complex\n node, with a corresponding class wrapper.", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the normalize API. 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 normalize API. 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...
Normalize this node and all rules contained within. The SLD model is modified in place.
"Normalize this node and all rules contained within. The SLD model is\n modified in place."
29
false
azavea/python-sld
normalize
13,939
LDU_FT/bbengfort/commis/create_parser
LDU_FT
[ "<BEGIN>\n## `create_parser`", "Creates the subparser for this particular command\n<END>", "<BEGIN>\n## `add_arguments`", "Definition and addition of all arguments.\n<END>", "<BEGIN>\n## `add_arguments`", "Add the label argument by default, no need to specify it in args.\n<END>", "<BEGIN>\n## `handle_de...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_parser API. 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 create_parser API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
Creates the subparser for this particular command
"Creates the subparser for this particular command"
14
false
bbengfort/commis
create_parser
13,940
LDU_FT/nosegae/NoseGAE/_init_user_stub
LDU_FT
[ "<BEGIN>\n## `_init_taskqueue_stub`", "Initializes the taskqueue stub using nosegae config magic\n<END>", "<BEGIN>\n## `_init_datastore_v3_stub`", "Initializes the datastore stub using nosegae config magic\n<END>", "<BEGIN>\n## `_init_user_stub`", "Initializes the user stub using nosegae config magic\n<EN...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _init_user_stub API. 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 _init_user_stub API. 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...
Initializes the user stub using nosegae config magic
"Initializes the user stub using nosegae config magic"
25
false
nosegae/NoseGAE
_init_user_stub
13,941
LDU_FT/fabric-bolt/fabric-bolt/form_valid
LDU_FT
[ "<BEGIN>\n## `form_valid`", "After the form is valid lets let people know\n<END>", "<BEGIN>\n## `form_valid`", "First call the parent's form valid then let the user know it worked.\n<END>", "<BEGIN>\n## `post`", "Create the SSH file & then return the normal get method...\n<END>", "<BEGIN>\n## `web_hooks...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the form_valid API. 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 form_valid API. 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...
Set the project on this configuration after it's valid
"Set the project on this configuration after it's valid"
65
false
fabric-bolt/fabric-bolt
form_valid
13,942
LDU_FT/BYU-PCCL/holodeck/reset
LDU_FT
[ "<BEGIN>\n## `malloc`", "Allocates a block of shared memory, and returns a numpy array whose data corresponds with that block.", " Args:\n key (str): The key to identify the block.\n shape (list of int): The shape of the numpy array to allocate.\n dtype (type): The numpy ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the reset API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the reset API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
Resets the environment, and returns the state. If it is a single agent environment, it returns that state for that agent. Otherwise, it returns a dict from agent name to state. Returns: tuple or dict: For single agent environment, returns the same as `step`. For mult...
"Resets the environment, and returns the state.\n If it is a single agent environment, it returns that state for that agent. Otherwise, it returns a dict from\n agent name to state.\n\n Returns:\n tuple or dict: For single agent environment, returns the same as `step`.\n F...
111
false
BYU-PCCL/holodeck
reset
13,943
LDU_FT/Azure/azure-storage-python/_convert_service_properties_to_xml
LDU_FT
[ "<BEGIN>\n## `_perform_request`", "Sends the request and return response. Catches HTTPError and hands it\n to error handler\n<END>", "<BEGIN>\n## `copy_file`", "source_file_url = self.service.make_file_url(\n remote_share_name,\n remote_directory_name,\n remote_file_nam...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _convert_service_properties_to_xml API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _convert_service_properties_to_xml API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its...
<?xml version="1.0" encoding="utf-8"?> <StorageServiceProperties> <Logging> <Version>version-number</Version> <Delete>true|false</Delete> <Read>true|false</Read> <Write>true|false</Write> <RetentionPolicy> <Enabled>true|false</Enabl...
"<?xml version=\"1.0\" encoding=\"utf-8\"?>\n <StorageServiceProperties>\n <Logging>\n <Version>version-number</Version>\n <Delete>true|false</Delete>\n <Read>true|false</Read>\n <Write>true|false</Write>\n <RetentionPolicy>\n <Enabled>true...
235
false
Azure/azure-storage-python
_convert_service_properties_to_xml
13,944
LDU_FT/gamechanger/schemer/is_url
LDU_FT
[ "<BEGIN>\n## `Mixed`", "Mixed type, used to indicate a field in a schema can be\n one of many types. Use as a last resort only.\n The Mixed type can be used directly as a class to indicate\n any type is permitted for a given field:\n `\"my_field\": {\"type\": Mixed}`\n It can also be instantiated w...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_url API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_url API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Validates that a fields value is a valid URL.
"Validates that a fields value is a valid URL."
48
false
gamechanger/schemer
is_url
13,945
LDU_FT/albert12132/templar/hash_blockquotes
LDU_FT
[ "<BEGIN>\n## `applies`", "Checks if this rule applies to the given src and dst paths, based on the src pattern and\n dst pattern given in the constructor.", " If src pattern was None, this rule will apply to any given src path (same for dst).\n<END>", "<BEGIN>\n## `link`", "Links the content f...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the hash_blockquotes API. 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 hash_blockquotes API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Hashes block quotes. Block quotes are defined to be lines that start with "> " (the space is not optional). All Markdown syntax in a blockquote is recursively converted, which allows (among other things) headers, codeblocks, and blockquotes to be used inside of blockquotes. The "> " is simply ...
"Hashes block quotes.\n\n Block quotes are defined to be lines that start with \"> \" (the\n space is not optional).\n\n All Markdown syntax in a blockquote is recursively converted,\n which allows (among other things) headers, codeblocks, and\n blockquotes to be used inside of blockquotes. The \"> \" is...
130
false
albert12132/templar
hash_blockquotes
13,946
LDU_FT/eng-tools/sfsimodels/ecp_dict_to_objects
LDU_FT
[ "<BEGIN>\n## `set_beam_prop`", "Specify the properties of the beams", " :param values:\n :param repeat: if 'up' then duplicate up the structure\n :return:\n<END>", "<BEGIN>\n## `set_column_prop`", "Specify the properties of the columns", " :param values:\n :param repeat:...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the ecp_dict_to_objects API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the ecp_dict_to_objects API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
Given an ecp dictionary, build a dictionary of sfsi objects :param ecp_dict: dict, engineering consistency project dictionary :param custom: dict, used to load custom objects, {model type: custom object} :param verbose: int, console output :return: dict
"Given an ecp dictionary, build a dictionary of sfsi objects\n\n :param ecp_dict: dict, engineering consistency project dictionary\n :param custom: dict, used to load custom objects, {model type: custom object}\n :param verbose: int, console output\n :return: dict"
126
false
eng-tools/sfsimodels
ecp_dict_to_objects
13,947
LDU_FT/twisted/mantissa/maybeUpdate
LDU_FT
[ "<BEGIN>\n## `createUser`", "Create a new, blank user account with the given name and domain and, if\n specified, with the given password.", " @type localpart: C{unicode}\n @param localpart: The local portion of the username. ie, the\n C{'alice'} in C{'alice@example.com'}.", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the maybeUpdate API. 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 maybeUpdate API. 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...
Check this cache entry and update it if any filesystem information has changed.
"Check this cache entry and update it if any filesystem information has\n changed."
1,120
true
twisted/mantissa
maybeUpdate
13,948
LDU_FT/lightning-viz/lightning-python/check_alpha
LDU_FT
[ "<BEGIN>\n## `enable_ipython`", "Enable plotting in the iPython notebook.", " Once enabled, all lightning plots will be automatically produced\n within the iPython notebook. They will also be available on\n your lightning server within the current session.\n<END>", "<BEGIN>\n## `disable_i...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the check_alpha API. 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 check_alpha API. 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...
Check and parse alpha specs as either a single [a] or a list of [a,a,a,...]
"Check and parse alpha specs as either a single [a] or a list of [a,a,a,...]"
55
false
lightning-viz/lightning-python
check_alpha
13,949
LDU_FT/stepank/pyws/create_application
LDU_FT
[ "<BEGIN>\n## `add_function`", "Adds the function to the list of registered functions.\n<END>", "<BEGIN>\n## `get_one`", "Returns a function if it is registered, the context is ignored.\n<END>", "<BEGIN>\n## `get_context_data_from_headers`", "Extracts context data from request headers according to specifie...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_application 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 create_application 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...
WSGI adapter. It creates a simple WSGI application, that can be used with any WSGI server. The arguments are: #. ``server`` is a pyws server object, #. ``root_url`` is an URL to which the server will be bound. An application created by the function transforms WSGI environment into a pyws request o...
"WSGI adapter. It creates a simple WSGI application, that can be used with\n any WSGI server. The arguments are:\n\n #. ``server`` is a pyws server object,\n #. ``root_url`` is an URL to which the server will be bound.\n\n An application created by the function transforms WSGI environment into a\n pyws r...
38
false
stepank/pyws
create_application
13,950
LDU_FT/tanghaibao/goatools/_get_taxids
LDU_FT
[ "<BEGIN>\n## `run`", "Compare two or more sets of GO IDs. Best done using sections.\n<END>", "<BEGIN>\n## `get_nts_sorted`", "Return a flat list of grouped and sorted GO terms.\n<END>", "<BEGIN>\n## `get_sorted_hdrgo2usrgos`", "Return GO IDs sorting using go2nt's namedtuple.\n<END>", "<BEGIN>\n## `plot_...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_taxids API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_taxids API. 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 user-specified taxids or taxids in self.taxid2asscs
"Return user-specified taxids or taxids in self.taxid2asscs"
996
false
tanghaibao/goatools
_get_taxids
13,951
LDU_FT/KeithSSmith/switcheo-python/get_pairs
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 get_pairs API. 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_pairs API. 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...
Function to fetch a list of trading pairs offered on the Switcheo decentralized exchange. Execution of this function is as follows:: get_pairs() # Fetch all pairs get_pairs(base="SWTH") # Fetch only SWTH base pairs get_pairs(show_details=True) # Fetch ...
"Function to fetch a list of trading pairs offered on the Switcheo decentralized exchange.\n Execution of this function is as follows::\n\n get_pairs() # Fetch all pairs\n get_pairs(base=\"SWTH\") # Fetch only SWTH base pairs\n get_pairs(show_details=True) ...
218
false
KeithSSmith/switcheo-python
get_pairs
13,952
LDU_FT/p3trus/slave/scan_temperature
LDU_FT
[ "<BEGIN>\n## `_typelist`", "Helper function converting all items of x to instances.\n<END>", "<BEGIN>\n## `write`", "Generates and sends a command message unit.", " :param transport: An object implementing the `.Transport` interface.\n It is used by the protocol to send the message.\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the scan_temperature API. 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 scan_temperature API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Performs a temperature scan. Measures until the target temperature is reached. :param measure: A callable called repeatedly until stability at target temperature is reached. :param temperature: The target temperature in kelvin. :param rate: The sweep rate in kelvin per minu...
"Performs a temperature scan.\n\n Measures until the target temperature is reached.\n\n :param measure: A callable called repeatedly until stability at target\n temperature is reached.\n :param temperature: The target temperature in kelvin.\n :param rate: The sweep rate in kelvin ...
189
false
p3trus/slave
scan_temperature
13,953
LDU_FT/MKLab-ITI/reveal-graph-embedding/iterative_stratification
LDU_FT
[ "<BEGIN>\n## `read_adjacency_matrix`", "Reads an edge list in csv format and returns the adjacency matrix in SciPy Sparse COOrdinate format.", " Inputs: - file_path: The path where the adjacency matrix is stored.\n - separator: The delimiter among values (e.g. \",\", \"\\t\", \" \")", " Out...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the iterative_stratification 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 iterative_stratification API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio...
Iterative data fold stratification/balancing for two folds. Based on: Sechidis, K., Tsoumakas, G., & Vlahavas, I. (2011). On the stratification of multi-label data. In Machine Learning and Knowledge Discovery in Databases (pp. 145-158). Springer Berlin Heidelberg. Inp...
"Iterative data fold stratification/balancing for two folds.\n\n Based on: Sechidis, K., Tsoumakas, G., & Vlahavas, I. (2011).\n On the stratification of multi-label data.\n In Machine Learning and Knowledge Discovery in Databases (pp. 145-158).\n Springer Berlin Heidelberg.\n\...
151
false
MKLab-ITI/reveal-graph-embedding
iterative_stratification
13,954
LDU_FT/LuqueDaniel/pybooru/post_update
LDU_FT
[ "<BEGIN>\n## `post_update`", "Update a specific post (Requires login).", " Parameters:\n post_id (int): The id number of the post to update.\n tag_string (str): A space delimited list of tags.\n rating (str): The rating for the post. Can be: safe, questionable,\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the post_update API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the post_update API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
Update a specific post (Requires login). Parameters: post_id (int): The id number of the post to update. tag_string (str): A space delimited list of tags. rating (str): The rating for the post. Can be: safe, questionable, or explicit. so...
"Update a specific post (Requires login).\n\n Parameters:\n post_id (int): The id number of the post to update.\n tag_string (str): A space delimited list of tags.\n rating (str): The rating for the post. Can be: safe, questionable,\n or explicit.\n ...
299
false
LuqueDaniel/pybooru
post_update
13,955
LDU_FT/Metatab/metapack/system_piped
LDU_FT
[ "<BEGIN>\n## `_load_resource`", "The CSV package has no reseources, so we just need to resolve the URLs to them. Usually, the\n CSV package is built from a file system ackage on a publically acessible server.\n<END>", "<BEGIN>\n## `set_s3_profile`", "Load the credentials for an s3 profile into envi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the system_piped API. 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 system_piped API. 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...
Call the given cmd in a subprocess, piping stdout/err Parameters ---------- cmd : str Command to execute (can not end in '&', as background processes are not supported. Should not be a command that expects input other than simple text.
"Call the given cmd in a subprocess, piping stdout/err\n\n Parameters\n ----------\n cmd : str\n Command to execute (can not end in '&', as background processes are\n not supported. Should not be a command that expects input\n other than simple text."
261
false
Metatab/metapack
system_piped
13,956
LDU_FT/smnorris/pgdata/distinct
LDU_FT
[ "<BEGIN>\n## `schemas`", "Get a listing of all non-system schemas (prefixed with 'pg_') that\n exist in the database.\n<END>", "<BEGIN>\n## `tables`", "Get a listing of all tables\n - if schema specified on connect, return unqualifed table names in\n that schema\n - in no s...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the distinct API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the distinct API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
Returns all rows of a table, but removes rows in with duplicate values in ``columns``. Interally this creates a `DISTINCT statement <http://www.w3schools.com/sql/sql_distinct.asp>`_. :: # returns only one row per year, ignoring the rest table.distinct('year') # works...
"Returns all rows of a table, but removes rows in with duplicate values in ``columns``.\n Interally this creates a `DISTINCT statement <http://www.w3schools.com/sql/sql_distinct.asp>`_.\n ::\n\n # returns only one row per year, ignoring the rest\n table.distinct('year')\n ...
50
false
smnorris/pgdata
distinct
13,957
LDU_FT/jazzband/django-axes/authenticate
LDU_FT
[ "<BEGIN>\n## `get_cool_off`", "Return the login cool off time interpreted from settings.AXES_COOLOFF_TIME.", " The return value is either None or timedelta.", " Notice that the settings.AXES_COOLOFF_TIME is either None, timedelta, or integer of hours,\n and this function offers a unified _timedelta o...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the authenticate API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the authenticate API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
Checks user lockout status and raise a PermissionDenied if user is not allowed to log in. This method interrupts the login flow and inserts error message directly to the ``response_context`` attribute that is supplied as a keyword argument. :keyword response_context: kwarg that will be have i...
"Checks user lockout status and raise a PermissionDenied if user is not allowed to log in.\n\n This method interrupts the login flow and inserts error message directly to the\n ``response_context`` attribute that is supplied as a keyword argument.\n\n :keyword response_context: kwarg that will be ...
94
false
jazzband/django-axes
authenticate
13,958
LDU_FT/AASHE/django-constant-contact/preview_email_marketing_campaign
LDU_FT
[ "<BEGIN>\n## `new_email_marketing_campaign`", "Create a Constant Contact email marketing campaign.\n Returns an EmailMarketingCampaign object.\n<END>", "<BEGIN>\n## `update_email_marketing_campaign`", "Update a Constant Contact email marketing campaign.\n Returns the updated EmailMarketingCampai...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the preview_email_marketing_campaign API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its c...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the preview_email_marketing_campaign API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its c...
Returns HTML and text previews of an EmailMarketingCampaign.
"Returns HTML and text previews of an EmailMarketingCampaign."
12
false
AASHE/django-constant-contact
preview_email_marketing_campaign
13,959
LDU_FT/eumis/pyviews/wrap_with_scope
LDU_FT
[ "<BEGIN>\n## `parse_expression`", "Returns tuple with expression type and expression body\n<END>", "<BEGIN>\n## `register_single`", "Generates resolver to return singleton value and adds it to global container\n<END>", "<BEGIN>\n## `wrap_with_scope`", "Wraps function with scope. If scope_name is None curr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the wrap_with_scope API. 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 wrap_with_scope API. 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...
Wraps function with scope. If scope_name is None current scope is used
"Wraps function with scope. If scope_name is None current scope is used"
34
false
eumis/pyviews
wrap_with_scope
13,960
LDU_FT/mgedmin/check-manifest/read_manifest
LDU_FT
[ "<BEGIN>\n## `run`", "Run a command [cmd, arg1, arg2, ...].", " Returns the output (stdout + stderr).", " Raises CommandFailed in cases of error.\n<END>", "<BEGIN>\n## `cd`", "Change the current working directory, temporarily.", " Use as a context manager: with cd(d): ...\n<END>", "<BEGIN>\n#...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the read_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 ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the read_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 ext...
Read existing configuration from MANIFEST.in. We use that to ignore anything the MANIFEST.in ignores.
"Read existing configuration from MANIFEST.in.\n\n We use that to ignore anything the MANIFEST.in ignores."
85
false
mgedmin/check-manifest
read_manifest
13,961
LDU_FT/dmwm/DBS/listAcquisitionEras
LDU_FT
[ "<BEGIN>\n## `inputChecks`", "This is a function to check all the input for GET APIs.\n<END>", "<BEGIN>\n## `validateStringInput`", "To check if a string has the required format. This is only used for POST APIs.\n<END>", "<BEGIN>\n## `execute`", "Lists all primary datasets if pattern is not provided.\n<EN...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the listAcquisitionEras 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 listAcquisitionEras 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...
API to list all Acquisition Eras in DBS. :param acquisition_era_name: Acquisition era name (Optional, wild cards allowed) :type acquisition_era_name: str :returns: List of dictionaries containing following keys (description, end_date, acquisition_era_name, create_by, creation_date and start_dat...
"API to list all Acquisition Eras in DBS.\n\n :param acquisition_era_name: Acquisition era name (Optional, wild cards allowed)\n :type acquisition_era_name: str\n :returns: List of dictionaries containing following keys (description, end_date, acquisition_era_name, create_by, creation_date and star...
352
false
dmwm/DBS
listAcquisitionEras
13,962
LDU_FT/PyFilesystem/pyfilesystem2/copy_structure
LDU_FT
[ "<BEGIN>\n## `install`", "Install an opener.", " Arguments:\n opener (`Opener`): an `Opener` instance, or a callable that\n returns an opener instance.", " Note:\n May be used as a class decorator. For example::\n registry = Registry()\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the copy_structure API. 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 copy_structure API. 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...
Copy directories (but not files) from ``src_fs`` to ``dst_fs``. Arguments: src_fs (FS or str): Source filesystem (instance or URL). dst_fs (FS or str): Destination filesystem (instance or URL). walker (~fs.walk.Walker, optional): A walker object that will be used to scan for fil...
"Copy directories (but not files) from ``src_fs`` to ``dst_fs``.\n\n Arguments:\n src_fs (FS or str): Source filesystem (instance or URL).\n dst_fs (FS or str): Destination filesystem (instance or URL).\n walker (~fs.walk.Walker, optional): A walker object that will be\n used to scan ...
320
false
PyFilesystem/pyfilesystem2
copy_structure
13,963
LDU_FT/infobloxopen/infoblox-netmri/show
LDU_FT
[ "<BEGIN>\n## `_make_request`", "Prepares the request, checks for authentication and retries in case of issues", " Args:\n url (str): URL of the request\n method (str): Any of \"get\", \"post\", \"delete\"\n data (any): Possible extra data to send with the request\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the show API. 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 show API. 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...
Query for a specific resource by ID Args: objtype (str): object type, e.g. 'device', 'interface' objid (int): object ID (DeviceID, etc.) Returns: A dict with that object Raises: requests.exceptions.HTTPError
"Query for a specific resource by ID\n\n Args:\n objtype (str): object type, e.g. 'device', 'interface'\n objid (int): object ID (DeviceID, etc.)\n Returns:\n A dict with that object\n Raises:\n requests.exceptions.HTTPError"
29
false
infobloxopen/infoblox-netmri
show
13,964
LDU_FT/sosy-lab/benchexec/is_turbo_boost_enabled
LDU_FT
[ "<BEGIN>\n## `_program_files_from_executable`", "Get a list of program files by expanding a list of path patterns\n and interpreting it as relative to the executable.\n This method can be used as helper for implementing the method program_files().\n Contrary to the default implementation of p...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_turbo_boost_enabled API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_turbo_boost_enabled API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
Check whether Turbo Boost (scaling CPU frequency beyond nominal frequency) is active on this system. @return: A bool, or None if Turbo Boost is not supported.
"Check whether Turbo Boost (scaling CPU frequency beyond nominal frequency)\n is active on this system.\n @return: A bool, or None if Turbo Boost is not supported."
406
false
sosy-lab/benchexec
is_turbo_boost_enabled
13,965
LDU_FT/JensRantil/rewind/construct_eventstore
LDU_FT
[ "<BEGIN>\n## `_zmq_socket_context`", "A ZeroMQ socket context that both constructs a socket and closes it.\n<END>", "<BEGIN>\n## `_get_with_fallback`", "Get a configuration value, using fallback for missing values.", " Parameters:\n config -- the configparser to try to extract the option value from....
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the construct_eventstore 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 construct_eventstore API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Construct the event store to write and write from/to. The event store is constructed from an optionally given configuration file and/or command line arguments. Command line arguments has higher presendence over configuration file attributes. If a defined event store is missing, `InMemoryEventStore` wi...
"Construct the event store to write and write from/to.\n\n The event store is constructed from an optionally given configuration file\n and/or command line arguments. Command line arguments has higher\n presendence over configuration file attributes.\n\n If a defined event store is missing, `InMemoryEventSt...
112
false
JensRantil/rewind
construct_eventstore
13,966
LDU_FT/Phylliade/ikpy/list_to_quat
LDU_FT
[ "<BEGIN>\n## `plot_basis`", "Plot le repère adapté à la taille du robot\n<END>", "<BEGIN>\n## `plot_target_trajectory`", "Ajoute la trajectoire (liste des targets) au plot\n<END>", "<BEGIN>\n## `symbolic_Rz_matrix`", "Matrice symbolique de rotation autour de l'axe Z\n<END>", "<BEGIN>\n## `rotation_matri...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the list_to_quat API. 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 list_to_quat API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
Convert a quaternion in the form of a list in geometry_msgs/Quaternion :param quatlist: [x, y, z, w] :return:
"Convert a quaternion in the form of a list in geometry_msgs/Quaternion\n :param quatlist: [x, y, z, w]\n :return:"
88
false
Phylliade/ikpy
list_to_quat
13,967
LDU_FT/linkedin/luminol/is_correlated
LDU_FT
[ "<BEGIN>\n## `_analyze_root_causes`", "Conduct root cause analysis.\n The first metric of the list is taken as the root cause right now.\n<END>", "<BEGIN>\n## `_load`", "Load time series into a TimeSeries object.\n :param timeseries: a TimeSeries, a dictionary or a path to a csv file(str).\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_correlated API. 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 is_correlated API. 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...
Compare with a threshold to determine whether two timeseries correlate to each other. :return: a CorrelationResult object if two time series correlate otherwise false.
"Compare with a threshold to determine whether two timeseries correlate to each other.\n :return: a CorrelationResult object if two time series correlate otherwise false."
95
false
linkedin/luminol
is_correlated
13,968
LDU_FT/Chilipp/model-organization/setup_logging
LDU_FT
[ "<BEGIN>\n## `dir_contains`", "Check if a file of directory is contained in another.", " Parameters\n ----------\n dirname: str\n The base directory that should contain `path`\n path: str\n The name of a directory or file that should be in `dirname`\n exists: bool\n If True, ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the setup_logging API. 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 setup_logging API. 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...
Setup logging configuration Parameters ---------- default_path: str Default path of the yaml logging configuration file. If None, it defaults to the 'logging.yaml' file in the config directory default_level: int Default: :data:`logging.INFO`. Default level if default_path does n...
"Setup logging configuration\n\n Parameters\n ----------\n default_path: str\n Default path of the yaml logging configuration file. If None, it\n defaults to the 'logging.yaml' file in the config directory\n default_level: int\n Default: :data:`logging.INFO`. Default level if default_pa...
161
false
Chilipp/model-organization
setup_logging
13,969
LDU_FT/rndusr/torf/key_exists_in_list_or_dict
LDU_FT
[ "<BEGIN>\n## `files`", "Yield relative file paths specified in :attr:`metainfo`", " Each paths starts with :attr:`name`.", " Note that the paths may not exist. See :attr:`filepaths` for existing\n files.\n<END>", "<BEGIN>\n## `filepaths`", "Yield absolute paths to existing files in :a...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the key_exists_in_list_or_dict 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 key_exists_in_list_or_dict API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclus...
True if `lst_or_dct[key]` does not raise an Exception
"True if `lst_or_dct[key]` does not raise an Exception"
89
false
rndusr/torf
key_exists_in_list_or_dict
13,970
LDU_FT/notanumber/xapian-haystack/_filter_exact
LDU_FT
[ "<BEGIN>\n## `_term_to_xapian_value`", "Converts a term to a serialized\n Xapian value based on the field_type.\n<END>", "<BEGIN>\n## `_from_xapian_value`", "Converts a serialized Xapian value\n to Python equivalent based on the field_type.", " Doesn't accept multivalued fields.\n<END>", "<BEGIN>...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _filter_exact API. 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 _filter_exact API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
Returns a query that matches exactly the un-stemmed term with positional order. Assumes term is not a list.
"Returns a query that matches exactly the un-stemmed term\n with positional order.\n\n Assumes term is not a list."
127
false
notanumber/xapian-haystack
_filter_exact
13,971
LDU_FT/GoogleCloudPlatform/google-cloud-datastore/add_property_orders
LDU_FT
[ "<BEGIN>\n## `get_default_connection`", "Returns the default datastore connection.", " Defaults endpoint to helper.get_project_endpoint_from_env() and\n credentials to helper.get_credentials_from_env().", " Use set_options to override defaults.\n<END>", "<BEGIN>\n## `get_all`", "Query for all Todo item...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_property_orders 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 add_property_orders 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...
Add ordering constraint for the given datastore.Query proto message. Args: query_proto: datastore.Query proto message. orders: list of propertype name string, default to ascending order and set descending if prefixed by '-'. Usage: >>> add_property_orders(query_proto, 'foo') # sort by foo asc ...
"Add ordering constraint for the given datastore.Query proto message.\n\n Args:\n query_proto: datastore.Query proto message.\n orders: list of propertype name string, default to ascending\n order and set descending if prefixed by '-'.\n\n Usage:\n >>> add_property_orders(query_proto, 'foo') # sort by fo...
94
false
GoogleCloudPlatform/google-cloud-datastore
add_property_orders
13,972