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/bintoro/overloading.py/get_signature
LDU_FT
[ "<BEGIN>\n## `overload`", "May be used as a shortcut for ``overloaded`` and ``overloads(f)``\n when the overloaded function `f` can be automatically identified.\n<END>", "<BEGIN>\n## `overloaded`", "Introduces a new overloaded function and registers its first implementation.\n<END>", "<BEGIN>\n## `regist...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_signature API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_signature API. 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...
Gathers information about the call signature of `func`.
"Gathers information about the call signature of `func`."
29
false
bintoro/overloading.py
get_signature
37,373
LDU_FT/eventable/vobject/change_tz
LDU_FT
[ "<BEGIN>\n## `toVName`", "Turn a Python name into an iCalendar style name,\n optionally uppercase and with characters stripped off.\n<END>", "<BEGIN>\n## `dquoteEscape`", "Return param, or \"param\" if ',' or ';' or ':' is in param.\n<END>", "<BEGIN>\n## `readComponents`", "Generate one Component at a ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the change_tz API. 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 change_tz API. 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...
Change the timezone of the specified component. Args: cal (Component): the component to change new_timezone (tzinfo): the timezone to change to default (tzinfo): a timezone to assume if the dtstart or dtend in cal doesn't have an existing timezone utc_only (bool): only ...
"Change the timezone of the specified component.\n\n Args:\n cal (Component): the component to change\n new_timezone (tzinfo): the timezone to change to\n default (tzinfo): a timezone to assume if the dtstart or dtend in cal \n doesn't have an existing timezone\n utc_only (bool...
138
false
eventable/vobject
change_tz
37,374
LDU_FT/jfilter/text-classification-keras/apply_encoding_options
LDU_FT
[ "<BEGIN>\n## `check_output_input`", "Run command with arguments and return its output as a byte string.", " If the exit code was non-zero it raises a CalledProcessError. The\n CalledProcessError object will have the return code in the returncode\n attribute and output in the output attribute.", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the apply_encoding_options API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the apply_encoding_options API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
Applies the given settings for subsequent calls to `encode_texts` and `decode_texts`. This allows you to play with different settings without having to re-run tokenization on the entire corpus. Args: min_token_count: The minimum token count (frequency) in order to include during encoding. A...
"Applies the given settings for subsequent calls to `encode_texts` and `decode_texts`. This allows you to\n play with different settings without having to re-run tokenization on the entire corpus.\n\n Args:\n min_token_count: The minimum token count (frequency) in order to include during encodi...
104
false
jfilter/text-classification-keras
apply_encoding_options
37,375
LDU_FT/MAVENSDC/cdflib/_write_var_data_sparse
LDU_FT
[ "<BEGIN>\n## `encode`", "Encodes the epoch(s) into UTC string(s).", " For CDF_EPOCH:\n The input should be either a float or list of floats\n (in numpy, a np.float64 or a np.ndarray of np.float64)\n Each epoch is encoded, by default to a ISO 8601 form:\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _write_var_data_sparse 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 _write_var_data_sparse API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
Writes a VVR and a VXR for this block of sparse data Parameters: f : file The open CDF file zVar : bool True if this is for a z variable var : int The variable number dataType : int The CDF data type...
"Writes a VVR and a VXR for this block of sparse data\n\n Parameters:\n f : file\n The open CDF file\n zVar : bool\n True if this is for a z variable\n var : int\n The variable number\n dataType : int\n The CD...
229
false
MAVENSDC/cdflib
_write_var_data_sparse
37,376
LDU_FT/the01/python-paps/unpack
LDU_FT
[ "<BEGIN>\n## `format_message_type`", "Get printable version for message type", " :param message_type: Message type\n :type message_type: int\n :return: Printable version\n :rtype: str\n<END>", "<BEGIN>\n## `format_data`", "Format bytes for printing", " :param data: Bytes\n :type data: No...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the unpack API. 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 unpack API. 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 ...
Unpack packed data into an instance :param data: Packed data :type data: str :return: Object instance and remaining data :rtype: (APPHeader, str)
"Unpack packed data into an instance\n\n :param data: Packed data\n :type data: str\n :return: Object instance and remaining data\n :rtype: (APPHeader, str)"
182
false
the01/python-paps
unpack
37,377
LDU_FT/jsommers/switchyard/load_from_file
LDU_FT
[ "<BEGIN>\n## `router_main`", "Main method for router; we stay in a loop in this method, receiving\n packets until the end of time.\n<END>", "<BEGIN>\n## `from_bytes`", "Takes a byte string as a parameter and returns a list of\n IPOption objects.\n<END>", "<BEGIN>\n## `to_bytes`", "Takes a li...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load_from_file API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load_from_file API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
Load a topology from filename and return it.
"Load a topology from filename and return it."
192
false
jsommers/switchyard
load_from_file
37,378
LDU_FT/divio/python-mautic/delete_actions
LDU_FT
[ "<BEGIN>\n## `send`", "Send email to the assigned lists", " :param obj_id: int\n :return: dict|str\n<END>", "<BEGIN>\n## `send_to_contact`", "Send email to a specific contact", " :param obj_id: int\n :param contact_id: int\n :return: dict|str\n<END>", "<BEGIN>\n## `get...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the delete_actions API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the delete_actions API. 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...
Remove actions from a form :param form_id: int :param action_ids: list|tuple :return: dict|str
"Remove actions from a form\n\n :param form_id: int\n :param action_ids: list|tuple\n :return: dict|str"
61
false
divio/python-mautic
delete_actions
37,379
LDU_FT/abe-winter/pg13-py/repl
LDU_FT
[ "<BEGIN>\n## `names_from_exp`", "Return a list of AttrX and NameX from the expression.\n<END>", "<BEGIN>\n## `classify_wherex`", "helper for wherex_to_rowlist. returns [SingleTableCond,...], [CartesianCond,...]\n<END>", "<BEGIN>\n## `table_to_rowlist`", "helper for wherex_to_rowlist. (table.Table, [exp, ....
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the repl API. 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 repl API. 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...
todo: replace this with real redis client
"todo: replace this with real redis client"
182
false
abe-winter/pg13-py
repl
37,380
LDU_FT/INM-6/hybridLFPy/compound_crossspec
LDU_FT
[ "<BEGIN>\n## `plot_signal_sum`", "on axes plot the signal contributions", " args:\n ::\n ax : matplotlib.axes.AxesSubplot object\n z : np.ndarray\n T : list, [tstart, tstop], which timeinterval\n ylims : list, set range of yaxis to scale with other plots\n fancy : bool, ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the compound_crossspec 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 compound_crossspec 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...
Calculate cross spectra of compound signals. a_data is a list of datasets (a_data = [data1,data2,...]). For each dataset in a_data, the compound signal is calculated and the crossspectra between these compound signals is computed. If pointProcess=True, power spectra are normalized by the length T o...
"Calculate cross spectra of compound signals.\n a_data is a list of datasets (a_data = [data1,data2,...]).\n For each dataset in a_data, the compound signal is calculated\n and the crossspectra between these compound signals is computed.\n \n If pointProcess=True, power spectra are normalized by the leng...
412
false
INM-6/hybridLFPy
compound_crossspec
37,381
LDU_FT/Yelp/kafka-utils/set
LDU_FT
[ "<BEGIN>\n## `get_assignment`", "Parse the given json plan in dict format.\n<END>", "<BEGIN>\n## `_send_consumer_aware_request`", "Send a list of requests to the consumer coordinator for the group\n specified using the supplied encode/decode functions. As the payloads\n that use consumer-aware r...
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 and returns new data for the specified node.
"Sets and returns new data for the specified node."
538
false
Yelp/kafka-utils
set
37,382
LDU_FT/gregmuellegger/django-superform/get_kwargs
LDU_FT
[ "<BEGIN>\n## `add_composite_field`", "Add a dynamic composite field to the already existing ones and\n initialize it appropriatly.\n<END>", "<BEGIN>\n## `get_composite_field_value`", "Return the form/formset instance for the given field name.\n<END>", "<BEGIN>\n## `full_clean`", "Clean the form, in...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_kwargs API. 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_kwargs API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
Return the keyword arguments that are used to instantiate the formset. The ``instance`` kwarg will be set to the value returned by :meth:`~django_superform.fields.ModelFormField.get_instance`. The ``empty_permitted`` kwarg will be set to the inverse of the ``required`` argument passed i...
"Return the keyword arguments that are used to instantiate the formset.\n\n The ``instance`` kwarg will be set to the value returned by\n :meth:`~django_superform.fields.ModelFormField.get_instance`. The\n ``empty_permitted`` kwarg will be set to the inverse of the\n ``required`` argument pa...
37
false
gregmuellegger/django-superform
get_kwargs
37,383
LDU_FT/davidhuser/dhis2.py/clean_obj
LDU_FT
[ "<BEGIN>\n## `_set_log_format`", "Set log format\n :param color: Log message is colored\n :param include_caller: At the end, put a [caller:line-of-code], e.g. [script:123]\n :return: string of log format\n<END>", "<BEGIN>\n## `setup_logger`", "Setup logzero logger. if logfile is specified, create add...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the clean_obj API. 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 clean_obj API. 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...
Recursively remove keys from list/dict/dict-of-lists/list-of-keys/nested ..., e.g. remove all sharing keys or remove all 'user' fields This should result in the same as if running in bash: `jq del(.. | .publicAccess?, .userGroupAccesses?)` :param obj: the dict to remove keys from :param remove: keys to...
"Recursively remove keys from list/dict/dict-of-lists/list-of-keys/nested ...,\n e.g. remove all sharing keys or remove all 'user' fields\n This should result in the same as if running in bash: `jq del(.. | .publicAccess?, .userGroupAccesses?)`\n :param obj: the dict to remove keys from\n :param remove: ke...
52
false
davidhuser/dhis2.py
clean_obj
37,384
LDU_FT/mgaitan/waliki/entry_point
LDU_FT
[ "<BEGIN>\n## `clean_meta`", "remove moinmoin metada from the top of the file\n<END>", "<BEGIN>\n## `entry_point`", "include an snippet at the bottom of a block, if it exists", " For example, if the plugin with slug 'attachments' is registered", " waliki/attachments_edit_content.html will be incl...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the entry_point API. 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 entry_point API. 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...
include an snippet at the bottom of a block, if it exists For example, if the plugin with slug 'attachments' is registered waliki/attachments_edit_content.html will be included with {% entry_point 'edit_content' %} which is declared at the bottom of the block 'content' in edit.html
"include an snippet at the bottom of a block, if it exists\n\n For example, if the plugin with slug 'attachments' is registered\n\n waliki/attachments_edit_content.html will be included with\n\n {% entry_point 'edit_content' %}\n\n which is declared at the bottom of the block 'content' in edit.html"
38
false
mgaitan/waliki
entry_point
37,385
LDU_FT/GibbsConsulting/django-plotly-dash/locate_item
LDU_FT
[ "<BEGIN>\n## `find_stateless_by_name`", "Find stateless app given its name", " First search the Django ORM, and if not found then look the app up in a local registry.\n If the app does not have an ORM entry then a StatelessApp model instance is created.\n<END>", "<BEGIN>\n## `as_dash_app`", "Return a ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the locate_item API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the locate_item API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
Locate a dash application, given either the slug of an instance or the name for a stateless app
"Locate a dash application, given either the\n slug of an instance or the name for a stateless app"
96
false
GibbsConsulting/django-plotly-dash
locate_item
37,386
LDU_FT/DreamLab/VmShepherd/initialize_openstack
LDU_FT
[ "<BEGIN>\n## `initialize_openstack`", "Initialize and refresh openstack connection\n<END>", "<BEGIN>\n## `initialize`", "Initialize static data like images and flavores and set it as object property\n<END>", "<BEGIN>\n## `create_vm`", "Create VM\n :arg preset_name: string\n :arg image: str...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the initialize_openstack 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 initialize_openstack API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Initialize and refresh openstack connection
"Initialize and refresh openstack connection"
47
false
DreamLab/VmShepherd
initialize_openstack
37,387
LDU_FT/pywbem/pywbem/methodcall
LDU_FT
[ "<BEGIN>\n## `_hash_item`", "Hash an item (CIM value, CIM object), by delegating to its hash function.", " The item may be `None`.\n<END>", "<BEGIN>\n## `_stacklevel_above_module`", "Return the stack level (with 1 = caller of this function) of the first\n caller that is not defined in the specified mo...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the methodcall API. 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 methodcall API. 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...
**Deprecated:** Low-level method used by the :meth:`~pywbem.WBEMConnection.InvokeMethod` method of this class. *Deprecated since pywbem 0.12.* Calling this function directly has been deprecated and will issue a :term:`DeprecationWarning`. Users should call :meth:`~pywbem.WBEMCo...
"**Deprecated:** Low-level method used by the\n :meth:`~pywbem.WBEMConnection.InvokeMethod` method of this class.\n\n *Deprecated since pywbem 0.12.*\n\n Calling this function directly has been deprecated and will issue a\n :term:`DeprecationWarning`.\n Users should call :meth:`~pywbe...
3,983
true
pywbem/pywbem
methodcall
37,388
LDU_FT/square/pylink/flash_file
LDU_FT
[ "<BEGIN>\n## `main`", "Prints the core's information.", " Args:\n jlink_serial (str): the J-Link serial number\n device (str): the target CPU", " Returns:\n Always returns ``0``.", " Raises:\n JLinkException: on error\n<END>", "<BEGIN>\n## `acquire`", "Attempts to acquire a ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the flash_file API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the flash_file API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
Flashes the target device. The given ``on_progress`` callback will be called as ``on_progress(action, progress_string, percentage)`` periodically as the data is written to flash. The action is one of ``Compare``, ``Erase``, ``Verify``, ``Flash``. Args: self (JLink): ...
"Flashes the target device.\n\n The given ``on_progress`` callback will be called as\n ``on_progress(action, progress_string, percentage)`` periodically as the\n data is written to flash. The action is one of ``Compare``, ``Erase``,\n ``Verify``, ``Flash``.\n\n Args:\n self ...
949
false
square/pylink
flash_file
37,389
LDU_FT/samuelcolvin/pydantic/copy
LDU_FT
[ "<BEGIN>\n## `validate_email`", "Brutally simple email address validation. Note unlike most email address validation\n * raw ip address (literal) domain parts are not allowed.\n * \"John Doe <local_part@domain.com>\" style \"pretty\" email addresses are processed\n * the local part check is extremely bas...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the copy API. 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 copy API. 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...
Duplicate a model, optionally choose which fields to include, exclude and change. :param include: fields to include in new model :param exclude: fields to exclude from new model, as with values this takes precedence over include :param update: values to change/add in the new model. Note: the da...
"Duplicate a model, optionally choose which fields to include, exclude and change.\n\n :param include: fields to include in new model\n :param exclude: fields to exclude from new model, as with values this takes precedence over include\n :param update: values to change/add in the new model. Note: t...
113
false
samuelcolvin/pydantic
copy
37,390
LDU_FT/mottosso/Qt.py/parse
LDU_FT
[ "<BEGIN>\n## `setup_ui`", "Load a Qt Designer .ui file and returns an instance of the user interface", " Args:\n uifile (str): Absolute path to .ui file\n base_instance (QWidget): The widget into which UI widgets are loaded", " Returns:\n QWidget: the base instance\n<END>", "<BEGI...
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...
Return blocks of code as list of dicts Arguments: fname (str): Relative name of caveats file
"Return blocks of code as list of dicts\n\n Arguments:\n fname (str): Relative name of caveats file"
64
false
mottosso/Qt.py
parse
37,391
LDU_FT/venthur/python-debianbts/_parse_string_el
LDU_FT
[ "<BEGIN>\n## `get_status`", "Returns a list of Bugreport objects.", " Given a list of bugnumbers this method returns a list of Bugreport\n objects.", " Parameters\n ----------\n nrs : int or list of ints\n the bugnumbers", " Returns\n -------\n bugs : list of Bugreport objects...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _parse_string_el API. 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 _parse_string_el API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
read a string element, maybe encoded in base64
"read a string element, maybe encoded in base64"
35
false
venthur/python-debianbts
_parse_string_el
37,392
LDU_FT/peerplays-network/python-peerplays/betting_market_rules_update
LDU_FT
[ "<BEGIN>\n## `listaccounts`", "List accounts (for the connected network)\n<END>", "<BEGIN>\n## `importaccount`", "Import an account using an account password\n<END>", "<BEGIN>\n## `eventgroups`", "[bookie] List event groups for a sport", " :param str sport: Sports id\n<END>", "<BEGIN>\n## `even...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the betting_market_rules_update 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 betting_market_rules_update API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclu...
Update betting market rules :param str rules_id: Id of the betting market rules to update :param list names: Internationalized names, e.g. ``[['de', 'Foo'], ['en', 'bar']]`` :param list descriptions: Internationalized descriptions, e.g. ``[['de', 'Foo...
"Update betting market rules\n\n :param str rules_id: Id of the betting market rules to update\n :param list names: Internationalized names, e.g. ``[['de', 'Foo'],\n ['en', 'bar']]``\n :param list descriptions: Internationalized descriptions, e.g.\n ``[['de...
124
false
peerplays-network/python-peerplays
betting_market_rules_update
37,393
LDU_FT/spacetelescope/pysynphot/ToPhotlam
LDU_FT
[ "<BEGIN>\n## `setUpClass`", "Always overridden by the child cases, but let's put some\n real values in here to test with\n<END>", "<BEGIN>\n## `extract_keywords`", "Helper function", " Parameters\n ----------\n icss : string\n comma-separated string", " Return...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the ToPhotlam API. 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 ToPhotlam API. 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...
Convert to ``photlam``. Since there is no real conversion necessary, this returns a copy of input flux (if array) or just the input (if scalar). An input array is copied to avoid modifying the input in subsequent **pysynphot** processing. Parameters ---------- w...
"Convert to ``photlam``.\n\n Since there is no real conversion necessary, this returns\n a copy of input flux (if array) or just the input (if scalar).\n An input array is copied to avoid modifying the input\n in subsequent **pysynphot** processing.\n\n Parameters\n ----------\...
600
false
spacetelescope/pysynphot
ToPhotlam
37,394
LDU_FT/antiboredom/videogrep/framerate
LDU_FT
[ "<BEGIN>\n## `parse_auto_sub`", "Parses webvtt and returns timestamps for words and lines\n Tested on automatically generated subtitles from YouTube\n<END>", "<BEGIN>\n## `framerate`", "setter for the framerate attribute\n :param framerate:\n :return:\n<END>", "<BEGIN>\n## `frames_to_tc`", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the framerate API. 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 framerate API. 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...
setter for the framerate attribute :param framerate: :return:
"setter for the framerate attribute\n :param framerate:\n :return:"
37
false
antiboredom/videogrep
framerate
37,395
LDU_FT/architv/soccer-cli/get_team_scores
LDU_FT
[ "<BEGIN>\n## `get_team_scores`", "Queries the API and gets the particular team scores\n<END>", "<BEGIN>\n## `get_standings`", "Queries the API and gets the standings for a particular league\n<END>", "<BEGIN>\n## `get_league_scores`", "Queries the API and fetches the scores for fixtures\n based upon...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_team_scores API. 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_team_scores API. 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...
Queries the API and gets the particular team scores
"Queries the API and gets the particular team scores"
50
false
architv/soccer-cli
get_team_scores
37,396
LDU_FT/niklasb/webkit-server/css
LDU_FT
[ "<BEGIN>\n## `xpath`", "Finds another node by XPath originating at the current node.\n<END>", "<BEGIN>\n## `css`", "Finds another node by a CSS selector relative to the current node.\n<END>", "<BEGIN>\n## `get_bool_attr`", "Returns the value of a boolean HTML attribute like `checked` or `disabled`\n<END>"...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the css API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the css API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
Finds another node by a CSS selector relative to the current node.
"Finds another node by a CSS selector relative to the current node."
30
false
niklasb/webkit-server
css
37,397
LDU_FT/inveniosoftware/invenio-formatter/get_text_length
LDU_FT
[ "<BEGIN>\n## `from_isodate`", "Convert an ISO formatted date into a Date object.", " :param value: The ISO formatted date.\n :param strict: If value is ``None``, then if strict is ``True`` it returns\n the Date object of today, otherwise it returns ``None``.\n (Default: ``False``)\n :retu...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_text_length API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_text_length API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
r"""Measure the size of string rendered with a TTF no-nomospaced fonts. :param \*args: List of strings to be measured. :returns: The length of the strings.
"r\"\"\"Measure the size of string rendered with a TTF no-nomospaced fonts.\n\n :param \\*args: List of strings to be measured.\n :returns: The length of the strings."
26
false
inveniosoftware/invenio-formatter
get_text_length
37,398
LDU_FT/honzamach/pydgets/list_settings
LDU_FT
[ "<BEGIN>\n## `terminal_size`", "Detect the current size of terminal window as a numer of rows and columns.\n<END>", "<BEGIN>\n## `list_settings`", "Get list of all appropriate settings and their default values.", " The returned list is then used in setup() and get_setup() methods to setup\n th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the list_settings API. 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 list_settings API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
Get list of all appropriate settings and their default values.
"Get list of all appropriate settings and their default values."
71
false
honzamach/pydgets
list_settings
37,399
LDU_FT/twidi/django-extended-choices/create_choice_attribute
LDU_FT
[ "<BEGIN>\n## `create_choice`", "Create an instance of a ``Choices`` object.", " Parameters\n ----------\n klass : type\n The class to use to recreate the object.\n choices : list(tuple)\n A list of choices as expected by the ``__init__`` method of ``klass``.\n subsets : list(tuple)\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_choice_attribute 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_choice_attribute API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion...
Create an instance of a subclass of ChoiceAttributeMixin for the given value. Parameters ---------- creator_type : type ``ChoiceAttributeMixin`` or a subclass, from which we'll call the ``get_class_for_value`` class-method. value : ? The value for which we want to create an inst...
"Create an instance of a subclass of ChoiceAttributeMixin for the given value.\n\n Parameters\n ----------\n creator_type : type\n ``ChoiceAttributeMixin`` or a subclass, from which we'll call the ``get_class_for_value``\n class-method.\n value : ?\n The value for which we want to creat...
59
false
twidi/django-extended-choices
create_choice_attribute
37,400
LDU_FT/bryanwweber/thermohw/process
LDU_FT
[ "<BEGIN>\n## `process`", "Process the homework problems in ``prefix`` folder.", " Arguments\n ---------\n hw_num\n The number of this homework\n problems_to_do, optional\n A list of the problems to be processed\n prefix, optional\n A `~pathlib.Path` to this homework assignmen...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the process API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the process API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
Process the exams in the exam_num folder for the time.
"Process the exams in the exam_num folder for the time."
33
false
bryanwweber/thermohw
process
37,401
LDU_FT/oisinmulvihill/stomper/connected
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 connected API. 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 connected API. 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...
Once I've connected I want to subscribe to my the message queue.
"Once I've connected I want to subscribe to my the message queue."
88
false
oisinmulvihill/stomper
connected
37,402
LDU_FT/mcocdawc/chemcoord/get_zmat
LDU_FT
[ "<BEGIN>\n## `_check_construction_table`", "Checks if a construction table uses valid references.\n Raises an exception (UndefinedCoordinateSystem) otherwise.\n<END>", "<BEGIN>\n## `_get_frag_constr_table`", "Create a construction table for a Zmatrix.", " A construction table is basically a Zm...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_zmat API. 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 get_zmat API. 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...
Transform to internal coordinates. Transforming to internal coordinates involves basically three steps: 1. Define an order of how to build and define for each atom the used reference atoms. 2. Check for problematic local linearity. In this algorithm an angle with ``170...
"Transform to internal coordinates.\n\n Transforming to internal coordinates involves basically three\n steps:\n\n 1. Define an order of how to build and define for each atom\n the used reference atoms.\n\n 2. Check for problematic local linearity. In this algorithm an\n angle ...
503
false
mcocdawc/chemcoord
get_zmat
37,403
LDU_FT/NuGrid/NuGridPy/plot
LDU_FT
[ "<BEGIN>\n## `_obsolete_plot_iso_abund_marco`", "Interface to plot average over mass_range.", " Parameters\n ----------\n directory : string\n Location of h5 file to plot. Needed for plot_tools.\n name_h5_file : string\n Name of h5 file. Needed for plot_tools.\n mass_range : list\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the plot API. 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 plot API. 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...
Simple function that plots atriy as a function of atrix This method will automatically find and plot the requested data. Parameters ---------- atrix : string The name of the attribute you want on the x axis. atriy : string The name of the attribute you w...
"Simple function that plots atriy as a function of atrix\n\n This method will automatically find and plot the requested data.\n\n Parameters\n ----------\n atrix : string\n The name of the attribute you want on the x axis.\n atriy : string\n The name of the attri...
713
false
NuGrid/NuGridPy
plot
37,404
LDU_FT/sarugaku/vistir/get_stream_handle
LDU_FT
[ "<BEGIN>\n## `is_bytes`", "Check if a string is a bytes instance", " :param Union[str, bytes] string: A string that may be string or bytes like\n :return: Whether the provided string is a bytes type or not\n :rtype: bool\n<END>", "<BEGIN>\n## `fs_encode`", "Encode a filesystem path to the proper fi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_stream_handle API. 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_stream_handle API. 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 OS appropriate handle for the corresponding output stream. :param str stream: The the stream to get the handle for :return: A handle to the appropriate stream, either a ctypes buffer or **sys.stdout** or **sys.stderr**.
"Get the OS appropriate handle for the corresponding output stream.\n\n :param str stream: The the stream to get the handle for\n :return: A handle to the appropriate stream, either a ctypes buffer\n or **sys.stdout** or **sys.stderr**."
54
false
sarugaku/vistir
get_stream_handle
37,405
LDU_FT/apacha/OMR-Datasets/draw_onto_canvas
LDU_FT
[ "<BEGIN>\n## `move_images`", "Moves png-files one directory up from path/image/*.png -> path/*.png\n<END>", "<BEGIN>\n## `create_images`", "Creates a visual representation of the Homus Dataset by parsing all text-files and the symbols as specified\n by the parameters by drawing lines that connect the p...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the draw_onto_canvas API. 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 draw_onto_canvas API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Draws the symbol onto a canvas with a fixed size :param bounding_boxes: The dictionary into which the bounding-boxes will be added of each generated image :param export_path: The path, where the symbols should be created on disk :param stroke_thickness: :param margin: :param des...
"Draws the symbol onto a canvas with a fixed size\n\n :param bounding_boxes: The dictionary into which the bounding-boxes will be added of each generated image\n :param export_path: The path, where the symbols should be created on disk\n :param stroke_thickness:\n :param margin:\n :pa...
53
false
apacha/OMR-Datasets
draw_onto_canvas
37,406
LDU_FT/jhorman/pledge/check
LDU_FT
[ "<BEGIN>\n## `pre`", "Add a precondition check to the annotated method. The condition\n is passed the arguments from the annotated method. It does not\n need to accept all of the methods parameters. The condition\n is inspected to figure out which parameters to pass.\n<END>", "<BEGIN>\n## `post`", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the check API. 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 check API. 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...
Wraps the function with a decorator that runs all of the pre/post conditions.
"Wraps the function with a decorator that runs all of the\n pre/post conditions."
17
false
jhorman/pledge
check
37,407
LDU_FT/shaunduncan/nosqlite/_eq
LDU_FT
[ "<BEGIN>\n## `_eq`", "Returns True if the value of a document field is equal to a given value\n<END>", "<BEGIN>\n## `_gt`", "Returns True if the value of a document field is greater than a given value\n<END>", "<BEGIN>\n## `_lt`", "Returns True if the value of a document field is less than a given value\n...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _eq API. 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 _eq API. 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...
Returns True if the value of a document field is equal to a given value
"Returns True if the value of a document field is equal to a given value"
53
false
shaunduncan/nosqlite
_eq
37,408
LDU_FT/google/python-gflags/_CleanupUnregisteredFlagFromModuleDicts
LDU_FT
[ "<BEGIN>\n## `GetRealPath`", "Given an executable filename, find in the PATH or find absolute path.\n Args:\n filename An executable filename (string)\n Returns:\n Absolute version of filename.\n None if filename could not be found locally, absolutely, or in PATH\n<END>", "<BEGIN>\n## `Run`", "Run...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _CleanupUnregisteredFlagFromModuleDicts API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicate...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _CleanupUnregisteredFlagFromModuleDicts API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicate...
Cleanup unregistered flags from all module -> [flags] dictionaries. If flag_obj is registered under either its long name or short name, it won't be removed from the dictionaries. Args: flag_obj: A flag object.
"Cleanup unregistered flags from all module -> [flags] dictionaries.\n\n If flag_obj is registered under either its long name or short name, it\n won't be removed from the dictionaries.\n\n Args:\n flag_obj: A flag object."
243
false
google/python-gflags
_CleanupUnregisteredFlagFromModuleDicts
37,409
LDU_FT/humilis/humilis-lambdautils/unpack_kinesis_event
LDU_FT
[ "<BEGIN>\n## `unpack_kinesis_event`", "Extracts events (a list of dicts) from a Kinesis event.\n<END>", "<BEGIN>\n## `send_to_delivery_stream`", "Sends a list of events to a Firehose delivery stream.\n<END>", "<BEGIN>\n## `_secrets_table_name`", "Name of the secrets table associated to a humilis deploymen...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the unpack_kinesis_event 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 unpack_kinesis_event API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Extracts events (a list of dicts) from a Kinesis event.
"Extracts events (a list of dicts) from a Kinesis event."
40
false
humilis/humilis-lambdautils
unpack_kinesis_event
37,410
LDU_FT/celiao/rtsimple/movie_lists
LDU_FT
[ "<BEGIN>\n## `search`", "Get movies that match the search query string from the API.", " Args:\n q (optional): plain text search query; remember to URI encode\n page_limit (optional): number of search results to show per page, \n default=30\n pag...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the movie_lists API. 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 movie_lists API. 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...
Gets the movie lists available from the API. Returns: A dict respresentation of the JSON returned from the API.
"Gets the movie lists available from the API.\n\n Returns:\n A dict respresentation of the JSON returned from the API."
51
false
celiao/rtsimple
movie_lists
37,411
LDU_FT/AlecAivazis/graphql-over-kafka/get_model_string
LDU_FT
[ "<BEGIN>\n## `roll_call_handler`", "This action handler responds to the \"roll call\" emitted by the api\n gateway when it is brought up with the normal summary produced by\n the service.\n<END>", "<BEGIN>\n## `flexible_api_handler`", "This query handler builds the dynamic picture of availible s...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_model_string API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_model_string API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
This function returns the conventional action designator for a given model.
"This function returns the conventional action designator for a given model."
145
false
AlecAivazis/graphql-over-kafka
get_model_string
37,412
LDU_FT/Bystroushaak/pyDHTMLParser/isNonPairTag
LDU_FT
[ "<BEGIN>\n## `_raw_split`", "Parse HTML from text into array filled with tags end text.", " Source code is little bit unintutive, because it is state machine parser.", " For better understanding, look at http://bit.ly/1rXRcJj", " Example::", " >>> dhtmlparser._raw_split('<html><tag params=...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the isNonPairTag API. 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 isNonPairTag API. 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...
True if element is listed in nonpair tag table (``br`` for example) or if it ends with ``/>`` (``<hr />`` for example). You can also change state from pair to nonpair if you use this as setter. Args: isnonpair (bool, default None): If set, internal nonpair state is ...
"True if element is listed in nonpair tag table (``br`` for example) or\n if it ends with ``/>`` (``<hr />`` for example).\n\n You can also change state from pair to nonpair if you use this as\n setter.\n\n Args:\n isnonpair (bool, default None): If set, internal nonpair state is\...
147
false
Bystroushaak/pyDHTMLParser
isNonPairTag
37,413
LDU_FT/rocky/python-xdis/_get_const_info
LDU_FT
[ "<BEGIN>\n## `disco`", "diassembles and deparses a given code block 'co'\n<END>", "<BEGIN>\n## `disco_loop`", "Disassembles a queue of code objects. If we discover\n another code object which will be found in co_consts, we add\n the new code to the list. Note that the order of code discovery\n is in ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_const_info API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_const_info API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
Helper to get optional details about const references Returns the dereferenced constant and its repr if the constant list is defined. Otherwise returns the constant index and its repr().
"Helper to get optional details about const references\n\n Returns the dereferenced constant and its repr if the constant\n list is defined.\n Otherwise returns the constant index and its repr()."
133
false
rocky/python-xdis
_get_const_info
37,414
LDU_FT/ml4ai/delphi/match_input_fmt
LDU_FT
[ "<BEGIN>\n## `all_subs`", "given a list of tuples specifying the bounds of an array, all_subs()\n returns a list of all the tuples of subscripts for that array.\n<END>", "<BEGIN>\n## `idx2subs`", "Given a list idx_list of index values for each dimension of an array, \n idx2subs() returns a list of...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the match_input_fmt API. 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 match_input_fmt API. 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 a list of Fortran format specifiers, e.g., ['I5', '2X', 'F4.1'], this function constructs a list of tuples for matching an input string against those format specifiers.
"Given a list of Fortran format specifiers, e.g., ['I5', '2X', 'F4.1'],\n this function constructs a list of tuples for matching an input\n string against those format specifiers."
336
false
ml4ai/delphi
match_input_fmt
37,415
LDU_FT/mrstephenneal/dirutility/explore_path_filter
LDU_FT
[ "<BEGIN>\n## `connect`", "Connect and login to an FTP server and return ftplib.FTP object.\n<END>", "<BEGIN>\n## `get`", "Download a remote file on the fto sever to a local directory.", " :param remote: File path of remote source file\n :param local: Directory of local destination directory\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the explore_path_filter API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the explore_path_filter API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
Explore path to discover unsearched directories and save filepaths :param task_num: Processor ID :param dirpath: Tuple (base directory, path), path information pulled from unsearched Queue :return: Directories to add to unsearched Queue
"Explore path to discover unsearched directories and save filepaths\n :param task_num: Processor ID\n :param dirpath: Tuple (base directory, path), path information pulled from unsearched Queue\n :return: Directories to add to unsearched Queue"
92
false
mrstephenneal/dirutility
explore_path_filter
37,416
LDU_FT/EasyPost/pystalk/put_job
LDU_FT
[ "<BEGIN>\n## `from_uri`", "Construct a synchronous Beanstalk Client from a URI.", " The URI may be of the form beanstalk://host:port or beanstalkd://host:port", " IPv6 literals must be wrapped in brackets as per RFC 2732.\n<END>", "<BEGIN>\n## `_re_establish_use_watch`", "Call after a close/...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the put_job API. 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 put_job API. 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...
Insert a new job into whatever queue is currently USEd :param data: Job body :type data: Text (either str which will be encoded as utf-8, or bytes which are already utf-8 :param pri: Priority for the job :type pri: int :param delay: Delay in seconds before the job should be plac...
"Insert a new job into whatever queue is currently USEd\n\n :param data: Job body\n :type data: Text (either str which will be encoded as utf-8, or bytes which are already utf-8\n :param pri: Priority for the job\n :type pri: int\n :param delay: Delay in seconds before the job should ...
85
false
EasyPost/pystalk
put_job
37,417
LDU_FT/Equitable/trump/sorted_feed_cols
LDU_FT
[ "<BEGIN>\n## `create`", "Create, or get if exists, a Symbol.\r", " Parameters\r\n ----------\r\n name : str\r\n A symbol's name is a primary key, used across\r\n the Trump ORM.\r\n description : str, optional\r\n An arbitrary string, used to store use...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the sorted_feed_cols API. 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 sorted_feed_cols API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
takes a dataframe's columns that would be of the form: ['feed003', 'failsafe_feed999', 'override_feed000', 'feed001', 'feed002'] and returns: ['override_feed000', 'feed001', 'feed002', 'feed003', 'failsafe_feed999']
"takes a dataframe's columns that would be of the form:\n ['feed003', 'failsafe_feed999', 'override_feed000', 'feed001', 'feed002']\n and returns:\n ['override_feed000', 'feed001', 'feed002', 'feed003', 'failsafe_feed999']"
177
false
Equitable/trump
sorted_feed_cols
37,418
LDU_FT/empymod/empymod/check_bipole
LDU_FT
[ "<BEGIN>\n## `check_ab`", "r\"\"\"Check source-receiver configuration.", " This check-function is called from one of the modelling routines in\n :mod:`model`. Consult these modelling routines for a detailed description\n of the input parameters.", " Parameters\n ----------\n ab : int\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the check_bipole API. 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 check_bipole API. 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...
r"""Check di-/bipole parameters. This check-function is called from one of the modelling routines in :mod:`model`. Consult these modelling routines for a detailed description of the input parameters. Parameters ---------- inp : list of floats or arrays Coordinates of inp (m): ...
"r\"\"\"Check di-/bipole parameters.\n\n This check-function is called from one of the modelling routines in\n :mod:`model`. Consult these modelling routines for a detailed description\n of the input parameters.\n\n Parameters\n ----------\n inp : list of floats or arrays\n Coordinates of inp ...
570
false
empymod/empymod
check_bipole
37,419
LDU_FT/tjguk/winshell/structured_storage
LDU_FT
[ "<BEGIN>\n## `indented`", "Take a multiline text and indent it as a block\n<END>", "<BEGIN>\n## `dumped`", "Put curly brackets round an indented text\n<END>", "<BEGIN>\n## `copy_file`", "Perform a shell-based file copy. Copying in\n this way allows the possibility of undo, auto-renaming,\n and showi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the structured_storage 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 structured_storage 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...
Pick out info from MS documents with embedded structured storage(typically MS Word docs etc.) Returns a dictionary of information found
"Pick out info from MS documents with embedded\n structured storage(typically MS Word docs etc.)\n\n Returns a dictionary of information found"
25
false
tjguk/winshell
structured_storage
37,420
LDU_FT/tanghaibao/goatools/calc_pvalue
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 calc_pvalue API. 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 calc_pvalue API. 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...
pvalues are calculated in derived classes.
"pvalues are calculated in derived classes."
996
false
tanghaibao/goatools
calc_pvalue
37,421
LDU_FT/epfl-lts2/pygsp/is_connected
LDU_FT
[ "<BEGIN>\n## `compute_avg_adj_deg`", "r\"\"\"\n Compute the average adjacency degree for each node.", " The average adjacency degree is the average of the degrees of a node and\n its neighbors.", " Parameters\n ----------\n G: Graph\n Graph on which the statistic is extracted\n<END>",...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_connected API. 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 is_connected API. 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...
r"""Check if the graph is connected (cached). A graph is connected if and only if there exists a (directed) path between any two vertices. Returns ------- connected : bool True if the graph is connected, False otherwise. Notes ----- For und...
"r\"\"\"Check if the graph is connected (cached).\n\n A graph is connected if and only if there exists a (directed) path\n between any two vertices.\n\n Returns\n -------\n connected : bool\n True if the graph is connected, False otherwise.\n\n Notes\n -----\n...
617
false
epfl-lts2/pygsp
is_connected
37,422
LDU_FT/qntm/greenery/canintersect
LDU_FT
[ "<BEGIN>\n## `null`", "An FSM accepting nothing (not even the empty string). This is\n\t\tdemonstrates that this is possible, and is also extremely useful\n\t\tin some situations\n<END>", "<BEGIN>\n## `parallel`", "Crawl several FSMs in parallel, mapping the states of a larger meta-FSM.\n\t\tTo determine whet...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the canintersect API. 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 canintersect API. 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...
Intersection is not well-defined for all pairs of multipliers. For example: {2,3} & {3,4} = {3} {2,} & {1,7} = {2,7} {2} & {5} = ERROR
"Intersection is not well-defined for all pairs of multipliers.\n\t\t\tFor example:\n\t\t\t\t{2,3} & {3,4} = {3}\n\t\t\t\t{2,} & {1,7} = {2,7}\n\t\t\t\t{2} & {5} = ERROR"
63
false
qntm/greenery
canintersect
37,423
LDU_FT/KeplerGO/K2fov/colRowIsOnFgsPixel
LDU_FT
[ "<BEGIN>\n## `angSepVincenty`", "Vincenty formula for distances on a sphere\n<END>", "<BEGIN>\n## `parse_file`", "Parse a comma-separated file with columns \"ra,dec,magnitude\".\n<END>", "<BEGIN>\n## `K2onSilicon`", "Checks whether targets are on silicon during a given campaign.", " This function wil...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the colRowIsOnFgsPixel 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 colRowIsOnFgsPixel 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...
Is col row on a science pixel? #See Kepler Flight Segment User's Manual (SP0039-702) \S 5.4 (p88) Inputs: col, row (floats or ints) padding If padding <0, pixel must be on silicon and this many pixels away from the edge of the CCD to return True Returns: ...
"Is col row on a science pixel?\n\n #See Kepler Flight Segment User's Manual (SP0039-702) \\S 5.4 (p88)\n\n Inputs:\n col, row (floats or ints)\n padding If padding <0, pixel must be on silicon and this many\n pixels away from the edge of the CCD to return True\n\n ...
185
false
KeplerGO/K2fov
colRowIsOnFgsPixel
37,424
LDU_FT/kpdyer/regex2dfa/_AddDelta
LDU_FT
[ "<BEGIN>\n## `MakeRanges`", "Turn a list like [1,2,3,7,8,9] into a range list [[1,3], [7,9]]\n<END>", "<BEGIN>\n## `PrintRanges`", "Print the ranges as an array of type named name.\n<END>", "<BEGIN>\n## `PrintGroup`", "Print the data structures for the group of codes.\n Return a UGroup literal for the gr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _AddDelta API. 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 _AddDelta API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
Return a + delta, handling EvenOdd and OddEven specially.
"Return a + delta, handling EvenOdd and OddEven specially."
163
false
kpdyer/regex2dfa
_AddDelta
37,425
LDU_FT/ShenggaoZhu/midict/_key_to_index
LDU_FT
[ "<BEGIN>\n## `cvt_iter`", "Convert an iterator/generator to a tuple so that it can be iterated again.", " E.g., convert zip in PY3.\n<END>", "<BEGIN>\n## `convert_dict`", "recursively convert a normal Mapping `d` and it's values to a specified type\n (defaults to AttrDict)\n<END>", "<BEGIN>\n## `_ke...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _key_to_index API. 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 _key_to_index API. 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...
convert ``key`` of various types to int or list of int
"convert ``key`` of various types to int or list of int"
66
false
ShenggaoZhu/midict
_key_to_index
37,426
LDU_FT/neuropsychology/NeuroKit.py/find_creation_date
LDU_FT
[ "<BEGIN>\n## `complexity`", "Computes several chaos/complexity indices of a signal (including entropy, fractal dimensions, Hurst and Lyapunov exponent etc.).", " Parameters\n ----------\n signal : list or array\n List or array of values.\n sampling_rate : int\n Sampling rate (samples/s...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_creation_date API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_creation_date API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
Try to get the date that a file was created, falling back to when it was last modified if that's not possible. Parameters ---------- path : str File's path. Returns ---------- creation_date : str Time of file creation. Example ---------- >>> import neurokit as nk ...
"Try to get the date that a file was created, falling back to when it was last modified if that's not possible.\n\n Parameters\n ----------\n path : str\n File's path.\n\n Returns\n ----------\n creation_date : str\n Time of file creation.\n\n\n Example\n ----------\n >>> import ...
778
false
neuropsychology/NeuroKit.py
find_creation_date
37,427
LDU_FT/semiversus/python-broqer/unsubscribe
LDU_FT
[ "<BEGIN>\n## `build_sink`", "Decorator to wrap a function to return a Sink subscriber.", " :param function: function to be wrapped\n :param unpack: value from emits will be unpacked (*value)\n<END>", "<BEGIN>\n## `build_map`", "Decorator to wrap a function to return a Map operator.", " :param fun...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the unsubscribe API. 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 unsubscribe API. 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...
Unsubscribe the given subscriber :param subscriber: subscriber to unsubscribe :raises SubscriptionError: if subscriber is not subscribed (anymore)
"Unsubscribe the given subscriber\n\n :param subscriber: subscriber to unsubscribe\n :raises SubscriptionError: if subscriber is not subscribed (anymore)"
65
false
semiversus/python-broqer
unsubscribe
37,428
LDU_FT/Chilipp/docrep/save_docstring
LDU_FT
[ "<BEGIN>\n## `safe_modulo`", "Safe version of the modulo operation (%) of strings", " Parameters\n ----------\n s: str\n string to apply the modulo operation with\n meta: dict or tuple\n meta informations to insert (usually via ``s % meta``)\n checked: {'KEY', 'VALUE'}, optional\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the save_docstring API. 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 save_docstring API. 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...
Descriptor method to save a docstring from a function Like the :meth:`get_sectionsf` method this method serves as a descriptor for functions but saves the entire docstring
"Descriptor method to save a docstring from a function\n\n Like the :meth:`get_sectionsf` method this method serves as a\n descriptor for functions but saves the entire docstring"
136
false
Chilipp/docrep
save_docstring
37,429
LDU_FT/inspirehep/inspire-schemas/build_pubnote
LDU_FT
[ "<BEGIN>\n## `filter_empty_parameters`", "Decorator that is filtering empty parameters.", " :param func: function that you want wrapping\n :type func: function\n<END>", "<BEGIN>\n## `author_id_normalize_and_schema`", "Detect and normalize an author UID schema.", " Args:\n uid (string): a U...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the build_pubnote API. 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 build_pubnote API. 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...
Build pubnote string from parts (reverse of split_pubnote).
"Build pubnote string from parts (reverse of split_pubnote)."
290
false
inspirehep/inspire-schemas
build_pubnote
37,430
LDU_FT/emirozer/bowshock/getjp2header
LDU_FT
[ "<BEGIN>\n## `search_target_obj`", "Query for a specific target:", " http://asterank.com/api/skymorph/search?<params>\n target\tTarget object (lookup in MPC).\n<END>", "<BEGIN>\n## `search_orbit`", "Query based on orbital elements:", " http://asterank.com/api/skymorph/search_orbit?<params>\n e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the getjp2header API. 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 getjp2header API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
GET /api/v1/getJP2Header/ Get the XML header embedded in a JPEG2000 image. Includes the FITS header as well as a section of Helioviewer-specific metadata. Request Parameters: Parameter Required Type Example Description id Required number 7654321 Unique JP2 image identifier. callback Optional str...
"GET /api/v1/getJP2Header/\n\n\n Get the XML header embedded in a JPEG2000 image. Includes the FITS header as well as a section of Helioviewer-specific metadata.\n\n Request Parameters:\n\n Parameter\tRequired\tType\tExample\tDescription\n id\tRequired\tnumber\t7654321\tUnique JP2 image identifier.\n cal...
90
false
emirozer/bowshock
getjp2header
37,431
LDU_FT/ArangoDB-Community/pyArango/isEdgeCollection
LDU_FT
[ "<BEGIN>\n## `_create`", "Creates an index of any type according to postData\n<END>", "<BEGIN>\n## `createVertex`", "adds a vertex to the graph and returns it\n<END>", "<BEGIN>\n## `deleteVertex`", "deletes a vertex from the graph as well as al linked edges\n<END>", "<BEGIN>\n## `link`", "A shorthand ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the isEdgeCollection API. 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 isEdgeCollection API. 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 true or false wether 'name' is the name of an edge collection.
"return true or false wether 'name' is the name of an edge collection."
105
false
ArangoDB-Community/pyArango
isEdgeCollection
37,432
LDU_FT/sdispater/cachy/put
LDU_FT
[ "<BEGIN>\n## `tag_id`", "Get the unique tag identifier for a given tag.", " :param name: The tag\n :type name: str", " :rtype: str\n<END>", "<BEGIN>\n## `reset_tag`", "Reset the tag and return the new tag identifier.", " :param name: The tag\n :type name: str", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the put API. 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 put API. 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...
Store an item in the cache for a given number of minutes. :param key: The cache key :type key: str :param value: The cache value :type value: mixed :param minutes: The lifetime in minutes of the cached value :type minutes: int
"Store an item in the cache for a given number of minutes.\n\n :param key: The cache key\n :type key: str\n\n :param value: The cache value\n :type value: mixed\n\n :param minutes: The lifetime in minutes of the cached value\n :type minutes: int"
206
false
sdispater/cachy
put
37,433
LDU_FT/inspirehep/refextract/extract_references_from_fulltext
LDU_FT
[ "<BEGIN>\n## `process_reference_line`", "After the phase of identifying and tagging citation instances\n in a reference line, this function is called to go through the\n line and the collected information about the recognised citations,\n and to transform the line into a string of MARC XML in wh...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the extract_references_from_fulltext 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 extract_references_from_fulltext API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its c...
Locate and extract the reference section from a fulltext document. Return the extracted reference section as a list of strings, whereby each string in the list is considered to be a single reference line. E.g. a string could be something like: '[19] Wilson, A. Unpublished (1986). @p...
"Locate and extract the reference section from a fulltext document.\n Return the extracted reference section as a list of strings, whereby each\n string in the list is considered to be a single reference line.\n E.g. a string could be something like:\n '[19] Wilson, A. Unpublished (1986).\n ...
301
false
inspirehep/refextract
extract_references_from_fulltext
37,434
LDU_FT/blue-yonder/tsfresh/sum_of_reoccurring_data_points
LDU_FT
[ "<BEGIN>\n## `_function_with_partly_reduce`", "Small helper function to call a function (map_function)\n on a list of data chunks (chunk_list) and convert the results into\n a flattened list.", " This function is used to send chunks of data with a size larger than 1 to\n the workers in parallel and ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the sum_of_reoccurring_data_points API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its con...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the sum_of_reoccurring_data_points API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its con...
Returns the sum of all data points, that are present in the time series more than once. :param x: the time series to calculate the feature of :type x: numpy.ndarray :return: the value of this feature :return type: float
"Returns the sum of all data points, that are present in the time series\n more than once.\n\n :param x: the time series to calculate the feature of\n :type x: numpy.ndarray\n :return: the value of this feature\n :return type: float"
615
false
blue-yonder/tsfresh
sum_of_reoccurring_data_points
37,435
LDU_FT/ssato/python-anyconfig/_dumps
LDU_FT
[ "<BEGIN>\n## `_load_plugins_itr`", ".. seealso:: the doc of :func:`load_plugins`\n<END>", "<BEGIN>\n## `select_by_key`", ":param items: A list of tuples of keys and values, [([key], val)]\n :return: A list of tuples of key and values, [(key, [val])]", " >>> select_by_key([([\"a\", \"aaa\"], 1), ([\"b\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _dumps API. 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 _dumps API. 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 ...
:param cnf: Configuration data to dump :param kwargs: optional keyword parameters to be sanitized :: dict :return: String representation of 'cnf' object in INI format
":param cnf: Configuration data to dump\n :param kwargs: optional keyword parameters to be sanitized :: dict\n\n :return: String representation of 'cnf' object in INI format"
534
false
ssato/python-anyconfig
_dumps
37,436
LDU_FT/coursera-dl/coursera-dl/is_course_complete
LDU_FT
[ "<BEGIN>\n## `parse_args`", "Parse the arguments/options passed to the program on the command line.\n<END>", "<BEGIN>\n## `random_string`", "Return a pseudo-random string of specified length.\n<END>", "<BEGIN>\n## `clean_filename`", "Sanitize a string to be used as a filename.", " If minimal_change i...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_course_complete 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 is_course_complete 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...
Determine is the course is likely to have been terminated or not. We return True if the timestamp given by last_update is 30 days or older than today's date. Otherwise, we return True. The intended use case for this is to detect if a given courses has not seen any update in the last 30 days or more. ...
"Determine is the course is likely to have been terminated or not.\n\n We return True if the timestamp given by last_update is 30 days or older\n than today's date. Otherwise, we return True.\n\n The intended use case for this is to detect if a given courses has not\n seen any update in the last 30 days or...
246
false
coursera-dl/coursera-dl
is_course_complete
37,437
LDU_FT/jedie/DragonPy/iter_duration
LDU_FT
[ "<BEGIN>\n## `create_environment`", "Creates a new environment in ``home_dir``.", " If ``site_packages`` is true, then the global ``site-packages/``\n directory will be on the path.", " If ``clear`` is true (default False) then the environment will\n first be cleared.\n<END>", "<BEGIN>\n## `path...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the iter_duration API. 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 iter_duration API. 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...
yield the duration of two frames in a row.
"yield the duration of two frames in a row."
223
false
jedie/DragonPy
iter_duration
37,438
LDU_FT/swevm/scaleio-py/create_minimal_scaleio_cluster
LDU_FT
[ "<BEGIN>\n## `get`", "Returns a `list` of all the `System` objects to the cluster. Updates every time - no caching.\n :return: a `list` of all the `System` objects known to the cluster.\n :rtype: list\n<END>", "<BEGIN>\n## `set_sds_name`", "Set name for SDS\n :param name: Name of SDS\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_minimal_scaleio_cluster API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its con...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_minimal_scaleio_cluster API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its con...
Using IM this method create a 3-node ScaleIO cluster with 2xMDM, 1xTB, 3x SDS (using /dev/sdb), 3x SDC
"Using IM this method create a 3-node ScaleIO cluster with 2xMDM, 1xTB, 3x SDS (using /dev/sdb), 3x SDC"
113
false
swevm/scaleio-py
create_minimal_scaleio_cluster
37,439
LDU_FT/Cog-Creators/Red-Lavalink/exception_message
LDU_FT
[ "<BEGIN>\n## `wait_until_ready`", "Waits for the underlying node to become ready.", " If no_raise is set, returns false when a timeout occurs instead of propogating TimeoutError.\n A timeout of None means to wait indefinitely.\n<END>", "<BEGIN>\n## `connect`", "Connects to the voice channel as...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the exception_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 exception_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...
On Lavalink V3, if there was an exception during a load or get tracks call this property will be populated with the error message. If there was no error this property will be ``None``.
"On Lavalink V3, if there was an exception during a load or get tracks call\n this property will be populated with the error message.\n If there was no error this property will be ``None``."
103
false
Cog-Creators/Red-Lavalink
exception_message
37,440
LDU_FT/JIC-CSB/jicimagelib/already_converted
LDU_FT
[ "<BEGIN>\n## `transformation`", "Function decorator to turn another function into a transformation.\n<END>", "<BEGIN>\n## `smooth_gaussian`", "Returns Gaussian smoothed image.", " :param image: numpy array or :class:`jicimagelib.image.Image`\n :param sigma: standard deviation\n :returns: :class:`ji...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the already_converted API. 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 already_converted API. 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 true if the file already has a manifest file in the backend. :param fpath: potential path to the manifest file :returns: bool
"Return true if the file already has a manifest file in the backend.\n \n :param fpath: potential path to the manifest file\n :returns: bool"
91
false
JIC-CSB/jicimagelib
already_converted
37,441
LDU_FT/tompollard/tableone/_create_cont_table
LDU_FT
[ "<BEGIN>\n## `_generate_remark_str`", "Generate a series of remarks that the user should consider\n when interpreting the summary statistics.\n<END>", "<BEGIN>\n## `_detect_categorical_columns`", "Detect categorical columns if they are not specified.", " Parameters\n ----------\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _create_cont_table 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_cont_table 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...
Create tableone for continuous data. Returns ---------- table : pandas DataFrame A table summarising the continuous variables.
"Create tableone for continuous data.\n\n Returns\n ----------\n table : pandas DataFrame\n A table summarising the continuous variables."
49
false
tompollard/tableone
_create_cont_table
37,442
LDU_FT/gwastro/pycbc-glue/update
LDU_FT
[ "<BEGIN>\n## `component_offsetvectors`", "Given an iterable of offset vectors, return the shortest list of\n\tthe unique n-instrument offset vectors from which all the vectors\n\tin the input iterable can be constructed. This can be used to\n\tdetermine the minimal set of n-instrument coincs required to\n\tconst...
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 ...
Redraw the progress bar, optionally changing the value and text and return the (possibly new) value. For I/O performance, the progress bar might not be written to the terminal if the text does not change and the value changes by too little. Use .show() to force a redraw.
"Redraw the progress bar, optionally changing the value and text\n and return the (possibly new) value. For I/O performance, the\n progress bar might not be written to the terminal if the text does\n not change and the value changes by too little. Use .show() to\n force a redraw."
1,048
true
gwastro/pycbc-glue
update
37,443
LDU_FT/rfk/threading2/affinity
LDU_FT
[ "<BEGIN>\n## `process_affinity`", "Get or set the CPU affinity set for the current process.", " This will affect all future threads spawned by this process. It is\n implementation-defined whether it will also affect previously-spawned\n threads.\n<END>", "<BEGIN>\n## `acquire`", "Attempt to acquir...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the affinity API. 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 affinity API. 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...
Set the affinity for all threads in this group. If setting affinity fails on any thread, the affinity of all threads is restored to its previous value.
"Set the affinity for all threads in this group.\n\n If setting affinity fails on any thread, the affinity of all threads\n is restored to its previous value."
24
false
rfk/threading2
affinity
37,444
LDU_FT/twosigma/marbles/assertDateTimesFrequencyEqual
LDU_FT
[ "<BEGIN>\n## `get_stack_info`", "Capture locals, module name, filename, and line number from the\n stacktrace to provide the source of the assertion error and\n formatted note.\n<END>", "<BEGIN>\n## `assertBetween`", "Fail if ``obj`` is not between ``lower`` and ``upper``.", " If ``strict=True`...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the assertDateTimesFrequencyEqual 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 assertDateTimesFrequencyEqual API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conc...
Fail if any elements in ``sequence`` aren't separated by the expected ``fequency``. Parameters ---------- sequence : iterable frequency : timedelta msg : str If not provided, the :mod:`marbles.mixins` or :mod:`unittest` standard message will be us...
"Fail if any elements in ``sequence`` aren't separated by\n the expected ``fequency``.\n\n Parameters\n ----------\n sequence : iterable\n frequency : timedelta\n msg : str\n If not provided, the :mod:`marbles.mixins` or\n :mod:`unittest` standard message ...
199
false
twosigma/marbles
assertDateTimesFrequencyEqual
37,445
LDU_FT/major/supernova/check_for_executable
LDU_FT
[ "<BEGIN>\n## `get_user_password`", "Allows the user to print the credential for a particular keyring entry\n to the screen\n<END>", "<BEGIN>\n## `pull_env_credential`", "Dissects a keyring credential lookup string from the supernova config file\n and returns the username/password combo\n<END>", "<BEGI...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the check_for_executable 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 check_for_executable API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
It's possible that a user might set their custom executable via an environment variable. If we detect one, we should add it to supernova's arguments ONLY IF an executable wasn't set on the command line. The command line executable must take priority.
"It's possible that a user might set their custom executable via an\n environment variable. If we detect one, we should add it to supernova's\n arguments ONLY IF an executable wasn't set on the command line. The\n command line executable must take priority."
66
false
major/supernova
check_for_executable
37,446
LDU_FT/Autodesk/cryptorito/polite_string
LDU_FT
[ "<BEGIN>\n## `polite_string`", "Returns a \"proper\" string that should work in both Py3/Py2\n<END>", "<BEGIN>\n## `not_a_string`", "It's probably not a string, in the sense\n that Python2/3 get confused about these things\n<END>", "<BEGIN>\n## `actually_flatten`", "Flatten iterables\n This is super...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the polite_string API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the polite_string API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
Returns a "proper" string that should work in both Py3/Py2
"Returns a \"proper\" string that should work in both Py3/Py2"
36
false
Autodesk/cryptorito
polite_string
37,447
LDU_FT/jorahn/icy/json2elem
LDU_FT
[ "<BEGIN>\n## `ae`", "Computes the absolute error.", " This function computes the absolute error between two numbers,\n or for element between a pair of lists or numpy arrays.", " Parameters\n ----------\n actual : int, float, list of numbers, numpy array\n The ground truth value\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the json2elem API. 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 json2elem API. 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...
Convert a JSON string into an Element. Whatever Element implementation we could import will be used by default; if you want to use something else, pass the Element class as the factory parameter.
"Convert a JSON string into an Element.\n\n Whatever Element implementation we could import will be used by\n default; if you want to use something else, pass the Element class\n as the factory parameter."
86
false
jorahn/icy
json2elem
37,448
LDU_FT/ofek/bit/get_signatures_from_script
LDU_FT
[ "<BEGIN>\n## `currency_to_satoshi`", "Converts a given amount of currency to the equivalent number of\n satoshi. The amount can be either an int, float, or string as long as\n it is a valid input to :py:class:`decimal.Decimal`.", " :param amount: The quantity of currency.\n :param currency: One of t...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_signatures_from_script 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 get_signatures_from_script API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclus...
Returns a list of signatures retrieved from the provided (partially) signed multisig scriptSig. :param script: The partially-signed multisig scriptSig. :type script: ``bytes`` :returns: A list of retrieved signature from the provided scriptSig. :rtype: A ``list`` of ``bytes`` signatures
"Returns a list of signatures retrieved from the provided (partially)\n signed multisig scriptSig.\n\n :param script: The partially-signed multisig scriptSig.\n :type script: ``bytes``\n :returns: A list of retrieved signature from the provided scriptSig.\n :rtype: A ``list`` of ``bytes`` signatures"
71
false
ofek/bit
get_signatures_from_script
37,449
LDU_FT/sternoru/goscalecms/_store_post
LDU_FT
[ "<BEGIN>\n## `dict`", "Returns dictionary of post fields and attributes\n<END>", "<BEGIN>\n## `get_posts`", "This method returns list of Posts for this Data Source starting at a given offset and not more than limit\n It will call content-specific methods:\n _format() to format output from t...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _store_post API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _store_post API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
This method formats entry returned by _get_data() and puts to DB create textDesc, title, and MIME
"This method formats entry returned by _get_data() and puts to DB\n create textDesc, title, and MIME"
54
false
sternoru/goscalecms
_store_post
37,450
LDU_FT/mlenzen/collections-extended/set
LDU_FT
[ "<BEGIN>\n## `get`", "Return value with given key or index.", "\t\tIf no value is found, return d (None by default).\n<END>", "<BEGIN>\n## `pop`", "Remove and return value with given key or index (last item by default).", "\t\tIf key is not found, returns d if given,\n\t\totherwise raises KeyError or Inde...
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...
Set the range from start to stop to value.
"Set the range from start to stop to value."
104
false
mlenzen/collections-extended
set
37,451
LDU_FT/mulkieran/justbases/_conditional_toward_zero
LDU_FT
[ "<BEGIN>\n## `xform`", "Get a number as a string.", " :param number: a number\n :type number: list of int\n :param int base: the base in which this number is being represented\n :raises BasesValueError: if config is unsuitable for number\n<END>", "<BEGIN>\n## `_strip_trailing_zeros...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _conditional_toward_zero 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 _conditional_toward_zero API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio...
Whether to round toward zero. :param method: rounding method :type method: element of RoundingMethods.METHODS() :param int sign: -1, 0, or 1 as appropriate Complexity: O(1)
"Whether to round toward zero.\n\n :param method: rounding method\n :type method: element of RoundingMethods.METHODS()\n :param int sign: -1, 0, or 1 as appropriate\n\n Complexity: O(1)"
127
false
mulkieran/justbases
_conditional_toward_zero
37,452
LDU_FT/thomasbiddle/Kippt-for-Python/mark_read
LDU_FT
[ "<BEGIN>\n## `mark_read`", "Mark notifications as read.", " CURRENT UNSUPPORTED:\n https://github.com/kippt/api-documentation/blob/master/endpoints/notifications/POST_notifications.md\n<END>", "<BEGIN>\n## `update`", "Updates a Clip.", " Parameters:\n - args Dictionary of other...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the mark_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 extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the mark_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 extract...
Mark notifications as read. CURRENT UNSUPPORTED: https://github.com/kippt/api-documentation/blob/master/endpoints/notifications/POST_notifications.md
"Mark notifications as read.\n\n CURRENT UNSUPPORTED:\n https://github.com/kippt/api-documentation/blob/master/endpoints/notifications/POST_notifications.md"
16
false
thomasbiddle/Kippt-for-Python
mark_read
37,453
LDU_FT/google/google-visualization-python/ToResponse
LDU_FT
[ "<BEGIN>\n## `CoerceValue`", "Coerces a single value into the type expected for its column.", " Internal helper method.", " Args:\n value: The value which should be converted\n value_type: One of \"string\", \"number\", \"boolean\", \"date\", \"datetime\" or\n \"timeofday\".",...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the ToResponse API. 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 ToResponse API. 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...
Writes the right response according to the request string passed in tqx. This method parses the tqx request string (format of which is defined in the documentation for implementing a data source of Google Visualization), and returns the right response according to the request. It parses out the "out" p...
"Writes the right response according to the request string passed in tqx.\n\n This method parses the tqx request string (format of which is defined in\n the documentation for implementing a data source of Google Visualization),\n and returns the right response according to the request.\n It parses out the \...
87
false
google/google-visualization-python
ToResponse
37,454
LDU_FT/JukeboxPipeline/jukebox-core/run
LDU_FT
[ "<BEGIN>\n## `restrictable`", "Decorator for :class:`Reftrack` methods.\n A decorated method will check if its restriction with :meth:`Reftrack.is_restricted`\n and raises a :class:`RestrictionError` if it is restricted.", " :param m: The :class:`Reftrack` method to wrap\n :type m: :class:`Reftrack`...
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...
Start the configeditor :returns: None :rtype: None :raises: None
"Start the configeditor\n\n :returns: None\n :rtype: None\n :raises: None"
1,529
true
JukeboxPipeline/jukebox-core
run
37,455
LDU_FT/ryanpetrello/cleaver/conversion_rate
LDU_FT
[ "<BEGIN>\n## `all_experiments`", "Retrieve every available experiment.", " Returns a list of ``cleaver.experiment.Experiment``s\n<END>", "<BEGIN>\n## `get_experiment`", "Retrieve an experiment by its name and variants (assuming it exists).", " :param name a unique string name for the experim...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the conversion_rate API. 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 conversion_rate API. 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...
The percentage of participants that have converted for this variant. Returns a > 0 float representing a percentage rate.
"The percentage of participants that have converted for this variant.\n\n Returns a > 0 float representing a percentage rate."
70
false
ryanpetrello/cleaver
conversion_rate
37,456
LDU_FT/jaseg/python-mpv/on_key_press
LDU_FT
[ "<BEGIN>\n## `_mpv_coax_proptype`", "Intelligently coax the given python value into something that can be understood as a proptype property.\n<END>", "<BEGIN>\n## `_make_node_str_list`", "Take a list of python objects and make a MPV string node array from it.", " As an example, the python list ``l = [ \"...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the on_key_press API. 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 on_key_press API. 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...
Function decorator to register a simplified key binding. The callback is called whenever the key given is *pressed*. To unregister the callback function, you can call its ``unregister_mpv_key_bindings`` attribute:: player = mpv.MPV() @player.on_key_press('Q') def bi...
"Function decorator to register a simplified key binding. The callback is called whenever the key given is\n *pressed*.\n\n To unregister the callback function, you can call its ``unregister_mpv_key_bindings`` attribute::\n\n player = mpv.MPV()\n @player.on_key_press('Q')\n ...
66
false
jaseg/python-mpv
on_key_press
37,457
LDU_FT/google/dotty/normalize
LDU_FT
[ "<BEGIN>\n## `generate_chunks`", "Yield 'chunk_size' items from 'data' at a time.\n<END>", "<BEGIN>\n## `reduce`", "Repeatedly call fold and merge on data and then finalize.", " Arguments:\n data: Input for the fold function.\n reducer: The IReducer to use.\n chunk_size: How many ite...
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...
Pass through n-ary expressions, and eliminate empty branches. Variadic and binary expressions recursively visit all their children. If all children are eliminated then the parent expression is also eliminated: (& [removed] [removed]) => [removed] If only one child is left, it is promoted to repl...
"Pass through n-ary expressions, and eliminate empty branches.\n\n Variadic and binary expressions recursively visit all their children.\n\n If all children are eliminated then the parent expression is also\n eliminated:\n\n (& [removed] [removed]) => [removed]\n\n If only one child is left, it is promot...
284
false
google/dotty
normalize
37,458
LDU_FT/aiogram/aiogram/answer_callback_query
LDU_FT
[ "<BEGIN>\n## `execute_filter`", "Helper for executing filter", " :param filter_:\n :param args:\n :return:\n<END>", "<BEGIN>\n## `check_filters`", "Check list of filters", " :param filters:\n :param args:\n :return:\n<END>", "<BEGIN>\n## `validate`", "Validate and parse config.", "...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the answer_callback_query 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 answer_callback_query API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Use this method to send answers to callback queries sent from inline keyboards. The answer will be displayed to the user as a notification at the top of the chat screen or as an alert. Alternatively, the user can be redirected to the specified Game URL. For this option to work, you must first c...
"Use this method to send answers to callback queries sent from inline keyboards.\n The answer will be displayed to the user as a notification at the top of the chat screen or as an alert.\n\n Alternatively, the user can be redirected to the specified Game URL.\n For this option to work, you must fi...
1,040
true
aiogram/aiogram
answer_callback_query
37,459
LDU_FT/idlesign/django-sitemessage/get_alias
LDU_FT
[ "<BEGIN>\n## `_build_message`", "Constructs a MIME message from message and dispatch models.\n<END>", "<BEGIN>\n## `schedule_email`", "Schedules an email message for delivery.", " :param dict, str message: str or dict: use str for simple text email;\n dict - to compile email from a template (defau...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_alias API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_alias API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
Returns messenger alias. :return: str :rtype: str
"Returns messenger alias.\n\n :return: str\n :rtype: str"
137
false
idlesign/django-sitemessage
get_alias
37,460
LDU_FT/ajdavis/GreenletProfiler/_save_as_CALLGRIND
LDU_FT
[ "<BEGIN>\n## `convert2pstats`", "Converts the internal stat type of yappi(which is returned by a call to YFuncStats.get())\n as pstats object.\n<END>", "<BEGIN>\n## `set_clock_type`", "Sets the internal clock type for timing. Profiler shall not have any previous stats.\n Otherwise an exception is thrown...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _save_as_CALLGRIND 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 _save_as_CALLGRIND 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...
Writes all the function stats in a callgrind-style format to the given file. (stdout by default)
"Writes all the function stats in a callgrind-style format to the given\n file. (stdout by default)"
16
false
ajdavis/GreenletProfiler
_save_as_CALLGRIND
37,461
LDU_FT/mathiasertl/xmpp-backends/message_user
LDU_FT
[ "<BEGIN>\n## `rpc`", "Generic helper function to call an RPC method.\n<END>", "<BEGIN>\n## `message_user`", "Currently use send_message_chat and discard subject, because headline messages are not\n stored by mod_offline.\n<END>", "<BEGIN>\n## `module`", "The module specified by the ``library`` attr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the message_user API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the message_user API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
Currently use send_message_chat and discard subject, because headline messages are not stored by mod_offline.
"Currently use send_message_chat and discard subject, because headline messages are not stored by\n mod_offline."
63
false
mathiasertl/xmpp-backends
message_user
37,462
LDU_FT/EventRegistry/event-registry-python/extractArticleInfo
LDU_FT
[ "<BEGIN>\n## `compute`", "compute the list of most similar events for the given text\n<END>", "<BEGIN>\n## `getUpdates`", "Get the latest new or updated events from Event Registry\n NOTE: call this method exactly once per minute - calling it more frequently will return the same results multiple times,\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the extractArticleInfo 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 extractArticleInfo 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...
extract all available information about an article available at url `url`. Returned information will include article title, body, authors, links in the articles, ... @param url: article url to extract article information from @param proxyUrl: proxy that should be used for downloading article inf...
"extract all available information about an article available at url `url`. Returned information will include\n article title, body, authors, links in the articles, ...\n @param url: article url to extract article information from\n @param proxyUrl: proxy that should be used for downloading article...
89
false
EventRegistry/event-registry-python
extractArticleInfo
37,463
LDU_FT/Microsoft/knack/extra
LDU_FT
[ "<BEGIN>\n## `ensure_new_style_deprecation`", "Helper method to make the previous string-based deprecate_info kwarg\n work with the new style.\n<END>", "<BEGIN>\n## `prompt_choice_list`", "Prompt user to select from a list of possible choices.", " :param msg:A message displayed to the user bef...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the extra API. 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 extra API. 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...
Register extra parameters for the given command. Typically used to augment auto-command built commands to add more parameters than the specific SDK method introspected. :param argument_dest: The destination argument to add this argument type to :type argument_dest: str :param kwargs: Po...
"Register extra parameters for the given command. Typically used to augment auto-command built\n commands to add more parameters than the specific SDK method introspected.\n\n :param argument_dest: The destination argument to add this argument type to\n :type argument_dest: str\n :param kwar...
88
false
Microsoft/knack
extra
37,464
LDU_FT/citruz/beacontools/get_mode
LDU_FT
[ "<BEGIN>\n## `run`", "Continously scan for BLE advertisements.\n<END>", "<BEGIN>\n## `set_scan_parameters`", "sets the le scan parameters", " Args:\n scan_type: ScanType.(PASSIVE|ACTIVE)\n interval: ms (as float) between scans (valid range 2.5ms - 10240ms)\n ..not...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_mode API. 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 get_mode API. 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...
Determine which beacons the scanner should look for.
"Determine which beacons the scanner should look for."
29
false
citruz/beacontools
get_mode
37,465
LDU_FT/sthysel/knobs/_get_format
LDU_FT
[ "<BEGIN>\n## `load_dotenv`", "Read a .env file and load into os.environ.", " :param dotenv_path:\n :type dotenv_path: str\n :param verbose: verbosity flag, raise warning if path does not exist\n :return: success flag\n<END>", "<BEGIN>\n## `get_key`", "Gets the value of a given key from the given...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_format API. 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_format API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
Returns the quote format depending on the quote_mode. This determines if the key value will be quoted when written to the env file. :param value: :param quote_mode: :return: str :raises: KeyError if the quote_mode is unknown
"Returns the quote format depending on the quote_mode.\n This determines if the key value will be quoted when written to\n the env file.\n\n :param value:\n :param quote_mode:\n :return: str\n :raises: KeyError if the quote_mode is unknown"
33
false
sthysel/knobs
_get_format
37,466
LDU_FT/ssalentin/plip/fix_pdbline
LDU_FT
[ "<BEGIN>\n## `process_pdb`", "Analysis of a single PDB file. Can generate textual reports XML, PyMOL session files and images as output.\n<END>", "<BEGIN>\n## `download_structure`", "Given a PDB ID, downloads the corresponding PDB structure.\n Checks for validity of ID and handles error while downloading.\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the fix_pdbline API. 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 fix_pdbline API. 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...
Fix a PDB line if information is missing.
"Fix a PDB line if information is missing."
176
false
ssalentin/plip
fix_pdbline
37,467
LDU_FT/tensorflow/mesh/sub
LDU_FT
[ "<BEGIN>\n## `make_layer_stack`", "Configurable layer stack.", " Args:\n layers: a list of subclasses of TransformerLayer\n num_layers: an integer\n Returns:\n a LayerStack\n<END>", "<BEGIN>\n## `make_bitransformer`", "Gin-configurable bitransformer constructor.", " In your config file you nee...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the 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 extracted doc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the 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 extracted doc...
Binary subtraction with broadcsting. Args: x1: a Tensor x2: a Tensor output_shape: an optional Shape name: an optional string Returns: a Tensor
"Binary subtraction with broadcsting.\n\n Args:\n x1: a Tensor\n x2: a Tensor\n output_shape: an optional Shape\n name: an optional string\n Returns:\n a Tensor"
958
false
tensorflow/mesh
sub
37,468
LDU_FT/dcaune/perseus-lib-python-common/calculate_base_sequence
LDU_FT
[ "<BEGIN>\n## `convert_image_to_rgb_mode`", "Convert the specified image instance to RGB mode.", " @param image: a Python Library Image (PIL) instance to convert its\n pixel format to RGB, discarding the alpha channel.", " @param fill_color: color to be used to fill transparent pixels when\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the calculate_base_sequence 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 calculate_base_sequence API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion...
Return a sequence of characters corresponding to the specified base. Example:: >>> calculate_base_sequence([ ('0', '9'), ('A', 'F') ]) '0123456789ABCDEF' @param base_offsets: a list of character offsets in the form of tuples ``(x, y)`` where ``x`` corresponds to the first character...
"Return a sequence of characters corresponding to the specified base.\n\n Example::\n\n >>> calculate_base_sequence([ ('0', '9'), ('A', 'F') ])\n '0123456789ABCDEF'\n\n @param base_offsets: a list of character offsets in the form of tuples\n ``(x, y)`` where ``x`` corresponds to the first ...
498
false
dcaune/perseus-lib-python-common
calculate_base_sequence
37,469
LDU_FT/kilometer-io/kilometer-python/link_user_to_group
LDU_FT
[ "<BEGIN>\n## `add_user`", "Creates a new identified user if he doesn't exist.", " :param str user_id: identified user's ID\n :param dict custom_properties: user properties\n :param dict headers: custom request headers (if isn't set default values are used)\n :param str endpoint_url: ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the link_user_to_group 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 link_user_to_group 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...
Links a user to a group :param str user_id: identified user's ID :param str group_id: group ID :param dict headers: custom request headers (if isn't set default values are used) :param str endpoint_url: where to send the request (if isn't set default value is used) :return: Resp...
"Links a user to a group\n\n :param str user_id: identified user's ID\n :param str group_id: group ID\n :param dict headers: custom request headers (if isn't set default values are used)\n :param str endpoint_url: where to send the request (if isn't set default value is used)\n :retur...
20
false
kilometer-io/kilometer-python
link_user_to_group
37,470
LDU_FT/aio-libs/aioodbc/set_attr
LDU_FT
[ "<BEGIN>\n## `close`", "Close the cursor now (rather than whenever __del__ is called).", " The cursor will be unusable from this point forward; an Error\n (or subclass) exception will be raised if any operation is attempted\n with the cursor.\n<END>", "<BEGIN>\n## `execute`", "Executes ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_attr API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_attr API. 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...
Calls SQLSetConnectAttr with the given values. :param attr_id: the attribute ID (integer) to set. These are ODBC or driver constants. :parm value: the connection attribute value to set. At this time only integer values are supported.
"Calls SQLSetConnectAttr with the given values.\n\n :param attr_id: the attribute ID (integer) to set. These are ODBC or\n driver constants.\n :parm value: the connection attribute value to set. At this time\n only integer values are supported."
56
false
aio-libs/aioodbc
set_attr
37,471
LDU_FT/SHTOOLS/SHTOOLS/from_file
LDU_FT
[ "<BEGIN>\n## `example`", "Plot random phase and Gaussian random variable spectra.\n<END>", "<BEGIN>\n## `plot_rad`", "Plot the radial component of the gravity field.", " Usage\n -----\n x.plot_rad([tick_interval, xlabel, ylabel, ax, colorbar,\n cb_orientation, cb_labe...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the from_file API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the from_file API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
Initialize the class instance from gridded data in a file. Usage ----- x = SHGrid.from_file(fname, [binary, **kwargs]) Returns ------- x : SHGrid class instance Parameters ---------- fname : str The filename containing the gridded da...
"Initialize the class instance from gridded data in a file.\n\n Usage\n -----\n x = SHGrid.from_file(fname, [binary, **kwargs])\n\n Returns\n -------\n x : SHGrid class instance\n\n Parameters\n ----------\n fname : str\n The filename containing ...
779
false
SHTOOLS/SHTOOLS
from_file
37,472