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/pyusb/pyusb/fmt_text | LDU_FT | [
"<BEGIN>\n## `_try_get_string`",
"try to get a string, but return a string no matter what\n<END>",
"<BEGIN>\n## `_try_lookup`",
"try to get a string from the lookup table, return \"\" instead of key\n error\n<END>",
"<BEGIN>\n## `find`",
"r\"\"\"Find an USB device and return it.",
" find() is the ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the fmt_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 extracte... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the fmt_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 extracte... | convert characters that aren't printable to hex format | "convert characters that aren't printable to hex format" | 229 | false | pyusb/pyusb | fmt_text | 16,473 | |
LDU_FT/ajslater/picopt/_cleanup_after_optimize_aux | LDU_FT | [
"<BEGIN>\n## `_get_timestamp`",
"Get the timestamp from the timestamp file.",
" Optionally mark it for removal if we're going to write another one.\n<END>",
"<BEGIN>\n## `_get_timestamp_cached`",
"Get the timestamp from the cache or fill the cache\n Much quicker than reading the same files over and ov... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _cleanup_after_optimize_aux 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 _cleanup_after_optimize_aux API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclu... | Replace old file with better one or discard new wasteful file. | "Replace old file with better one or discard new wasteful file." | 86 | false | ajslater/picopt | _cleanup_after_optimize_aux | 16,474 | |
LDU_FT/codeinthehole/purl/_replace | 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 _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 extracte... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _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 extracte... | Return the appropriate replacement for `match` using the passed variables | "Return the appropriate replacement for `match` using the passed variables" | 75 | false | codeinthehole/purl | _replace | 16,475 | |
LDU_FT/MinchinWeb/colourettu/add_release_to_changelog | LDU_FT | [
"<BEGIN>\n## `other_dependancies`",
"Installs things that need to be in place before installing the main package\n<END>",
"<BEGIN>\n## `update_version_number`",
"Update version number",
" Returns a semantic_version object\n<END>",
"<BEGIN>\n## `add_release_to_changelog`",
"Add release line at the top... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_release_to_changelog 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 add_release_to_changelog API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio... | Add release line at the top of the first list it finds
Assumes your changelog in managed with `releases` | "Add release line at the top of the first list it finds\n\n Assumes your changelog in managed with `releases`" | 90 | false | MinchinWeb/colourettu | add_release_to_changelog | 16,476 | |
LDU_FT/FNNDSC/med2image/run | LDU_FT | [
"<BEGIN>\n## `verbosity`",
"get/set the verbosity level.",
" The verbosity level filters messages that are output\n to the console. Only messages tagged with a verbosity\n less-than-or-equal-to the class verbosity are output.",
" This does not affect output to non-console devices\n... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the run API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted doc... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the run API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted doc... | Runs the NIfTI conversion based on internal state. | "Runs the NIfTI conversion based on internal state." | 131 | false | FNNDSC/med2image | run | 16,477 | |
LDU_FT/CyberZHG/keras-transformer/_wrap_layer | LDU_FT | [
"<BEGIN>\n## `_wrap_layer`",
"Wrap layers with residual, normalization and dropout.",
" :param name: Prefix of names for internal layers.\n :param input_layer: Input layer.\n :param build_func: A callable that takes the input tensor and generates the output tensor.\n :param dropout_rate: Dropout rat... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _wrap_layer API.
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 _wrap_layer API.
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... | Wrap layers with residual, normalization and dropout.
:param name: Prefix of names for internal layers.
:param input_layer: Input layer.
:param build_func: A callable that takes the input tensor and generates the output tensor.
:param dropout_rate: Dropout rate.
:param trainable: Whether the layers... | "Wrap layers with residual, normalization and dropout.\n\n :param name: Prefix of names for internal layers.\n :param input_layer: Input layer.\n :param build_func: A callable that takes the input tensor and generates the output tensor.\n :param dropout_rate: Dropout rate.\n :param trainable: Whether the... | 31 | false | CyberZHG/keras-transformer | _wrap_layer | 16,478 | |
LDU_FT/resonai/ybt/get_bin_dir | LDU_FT | [
"<BEGIN>\n## `norm_name`",
"Return a normalized canonical target name for the `target_name`\n observed in build module `build_module`.",
" A normalized canonical target name is of the form \"<build module>:<name>\",\n where <build module> is the relative normalized path from the project root\n to... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_bin_dir API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_bin_dir API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | Return a path to the binaries dir for a build module dir.
Create sub-tree of missing dirs as needed, and return full path
to innermost directory. | "Return a path to the binaries dir for a build module dir.\n Create sub-tree of missing dirs as needed, and return full path\n to innermost directory." | 284 | false | resonai/ybt | get_bin_dir | 16,479 | |
LDU_FT/lambdalisue/maidenhair/glob | LDU_FT | [
"<BEGIN>\n## `load`",
"Load data from file matched with given glob pattern.",
" Return value will be a list of data unless :attr:`unite` is `True`.\n If :attr:`unite` is `True` then all data will be united into a single data.",
" Parameters\n ----------\n pathname : string or list\n A gl... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the glob API.
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 glob API.
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... | Load data from file matched with given glob pattern.
Return value will be a list of data unless :attr:`unite` is `True`.
If :attr:`unite` is `True`, all dataset will be united into a single
data.
Parameters
----------
pathname : string
A glob pattern
... | "Load data from file matched with given glob pattern.\n\n Return value will be a list of data unless :attr:`unite` is `True`.\n If :attr:`unite` is `True`, all dataset will be united into a single\n data.\n\n Parameters\n ----------\n pathname : string\n A glob patte... | 128 | false | lambdalisue/maidenhair | glob | 16,480 | |
LDU_FT/denisenkom/pytds/readall_fast | LDU_FT | [
"<BEGIN>\n## `validate_host`",
"Validates host name against certificate",
" @param cert: Certificate returned by host\n @param name: Actual host name used for connection\n @return: Returns true if host name matches certificate\n<END>",
"<BEGIN>\n## `revert_to_clear`",
"Reverts connection back to no... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the readall_fast API.
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 readall_fast API.
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... | Slightly faster version of readall, it reads no more than two chunks.
Meaning that it can only be used to read small data that doesn't span
more that two packets.
:param stm: Stream to read from, should have read method.
:param size: Number of bytes to read.
:return: | "Slightly faster version of readall, it reads no more than two chunks.\n Meaning that it can only be used to read small data that doesn't span\n more that two packets.\n\n :param stm: Stream to read from, should have read method.\n :param size: Number of bytes to read.\n :return:" | 210 | false | denisenkom/pytds | readall_fast | 16,481 | |
LDU_FT/Miserlou/SoundScrape/open_files | LDU_FT | [
"<BEGIN>\n## `main`",
"Main function.",
" Converts arguments to Python and processes accordingly.\n<END>",
"<BEGIN>\n## `download_tracks`",
"Given a list of tracks, iteratively download all of them.\n<END>",
"<BEGIN>\n## `get_soundcloud_data`",
"Scrapes a SoundCloud page for a track's important infor... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the open_files API.
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 open_files API.
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... | Call the system 'open' command on a file. | "Call the system 'open' command on a file." | 39 | false | Miserlou/SoundScrape | open_files | 16,482 | |
LDU_FT/dyachan/django-usuario/_get_instance | LDU_FT | [
"<BEGIN>\n## `clean`",
"Se agrega la verificación que las contraseñas ingresadas sean iguales\n<END>",
"<BEGIN>\n## `clean_password_antigua`",
"Se agrega la verificación que la contraseña anterior ingresada sea la\n contraseña real del usuario\n<END>",
"<BEGIN>\n## `clean_username`",
"Se agrega la ver... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_instance API.
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_instance API.
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... | función que busca la instancia de la clase hija más baja de Usuario y que
esté enlazada con el usuario dado por parámetro. | "función que busca la instancia de la clase hija más baja de Usuario y que\n esté enlazada con el usuario dado por parámetro." | 12 | false | dyachan/django-usuario | _get_instance | 16,483 | |
LDU_FT/note35/sinon/returns | LDU_FT | [
"<BEGIN>\n## `__remove_args_first_item`",
"# Todo: finding a better solution\n This is a dirty solution\n Because the first argument of inspectors' args will be itself\n For current implementation, it should be ignore\n<END>",
"<BEGIN>\n## `lastCall`",
"Return: SpyCall object for this spy... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the returns API.
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 returns API.
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... | Customizes the return values of the stub function. If conditions like withArgs or onCall
were specified, then the return value will only be returned when the conditions are met.
Args: obj (anything)
Return: a SinonStub object (able to be chained) | "Customizes the return values of the stub function. If conditions like withArgs or onCall\n were specified, then the return value will only be returned when the conditions are met.\n\n Args: obj (anything)\n Return: a SinonStub object (able to be chained)" | 162 | false | note35/sinon | returns | 16,484 | |
LDU_FT/thoth-station/solver/_get_environment_details | LDU_FT | [
"<BEGIN>\n## `compare_version`",
"Compare two version strings.",
" :param a: str\n :param b: str\n :return: -1 / 0 / 1\n<END>",
"<BEGIN>\n## `get_ecosystem_solver`",
"Get Solver subclass instance for particular ecosystem.",
" :param ecosystem_name: name of ecosystem for which solver should be ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_environment_details API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_environment_details API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio... | Get information about packages in environment where packages get installed. | "Get information about packages in environment where packages get installed." | 41 | false | thoth-station/solver | _get_environment_details | 16,485 | |
LDU_FT/shexSpec/grammar/literal_to_ObjectLiteral | LDU_FT | [
"<BEGIN>\n## `visitNodeConstraintLiteral`",
"nodeConstraint: KW_LITERAL xsFacet* # nodeConstraintLiteral\n<END>",
"<BEGIN>\n## `visitNodeConstraintNonLiteral`",
"nodeConstraint: nonLiteralKind stringFacet* # nodeConstraintNonLiteral\n<END>",
"<BEGIN>\n## `visitNodeConstraintDatatype`",
"nodeConstraint: d... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the literal_to_ObjectLiteral 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 literal_to_ObjectLiteral API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio... | literal: rdfLiteral | numericLiteral | booleanLiteral | "literal: rdfLiteral | numericLiteral | booleanLiteral" | 93 | false | shexSpec/grammar | literal_to_ObjectLiteral | 16,486 | |
LDU_FT/python-visualization/folium/_create_mapping | LDU_FT | [
"<BEGIN>\n## `_get_self_bounds`",
"Computes the bounds of the object itself (not including it's children)\n in the form [[lat_min, lon_min], [lat_max, lon_max]].\n<END>",
"<BEGIN>\n## `path_options`",
"Contains options and constants shared between vector overlays\n (Polygon, Polyline, Circle, Circle... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _create_mapping API.
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 _create_mapping API.
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... | Internal function to create the mapping. | "Internal function to create the mapping." | 111 | false | python-visualization/folium | _create_mapping | 16,487 | |
LDU_FT/quodlibet/mutagen/_print_unix | LDU_FT | [
"<BEGIN>\n## `_parse_sv8_int`",
"Reads (max limit) bytes from fileobj until the MSB is zero.\n All 7 LSB will be merged to a big endian uint.",
" Raises ValueError in case not MSB is zero, or EOFError in\n case the file ended before limit is reached.",
" Returns (parsed number, number of bytes rea... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _print_unix API.
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 _print_unix API.
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... | A print_() implementation which writes bytes | "A print_() implementation which writes bytes" | 518 | false | quodlibet/mutagen | _print_unix | 16,488 | |
LDU_FT/475Cumulus/TBone/_check_required | LDU_FT | [
"<BEGIN>\n## `request_args`",
"Returns the arguments passed with the request in a dictionary.\n Returns both URL resolved arguments and query string arguments.\n<END>",
"<BEGIN>\n## `connect`",
"Connects a signal to a receiver function",
" :param receiver:\n The callback function wh... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _check_required API.
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 _check_required API.
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... | Internal method to check if assigned value is None while it is required.
Exception is thrown if ``True`` | "Internal method to check if assigned value is None while it is required.\n Exception is thrown if ``True``" | 100 | false | 475Cumulus/TBone | _check_required | 16,489 | |
LDU_FT/tschaume/ccsgp_get_started/gp_panel | LDU_FT | [
"<BEGIN>\n## `gp_xfac`",
"example using QM12 enhancement factors",
" - uses `gpcalls` kwarg to reset xtics\n - numpy.loadtxt needs reshaping for input files w/ only one datapoint\n - according poster presentations see QM12_ & NSD_ review",
" .. _QM12: http://indico.cern.ch/getFile.py/access?contribId=268&... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the gp_panel API.
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 gp_panel API.
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... | example for a panel plot using QM12 data (see gp_xfac)
.. image:: pics/panelQM12.png
:width: 700 px
:param version: plot version / input subdir name
:type version: str | "example for a panel plot using QM12 data (see gp_xfac)\n\n .. image:: pics/panelQM12.png\n :width: 700 px\n\n :param version: plot version / input subdir name\n :type version: str" | 48 | false | tschaume/ccsgp_get_started | gp_panel | 16,490 | |
LDU_FT/dmlc/gluon-nlp/convert_to_sequences | LDU_FT | [
"<BEGIN>\n## `train`",
"Train textCNN model for sentiment analysis.\n<END>",
"<BEGIN>\n## `embedding`",
"Get tokens, tokens embedding",
" Parameters\n ----------\n sentences : List[str]\n sentences for encoding.\n oov_way : str, default avg.\n use **avg**, *... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the convert_to_sequences 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 convert_to_sequences 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 function takes a dataset and converts
it into sequences via multiprocessing | "This function takes a dataset and converts\n it into sequences via multiprocessing" | 801 | false | dmlc/gluon-nlp | convert_to_sequences | 16,491 | |
LDU_FT/emlazzarin/acrylic/whereless | LDU_FT | [
"<BEGIN>\n## `change_sheet`",
"Calling this method changes the sheet in anticipation for the\n next time you create an iterator.",
" If you change the active sheet while iterating on a UnicodeReader\n instance, it will continue to iterate correctly until completion.\n The next time y... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the whereless API.
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 whereless API.
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 a new DataTable with rows only where the value at
`fieldname` < `value`. | "Returns a new DataTable with rows only where the value at\n `fieldname` < `value`." | 94 | false | emlazzarin/acrylic | whereless | 16,492 | |
LDU_FT/napalm-automation/napalm-ios/commit_config | LDU_FT | [
"<BEGIN>\n## `_create_tmp_file`",
"Write temp file and for use with inline config and SCP.\n<END>",
"<BEGIN>\n## `_load_candidate_wrapper`",
"Transfer file to remote device for either merge or replace operations",
" Returns (return_status, msg)\n<END>",
"<BEGIN>\n## `load_replace_candidate`",
"SC... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the commit_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.
The ext... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the commit_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.
The ext... | If replacement operation, perform 'configure replace' for the entire config.
If merge operation, perform copy <file> running-config. | "If replacement operation, perform 'configure replace' for the entire config.\n\n If merge operation, perform copy <file> running-config." | 84 | false | napalm-automation/napalm-ios | commit_config | 16,493 | |
LDU_FT/what-studio/profiling/find_node | LDU_FT | [
"<BEGIN>\n## `by_own_time_per_call`",
"Sorting by exclusive elapsed time per call in descending order.\n<END>",
"<BEGIN>\n## `result`",
"Gets the frozen statistics to serialize by Pickle.\n<END>",
"<BEGIN>\n## `dump`",
"Saves the profiling result to a file",
" :param dump_filename: path to a file... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_node API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extract... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_node API.
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... | Finds a node by the given path from the given node. | "Finds a node by the given path from the given node." | 83 | false | what-studio/profiling | find_node | 16,494 | |
LDU_FT/vbwagner/ctypescrypto/verify | LDU_FT | [
"<BEGIN>\n## `digest`",
"Method digest is redefined to return keyed MAC value instead of\n just digest.\n<END>",
"<BEGIN>\n## `bytes`",
"Returns num bytes of cryptographically strong pseudo-random\n bytes. If checkc_result is True, raises error if PRNG is not\n seeded enough\n<END>",
"<BEGIN>\n... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the verify API.
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 verify API.
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 ... | Verify self. Supports verification on both X509 store object
or just public issuer key
@param store X509Store object.
@param chain - list of X509 objects to add into verification
context.These objects are untrusted, but can be used to
build certificate chain up to trusted... | "Verify self. Supports verification on both X509 store object\n or just public issuer key\n @param store X509Store object.\n @param chain - list of X509 objects to add into verification\n context.These objects are untrusted, but can be used to\n build certificate chain up to t... | 119 | false | vbwagner/ctypescrypto | verify | 16,495 | |
LDU_FT/jaraco/jaraco.context/repo_context | LDU_FT | [
"<BEGIN>\n## `run`",
"Run a command in the context of the system dependencies.\n<END>",
"<BEGIN>\n## `dependency_context`",
"Install the supplied packages and yield. Finally, remove all packages\n\tthat were installed.\n\tCurrently assumes 'aptitude' is available.\n<END>",
"<BEGIN>\n## `tarball_context`",
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the repo_context API.
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 repo_context API.
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... | Check out the repo indicated by url.
If dest_ctx is supplied, it should be a context manager
to yield the target directory for the check out. | "Check out the repo indicated by url.\n\n\tIf dest_ctx is supplied, it should be a context manager\n\tto yield the target directory for the check out." | 13 | false | jaraco/jaraco.context | repo_context | 16,496 | |
LDU_FT/cloudmesh-cmd3/cmd3/do_exec | LDU_FT | [
"<BEGIN>\n## `do_clear`",
"Usage:\n clear",
" Clears the screen.\n<END>",
"<BEGIN>\n## `do_banner`",
"::",
" Usage:\n banner [-c CHAR] [-n WIDTH] [-i INDENT] [-r COLOR] TEXT",
" Arguments:\n TEXT The text message from which to creat... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the do_exec API.
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 do_exec API.
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... | ::
Usage:
exec FILENAME
executes the commands in the file. See also the script command.
Arguments:
FILENAME The name of the file | "::\n \n Usage:\n exec FILENAME\n\n executes the commands in the file. See also the script command.\n\n Arguments:\n FILENAME The name of the file" | 184 | false | cloudmesh-cmd3/cmd3 | do_exec | 16,497 | |
LDU_FT/SpikeInterface/spikeextractors/get_epoch_info | LDU_FT | [
"<BEGIN>\n## `write_recording`",
"Save recording extractor to MEArec format.\n Parameters\n ----------\n recording: RecordingExtractor\n Recording extractor object to be saved\n save_path: str\n .h5 or .hdf5 path\n<END>",
"<BEGIN>\n## `write_sorting`",
"Save s... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_epoch_info API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ex... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_epoch_info API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ex... | This function returns the start frame and end frame of the epoch
in a dict.
Parameters
----------
epoch_name: str
The name of the epoch to be returned
Returns
----------
epoch_info: dict
A dict containing the start frame and end frame of ... | "This function returns the start frame and end frame of the epoch\n in a dict.\n\n Parameters\n ----------\n epoch_name: str\n The name of the epoch to be returned\n\n Returns\n ----------\n epoch_info: dict\n A dict containing the start frame and e... | 115 | false | SpikeInterface/spikeextractors | get_epoch_info | 16,498 | |
LDU_FT/eventbrite/eventbrite-sdk-python/post_event_public_discount | LDU_FT | [
"<BEGIN>\n## `objectify`",
"Converts the returned value from a models.Payload to\n a models.EventbriteObject. Used by the access methods\n of the client.Eventbrite object\n<END>",
"<BEGIN>\n## `get_category`",
"GET /categories/:id/\n Gets a :format:`category` by ID as ``category``.\n<END>... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the post_event_public_discount 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 post_event_public_discount API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclus... | POST /events/:id/public_discounts/:discount_id/
Updates a public discount; returns the result as a :format:`discount` as the key ``discount``. | "POST /events/:id/public_discounts/:discount_id/\n Updates a public discount; returns the result as a :format:`discount` as the key ``discount``." | 194 | false | eventbrite/eventbrite-sdk-python | post_event_public_discount | 16,499 | |
LDU_FT/dustin/twitty-twister/__clientDefer | LDU_FT | [
"<BEGIN>\n## `__downloadPage`",
"Start a HTTP download, returning a HTTPDownloader object\n<END>",
"<BEGIN>\n## `__encodeMultipart`",
"fields is a sequence of (name, value) elements for regular form fields.\n files is a sequence of (name, filename, value) elements for data to be uploaded as files\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the __clientDefer API.
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 __clientDefer API.
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... | Return a deferred for a HTTP client, after handling incoming headers | "Return a deferred for a HTTP client, after handling incoming headers" | 93 | false | dustin/twitty-twister | __clientDefer | 16,500 | |
LDU_FT/biolink/biolink-model/ancestors | LDU_FT | [
"<BEGIN>\n## `cli`",
"Generate JSON Schema representation of a biolink model\n<END>",
"<BEGIN>\n## `root_representer`",
"YAML callback -- used to filter out empty values (None, {}, [] and false)",
" @param dumper: data dumper\n @param data: data to be dumped\n @return:\n<END>",
"<BEGIN>\n## `cli`... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the ancestors API.
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 ancestors API.
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 an ordered list of ancestor names for the supplied slot or class
@param definition: Slot or class name or definition
@return: List of ancestor names | "Return an ordered list of ancestor names for the supplied slot or class\n\n @param definition: Slot or class name or definition\n @return: List of ancestor names" | 119 | false | biolink/biolink-model | ancestors | 16,501 | |
LDU_FT/zimeon/iiif/region_to_apply | LDU_FT | [
"<BEGIN>\n## `do_first`",
"Load generator, set size.",
" We take the generator module name from self.srcfile so that\n this manipulator will work with different generators in a\n similar way to how the ordinary generators work with\n different images\n<END>",
"<BEGIN>\n## `main`",
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the region_to_apply API.
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 region_to_apply API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The e... | Return the x,y,w,h parameters to extract given image width and height.
Assume image width and height are available in self.width and
self.height, and self.request is IIIFRequest object
Expected use:
(x,y,w,h) = self.region_to_apply()
if (x is None):
# full ima... | "Return the x,y,w,h parameters to extract given image width and height.\n\n Assume image width and height are available in self.width and\n self.height, and self.request is IIIFRequest object\n\n Expected use:\n (x,y,w,h) = self.region_to_apply()\n if (x is None):\n #... | 333 | false | zimeon/iiif | region_to_apply | 16,502 | |
LDU_FT/jvamvas/rhymediscovery/iterate | LDU_FT | [
"<BEGIN>\n## `init_perfect_ttable`",
"initialize (normalized) theta according to whether words rhyme\n<END>",
"<BEGIN>\n## `get_wordlist`",
"Get an iterable of all final words in all stanzas\n<END>",
"<BEGIN>\n## `get_rhymelists`",
"Returns ordered lists of the stanza's word indices as defined by given sc... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the iterate API.
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 iterate API.
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... | Iterate EM and return final probabilities | "Iterate EM and return final probabilities" | 28 | false | jvamvas/rhymediscovery | iterate | 16,503 | |
LDU_FT/potash/drain/recall_series | LDU_FT | [
"<BEGIN>\n## `y_score`",
"Score examples from a new matrix X\n Args:\n estimator: an sklearn estimator object\n X: design matrix with the same features that the estimator was trained on",
" Returns: a vector of scores of the same length as X",
" Note that estimator.predict_proba is pref... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the recall_series API.
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 recall_series API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | Returns series of length k whose i-th entry is the recall in the top i | "Returns series of length k whose i-th entry is the recall in the top i" | 165 | false | potash/drain | recall_series | 16,504 | |
LDU_FT/eternnoir/pyTelegramBotAPI/listener | LDU_FT | [
"<BEGIN>\n## `split_string`",
"Splits one string into multiple strings, with a maximum amount of `chars_per_string` characters per string.\n This is very useful for splitting one giant message into multiples.",
" :param text: The text to split\n :param chars_per_string: The number of characters per lin... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the listener API.
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 listener API.
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... | When new messages arrive TeleBot will call this function. | "When new messages arrive TeleBot will call this function." | 187 | false | eternnoir/pyTelegramBotAPI | listener | 16,505 | |
LDU_FT/tmbo/questionary/build | 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 build API.
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 build API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted d... | Create a choice object from different representations. | "Create a choice object from different representations." | 84 | false | tmbo/questionary | build | 16,506 | |
LDU_FT/twidi/django-extended-choices/add_subset | LDU_FT | [
"<BEGIN>\n## `create_choice`",
"Create an instance of a ``Choices`` object.",
" Parameters\n ----------\n klass : type\n The class to use to recreate the object.\n choices : list(tuple)\n A list of choices as expected by the ``__init__`` method of ``klass``.\n subsets : list(tuple)\... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_subset API.
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 add_subset API.
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 subset of entries under a defined name.
This allow to defined a "sub choice" if a django field need to not have the whole
choice available.
The sub-choice is a new ``Choices`` instance, with only the wanted the constant from the
main ``Choices`` (each "choice entry" in the subset... | "Add a subset of entries under a defined name.\n\n This allow to defined a \"sub choice\" if a django field need to not have the whole\n choice available.\n\n The sub-choice is a new ``Choices`` instance, with only the wanted the constant from the\n main ``Choices`` (each \"choice entry\" in... | 59 | false | twidi/django-extended-choices | add_subset | 16,507 | |
LDU_FT/timmahrt/ProMo/makeSequenceAbsolute | LDU_FT | [
"<BEGIN>\n## `plotF0`",
"Plots the original data in a graph above the plot of the dtw'ed data\n<END>",
"<BEGIN>\n## `f0Morph`",
"Resynthesizes the pitch track from a source to a target wav file",
" fromPitchData and toPitchData should be segmented according to the\n portions that you want to morph. T... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the makeSequenceAbsolute 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 makeSequenceAbsolute API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | Makes every value in a sequence absolute | "Makes every value in a sequence absolute" | 75 | false | timmahrt/ProMo | makeSequenceAbsolute | 16,508 | |
LDU_FT/suds-community/suds/_date_from_match | LDU_FT | [
"<BEGIN>\n## `xml`",
"Get xml representation of the object.\n @return: The root node.\n @rtype: L{Element}\n<END>",
"<BEGIN>\n## `skip`",
"Get whether to skip (filter-out) the specified attribute.\n @param attr: An attribute.\n @type attr: I{Attribute}\n @return: True if sho... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _date_from_match API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _date_from_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 ... | Create a date object from a regular expression match.
The regular expression match is expected to be from _RE_DATE or
_RE_DATETIME.
@param match_object: The regular expression match.
@type match_object: B{re}.I{MatchObject}
@return: A date object.
@rtype: B{datetime}.I{date} | "Create a date object from a regular expression match.\n\n The regular expression match is expected to be from _RE_DATE or\n _RE_DATETIME.\n\n @param match_object: The regular expression match.\n @type match_object: B{re}.I{MatchObject}\n @return: A date object.\n @rtype: B{datetime}.I{date}" | 466 | false | suds-community/suds | _date_from_match | 16,509 | |
LDU_FT/EnigmaBridge/jbossply/parse | LDU_FT | [
"<BEGIN>\n## `main`",
"Reads stdin jboss output, writes json on output\n :return:\n<END>",
"<BEGIN>\n## `tokenize`",
"Invoke the lexer on an input string an return the list of tokens.\n This is relatively inefficient and should only be used for\n testing/debugging as it slurps up all tokens i... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted d... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted d... | Parse the input JSON data string into a python data structure.
Args:
data: An input data string
lexer: An optional ply.lex instance that overrides the default lexer.
Returns:
A python dict or list representing the input JSON data. | "Parse the input JSON data string into a python data structure.\n Args:\n data: An input data string\n lexer: An optional ply.lex instance that overrides the default lexer.\n Returns:\n A python dict or list representing the input JSON data." | 10 | false | EnigmaBridge/jbossply | parse | 16,510 | |
LDU_FT/malthe/pop/create_or_clear | LDU_FT | [
"<BEGIN>\n## `local_machine_uuid`",
"Return local machine unique identifier.",
" >>> uuid = local_machine_uuid()\n<END>",
"<BEGIN>\n## `read`",
"Read Zookeeper state.",
" Read in the current Zookeeper state for this node. This\n operation should be called prior to other interactions with\... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_or_clear API.
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 create_or_clear API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The e... | Create path and recursively clear contents. | "Create path and recursively clear contents." | 16 | false | malthe/pop | create_or_clear | 16,511 | |
LDU_FT/marshmallow-code/marshmallow/post_dump | LDU_FT | [
"<BEGIN>\n## `_get_fields`",
"Get fields from a class. If ordered=True, fields will sorted by creation index.",
" :param attrs: Mapping of class attributes\n :param type field_class: Base field class\n :param bool pop: Remove matching fields\n<END>",
"<BEGIN>\n## `_get_fields_by_mro`",
"Collect fie... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the post_dump API.
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 post_dump API.
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... | Register a method to invoke after serializing an object. The method
receives the serialized object and returns the processed object.
By default, receives a single object at a time, transparently handling the ``many``
argument passed to the Schema. If ``pass_many=True``, the raw data
(which may be a col... | "Register a method to invoke after serializing an object. The method\n receives the serialized object and returns the processed object.\n\n By default, receives a single object at a time, transparently handling the ``many``\n argument passed to the Schema. If ``pass_many=True``, the raw data\n (which may be... | 153 | false | marshmallow-code/marshmallow | post_dump | 16,512 | |
LDU_FT/alpacahq/pylivetrader/_symbol_trades | LDU_FT | [
"<BEGIN>\n## `_deprecated_getitem_method`",
"Create a deprecated ``__getitem__`` method that tells users to use\n getattr instead.",
" Parameters\n ----------\n name : str\n The name of the object in the warning message.\n attrs : iterable[str]\n The set of allowed attributes.",
"... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _symbol_trades API.
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 _symbol_trades API.
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... | Query last_trade in parallel for multiple symbols and
return in dict.
symbols: list[str]
return: dict[str -> polygon.Trade] | "Query last_trade in parallel for multiple symbols and\n return in dict.\n\n symbols: list[str]\n\n return: dict[str -> polygon.Trade]" | 81 | false | alpacahq/pylivetrader | _symbol_trades | 16,513 | |
LDU_FT/jaysonsantos/python-binary-memcached/set_multi | LDU_FT | [
"<BEGIN>\n## `str_to_bytes`",
"Simply convert a string type to bytes if the value is a string\n and is an instance of six.string_types but not of six.binary_type\n in python2 struct.pack(\"<Q\") is both string_types and binary_type but\n in python3 struct.pack(\"<Q\") is binary_type but not a string_type... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_multi API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extract... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_multi API.
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... | Set multiple keys with it's values on server.
:param mappings: A dict with keys/values
:type mappings: dict
:param time: Time in seconds that your key will expire.
:type time: int
:param compress_level: How much to compress.
0 = no compression, 1 = fastest, 9 = slowe... | "Set multiple keys with it's values on server.\n\n :param mappings: A dict with keys/values\n :type mappings: dict\n :param time: Time in seconds that your key will expire.\n :type time: int\n :param compress_level: How much to compress.\n 0 = no compression, 1 = fastest, 9... | 132 | false | jaysonsantos/python-binary-memcached | set_multi | 16,514 | |
LDU_FT/vladsaveliev/TargQC/JoinTokens | LDU_FT | [
"<BEGIN>\n## `main`",
"Annotating BED file based on reference features annotations.\n<END>",
"<BEGIN>\n## `downsample`",
"get N random headers from a fastq file without reading the\n whole thing into memory\n modified from: http://www.biostars.org/p/6544/\n<END>",
"<BEGIN>\n## `AddIndex`",
"Recursiv... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the JoinTokens API.
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 JoinTokens API.
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... | Join tokens (which may be a mix of unicode and str values).
See notes on unicode at the top. This function allows mixing encoded utf-8
byte string tokens with unicode tokens. (Python's default encoding is ASCII,
and we don't want to change that.)
We also want to support pure byte strings, so we can't get ri... | "Join tokens (which may be a mix of unicode and str values).\n\n See notes on unicode at the top. This function allows mixing encoded utf-8\n byte string tokens with unicode tokens. (Python's default encoding is ASCII,\n and we don't want to change that.)\n\n We also want to support pure byte strings, so we can't... | 184 | false | vladsaveliev/TargQC | JoinTokens | 16,515 | |
LDU_FT/celery/cell/Consumer | LDU_FT | [
"<BEGIN>\n## `main`",
"Implement the actor main loop by waiting forever for messages.\n<END>",
"<BEGIN>\n## `send`",
"Call method on agent listening to ``routing_key``.",
" See :meth:`call_or_cast` for a full list of supported\n arguments.",
" If the keyword argument `nowait` is false... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the Consumer API.
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 Consumer API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracte... | Returns a :class:`kombu.Consumer` instance for this Actor | "Returns a :class:`kombu.Consumer` instance for this Actor" | 82 | false | celery/cell | Consumer | 16,516 | |
LDU_FT/nicodv/kmodes/_k_prototypes_iter | LDU_FT | [
"<BEGIN>\n## `init_huang`",
"Initialize centroids according to method by Huang [1997].\n<END>",
"<BEGIN>\n## `init_cao`",
"Initialize centroids according to method by Cao et al. [2009].",
" Note: O(N * attr * n_clusters**2), so watch out with large n_clusters\n<END>",
"<BEGIN>\n## `move_point_cat`",
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _k_prototypes_iter 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 _k_prototypes_iter 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... | Single iteration of the k-prototypes algorithm | "Single iteration of the k-prototypes algorithm" | 52 | false | nicodv/kmodes | _k_prototypes_iter | 16,517 | |
LDU_FT/OpenGov/carpenter/_find_titles | LDU_FT | [
"<BEGIN>\n## `get_cell_type`",
"Returns a type to be used in table cell analysis. This is either\n 'basestring' or '(int, float)'.\n<END>",
"<BEGIN>\n## `check_cell_type`",
"Checks the cell type to see if it represents the cell_type passed in.",
" Args:\n cell_type: The type id for a cell match... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _find_titles API.
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 _find_titles API.
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... | Helper method to find all titles for a particular cell. | "Helper method to find all titles for a particular cell." | 123 | false | OpenGov/carpenter | _find_titles | 16,518 | |
LDU_FT/dwavesystems/dimod/change_vartype | LDU_FT | [
"<BEGIN>\n## `sample`",
"Give random samples for a binary quadratic model.",
" Variable assignments are chosen by coin flip.",
" Args:\n bqm (:obj:`.BinaryQuadraticModel`):\n Binary quadratic model to be sampled from.",
" num_reads (int, optional, default=1... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the change_vartype API.
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 change_vartype API.
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 the :class:`SampleSet` with the given vartype.
Args:
vartype (:class:`.Vartype`/str/set):
Variable type to use for the new :class:`SampleSet`. Accepted input values:
* :class:`.Vartype.SPIN`, ``'SPIN'``, ``{-1, 1}``
* :class:`.Vartype.BINARY`,... | "Return the :class:`SampleSet` with the given vartype.\n\n Args:\n vartype (:class:`.Vartype`/str/set):\n Variable type to use for the new :class:`SampleSet`. Accepted input values:\n\n * :class:`.Vartype.SPIN`, ``'SPIN'``, ``{-1, 1}``\n * :class:`.Vartype.... | 908 | false | dwavesystems/dimod | change_vartype | 16,519 | |
LDU_FT/NiklasRosenstein/myo-python/normalized | LDU_FT | [
"<BEGIN>\n## `encode`",
"Encodes the number *value* to a MAC address ASCII string in binary form.\n Raises a #ValueError if *value* is a negative number or exceeds the MAC\n address range.\n<END>",
"<BEGIN>\n## `decode`",
"Decodes an ASCII encoded binary MAC address tring into a number.\n<END>",
"<BEGIN>\... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the normalized API.
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 normalized API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extrac... | Returns a normalized copy of this vector. | "Returns a normalized copy of this vector." | 44 | false | NiklasRosenstein/myo-python | normalized | 16,520 | |
LDU_FT/lemieuxl/pyGenClean/createLrrBafPlot | LDU_FT | [
"<BEGIN>\n## `main`",
"The main function of the module.",
" :param argString: the options.",
" :type argString: list",
" These are the steps:",
" 1. Prints the options.\n 2. If there are ``summarized_intensities`` provided, reads the files\n (:py:func:`read_summarized_intensities`) an... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the createLrrBafPlot API.
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 createLrrBafPlot API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | Creates the LRR and BAF plot.
:param raw_dir: the directory containing the intensities.
:param problematic_samples: the file containing the problematic samples.
:param format: the format of the plot.
:param dpi: the DPI of the resulting images.
:param out_prefix: the prefix of the output file.
... | "Creates the LRR and BAF plot.\n\n :param raw_dir: the directory containing the intensities.\n :param problematic_samples: the file containing the problematic samples.\n :param format: the format of the plot.\n :param dpi: the DPI of the resulting images.\n :param out_prefix: the prefix of the output fil... | 1,109 | true | lemieuxl/pyGenClean | createLrrBafPlot | 16,521 | |
LDU_FT/hanguokai/youku/find_videos_by_related | LDU_FT | [
"<BEGIN>\n## `check_error`",
"Youku error should return in json form, like:\n HTTP 400\n {\n \"error\":{\n \"code\":120010223,\n \"type\":\"UploadsException\",\n \"description\":\"Expired upload token\"\n }\n }",
" But error also maybe in response url p... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_videos_by_related 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 find_videos_by_related API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.... | doc: http://open.youku.com/docs/doc?id=52 | "doc: http://open.youku.com/docs/doc?id=52" | 120 | false | hanguokai/youku | find_videos_by_related | 16,522 | |
LDU_FT/edx/django-user-tasks/_create_chord_entry | LDU_FT | [
"<BEGIN>\n## `on_init`",
"Run sphinx-apidoc and swg2rst after Sphinx initialization.",
" Read the Docs won't run tox or custom shell commands, so we need this to\n avoid checking in the generated reStructuredText files.\n<END>",
"<BEGIN>\n## `create_user_task`",
"Create a :py:class:`UserTaskStatus` re... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _create_chord_entry API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
T... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _create_chord_entry 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... | Create and update status records for a new :py:class:`UserTaskMixin` in a Celery chord. | "Create and update status records for a new :py:class:`UserTaskMixin` in a Celery chord." | 43 | false | edx/django-user-tasks | _create_chord_entry | 16,523 | |
LDU_FT/dwavesystems/penaltymodel/relabel_variables | LDU_FT | [
"<BEGIN>\n## `get_penalty_model`",
"Factory function for penaltymodel_maxgap.",
" Args:\n specification (penaltymodel.Specification): The specification\n for the desired penalty model.",
" Returns:\n :class:`penaltymodel.PenaltyModel`: Penalty model with the given specification.... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the relabel_variables API.
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 relabel_variables API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | Relabel the variables and nodes according to the given mapping.
Args:
mapping (dict[hashable, hashable]): A dict with the current
variable labels as keys and new labels as values. A
partial mapping is allowed.
inplace (bool, optional, default=True):
... | "Relabel the variables and nodes according to the given mapping.\n\n Args:\n mapping (dict[hashable, hashable]): A dict with the current\n variable labels as keys and new labels as values. A\n partial mapping is allowed.\n\n inplace (bool, optional, default=Tru... | 186 | false | dwavesystems/penaltymodel | relabel_variables | 16,524 | |
LDU_FT/quantopian/zipline/set_asset_restrictions | LDU_FT | [
"<BEGIN>\n## `unwrap`",
"Get the cached value.",
" Returns\n -------\n value : object\n The cached value.",
" Raises\n ------\n Expired\n Raised when `dt` is greater than self.expires.\n<END>",
"<BEGIN>\n## `get`",
"Get the value of a cached ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_asset_restrictions 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 set_asset_restrictions API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.... | Set a restriction on which assets can be ordered.
Parameters
----------
restricted_list : Restrictions
An object providing information about restricted assets.
See Also
--------
zipline.finance.asset_restrictions.Restrictions | "Set a restriction on which assets can be ordered.\n\n Parameters\n ----------\n restricted_list : Restrictions\n An object providing information about restricted assets.\n\n See Also\n --------\n zipline.finance.asset_restrictions.Restrictions" | 2,011 | true | quantopian/zipline | set_asset_restrictions | 16,525 | |
LDU_FT/OnroerendErfgoed/crabpy_pyramid/item_land_adapter | LDU_FT | [
"<BEGIN>\n## `range_return`",
"Determine what range of objects to return.",
" Will check fot both `Range` and `X-Range` headers in the request and\n set both `Content-Range` and 'X-Content-Range' headers.",
" :rtype: list\n<END>",
"<BEGIN>\n## `set_http_caching`",
"Set an HTTP Cache Control heade... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the item_land_adapter API.
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 item_land_adapter API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | Adapter for rendering an item of
:class: `pycountry.db.Data` to json. | "Adapter for rendering an item of\n :class: `pycountry.db.Data` to json." | 72 | false | OnroerendErfgoed/crabpy_pyramid | item_land_adapter | 16,526 | |
LDU_FT/grst/geos/add_maps | LDU_FT | [
"<BEGIN>\n## `griditer`",
"Iterate through a grid of tiles.",
" Args:\n x (int): x start-coordinate\n y (int): y start-coordinate\n ncol (int): number of tile columns\n nrow (int): number of tile rows. If not specified, this\n defaults to ncol, s.t. a quadratic region i... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_maps API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracte... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_maps API.
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... | Recursively add maps in a folder hierarchy.
Args:
parent (KMLElement): KMLElement to which we want to append child folders or maps respectively
root_path (str): path of 'parent' | "Recursively add maps in a folder hierarchy.\n\n Args:\n parent (KMLElement): KMLElement to which we want to append child folders or maps respectively\n root_path (str): path of 'parent'" | 153 | false | grst/geos | add_maps | 16,527 | |
LDU_FT/Azure/azure-uamqp-python/send_all_messages_async | LDU_FT | [
"<BEGIN>\n## `_close_received`",
"Callback called when a connection CLOSE frame is received.\n This callback will process the received CLOSE error to determine if\n the connection is recoverable or whether it should be shutdown.\n :param error: The error information from the close\n f... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the send_all_messages_async API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the send_all_messages_async API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion... | Send all pending messages in the queue asynchronously.
This will return a list of the send result of all the pending
messages so it can be determined if any messages failed to send.
This function will open the client if it is not already open.
:param close_on_done: Close the client once... | "Send all pending messages in the queue asynchronously.\n This will return a list of the send result of all the pending\n messages so it can be determined if any messages failed to send.\n This function will open the client if it is not already open.\n\n :param close_on_done: Close the clien... | 299 | false | Azure/azure-uamqp-python | send_all_messages_async | 16,528 | |
LDU_FT/learningequality/iceqube/set_sqlite_pragmas | LDU_FT | [
"<BEGIN>\n## `wait_for_job_update`",
"Blocks until a job given by job_id has updated its state (canceled, completed, progress updated, etc.)\n if timeout is not None, then this function raises iceqube.exceptions.TimeoutError.",
" :param job_id: the job's job_id to monitor for changes.\n :pa... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_sqlite_pragmas 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 set_sqlite_pragmas 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... | Sets the connection PRAGMAs for the sqlalchemy engine stored in self.engine.
It currently sets:
- journal_mode to WAL
:return: None | "Sets the connection PRAGMAs for the sqlalchemy engine stored in self.engine.\n\n It currently sets:\n - journal_mode to WAL\n\n :return: None" | 93 | false | learningequality/iceqube | set_sqlite_pragmas | 16,529 | |
LDU_FT/pycontribs/jira/add_issues_to_sprint | LDU_FT | [
"<BEGIN>\n## `translate_resource_args`",
"Decorator that converts Issue and Project resources to their keys when used as arguments.\n<END>",
"<BEGIN>\n## `_check_update_`",
"Check if the current version of the library is outdated.\n<END>",
"<BEGIN>\n## `_fetch_pages`",
"Fetch pages.",
" :param it... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_issues_to_sprint 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 add_issues_to_sprint API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | Add the issues in ``issue_keys`` to the ``sprint_id``.
The sprint must be started but not completed.
If a sprint was completed, then have to also edit the history of the
issue so that it was added to the sprint before it was completed,
preferably before it started. A completed sprint's... | "Add the issues in ``issue_keys`` to the ``sprint_id``.\n\n The sprint must be started but not completed.\n\n If a sprint was completed, then have to also edit the history of the\n issue so that it was added to the sprint before it was completed,\n preferably before it started. A completed s... | 468 | false | pycontribs/jira | add_issues_to_sprint | 16,530 | |
LDU_FT/bbengfort/commis/add_arguments | LDU_FT | [
"<BEGIN>\n## `create_parser`",
"Creates the subparser for this particular command\n<END>",
"<BEGIN>\n## `add_arguments`",
"Definition and addition of all arguments.\n<END>",
"<BEGIN>\n## `add_arguments`",
"Add the label argument by default, no need to specify it in args.\n<END>",
"<BEGIN>\n## `handle_de... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_arguments API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_arguments API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | Add the label argument by default, no need to specify it in args. | "Add the label argument by default, no need to specify it in args." | 14 | false | bbengfort/commis | add_arguments | 16,531 | |
LDU_FT/LogicalDash/LiSE/disconnect | LDU_FT | [
"<BEGIN>\n## `on_touch_down`",
"If hit, record my starting position, that I may return to it in\n ``on_touch_up`` after creating a real :class:`board.Spot` or\n :class:`board.Pawn` instance.\n<END>",
"<BEGIN>\n## `on_touch_up`",
"Return to ``pos_start``, but first, save my current ``pos`` into\n... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the disconnect API.
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 disconnect API.
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... | No longer call the function when something changes here. | "No longer call the function when something changes here." | 660 | false | LogicalDash/LiSE | disconnect | 16,532 | |
LDU_FT/deeplook/svglib/find_font | LDU_FT | [
"<BEGIN>\n## `find_font`",
"Return the font and a Boolean indicating if the match is exact.\n<END>",
"<BEGIN>\n## `svg2rlg`",
"Convert an SVG file to an RLG Drawing object.\n<END>",
"<BEGIN>\n## `monkeypatch_reportlab`",
"https://bitbucket.org/rptlab/reportlab/issues/95/\n ReportLab always use 'Even-Od... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_font API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extract... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_font API.
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 font and a Boolean indicating if the match is exact. | "Return the font and a Boolean indicating if the match is exact." | 40 | false | deeplook/svglib | find_font | 16,533 | |
LDU_FT/jhshi/wltrace/to_phy | LDU_FT | [
"<BEGIN>\n## `mcs_to_rate`",
"Convert MCS index to rate in Mbps.",
" See http://mcsindex.com/",
" Args:\n mcs (int): MCS index\n bw (int): bandwidth, 20, 40, 80, ...\n long_gi(bool): True if long GI is used.",
" Returns:\n rate (float): bitrate in Mbps",
" >>> mcs_t... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the to_phy API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the to_phy API.
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 ... | Convert this to the standard :class:`pyparser.capture.common.PhyInfo`
class. | "Convert this to the standard :class:`pyparser.capture.common.PhyInfo`\n class." | 47 | false | jhshi/wltrace | to_phy | 16,534 | |
LDU_FT/KelSolaar/Umbra/reload_components_ui | LDU_FT | [
"<BEGIN>\n## `restore_geometry_on_layout_change`",
"Setter for **self.__restore_geometry_on_layout_change** attribute.",
" :param value: Attribute value.\n :type value: bool\n<END>",
"<BEGIN>\n## `get`",
"Returns given layout value.",
" :param layout: Layout name.\n :type layou... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the reload_components_ui 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 reload_components_ui API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | Reloads user selected Components.
:return: Method success.
:rtype: bool
:note: May require user interaction. | "Reloads user selected Components.\n\n :return: Method success.\n :rtype: bool\n\n :note: May require user interaction." | 1,432 | true | KelSolaar/Umbra | reload_components_ui | 16,535 | |
LDU_FT/miguelmoreto/pycomtrade/getTime | LDU_FT | [
"<BEGIN>\n## `clear`",
"Clear the internal (private) variables of the class.\n<END>",
"<BEGIN>\n## `getTime`",
"Actually, this function creates a time stamp vector \n based on the number of samples and sample rate.\n<END>",
"<BEGIN>\n## `getAnalogID`",
"Returns the COMTRADE ID of a given channel nu... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the getTime API.
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 getTime API.
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... | Actually, this function creates a time stamp vector
based on the number of samples and sample rate. | "Actually, this function creates a time stamp vector \n based on the number of samples and sample rate." | 22 | false | miguelmoreto/pycomtrade | getTime | 16,536 | |
LDU_FT/radujica/baloo/merge | LDU_FT | [
"<BEGIN>\n## `evaluate`",
"Evaluates by creating an Index containing evaluated data.",
" See `LazyResult`",
" Returns\n -------\n Index\n Index with evaluated data.\n<END>",
"<BEGIN>\n## `raw`",
"Decorator for eager functions checking input array\n and stripping a... | 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... | Database-like join this DataFrame with the other DataFrame.
Currently assumes the on-column(s) values are unique!
Note there's no automatic cast if the type of the on columns differs.
Algorithms and limitations:
- Merge algorithms: merge-join or hash-join. Typical pros and cons apply... | "Database-like join this DataFrame with the other DataFrame.\n\n Currently assumes the on-column(s) values are unique!\n\n Note there's no automatic cast if the type of the on columns differs.\n\n Algorithms and limitations:\n\n - Merge algorithms: merge-join or hash-join. Typical pros and c... | 478 | false | radujica/baloo | merge | 16,537 | |
LDU_FT/fudge-py/fudge/expects | LDU_FT | [
"<BEGIN>\n## `fmt_val`",
"Format a value for inclusion in an \n informative text string.\n<END>",
"<BEGIN>\n## `fmt_dict_vals`",
"Returns list of key=val pairs formatted\n for inclusion in an informative text string.\n<END>",
"<BEGIN>\n## `with_patched_object`",
"Decorator that patches an object bef... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the expects API.
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 expects API.
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... | Expect a call.
.. doctest::
:hide:
>>> import fudge
>>> fudge.clear_expectations()
>>> fudge.clear_calls()
If the method *call_name* is never called, then raise an error. I.E.::
>>> session = Fake('session').expects('open').expects('close'... | "Expect a call.\n\n .. doctest::\n :hide:\n\n >>> import fudge\n >>> fudge.clear_expectations()\n >>> fudge.clear_calls()\n\n If the method *call_name* is never called, then raise an error. I.E.::\n\n >>> session = Fake('session').expects('open').exp... | 155 | false | fudge-py/fudge | expects | 16,538 | |
LDU_FT/exhuma/python-cluster/assign_item | LDU_FT | [
"<BEGIN>\n## `getclusters`",
"Generates *count* clusters.",
" :param count: The amount of clusters that should be generated. count\n must be greater than ``1``.\n :raises ClusteringError: if *count* is out of bounds.\n<END>",
"<BEGIN>\n## `assign_item`",
"Assigns an item from a giv... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the assign_item API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the assign_item API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | Assigns an item from a given cluster to the closest located cluster.
:param item: the item to be moved.
:param origin: the originating cluster. | "Assigns an item from a given cluster to the closest located cluster.\n\n :param item: the item to be moved.\n :param origin: the originating cluster." | 76 | false | exhuma/python-cluster | assign_item | 16,539 | |
LDU_FT/PBR/MQ2/generate_map_chart_file | LDU_FT | [
"<BEGIN>\n## `add_qtl_to_marker`",
"Add the number of QTLs found for a given marker.",
" :arg marker, the marker we are looking for the QTL's.\n :arg qtls, the list of all QTLs found.\n<END>",
"<BEGIN>\n## `add_qtl_to_map`",
"This function adds to a genetic map for each marker the number\n of signi... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the generate_map_chart_file API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the generate_map_chart_file API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion... | This function converts our QTL matrix file into a MapChart input
file.
:arg qtl_matrix: the path to the QTL matrix file generated by
the plugin.
:arg lod_threshold: threshold used to determine if a given LOD value
is reflective the presence of a QTL.
:kwarg map_chart_file: name of the o... | "This function converts our QTL matrix file into a MapChart input\n file.\n\n :arg qtl_matrix: the path to the QTL matrix file generated by\n the plugin.\n :arg lod_threshold: threshold used to determine if a given LOD value\n is reflective the presence of a QTL.\n :kwarg map_chart_file: name ... | 98 | false | PBR/MQ2 | generate_map_chart_file | 16,540 | |
LDU_FT/JosuaKrause/quick_server/mirror_file | LDU_FT | [
"<BEGIN>\n## `json_dumps`",
"A safe JSON dump function that provides correct diverging numbers for a\n ECMAscript consumer.\n<END>",
"<BEGIN>\n## `msg`",
"Prints a message from the server to the log file.\n<END>",
"<BEGIN>\n## `setup_restart`",
"Sets up restart functionality that doesn't keep the fi... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the mirror_file API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the mirror_file API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | Mirrors a file to a different location. Each time the file changes
while the process is running it will be copied to 'path_to',
overwriting the destination.
Parameters
----------
path_to : string
The mirror destination.
path_from : string
T... | "Mirrors a file to a different location. Each time the file changes\n while the process is running it will be copied to 'path_to',\n overwriting the destination.\n\n Parameters\n ----------\n path_to : string\n The mirror destination.\n\n path_from : string\n ... | 90 | false | JosuaKrause/quick_server | mirror_file | 16,541 | |
LDU_FT/pybel/pybel/sort_qualified_edges | LDU_FT | [
"<BEGIN>\n## `postpend_location`",
"Rip off the closing parentheses and adds canonicalized modification.",
" I did this because writing a whole new parsing model for the data would be sad and difficult",
" :param bel_string: BEL string representing node\n :param dict location_model: A dictionary cont... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the sort_qualified_edges 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 sort_qualified_edges API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | Return the qualified edges, sorted first by citation, then by evidence, then by annotations.
:param BELGraph graph: A BEL graph | "Return the qualified edges, sorted first by citation, then by evidence, then by annotations.\n\n :param BELGraph graph: A BEL graph" | 1,164 | true | pybel/pybel | sort_qualified_edges | 16,542 | |
LDU_FT/koszullab/metaTOR/split_matrix | LDU_FT | [
"<BEGIN>\n## `download_and_install_dependencies`",
"Setup URLS and download dependencies for Python 3.6+\n<END>",
"<BEGIN>\n## `main`",
"This module just acts as an entry point to the bulk of the pipeline.\n All argument parsing is delegated to metator.sh\n<END>",
"<BEGIN>\n## `rename_genome`",
"Rename... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the split_matrix API.
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 split_matrix API.
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... | Split multiple chromosome matrix
Split a labeled matrix with multiple chromosomes
into unlabeled single-chromosome matrices. Inter chromosomal
contacts are discarded.
Parameters
----------
M : array_like
The multiple chromosome matrix to be split
contigs : list or array_like
... | "Split multiple chromosome matrix \n\n Split a labeled matrix with multiple chromosomes\n into unlabeled single-chromosome matrices. Inter chromosomal\n contacts are discarded.\n\n Parameters\n ----------\n M : array_like\n The multiple chromosome matrix to be split\n contigs : list or array... | 180 | false | koszullab/metaTOR | split_matrix | 16,543 | |
LDU_FT/mbr/tinyrpc/create | LDU_FT | [
"<BEGIN>\n## `error_respond`",
"Converts the error to an error response object.",
" :return: An error response object ready to be serialized and sent to the client.\n :rtype: :py:class:`JSONRPCErrorResponse`\n<END>",
"<BEGIN>\n## `error_respond`",
"Create an error response to this request.",
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create API.
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 create API.
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 ... | Create new server transport.
Instead of creating the socket yourself, you can call this function and
merely pass the :py:class:`zmq.core.context.Context` instance.
By passing a context imported from :py:mod:`zmq.green`, you can use
green (gevent) 0mq sockets as well.
:param zm... | "Create new server transport.\n\n Instead of creating the socket yourself, you can call this function and\n merely pass the :py:class:`zmq.core.context.Context` instance.\n\n By passing a context imported from :py:mod:`zmq.green`, you can use\n green (gevent) 0mq sockets as well.\n\n ... | 120 | false | mbr/tinyrpc | create | 16,544 | |
LDU_FT/happyleavesaoc/aoc-mgz/_parse_action | LDU_FT | [
"<BEGIN>\n## `ObjectEnum`",
"Object Enumeration.",
" Should export the whole list from the game for the best accuracy.\n<END>",
"<BEGIN>\n## `_parse`",
"Parse stream to find a given byte string.\n<END>",
"<BEGIN>\n## `_parse`",
"Parse until a given byte string is found.\n<END>",
"<BEGIN>\n## `_find... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _parse_action API.
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 _parse_action API.
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... | Parse a player action.
TODO: handle cancels | "Parse a player action.\n\n TODO: handle cancels" | 43 | false | happyleavesaoc/aoc-mgz | _parse_action | 16,545 | |
LDU_FT/AndresMWeber/Nomenclate/get_string_camel_patterns | 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_string_camel_patterns 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 get_string_camel_patterns API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi... | Finds all permutations of possible camel casing of the given name
:param name: str, the name we need to get all possible permutations and abbreviations for
:param min_length: int, minimum length we want for abbreviations
:return: list(list(str)), list casing permutations of list of abbreviation... | "Finds all permutations of possible camel casing of the given name\n\n :param name: str, the name we need to get all possible permutations and abbreviations for\n :param min_length: int, minimum length we want for abbreviations\n :return: list(list(str)), list casing permutations of list of abbrevi... | 140 | false | AndresMWeber/Nomenclate | get_string_camel_patterns | 16,546 | |
LDU_FT/django-fluent/django-fluent-contents/can_use_cached_output | LDU_FT | [
"<BEGIN>\n## `type_id`",
"Shortcut to retrieving the ContentType id of the model.\n<END>",
"<BEGIN>\n## `get_output_cache_key`",
".. versionadded:: 0.9\n Return the default cache key which is used to store a rendered item.\n By default, this function generates the cache key using :func:`ge... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the can_use_cached_output 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 can_use_cached_output API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | Tell whether the code should try reading cached output | "Tell whether the code should try reading cached output" | 227 | false | django-fluent/django-fluent-contents | can_use_cached_output | 16,547 | |
LDU_FT/hsdp/python-dropsonde/get_uuid_string | LDU_FT | [
"<BEGIN>\n## `proto_refactor`",
"This method refactors a Protobuf file to import from a namespace\n that will map to the desired python package structure. It also ensures\n that the syntax is set to \"proto2\", since protoc complains without it.",
" Args:\n proto_filename (str): the protobuf fil... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_uuid_string API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The e... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_uuid_string API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The e... | This method parses a UUID protobuf message type from its component
'high' and 'low' longs into a standard formatted UUID string
Args:
x (dict): containing keys, 'low' and 'high' corresponding to the UUID
protobuf message type
Returns:
str: UUID formatted string | "This method parses a UUID protobuf message type from its component\n 'high' and 'low' longs into a standard formatted UUID string\n\n Args:\n x (dict): containing keys, 'low' and 'high' corresponding to the UUID\n protobuf message type\n\n Returns:\n str: UUID formatted string" | 16 | false | hsdp/python-dropsonde | get_uuid_string | 16,548 | |
LDU_FT/tylertreat/BigQuery-Python/_insert_job | LDU_FT | [
"<BEGIN>\n## `get_client`",
"Return a singleton instance of BigQueryClient. Either\n AssertionCredentials or a service account and private key combination need\n to be provided in order to authenticate requests to BigQuery.",
" Parameters\n ----------\n project_id : str, optional\n The Big... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _insert_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 extra... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _insert_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 extra... | Submit a job to BigQuery
Direct proxy to the insert() method of the offical BigQuery
python client.
Able to submit load, link, query, copy, or extract jobs.
For more details, see:
https://google-api-client-libraries.appspot.com/documentation/bigquery/v2/pyt... | "Submit a job to BigQuery\n\n Direct proxy to the insert() method of the offical BigQuery\n python client.\n\n Able to submit load, link, query, copy, or extract jobs.\n\n For more details, see:\n https://google-api-client-libraries.appspot.com/documentation/bigque... | 227 | false | tylertreat/BigQuery-Python | _insert_job | 16,549 | |
LDU_FT/pywavefront/PyWavefront/create_line_generator | LDU_FT | [
"<BEGIN>\n## `load_vertex_buffer`",
"Load vertex data from file. Can be overriden to reduce data copy",
" :param fd: file object\n :param material: The material these vertices belong to\n :param length: Byte length of the vertex data\n<END>",
"<BEGIN>\n## `_load_vertex_buffers`",
"Load ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_line_generator API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_line_generator API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | Creates a generator function yielding lines in the file
Should only yield non-empty lines | "Creates a generator function yielding lines in the file\n Should only yield non-empty lines" | 42 | false | pywavefront/PyWavefront | create_line_generator | 16,550 | |
LDU_FT/petl-developers/petl/intervalleftjoin | LDU_FT | [
"<BEGIN>\n## `look`",
"Format a portion of the table as text for inspection in an interactive\n session. E.g.::",
" >>> import petl as etl\n >>> table1 = [['foo', 'bar'],\n ... ['a', 1],\n ... ['b', 2]]\n >>> etl.look(table1)\n +-----+-----+\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the intervalleftjoin API.
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 intervalleftjoin API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | Like :func:`petl.transform.intervals.intervaljoin` but rows from the left
table without a match in the right table are also included. E.g.::
>>> import petl as etl
>>> left = [['begin', 'end', 'quux'],
... [1, 2, 'a'],
... [2, 4, 'b'],
... [2, 5, 'c'... | "Like :func:`petl.transform.intervals.intervaljoin` but rows from the left \n table without a match in the right table are also included. E.g.::\n\n >>> import petl as etl\n >>> left = [['begin', 'end', 'quux'],\n ... [1, 2, 'a'],\n ... [2, 4, 'b'],\n ... [2... | 789 | false | petl-developers/petl | intervalleftjoin | 16,551 | |
LDU_FT/ansible/ansible-container/get_role_fingerprint | LDU_FT | [
"<BEGIN>\n## `to_bytes`",
"Make sure that a string is a byte string",
" :arg obj: An object to make sure is a byte string. In most cases this\n will be either a text string or a byte string. However, with\n ``nonstring='simplerepr'``, this can be used as a traceback-free\n version of `... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_role_fingerprint 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_role_fingerprint API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | Given a role definition from a service's list of roles, returns a hexdigest based on the role definition,
the role contents, and the hexdigest of each dependency | "Given a role definition from a service's list of roles, returns a hexdigest based on the role definition,\n the role contents, and the hexdigest of each dependency" | 64 | false | ansible/ansible-container | get_role_fingerprint | 16,552 | |
LDU_FT/jdoda/sdl2hl/draw_line | LDU_FT | [
"<BEGIN>\n## `was_init`",
"This function returns the subsystems which have previously been initialized.",
" Returns:\n Set[InitFlag]: Flags indicating which subsystems have been initialized.\n<END>",
"<BEGIN>\n## `load_bmp`",
"Load a surface from a file.",
" Args:\n path (str):... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the draw_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 extract... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the draw_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 extract... | Draw a line on the current rendering target.
Args:
x1 (int): The x coordinate of the start point.
y1 (int): The y coordinate of the start point.
x2 (int): The x coordinate of the end point.
y2 (int): The y coordinate of the end point.
Raises:
... | "Draw a line on the current rendering target.\n\n Args:\n x1 (int): The x coordinate of the start point.\n y1 (int): The y coordinate of the start point.\n x2 (int): The x coordinate of the end point.\n y2 (int): The y coordinate of the end point.\n\n Raises:\n ... | 134 | false | jdoda/sdl2hl | draw_line | 16,553 | |
LDU_FT/ga4gh/ga4gh-server/open | LDU_FT | [
"<BEGIN>\n## `VerifierMiddleware`",
"Common wrapper for the authentication modules.\n * Parses the request before passing it on to the authentication module.\n * Sets 'pyoidc' cookie if authentication succeeds.\n * Redirects the user to complete the authentication.\n * Allows the user ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the open API.
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 open API.
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... | Opens this repo in the specified mode.
TODO: figure out the correct semantics of this and document
the intended future behaviour as well as the current
transitional behaviour. | "Opens this repo in the specified mode.\n\n TODO: figure out the correct semantics of this and document\n the intended future behaviour as well as the current\n transitional behaviour." | 768 | false | ga4gh/ga4gh-server | open | 16,554 | |
LDU_FT/costastf/toonlib/thermostat_states | LDU_FT | [
"<BEGIN>\n## `get_arguments`",
"This get us the cli arguments.",
" Returns the args as parsed from the argsparser.\n<END>",
"<BEGIN>\n## `setup_logging`",
"This sets up the logging.",
" Needs the args to get the log level supplied\n :param args: The command line arguments\n<END>",
"<BEGIN>\n## ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the thermostat_states API.
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 thermostat_states API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | :return: A list of thermostatstate object modeled as named tuples | ":return: A list of thermostatstate object modeled as named tuples" | 46 | false | costastf/toonlib | thermostat_states | 16,555 | |
LDU_FT/Azure/azure-multiapi-storage-python/_query_entities | LDU_FT | [
"<BEGIN>\n## `_extract_encryption_metadata`",
"Extracts the encryption metadata from the given entity, setting them to be utf-8 strings.\n If no encryption metadata is present, will return None for all return values unless\n require_encryption is true, in which case the method will throw.",
" :param en... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _query_entities API.
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 _query_entities API.
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 a list of entities under the specified table. Makes a single list
request to the service. Used internally by the query_entities method.
:param str table_name:
The name of the table to query.
:param str filter:
Returns only entities that satisfy the specified fil... | "Returns a list of entities under the specified table. Makes a single list \n request to the service. Used internally by the query_entities method.\n\n :param str table_name:\n The name of the table to query.\n :param str filter:\n Returns only entities that satisfy the specif... | 364 | false | Azure/azure-multiapi-storage-python | _query_entities | 16,556 | |
LDU_FT/eReuse/utils/new_type | LDU_FT | [
"<BEGIN>\n## `get_nested_dicts_with_key_value`",
"Return all nested dictionaries that contain a key with a specific value. A sub-case of NestedLookup.\n<END>",
"<BEGIN>\n## `get_nested_dicts_with_key_containing_value`",
"Return all nested dictionaries that contain a key with a specific value. A sub-case of Ne... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the new_type API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracte... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the new_type API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracte... | Creates a resource type with optionally a prefix.
Using the rules of JSON-LD, we use prefixes to disambiguate between different types with the same name:
one can Accept a device or a project. In eReuse.org there are different events with the same names, in
linked-data terms they hav... | "Creates a resource type with optionally a prefix.\n\n Using the rules of JSON-LD, we use prefixes to disambiguate between different types with the same name:\n one can Accept a device or a project. In eReuse.org there are different events with the same names, in\n linked-data terms the... | 29 | false | eReuse/utils | new_type | 16,557 | |
LDU_FT/codeinthehole/purl/add_path_segment | 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 add_path_segment API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_path_segment API.
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 a new path segment to the end of the current string
:param string value: the new path segment to use
Example::
>>> u = URL('http://example.com/foo/')
>>> u.add_path_segment('bar').as_string()
'http://example.com/foo/bar' | "Add a new path segment to the end of the current string\n\n :param string value: the new path segment to use\n\n Example::\n\n >>> u = URL('http://example.com/foo/')\n >>> u.add_path_segment('bar').as_string()\n 'http://example.com/foo/bar'" | 75 | false | codeinthehole/purl | add_path_segment | 16,558 | |
LDU_FT/globality-corp/microcosm-flask/encode_id_header | LDU_FT | [
"<BEGIN>\n## `_serialize`",
"Serialize value as a timestamp, either as a Unix timestamp (in float second) or a UTC isoformat string.\n<END>",
"<BEGIN>\n## `_deserialize`",
"Deserialize value as a Unix timestamp (in float seconds).",
" Handle both numeric and UTC isoformat strings.\n<END>",
"<BEGIN>... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the encode_id_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 ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the encode_id_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 ... | Generate a header for a newly created resource.
Assume `id` attribute convention. | "Generate a header for a newly created resource.\n\n Assume `id` attribute convention." | 309 | false | globality-corp/microcosm-flask | encode_id_header | 16,559 | |
LDU_FT/marshmallow-code/marshmallow/get_func_args | LDU_FT | [
"<BEGIN>\n## `_get_fields`",
"Get fields from a class. If ordered=True, fields will sorted by creation index.",
" :param attrs: Mapping of class attributes\n :param type field_class: Base field class\n :param bool pop: Remove matching fields\n<END>",
"<BEGIN>\n## `_get_fields_by_mro`",
"Collect fie... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_func_args API.
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_func_args API.
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... | Given a callable, return a tuple of argument names. Handles
`functools.partial` objects and class-based callables.
.. versionchanged:: 3.0.0a1
Do not return bound arguments, eg. ``self``. | "Given a callable, return a tuple of argument names. Handles\n `functools.partial` objects and class-based callables.\n\n .. versionchanged:: 3.0.0a1\n Do not return bound arguments, eg. ``self``." | 153 | false | marshmallow-code/marshmallow | get_func_args | 16,560 | |
LDU_FT/puiterwijk/python-openid-teams/requestTeam | LDU_FT | [
"<BEGIN>\n## `parseExtensionArgs`",
"Parse the unqualified teams extension request\n parameters and add them to this object.",
" This method is essentially the inverse of\n C{L{getExtensionArgs}}. This method restores the serialized teams\n extension team names.",
" If you a... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the requestTeam API.
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 requestTeam API.
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... | Request the specified team membership from the OpenID user
@param team_name: the unqualified team name
@type team_name: str | "Request the specified team membership from the OpenID user\n\n @param team_name: the unqualified team name\n @type team_name: str" | 23 | false | puiterwijk/python-openid-teams | requestTeam | 16,561 | |
LDU_FT/aiortc/aiortc/getStats | LDU_FT | [
"<BEGIN>\n## `allocate_mid`",
"Allocate a MID which has not been used yet.\n<END>",
"<BEGIN>\n## `addIceCandidate`",
"Add a new :class:`RTCIceCandidate` received from the remote peer.",
" The specified candidate must have a value for either `sdpMid` or `sdpMLineIndex`.\n<END>",
"<BEGIN>\n## `addTra... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the getStats API.
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 getStats API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracte... | Returns statistics about the RTP sender.
:rtype: :class:`RTCStatsReport` | "Returns statistics about the RTP sender.\n\n :rtype: :class:`RTCStatsReport`" | 126 | false | aiortc/aiortc | getStats | 16,562 | |
LDU_FT/Cito/DBUtils/_get_tough_method | LDU_FT | [
"<BEGIN>\n## `connection`",
"Get a steady, cached DB-API 2 connection from the pool.",
" If shareable is set and the underlying DB-API 2 allows it,\n then the connection may be shared with other threads.\n<END>",
"<BEGIN>\n## `unshare`",
"Decrease the share of a connection in the shared cache.... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_tough_method API.
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_tough_method API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | Return a "tough" version of the given cursor method. | "Return a \"tough\" version of the given cursor method." | 80 | false | Cito/DBUtils | _get_tough_method | 16,563 | |
LDU_FT/AtomHash/evernode/create_password_reset | LDU_FT | [
"<BEGIN>\n## `exists`",
"Checks if item already exists in database\n<END>",
"<BEGIN>\n## `save`",
"Easy save(insert or update) for db models\n<END>",
"<BEGIN>\n## `trans`",
"Root Example:\r\n Translator()\r\n Translator.trans('messages.hello')\r\n resources/lang/en/messages.lang will ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_password_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.
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_password_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.
... | Create a password reset request in the user_password_resets
database table. Hashed code gets stored in the database.
Returns unhashed reset code | "Create a password reset request in the user_password_resets\r\n database table. Hashed code gets stored in the database.\r\n Returns unhashed reset code" | 56 | false | AtomHash/evernode | create_password_reset | 16,564 | |
LDU_FT/quora/qcore/object_from_string | LDU_FT | [
"<BEGIN>\n## `lazy_constant`",
"Decorator to make a function that takes no arguments use the LazyConstant class.\n<END>",
"<BEGIN>\n## `lru_cache`",
"Decorator that adds an LRU cache of size maxsize to the decorated function.",
" maxsize is the number of different keys cache can accomodate.\n key_fn i... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the object_from_string API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
Th... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the object_from_string API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
Th... | Creates a Python class or function from its fully qualified name.
:param name: A fully qualified name of a class or a function. In Python 3 this
is only allowed to be of text type (unicode). In Python 2, both bytes and unicode
are allowed.
:return: A function or class object.
This method i... | "Creates a Python class or function from its fully qualified name.\n\n :param name: A fully qualified name of a class or a function. In Python 3 this\n is only allowed to be of text type (unicode). In Python 2, both bytes and unicode\n are allowed.\n :return: A function or class object.\n\n This ... | 167 | false | quora/qcore | object_from_string | 16,565 | |
LDU_FT/Rackspace-DOT/flask_keystone/init_app | LDU_FT | [
"<BEGIN>\n## `generate_has_role_function`",
"Generate a `class.has_role('role_name')` method for a class.",
" :param class cls: The python class to be modified.\n :param dict roles: The roles to use for generation.",
" This method is intended to be used by an inheriting class to\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the init_app API.
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 init_app API.
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... | Iniitialize the Flask_Keystone module in an application factory.
:param app: `flask.Flask` application to which to connect.
:type app: `flask.Flask`
:param str config_group: :class:`oslo_config.cfg.OptGroup` to which
to attach.
When initialized, the ext... | "Iniitialize the Flask_Keystone module in an application factory.\n\n :param app: `flask.Flask` application to which to connect.\n :type app: `flask.Flask`\n :param str config_group: :class:`oslo_config.cfg.OptGroup` to which\n to attach.\n\n When initialized,... | 43 | false | Rackspace-DOT/flask_keystone | init_app | 16,566 | |
LDU_FT/cuzzo/iw_parse/get_channel | LDU_FT | [
"<BEGIN>\n## `get_quality`",
"Gets the quality of a network / cell.\n @param string cell\n A network / cell from iwlist scan.",
" @return string\n The quality of the network.\n<END>",
"<BEGIN>\n## `get_signal_level`",
"Gets the signal level of a network / cell.\n @param string cell\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_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 extra... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_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 extra... | Gets the channel of a network / cell.
@param string cell
A network / cell from iwlist scan.
@return string
The channel of the network. | "Gets the channel of a network / cell.\n @param string cell\n A network / cell from iwlist scan.\n\n @return string\n The channel of the network." | 25 | false | cuzzo/iw_parse | get_channel | 16,567 | |
LDU_FT/echonest/pyechonest/track_from_filename | LDU_FT | [
"<BEGIN>\n## `write_xspf`",
"send me a list of (artist,title,mp3_url)\n<END>",
"<BEGIN>\n## `callm`",
"Call the api! \n Param_dict is a *regular* *python* *dictionary* so if you want to have multi-valued params\n put them in a list.",
" ** note, if we require 2.6, we can get rid of this timeout mun... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the track_from_filename 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 track_from_filename 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... | Create a track object from a filename.
NOTE: Does not create the detailed analysis for the Track. Call
Track.get_analysis() for that.
Args:
filename: A string containing the path to the input file.
filetype: A string indicating the filetype; Defaults to None (type determined by file extens... | "Create a track object from a filename.\n\n NOTE: Does not create the detailed analysis for the Track. Call\n Track.get_analysis() for that.\n\n Args:\n filename: A string containing the path to the input file.\n filetype: A string indicating the filetype; Defaults to None (type determined by fil... | 438 | false | echonest/pyechonest | track_from_filename | 16,568 | |
LDU_FT/spacetelescope/drizzlepac/find_gsc_offset | LDU_FT | [
"<BEGIN>\n## `check_and_get_data`",
"Verify that all specified files are present. If not, retrieve them from MAST.",
" Parameters\n ----------\n input_list : list\n List of one or more calibrated fits images that will be used for catalog generation.",
" Returns\n =======\n total_input... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_gsc_offset API.
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 find_gsc_offset API.
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... | Find the GSC to GAIA offset based on guide star coordinates
Parameters
----------
image : str
Filename of image to be processed.
Returns
-------
delta_ra, delta_dec : tuple of floats
Offset in decimal degrees of image based on correction to guide star
coordinates relati... | "Find the GSC to GAIA offset based on guide star coordinates\n\n Parameters\n ----------\n image : str\n Filename of image to be processed.\n\n Returns\n -------\n delta_ra, delta_dec : tuple of floats\n Offset in decimal degrees of image based on correction to guide star\n coordi... | 1,138 | true | spacetelescope/drizzlepac | find_gsc_offset | 16,569 | |
LDU_FT/thiagopbueno/pyrddl/_extract_lower_bound | LDU_FT | [
"<BEGIN>\n## `rename_next_state_fluent`",
"Returns next state fluent canonical name.",
" Args:\n name (str): The current state fluent name.",
" Returns:\n str: The next state fluent name.\n<END>",
"<BEGIN>\n## `rename_state_fluent`",
"Returns current state fluent canonical name.",
" ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _extract_lower_bound 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 _extract_lower_bound 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 lower bound expression of the action with given `name`. | "Returns the lower bound expression of the action with given `name`." | 158 | false | thiagopbueno/pyrddl | _extract_lower_bound | 16,570 | |
LDU_FT/jsommers/switchyard/interface_by_macaddr | LDU_FT | [
"<BEGIN>\n## `router_main`",
"Main method for router; we stay in a loop in this method, receiving\n packets until the end of time.\n<END>",
"<BEGIN>\n## `from_bytes`",
"Takes a byte string as a parameter and returns a list of\n IPOption objects.\n<END>",
"<BEGIN>\n## `to_bytes`",
"Takes a li... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the interface_by_macaddr 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 interface_by_macaddr API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | Given a MAC address, return the interface that 'owns' this address | "Given a MAC address, return the interface that 'owns' this address" | 192 | false | jsommers/switchyard | interface_by_macaddr | 16,571 | |
LDU_FT/Yelp/kafka-utils/rewind_consumer_offsets | LDU_FT | [
"<BEGIN>\n## `get_assignment`",
"Parse the given json plan in dict format.\n<END>",
"<BEGIN>\n## `_send_consumer_aware_request`",
"Send a list of requests to the consumer coordinator for the group\n specified using the supplied encode/decode functions. As the payloads\n that use consumer-aware r... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the rewind_consumer_offsets 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 rewind_consumer_offsets API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion... | Rewind consumer offsets to the earliest message in the topic
partition (the low watermark).
This method shall refresh the client metadata prior to updating
the offsets.
If any partition leader is not available, the request fails for all the
other topics. This is the tradeoff of sending all topic r... | "Rewind consumer offsets to the earliest message in the topic\n partition (the low watermark).\n\n This method shall refresh the client metadata prior to updating\n the offsets.\n\n If any partition leader is not available, the request fails for all the\n other topics. This is the tradeoff of sending all... | 538 | false | Yelp/kafka-utils | rewind_consumer_offsets | 16,572 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.