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/jameslyons/pycipher/decipher
LDU_FT
[ "<BEGIN>\n## `encipher`", "Encipher string using Atbash cipher.", " Example::", " ciphertext = Atbash().encipher(plaintext) ", " :param string: The string to encipher.\n :param keep_punct: if true, punctuation and spacing are retained. If false, it is all removed. Default...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the decipher API. 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 decipher API. 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...
Decipher string using Foursquare cipher according to initialised key. Punctuation and whitespace are removed from the input. The ciphertext should be an even number of characters. If the input ciphertext is not an even number of characters, an 'X' will be appended. Example:: plaintext = Fo...
"Decipher string using Foursquare cipher according to initialised key. Punctuation and whitespace\n are removed from the input. The ciphertext should be an even number of characters. If the input ciphertext is not an even number of characters, an 'X' will be appended.\n\n Example::\n\n plaintex...
135
false
jameslyons/pycipher
decipher
19,273
LDU_FT/mardiros/pyshop/by_owner
LDU_FT
[ "<BEGIN>\n## `update_model`", "trivial implementation for simple data in the form,\n using the model prefix.\n<END>", "<BEGIN>\n## `locale_negotiator`", "Locale negotiator base on the `Accept-Language` header\n<END>", "<BEGIN>\n## `main`", "Get a PyShop WSGI application configured with settings.\n<...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the by_owner API. 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 by_owner API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
Get packages from a given owner username. :param session: SQLAlchemy session :type session: :class:`sqlalchemy.Session` :param owner_name: owner username :type owner_name: unicode :return: package instances :rtype: generator of :class:`pyshop.models.Package`
"Get packages from a given owner username.\n\n :param session: SQLAlchemy session\n :type session: :class:`sqlalchemy.Session`\n\n :param owner_name: owner username\n :type owner_name: unicode\n\n :return: package instances\n :rtype: generator of :class:`pyshop.models.Package`"
135
false
mardiros/pyshop
by_owner
19,274
LDU_FT/dillonhicks/rekt/load_builtin_config
LDU_FT
[ "<BEGIN>\n## `load_builtin_config`", "Uses package info magic to find the resource file located in the specs\n submodule.\n<END>", "<BEGIN>\n## `load_config`", "Loads a yaml configuration.", " :param path: a pathlib Path object pointing to the configuration\n<END>", "<BEGIN>\n## `load_swagger_config`...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load_builtin_config API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load_builtin_config API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
Uses package info magic to find the resource file located in the specs submodule.
"Uses package info magic to find the resource file located in the specs\n submodule."
19
false
dillonhicks/rekt
load_builtin_config
19,275
LDU_FT/tmbo/questionary/text
LDU_FT
[ "<BEGIN>\n## `default_values_of`", "Return the defaults of the function `func`.\n<END>", "<BEGIN>\n## `required_arguments`", "Return all arguments of a function that do not have a default value.\n<END>", "<BEGIN>\n## `text`", "Prompt the user to enter a free text message.", " This question type ca...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the text API. 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 text API. 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...
Prompt the user to enter a free text message. This question type can be used to prompt the user for some text input. Args: message: Question text default: Default value will be returned if the user just hits enter. validate: Require the entered valu...
"Prompt the user to enter a free text message.\n\n This question type can be used to prompt the user for some text input.\n\n Args:\n message: Question text\n\n default: Default value will be returned if the user just hits\n enter.\n\n validate: Require the e...
84
false
tmbo/questionary
text
19,276
LDU_FT/ffalcinelli/pydivert/get_param
LDU_FT
[ "<BEGIN>\n## `check_filter`", "Checks if the given packet filter string is valid with respect to the filter language.", " The remapped function is WinDivertHelperCheckFilter::", " BOOL WinDivertHelperCheckFilter(\n __in const char *filter,\n __in WINDIVERT_LAYER...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_param API. 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_param API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
Get a WinDivert parameter. See pydivert.Param for the list of parameters. The remapped function is WinDivertGetParam:: BOOL WinDivertGetParam( __in HANDLE handle, __in WINDIVERT_PARAM param, __out UINT64 *pValue ); For more info ...
"Get a WinDivert parameter. See pydivert.Param for the list of parameters.\n\n The remapped function is WinDivertGetParam::\n\n BOOL WinDivertGetParam(\n __in HANDLE handle,\n __in WINDIVERT_PARAM param,\n __out UINT64 *pValue\n );\n\n For...
67
false
ffalcinelli/pydivert
get_param
19,277
LDU_FT/roaet/eh/_format
LDU_FT
[ "<BEGIN>\n## `make_sample`", "Generate the theme roller sample markdown\n<END>", "<BEGIN>\n## `col`", "print col('foo', 124) -> red 'foo' on the terminal\n c = color, s the value to colorize\n<END>", "<BEGIN>\n## `rewrap`", "Reasonably smart rewrapping checking punctuations\n<END>", "<BEGIN>\n## `spl...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _format API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _format API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
Format a value accoding to its type. Unicode is supported: >>> hrow = ['\u0431\u0443\u043a\u0432\u0430', '\u0446\u0438\u0444\u0440\u0430'] ; \ tbl = [['\u0430\u0437', 2], ['\u0431\u0443\u043a\u0438', 4]] ; \ good_result = '\\u0431\\u0443\\u043a\\u0432\\u0430 \\u0446\\u0438\\u0444\\u0440\\...
"Format a value accoding to its type.\n\n Unicode is supported:\n\n >>> hrow = ['\\u0431\\u0443\\u043a\\u0432\\u0430', '\\u0446\\u0438\\u0444\\u0440\\u0430'] ; \\\n tbl = [['\\u0430\\u0437', 2], ['\\u0431\\u0443\\u043a\\u0438', 4]] ; \\\n good_result = '\\\\u0431\\\\u0443\\\\u043a\\\\u0432\\\\u0430 ...
35
false
roaet/eh
_format
19,278
LDU_FT/oseledets/ttpy/_compute_next_Phi
LDU_FT
[ "<BEGIN>\n## `kron`", "Kronecker product of two TT-matrices or two TT-vectors\n<END>", "<BEGIN>\n## `dot`", "Dot product of two TT-matrices or two TT-vectors\n<END>", "<BEGIN>\n## `zkron`", "Do kronecker product between cores of two matrices ttA and ttB.\n Look about kronecker at: https://en.wikipedia....
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _compute_next_Phi API. 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 _compute_next_Phi API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Performs the recurrent Phi (or Psi) matrix computation Phi = Phi_prev * (x'Ay). If direction is 'lr', computes Psi if direction is 'rl', computes Phi A can be empty, then only x'y is computed. Phi1: rx1, ry1, ra1, or {rx1, ry1}_ra, or rx1, ry1 Phi2: ry2, ra2, rx2, or {ry2, rx2}_ra, or r...
"Performs the recurrent Phi (or Psi) matrix computation\n Phi = Phi_prev * (x'Ay).\n If direction is 'lr', computes Psi\n if direction is 'rl', computes Phi\n A can be empty, then only x'y is computed.\n\n Phi1: rx1, ry1, ra1, or {rx1, ry1}_ra, or rx1, ry1\n Phi2: ry2, ra2, rx2, or {ry2, rx2}_...
196
false
oseledets/ttpy
_compute_next_Phi
19,279
LDU_FT/michaelbrooks/twitter-monitor/launch_debugger
LDU_FT
[ "<BEGIN>\n## `on_error`", "Called when a non-200 status code is returned\n<END>", "<BEGIN>\n## `on_exception`", "An exception occurred in the streaming thread\n<END>", "<BEGIN>\n## `check`", "Checks if the list of tracked terms has changed.\n Returns True if changed, otherwise False.\n<END>", "<B...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the launch_debugger API. 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 launch_debugger API. 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...
Interrupt running process, and provide a python prompt for interactive debugging.
"Interrupt running process, and provide a python prompt for\n interactive debugging."
24
false
michaelbrooks/twitter-monitor
launch_debugger
19,280
LDU_FT/bram85/topydo/match
LDU_FT
[ "<BEGIN>\n## `_process_flags`", "Override to add an additional check after processing the flags: when\n there are no flags left after argument parsing, then it means we'll be\n editing the whole todo.txt file as a whole and therefore we're not in\n multi mode.\n<END>", "<BEGIN>\n## `get_tod...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the match API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the match API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
Returns True when p_todo doesn't have a tag to mark it as hidden.
"Returns True when p_todo doesn't have a tag to mark it as hidden."
331
false
bram85/topydo
match
19,281
LDU_FT/inveniosoftware-attic/invenio-comments/comments_nb_counts
LDU_FT
[ "<BEGIN>\n## `perform_request_display_comments_or_remarks`", "Returns all the comments (reviews) of a specific internal record or external basket record.\n :param recID: record id where (internal record IDs > 0) or (external basket record IDs < -100)\n :param display_order: hh = highest helpful score...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the comments_nb_counts 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 comments_nb_counts 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 number of comments for the record `recid`.
"Get number of comments for the record `recid`."
123
false
inveniosoftware-attic/invenio-comments
comments_nb_counts
19,282
LDU_FT/saschpe/rapport/iso_to_gregorian
LDU_FT
[ "<BEGIN>\n## `iso_year_start`", "The gregorian calendar date of the first day of the given ISO year\n<END>", "<BEGIN>\n## `iso_to_gregorian`", "Gregorian calendar date for the given ISO year, week and day\n<END>", "<BEGIN>\n## `week_to_datetime`", "datetime instance for the start of the given ISO year and...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the iso_to_gregorian API. 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 iso_to_gregorian API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Gregorian calendar date for the given ISO year, week and day
"Gregorian calendar date for the given ISO year, week and day"
44
false
saschpe/rapport
iso_to_gregorian
19,283
LDU_FT/pinax/django-user-accounts/get_form_kwargs
LDU_FT
[ "<BEGIN>\n## `user_post_save`", "After User.save is called we check to see if it was a created user. If so,\n we check if the User object wants account creation. If all passes we\n create an Account object.", " We only run on user creation to avoid having to check for existence on\n each call to Use...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_form_kwargs API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_form_kwargs API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
Returns the keyword arguments for instantiating the form.
"Returns the keyword arguments for instantiating the form."
16
false
pinax/django-user-accounts
get_form_kwargs
19,284
LDU_FT/aganezov/bg/get_edges_from_parsed_data
LDU_FT
[ "<BEGIN>\n## `add_edge`", "Adds a new edge to the current tree with specified characteristics", " Forbids addition of an edge, if a parent node is not present\n Forbids addition of an edge, if a child node already exists", " :param node1_name: name of the parent node, to which an edge sha...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_edges_from_parsed_data API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclus...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_edges_from_parsed_data API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclus...
Taking into account fragment type (circular|linear) and retrieved gene order information translates adjacencies between blocks into edges for addition to the :class:`bg.breakpoint_graph.BreakpointGraph` In case supplied fragment is linear (``$``) special artificial vertices (with ``__infinity`` suffix) are int...
"Taking into account fragment type (circular|linear) and retrieved gene order information translates adjacencies between blocks into edges for addition to the :class:`bg.breakpoint_graph.BreakpointGraph`\n\n In case supplied fragment is linear (``$``) special artificial vertices (with ``__infinity`` suffix) are ...
226
false
aganezov/bg
get_edges_from_parsed_data
19,285
LDU_FT/jreese/aioslack/generate
LDU_FT
[ "<BEGIN>\n## `rtm`", "Connect to the realtime event API and start yielding events.\n<END>", "<BEGIN>\n## `decode`", "Decode <@id> and <!alias> into @username.\n<END>", "<BEGIN>\n## `encode`", "Encode @username into <@id> or <!alias>.\n<END>", "<BEGIN>\n## `build`", "Build objects from dictionaries, re...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the generate API. 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 generate API. 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...
Build dataclasses and objects from dictionaries, recursively.
"Build dataclasses and objects from dictionaries, recursively."
10
false
jreese/aioslack
generate
19,286
LDU_FT/CityOfZion/neo-python/VerifyScripts
LDU_FT
[ "<BEGIN>\n## `Clone`", "Clone self.", " Returns:\n AccountState:\n<END>", "<BEGIN>\n## `FromReplica`", "Get AccountState object from a replica.\n Args:\n replica (obj): must have ScriptHash, IsFrozen, Votes and Balances members.", " Returns:\n AccountS...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the VerifyScripts API. 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 VerifyScripts API. 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...
Verify the scripts of the provided `verifiable` object. Args: verifiable (neo.IO.Mixins.VerifiableMixin): Returns: bool: True if verification is successful. False otherwise.
"Verify the scripts of the provided `verifiable` object.\n\n Args:\n verifiable (neo.IO.Mixins.VerifiableMixin):\n\n Returns:\n bool: True if verification is successful. False otherwise."
962
false
CityOfZion/neo-python
VerifyScripts
19,287
LDU_FT/ttinoco/OPTALG/set_centralized_assembled
LDU_FT
[ "<BEGIN>\n## `solve`", "Solves optimization problem.", " Parameters\n ----------\n problem : Object\n<END>", "<BEGIN>\n## `factorize`", "Factorizes A.", " Parameters\n ----------\n A : matrix\n For symmetric systems, should contain only lower diagonal pa...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_centralized_assembled 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 set_centralized_assembled API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi...
Set assembled matrix on processor 0. The row and column indices (irn & jcn) should be one based.
"Set assembled matrix on processor 0.\n\n The row and column indices (irn & jcn) should be one based."
86
false
ttinoco/OPTALG
set_centralized_assembled
19,288
LDU_FT/iclab/centinel/_get_http_request
LDU_FT
[ "<BEGIN>\n## `parse_out_ips`", "Given a message, parse out the ips in the answer\n<END>", "<BEGIN>\n## `send_chaos_queries`", "Send chaos queries to identify the DNS server and its manufacturer", " Note: we send 2 queries for BIND stuff per RFC 4892 and 1\n query per RFC 6304", " Note...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_http_request API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_http_request API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Actually gets the http. Moved this to it's own private method since it is called several times for following redirects :param host: :param path: :param headers: :param ssl: :return:
"Actually gets the http. Moved this to it's own private method since\n it is called several times for following redirects\n\n :param host:\n :param path:\n :param headers:\n :param ssl:\n :return:"
116
false
iclab/centinel
_get_http_request
19,289
LDU_FT/DeepHorizons/iarm/BNE
LDU_FT
[ "<BEGIN>\n## `ADR`", "ADR Ra, [PC, #imm10_4]\n ADR Ra, label", " Load the address of label or the PC offset into Ra\n Ra must be a low register\n<END>", "<BEGIN>\n## `LDR`", "LDR Ra, [PC, #imm10_4]\n LDR Ra, label\n LDR Ra, =equate\n LDR Ra, [Rb, Rc]\n LDR Ra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the BNE API. 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 BNE API. 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...
BNE label Branch to the instruction at label if the Z flag is not set
"BNE label\n\n Branch to the instruction at label if the Z flag is not set"
253
false
DeepHorizons/iarm
BNE
19,290
LDU_FT/boppreh/keyboard/on_release
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 on_release API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the on_release API. 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...
Invokes `callback` for every KEY_UP event. For details see `hook`.
"Invokes `callback` for every KEY_UP event. For details see `hook`."
158
false
boppreh/keyboard
on_release
19,291
LDU_FT/honzamach/pydgets/fmt_data
LDU_FT
[ "<BEGIN>\n## `terminal_size`", "Detect the current size of terminal window as a numer of rows and columns.\n<END>", "<BEGIN>\n## `list_settings`", "Get list of all appropriate settings and their default values.", " The returned list is then used in setup() and get_setup() methods to setup\n th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the fmt_data API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the fmt_data API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
Format given text according to given data formating pattern or data type.
"Format given text according to given data formating pattern or data type."
71
false
honzamach/pydgets
fmt_data
19,292
LDU_FT/joestump/django-ajax/import_by_path
LDU_FT
[ "<BEGIN>\n## `json_response`", "Wrap a view in JSON.", " This decorator runs the given function and looks out for ajax.AJAXError's,\n which it encodes into a proper HttpResponse object. If an unknown error\n is thrown it's encoded as a 500.", " All errors are then packaged up with an appropriate C...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the import_by_path API. 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 import_by_path API. 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...
Import a dotted module path and return the attribute/class designated by the last name in the path. Raise ImproperlyConfigured if something goes wrong. This has come straight from Django 1.6
"Import a dotted module path and return the attribute/class designated by\n the last name in the path. Raise ImproperlyConfigured if something goes\n wrong. This has come straight from Django 1.6"
27
false
joestump/django-ajax
import_by_path
19,293
LDU_FT/Shizmob/pydle/verify_tls
LDU_FT
[ "<BEGIN>\n## `on_ctcp_version`", "Built-in CTCP version as some networks seem to require it.\n<END>", "<BEGIN>\n## `on_raw_privmsg`", "Modify PRIVMSG to redirect CTCP messages.\n<END>", "<BEGIN>\n## `on_raw_notice`", "Modify NOTICE to redirect CTCP messages.\n<END>", "<BEGIN>\n## `_register`", "Hijack...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the verify_tls API. 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 verify_tls API. 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...
Verify a TLS connection. Return behaviour is dependent on the as_callback parameter: - If True, a return value of None means verification succeeded, else it failed. - If False, a return value of True means verification succeeded, an exception or False means it failed.
"Verify a TLS connection. Return behaviour is dependent on the as_callback parameter:\n - If True, a return value of None means verification succeeded, else it failed.\n - If False, a return value of True means verification succeeded, an exception or False means it failed."
96
false
Shizmob/pydle
verify_tls
19,294
LDU_FT/djaodjin/djaodjin-deployutils/fill_package
LDU_FT
[ "<BEGIN>\n## `filter`", "Adds user and remote_addr to the record.\n<END>", "<BEGIN>\n## `package_theme`", "Package resources and templates for a multi-tier environment\n into a zip file.", " Templates are pre-compiled into ``*build_dir*/*app_name*/templates``.\n Compilation means {% assets '*path*'...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the fill_package API. 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 fill_package API. 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 the theme package (.zip) from templates and optionally assets installed in the ``build_dir``.
"Creates the theme package (.zip) from templates and optionally\n assets installed in the ``build_dir``."
82
false
djaodjin/djaodjin-deployutils
fill_package
19,295
LDU_FT/sailthru/sailthru-python-client/save_alert
LDU_FT
[ "<BEGIN>\n## `flatten_nested_hash`", "Flatten nested dictionary for GET / POST / DELETE API request\n<END>", "<BEGIN>\n## `sailthru_http_request`", "Perform an HTTP GET / POST / DELETE request\n<END>", "<BEGIN>\n## `extract_params`", "Extracts the values of a set of parameters, recursing into nested dicti...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the save_alert API. 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 save_alert API. 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...
Add a new alert to a user. You can add either a realtime or a summary alert (daily/weekly). http://docs.sailthru.com/api/alert Usage: email = 'praj@sailthru.com' type = 'weekly' template = 'default' when = '+5 hours' alert_options = {'match': ...
"Add a new alert to a user. You can add either a realtime or a summary alert (daily/weekly).\n http://docs.sailthru.com/api/alert\n\n Usage:\n email = 'praj@sailthru.com'\n type = 'weekly'\n template = 'default'\n when = '+5 hours'\n alert_options = {...
64
false
sailthru/sailthru-python-client
save_alert
19,296
LDU_FT/mdickinson/bigfloat/greater
LDU_FT
[ "<BEGIN>\n## `build`", "Build the bigfloat library for in-place testing.\n<END>", "<BEGIN>\n## `_quotient_exponent`", "Given two positive finite MPFR instances x and y,\n find the exponent of x / y; that is, the unique\n integer e such that 2**(e-1) <= x / y < 2**e.\n<END>", "<BEGIN>\n## `mpfr_floordi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the greater API. 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 greater API. 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 True if x > y and False otherwise. This function returns False whenever x and/or y is a NaN.
"Return True if x > y and False otherwise.\n\n This function returns False whenever x and/or y is a NaN."
273
false
mdickinson/bigfloat
greater
19,297
LDU_FT/playpauseandstop/rororo/_merge_data
LDU_FT
[ "<BEGIN>\n## `str_to_timedelta`", "Convert string value to timedelta instance according to the given format.", " If format not set function tries to load timedelta using default\n ``TIMEDELTA_FORMAT`` and then both of magic \"full\" formats.", " You should also specify list of formats and function tr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _merge_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 _merge_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...
r"""Merge base data and additional dicts. :param data: Base data. :param \*additional: Additional data dicts to be merged into base dict.
"r\"\"\"Merge base data and additional dicts.\n\n :param data: Base data.\n :param \\*additional: Additional data dicts to be merged into base dict."
128
false
playpauseandstop/rororo
_merge_data
19,298
LDU_FT/AndresMWeber/Nomenclate/_get_abbreviations
LDU_FT
[ "<BEGIN>\n## `purge_tokens`", "Removes all specified token_attrs that exist in instance.token_attrs", " :param token_attrs: list(str), list of string values of tokens to remove. If None, removes all\n<END>", "<BEGIN>\n## `combine_dicts`", "Combines all arguments (if they are dictionaries) and kwargs...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_abbreviations 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_abbreviations 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...
Generates abbreviations for input_string :param input_string: str, name of object :param output_length: int, optional specific length of abbreviations, default is off :return: list(str), list of all combinations that include the first letter (possible abbreviations)
"Generates abbreviations for input_string\n\n :param input_string: str, name of object\n :param output_length: int, optional specific length of abbreviations, default is off\n :return: list(str), list of all combinations that include the first letter (possible abbreviations)"
140
false
AndresMWeber/Nomenclate
_get_abbreviations
19,299
LDU_FT/blazelibs/blazeutils/prependsitedir
LDU_FT
[ "<BEGIN>\n## `workbook_to_reader`", "convert xlwt Workbook instance to an xlrd instance for reading\n<END>", "<BEGIN>\n## `xlsx_to_strio`", "convert xlwt Workbook instance to a BytesIO instance\n<END>", "<BEGIN>\n## `xlsx_to_reader`", "convert xlwt Workbook instance to an xlrd instance for reading\n<END>"...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the prependsitedir API. 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 prependsitedir API. 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...
like sys.addsitedir() but gives the added directory preference over system directories. The paths will be normalized for dots and slash direction before being added to the path. projdir: the path you want to add to sys.path. If its a a file, the parent directory will be added ...
"like sys.addsitedir() but gives the added directory preference\n over system directories. The paths will be normalized for dots and\n slash direction before being added to the path.\n\n projdir: the path you want to add to sys.path. If its a\n a file, the parent directory will be adde...
135
false
blazelibs/blazeutils
prependsitedir
19,300
LDU_FT/okpy/ok-client/canonicalize
LDU_FT
[ "<BEGIN>\n## `load`", "Prepares a set of setup, test, and teardown code to be\n run in the console.", " PARAMETERS:\n code -- list; processed lines of code. Elements in the list are\n either strings (input) or CodeAnswer objects (output)\n setup -- str; raw ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the canonicalize API. 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 canonicalize API. 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...
Takes an assessment/question's ID and canonicalizeicalizes it across iterations of a course.
"Takes an assessment/question's ID and canonicalizeicalizes it across iterations of\n a course."
141
false
okpy/ok-client
canonicalize
19,301
LDU_FT/digmore/pypushed/push_channel
LDU_FT
[ "<BEGIN>\n## `push_app`", "Push a notification to a Pushed application.", " Param: content -> content of Pushed notification message\n content_url (optional) -> enrich message with URL\n Returns Shipment ID as string\n<END>", "<BEGIN>\n## `push_channel`", "Push a notification to ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the push_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 extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the push_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 extr...
Push a notification to a Pushed channel. Param: content -> content of Pushed notification message channel -> string identifying a Pushed channel content_url (optional) -> enrich message with URL Returns Shipment ID as string
"Push a notification to a Pushed channel.\n\n Param: content -> content of Pushed notification message\n channel -> string identifying a Pushed channel\n content_url (optional) -> enrich message with URL\n Returns Shipment ID as string"
18
false
digmore/pypushed
push_channel
19,302
LDU_FT/kmike/django-generic-images/reverse
LDU_FT
[ "<BEGIN>\n## `attachedimage_form_factory`", "Returns ModelForm class to be used in admin.\n 'lang' is the language for GearsUploader (can be 'en' and 'ru' at the\n moment).\n<END>", "<BEGIN>\n## `attachedimages_inline_factory`", "Returns InlineModelAdmin for attached images.\n 'lang' is t...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the reverse API. 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 reverse API. 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...
Reverse an url taking self.app_name in account
"Reverse an url taking self.app_name in account"
59
false
kmike/django-generic-images
reverse
19,303
LDU_FT/booktype/python-ooxml/parse_paragraph
LDU_FT
[ "<BEGIN>\n## `parse_drawing`", "Parse drawing element.", " We don't do much with drawing element. We can find embeded image but we don't do more than that.\n<END>", "<BEGIN>\n## `parse_paragraph`", "Parse paragraph element.", " Some other elements could be found inside of paragraph element (math, li...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_paragraph API. 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 parse_paragraph API. 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...
Parse paragraph element. Some other elements could be found inside of paragraph element (math, links).
"Parse paragraph element.\n\n Some other elements could be found inside of paragraph element (math, links)."
117
false
booktype/python-ooxml
parse_paragraph
19,304
LDU_FT/mswart/pyopenmensa/setLegendData
LDU_FT
[ "<BEGIN>\n## `extractDate`", "Tries to extract a date from a given :obj:`str`.", " :param str text: Input date. A :obj:`datetime.date` object is passed\n thought without modification.\n :rtype: :obj:`datetime.date`\n<END>", "<BEGIN>\n## `convertPrice`", "Helper function to convert ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the setLegendData API. 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 setLegendData API. 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...
Set or genernate the legend data from this canteen. Uses :py:func:`.buildLegend` for genernating
"Set or genernate the legend data from this canteen.\n Uses :py:func:`.buildLegend` for genernating"
43
false
mswart/pyopenmensa
setLegendData
19,305
LDU_FT/BD2KGenomics/toil-scripts/upload_bam_to_s3
LDU_FT
[ "<BEGIN>\n## `kmer_dag`", "Optionally launches a Spark cluster and then runs ADAM to count k-mers on an\n input file.", " :param job: Toil job\n :param input_file: URL/path to input file to count k-mers on\n :param output_path: URL/path to save k-mer counts at\n :param kmer_length: The length of ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the upload_bam_to_s3 API. 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 upload_bam_to_s3 API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Uploads output BAM from sample to S3 Input1: Toil Job instance Input2: jobstore id dictionary Input3: Input arguments dictionary Input4: Sample tuple -- contains uuid and urls for the sample
"Uploads output BAM from sample to S3\n\n Input1: Toil Job instance\n Input2: jobstore id dictionary\n Input3: Input arguments dictionary\n Input4: Sample tuple -- contains uuid and urls for the sample"
278
false
BD2KGenomics/toil-scripts
upload_bam_to_s3
19,306
LDU_FT/chop-dbhi/varify/merge_commit
LDU_FT
[ "<BEGIN>\n## `set_cell_value`", "Convenience method for setting the value of an openpyxl cell", " This is necessary since the value property changed from internal_value\n to value between version 1.* and 2.*.\n<END>", "<BEGIN>\n## `get_change_type`", "Given ref, allele1, and allele2, returns the type ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the merge_commit API. 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 merge_commit API. 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...
Fetches the latest code and merges up the specified commit.
"Fetches the latest code and merges up the specified commit."
27
false
chop-dbhi/varify
merge_commit
19,307
LDU_FT/jcrist/skein/from_dict
LDU_FT
[ "<BEGIN>\n## `add_page`", "Add a new proxied page to the Web UI.", " Parameters\n ----------\n route : str\n The route for the proxied page. Must be a valid path *segment* in a\n url (e.g. ``foo`` in ``/foo/bar/baz``). Routes must be unique\n across the appl...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the from_dict API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the from_dict API. 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...
Create an instance from a dict. Keys in the dict should match parameter names
"Create an instance from a dict.\n\n Keys in the dict should match parameter names"
153
false
jcrist/skein
from_dict
19,308
LDU_FT/mcs07/ChemDataExtractor/extract_smiles
LDU_FT
[ "<BEGIN>\n## `train_punkt`", "Train Punkt sentence splitter using sentences in input.\n<END>", "<BEGIN>\n## `sentences`", "Read input document, and output sentences.\n<END>", "<BEGIN>\n## `_in_stoplist`", "Return True if the entity is in the stoplist.\n<END>", "<BEGIN>\n## `tag`", "Run individual chem...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the extract_smiles API. 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 extract_smiles API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
Return a list of SMILES identifiers extracted from the string.
"Return a list of SMILES identifiers extracted from the string."
243
false
mcs07/ChemDataExtractor
extract_smiles
19,309
LDU_FT/jay-johnson/antinex-client/get_prepare_by_id
LDU_FT
[ "<BEGIN>\n## `generate_ai_request`", "generate_ai_request", " :param predict_rows: list of predict rows to build into the request\n :param req_dict: request dictionary to update - for long-running clients\n :param req_file: file holding a request dict to update - one-off tests\n :param features: fea...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_prepare_by_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. The...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_prepare_by_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. The...
get_prepare_by_id :param prepare_id: MLJob.id in the database
"get_prepare_by_id\n\n :param prepare_id: MLJob.id in the database"
46
false
jay-johnson/antinex-client
get_prepare_by_id
19,310
LDU_FT/fedora-python/pyp2rpm/venv_metadata_extension
LDU_FT
[ "<BEGIN>\n## `cut_to_length`", "Shorten given text on first delimiter after given number\n of characters.\n<END>", "<BEGIN>\n## `get_interpreter_path`", "Return the executable of a specified or current version.\n<END>", "<BEGIN>\n## `license_from_trove`", "Finds out license from list of trove classifie...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the venv_metadata_extension 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 venv_metadata_extension API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion...
Extracts specific metadata from virtualenv object, merges them with data from given extraction method.
"Extracts specific metadata from virtualenv object, merges them with data\n from given extraction method."
140
false
fedora-python/pyp2rpm
venv_metadata_extension
19,311
LDU_FT/OCHA-DAP/hdx-python-utilities/get_full_url
LDU_FT
[ "<BEGIN>\n## `raisefrom`", "Call Python 3 raise from or emulate it for Python 2", " Args:\n exc_type (Any): Type of Exception\n message (str): Error message to display\n exc (BaseException): original exception", " Returns:\n None\n<END>", "<BEGIN>\n## `get_session`", "Set...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_full_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 extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_full_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 extr...
Get full url including any additional parameters Args: url (str): URL for which to get full url Returns: str: Full url including any additional parameters
"Get full url including any additional parameters\n\n Args:\n url (str): URL for which to get full url\n\n Returns:\n str: Full url including any additional parameters"
232
false
OCHA-DAP/hdx-python-utilities
get_full_url
19,312
LDU_FT/ml4ai/delphi/multiple_replace
LDU_FT
[ "<BEGIN>\n## `all_subs`", "given a list of tuples specifying the bounds of an array, all_subs()\n returns a list of all the tuples of subscripts for that array.\n<END>", "<BEGIN>\n## `idx2subs`", "Given a list idx_list of index values for each dimension of an array, \n idx2subs() returns a list of...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the multiple_replace API. 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 multiple_replace API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Performs string replacement from dict in a single pass. Taken from https://www.oreilly.com/library/view/python-cookbook/0596001673/ch03s15.html
"Performs string replacement from dict in a single pass. Taken from\n https://www.oreilly.com/library/view/python-cookbook/0596001673/ch03s15.html"
336
false
ml4ai/delphi
multiple_replace
19,313
LDU_FT/TAPPGuild/sqlalchemy-models/load_commodities
LDU_FT
[ "<BEGIN>\n## `load_commodities`", "Load the commodities for Amounts in this object.\n<END>", "<BEGIN>\n## `load_commodities`", "Load the commodities for Amounts in this object.\n<END>", "<BEGIN>\n## `load_commodities`", "Load the commodities for Amounts in this object.\n<END>", "<BEGIN>\n## `create_user...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load_commodities API. 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 load_commodities API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Load the commodities for Amounts in this object.
"Load the commodities for Amounts in this object."
30
false
TAPPGuild/sqlalchemy-models
load_commodities
19,314
LDU_FT/fp12/achallonge/process_check_ins
LDU_FT
[ "<BEGIN>\n## `report_winner`", "report scores and give a winner", " |methcoro|", " Args:\n winner: :class:Participant instance\n scores_csv: Comma separated set/game scores with player 1 score first (e.g. \"1-3,3-0,3-2\")", " Raises:\n ValueError: scores...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the process_check_ins API. 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 process_check_ins API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
finalize the check in phase |methcoro| Warning: |unstable| Note: |from_api| This should be invoked after a tournament's check-in window closes before the tournament is started. 1. Marks participants who have not checked in as inactive. 2. Moves ...
"finalize the check in phase\n\n |methcoro|\n\n Warning:\n |unstable|\n\n Note:\n |from_api| This should be invoked after a tournament's check-in window closes before the tournament is started.\n 1. Marks participants who have not checked in as inactive.\n ...
173
false
fp12/achallonge
process_check_ins
19,315
LDU_FT/Robpol86/colorclass/red
LDU_FT
[ "<BEGIN>\n## `readme`", "Try to read README.rst or return empty string if failed.", " :return: File contents.\n :rtype: str\n<END>", "<BEGIN>\n## `apply_text`", "Call `func` on text portions of incoming color string.", " :param iter incoming: Incoming string/ColorStr/string-like object to iterate...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the red API. 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 red API. 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...
Color-code entire string. :param str string: String to colorize. :param bool auto: Enable auto-color (dark/light terminal). :return: Class instance for colorized string. :rtype: Color
"Color-code entire string.\n\n :param str string: String to colorize.\n :param bool auto: Enable auto-color (dark/light terminal).\n\n :return: Class instance for colorized string.\n :rtype: Color"
191
false
Robpol86/colorclass
red
19,316
LDU_FT/simpleai-team/simpleai/result
LDU_FT
[ "<BEGIN>\n## `_all_expander`", "Expander that expands all nodes on the fringe.\n<END>", "<BEGIN>\n## `beam`", "Beam search.", " beam_size is the size of the beam.\n If iterations_limit is specified, the algorithm will end after that\n number of iterations. Else, it will continue until it can't find...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the result API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the result API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Return the resulting state after moving a piece to the empty space. (the "action" parameter contains the piece to move)
"Return the resulting state after moving a piece to the empty space.\n (the \"action\" parameter contains the piece to move)"
130
false
simpleai-team/simpleai
result
19,317
LDU_FT/datastore/datastore/appendDatastore
LDU_FT
[ "<BEGIN>\n## `list`", "Returns the `list` representation of this Key.", " Note that this method assumes the key is immutable.\n<END>", "<BEGIN>\n## `instance`", "Returns an instance Key, by appending a name to the namespace.\n<END>", "<BEGIN>\n## `parent`", "Returns the parent Key (all namespaces exc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the appendDatastore API. 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 appendDatastore API. 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...
Appends datastore `store` to this collection.
"Appends datastore `store` to this collection."
180
false
datastore/datastore
appendDatastore
19,318
LDU_FT/datastax/python-driver/as_cql_query
LDU_FT
[ "<BEGIN>\n## `check_applied`", "Raises LWTException if it looks like a failed LWT request. A LWTException\n won't be raised in the special case in which there are several failed LWT\n in a :class:`~cqlengine.query.BatchQuery`.\n<END>", "<BEGIN>\n## `add_callback`", "Add a function and arguments to be p...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the as_cql_query API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the as_cql_query API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
Returns a CQL query that can be used to recreate this function. If `formatted` is set to :const:`True`, extra whitespace will be added to make the query more readable.
"Returns a CQL query that can be used to recreate this function.\n If `formatted` is set to :const:`True`, extra whitespace will\n be added to make the query more readable."
603
false
datastax/python-driver
as_cql_query
19,319
LDU_FT/ethereum/eth-account/hash_of_signed_transaction
LDU_FT
[ "<BEGIN>\n## `encrypt`", "Generate a string with the encrypted key, as in\n :meth:`~eth_account.account.Account.encrypt`, but without a private key argument.\n<END>", "<BEGIN>\n## `defunct_hash_message`", "Convert the provided message into a message hash, to be signed.\n This provides the same prefi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the hash_of_signed_transaction 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 hash_of_signed_transaction API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclus...
Regenerate the hash of the signed transaction object. 1. Infer the chain ID from the signature 2. Strip out signature from transaction 3. Annotate the transaction with that ID, if available 4. Take the hash of the serialized, unsigned, chain-aware transaction Chain ID inference and annotation is a...
"Regenerate the hash of the signed transaction object.\n\n 1. Infer the chain ID from the signature\n 2. Strip out signature from transaction\n 3. Annotate the transaction with that ID, if available\n 4. Take the hash of the serialized, unsigned, chain-aware transaction\n\n Chain ID inference and annotat...
92
false
ethereum/eth-account
hash_of_signed_transaction
19,320
LDU_FT/openxc/openxc-python/merge
LDU_FT
[ "<BEGIN>\n## `get`", "Return the latest measurement for the given class or None if nothing\n has been received from the vehicle.\n<END>", "<BEGIN>\n## `add_source`", "Add a vehicle data source to the instance.", " The Vehicle instance will be set as the callback of the source, and the\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the merge API. 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 merge API. 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...
Merge two deep dicts non-destructively Uses a stack to avoid maximum recursion depth exceptions >>> a = {'a': 1, 'b': {1: 1, 2: 2}, 'd': 6} >>> b = {'c': 3, 'b': {2: 7}, 'd': {'z': [1, 2, 3]}} >>> c = merge(a, b) >>> from pprint import pprint; pprint(c) {'a': 1, 'b': {1: 1, 2: 7}, 'c': 3, 'd':...
"Merge two deep dicts non-destructively\n\n Uses a stack to avoid maximum recursion depth exceptions\n\n >>> a = {'a': 1, 'b': {1: 1, 2: 2}, 'd': 6}\n >>> b = {'c': 3, 'b': {2: 7}, 'd': {'z': [1, 2, 3]}}\n >>> c = merge(a, b)\n >>> from pprint import pprint; pprint(c)\n {'a': 1, 'b': {1: 1, 2: 7}, 'c'...
94
false
openxc/openxc-python
merge
19,321
LDU_FT/kronenthaler/mod-pbxproj/get_targets
LDU_FT
[ "<BEGIN>\n## `has_child`", "Checks if the given child id\n :param child: The id to check if it's a child of the group\n :return: True if the given id it's a child of this group, False otherwise\n<END>", "<BEGIN>\n## `add_file`", "Adds a file to the project, taking care of the type of the file an...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_targets API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_targets API. 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...
Retrieve all/one target objects :param name: name of the target to search for, None for everything :return: A list of target objects
"Retrieve all/one target objects\n :param name: name of the target to search for, None for everything\n :return: A list of target objects"
71
false
kronenthaler/mod-pbxproj
get_targets
19,322
LDU_FT/twitterdev/search-tweets-python/collect_results
LDU_FT
[ "<BEGIN>\n## `parse_version`", "Parses the program's version from a python variable declaration.\n<END>", "<BEGIN>\n## `make_session`", "Creates a Requests Session for use. Accepts a bearer token\n for premiums users and will override username and password information if\n present.", " Args:\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the collect_results API. 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 collect_results API. 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 function to quickly get a list of tweets from a ``ResultStream`` without keeping the object around. Requires your args to be configured prior to using. Args: rule (str): valid powertrack rule for your account, preferably generated by the `gen_rule_payload` function. max_resu...
"Utility function to quickly get a list of tweets from a ``ResultStream``\n without keeping the object around. Requires your args to be configured\n prior to using.\n\n Args:\n rule (str): valid powertrack rule for your account, preferably\n generated by the `gen_rule_payload` function.\n ...
88
false
twitterdev/search-tweets-python
collect_results
19,323
LDU_FT/classam/silly/company
LDU_FT
[ "<BEGIN>\n## `_slugify`", "This is not as good as a proper slugification function, but the input space is limited", " >>> _slugify(\"beets\")\n 'beets'\n >>> _slugify(\"Toaster Strudel\")\n 'toaster-strudel'", " Here's why: It handles very little. It doesn't handle esoteric whitespace or symbol...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the company API. 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 company API. 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...
Produce a company name >>> mock_random.seed(0) >>> company(random=mock_random) 'faculty of applied chimp' >>> mock_random.seed(1) >>> company(random=mock_random) 'blistersecret studios' >>> mock_random.seed(2) >>> company(random=mock_random) 'pooppooppoop studios' >>> mock_rando...
"Produce a company name\n\n >>> mock_random.seed(0)\n >>> company(random=mock_random)\n 'faculty of applied chimp'\n >>> mock_random.seed(1)\n >>> company(random=mock_random)\n 'blistersecret studios'\n >>> mock_random.seed(2)\n >>> company(random=mock_random)\n 'pooppooppoop studios'\n >>...
80
false
classam/silly
company
19,324
LDU_FT/vlasovskikh/funcparserlib/bind
LDU_FT
[ "<BEGIN>\n## `pretty_tree`", "(a, (a -> list(a)), (a -> str)) -> str", " Returns a pseudographic tree representation of x similar to the tree command\n in Unix.\n<END>", "<BEGIN>\n## `make_tokenizer`", "[(str, (str, int?))] -> (str -> Iterable(Token))\n<END>", "<BEGIN>\n## `finished`", "Parser(a, ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the bind API. 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 bind API. 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...
Parser(a, b), (b -> Parser(a, c)) -> Parser(a, c) NOTE: A monadic bind function. It is used internally to implement other combinators. Functions bind and pure make the Parser a Monad.
"Parser(a, b), (b -> Parser(a, c)) -> Parser(a, c)\n\n NOTE: A monadic bind function. It is used internally to implement other\n combinators. Functions bind and pure make the Parser a Monad."
35
false
vlasovskikh/funcparserlib
bind
19,325
LDU_FT/lorien/grab/adopt
LDU_FT
[ "<BEGIN>\n## `get_item`", "Returned item should have specific interface. See module docstring.\n<END>", "<BEGIN>\n## `has_item`", "Test if required item exists in the cache.\n<END>", "<BEGIN>\n## `build_grab_exception`", "Build Grab exception from the pycurl exception", " Args:\n ex - the orig...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the adopt API. 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 adopt API. 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...
Copy the state of another `Grab` instance. Use case: create backup of current state to the cloned instance and then restore the state from it.
"Copy the state of another `Grab` instance.\n\n Use case: create backup of current state to the cloned instance and\n then restore the state from it."
188
false
lorien/grab
adopt
19,326
LDU_FT/tansey/gfl/calc_euler_tour
LDU_FT
[ "<BEGIN>\n## `solve_gfl`", "A very easy-to-use version of GFL solver that just requires the data and\n the edges.\n<END>", "<BEGIN>\n## `sample_gtf`", "Generate samples from the generalized graph trend filtering distribution via a modified Swendsen-Wang slice sampling algorithm.\n Options for likelihood...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the calc_euler_tour API. 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 calc_euler_tour API. 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...
Calculates an Euler tour over the graph g from vertex start to vertex end. Assumes start and end are odd-degree vertices and that there are no other odd-degree vertices.
"Calculates an Euler tour over the graph g from vertex start to vertex end.\n Assumes start and end are odd-degree vertices and that there are no other odd-degree\n vertices."
50
false
tansey/gfl
calc_euler_tour
19,327
LDU_FT/morpframework/morpfw/search
LDU_FT
[ "<BEGIN>\n## `copy`", "Copy the request and environment object.", " This only does a shallow copy, except of wsgi.input\n<END>", "<BEGIN>\n## `search`", "return search result based on specified rulez query\n<END>", "<BEGIN>\n## `aggregate`", "return aggregation result based on specified rulez que...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the search API. 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 search API. 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 search result based on specified rulez query
"return search result based on specified rulez query"
20
false
morpframework/morpfw
search
19,328
LDU_FT/aboSamoor/polyglot/transliterate
LDU_FT
[ "<BEGIN>\n## `most_frequent`", "Only most frequent k words to be included in the embeddings.\n<END>", "<BEGIN>\n## `normalize_words`", "Normalize embeddings matrix row-wise.", " Args:\n ord: normalization order. Possible values {1, 2, 'inf', '-inf'}\n<END>", "<BEGIN>\n## `nearest_neighbors`", "R...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the transliterate API. 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 transliterate API. 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...
Transliterate words according to the target language.
"Transliterate words according to the target language."
189
false
aboSamoor/polyglot
transliterate
19,329
LDU_FT/Gscorreia89/pyChemometrics/_reset
LDU_FT
[ "<BEGIN>\n## `_cummulativefit`", "Measure the cumulative Regression sum of Squares for each individual component.", " :param x: Data matrix to fit the PLS model.\n :type x: numpy.ndarray, shape [n_samples, n_features]\n :param y: Data matrix to fit the PLS model.\n :type y: numpy.nda...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _reset API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _reset API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Reset internal data-dependent state of the scaler, if necessary. __init__ parameters are not touched.
"Reset internal data-dependent state of the scaler, if necessary.\n __init__ parameters are not touched."
24
false
Gscorreia89/pyChemometrics
_reset
19,330
LDU_FT/mnick/scikit-tensor/concatenate
LDU_FT
[ "<BEGIN>\n## `asalsan`", "ASALSAN algorithm to compute the three-way DEDICOM decomposition\n of a tensor", " See\n ---\n .. [1] Brett W. Bader, Richard A. Harshman, Tamara G. Kolda\n \"Temporal analysis of semantic graphs using ASALSAN\"\n 7th International Conference on Data Mining, 200...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the concatenate API. 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 concatenate API. 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...
Concatenates sparse tensors. Parameters ---------- tpl : tuple of sparse tensors Tensors to be concatenated. axis : int, optional Axis along which concatenation should take place
"Concatenates sparse tensors.\n\n Parameters\n ----------\n tpl : tuple of sparse tensors\n Tensors to be concatenated.\n axis : int, optional\n Axis along which concatenation should take place"
114
false
mnick/scikit-tensor
concatenate
19,331
LDU_FT/kensho-technologies/grift/reload
LDU_FT
[ "<BEGIN>\n## `load`", "Load a value, converting it to the proper type if validation_type exists.\n<END>", "<BEGIN>\n## `_iter_config_props`", "Iterate over all ConfigProperty attributes, yielding (attr_name, config_property)\n<END>", "<BEGIN>\n## `_update_property_keys`", "Set unspecified property_keys fo...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the reload API. 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 reload API. 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 ...
Reload all ConfigProperty values (reading from loader sources again, if applicable)
"Reload all ConfigProperty values (reading from loader sources again, if applicable)"
39
false
kensho-technologies/grift
reload
19,332
LDU_FT/fopina/tgbotplug/send_video
LDU_FT
[ "<BEGIN>\n## `print_commands`", "utility method to print commands\n and descriptions for @BotFather\n<END>", "<BEGIN>\n## `send_message`", "Use this method to send text messages.", " :param chat_id: Unique identifier for the message recipient — User or GroupChat id\n :param text: Text of the me...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the send_video API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the send_video API. 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...
Use this method to send video files, Telegram clients support mp4 videos (other formats may be sent as Document). :param chat_id: Unique identifier for the message recipient — User or GroupChat id :param video: Video to send. You can either pass a file_id as String to resend a video that is a...
"Use this method to send video files, Telegram clients support mp4 videos (other formats may be sent as Document).\n\n :param chat_id: Unique identifier for the message recipient — User or GroupChat id\n :param video: Video to send. You can either pass a file_id as String to resend a\n video that...
41
false
fopina/tgbotplug
send_video
19,333
LDU_FT/ubernostrum/django-flashpolicies/allow_domain
LDU_FT
[ "<BEGIN>\n## `allow_domain`", "Allows access from ``domain``, which may be either a full\n domain name, or a wildcard (e.g., ``*.example.com``, or simply\n ``*``). Due to security concerns, it is strongly recommended\n that you use explicit domains rather than wildcards.", " For sock...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the allow_domain API. 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 allow_domain API. 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...
Allows access from ``domain``, which may be either a full domain name, or a wildcard (e.g., ``*.example.com``, or simply ``*``). Due to security concerns, it is strongly recommended that you use explicit domains rather than wildcards. For socket policy files, pass a list of ports or por...
"Allows access from ``domain``, which may be either a full\n domain name, or a wildcard (e.g., ``*.example.com``, or simply\n ``*``). Due to security concerns, it is strongly recommended\n that you use explicit domains rather than wildcards.\n\n For socket policy files, pass a list of ports ...
31
false
ubernostrum/django-flashpolicies
allow_domain
19,334
LDU_FT/SpamScope/mail-parser/get_header
LDU_FT
[ "<BEGIN>\n## `sanitize`", "NFC is the normalization form recommended by W3C.\n<END>", "<BEGIN>\n## `ported_string`", "Give as input raw data and output a str in Python 3\n and unicode in Python 2.", " Args:\n raw_data: Python 2 str, Python 3 bytes or str to porting\n encoding: string giv...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_header API. 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_header API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
Gets an email.message.Message and a header name and returns the mail header decoded with the correct charset. Args: message (email.message.Message): email message object name (string): header to get Returns: decoded header
"Gets an email.message.Message and a header name and returns\n the mail header decoded with the correct charset.\n\n Args:\n message (email.message.Message): email message object\n name (string): header to get\n\n Returns:\n decoded header"
90
false
SpamScope/mail-parser
get_header
19,335
LDU_FT/simoninireland/epyc/dataframe
LDU_FT
[ "<BEGIN>\n## `_parametersAsIndex`", "Private method to turn a parameter dict into a string suitable for\n keying a dict.", " ps: the parameters as a hash\n returns: a string key\n<END>", "<BEGIN>\n## `addResult`", "Add a result. This should be :term:`results dict` as returned from\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the dataframe API. 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 dataframe API. 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 results as a pandas DataFrame. Note that there is a danger of duplicate labels here, for example if the results contain a value with the same name as one of the parameters. To resolve this, parameter names take precedence over metadata values, and result names take precedence over ...
"Return the results as a pandas DataFrame. Note that there is a danger\n of duplicate labels here, for example if the results contain a value\n with the same name as one of the parameters. To resolve this, parameter names\n take precedence over metadata values, and result names take precedence over...
116
false
simoninireland/epyc
dataframe
19,336
LDU_FT/ambitioninc/django-query-builder/get_condition
LDU_FT
[ "<BEGIN>\n## `get_sql`", "Generates the JOIN sql for the join tables and join condition", " :rtype: str\n :return: the JOIN sql for the join tables and join condition\n<END>", "<BEGIN>\n## `set_left_table`", "Sets the left table for this join clause. If no table is specified, the first table\n...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_condition API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_condition API. 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...
Determines the condition to be used in the condition part of the join sql. :return: The condition for the join clause :rtype: str or None
"Determines the condition to be used in the condition part of the join sql.\n\n :return: The condition for the join clause\n :rtype: str or None"
251
false
ambitioninc/django-query-builder
get_condition
19,337
LDU_FT/opentok/Opentok-Python-SDK/attrs
LDU_FT
[ "<BEGIN>\n## `get_stream_url`", "this method returns the url to get streams information\n<END>", "<BEGIN>\n## `force_disconnect_url`", "this method returns the force disconnect url endpoint\n<END>", "<BEGIN>\n## `set_archive_layout_url`", "this method returns the url to set the archive layout\n<END>", "...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the attrs API. 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 attrs API. 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 a dictionary of the archive's attributes.
"Returns a dictionary of the archive's attributes."
128
false
opentok/Opentok-Python-SDK
attrs
19,338
LDU_FT/sparklingpandas/sparklingpandas/jsonFile
LDU_FT
[ "<BEGIN>\n## `_prep_pandas_groupby`", "Prepare the old school pandas group by based approach.\n<END>", "<BEGIN>\n## `_group`", "Group together the values with the same key.\n<END>", "<BEGIN>\n## `groups`", "Returns dict {group name -> group labels}.\n<END>", "<BEGIN>\n## `indices`", "Returns dict {gro...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the jsonFile API. 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 jsonFile API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
Loads a text file storing one JSON object per line as a L{DataFrame}. Parameters ---------- path: string The path of the json files to load. Should be Hadoop style paths (e.g. hdfs://..., file://... etc.). schema: StructType, optional If you...
"Loads a text file storing one JSON object per line as a\n L{DataFrame}.\n Parameters\n ----------\n path: string\n The path of the json files to load. Should be Hadoop style\n paths (e.g. hdfs://..., file://... etc.).\n schema: StructType, optional\n ...
87
false
sparklingpandas/sparklingpandas
jsonFile
19,339
LDU_FT/Jayin/ETipsService/get_electricity_info
LDU_FT
[ "<BEGIN>\n## `_get_electricity_info_html`", "get html", " :param apart_id: 栋数\n :param meter_room: 宿舍号\n<END>", "<BEGIN>\n## `get_electricity_info`", "get electricity info", " :param apart_id: 栋数\n :param meter_room: 宿舍号\n<END>", "<BEGIN>\n## `get_wyu_news`", "获取新闻列...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_electricity_info API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_electricity_info API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
get electricity info :param apart_id: 栋数 :param meter_room: 宿舍号
"get electricity info\n\n :param apart_id: 栋数\n :param meter_room: 宿舍号"
26
false
Jayin/ETipsService
get_electricity_info
19,340
LDU_FT/mayhewj/greenstalk/stats_job
LDU_FT
[ "<BEGIN>\n## `put`", "Inserts a job into the currently used tube and returns the job ID.", " :param body: The data representing the job.\n :param priority: An integer between 0 and 4,294,967,295 where 0 is the\n most urgent.\n :param delay: The number of seconds to d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the stats_job API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the stats_job API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
Returns job statistics. :param job: The job or job ID to return statistics for.
"Returns job statistics.\n\n :param job: The job or job ID to return statistics for."
45
false
mayhewj/greenstalk
stats_job
19,341
LDU_FT/codeinthehole/purl/fragment
LDU_FT
[ "<BEGIN>\n## `to_utf8`", "Encode a string as a UTF8 bytestring. This function could be passed a\n bytestring or unicode string so must distinguish between the two.\n<END>", "<BEGIN>\n## `dict_to_unicode`", "Ensure all keys and values in a dict are unicode.", " The passed dict is assumed to have lists...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the fragment API. 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 fragment API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
Return or set the fragment (hash) :param string value: the new fragment to use :returns: string or new :class:`URL` instance
"Return or set the fragment (hash)\n\n :param string value: the new fragment to use\n :returns: string or new :class:`URL` instance"
75
false
codeinthehole/purl
fragment
19,342
LDU_FT/fastavro/fastavro/is_avro
LDU_FT
[ "<BEGIN>\n## `_read_decimal`", "based on https://github.com/apache/avro/pull/82/\n<END>", "<BEGIN>\n## `read_long`", "int and long values are written using variable-length, zig-zag\n coding.\n<END>", "<BEGIN>\n## `read_bytes`", "Bytes are encoded as a long followed by that many bytes of data.\n<END>", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_avro API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_avro API. 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 True if path (or buffer) points to an Avro file. Parameters ---------- path_or_buffer: path to file or file-like object Path to file
"Return True if path (or buffer) points to an Avro file.\n\n Parameters\n ----------\n path_or_buffer: path to file or file-like object\n Path to file"
136
false
fastavro/fastavro
is_avro
19,343
LDU_FT/AnalogJ/lexicon/_authenticate
LDU_FT
[ "<BEGIN>\n## `_authenticate`", "Authenticate with netcup server. Must be called first.\n<END>", "<BEGIN>\n## `_create_record`", "Create record. If it already exists, do nothing.\n<END>", "<BEGIN>\n## `_list_records`", "List all records. Return an empty list if no records found.\n ``rtype``, ``name`...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _authenticate API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _authenticate API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
Determine the hosted zone id for the domain.
"Determine the hosted zone id for the domain."
218
false
AnalogJ/lexicon
_authenticate
19,344
LDU_FT/orbeckst/RecSQL/to_unicode
LDU_FT
[ "<BEGIN>\n## `make_python_name`", "Returns a unicode string that can be used as a legal python identifier.", " :Arguments:\n *s*\n string\n *default*\n use *default* if *s* is ``None``\n *number_prefix*\n string to prepend if *s* starts with a number\n<END>", "<BEGIN>...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the to_unicode API. 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 to_unicode API. 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...
Convert obj to unicode (if it can be be converted) from http://farmdev.com/talks/unicode/
"Convert obj to unicode (if it can be be converted)\n\n from http://farmdev.com/talks/unicode/"
96
false
orbeckst/RecSQL
to_unicode
19,345
LDU_FT/undertheseanlp/underthesea/Text
LDU_FT
[ "<BEGIN>\n## `Text`", "provide a wrapper for python string\n map byte to str (python 3)\n all string in utf-8 encoding\n normalize string to NFC\n<END>", "<BEGIN>\n## `sent2features`", "extract features in a sentence", " :type sentence: list of token, each token is a list of tag\n<END>", "<BEG...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the Text API. 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 Text API. 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...
provide a wrapper for python string map byte to str (python 3) all string in utf-8 encoding normalize string to NFC
"provide a wrapper for python string\n map byte to str (python 3)\n all string in utf-8 encoding\n normalize string to NFC"
62
false
undertheseanlp/underthesea
Text
19,346
LDU_FT/chibisov/drf-extensions/_regex_from_encoded_pattern
LDU_FT
[ "<BEGIN>\n## `get_etags_and_matchers`", "Get the etags from the header and perform a validation against the required preconditions.\n<END>", "<BEGIN>\n## `evaluate_preconditions`", "Evaluate whether the precondition for the request is met.\n<END>", "<BEGIN>\n## `_regex_from_encoded_pattern`", "foo' -> ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _regex_from_encoded_pattern 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 _regex_from_encoded_pattern API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclu...
foo' -> re.compile(re.escape('foo')) '/foo/' -> re.compile('foo') '/foo/i' -> re.compile('foo', re.I)
"foo' -> re.compile(re.escape('foo'))\n '/foo/' -> re.compile('foo')\n '/foo/i' -> re.compile('foo', re.I)"
55
false
chibisov/drf-extensions
_regex_from_encoded_pattern
19,347
LDU_FT/hufman/flask_rdf/get_wildcard_mimetype
LDU_FT
[ "<BEGIN>\n## `output`", "Formats a response from a view to handle any RDF graphs\n\t\t If a view function returns an RDF graph, serialize it based on Accept header\n\t\t If it's not an RDF graph, return it without any special handling\n<END>", "<BEGIN>\n## `decorate`", "Wraps a view function to return f...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_wildcard_mimetype 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 get_wildcard_mimetype API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Returns the mimetype if the client sends */*
"Returns the mimetype if the client sends */*"
26
false
hufman/flask_rdf
get_wildcard_mimetype
19,348
LDU_FT/xiyouMc/ncmbot/play_list_detail
LDU_FT
[ "<BEGIN>\n## `login`", "登录接口,返回 :class:'Response' 对象\n :param password: 网易云音乐的密码\n :param phone: (optional) 手机登录\n :param email: (optional) 邮箱登录\n :param rememberLogin: (optional) 是否记住密码,默认 True\n<END>", "<BEGIN>\n## `user_play_list`", "获取用户歌单,包含收藏的歌单", " :param uid: 用户的ID,可通过登录或者其他接口获取\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the play_list_detail API. 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 play_list_detail API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
获取歌单中的所有音乐。由于获取精品中,只能看到歌单名字和 ID 并没有歌单的音乐,因此增加该接口传入歌单 ID 获取歌单中的所有音乐. :param id: 歌单的ID :param limit: (optional) 数据上限多少行,默认 20
"获取歌单中的所有音乐。由于获取精品中,只能看到歌单名字和 ID 并没有歌单的音乐,因此增加该接口传入歌单 ID\n 获取歌单中的所有音乐.\n\n :param id: 歌单的ID\n :param limit: (optional) 数据上限多少行,默认 20"
39
false
xiyouMc/ncmbot
play_list_detail
19,349
LDU_FT/gmichaeljaison/cv-utils/remove_missing_keys
LDU_FT
[ "<BEGIN>\n## `match_one`", "Match template and find exactly one match in the Image using specified features.", " :param template: Template Image\n :param image: Search Image\n :param options: Options include\n - features: List of options for each feature\n :return: (Box, Score) Bounding box o...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the remove_missing_keys 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 remove_missing_keys 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...
Remove keys from target_dict that are not available in src_dict :param src_dict: source dictionary to search for :param target_dict: target dictionary where keys should be removed
"Remove keys from target_dict that are not available in src_dict\n\n :param src_dict: source dictionary to search for\n :param target_dict: target dictionary where keys should be removed"
91
false
gmichaeljaison/cv-utils
remove_missing_keys
19,350
LDU_FT/paulovn/sparql-kernel/install_kernel_resources
LDU_FT
[ "<BEGIN>\n## `token_at_cursor`", "Find the token present at the passed position in the code buffer\n :return (tuple): a pair (token, start_position)\n<END>", "<BEGIN>\n## `_send`", "Send a response to the frontend and return an execute message\n @param data: response to send\n @param msg_t...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the install_kernel_resources API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the install_kernel_resources API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio...
Copy the resource files to the kernelspec folder.
"Copy the resource files to the kernelspec folder."
55
false
paulovn/sparql-kernel
install_kernel_resources
19,351
LDU_FT/proteanhq/protean/find_by
LDU_FT
[ "<BEGIN>\n## `from_dict`", "Initialize a ListRequestObject object from a dictionary.\n<END>", "<BEGIN>\n## `_cast_to_type`", "Convert the value to its string representation\n<END>", "<BEGIN>\n## `_cast_to_type`", "Convert the value to an int and raise error on failures\n<END>", "<BEGIN>\n## `_cast_to_ty...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_by API. 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 find_by API. 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...
Find a specific entity record that matches one or more criteria. :param kwargs: named arguments consisting of attr_name and attr_value pairs to search on
"Find a specific entity record that matches one or more criteria.\n\n :param kwargs: named arguments consisting of attr_name and attr_value pairs to search on"
214
false
proteanhq/protean
find_by
19,352
LDU_FT/hosford42/xcs/match
LDU_FT
[ "<BEGIN>\n## `random`", "Create a bit string of the given length, with the probability of\n each bit being set equal to bit_prob, which defaults to .5.", " Usage:\n # Create a random BitString of length 10 with mostly zeros.\n bits = BitString.random(10, bit_prob=.1)", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the match API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the match API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
Accept a situation (input) and return a MatchSet containing the classifier rules whose conditions match the situation. If appropriate per the algorithm managing this classifier set, create new rules to ensure sufficient coverage of the possible actions. Usage: match_set = mo...
"Accept a situation (input) and return a MatchSet containing the\n classifier rules whose conditions match the situation. If\n appropriate per the algorithm managing this classifier set, create\n new rules to ensure sufficient coverage of the possible actions.\n\n Usage:\n match_s...
159
false
hosford42/xcs
match
19,353
LDU_FT/jazzband/django-axes/user_login_failed
LDU_FT
[ "<BEGIN>\n## `get_cool_off`", "Return the login cool off time interpreted from settings.AXES_COOLOFF_TIME.", " The return value is either None or timedelta.", " Notice that the settings.AXES_COOLOFF_TIME is either None, timedelta, or integer of hours,\n and this function offers a unified _timedelta o...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the user_login_failed API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the user_login_failed API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
When user login fails, save attempt record in cache and lock user out if necessary. :raises AxesSignalPermissionDenied: if user should be locked out.
"When user login fails, save attempt record in cache and lock user out if necessary.\n\n :raises AxesSignalPermissionDenied: if user should be locked out."
94
false
jazzband/django-axes
user_login_failed
19,354
LDU_FT/antonybholmes/libdna/fasta
LDU_FT
[ "<BEGIN>\n## `fasta`", "Prints a fasta representation of a sequence.", " Parameters\n ----------\n l : tuple (str, int, int)\n location chr, start, and end\n mask : str, optional\n Either 'upper', 'lower', or 'n'. If 'lower', poor quality bases \n wil...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the fasta API. 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 fasta API. 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...
Prints a fasta representation of a sequence. Parameters ---------- l : tuple (str, int, int) location chr, start, and end mask : str, optional Either 'upper', 'lower', or 'n'. If 'lower', poor quality bases will be converted to lowercase.
"Prints a fasta representation of a sequence.\n \n Parameters\n ----------\n l : tuple (str, int, int)\n location chr, start, and end\n mask : str, optional\n Either 'upper', 'lower', or 'n'. If 'lower', poor quality bases \n will be converted to lower...
44
false
antonybholmes/libdna
fasta
19,355
LDU_FT/Othernet-Project/hwd/devid
LDU_FT
[ "<BEGIN>\n## `devices_by_subsystem`", "Iterator that yields devices that belong to specified subsystem. Returned\n values are ``pydev.Device`` instances.", " The ``only`` argument can be used to further filter devices. It should be\n a function that takes a ``pyudev.Device`` object, and returns ``True`...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the devid API. 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 devid API. 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...
Two-tuple containing device's vendor ID and model ID (hex).
"Two-tuple containing device's vendor ID and model ID (hex)."
27
false
Othernet-Project/hwd
devid
19,356
LDU_FT/praw-dev/prawcore/request
LDU_FT
[ "<BEGIN>\n## `receive_connection`", "Wait for and then return a connected socket..", " Opens a TCP connection on port 8080, and waits for a single client.\n<END>", "<BEGIN>\n## `send_message`", "Send message to client and close the connection.\n<END>", "<BEGIN>\n## `main`", "Provide the program's ent...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the request API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the request API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
Issue the HTTP request capturing any errors that may occur.
"Issue the HTTP request capturing any errors that may occur."
51
false
praw-dev/prawcore
request
19,357
LDU_FT/noahbenson/neuropythy/curve_spline
LDU_FT
[ "<BEGIN>\n## `guess_import_format`", "guess_import_format(filename) attempts to guess the file format for the given filename; it does\n this guessing by looking at the file extension and using registered sniff-tests from\n importers. It will not attempt to load the file, so if the extension of the filen...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the curve_spline API. 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 curve_spline API. 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...
curve_spline(coords) yields a bicubic spline function through the points in the given coordinate matrix. curve_spline(x, y) uses the coordinate matrix [x,y]. The function returned by curve_spline() is f(t), defined on the interval from 0 to n-1 where n is the number of points in the coordinate ma...
"curve_spline(coords) yields a bicubic spline function through\n the points in the given coordinate matrix.\n curve_spline(x, y) uses the coordinate matrix [x,y].\n\n The function returned by curve_spline() is f(t), defined on the\n interval from 0 to n-1 where n is the number of points in the\n coordi...
815
false
noahbenson/neuropythy
curve_spline
19,358
LDU_FT/poldracklab/niworkflows/spike_regressors
LDU_FT
[ "<BEGIN>\n## `spike_regressors`", "Add spike regressors to a confound/nuisance matrix.", " Parameters\n ----------\n data: pandas DataFrame object\n A tabulation of observations from which spike regressors should be\n estimated.\n criteria: dict{str: ('>' or '<', float)}\n Crite...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the spike_regressors API. 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 spike_regressors API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Add spike regressors to a confound/nuisance matrix. Parameters ---------- data: pandas DataFrame object A tabulation of observations from which spike regressors should be estimated. criteria: dict{str: ('>' or '<', float)} Criteria for generating a spike regressor. If, for a giv...
"Add spike regressors to a confound/nuisance matrix.\n\n Parameters\n ----------\n data: pandas DataFrame object\n A tabulation of observations from which spike regressors should be\n estimated.\n criteria: dict{str: ('>' or '<', float)}\n Criteria for generating a spike regressor. If, ...
305
false
poldracklab/niworkflows
spike_regressors
19,359
LDU_FT/ContinuumIO/flask-ldap-login/connect
LDU_FT
[ "<BEGIN>\n## `validate_ldap`", "Validate the username/password data against ldap directory\n<END>", "<BEGIN>\n## `validate`", "Validates the form by calling `validate` on each field, passing any\n extra `Form.validate_<fieldname>` validators to the field validator.", " also calls `validate_lda...
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...
initialize ldap connection and set options
"initialize ldap connection and set options"
19
false
ContinuumIO/flask-ldap-login
connect
19,360
LDU_FT/antiboredom/videogrep/search_line
LDU_FT
[ "<BEGIN>\n## `parse_auto_sub`", "Parses webvtt and returns timestamps for words and lines\n Tested on automatically generated subtitles from YouTube\n<END>", "<BEGIN>\n## `framerate`", "setter for the framerate attribute\n :param framerate:\n :return:\n<END>", "<BEGIN>\n## `frames_to_tc`", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the search_line API. 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 search_line API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
Return True if search term is found in given line, False otherwise.
"Return True if search term is found in given line, False otherwise."
37
false
antiboredom/videogrep
search_line
19,361
LDU_FT/MozillaSecurity/laniakea/terminate
LDU_FT
[ "<BEGIN>\n## `list_tags`", "List all used macros within a UserData script.", " :param userdata: The UserData script.\n :type userdata: str\n<END>", "<BEGIN>\n## `handle_tags`", "Insert macro values or auto export variables in UserData scripts.", " :param userdata: The UserData script....
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the terminate API. 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 terminate API. 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...
Terminate one or more running or stopped instances.
"Terminate one or more running or stopped instances."
136
false
MozillaSecurity/laniakea
terminate
19,362
LDU_FT/trombastic/PyScada/init_process
LDU_FT
[ "<BEGIN>\n## `_reinit_daq_daemons`", "update the daq daemon configuration when changes be applied in the models\n<END>", "<BEGIN>\n## `connect`", "establish a connection to the Instrument\n<END>", "<BEGIN>\n## `find_gap`", "try to find a address gap in the list of modbus registers\n<END>", "<BEGIN>\n## ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the init_process API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the init_process API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
init a standard daq process for multiple devices
"init a standard daq process for multiple devices"
60
false
trombastic/PyScada
init_process
19,363
LDU_FT/pantsbuild/pex/detect_algorithm
LDU_FT
[ "<BEGIN>\n## `isolated`", "Returns a chroot for third_party isolated from the ``sys.path``.", " PEX will typically be installed in site-packages flat alongside many other distributions; as such,\n adding the location of the pex distribution to the ``sys.path`` will typically expose many other\n distributions...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the detect_algorithm API. 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 detect_algorithm API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Detect the hashing algorithm from the fragment in the link, if any.
"Detect the hashing algorithm from the fragment in the link, if any."
385
false
pantsbuild/pex
detect_algorithm
19,364
LDU_FT/qwilka/vn-tree/get_child_by_name
LDU_FT
[ "<BEGIN>\n## `add_child`", "Add a child node to the current node instance.", " :param node: the child node instance.\n :type node: Node\n :returns: The new child node instance. \n :rtype: Node\n<END>", "<BEGIN>\n## `remove_child`", "Remove a child node from the current node ins...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_child_by_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...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_child_by_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...
Get a child node of the current instance by its name. :param childname: the name of the required child node. :type childname: str :returns: the first child node found with name `childname`. :rtype: Node or None
"Get a child node of the current instance by its name.\n\n :param childname: the name of the required child node.\n :type childname: str\n :returns: the first child node found with name `childname`.\n :rtype: Node or None"
59
false
qwilka/vn-tree
get_child_by_name
19,365
LDU_FT/calocan/rescape-python-helpers/item_path_or
LDU_FT
[ "<BEGIN>\n## `prop`", "Implementation of prop (get_item) that also supports object attributes\n :param key:\n :param dct_or_obj:\n :return:\n<END>", "<BEGIN>\n## `all_pass_dict`", "Returns true if all dct values pass f\n :param f: binary lambda predicate\n :param dct:\n :return: True or fals...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the item_path_or API. 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 item_path_or API. 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...
Optional version of item_path with a default value. keys can be dict keys or object attributes, or a combination :param default: :param keys: List of keys or dot-separated string :param dict_or_obj: A dict or obj :return:
"Optional version of item_path with a default value. keys can be dict keys or object attributes, or a combination\n :param default:\n :param keys: List of keys or dot-separated string\n :param dict_or_obj: A dict or obj\n :return:"
54
false
calocan/rescape-python-helpers
item_path_or
19,366
LDU_FT/espressif/esptool/largest_factor_relatively_prime
LDU_FT
[ "<BEGIN>\n## `decrypt`", "Decrypt a block of cipher text using the AES block cipher.\n<END>", "<BEGIN>\n## `increment`", "Increment the counter (overflow rolls back to 0).\n<END>", "<BEGIN>\n## `summary`", "Print a human-readable summary of efuse contents\n<END>", "<BEGIN>\n## `write_efuses`", "Write ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the largest_factor_relatively_prime API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its co...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the largest_factor_relatively_prime API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its co...
Return the largest factor of a relatively prime to b.
"Return the largest factor of a relatively prime to b."
199
false
espressif/esptool
largest_factor_relatively_prime
19,367
LDU_FT/svenevs/exhale/generateAPIRootHeader
LDU_FT
[ "<BEGIN>\n## `apply_sphinx_configurations`", "This method applies the various configurations users place in their ``conf.py``, in\n the dictionary ``exhale_args``. The error checking seems to be robust, and\n borderline obsessive, but there may very well be some glaring flaws.", " When the user reques...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the generateAPIRootHeader 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 generateAPIRootHeader API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
This method creates the root library api file that will include all of the different hierarchy views and full api listing. If ``self.root_directory`` is not a current directory, it is created first. Afterward, the root API file is created and its title is written, as well as the value of ...
"This method creates the root library api file that will include all of the\n different hierarchy views and full api listing. If ``self.root_directory`` is\n not a current directory, it is created first. Afterward, the root API file is\n created and its title is written, as well as the value of\n...
239
false
svenevs/exhale
generateAPIRootHeader
19,368
LDU_FT/TrafficSenseMSD/SumoTools/rerouteTraveltime
LDU_FT
[ "<BEGIN>\n## `getDistance2D`", "getDistance2D(double, double, double, double, boolean, boolean) -> double", " Returns the distance between the two coordinate pairs (x1,y1) and (x2,y2)", " If isGeo=True, coordinates are interpreted as longitude and latitude rather\n than cartesian coordina...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the rerouteTraveltime API. 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 rerouteTraveltime API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
rerouteTraveltime(string, bool) -> None Reroutes a vehicle. If currentTravelTimes is True (default) then the current traveltime of the edges is loaded and used for rerouting. If currentTravelTimes is False custom travel times are used. The various functions and options for customizing tr...
"rerouteTraveltime(string, bool) -> None Reroutes a vehicle. If\n currentTravelTimes is True (default) then the current traveltime of the\n edges is loaded and used for rerouting. If currentTravelTimes is False\n custom travel times are used. The various functions and options for\n customizi...
475
false
TrafficSenseMSD/SumoTools
rerouteTraveltime
19,369
LDU_FT/cloud9ers/pylxc/monitor
LDU_FT
[ "<BEGIN>\n## `create`", "Create a new container\r\n raises ContainerAlreadyExists exception if the container name is reserved already.\r", " :param template_options: Options passed to the specified template\r\n :type template_options: list or None\n<END>", "<BEGIN>\n## `all_as_dict`", "returns a di...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the monitor API. 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 monitor API. 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...
monitors actions on the specified container, callback is a function to be called on
"monitors actions on the specified container,\r\n callback is a function to be called on"
20
false
cloud9ers/pylxc
monitor
19,370
LDU_FT/CityOfZion/neo-boa/link_methods
LDU_FT
[ "<BEGIN>\n## `main`", "Return the default method in this module.", " :return: the default method in this module\n :rtype: ``boa.code.method.Method``\n<END>", "<BEGIN>\n## `orderered_methods`", "An ordered list of methods", " :return: A list of ordered methods is this module\n :...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the link_methods API. 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 link_methods API. 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...
Perform linkage of addresses between methods.
"Perform linkage of addresses between methods."
36
false
CityOfZion/neo-boa
link_methods
19,371
LDU_FT/thombashi/SimpleSQLite/connect
LDU_FT
[ "<BEGIN>\n## `set_log_level`", "Set logging level of this module. Using\n `logbook <https://logbook.readthedocs.io/en/stable/>`__ module for logging.", " :param int log_level:\n One of the log level of\n `logbook <https://logbook.readthedocs.io/en/stable/api/base.html>`__.\n Disabled ...
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...
Connect to a SQLite database. :param str database_path: Path to the SQLite database file to be connected. :param str mode: ``"r"``: Open for read only. ``"w"``: Open for read/write. Delete existing tables when connecting. ``"a"``: Open for rea...
"Connect to a SQLite database.\n\n :param str database_path:\n Path to the SQLite database file to be connected.\n :param str mode:\n ``\"r\"``: Open for read only.\n ``\"w\"``: Open for read/write.\n Delete existing tables when connecting.\n ``\"a\"`...
185
false
thombashi/SimpleSQLite
connect
19,372