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/kfdm/gntp/register
LDU_FT
[ "<BEGIN>\n## `mini`", "Single notification function", "\tSimple notification function in one line. Has only one required parameter\n\tand attempts to use reasonable defaults for everything else\n\t:param string description: Notification message\n<END>", "<BEGIN>\n## `parse_gntp`", "Attempt to parse a messag...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the register API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the register API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
Send GNTP Registration .. warning:: Before sending notifications to Growl, you need to have sent a registration message at least once
"Send GNTP Registration\n\n\t\t.. warning::\n\t\t\tBefore sending notifications to Growl, you need to have\n\t\t\tsent a registration message at least once"
54
false
kfdm/gntp
register
5,973
LDU_FT/ixc/python-edtf/days_to_hmsm
LDU_FT
[ "<BEGIN>\n## `pre_save`", "Updates the edtf value from the value of the display_field.\n If there's a valid edtf, then set the date values.\n<END>", "<BEGIN>\n## `apply_delta`", "Apply a `relativedelta` to a `struct_time` data structure.", " `op` is an operator function, probably always `add` or `...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the days_to_hmsm API. 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 days_to_hmsm API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
Convert fractional days to hours, minutes, seconds, and microseconds. Precision beyond microseconds is rounded to the nearest microsecond. Parameters ---------- days : float A fractional number of days. Must be less than 1. Returns ------- hour : int Hour number. min :...
"Convert fractional days to hours, minutes, seconds, and microseconds.\n Precision beyond microseconds is rounded to the nearest microsecond.\n\n Parameters\n ----------\n days : float\n A fractional number of days. Must be less than 1.\n\n Returns\n -------\n hour : int\n Hour number...
83
false
ixc/python-edtf
days_to_hmsm
5,974
LDU_FT/Robpol86/sphinxcontrib-imgur/run
LDU_FT
[ "<BEGIN>\n## `query_api`", "Query the Imgur API.", " :raise APIError: When Imgur responds with errors or unexpected data.", " :param sphinx.application.Sphinx app: Sphinx application object.\n :param str client_id: Imgur API client ID to use. https://api.imgur.com/oauth2\n :param str imgur_id: The...
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...
Called by Sphinx. :returns: ImgurEmbedNode and ImgurJavaScriptNode instances with config values passed as arguments. :rtype: list
"Called by Sphinx.\n\n :returns: ImgurEmbedNode and ImgurJavaScriptNode instances with config values passed as arguments.\n :rtype: list"
90
false
Robpol86/sphinxcontrib-imgur
run
5,975
LDU_FT/cslarsen/elv/csv_row_to_transaction
LDU_FT
[ "<BEGIN>\n## `parse`", "Parses bank CSV file and returns Transactions instance.", " Args:\n filename: Path to CSV file to read.\n format: CSV format; one of the entries in `elv.formats`.\n encoding: The CSV file encoding.", " Returns:\n A ``Transactions`` object.\n<END>", "...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the csv_row_to_transaction 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 csv_row_to_transaction API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
Parses a row of strings to a ``Transaction`` object. Args: index: The index of this row in the original CSV file. Used for sorting ``Transaction``s by their order of appearance. row: The row containing strings for [transfer_date, posted_date, message, money_amou...
"Parses a row of strings to a ``Transaction`` object.\n\n Args:\n index: The index of this row in the original CSV file. Used for\n sorting ``Transaction``s by their order of appearance.\n\n row: The row containing strings for [transfer_date, posted_date,\n message, mo...
43
false
cslarsen/elv
csv_row_to_transaction
5,976
LDU_FT/lxyu/pinyin/_add_to_tree
LDU_FT
[ "<BEGIN>\n## `_pinyin_generator`", "Generate pinyin for chars, if char is not chinese character,\n itself will be returned.\n Chars must be unicode list.\n<END>", "<BEGIN>\n## `get`", "Return pinyin of string, the string must be unicode\n<END>", "<BEGIN>\n## `get_initial`", "Return the 1st char of p...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _add_to_tree API. 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 _add_to_tree API. 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...
We build word search trees, where we walk down the letters of a word. For example: 你 Good 你好 Hello Would build the tree 你 / \ You 好 \ Hello
"We build word search trees, where we walk down\n the letters of a word. For example:\n 你 Good\n 你好 Hello\n Would build the tree\n 你\n / \\\n You 好\n \\\n Hello"
16
false
lxyu/pinyin
_add_to_tree
5,977
LDU_FT/gasparka/pyhacores/main
LDU_FT
[ "<BEGIN>\n## `main`", ":param symbol: Bit to modulate\n :return: Modulated signal in baseband\n :rtype: Complex\n<END>", "<BEGIN>\n## `main`", ":type input: Complex\n :rtype: Sfix\n<END>", "<BEGIN>\n## `main`", ":param din: bit in\n :return: True if 100% correlation\n<END>", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the main API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the main API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
:param din: bit in :param reload: when True, reloads the initial value to LFSR :return: current LFSR value (integer), CRC is correct if this is 0. Once it gets to 0 it STAYS 0, reset needed.
":param din: bit in\n :param reload: when True, reloads the initial value to LFSR\n :return: current LFSR value (integer), CRC is correct if this is 0. Once it gets to 0 it STAYS 0, reset needed."
23
false
gasparka/pyhacores
main
5,978
LDU_FT/cydrobolt/pifx/breathe_lights
LDU_FT
[ "<BEGIN>\n## `arg_tup_to_dict`", "Given a set of argument tuples, set their value in a data dictionary if not blank\n<END>", "<BEGIN>\n## `handle_error`", "Raise appropriate exceptions if necessary.\n<END>", "<BEGIN>\n## `list_lights`", "Given a selector (defaults to all), return a list of lights.\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the breathe_lights API. 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 breathe_lights API. 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...
Perform breathe effect on lights. selector: String The selector to limit which lights will run the effect. default: all color: required String Color attributes to use during effect. See set_state for more. from_color: String The color to start t...
"Perform breathe effect on lights.\n\n selector: String\n The selector to limit which lights will run the effect.\n default: all\n\n color: required String\n Color attributes to use during effect. See set_state for more.\n\n from_color:\tString\n The colo...
47
false
cydrobolt/pifx
breathe_lights
5,979
LDU_FT/majerteam/sqla_inspect/add_formatter
LDU_FT
[ "<BEGIN>\n## `get_info_field`", "Return the info attribute of the given property\n<END>", "<BEGIN>\n## `add_formatter`", "Add a formatter to the registry\n if key_specific is provided, this formatter will only be used for some\n specific exports\n<END>", "<BEGIN>\n## `render`", "Write to the...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_formatter API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_formatter API. 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...
Add a formatter to the registry if key_specific is provided, this formatter will only be used for some specific exports
"Add a formatter to the registry\n if key_specific is provided, this formatter will only be used for some\n specific exports"
132
false
majerteam/sqla_inspect
add_formatter
5,980
LDU_FT/yoeo/guesslang/learn
LDU_FT
[ "<BEGIN>\n## `language_name`", "Predict the programming language name of the given source code.", " :param text: source code.\n :return: language name\n<END>", "<BEGIN>\n## `scores`", "A score for each language corresponding to the probability that\n the text is written in the given lan...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the learn API. 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 learn API. 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...
Learn languages features from source files. :raise GuesslangError: when the default model is used for learning :param input_dir: source code files directory. :return: learning accuracy
"Learn languages features from source files.\n\n :raise GuesslangError: when the default model is used for learning\n :param input_dir: source code files directory.\n :return: learning accuracy"
38
false
yoeo/guesslang
learn
5,981
LDU_FT/joke2k/django-environ/read_env
LDU_FT
[ "<BEGIN>\n## `unicode`", "Helper for python2\n :rtype: unicode\n<END>", "<BEGIN>\n## `db_url`", "Returns a config dictionary, defaulting to DATABASE_URL.", " :rtype: dict\n<END>", "<BEGIN>\n## `cache_url`", "Returns a config dictionary, defaulting to CACHE_URL.", " :rtype: dict\n<...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the read_env API. 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 read_env API. 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...
Read a .env file into os.environ. If not given a path to a dotenv path, does filthy magic stack backtracking to find manage.py and then find the dotenv. http://www.wellfireinteractive.com/blog/easier-12-factor-django/ https://gist.github.com/bennylope/2999704
"Read a .env file into os.environ.\n\n If not given a path to a dotenv path, does filthy magic stack backtracking\n to find manage.py and then find the dotenv.\n\n http://www.wellfireinteractive.com/blog/easier-12-factor-django/\n\n https://gist.github.com/bennylope/2999704"
41
false
joke2k/django-environ
read_env
5,982
LDU_FT/JohnVinyard/zounds/simple_settings
LDU_FT
[ "<BEGIN>\n## `validate`", "Ensure that the size of the dimension matches the number of bands in the\n scale", " Raises:\n ValueError: when the dimension size and number of bands don't match\n<END>", "<BEGIN>\n## `resampled`", "Create a basic processing pipeline that can resample al...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the simple_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 e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the simple_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 e...
Create sane default persistence settings for learning pipelines :param cls: The class to decorate
"Create sane default persistence settings for learning pipelines\n :param cls: The class to decorate"
97
false
JohnVinyard/zounds
simple_settings
5,983
LDU_FT/SFDO-Tooling/CumulusCI/init_sentry
LDU_FT
[ "<BEGIN>\n## `_download_file`", "Download the bulk API result file for a single batch\n<END>", "<BEGIN>\n## `_create_job`", "Initiate a bulk insert and upload batches to run in parallel.\n<END>", "<BEGIN>\n## `_query_db`", "Build a query to retrieve data from the local db.", " Includes columns fr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the init_sentry API. 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 init_sentry API. 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...
Initializes sentry.io error logging for this session
"Initializes sentry.io error logging for this session"
165
false
SFDO-Tooling/CumulusCI
init_sentry
5,984
LDU_FT/nginxinc/crossplane/fix_pep_479
LDU_FT
[ "<BEGIN>\n## `build_files`", "Uses a full nginx config payload (output of crossplane.parse) to build\n config files, then writes those files to disk.\n<END>", "<BEGIN>\n## `_lex_file_object`", "Generates token tuples from an nginx config file object", " Yields 3-tuples like (token, lineno, quoted)\n<E...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the fix_pep_479 API. 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_pep_479 API. 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...
Python 3.7 breaks crossplane's lexer because of PEP 479 Read more here: https://www.python.org/dev/peps/pep-0479/
"Python 3.7 breaks crossplane's lexer because of PEP 479\n Read more here: https://www.python.org/dev/peps/pep-0479/"
20
false
nginxinc/crossplane
fix_pep_479
5,985
LDU_FT/SoCo/SoCo/get_tracks
LDU_FT
[ "<BEGIN>\n## `_post`", "Try 3 times to request the content.", " :param headers: The HTTP headers\n :type headers: dict\n :param body: The body of the HTTP post\n :type body: str\n :param retries: The number of times to retry before giving up\n :type retries: int\n :param timeout: The time t...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_tracks API. 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_tracks API. 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...
Convenience method for `get_music_library_information` with ``search_type='tracks'``. For details of other arguments, see `that method <#soco.music_library.MusicLibrary.get_music_library_information>`_.
"Convenience method for `get_music_library_information`\n with ``search_type='tracks'``. For details of other arguments,\n see `that method\n <#soco.music_library.MusicLibrary.get_music_library_information>`_."
663
false
SoCo/SoCo
get_tracks
5,986
LDU_FT/gsi-upm/soil/save_record
LDU_FT
[ "<BEGIN>\n## `save_record`", "Save a collection of records to the database.\n Database writes are cached.\n<END>", "<BEGIN>\n## `convert`", "Get the serialized value for a given key.\n<END>", "<BEGIN>\n## `recover`", "Get the deserialized value for a given key, and the serialized version.\n<END>", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the save_record API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the save_record API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
Save a collection of records to the database. Database writes are cached.
"Save a collection of records to the database.\n Database writes are cached."
63
false
gsi-upm/soil
save_record
5,987
LDU_FT/pivotal-energy-solutions/django-datatable-view/link_to_model
LDU_FT
[ "<BEGIN>\n## `resolve_orm_path`", "Follows the queryset-style query path of ``orm_path`` starting from ``model`` class. If the\n path ends up referring to a bad field name, ``django.db.models.fields.FieldDoesNotExist`` will\n be raised.\n<END>", "<BEGIN>\n## `get_model_at_related_field`", "Looks up ``a...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the link_to_model API. 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 link_to_model API. 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 HTML in the form:: <a href="{{ instance.get_absolute_url }}">{{ text }}</a> If ``text`` is provided and isn't empty, it will be used as the hyperlinked text. If ``text`` isn't available, then ``kwargs['rich_value']`` will be consulted instead. Failing those checks, the helper will fall b...
"Returns HTML in the form::\n\n <a href=\"{{ instance.get_absolute_url }}\">{{ text }}</a>\n\n If ``text`` is provided and isn't empty, it will be used as the hyperlinked text.\n\n If ``text`` isn't available, then ``kwargs['rich_value']`` will be consulted instead.\n\n Failing those checks, the helper ...
128
false
pivotal-energy-solutions/django-datatable-view
link_to_model
5,988
LDU_FT/gristlabs/asttokens/_expand_to_matching_pairs
LDU_FT
[ "<BEGIN>\n## `get_token_from_offset`", "Returns the token containing the given character offset (0-based position in source text),\n or the preceeding token if the position is between tokens.\n<END>", "<BEGIN>\n## `get_token`", "Returns the token containing the given (lineno, col_offset) position, or the p...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _expand_to_matching_pairs API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _expand_to_matching_pairs API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi...
Scan tokens in [first_token, last_token] range that are between node's children, and for any unmatched brackets, adjust first/last tokens to include the closing pair.
"Scan tokens in [first_token, last_token] range that are between node's children, and for any\n unmatched brackets, adjust first/last tokens to include the closing pair."
46
false
gristlabs/asttokens
_expand_to_matching_pairs
5,989
LDU_FT/jmbhughes/suvi-trainer/onclick
LDU_FT
[ "<BEGIN>\n## `process_file`", "Open a single labeled image at path and get needed information, return as a dictionary\n<END>", "<BEGIN>\n## `plot_counts`", "plot the counts of a given theme from a created database over time\n<END>", "<BEGIN>\n## `query_hek`", "requests hek responses for a given time\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the onclick API. 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 onclick API. 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...
Draw contours on the data for a click in the thematic map :param event: mouse click on thematic map preview
"Draw contours on the data for a click in the thematic map\n :param event: mouse click on thematic map preview"
90
false
jmbhughes/suvi-trainer
onclick
5,990
LDU_FT/tgbugs/pyontutils/dematerialize
LDU_FT
[ "<BEGIN>\n## `build_transgenic_lines`", "init class | \"transgenic_line_source_name\":\"stock_number\" a Class\n add superClass | rdfs:subClassOf ilxtr:transgenicLine\n add *order* | ilxtr:useObjectProperty ilxtr:<order>\n add name | rdfs:label \"name\"\n add def ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the dematerialize API. 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 dematerialize API. 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...
Remove nodes higher in the tree that occur further down the SAME branch. If they occur down OTHER branchs leave them alone. NOTE: modifies in place!
"Remove nodes higher in the tree that occur further down the\n SAME branch. If they occur down OTHER branchs leave them alone.\n\n NOTE: modifies in place!"
301
false
tgbugs/pyontutils
dematerialize
5,991
LDU_FT/meejah/txtorcon/close
LDU_FT
[ "<BEGIN>\n## `tor_agent`", "This is the low-level method used by\n :meth:`txtorcon.Tor.web_agent` and\n :meth:`txtorcon.Circuit.web_agent` -- probably you should call one\n of those instead.", " :returns: a Deferred that fires with an object that implements\n :class:`twisted.web.iweb.IAgent` ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the close API. 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 close API. 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...
This asks Tor to close the underlying circuit object. See :meth:`txtorcon.torstate.TorState.close_circuit` for details. You may pass keyword arguments to take care of any Flags Tor accepts for the CLOSECIRCUIT command. Currently, this is only "IfUnused". So for example: circ.clo...
"This asks Tor to close the underlying circuit object. See\n :meth:`txtorcon.torstate.TorState.close_circuit`\n for details.\n\n You may pass keyword arguments to take care of any Flags Tor\n accepts for the CLOSECIRCUIT command. Currently, this is only\n \"IfUnused\". So for example:...
289
false
meejah/txtorcon
close
5,992
LDU_FT/nagius/snmp_passpersist/add_cnt_32bit
LDU_FT
[ "<BEGIN>\n## `encode`", "Encode the given string as an OID.", "\t\t>>> import snmp_passpersist as snmp\n\t\t>>> snmp.PassPersist.encode(\"hello\")\n\t\t'5.104.101.108.108.111'\n\t\t>>>\n<END>", "<BEGIN>\n## `cut_oid`", "Remove the base OID from the given string.", "\t\t>>> import snmp_passpersist as snmp\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_cnt_32bit API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_cnt_32bit API. 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...
Short helper to add a 32 bit counter value to the MIB subtree.
"Short helper to add a 32 bit counter value to the MIB subtree."
38
false
nagius/snmp_passpersist
add_cnt_32bit
5,993
LDU_FT/FNNDSC/pfmisc/arr_normalize
LDU_FT
[ "<BEGIN>\n## `authorizeClientRequest`", "Checks the authorization permissions of the bearer token passed, and determines whether the sender is permitted to make the request housed in the payload.\n Usage:\n request = The header object from pfioh, or the whole request from pman. This is parsed fo...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the arr_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 ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the arr_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 ext...
ARGS arr array to normalize **kargs scale = <f_scale> scale the normalized output by <f_scale> DESC Given an input array, <arr>, normalize all values to range between 0 and 1. If specified in the **kwargs, optionally set the scale with <f_s...
"ARGS\n arr array to normalize\n\n **kargs\n scale = <f_scale> scale the normalized output by <f_scale>\n\n\n DESC\n Given an input array, <arr>, normalize all values to range\n between 0 and 1.\n\n If specified in the **kwargs, optionally set the sca...
165
false
FNNDSC/pfmisc
arr_normalize
5,994
LDU_FT/kcallin/mqtt-codec/decode_body
LDU_FT
[ "<BEGIN>\n## `encode_bytes`", "Encode a buffer length followed by the bytes of the buffer\n itself.", " Parameters\n ----------\n src_buf: bytes\n Source bytes to be encoded. Function asserts that\n 0 <= len(src_buf) <= 2**16-1.\n dst_file: file\n File-like object with write...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the decode_body API. 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 decode_body API. 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...
Generates a `MqttSubscribe` packet given a `MqttFixedHeader`. This method asserts that header.packet_type is `subscribe`. Parameters ---------- header: MqttFixedHeader f: file Object with a read method. Raises ------ DecodeError ...
"Generates a `MqttSubscribe` packet given a\n `MqttFixedHeader`. This method asserts that header.packet_type\n is `subscribe`.\n\n Parameters\n ----------\n header: MqttFixedHeader\n f: file\n Object with a read method.\n\n Raises\n ------\n Dec...
116
false
kcallin/mqtt-codec
decode_body
5,995
LDU_FT/supercoderz/pyflightdata/get_airport_stats
LDU_FT
[ "<BEGIN>\n## `get_history_by_flight_number`", "Fetch the history of a flight by its number.", " This method can be used to get the history of a flight route by the number.\n It checks the user authentication and returns the data accordingly.", " Args:\n flight_number (str): The...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_airport_stats API. 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_airport_stats API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Retrieve the performance statistics at an airport Given the IATA code of an airport, this method returns the performance statistics for the airport. Args: iata (str): The IATA code for an airport, e.g. HYD page (int): Optional page number; for users who are on a plan with fligh...
"Retrieve the performance statistics at an airport\n\n Given the IATA code of an airport, this method returns the performance statistics for the airport.\n\n Args:\n iata (str): The IATA code for an airport, e.g. HYD\n page (int): Optional page number; for users who are on a plan wit...
99
false
supercoderz/pyflightdata
get_airport_stats
5,996
LDU_FT/insilichem/ommprotocol/from_xsc
LDU_FT
[ "<BEGIN>\n## `protocol`", "Run all the stages in protocol", " Parameters\n ----------\n handler : SystemHandler\n Container of initial conditions of simulation", " cfg : dict\n Imported YAML file.\n<END>", "<BEGIN>\n## `run`", "Launch MD simulation, which may consist of:\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the from_xsc API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the from_xsc API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
Returns u.Quantity with box vectors from XSC file
"Returns u.Quantity with box vectors from XSC file"
84
false
insilichem/ommprotocol
from_xsc
5,997
LDU_FT/jaraco/hgtools/get_current_version
LDU_FT
[ "<BEGIN>\n## `file_finder`", "Find the files in ``dirname`` under Mercurial version control\n\taccording to the setuptools spec (see\n\thttp://peak.telecommunity.com/DevCenter/setuptools#adding-support-for-other-revision-control-systems\n\t).\n<END>", "<BEGIN>\n## `patch_egg_info`", "A hack to replace egg_inf...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_current_version API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_current_version 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...
Return as a string the version of the current state of the repository -- a tagged version, if present, or the next version based on prior tagged releases.
"Return as a string the version of the current state of the\n\t\trepository -- a tagged version, if present, or the next version\n\t\tbased on prior tagged releases."
50
false
jaraco/hgtools
get_current_version
5,998
LDU_FT/weijia/djangoautoconf/register_channel
LDU_FT
[ "<BEGIN>\n## `load_template_source`", "Template loader that loads templates from a ZIP file.\n<END>", "<BEGIN>\n## `set_settings_env`", "Add all application folders\n :param executable_folder: the folder that contains local and external_app_repos\n :return:\n<END>", "<BEGIN>\n## `all_valid`", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the register_channel API. 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 register_channel API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Register channel for model :param model_class: model to register channel for :param search_fields: :return:
"Register channel for model\n :param model_class: model to register channel for\n :param search_fields:\n :return:"
32
false
weijia/djangoautoconf
register_channel
5,999
LDU_FT/zmqless/python-zeroless/pull
LDU_FT
[ "<BEGIN>\n## `pub`", "Returns a callable that can be used to transmit a message, with a given\n ``topic``, in a publisher-subscriber fashion. Note that the sender\n function has a ``print`` like signature, with an infinite number of\n arguments. Each one being a part of the complete message."...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the pull API. 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 pull API. 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...
Returns an iterable that can be used to iterate over incoming messages, that were pushed by a push socket. Note that the iterable returns as many parts as sent by pushers. :rtype: generator
"Returns an iterable that can be used to iterate over incoming messages,\n that were pushed by a push socket. Note that the iterable returns as\n many parts as sent by pushers.\n\n :rtype: generator"
30
false
zmqless/python-zeroless
pull
6,000
LDU_FT/frictionlessdata/tableschema-pandas-py/delete
LDU_FT
[ "<BEGIN>\n## `create`", "https://github.com/frictionlessdata/tableschema-pandas-py#storage\n<END>", "<BEGIN>\n## `delete`", "https://github.com/frictionlessdata/tableschema-pandas-py#storage\n<END>", "<BEGIN>\n## `describe`", "https://github.com/frictionlessdata/tableschema-pandas-py#storage\n<END>", "<...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the delete API. 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 delete API. 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 ...
https://github.com/frictionlessdata/tableschema-pandas-py#storage
"https://github.com/frictionlessdata/tableschema-pandas-py#storage"
10
false
frictionlessdata/tableschema-pandas-py
delete
6,001
LDU_FT/bukun/TorCMS/gen_post_map
LDU_FT
[ "<BEGIN>\n## `view_or_add`", "To judge if there is a post of the title.\n Then, to show, or to add.\n<END>", "<BEGIN>\n## `gen_array_crud`", "Return the dictionay of the switcher form XLXS file.\n if valud of the column of the row is `1`, it will be added to the array.\n<END>", "<BEGIN>\n## `__ge...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the gen_post_map API. 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 gen_post_map API. 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...
Generate the urls for posts. :return: None
"Generate the urls for posts.\n :return: None"
189
false
bukun/TorCMS
gen_post_map
6,002
LDU_FT/OnroerendErfgoed/language-tags/subtags
LDU_FT
[ "<BEGIN>\n## `types`", "Get the types of a subtag string (excludes redundant and grandfathered).", " :param str subtag: subtag.\n :return: list of types. The return list can be empty.\n<END>", "<BEGIN>\n## `subtags`", "Get a list of existing :class:`language_tags.Subtag.Subtag` objects given t...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the subtags API. 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 subtags API. 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...
Get a list of existing :class:`language_tags.Subtag.Subtag` objects given the input subtag(s). :param subtags: string subtag or list of string subtags. :return: a list of existing :class:`language_tags.Subtag.Subtag` objects. The return list can be empty.
"Get a list of existing :class:`language_tags.Subtag.Subtag` objects given the input subtag(s).\n\n :param subtags: string subtag or list of string subtags.\n :return: a list of existing :class:`language_tags.Subtag.Subtag` objects. The return list can be empty."
50
false
OnroerendErfgoed/language-tags
subtags
6,003
LDU_FT/Azure/azure-kusto-python/execute
LDU_FT
[ "<BEGIN>\n## `ingest_from_dataframe`", "Enqueuing an ingest command from local files.\n :param pandas.DataFrame df: input dataframe to ingest.\n :param azure.kusto.ingest.IngestionProperties ingestion_properties: Ingestion properties.\n<END>", "<BEGIN>\n## `ingest_from_file`", "Enqueuing an inge...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the execute API. 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 execute API. 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...
Executes a query or management command. :param str database: Database against query will be executed. :param str query: Query to be executed. :param azure.kusto.data.request.ClientRequestProperties properties: Optional additional properties. :return: Kusto response data set. ...
"Executes a query or management command.\r\n :param str database: Database against query will be executed.\r\n :param str query: Query to be executed.\r\n :param azure.kusto.data.request.ClientRequestProperties properties: Optional additional properties.\r\n :return: Kusto response data set....
40
false
Azure/azure-kusto-python
execute
6,004
LDU_FT/inveniosoftware/invenio-access/action_factory
LDU_FT
[ "<BEGIN>\n## `removed_or_inserted_action`", "Remove the action from cache when an item is inserted or deleted.\n<END>", "<BEGIN>\n## `changed_action`", "Remove the action from cache when an item is updated.\n<END>", "<BEGIN>\n## `create`", "Create new database row using the provided action need.", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the action_factory API. 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 action_factory API. 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...
Factory method for creating new actions (w/wo parameters). :param name: Name of the action (prefix with your module name). :param parameter: Determines if action should take parameters or not. Default is ``False``.
"Factory method for creating new actions (w/wo parameters).\n\n :param name: Name of the action (prefix with your module name).\n :param parameter: Determines if action should take parameters or not.\n Default is ``False``."
64
false
inveniosoftware/invenio-access
action_factory
6,005
LDU_FT/doconix/django-mako-plus/generate_script_map
LDU_FT
[ "<BEGIN>\n## `run_command`", "Runs a command, piping all output to the DMP log.\n The args should be separate arguments so paths and subcommands can have spaces in them:", " ret = run_command('ls', '-l', '/Users/me/My Documents')\n print(ret.code)\n print(ret.stdout)\n print(ret.s...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the generate_script_map 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 generate_script_map 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...
Maps templates in this app to their scripts. This function deep searches app/templates/* for the templates of this app. Returns the following dictionary with absolute paths: { ( 'appname', 'template1' ): [ '/abs/path/to/scripts/template1.js', '/abs/path/to/scripts/supertemplate1.j...
"Maps templates in this app to their scripts. This function deep searches\n app/templates/* for the templates of this app. Returns the following\n dictionary with absolute paths:\n\n {\n ( 'appname', 'template1' ): [ '/abs/path/to/scripts/template1.js', '/abs/path/to/scripts/supertempl...
207
false
doconix/django-mako-plus
generate_script_map
6,006
LDU_FT/bovee/Aston/loads
LDU_FT
[ "<BEGIN>\n## `simple_integrate`", "Integrate each peak naively; without regard to overlap.", " This is used as the terminal step by most of the other integrators.\n<END>", "<BEGIN>\n## `drop_integrate`", "Resolves overlap by breaking at the minimum value.\n<END>", "<BEGIN>\n## `_integrate_mpwrap`", "...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the loads API. 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 loads API. 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...
Create a Trace from a suitably compressed string.
"Create a Trace from a suitably compressed string."
89
false
bovee/Aston
loads
6,007
LDU_FT/edeposit/edeposit.amqp.ftp/_safe_read_meta_file
LDU_FT
[ "<BEGIN>\n## `load_users`", "Read passwd file and return dict with users and all their settings.", " Args:\n path (str, default settings.LOGIN_FILE): path of the file,\n which will be loaded (default :attr:`ftp.settings.LOGIN_FILE`).", " Returns:\n (dict): username: {pass_hash, ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _safe_read_meta_file API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _safe_read_meta_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. ...
Try to read MetadataFile. If the exception is raised, log the errors to the `error_protocol` and return None.
"Try to read MetadataFile. If the exception is raised, log the errors to\n the `error_protocol` and return None."
166
false
edeposit/edeposit.amqp.ftp
_safe_read_meta_file
6,008
LDU_FT/rstoneback/pysat/_load_data
LDU_FT
[ "<BEGIN>\n## `list_files`", "Return a Pandas Series of every file for chosen satellite data.", " This routine is intended to be used by pysat instrument modules supporting\n a particular NASA CDAWeb dataset.", " Parameters\n -----------\n tag : (string or NoneType)\n Denotes type of file...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _load_data API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _load_data API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
Load data for an instrument on given date or fid, dependng upon input. Parameters ------------ date : (dt.datetime.date object or NoneType) file date fid : (int or NoneType) filename index value Returns -------- data : (pds.DataFrame) ...
"Load data for an instrument on given date or fid, dependng upon input.\n\n Parameters\n ------------\n date : (dt.datetime.date object or NoneType)\n file date\n fid : (int or NoneType)\n filename index value\n\n Returns\n --------\n data : (pds.Da...
525
false
rstoneback/pysat
_load_data
6,009
LDU_FT/rigetti/rpcq/call_async
LDU_FT
[ "<BEGIN>\n## `call_async`", "Send JSON RPC request to a backend socket and receive reply (asynchronously)", " :param method_name: Method name\n :param args: Args that will be passed to the remote function\n :param float rpc_timeout: Timeout in seconds for Server response, set to None to dis...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the call_async API. 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 call_async API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
Send JSON RPC request to a backend socket and receive reply (asynchronously) :param method_name: Method name :param args: Args that will be passed to the remote function :param float rpc_timeout: Timeout in seconds for Server response, set to None to disable the timeout :param kwargs: K...
"Send JSON RPC request to a backend socket and receive reply (asynchronously)\n\n :param method_name: Method name\n :param args: Args that will be passed to the remote function\n :param float rpc_timeout: Timeout in seconds for Server response, set to None to disable the timeout\n :param kwa...
63
false
rigetti/rpcq
call_async
6,010
LDU_FT/hayalasalah/adhan.py/sun_declination
LDU_FT
[ "<BEGIN>\n## `floating_point_to_datetime`", "Convert a floating point time to a datetime.\n<END>", "<BEGIN>\n## `adhan`", "Calculate adhan times given the parameters.", " This function will compute the adhan times for a certain location on\n certain day. The method for calculating the prayers as well ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the sun_declination API. 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 sun_declination API. 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...
Compute the declination angle of the sun for the given date. Uses the Spencer Formula (found at http://www.illustratingshadows.com/www-formulae-collection.pdf) :param day: The datetime.date to compute the declination angle for :returns: The angle, in degrees, of the angle of declination
"Compute the declination angle of the sun for the given date.\n\n Uses the Spencer Formula\n (found at http://www.illustratingshadows.com/www-formulae-collection.pdf)\n\n :param day: The datetime.date to compute the declination angle for\n :returns: The angle, in degrees, of the angle of declination"
31
false
hayalasalah/adhan.py
sun_declination
6,011
LDU_FT/prompt-toolkit/ptpython/interactive_shell
LDU_FT
[ "<BEGIN>\n## `tab_should_insert_whitespace`", "When the 'tab' key is pressed with only whitespace character before the\n cursor, do autocompletion. Otherwise, insert indentation.", " Except for the first character at the first line. Then always do a\n completion. It doesn't make sense to start the firs...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the interactive_shell API. 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 interactive_shell API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Coroutine that starts a Python REPL from which we can access the global counter variable.
"Coroutine that starts a Python REPL from which we can access the global\n counter variable."
81
false
prompt-toolkit/ptpython
interactive_shell
6,012
LDU_FT/isogeo/isogeo-api-py-minsdk/connect
LDU_FT
[ "<BEGIN>\n## `set_base_url`", "Set Isogeo base URLs according to platform.", " :param str platform: platform to use. Options:", " * prod [DEFAULT]\n * qa\n * int\n<END>", "<BEGIN>\n## `convert_uuid`", "Convert a metadata UUID to its URI equivalent. And conversely.", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the connect API. 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 connect API. 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...
Authenticate application and get token bearer. Isogeo API uses oAuth 2.0 protocol (https://tools.ietf.org/html/rfc6749) see: http://help.isogeo.com/api/fr/authentication/groupsapps.html :param str client_id: application oAuth2 identifier :param str client_secret: application oAuth2 sec...
"Authenticate application and get token bearer.\n\n Isogeo API uses oAuth 2.0 protocol (https://tools.ietf.org/html/rfc6749)\n see: http://help.isogeo.com/api/fr/authentication/groupsapps.html\n\n :param str client_id: application oAuth2 identifier\n :param str client_secret: application oAu...
154
false
isogeo/isogeo-api-py-minsdk
connect
6,013
LDU_FT/boppreh/keyboard/start_if_necessary
LDU_FT
[ "<BEGIN>\n## `is_modifier`", "Returns True if `key` is a scan code or name of a modifier key.\n<END>", "<BEGIN>\n## `key_to_scan_codes`", "Returns a list of scan codes associated with this key (name or scan code).\n<END>", "<BEGIN>\n## `parse_hotkey`", "Parses a user-provided hotkey into nested tuples rep...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the start_if_necessary 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 start_if_necessary 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...
Starts the listening thread if it wans't already.
"Starts the listening thread if it wans't already."
158
false
boppreh/keyboard
start_if_necessary
6,014
LDU_FT/onecodex/onecodex/delete
LDU_FT
[ "<BEGIN>\n## `plot_heatmap`", "Plot heatmap of taxa abundance/count data for several samples.", " Parameters\n ----------\n rank : {'auto', 'kingdom', 'phylum', 'class', 'order', 'family', 'genus', 'species'}, optional\n Analysis will be restricted to abundances of taxa at the sp...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the delete API. 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 delete API. 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 ...
Delete this object from the One Codex server.
"Delete this object from the One Codex server."
304
false
onecodex/onecodex
delete
6,015
LDU_FT/paylogic/pip-accel/validate_environment
LDU_FT
[ "<BEGIN>\n## `get`", "Get a distribution archive from any of the available caches.", " :param requirement: A :class:`.Requirement` object.\n :returns: The absolute pathname of a local file or :data:`None` when the\n distribution archive is missing from all available caches.\n<END>...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the validate_environment 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 validate_environment API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Make sure :data:`sys.prefix` matches ``$VIRTUAL_ENV`` (if defined). This may seem like a strange requirement to dictate but it avoids hairy issues like `documented here <https://github.com/paylogic/pip-accel/issues/5>`_. The most sneaky thing is that ``pip`` doesn't have this problem (...
"Make sure :data:`sys.prefix` matches ``$VIRTUAL_ENV`` (if defined).\n\n This may seem like a strange requirement to dictate but it avoids hairy\n issues like `documented here <https://github.com/paylogic/pip-accel/issues/5>`_.\n\n The most sneaky thing is that ``pip`` doesn't have this problem\n ...
252
false
paylogic/pip-accel
validate_environment
6,016
LDU_FT/bfarr/kombine/generate_covariance
LDU_FT
[ "<BEGIN>\n## `generate`", "Returns (ts, rvs), where ts is a list of arrays of\n observation times (one array for each observatory), and rvs is\n a corresponding list of total radial velocity measurements.\n<END>", "<BEGIN>\n## `lnlike`", "Use a softened version of the interpolant as a likelihood...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the generate_covariance 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 generate_covariance 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...
r"""Generates a covariance matrix according to an squared-exponential autocovariance .. math:: \left\langle x_i x_j \right\rangle = \sigma_0^2 \delta_{ij} + \sigma^2 \exp\left[ - \frac{\left| t_i - t_j\right|^2}{2 \tau^2} \right]
"r\"\"\"Generates a covariance matrix according to an\n squared-exponential autocovariance\n \n .. math::\n \n \\left\\langle x_i x_j \\right\\rangle = \\sigma_0^2 \\delta_{ij} + \\sigma^2 \\exp\\left[ - \\frac{\\left| t_i - t_j\\right|^2}{2 \\tau^2} \\right]"
16
false
bfarr/kombine
generate_covariance
6,017
LDU_FT/elkiwy/paynter/addBorder
LDU_FT
[ "<BEGIN>\n## `drawLine`", "Draws a line on the current :py:class:`Layer` with the current :py:class:`Brush`.\n\t\tCoordinates are relative to the original layer size WITHOUT downsampling applied.", "\t\t:param x1: Starting X coordinate.\n\t\t:param y1: Starting Y coordinate.\n\t\t:param x2: End X coordinate.\n\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the addBorder API. 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 addBorder API. 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...
Add a border to the current :py:class:`Layer`. :param width: The width of the border. :param color: The :py:class:`Color` of the border, current :py:class:`Color` is the default value. :rtype: Nothing.
"Add a border to the current :py:class:`Layer`.\n\t\t\n\t\t:param width: The width of the border.\n\t\t:param color: The :py:class:`Color` of the border, current :py:class:`Color` is the default value.\n\t\t:rtype: Nothing."
57
false
elkiwy/paynter
addBorder
6,018
LDU_FT/byt3bl33d3r/CrackMapExec/options
LDU_FT
[ "<BEGIN>\n## `add_computer`", "Check if this host has already been added to the database, if not add it in.\n<END>", "<BEGIN>\n## `remove_credentials`", "Removes a credential ID from the database\n<END>", "<BEGIN>\n## `options`", "SERVER IP of the SMB server\n NAME LNK file name\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the options API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the options API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
THOROUGH Searches entire filesystem for certain file extensions (default: False) ALLDOMAIN Queries Active Direcotry for a list of all domain-joined computers and runs SessionGopher against all of them (default: False)
"THOROUGH Searches entire filesystem for certain file extensions (default: False)\n ALLDOMAIN Queries Active Direcotry for a list of all domain-joined computers and runs SessionGopher against all of them (default: False)"
77
false
byt3bl33d3r/CrackMapExec
options
6,019
LDU_FT/tgbugs/ontquery/process_existing_ids
LDU_FT
[ "<BEGIN>\n## `examples`", "Examples of how to use. Default are that some functions are commented out in order\n to not cause harm to existing metadata within the database.\n<END>", "<BEGIN>\n## `process_response`", "Checks for correct data response and status codes\n<END>", "<BEGIN>\n## `process_syno...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the process_existing_ids API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the process_existing_ids API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Making sure key/value is in proper format for existing_ids in entity
"Making sure key/value is in proper format for existing_ids in entity"
44
false
tgbugs/ontquery
process_existing_ids
6,020
LDU_FT/nickoala/telepot/sendVoice
LDU_FT
[ "<BEGIN>\n## `answer`", "Create a task that calls ``compute fn`` (along with additional arguments\n ``*compute_args`` and ``**compute_kwargs``), then applies the returned value to\n :meth:`.Bot.answerInlineQuery` to answer the inline query.\n If a preceding task is already working for a user,...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the sendVoice API. 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 sendVoice API. 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...
See: https://core.telegram.org/bots/api#sendvoice :param voice: Same as ``photo`` in :meth:`telepot.Bot.sendPhoto`
"See: https://core.telegram.org/bots/api#sendvoice\n\n :param voice: Same as ``photo`` in :meth:`telepot.Bot.sendPhoto`"
312
false
nickoala/telepot
sendVoice
6,021
LDU_FT/NetEaseGame/aircv/imread
LDU_FT
[ "<BEGIN>\n## `imread`", "Like cv2.imread\n This function will make sure filename exists\n<END>", "<BEGIN>\n## `find_all_template`", "Locate image position with cv2.templateFind", " Use pixel match to find pictures.", " Args:\n im_source(string): 图像、素材\n im_search(string): 需要查找的图片\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the imread API. 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 imread API. 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 ...
Like cv2.imread This function will make sure filename exists
"Like cv2.imread\n This function will make sure filename exists"
16
false
NetEaseGame/aircv
imread
6,022
LDU_FT/TracyWebTech/django-revproxy/transform
LDU_FT
[ "<BEGIN>\n## `should_stream`", "Function to verify if the proxy_response must be converted into\n a stream.This will be done by checking the proxy_response content-length\n and verify if its length is bigger than one stipulated\n by MIN_STREAMING_LENGTH.", " :param proxy_response: An Instance of url...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the transform API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the transform API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
Method used to make a transformation on the content of the http response based on the rules and theme_templates passed as paremters :param rules: A file with a set of diazo rules to make a transformation over the original response content :param theme_template: ...
"Method used to make a transformation on the content of\n the http response based on the rules and theme_templates\n passed as paremters\n\n :param rules: A file with a set of diazo rules to make a\n transformation over the original response content\n :param theme_tem...
41
false
TracyWebTech/django-revproxy
transform
6,023
LDU_FT/ihgazni2/edict/get_vndmat_attr
LDU_FT
[ "<BEGIN>\n## `pipe_shell_cmds`", "shell_CMDs = {}\n shell_CMDs[1] = 'netstat -n'\n shell_CMDs[2] = \"awk {'print $6'}\"\n<END>", "<BEGIN>\n## `_reorder_via_klist`", "d = {'scheme': 'http', 'path': '/index.php', 'params': 'params', 'query': 'username=query', 'fragment': 'frag', 'username': '', 'p...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_vndmat_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 e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_vndmat_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 e...
get_vndmat_attr(d,['x'],'lsib_path',path2keypath=True) get_vndmat_attr(d,['t'],'lsib_path',path2keypath=True) get_vndmat_attr(d,['u'],'lsib_path',path2keypath=True) get_vndmat_attr(d,['y'],'lsib_path',path2keypath=True)
"get_vndmat_attr(d,['x'],'lsib_path',path2keypath=True)\n get_vndmat_attr(d,['t'],'lsib_path',path2keypath=True)\n get_vndmat_attr(d,['u'],'lsib_path',path2keypath=True)\n get_vndmat_attr(d,['y'],'lsib_path',path2keypath=True)"
71
false
ihgazni2/edict
get_vndmat_attr
6,024
LDU_FT/openstack/python-scciclient/_get_auth
LDU_FT
[ "<BEGIN>\n## `scci_cmd`", "execute SCCI command", " This function calls SCCI server modules\n :param host: hostname or IP of iRMC\n :param userid: userid for iRMC with administrator privileges\n :param password: password for userid\n :param cmd: SCCI command\n :param port: port number of iRMC\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_auth API. 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_auth API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
Return the authorization data for an SNMP request. :returns: A :class:`pysnmp.entity.rfc3413.oneliner.cmdgen.CommunityData` object.
"Return the authorization data for an SNMP request.\n\n :returns: A\n :class:`pysnmp.entity.rfc3413.oneliner.cmdgen.CommunityData`\n object."
194
false
openstack/python-scciclient
_get_auth
6,025
LDU_FT/ryanjdillon/pylleo/create_bokeh_server
LDU_FT
[ "<BEGIN>\n## `create_bokeh_server`", "Start bokeh server with applications paths\n<END>", "<BEGIN>\n## `get_n_header`", "Get the nummber of header rows in a Little Leonardo data file", " Args\n ----\n f : file stream\n File handle for the file from which header rows will be read\n header_...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_bokeh_server 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 create_bokeh_server 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...
Start bokeh server with applications paths
"Start bokeh server with applications paths"
60
false
ryanjdillon/pylleo
create_bokeh_server
6,026
LDU_FT/openvax/pyensembl/gene_by_protein_id
LDU_FT
[ "<BEGIN>\n## `_write_csv`", "Parameters\n ----------\n df : pandas.DataFrame", " csv_path : str", " chunksize : int\n Number of rows to write at a time. Helps to limit memory\n consumption while writing a CSV.\n<END>", "<BEGIN>\n## `cached_dataframe`", "If...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the gene_by_protein_id 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 gene_by_protein_id API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
Get the gene ID associated with the given protein ID, return its Gene object
"Get the gene ID associated with the given protein ID,\n return its Gene object"
234
false
openvax/pyensembl
gene_by_protein_id
6,027
LDU_FT/hozn/stravalib/members
LDU_FT
[ "<BEGIN>\n## `logged_in`", "Method called by Strava (redirect) that includes parameters.\n - state\n - code\n - error\n<END>", "<BEGIN>\n## `unmarshal`", "Convert the value from parsed JSON structure to native python representation.", " By default this will leave the value as-is since the JS...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the members API. 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 members API. 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...
An iterator of :class:`stravalib.model.Athlete` members of this club.
"An iterator of :class:`stravalib.model.Athlete` members of this club."
367
false
hozn/stravalib
members
6,028
LDU_FT/makinacorpus/django-tracking-fields/tracking_m2m
LDU_FT
[ "<BEGIN>\n## `changelist_view`", "Get object currently tracked and add a button to get back to it\n<END>", "<BEGIN>\n## `_add_get_tracking_url`", "Add a method to get the tracking url of an object.\n<END>", "<BEGIN>\n## `track`", "Decorator used to track changes on Model's fields.", " :Example:\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the tracking_m2m API. 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 tracking_m2m API. 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...
m2m_changed callback. The idea is to get the model and the instance of the object being tracked, and the different objects being added/removed. It is then send to the ``_create_tracked_field_m2m`` method to extract the proper attribute for the TrackedFieldModification.
"m2m_changed callback.\n The idea is to get the model and the instance of the object being tracked,\n and the different objects being added/removed. It is then send to the\n ``_create_tracked_field_m2m`` method to extract the proper attribute for\n the TrackedFieldModification."
33
false
makinacorpus/django-tracking-fields
tracking_m2m
6,029
LDU_FT/coinbase/coinbase-python/get_exchange_rates
LDU_FT
[ "<BEGIN>\n## `set_primary`", "https://developers.coinbase.com/api/v2#set-account-as-primary\n<END>", "<BEGIN>\n## `modify`", "https://developers.coinbase.com/api#modify-an-account\n<END>", "<BEGIN>\n## `get_address`", "https://developers.coinbase.com/api/v2#show-addresss\n<END>", "<BEGIN>\n## `get_addre...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_exchange_rates 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 get_exchange_rates 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...
https://developers.coinbase.com/api/v2#exchange-rates
"https://developers.coinbase.com/api/v2#exchange-rates"
166
false
coinbase/coinbase-python
get_exchange_rates
6,030
LDU_FT/twisted/mantissa/getDefaultShareID
LDU_FT
[ "<BEGIN>\n## `createUser`", "Create a new, blank user account with the given name and domain and, if\n specified, with the given password.", " @type localpart: C{unicode}\n @param localpart: The local portion of the username. ie, the\n C{'alice'} in C{'alice@example.com'}.", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the getDefaultShareID API. 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 getDefaultShareID API. 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 highest-priority default share ID for C{store}. @return: the default share ID, or u'' if one has not been set. @rtype: C{unicode}
"Get the highest-priority default share ID for C{store}.\n\n @return: the default share ID, or u'' if one has not been set.\n @rtype: C{unicode}"
1,120
true
twisted/mantissa
getDefaultShareID
6,031
LDU_FT/fozzle/python-brotherprint/vert_tab_pos
LDU_FT
[ "<BEGIN>\n## `initialize`", "Calling this function initializes the printer.", " Args:\n None\n Returns:\n None\n Raises:\n None\n<END>", "<BEGIN>\n## `select_charset`", "Select international character set and changes codes in code table accordingly", "...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the vert_tab_pos API. 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 vert_tab_pos API. 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...
Sets tab positions, up to a maximum of 32 positions. Also can clear tab positions. Args: positions -- Either a list of tab positions (between 1 and 255), or 'clear'. Returns: None Raises: RuntimeError: Invalid position parameter. RuntimeEr...
"Sets tab positions, up to a maximum of 32 positions. Also can clear tab positions.\n \n Args:\n positions -- Either a list of tab positions (between 1 and 255), or 'clear'.\n Returns:\n None\n Raises:\n RuntimeError: Invalid position parameter.\n ...
113
false
fozzle/python-brotherprint
vert_tab_pos
6,032
LDU_FT/Nic30/hwtGraph/searchRootOfTree
LDU_FT
[ "<BEGIN>\n## `extractSplits`", "convert group of indexed assignments witch are splitting signal to Split node", " a = sig[0]\n b = sig[1]\n to\n a, b = sig", " :param toL: dictionary {hdl object: layout object}\n<END>", "<BEGIN>\n## `getPortSideView`", "Returns a sublist view for all ports ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the searchRootOfTree API. 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 searchRootOfTree API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Walk tree of nodes to root :param reducibleChildren: nodes which are part of tree :param nodeFromTree: node where to start the search
"Walk tree of nodes to root\n\n :param reducibleChildren: nodes which are part of tree\n :param nodeFromTree: node where to start the search"
65
false
Nic30/hwtGraph
searchRootOfTree
6,033
LDU_FT/wdm0006/git-pandas/blame
LDU_FT
[ "<BEGIN>\n## `repo_name`", "Returns a DataFrame of the repo names present in this project directory", " :return: DataFrame\n<END>", "<BEGIN>\n## `coverage`", "Will return a DataFrame with coverage information (if available) for each repo in the project).", " If there is a .coverage file avai...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the blame API. 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 blame API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
Returns the blame from the current HEAD of the repositories as a DataFrame. The DataFrame is grouped by committer name, so it will be the sum of all contributions to all repositories by each committer. As with the commit history method, extensions and ignore_dirs parameters can be passed to exclude cer...
"Returns the blame from the current HEAD of the repositories as a DataFrame. The DataFrame is grouped by committer\n name, so it will be the sum of all contributions to all repositories by each committer. As with the commit history\n method, extensions and ignore_dirs parameters can be passed to exclude ...
123
false
wdm0006/git-pandas
blame
6,034
LDU_FT/matthieugouel/gibica/visit_FunctionDeclaration
LDU_FT
[ "<BEGIN>\n## `append_scope`", "Create a new scope in the current frame.\n<END>", "<BEGIN>\n## `pop_scope`", "Delete the current scope in the current scope.\n<END>", "<BEGIN>\n## `visit`", "Visit the right method of the child class according to the node.\n<END>", "<BEGIN>\n## `peek`", "Get the next cha...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the visit_FunctionDeclaration API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the visit_FunctionDeclaration API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi...
Visitor for `FunctionDeclaration` AST node.
"Visitor for `FunctionDeclaration` AST node."
56
false
matthieugouel/gibica
visit_FunctionDeclaration
6,035
LDU_FT/hsolbrig/pyjsg/as_tokens
LDU_FT
[ "<BEGIN>\n## `do_parse`", "Parse the jsg in infilename and save the results in outfilename\n :param infilename: file containing jsg\n :param outfilename: target python file\n :param verbose: verbose output flag\n :return: true if success\n<END>", "<BEGIN>\n## `parse`", "Parse the text in infile an...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the as_tokens API. 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 as_tokens API. 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 stringified list of identifiers in ctx :param ctx: JSG parser item with a set of identifiers :return:
"Return a stringified list of identifiers in ctx\n\n :param ctx: JSG parser item with a set of identifiers\n :return:"
146
false
hsolbrig/pyjsg
as_tokens
6,036
LDU_FT/planetarypy/pvl/parse_assignment
LDU_FT
[ "<BEGIN>\n## `append`", "Adds a (name, value) pair, doesn't overwrite the value if it already\n exists.\n<END>", "<BEGIN>\n## `__insert_wrapper`", "Make sure the arguments given to the insert methods are correct\n<END>", "<BEGIN>\n## `_get_index_for_insert`", "Get the index of the key to insert bef...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_assignment API. 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_assignment API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
AssignmentStmt ::= Name WSC AssignmentSymbol WSC Value StatementDelim
"AssignmentStmt ::= Name WSC AssignmentSymbol WSC Value StatementDelim"
63
false
planetarypy/pvl
parse_assignment
6,037
LDU_FT/LordDarkula/chess_py/possible_moves
LDU_FT
[ "<BEGIN>\n## `_get_piece`", "Returns Piece subclass given index of piece.", " :type: index: int\n :type: loc Location", " :raise: KeyError\n<END>", "<BEGIN>\n## `incomplete_alg`", "Converts a string written in short algebraic form into an incomplete move.\n These incomplete moves do not have t...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the possible_moves API. 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 possible_moves API. 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...
Finds all possible knight moves :type: position Board :rtype: list
"Finds all possible knight moves\n :type: position Board\n :rtype: list"
173
false
LordDarkula/chess_py
possible_moves
6,038
LDU_FT/Infinidat/infi.clickhouse_orm/raw
LDU_FT
[ "<BEGIN>\n## `_range_check`", "Utility method to check that the given value is between min_value and max_value.\n<END>", "<BEGIN>\n## `get_sql`", "Returns an SQL expression describing the field (e.g. for CREATE TABLE).\n :param with_default_expression: If True, adds default value to sql.\n I...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the raw API. 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 raw API. 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...
Performs a query and returns its output as text. - `query`: the SQL query to execute. - `settings`: query settings to send as HTTP GET parameters - `stream`: if true, the HTTP response from ClickHouse will be streamed.
"Performs a query and returns its output as text.\n\n - `query`: the SQL query to execute.\n - `settings`: query settings to send as HTTP GET parameters\n - `stream`: if true, the HTTP response from ClickHouse will be streamed."
86
false
Infinidat/infi.clickhouse_orm
raw
6,039
LDU_FT/RedFantom/ttkthemes/set_theme
LDU_FT
[ "<BEGIN>\n## `screenshot_themes`", "Take a screenshot for all themes available\n<END>", "<BEGIN>\n## `_load_themes`", "Load the themes into the Tkinter interpreter\n<END>", "<BEGIN>\n## `_append_theme_dir`", "Append a theme dir to the Tk interpreter auto_path\n<END>", "<BEGIN>\n## `set_theme`", "Set n...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_theme API. 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 set_theme API. 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...
Redirect the set_theme call to also set Tk background color
"Redirect the set_theme call to also set Tk background color"
54
false
RedFantom/ttkthemes
set_theme
6,040
LDU_FT/tropo/tropo-webapi-python/TransferDemo
LDU_FT
[ "<BEGIN>\n## `HelloWorld`", "This is the traditional \"Hello, World\" function. The idiom is used throughout the API. We construct a Tropo object, and then flesh out that object by calling \"action\" functions (in this case, tropo.say). Then call tropo.Render, which translates the Tropo object into JSON format. F...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the TransferDemo API. 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 TransferDemo API. 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...
Demonstration of transfering to another number
"Demonstration of transfering to another number"
42
false
tropo/tropo-webapi-python
TransferDemo
6,041
LDU_FT/ampl/amplpy/readTable
LDU_FT
[ "<BEGIN>\n## `getData`", "Get the data corresponding to the display statements. The statements\n can be AMPL expressions, or entities. It captures the equivalent of the\n command:", " .. code-block:: ampl", " display ds1, ..., dsn;", " where ds1, ..., dsn are the ``dis...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the readTable API. 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 readTable API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
Read the table corresponding to the specified name, equivalent to the AMPL statement: .. code-block:: ampl read table tableName; Args: tableName: Name of the table to be read.
"Read the table corresponding to the specified name, equivalent to the\n AMPL statement:\n\n .. code-block:: ampl\n\n read table tableName;\n\n Args:\n tableName: Name of the table to be read."
205
false
ampl/amplpy
readTable
6,042
LDU_FT/mromanello/hucitlib/get_works
LDU_FT
[ "<BEGIN>\n## `fetch_text_structure`", "Fetches the text structure of a given work from a CTS endpoint.", " :param urn: the work's CTS URN (at the work-level!,\n e.g.\"urn:cts:greekLit:tlg0012.tlg001\")\n :type urn: string\n :param endpoint: the URL of the CTS endpoint to use (defaults to Perseid...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_works API. 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_works API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
Return the author's works. :return: a list of `HucitWork` instances.
"Return the author's works.\n\n :return: a list of `HucitWork` instances."
73
false
mromanello/hucitlib
get_works
6,043
LDU_FT/jayclassless/basicserial/to_toml
LDU_FT
[ "<BEGIN>\n## `to_json`", "Serializes the given value to JSON.", " :param value: the value to serialize\n :param pretty:\n whether or not to format the output in a more human-readable way; if\n not specified, defaults to ``False``\n :type pretty: bool\n :rtype: str\n<END>", "<BEGIN>\n...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the to_toml API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the to_toml API. 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...
Serializes the given value to TOML. :param value: the value to serialize :param pretty: this argument is ignored, as no TOML libraries support this type of operation :type pretty: bool :rtype: str
"Serializes the given value to TOML.\n\n :param value: the value to serialize\n :param pretty:\n this argument is ignored, as no TOML libraries support this type of\n operation\n :type pretty: bool\n :rtype: str"
18
false
jayclassless/basicserial
to_toml
6,044
LDU_FT/bitesofcode/projex/decrypt
LDU_FT
[ "<BEGIN>\n## `add`", "Adds the new key to this enumerated type.", " :param key | <str>\n<END>", "<BEGIN>\n## `all`", "Returns all the values joined together.", " :return <int>\n<END>", "<BEGIN>\n## `base`", "Returns the root base for the given value from this enumeration.", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the decrypt API. 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 decrypt API. 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...
Decrypts the inputted text using the inputted key. :param text | <str> key | <str> :return <str>
"Decrypts the inputted text using the inputted key.\n \n :param text | <str>\n key | <str>\n \n :return <str>"
676
false
bitesofcode/projex
decrypt
6,045
LDU_FT/MartijnBraam/pyElectronics/write
LDU_FT
[ "<BEGIN>\n## `read`", "Read the pin state of an input pin.\n Make sure you put the pin in input modus with the IODIR* register or direction_* attribute first.", " :Example:", " >>> expander = MCP23017I2C(gw)\n >>> # Read the logic level on pin B3\n >>> expander.read('B3')\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the write API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the write API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
Set the logic output level for the pin. :type value: bool :param value: True for a logic high
"Set the logic output level for the pin.\n\n :type value: bool\n :param value: True for a logic high"
88
false
MartijnBraam/pyElectronics
write
6,046
LDU_FT/hmmlearn/hmmlearn/predict_proba
LDU_FT
[ "<BEGIN>\n## `log_multivariate_normal_density`", "Compute the log probability under a multivariate Gaussian distribution.\n Parameters\n ----------\n X : array_like, shape (n_samples, n_features)\n List of n_features-dimensional data points. Each row corresponds to a\n single data point.\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the predict_proba API. 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 predict_proba API. 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...
Compute the posterior probability for each state in the model. X : array-like, shape (n_samples, n_features) Feature matrix of individual samples. lengths : array-like of integers, shape (n_sequences, ), optional Lengths of the individual sequences in ``X``. The sum of ...
"Compute the posterior probability for each state in the model.\n\n X : array-like, shape (n_samples, n_features)\n Feature matrix of individual samples.\n\n lengths : array-like of integers, shape (n_sequences, ), optional\n Lengths of the individual sequences in ``X``. The sum of\n...
108
false
hmmlearn/hmmlearn
predict_proba
6,047
LDU_FT/django-salesforce/django-salesforce/handle_api_exceptions_inter
LDU_FT
[ "<BEGIN>\n## `db_for_write`", "If given some hints['instance'] that is saved in a db, use related\n fields from the same db. Otherwise if passed a class or instance to\n model, return the salesforce alias if it's a subclass of SalesforceModel.\n<END>", "<BEGIN>\n## `allow_migrate`", "Don't attem...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the handle_api_exceptions_inter 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 handle_api_exceptions_inter API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclu...
The main (middle) part - it is enough if no error occurs.
"The main (middle) part - it is enough if no error occurs."
138
false
django-salesforce/django-salesforce
handle_api_exceptions_inter
6,048
LDU_FT/gmr/queries/_status
LDU_FT
[ "<BEGIN>\n## `close`", "Close the connection", " :raises: ConnectionBusyError\n<END>", "<BEGIN>\n## `busy`", "Return if the connection is currently executing a query or is locked\n by a session that still exists.", " :rtype: bool\n<END>", "<BEGIN>\n## `free`", "Remove the lock on ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _status API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _status API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
Return the current connection status as an integer value. The status should match one of the following constants: - queries.Session.INTRANS: Connection established, in transaction - queries.Session.PREPARED: Prepared for second phase of transaction - queries.Session.READY: Connected, n...
"Return the current connection status as an integer value.\n\n The status should match one of the following constants:\n\n - queries.Session.INTRANS: Connection established, in transaction\n - queries.Session.PREPARED: Prepared for second phase of transaction\n - queries.Session.READY: Conne...
181
false
gmr/queries
_status
6,049
LDU_FT/hozn/coilmq/server_close
LDU_FT
[ "<BEGIN>\n## `server_from_config`", "Gets a configured L{coilmq.server.StompServer} from specified config.", " If `config` is None, global L{coilmq.config.config} var will be used instead.", " The `server_class` and `additional_kwargs` are primarily hooks for using this method\n from a testing enviro...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the server_close API. 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 server_close API. 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...
Closes the socket server and any associated resources.
"Closes the socket server and any associated resources."
211
false
hozn/coilmq
server_close
6,050
LDU_FT/defunkt/pystache/find_name
LDU_FT
[ "<BEGIN>\n## `render`", "Return the given template string rendered using the given context.\n<END>", "<BEGIN>\n## `_get_value`", "Retrieve a key's value from a context item.", " Returns _NOT_FOUND if the key does not exist.", " The ContextStack.get() docstring documents this function's intended beha...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_name API. 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 find_name API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
Return the path to a template with the given name. Arguments: template_name: the name of the template. search_dirs: the list of directories in which to search.
"Return the path to a template with the given name.\n\n Arguments:\n\n template_name: the name of the template.\n\n search_dirs: the list of directories in which to search."
177
false
defunkt/pystache
find_name
6,051
LDU_FT/radjkarl/fancyTools/separate
LDU_FT
[ "<BEGIN>\n## `similarity1DdiffShapedArrays`", "compare two strictly monotonous increasing 1d arrays\n of same or different size\n return a similarity index-> 0=identical\n<END>", "<BEGIN>\n## `inverseHistogram`", "sample data from given histogram and min, max values within range", " Returns:\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the separate API. 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 separate API. 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...
split polylines wherever crinkles are found
"split polylines wherever crinkles are found"
210
false
radjkarl/fancyTools
separate
6,052
LDU_FT/googleapis/google-auth-library-python/from_authorized_user_info
LDU_FT
[ "<BEGIN>\n## `_convert_oauth2_credentials`", "Converts to :class:`google.oauth2.credentials.Credentials`.", " Args:\n credentials (Union[oauth2client.client.OAuth2Credentials,\n oauth2client.client.GoogleCredentials]): The credentials to\n convert.", " Returns:\n goog...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the from_authorized_user_info API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the from_authorized_user_info API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi...
Creates a Credentials instance from parsed authorized user info. Args: info (Mapping[str, str]): The authorized user info in Google format. scopes (Sequence[str]): Optional list of scopes to include in the credentials. Returns: google...
"Creates a Credentials instance from parsed authorized user info.\n\n Args:\n info (Mapping[str, str]): The authorized user info in Google\n format.\n scopes (Sequence[str]): Optional list of scopes to include in the\n credentials.\n\n Returns:\n ...
311
false
googleapis/google-auth-library-python
from_authorized_user_info
6,053
LDU_FT/smarie/python-autoclass/_get_setter_fun
LDU_FT
[ "<BEGIN>\n## `autohash`", "A decorator to makes objects of the class implement __hash__, so that they can be used correctly for example in\n sets.", " Parameters allow to customize the list of attributes that are taken into account in the hash.", " :param include: a tuple of explicit attribute names ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_setter_fun API. 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_setter_fun API. 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...
Utility method to find the overridden setter function for a given property, or generate a new one :param object_type: :param property_name: :param property_type: :param private_property_name: :return:
"Utility method to find the overridden setter function for a given property, or generate a new one\n\n :param object_type:\n :param property_name:\n :param property_type:\n :param private_property_name:\n :return:"
94
false
smarie/python-autoclass
_get_setter_fun
6,054
LDU_FT/Accelize/pycosio/_list_locators
LDU_FT
[ "<BEGIN>\n## `_copy`", "Copies file from source to destination", " Args:\n src (str or file-like object): Source file.\n dst (str or file-like object): Destination file.\n src_is_storage (bool): Source is storage.\n dst_is_storage (bool): Destination is storage.\n<END>", "<BEGIN...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _list_locators API. 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 _list_locators API. 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...
Lists locators. Returns: generator of tuple: locator name str, locator header dict
"Lists locators.\n\n Returns:\n generator of tuple: locator name str, locator header dict"
498
false
Accelize/pycosio
_list_locators
6,055
LDU_FT/edx/pa11ycrawler/check_title_match
LDU_FT
[ "<BEGIN>\n## `make_parser`", "Returns an argparse instance for this script.\n<END>", "<BEGIN>\n## `main`", "Validates script arguments and calls the render_html() function with them.\n<END>", "<BEGIN>\n## `wcag_refs`", "Given a `code` from pa11y, return a list of the WCAG references.\n These references...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the check_title_match API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the check_title_match API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Check if Scrapy reports any issue with the HTML <title> element. If so, compare that <title> element to the title that we got in the A11yItem. If they don't match, something is screwy, and pa11y isn't parsing the page that we expect.
"Check if Scrapy reports any issue with the HTML <title> element.\n If so, compare that <title> element to the title that we got in the\n A11yItem. If they don't match, something is screwy, and pa11y isn't\n parsing the page that we expect."
56
false
edx/pa11ycrawler
check_title_match
6,056
LDU_FT/nok/sklearn-porter/export_data
LDU_FT
[ "<BEGIN>\n## `export`", "Port a trained estimator to the syntax of a chosen programming language.", " Parameters\n ----------\n :param class_name : string\n The name of the class in the returned result.\n :param method_name : string\n The name of the method in t...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the export_data API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the export_data API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
Save model data in a JSON file. Parameters ---------- :param directory : string The directory. :param filename : string The filename. :param with_md5_hash : bool, default: False Whether to append the checksum to the filename or not.
"Save model data in a JSON file.\n\n Parameters\n ----------\n :param directory : string\n The directory.\n :param filename : string\n The filename.\n :param with_md5_hash : bool, default: False\n Whether to append the checksum to the filename or not."
197
false
nok/sklearn-porter
export_data
6,057
LDU_FT/maxfischer2781/chainlet/throw
LDU_FT
[ "<BEGIN>\n## `skip_pickle_inject`", "skip global wrapper._raw_slave names used only for pickle support\n<END>", "<BEGIN>\n## `wraplet_signature`", "have wrapplets use the signature of the slave\n<END>", "<BEGIN>\n## `_chain_forks`", "Detect whether a sequence of elements leads to a fork of streams\n<END>"...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the throw API. 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 throw API. 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...
throw(typ[,val[,tb]]) -> raise exception in generator, return next yielded value or raise StopIteration.
"throw(typ[,val[,tb]]) -> raise exception in generator,\n return next yielded value or raise StopIteration."
95
false
maxfischer2781/chainlet
throw
6,058
LDU_FT/Kopachris/seshet/change_nick
LDU_FT
[ "<BEGIN>\n## `_add_channel_names`", "Add a new channel to self.channels and initialize its user list.", " Called as event handler for RPL_NAMES events. Do not call directly.\n<END>", "<BEGIN>\n## `join`", "Add this user to the channel's user list and add the channel to this\n user's list of jo...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the change_nick API. 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 change_nick API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
Update this user's nick in all joined channels.
"Update this user's nick in all joined channels."
49
false
Kopachris/seshet
change_nick
6,059
LDU_FT/jmoiron/speedparser/base_url
LDU_FT
[ "<BEGIN>\n## `strip_outer_tag`", "Strips the outer tag, if text starts with a tag. Not entity aware;\n designed to quickly strip outer tags from lxml cleaner output. Only\n checks for <p> and <div> outer tags.\n<END>", "<BEGIN>\n## `munge_author`", "If an author contains an email and a name in it, mak...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the base_url API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the base_url API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
Determine the base url for a root element.
"Determine the base url for a root element."
32
false
jmoiron/speedparser
base_url
6,060
LDU_FT/SeabornGames/RequestClient/repr_return
LDU_FT
[ "<BEGIN>\n## `reinstantiate_endpoints`", "This will re-instantiate the endpoints with the connection this time\n :param endpoint: Endpoint object to instantiate the sub endpoint in.\n :return: None\n<END>", "<BEGIN>\n## `_pre_process_call`", "This is called by the method_decorator within...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the repr_return API. 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 repr_return API. 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 is a decorator to give the return value a pretty print repr
"This is a decorator to give the return value a pretty print repr"
148
false
SeabornGames/RequestClient
repr_return
6,061
LDU_FT/mfussenegger/cr8/break_iterable
LDU_FT
[ "<BEGIN>\n## `to_int`", "converts a string to an integer", " >>> to_int('1_000_000')\n 1000000", " >>> to_int('1e6')\n 1000000", " >>> to_int('1000')\n 1000\n<END>", "<BEGIN>\n## `dicts_from_lines`", "returns a generator producing dicts from json lines", " 1 JSON object per line i...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the break_iterable API. 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 break_iterable API. 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...
Break a iterable on the item that matches the predicate into lists. The item that matched the predicate is not included in the result. >>> list(break_iterable([1, 2, 3, 4], lambda x: x == 3)) [[1, 2], [4]]
"Break a iterable on the item that matches the predicate into lists.\n\n The item that matched the predicate is not included in the result.\n\n >>> list(break_iterable([1, 2, 3, 4], lambda x: x == 3))\n [[1, 2], [4]]"
146
false
mfussenegger/cr8
break_iterable
6,062
LDU_FT/btrevizan/pystrct/get
LDU_FT
[ "<BEGIN>\n## `size`", "Calculate and return the file size in bytes.\n<END>", "<BEGIN>\n## `prev`", "Get the previous n data from file.", " Keyword argument:\n n -- number of structs to be retrieved (default 1)\n Must be greater than 0.", " Return:\n A da...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
Get the n data starting from the ith. Keyword argument: i -- position in file n -- number of structs to be retrieved (default 1) Must be greater than 0. Return: A data in the format of obj_fmt, if n = 1. A list of structs, otherwise. ...
"Get the n data starting from the ith.\n\n Keyword argument:\n i -- position in file\n n -- number of structs to be retrieved (default 1)\n Must be greater than 0.\n\n Return:\n A data in the format of obj_fmt, if n = 1. A list of\n structs, othe...
22
false
btrevizan/pystrct
get
6,063
LDU_FT/ottogroup/palladium/create_predict_function
LDU_FT
[ "<BEGIN>\n## `apply_kwargs`", "Call *func* with kwargs, but only those kwargs that it accepts.\n<END>", "<BEGIN>\n## `args_from_config`", "Decorator that injects parameters from the configuration.\n<END>", "<BEGIN>\n## `memory_usage_psutil`", "Return the current process memory usage in MB.\n<END>", "<BE...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_predict_function API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_predict_function API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion...
Creates a predict function and registers it to the Flask app using the route decorator. :param str route: Path of the entry point. :param palladium.interfaces.PredictService predict_service: The predict service to be registered to this entry point. :param str decorator_list_name: Th...
"Creates a predict function and registers it to\n the Flask app using the route decorator.\n\n :param str route:\n Path of the entry point.\n\n :param palladium.interfaces.PredictService predict_service:\n The predict service to be registered to this entry point.\n\n :param str decorator_list_name...
86
false
ottogroup/palladium
create_predict_function
6,064
LDU_FT/emirozer/fake2db/data_filler_customer
LDU_FT
[ "<BEGIN>\n## `database_caller_creator`", "creates a mongodb database\n returns the related connection object\n which will be later used to spawn the cursor\n<END>", "<BEGIN>\n## `database_caller_creator`", "creates a redis connection object\n which will be later used to modify the db\n<EN...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the data_filler_customer 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 data_filler_customer API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
creates and fills the table with customer data
"creates and fills the table with customer data"
44
false
emirozer/fake2db
data_filler_customer
6,065
LDU_FT/phareous/insteonlocal/start_change
LDU_FT
[ "<BEGIN>\n## `scene_command`", "Wrapper to send posted scene command and get response\n<END>", "<BEGIN>\n## `brightness_to_hex`", "Convert numeric brightness percentage into hex for insteon\n<END>", "<BEGIN>\n## `direct_command`", "Wrapper to send posted direct command and get response. Level is 0-100.\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the start_change API. 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 start_change API. 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...
Start changing light level manually. Direction should be 'up' or 'down
"Start changing light level manually. Direction should be 'up' or 'down"
26
false
phareous/insteonlocal
start_change
6,066
LDU_FT/bokeh/bokeh/from_py_func
LDU_FT
[ "<BEGIN>\n## `notify_owner`", "A decorator for mutating methods of property container classes\n that notifies owners of the property container about mutating changes.", " Args:\n func (callable) : the container method to wrap in a notification", " Returns:\n wrapped method", " Exam...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the from_py_func API. 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 from_py_func API. 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...
Create a ``CustomJSTransform`` instance from a pair of Python functions. The function is translated to JavaScript using PScript. The python functions must have no positional arguments. It's possible to pass Bokeh models (e.g. a ``ColumnDataSource``) as keyword arguments to the functions...
"Create a ``CustomJSTransform`` instance from a pair of Python\n functions. The function is translated to JavaScript using PScript.\n\n The python functions must have no positional arguments. It's\n possible to pass Bokeh models (e.g. a ``ColumnDataSource``) as keyword\n arguments to the fun...
2,090
true
bokeh/bokeh
from_py_func
6,067
LDU_FT/aio-libs/aioredis/cluster_count_key_in_slots
LDU_FT
[ "<BEGIN>\n## `create_sentinel`", "Creates Redis Sentinel client.", " `sentinels` is a list of sentinel nodes.\n<END>", "<BEGIN>\n## `execute`", "Execute Sentinel command.", " It will be prefixed with SENTINEL automatically.\n<END>", "<BEGIN>\n## `master`", "Returns a dictionary containing th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the cluster_count_key_in_slots 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 cluster_count_key_in_slots API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclus...
Return the number of local keys in the specified hash slot.
"Return the number of local keys in the specified hash slot."
496
false
aio-libs/aioredis
cluster_count_key_in_slots
6,068
LDU_FT/tensorflow/skflow/write_markdown_to_file
LDU_FT
[ "<BEGIN>\n## `collect_members`", "Collect all symbols from a list of modules.", " Args:\n module_to_name: Dictionary mapping modules to short names.", " Returns:\n Dictionary mapping name to (fullname, member) pairs.\n<END>", "<BEGIN>\n## `_get_anchor`", "Turn a full member name into an anchor.", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the write_markdown_to_file API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the write_markdown_to_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....
Writes this index to file `f`. The output is formatted as an unordered list. Each list element contains the title of the library, followed by a list of symbols in that library hyperlinked to the corresponding anchor in that library. Args: f: The output file.
"Writes this index to file `f`.\n\n The output is formatted as an unordered list. Each list element\n contains the title of the library, followed by a list of symbols\n in that library hyperlinked to the corresponding anchor in that\n library.\n\n Args:\n f: The output file."
46
false
tensorflow/skflow
write_markdown_to_file
6,069
LDU_FT/serge-sans-paille/pythran/visit_Module
LDU_FT
[ "<BEGIN>\n## `check_specs`", "Does nothing but raising PythranSyntaxError if specs\n are incompatible with the actual code\n<END>", "<BEGIN>\n## `check_exports`", "Does nothing but raising PythranSyntaxError if specs\n references an undefined global\n<END>", "<BEGIN>\n## `visit_Import`", "Check if i...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the visit_Module API. 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 visit_Module API. 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...
Visit the whole module and add all import at the top level. >> import numpy.linalg Becomes >> import numpy
"Visit the whole module and add all import at the top level.\n\n >> import numpy.linalg\n\n Becomes\n\n >> import numpy"
547
false
serge-sans-paille/pythran
visit_Module
6,070
LDU_FT/StorjOld/pyp2p/forward_port
LDU_FT
[ "<BEGIN>\n## `set_keep_alive`", "This function instructs the TCP socket to send a heart beat every n\n seconds to detect dead connections. It's the TCP equivalent of the\n IRC ping-pong protocol and allows for better cleanup / detection\n of dead TCP connections.", " It activates aft...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the forward_port API. 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 forward_port API. 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...
Creates a new mapping for the default gateway to forward ports. Source port is from the perspective of the original client. For example, if a client tries to connect to us on port 80, the source port is port 80. The destination port isn't necessarily 80, however. We might wish to run our...
"Creates a new mapping for the default gateway to forward ports.\n Source port is from the perspective of the original client.\n For example, if a client tries to connect to us on port 80,\n the source port is port 80. The destination port isn't\n necessarily 80, however. We might wish to ru...
88
false
StorjOld/pyp2p
forward_port
6,071
LDU_FT/ayust/kitnirc/is_admin
LDU_FT
[ "<BEGIN>\n## `on_line`", "Default handling for incoming lines.", " This handler will automatically manage the following IRC messages:", " PING:\n Responds with a PONG.\n PRIVMSG:\n Dispatches the PRIVMSG event.\n NOTICE:\n Dispatches the NOTICE event.\n MOTDSTART:\n...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_admin API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_admin API. 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...
Used to determine whether someone issuing a command is an admin. By default, checks to see if there's a line of the type nick=host that matches the command's actor in the [admins] section of the config file, or a key that matches the entire mask (e.g. "foo@bar" or "foo@bar=1").
"Used to determine whether someone issuing a command is an admin.\n\n By default, checks to see if there's a line of the type nick=host that\n matches the command's actor in the [admins] section of the config file,\n or a key that matches the entire mask (e.g. \"foo@bar\" or \"foo@bar=1\")."
151
false
ayust/kitnirc
is_admin
6,072