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/gristlabs/asttokens/get_tokens
LDU_FT
[ "<BEGIN>\n## `get_token_from_offset`", "Returns the token containing the given character offset (0-based position in source text),\n or the preceeding token if the position is between tokens.\n<END>", "<BEGIN>\n## `get_token`", "Returns the token containing the given (lineno, col_offset) position, or the p...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_tokens API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_tokens API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
Yields all tokens making up the given node. If include_extra is True, includes non-coding tokens such as tokenize.NL and .COMMENT.
"Yields all tokens making up the given node. If include_extra is True, includes non-coding\n tokens such as tokenize.NL and .COMMENT."
46
false
gristlabs/asttokens
get_tokens
5,173
LDU_FT/trustar/trustar-python/get_community_trends
LDU_FT
[ "<BEGIN>\n## `from_dict`", "Create an indicator object from a dictionary.", " :param indicator: The dictionary.\n :return: The indicator object.\n<END>", "<BEGIN>\n## `to_dict`", "Creates a dictionary representation of the indicator.", " :param remove_nones: Whether ``None`` values sh...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_community_trends 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_community_trends API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Find indicators that are trending in the community. :param indicator_type: A type of indicator to filter by. If ``None``, will get all types of indicators except for MALWARE and CVEs (this convention is for parity with the corresponding view on the Dashboard). :param days_back: The number ...
"Find indicators that are trending in the community.\n\n :param indicator_type: A type of indicator to filter by. If ``None``, will get all types of indicators except\n for MALWARE and CVEs (this convention is for parity with the corresponding view on the Dashboard).\n :param days_back: The nu...
243
false
trustar/trustar-python
get_community_trends
5,174
LDU_FT/chovanecm/sacredboard/delete
LDU_FT
[ "<BEGIN>\n## `get_file`", "Get a specific file from GridFS.", " Returns a binary stream response or HTTP 404 if not found.\n<END>", "<BEGIN>\n## `get_files_zip`", "Send all artifacts or sources of a run as ZIP.\n<END>", "<BEGIN>\n## `get`", "Return the file identified by a file_id string.", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the delete API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the delete API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Delete run with the given id from the backend. :param run_id: Id of the run to delete. :raise NotImplementedError If not supported by the backend. :raise DataSourceError General data source error. :raise NotFoundError The run was not found. (Some backends may succeed even if the...
"Delete run with the given id from the backend.\n\n :param run_id: Id of the run to delete.\n :raise NotImplementedError If not supported by the backend.\n :raise DataSourceError General data source error.\n :raise NotFoundError The run was not found. (Some backends may succeed\n even...
128
false
chovanecm/sacredboard
delete
5,175
LDU_FT/mongolab/mongoctl/generate_start_command
LDU_FT
[ "<BEGIN>\n## `ensure_dir`", "If DIR_PATH does not exist, makes it. Failing that, raises Exception.\n Returns True if dir already existed; False if it had to be made.\n<END>", "<BEGIN>\n## `is_same_host`", "Returns true if host1 == host2 OR map to the same host (using DNS)\n<END>", "<BEGIN>\n## `is_same_a...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the generate_start_command 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_start_command API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
Check if we need to use numactl if we are running on a NUMA box. 10gen recommends using numactl on NUMA. For more info, see http://www.mongodb.org/display/DOCS/NUMA
"Check if we need to use numactl if we are running on a NUMA box.\n 10gen recommends using numactl on NUMA. For more info, see\n http://www.mongodb.org/display/DOCS/NUMA"
46
false
mongolab/mongoctl
generate_start_command
5,176
LDU_FT/mozilla/elasticutils/bulk_index
LDU_FT
[ "<BEGIN>\n## `chunked`", "Returns chunks of n length of iterable", " If len(iterable) % n != 0, then the last chunk will have length\n less than n.", " Example:", " >>> chunked([1, 2, 3, 4, 5], 2)\n [(1, 2), (3, 4), (5,)]\n<END>", "<BEGIN>\n## `format_explanation`", "Return explanation in...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the bulk_index API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the bulk_index API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
Adds or updates a batch of documents. :arg documents: List of Python dicts representing individual documents to be added to the index .. Note:: This must be serializable into JSON. :arg id_field: The name of the field to use as the document id. This...
"Adds or updates a batch of documents.\n\n :arg documents: List of Python dicts representing individual\n documents to be added to the index\n\n .. Note::\n\n This must be serializable into JSON.\n\n :arg id_field: The name of the field to use as the document\n ...
208
false
mozilla/elasticutils
bulk_index
5,177
LDU_FT/smartfile/client-python/sync
LDU_FT
[ "<BEGIN>\n## `_request`", "Handles retrying failed requests and error handling.\n<END>", "<BEGIN>\n## `download`", "file_to_be_downloaded is a file-like object that has already\n been uploaded, you cannot download folders\n<END>", "<BEGIN>\n## `signature`", "Requests a signature for remote file via...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the sync API. 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 sync API. 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...
Performs synchronization from source to destination. Performs the three steps: 1. Calculate signature of destination. 2. Generate delta from source. 3. Apply delta to destination.
"Performs synchronization from source to destination. Performs the three\n steps:\n\n 1. Calculate signature of destination.\n 2. Generate delta from source.\n 3. Apply delta to destination."
17
false
smartfile/client-python
sync
5,178
LDU_FT/99designs/colorific/save_palette_as_image
LDU_FT
[ "<BEGIN>\n## `color_stream_st`", "Read filenames from the input stream and detect their palette.\n<END>", "<BEGIN>\n## `color_stream_mt`", "Read filenames from the input stream and detect their palette using\n multiple processes.\n<END>", "<BEGIN>\n## `color_process`", "Receive filenames and get the co...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the save_palette_as_image 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 save_palette_as_image API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Save palette as a PNG with labeled, colored blocks
"Save palette as a PNG with labeled, colored blocks"
12
false
99designs/colorific
save_palette_as_image
5,179
LDU_FT/coopernurse/barrister/to_result
LDU_FT
[ "<BEGIN>\n## `get_checksum`", "Returns a checksum based on the IDL that ignores comments and \n ordering, but detects changes to types, parameter order, \n and enum values.\n<END>", "<BEGIN>\n## `contract_from_file`", "Loads a Barrister IDL JSON from the given file and returns a Contract class",...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the to_result API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the to_result API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
Takes a JSON-RPC response and checks for an "error" slot. If it exists, a RpcException is raised. If no "error" slot exists, the "result" slot is returned. If validate_response==True on the Client constructor, the result is validated against the expected return type for the function a...
"Takes a JSON-RPC response and checks for an \"error\" slot. If it exists,\n a RpcException is raised. If no \"error\" slot exists, the \"result\" slot is \n returned.\n\n If validate_response==True on the Client constructor, the result is validated\n against the expected return type for th...
126
false
coopernurse/barrister
to_result
5,180
LDU_FT/goldsmith/Wikipedia/coordinates
LDU_FT
[ "<BEGIN>\n## `set_lang`", "Change the language of the API being requested.\n Set `prefix` to one of the two letter prefixes found on the `list of all Wikipedias <http://meta.wikimedia.org/wiki/List_of_Wikipedias>`_.", " After setting the language, the cache for ``search``, ``suggest``, and ``summary`` will be...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the coordinates API. 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 coordinates API. 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...
Tuple of Decimals in the form of (lat, lon) or None
"Tuple of Decimals in the form of (lat, lon) or None"
62
false
goldsmith/Wikipedia
coordinates
5,181
LDU_FT/useblocks/sphinxcontrib-needs/_get_full_title
LDU_FT
[ "<BEGIN>\n## `row_col_maker`", "Creates and returns a column.", " :param app: current sphinx app\n :param fromdocname: current document\n :param all_needs: Dictionary of all need objects\n :param need_info: need_info object, which stores all related need data\n :param need_key: The key to access ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_full_title API. 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_full_title API. 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...
Determines the title for the need in order of precedence: directive argument, first sentence of requirement (if `:title_from_content:` was set, and '' if no title is to be derived.
"Determines the title for the need in order of precedence:\n directive argument, first sentence of requirement (if\n `:title_from_content:` was set, and '' if no title is to be derived."
155
false
useblocks/sphinxcontrib-needs
_get_full_title
5,182
LDU_FT/SiLab-Bonn/pyBAR_fei4_interpreter/hist_3d_index
LDU_FT
[ "<BEGIN>\n## `generate_scan_parameter_description`", "Generate scan parameter dictionary. This is the only way to dynamically create table with dictionary, cannot be done with tables.IsDescription", " Parameters\n ----------\n scan_parameters : list, tuple\n List of scan parameters names (string...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the hist_3d_index API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the hist_3d_index API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
Fast 3d histogram of 3D indices with C++ inner loop optimization. Is more than 2 orders faster than np.histogramdd(). The indices are given in x, y, z coordinates and have to fit into a histogram of the dimensions shape. Parameters ---------- x : array like y : array like z : array like ...
"Fast 3d histogram of 3D indices with C++ inner loop optimization.\n Is more than 2 orders faster than np.histogramdd().\n The indices are given in x, y, z coordinates and have to fit into a histogram of the dimensions shape.\n Parameters\n ----------\n x : array like\n y : array like\n z : array l...
31
false
SiLab-Bonn/pyBAR_fei4_interpreter
hist_3d_index
5,183
LDU_FT/jamesturk/scrapelib/set
LDU_FT
[ "<BEGIN>\n## `key_for_request`", "Return a cache key from a given set of request parameters.", " Default behavior is to return a complete URL for all GET\n requests, and None otherwise.", " Can be overriden if caching of non-get requests is desired.\n<END>", "<BEGIN>\n## `re...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
Set cache entry for key with contents of response.
"Set cache entry for key with contents of response."
20
false
jamesturk/scrapelib
set
5,184
LDU_FT/thespacedoctor/sherlock/add_data_to_database_table
LDU_FT
[ "<BEGIN>\n## `ingest`", "ingest the veron catalogue into the catalogues database", " See class docstring for usage.\n<END>", "<BEGIN>\n## `_create_dictionary_of_veron`", "create a list of dictionaries containing all the rows in the veron catalogue", " **Return:**\n - ``dictList`` ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_data_to_database_table 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 add_data_to_database_table API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclus...
*Import data in the list of dictionaries in the requested database table* Also adds HTMIDs and updates the sherlock-catalogue database helper table with the time-stamp of when the imported catlogue was last updated **Key Arguments:** - ``dictList`` - a list of dictionaries containing all t...
"*Import data in the list of dictionaries in the requested database table*\n\n Also adds HTMIDs and updates the sherlock-catalogue database helper table with the time-stamp of when the imported catlogue was last updated\n\n **Key Arguments:**\n - ``dictList`` - a list of dictionaries containing...
348
false
thespacedoctor/sherlock
add_data_to_database_table
5,185
LDU_FT/westonplatter/fast_arrow/unroll_option_legs
LDU_FT
[ "<BEGIN>\n## `in_chain`", "fetch all option instruments in an options chain\n - expiration_dates = optionally scope\n<END>", "<BEGIN>\n## `unroll_option_legs`", "unroll option orders like this,\n https://github.com/joshfraser/robinhood-to-csv/blob/master/csv-options-export.py\n<END>", "<BEGIN>...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the unroll_option_legs 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 unroll_option_legs 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...
unroll option orders like this, https://github.com/joshfraser/robinhood-to-csv/blob/master/csv-options-export.py
"unroll option orders like this,\n https://github.com/joshfraser/robinhood-to-csv/blob/master/csv-options-export.py"
23
false
westonplatter/fast_arrow
unroll_option_legs
5,186
LDU_FT/uralbash/sqlalchemy_mptt/rebuild
LDU_FT
[ "<BEGIN>\n## `mptt_before_insert`", "Based on example\n https://bitbucket.org/zzzeek/sqlalchemy/src/73095b353124/examples/nested_sets/nested_sets.py?at=master\n<END>", "<BEGIN>\n## `mptt_before_update`", "Based on this example:\n http://stackoverflow.com/questions/889527/move-node-in-nested-set\n<EN...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the rebuild API. 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 rebuild API. 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...
This function rebuid tree. Args: session (:mod:`sqlalchemy.orm.session.Session`): SQLAlchemy session Kwargs: tree_id (int or str): id of tree, default None Example: * :mod:`sqlalchemy_mptt.tests.TestTree.test_rebuild`
"This function rebuid tree.\n\n Args:\n session (:mod:`sqlalchemy.orm.session.Session`): SQLAlchemy session\n\n Kwargs:\n tree_id (int or str): id of tree, default None\n\n Example:\n\n * :mod:`sqlalchemy_mptt.tests.TestTree.test_rebuild`"
59
false
uralbash/sqlalchemy_mptt
rebuild
5,187
LDU_FT/guaix-ucm/numina/overplot_ds9reg
LDU_FT
[ "<BEGIN>\n## `combine`", "Combine HDUList objects using algorithm 'method\n<END>", "<BEGIN>\n## `logging_from_debugplot`", "Set debugging level based on debugplot value.", " Parameters\n ----------\n debugplot : int\n Debugging level for messages and plots. For details see\n '...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the overplot_ds9reg API. 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 overplot_ds9reg API. 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...
Overplot a ds9 region file. Parameters ---------- filename : str File name of the ds9 region file. ax : matplotlib axes instance Matplotlib axes instance.
"Overplot a ds9 region file.\n\n Parameters\n ----------\n filename : str\n File name of the ds9 region file.\n ax : matplotlib axes instance\n Matplotlib axes instance."
605
false
guaix-ucm/numina
overplot_ds9reg
5,188
LDU_FT/voicecom/pgtool/cmd_move
LDU_FT
[ "<BEGIN>\n## `quote_names`", "psycopg2 doesn't know how to quote identifier names, so we ask the server\n<END>", "<BEGIN>\n## `execute_catch`", "Run a query, but ignore any errors. For error recovery paths where the error handler should not raise another.\n<END>", "<BEGIN>\n## `cmd_copy`", "Uses CREATE DA...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the cmd_move API. 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 cmd_move API. 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...
Rename a database within a server. When used with --force, an existing database with the same name as DEST is replaced, the original is renamed out of place in the form DEST_old_YYYYMMDD (unless --no-backup is specified).
"Rename a database within a server.\n\n When used with --force, an existing database with the same name as DEST is replaced, the original is renamed out of\n place in the form DEST_old_YYYYMMDD (unless --no-backup is specified)."
20
false
voicecom/pgtool
cmd_move
5,189
LDU_FT/closeio/tasktiger/import_attribute
LDU_FT
[ "<BEGIN>\n## `set_system_lock`", "Set system lock for the semaphore.", " Sets a system lock that will expire in timeout seconds. This\n overrides all other locks. Existing locks cannot be renewed\n and no new locks will be permitted until the system lock\n expires.", " Argum...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the import_attribute API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the import_attribute API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Return an attribute from a dotted path name (e.g. "path.to.func").
"Return an attribute from a dotted path name (e.g. \"path.to.func\")."
124
false
closeio/tasktiger
import_attribute
5,190
LDU_FT/jmcarp/betfair.py/place_orders
LDU_FT
[ "<BEGIN>\n## `get_chunks`", "Split sequence into chunks.", " :param list sequence:\n :param int chunk_size:\n<END>", "<BEGIN>\n## `get_kwargs`", "Get all keys and values from dictionary where key is not `self`.", " :param dict kwargs: Input parameters\n<END>", "<BEGIN>\n## `check_status_code`",...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the place_orders API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the place_orders API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
Place new orders into market. This operation is atomic in that all orders will be placed or none will be placed. :param str market_id: The market id these orders are to be placed on :param list instructions: List of `PlaceInstruction` objects :param str customer_ref: Optional order iden...
"Place new orders into market. This operation is atomic in that all\n orders will be placed or none will be placed.\n\n :param str market_id: The market id these orders are to be placed on\n :param list instructions: List of `PlaceInstruction` objects\n :param str customer_ref: Optional orde...
68
false
jmcarp/betfair.py
place_orders
5,191
LDU_FT/moralrecordings/mrcrowbar/validate
LDU_FT
[ "<BEGIN>\n## `decode_nfo`", "Decodes a byte string in NFO format (beloved by PC scener groups) from DOS Code Page 437 \n to Unicode.\n<END>", "<BEGIN>\n## `ansi_format_iter`", "Return the ANSI escape sequence to render the image.", " x_start\n Offset from the left of the image data to r...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the validate API. 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 validate API. 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...
Validate all the fields on this Block instance.
"Validate all the fields on this Block instance."
214
false
moralrecordings/mrcrowbar
validate
5,192
LDU_FT/nesaro/pydsl/extract_alphabet
LDU_FT
[ "<BEGIN>\n## `check`", "Checks if the input follows the definition\n<END>", "<BEGIN>\n## `formatchecker_factory`", "Converts a dictionary of strings:checkers into a formatchecker object\n<END>", "<BEGIN>\n## `item_set_goto`", "returns an itemset\n locate inside itemset every element with inputsymbol fo...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the extract_alphabet API. 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 extract_alphabet API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Receives a sequence and an alphabet, returns a list of PositionTokens with all of the parts of the sequence that are a subset of the alphabet
"Receives a sequence and an alphabet, \n returns a list of PositionTokens with all of the parts of the sequence that \n are a subset of the alphabet"
32
false
nesaro/pydsl
extract_alphabet
5,193
LDU_FT/ribozz/sphinx-argparse/paragraph
LDU_FT
[ "<BEGIN>\n## `customWalker`", "A convenience function to ease debugging. It will print the node structure that's returned from CommonMark", " The usage would be something like:", " >>> content = Parser().parse('Some big text block\\n===================\\n\\nwith content\\n')\n >>> customWalker(conten...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the paragraph API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the paragraph API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
Process a paragraph, which includes all content under it
"Process a paragraph, which includes all content under it"
37
false
ribozz/sphinx-argparse
paragraph
5,194
LDU_FT/pygobject/pgi/unpack_glist
LDU_FT
[ "<BEGIN>\n## `get_backend`", "Returns the backend by name or raises KeyError\n<END>", "<BEGIN>\n## `set_backend`", "Set a prefered ffi backend (cffi, ctypes).", " set_backend() -- default\n set_backend(\"cffi\") -- cffi first, others as fallback\n set_backend(\"ctypes\") -- ctypes first, others as ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the unpack_glist API. 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 unpack_glist API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
Takes a glist, copies the values casted to type_ in to a list and frees all items and the list.
"Takes a glist, copies the values casted to type_ in to a list\n and frees all items and the list."
363
false
pygobject/pgi
unpack_glist
5,195
LDU_FT/pricingassistant/mrq/all_active
LDU_FT
[ "<BEGIN>\n## `group_iter`", "Given an iterator, it returns sub-lists made of n items.\n (except the last that can have len < n)\n<END>", "<BEGIN>\n## `memoize`", "Memoization decorator for a function taking one or more arguments.\n<END>", "<BEGIN>\n## `memoize_single_argument`", "Memoization decorator ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the all_active API. 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 all_active API. 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...
List active queues, based on their lengths in Redis. Warning, uses the unscalable KEYS redis command
"List active queues, based on their lengths in Redis. Warning, uses the unscalable KEYS redis command"
123
false
pricingassistant/mrq
all_active
5,196
LDU_FT/kvesteri/validators/fi_ssn
LDU_FT
[ "<BEGIN>\n## `email`", "Validate an email address.", " This validator is based on `Django's email validator`_. Returns\n ``True`` on success and :class:`~validators.utils.ValidationFailure`\n when validation fails.", " Examples::", " >>> email('someone@example.com')\n True", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the fi_ssn API. 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 fi_ssn API. 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 ...
Validate a Finnish Social Security Number. This validator is based on `django-localflavor-fi`_. .. _django-localflavor-fi: https://github.com/django/django-localflavor-fi/ Examples:: >>> fi_ssn('010101-0101') True >>> fi_ssn('101010-0102') ValidationFailure(func=...
"Validate a Finnish Social Security Number.\n\n This validator is based on `django-localflavor-fi`_.\n\n .. _django-localflavor-fi:\n https://github.com/django/django-localflavor-fi/\n\n Examples::\n\n >>> fi_ssn('010101-0101')\n True\n\n >>> fi_ssn('101010-0102')\n Validatio...
102
false
kvesteri/validators
fi_ssn
5,197
LDU_FT/zalando/patroni/_tag_ec2
LDU_FT
[ "<BEGIN>\n## `create_connection`", "This method is trying to establish connection with one of the zookeeper nodes.\n Somehow strategy \"fail earlier and retry more often\" works way better comparing to\n the original strategy \"try to connect with specified timeout\".\n Since we want...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _tag_ec2 API. 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 _tag_ec2 API. 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...
tag the current EC2 instance with a cluster role
"tag the current EC2 instance with a cluster role"
228
false
zalando/patroni
_tag_ec2
5,198
LDU_FT/PyCQA/pydocstyle/_has_exclusive_option
LDU_FT
[ "<BEGIN>\n## `error_lineno`", "Get the line number with which to report violations.\n<END>", "<BEGIN>\n## `source`", "Return the source code for the definition.\n<END>", "<BEGIN>\n## `is_public`", "Return True iff this function should be considered public.\n<END>", "<BEGIN>\n## `is_magic`", "Return Tr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _has_exclusive_option 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 _has_exclusive_option 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 `True` iff one or more exclusive options were selected.
"Return `True` iff one or more exclusive options were selected."
183
false
PyCQA/pydocstyle
_has_exclusive_option
5,199
LDU_FT/seung-lab/cloud-volume/components
LDU_FT
[ "<BEGIN>\n## `decode_kempressed`", "subvol not bytestring since numpy conversion is done inside fpzip extension.\n<END>", "<BEGIN>\n## `bbox2array`", "Convenince method for creating a \n shared memory numpy array based on a CloudVolume\n and Bbox. c.f. sharedmemory.ndarray for information\n on the optional...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the components API. 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 components API. 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...
Extract connected components from graph. Useful for ensuring that you're working with a single tree. Returns: [ PrecomputedSkeleton, PrecomputedSkeleton, ... ]
"Extract connected components from graph. \n Useful for ensuring that you're working with a single tree.\n\n Returns: [ PrecomputedSkeleton, PrecomputedSkeleton, ... ]"
237
false
seung-lab/cloud-volume
components
5,200
LDU_FT/weso/CWR-DataApi/encode
LDU_FT
[ "<BEGIN>\n## `char_code`", "Character set code field.", " :param name: name for the field\n :return: an instance of the Character set code field rules\n<END>", "<BEGIN>\n## `_iso_handler`", "Transforms an object into it's ISO format, if possible.", " If the object can't be transformed, then an er...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the encode API. 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 encode API. 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 ...
Encodes the data, creating a CWR structure from an instance from the domain model. :param entity: the instance to encode :return: a cwr string structure created from the received data
"Encodes the data, creating a CWR structure from an instance from the\n domain model.\n\n :param entity: the instance to encode\n :return: a cwr string structure created from the received data"
208
false
weso/CWR-DataApi
encode
5,201
LDU_FT/pypa/warehouse/filter_query
LDU_FT
[ "<BEGIN>\n## `user_projects`", "Return all the projects for which the user is a sole owner\n<END>", "<BEGIN>\n## `merge`", "Merge one or more revisions.", " Takes one or more revisions or \"heads\" for all heads and merges them into\n a single revision.\n<END>", "<BEGIN>\n## `column_windows`", "Re...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the filter_query API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the filter_query API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
Filters given query with the below regex and returns lists of quoted and unquoted strings
"Filters given query with the below regex\n and returns lists of quoted and unquoted strings"
47
false
pypa/warehouse
filter_query
5,202
LDU_FT/dranjan/python-plyfile/write
LDU_FT
[ "<BEGIN>\n## `plot`", "Plot vertices and triangles from a PlyData instance. Assumptions:\n `ply' has a 'vertex' element with 'x', 'y', and 'z'\n properties;", " `ply' has a 'face' element with an integral list property\n 'vertex_indices', all of whose elements have length 3.\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the write API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the write API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
Write PLY data to a writeable file-like object or filename.
"Write PLY data to a writeable file-like object or filename."
34
false
dranjan/python-plyfile
write
5,203
LDU_FT/mpg-age-bioinformatics/AGEpy/RdatabasesBM
LDU_FT
[ "<BEGIN>\n## `checkCytoscapeVersion`", "Checks cytoscape version", " :param host: cytoscape host address, default=cytoscape_host\n :param port: cytoscape port, default=1234", " :returns: cytoscape and api version\n<END>", "<BEGIN>\n## `cytoscape`", "General function for interacting with Cytoscape...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the RdatabasesBM API. 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 RdatabasesBM API. 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...
Lists BioMart databases through a RPY2 connection. :param host: address of the host server, default='www.ensembl.org' :returns: nothing
"Lists BioMart databases through a RPY2 connection.\n\n :param host: address of the host server, default='www.ensembl.org'\n\n :returns: nothing"
237
false
mpg-age-bioinformatics/AGEpy
RdatabasesBM
5,204
LDU_FT/pauleveritt/kaybee/run
LDU_FT
[ "<BEGIN>\n## `render`", "Given a Sphinx builder and context with sphinx_app in it,\n generate HTML\n<END>", "<BEGIN>\n## `in_navitem`", "Given href of nav item, determine if resource is in it\n<END>", "<BEGIN>\n## `is_published`", "Return true if this resource has published date in the past\n<END...
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...
Run at parse time. When the documents are initially being scanned, this method runs and does two things: (a) creates an instance that is added to the site's widgets, and (b) leaves behind a placeholder docutils node that can later be processed after the docs are resolved. The la...
"Run at parse time.\n\n When the documents are initially being scanned, this method runs\n and does two things: (a) creates an instance that is added to\n the site's widgets, and (b) leaves behind a placeholder docutils\n node that can later be processed after the docs are resolved.\n ...
71
false
pauleveritt/kaybee
run
5,205
LDU_FT/user-cont/colin/tmpdir
LDU_FT
[ "<BEGIN>\n## `run`", "Runs the sanity checks for the target.", " :param timeout: timeout per-check (in seconds)\n :param skips: name of checks to skip\n :param target: str (image name, ostree or dockertar)\n or ImageTarget\n or path/file-like object for dockerfile\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the tmpdir API. 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 tmpdir API. 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 ...
Temporary directory holding all the runtime data.
"Temporary directory holding all the runtime data."
114
false
user-cont/colin
tmpdir
5,206
LDU_FT/BetterWorks/django-anonymizer/similar_email
LDU_FT
[ "<BEGIN>\n## `varchar`", "Returns a chunk of text, of maximum length 'max_length'\n<END>", "<BEGIN>\n## `simple_pattern`", "Use a simple pattern to make the field - # is replaced with a random number,\n ? with a random letter.\n<END>", "<BEGIN>\n## `datetime`", "Returns a random datetime. If 'val' ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the similar_email API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the similar_email API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
Generate a random email address using the same domain.
"Generate a random email address using the same domain."
57
false
BetterWorks/django-anonymizer
similar_email
5,207
LDU_FT/Riffstation/flask-philo/initialize
LDU_FT
[ "<BEGIN>\n## `init_db_conn`", "Initialize a postgresql connection by each connection string\n defined in the configuration file\n<END>", "<BEGIN>\n## `initialize`", "If postgresql url is defined in configuration params a\n scoped session will be created\n<END>", "<BEGIN>\n## `set_request`", "Appends...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the initialize API. 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 initialize API. 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...
If postgresql url is defined in configuration params a scoped session will be created
"If postgresql url is defined in configuration params a\n scoped session will be created"
27
false
Riffstation/flask-philo
initialize
5,208
LDU_FT/eddieantonio/perfection/find_first_fit
LDU_FT
[ "<BEGIN>\n## `add_edge`", "Add edge (u, v) to the graph. Raises InvariantError if adding the edge\n would form a cycle.\n<END>", "<BEGIN>\n## `edges`", "Edges of this graph, in canonical order.\n<END>", "<BEGIN>\n## `ordered_deduplicate`", "Returns the sequence as a tuple with the duplicates remove...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_first_fit API. 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 find_first_fit API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
Finds the first index that the row's items can fit.
"Finds the first index that the row's items can fit."
64
false
eddieantonio/perfection
find_first_fit
5,209
LDU_FT/seequent/properties/_set_listener
LDU_FT
[ "<BEGIN>\n## `serialize`", "Serialize Singleton instance to a dictionary.", " This behaves identically to HasProperties.serialize, except it also\n saves the identifying name in the dictionary as well.\n<END>", "<BEGIN>\n## `deserialize`", "Create a Singleton instance from a serialized diction...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _set_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 ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _set_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 ext...
Add listeners to a HasProperties instance
"Add listeners to a HasProperties instance"
252
false
seequent/properties
_set_listener
5,210
LDU_FT/seb-m/pyinotify/stop
LDU_FT
[ "<BEGIN>\n## `compatibility_mode`", "Use this function to turn on the compatibility mode. The compatibility\n mode is used to improve compatibility with Pyinotify 0.7.1 (or older)\n programs. The compatibility mode provides additional variables 'is_dir',\n 'event_name', 'EventsCodes.IN_*' and 'EventsCode...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the stop API. 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 stop API. 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...
Stop notifier's loop. Stop notification. Join the thread.
"Stop notifier's loop. Stop notification. Join the thread."
107
false
seb-m/pyinotify
stop
5,211
LDU_FT/ray-project/ray/cur_iter_done
LDU_FT
[ "<BEGIN>\n## `_agent_import_failed`", "Returns dummy agent class for if PyTorch etc. is not installed.\n<END>", "<BEGIN>\n## `run`", "Executes training.", " Args:\n run_or_experiment (function|class|str|Experiment): If\n function|class|str, this is the algorithm or model to train.\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the cur_iter_done API. 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 cur_iter_done API. 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...
Checks if all iterations have completed. TODO(rliaw): also check that `t.iterations == self._r`
"Checks if all iterations have completed.\n\n TODO(rliaw): also check that `t.iterations == self._r`"
1,706
true
ray-project/ray
cur_iter_done
5,212
LDU_FT/google/apitools/rewind
LDU_FT
[ "<BEGIN>\n## `_urljoin`", "Custom urljoin replacement supporting : before / in url.\n<END>", "<BEGIN>\n## `_SetCredentials`", "Fetch credentials, and set them for this client.", " Note that we can't simply return credentials, since creating them\n may involve side-effecting self.", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the rewind API. 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 rewind API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Return the uncompressed stream file position indicator to the beginning of the file
"Return the uncompressed stream file position indicator to the\n beginning of the file"
629
false
google/apitools
rewind
5,213
LDU_FT/s1s1ty/py-jsonq/at
LDU_FT
[ "<BEGIN>\n## `__parse_json_data`", "Process Json data", " :@param data\n :@type data: json/dict", " :throws TypeError\n<END>", "<BEGIN>\n## `__parse_json_file`", "Process Json file data", " :@param file_path\n :@type file_path: string", " :@throws IOError\n<EN...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the at API. 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 docu...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the at API. 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 docu...
Set root where PyJsonq start to prepare :@param root :@type root: string :@return self :@throws KeyError
"Set root where PyJsonq start to prepare\n\n :@param root\n :@type root: string\n\n :@return self\n :@throws KeyError"
71
false
s1s1ty/py-jsonq
at
5,214
LDU_FT/westurner/pyrpo/itersplit
LDU_FT
[ "<BEGIN>\n## `itersplit`", "Split a string by ``sep`` and yield chunks", " Args:\n s (str-type): string to split\n sep (str-type): delimiter to split by", " Yields:\n generator of strings: chunks of string s\n<END>", "<BEGIN>\n## `itersplit_to_fields`", "Itersplit a string into ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the itersplit API. 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 itersplit API. 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...
Split a string by ``sep`` and yield chunks Args: s (str-type): string to split sep (str-type): delimiter to split by Yields: generator of strings: chunks of string s
"Split a string by ``sep`` and yield chunks\n\n Args:\n s (str-type): string to split\n sep (str-type): delimiter to split by\n\n Yields:\n generator of strings: chunks of string s"
149
false
westurner/pyrpo
itersplit
5,215
LDU_FT/thilux/tvdb_client/make_str_content
LDU_FT
[ "<BEGIN>\n## `__get_header_with_auth`", "This private method returns the HTTP heder filled with the Authorization information with the user token.\n The token validity is monitored whenever this function is called, so according to the swagger page of TheTVDB\n (https://api.thetvdb.com/swagger) the t...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the make_str_content API. 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 make_str_content API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
In python3+ requests.Response.content returns bytes instead of ol'good str. :param content: requests.Response.content :return: str representation of the requests.Response.content data
"In python3+ requests.Response.content returns bytes instead of ol'good str.\n :param content: requests.Response.content\n :return: str representation of the requests.Response.content data"
58
false
thilux/tvdb_client
make_str_content
5,216
LDU_FT/gesellkammer/sndfileio/_applyMultichan
LDU_FT
[ "<BEGIN>\n## `_applyMultichan`", "Apply func to each channel of audio data in samples\n<END>", "<BEGIN>\n## `_resample_samplerate`", "Uses https://github.com/tuxu/python-samplerate\n<END>", "<BEGIN>\n## `_nnresample_compute_filt`", "r\"\"\"\n Computes a filter to resample a signal from rate \"down\" to...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _applyMultichan API. 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 _applyMultichan API. 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...
Apply func to each channel of audio data in samples
"Apply func to each channel of audio data in samples"
87
false
gesellkammer/sndfileio
_applyMultichan
5,217
LDU_FT/googlefonts/ufo2ft/isValidFeatureWriter
LDU_FT
[ "<BEGIN>\n## `isValidFeatureWriter`", "Return True if 'klass' is a valid feature writer class.\n A valid feature writer class is a class (of type 'type'), that has\n two required attributes:\n 1) 'tableTag' (str), which can be \"GSUB\", \"GPOS\", or other similar tags.\n 2) 'write' (bound method), wit...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the isValidFeatureWriter 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 isValidFeatureWriter 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 True if 'klass' is a valid feature writer class. A valid feature writer class is a class (of type 'type'), that has two required attributes: 1) 'tableTag' (str), which can be "GSUB", "GPOS", or other similar tags. 2) 'write' (bound method), with the signature matching the same method from ...
"Return True if 'klass' is a valid feature writer class.\n A valid feature writer class is a class (of type 'type'), that has\n two required attributes:\n 1) 'tableTag' (str), which can be \"GSUB\", \"GPOS\", or other similar tags.\n 2) 'write' (bound method), with the signature matching the same method\n ...
224
false
googlefonts/ufo2ft
isValidFeatureWriter
5,218
LDU_FT/indranilsinharoy/pyzos/zSetDefaultMeritFunctionSEQ
LDU_FT
[ "<BEGIN>\n## `get_callable_method_dict`", "Returns a dictionary of callable methods of object `obj`.", " @param obj: ZOS API Python COM object\n @return: a dictionary of callable methods", " Notes: \n the function only returns the callable attributes that are listed by dir() \n function. Proper...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the zSetDefaultMeritFunctionSEQ 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 zSetDefaultMeritFunctionSEQ API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclu...
Sets the default merit function for Sequential Merit Function Editor Parameters ---------- ofType : integer optimization function type (0=RMS, ...) ofData : integer optimization function data (0=Wavefront, 1=Spot Radius, ...) ofRef : integer ...
"Sets the default merit function for Sequential Merit Function Editor\n\n Parameters\n ----------\n ofType : integer\n optimization function type (0=RMS, ...)\n ofData : integer \n optimization function data (0=Wavefront, 1=Spot Radius, ...)\n ofRef : integer\n ...
48
false
indranilsinharoy/pyzos
zSetDefaultMeritFunctionSEQ
5,219
LDU_FT/atarashansky/self-assembling-manifold/run
LDU_FT
[ "<BEGIN>\n## `preprocess_data`", "Log-normalizes and filters the expression data.", " Parameters\n ----------", " div : float, optional, default 1\n The factor by which the gene expression will be divided prior to\n log normalization.", " downsample : float,...
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 Self-Assembling Manifold algorithm. Parameters ---------- k - int, optional, default 20 The number of nearest neighbors to identify for each cell. distance : string, optional, default 'correlation' The distance metric to use when constructing cell dista...
"Runs the Self-Assembling Manifold algorithm.\n\n Parameters\n ----------\n k - int, optional, default 20\n The number of nearest neighbors to identify for each cell.\n\n distance : string, optional, default 'correlation'\n The distance metric to use when constructing c...
125
false
atarashansky/self-assembling-manifold
run
5,220
LDU_FT/benjamin-hodgson/asynqp/killall
LDU_FT
[ "<BEGIN>\n## `open_channel`", "Open a new channel on this connection.", " This method is a :ref:`coroutine <coroutine>`.", " :return: The new :class:`Channel` object.\n<END>", "<BEGIN>\n## `close`", "Close the connection by handshaking with the server.", " This method is a :ref:`cor...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the killall API. 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 killall API. 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...
Connection/Channel was closed. All subsequent and ongoing requests should raise an error
"Connection/Channel was closed. All subsequent and ongoing requests\n should raise an error"
95
false
benjamin-hodgson/asynqp
killall
5,221
LDU_FT/matsui528/nanopq/decode
LDU_FT
[ "<BEGIN>\n## `fit`", "Given training vectors, run k-means for each sub-space and create\n codewords for each sub-space.", " This function should be run once first of all.", " Args:\n vecs (np.ndarray): Training vectors with shape=(N, D) and dtype=np.float32.\n iter (...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the decode API. 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 decode API. 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 ...
Given PQ-codes, reconstruct original D-dimensional vectors via :func:`PQ.decode`, and applying an inverse-rotation. Args: codes (np.ndarray): PQ-cdoes with shape=(N, M) and dtype=self.code_dtype. Each row is a PQ-code Returns: np.ndarray: Reconstructed v...
"Given PQ-codes, reconstruct original D-dimensional vectors via :func:`PQ.decode`,\n and applying an inverse-rotation.\n\n Args:\n codes (np.ndarray): PQ-cdoes with shape=(N, M) and dtype=self.code_dtype.\n Each row is a PQ-code\n\n Returns:\n np.ndarray: Recons...
35
false
matsui528/nanopq
decode
5,222
LDU_FT/KrzyHonk/bpmn-python/import_boundary_event_to_graph
LDU_FT
[ "<BEGIN>\n## `load_diagram_from_csv`", "Reads an CSV file from given filepath and maps it into inner representation of BPMN diagram.\n Returns an instance of BPMNDiagramGraph class.", " :param filepath: string with output filepath,\n :param bpmn_diagram: an instance of BpmnDiagramGraph clas...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the import_boundary_event_to_graph API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its con...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the import_boundary_event_to_graph API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its con...
Adds to graph the new element that represents BPMN boundary event. Boundary event inherits sequence of eventDefinitionRef from Event type. Separate methods for each event type are required since each of them has different variants (Message, Error, Signal etc.). :param diagram_graph: Net...
"Adds to graph the new element that represents BPMN boundary event.\n Boundary event inherits sequence of eventDefinitionRef from Event type.\n Separate methods for each event type are required since each of them has different variants\n (Message, Error, Signal etc.).\n\n :param diagram_grap...
368
false
KrzyHonk/bpmn-python
import_boundary_event_to_graph
5,223
LDU_FT/ajk8/microcache/init_logging
LDU_FT
[ "<BEGIN>\n## `init_logging`", "Setup logging for the microcache module, but only do it once!", " :param stream: stream to log to (defaults to sys.stderr)\n :param filepath: path to a file to log to as well (defaults to None)\n :param format: override the default format with whatever you like\n<END>", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the init_logging API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the init_logging API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
Setup logging for the microcache module, but only do it once! :param stream: stream to log to (defaults to sys.stderr) :param filepath: path to a file to log to as well (defaults to None) :param format: override the default format with whatever you like
"Setup logging for the microcache module, but only do it once!\n\n :param stream: stream to log to (defaults to sys.stderr)\n :param filepath: path to a file to log to as well (defaults to None)\n :param format: override the default format with whatever you like"
35
false
ajk8/microcache
init_logging
5,224
LDU_FT/lsbardel/python-stdnet/get_value
LDU_FT
[ "<BEGIN>\n## `load_iterable`", "Load an ``iterable``.", " By default it returns a generator of data loaded via the\n :meth:`loads` method.", " :param iterable: an iterable over data to load.\n :param session: Optional :class:`stdnet.odm.Session`.\n :return: an iterable over ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_value API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_value API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
Retrieve the value :class:`Field` from a :class:`StdModel` ``instance``. :param instance: The :class:`StdModel` ``instance`` invoking this function. :param bits: Additional information for nested fields which derives from the :ref:`double underscore <tutorial-underscore>` notation. :return: the value of this :clas...
"Retrieve the value :class:`Field` from a :class:`StdModel`\n``instance``.\n\n:param instance: The :class:`StdModel` ``instance`` invoking this function.\n:param bits: Additional information for nested fields which derives from\n the :ref:`double underscore <tutorial-underscore>` notation.\n:return: the value of thi...
387
false
lsbardel/python-stdnet
get_value
5,225
LDU_FT/fedora-infra/fedmsg-atomic-composer/generate_mock_config
LDU_FT
[ "<BEGIN>\n## `consume`", "Called with each incoming fedmsg.", " From here we trigger an rpm-ostree compose by touching a specific file\n under the `touch_dir`. Then our `doRead` method is called with the\n output of the rpm-ostree-toolbox treecompose, which we monitor to\n determine ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the generate_mock_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. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the generate_mock_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. ...
Dynamically generate our mock configuration
"Dynamically generate our mock configuration"
22
false
fedora-infra/fedmsg-atomic-composer
generate_mock_config
5,226
LDU_FT/tompollard/tableone/_tukey
LDU_FT
[ "<BEGIN>\n## `_generate_remark_str`", "Generate a series of remarks that the user should consider\n when interpreting the summary statistics.\n<END>", "<BEGIN>\n## `_detect_categorical_columns`", "Detect categorical columns if they are not specified.", " Parameters\n ----------\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _tukey API. 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 _tukey API. 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 ...
Count outliers according to Tukey's rule. Where Q1 is the lower quartile and Q3 is the upper quartile, an outlier is an observation outside of the range: [Q1 - k(Q3 - Q1), Q3 + k(Q3 - Q1)] k = 1.5 indicates an outlier k = 3.0 indicates an outlier that is "far out"
"Count outliers according to Tukey's rule.\n\n Where Q1 is the lower quartile and Q3 is the upper quartile,\n an outlier is an observation outside of the range:\n\n [Q1 - k(Q3 - Q1), Q3 + k(Q3 - Q1)]\n\n k = 1.5 indicates an outlier\n k = 3.0 indicates an outlier that is \"far out\""
49
false
tompollard/tableone
_tukey
5,227
LDU_FT/danbradham/scrim/on_exit
LDU_FT
[ "<BEGIN>\n## `get_scrim`", "Get a :class:`Scrim` instance. Each instance is cached so if you call\n get_scrim again with the same arguments you get the same instance.", " See also:\n :class:`Scrim`\n<END>", "<BEGIN>\n## `_add`", "Appends a command to the scrims list of commands. You should not\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the on_exit API. 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 on_exit API. 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...
atexit callback. If :attr:`Scrim.auto_write` is True write the scrim to :attr:`Scrim.path` as :attr:`Scrim.shell`
"atexit callback. If :attr:`Scrim.auto_write` is True write the\n scrim to :attr:`Scrim.path` as :attr:`Scrim.shell`"
21
false
danbradham/scrim
on_exit
5,228
LDU_FT/ArtoLabs/SimpleSteem/check_balances
LDU_FT
[ "<BEGIN>\n## `setup`", "Runs only the first time SimpleSteem() \n is instantiated. Prompts user for the values\n that are then written to config.py\n<END>", "<BEGIN>\n## `make`", "takes the arguments and writes them as \n variable / value pairs to config.py\n<END>", "<BEGIN>\n## `goodno...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the check_balances API. 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 check_balances API. 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...
Fetches an account balance and makes necessary conversions
"Fetches an account balance and makes\n necessary conversions"
74
false
ArtoLabs/SimpleSteem
check_balances
5,229
LDU_FT/cdgriffith/Reusables/_walk
LDU_FT
[ "<BEGIN>\n## `datetime_format`", "Replaces format style phrases (listed in the dt_exps dictionary)\n with this datetime instance's information.", " .. code :: python", " reusables.datetime_format(\"Hey, it's {month-full} already!\")\n \"Hey, it's March already!\"", " :param desired_fo...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _walk API. 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 _walk API. 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...
Internal function to return walk generator either from os or scandir :param directory: directory to traverse :param enable_scandir: on python < 3.5 enable external scandir package :param kwargs: arguments to pass to walk function :return: walk generator
"Internal function to return walk generator either from os or scandir\n\n :param directory: directory to traverse\n :param enable_scandir: on python < 3.5 enable external scandir package\n :param kwargs: arguments to pass to walk function\n :return: walk generator"
320
false
cdgriffith/Reusables
_walk
5,230
LDU_FT/MacHu-GWU/macro-project/delete
LDU_FT
[ "<BEGIN>\n## `learn_all_skill`", "在技能编辑界面学会所有的技能。运行脚本前, 将鼠标放在第一个技能的技能等级\n 的数字上, 并选中所有文本。然后运行此脚本, 并在1秒内切回到修改器界面。", " :param level: 技能等级\n :param master_level: 专精等级, 0是普通, 1是专家, 2是大师\n<END>", "<BEGIN>\n## `right_click`", "Right click at ``(x, y)`` on screen for ``n`` times.\n at begin.", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the delete API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the delete API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Pres delete key n times. **中文文档** 按 delete 键n次。
"Pres delete key n times.\n\n **中文文档**\n\n 按 delete 键n次。"
125
false
MacHu-GWU/macro-project
delete
5,231
LDU_FT/ldo/dbussy/unparse
LDU_FT
[ "<BEGIN>\n## `data_key`", "returns a unique value that allows data to be used as a dict/set key.\n<END>", "<BEGIN>\n## `get_version`", "returns the libdbus library version as a tuple of integers (major, minor, micro).\n<END>", "<BEGIN>\n## `matches_rule`", "does Message message match against the specified...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the unparse API. 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 unparse API. 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...
returns an XML string description of this Introspection tree.
"returns an XML string description of this Introspection tree."
74
false
ldo/dbussy
unparse
5,232
LDU_FT/architv/soccer-cli/team_scores
LDU_FT
[ "<BEGIN>\n## `get_team_scores`", "Queries the API and gets the particular team scores\n<END>", "<BEGIN>\n## `get_standings`", "Queries the API and gets the standings for a particular league\n<END>", "<BEGIN>\n## `get_league_scores`", "Queries the API and fetches the scores for fixtures\n based upon...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the team_scores API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the team_scores API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
Store output of team scores to a JSON file
"Store output of team scores to a JSON file"
50
false
architv/soccer-cli
team_scores
5,233
LDU_FT/pmelchior/proxmin/get_gradient_x
LDU_FT
[ "<BEGIN>\n## `prox_gradf_lim`", "Forward-backward step: gradient, followed by projection\n<END>", "<BEGIN>\n## `prox_lim12`", "if boundary == \"circle\":\n if j == 0:\n xy = np.array([x[0], Xs[1][0]])\n if j == 1:\n xy = np.array([Xs[0][0], x[0]])\n return [prox_circ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_gradient_x API. 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_gradient_x API. 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...
Calculate the gradient in the x direction to the line at px The y gradient operator is a block diagonal matrix, where each block is the size of the image width. The matrix itself is made up of (img_height x img_height) blocks, most of which are all zeros.
"Calculate the gradient in the x direction to the line at px\n\n The y gradient operator is a block diagonal matrix, where each block is the size of the image width.\n The matrix itself is made up of (img_height x img_height) blocks, most of which are all zeros."
91
false
pmelchior/proxmin
get_gradient_x
5,234
LDU_FT/StanfordBioinformatics/scgpm_seqresults_dnanexus/add_file_handler
LDU_FT
[ "<BEGIN>\n## `log_file_name`", "Function : Creates a logfile name, named after this script and includes the number of seconds since the Epoch.\n An optional extension can be specified to make the logfile name more meaningful regarding its purpose.\n Args : ext - The extension to add to the log fi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_file_handler API. 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_file_handler API. 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 and Adds a file handler (`logging.FileHandler` instance) to the specified logger. Args: logger: The `logging.Logger` instance to add the new file handler to. level: `str`. The logging level for which the handler accepts messages, i.e. `logging.INFO`. tags: `list` of tags to append to the l...
"Creates and Adds a file handler (`logging.FileHandler` instance) to the specified logger. \n\n Args:\n logger: The `logging.Logger` instance to add the new file handler to.\n level: `str`. The logging level for which the handler accepts messages, i.e. `logging.INFO`.\n tags: `list` of tags to append to...
63
false
StanfordBioinformatics/scgpm_seqresults_dnanexus
add_file_handler
5,235
LDU_FT/j3ffhubb/pymarshal/check_dups
LDU_FT
[ "<BEGIN>\n## `factory`", "desc: >\n Creates a DocStringArg and recursively includes child\n docstrings if they are not JSON types.\n args:\n - name: name\n desc: The name of the argument\n type: str\n - name: desc\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the check_dups API. 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 check_dups API. 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...
Checks an iterable for duplicates Note that it does not make sense to call this on a set() If calling on a collection without a .count method, set @debug_limit to -1. For custom equality comparisons, create a custom __eq__ and __hash__ method in the class contained in @iterabl...
"Checks an iterable for duplicates\n\n Note that it does not make sense to call this on a set()\n\n If calling on a collection without a .count method,\n set @debug_limit to -1.\n\n For custom equality comparisons, create a custom\n __eq__ and __hash__ method in the class contained in...
63
false
j3ffhubb/pymarshal
check_dups
5,236
LDU_FT/gagneurlab/concise/iter_fasta
LDU_FT
[ "<BEGIN>\n## `best_kmers`", "Find best k-mers for CONCISE initialization.", " Args:\n dt (pd.DataFrame): Table containing response variable and sequence.\n response (str): Name of the column used as the reponse variable.\n sequence (str): Name of the column storing the DNA/RNA sequences....
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the iter_fasta API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the iter_fasta API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
Returns an iterator over the fasta file Given a fasta file. yield tuples of header, sequence Code modified from Brent Pedersen's: "Correct Way To Parse A Fasta File In Python" # Example ```python fasta = fasta_iter("hg19.fa") for header, seq in fasta: ...
"Returns an iterator over the fasta file\n\n Given a fasta file. yield tuples of header, sequence\n\n Code modified from Brent Pedersen's:\n \"Correct Way To Parse A Fasta File In Python\"\n\n\n # Example\n\n ```python\n fasta = fasta_iter(\"hg19.fa\")\n for header, seq in fasta...
311
false
gagneurlab/concise
iter_fasta
5,237
LDU_FT/ga4gh/ga4gh-common/getPathOfExecutable
LDU_FT
[ "<BEGIN>\n## `getPathOfExecutable`", "Returns the full path of the executable, or None if the executable\n can not be found.\n<END>", "<BEGIN>\n## `requireExecutables`", "Check that all of the given executables are on the path.\n If at least one of them is not, exit the script and inform\n the user o...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the getPathOfExecutable 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 getPathOfExecutable 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...
Returns the full path of the executable, or None if the executable can not be found.
"Returns the full path of the executable, or None if the executable\n can not be found."
20
false
ga4gh/ga4gh-common
getPathOfExecutable
5,238
LDU_FT/nyaruka/smartmin/format_datetime
LDU_FT
[ "<BEGIN>\n## `_read_requirements`", "Parses a file for pip installation requirements.\n<END>", "<BEGIN>\n## `get_list_class`", "Returns the class to use for the passed in list. We just build something up\n from the object type for the list.\n<END>", "<BEGIN>\n## `format_datetime`", "Formats a date, co...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the format_datetime API. 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 format_datetime API. 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...
Formats a date, converting the time to the user timezone if one is specified
"Formats a date, converting the time to the user timezone if one is specified"
118
false
nyaruka/smartmin
format_datetime
5,239
LDU_FT/bufferapp/kiner/put_records
LDU_FT
[ "<BEGIN>\n## `put_records`", "Add a list of data records to the record queue in the proper format.\n Convinience method that calls self.put_record for each element.", " Parameters\n ----------\n records : list\n Lists of records to send.\n partition_key: str\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the put_records API. 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 put_records API. 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...
Add a list of data records to the record queue in the proper format. Convinience method that calls self.put_record for each element. Parameters ---------- records : list Lists of records to send. partition_key: str Hash that determines which shard a given...
"Add a list of data records to the record queue in the proper format.\n Convinience method that calls self.put_record for each element.\n\n Parameters\n ----------\n records : list\n Lists of records to send.\n partition_key: str\n Hash that determines which shar...
14
false
bufferapp/kiner
put_records
5,240
LDU_FT/openstack/python-scciclient/elcm_request
LDU_FT
[ "<BEGIN>\n## `scci_cmd`", "execute SCCI command", " This function calls SCCI server modules\n :param host: hostname or IP of iRMC\n :param userid: userid for iRMC with administrator privileges\n :param password: password for userid\n :param cmd: SCCI command\n :param port: port number of iRMC\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the elcm_request API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the elcm_request API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
send an eLCM request to the server :param irmc_info: dict of iRMC params to access the server node { 'irmc_address': host, 'irmc_username': user_id, 'irmc_password': password, 'irmc_port': 80 or 443, default is 443, 'irmc_auth_method': 'basic' or 'digest', ...
"send an eLCM request to the server\n\n :param irmc_info: dict of iRMC params to access the server node\n {\n 'irmc_address': host,\n 'irmc_username': user_id,\n 'irmc_password': password,\n 'irmc_port': 80 or 443, default is 443,\n 'irmc_auth_method': 'basic' or '...
194
false
openstack/python-scciclient
elcm_request
5,241
LDU_FT/bitcraft/pyscroll/translate_rects
LDU_FT
[ "<BEGIN>\n## `hit`", "Returns the items that overlap a bounding rectangle.", " Returns the set of all items in the quad-tree that overlap with a\n bounding rectangle.", " @param rect:\n The bounding rectangle being tested against the quad-tree. This\n must possess le...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the translate_rects API. 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 translate_rects API. 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...
Translate rect position and size to screen coordinates. Respects zoom level. Will be returned in order passed as Rects. :return: list
"Translate rect position and size to screen coordinates. Respects zoom level.\n\n Will be returned in order passed as Rects.\n\n :return: list"
112
false
bitcraft/pyscroll
translate_rects
5,242
LDU_FT/yunojuno/elasticsearch-django/auto_sync
LDU_FT
[ "<BEGIN>\n## `execute_search`", "Create a new SearchQuery instance and execute a search against ES.", " Args:\n search: elasticsearch.search.Search object, that internally contains\n the connection and query; this is the query that is executed. All\n we are doing is logging the i...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the auto_sync API. 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 auto_sync API. 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 bool if auto_sync is on for the model (instance)
"Returns bool if auto_sync is on for the model (instance)"
124
false
yunojuno/elasticsearch-django
auto_sync
5,243
LDU_FT/rosenbrockc/fortpy/_py_invar
LDU_FT
[ "<BEGIN>\n## `setup_regex`", "Sets up the patterns and compiled regex objects for parsing types.\n<END>", "<BEGIN>\n## `parse_signature`", "Parses the specified line as a new version of the signature for 'element'.", " :arg statement: the string that has the new signature.\n :arg element: the ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _py_invar API. 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 _py_invar API. 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 the code to create the local input parameter that is coerced to have the correct type for ctypes interaction.
"Returns the code to create the local input parameter that is coerced to have the\n correct type for ctypes interaction."
929
false
rosenbrockc/fortpy
_py_invar
5,244
LDU_FT/tornadoweb/tornado/maybe_future
LDU_FT
[ "<BEGIN>\n## `start`", "Begins watching source files for changes.", " .. versionchanged:: 5.0\n The ``io_loop`` argument (deprecated since version 4.1) has been removed.\n<END>", "<BEGIN>\n## `main`", "Command-line wrapper to re-run a script whenever its source changes.", " Scripts may be spec...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the maybe_future API. 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 maybe_future API. 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...
Converts ``x`` into a `.Future`. If ``x`` is already a `.Future`, it is simply returned; otherwise it is wrapped in a new `.Future`. This is suitable for use as ``result = yield gen.maybe_future(f())`` when you don't know whether ``f()`` returns a `.Future` or not. .. deprecated:: 4.3 This...
"Converts ``x`` into a `.Future`.\n\n If ``x`` is already a `.Future`, it is simply returned; otherwise\n it is wrapped in a new `.Future`. This is suitable for use as\n ``result = yield gen.maybe_future(f())`` when you don't know whether\n ``f()`` returns a `.Future` or not.\n\n .. deprecated:: 4.3\n ...
1,291
true
tornadoweb/tornado
maybe_future
5,245
LDU_FT/nitmir/django-cas-server/copy_params
LDU_FT
[ "<BEGIN>\n## `clean_deleted_sessions`", "remove old :class:`FederateSLO` object for which the session do not exists anymore\n<END>", "<BEGIN>\n## `send_mails`", "For each new django-cas-server version, if the current instance is not up to date\n send one mail to ``settings.ADMINS``.\n<END>", "<BE...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the copy_params API. 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 copy_params API. 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...
copy a :class:`django.http.QueryDict` in a :obj:`dict` ignoring keys in the set ``ignore`` :param django.http.QueryDict get_or_post_params: A GET or POST :class:`QueryDict<django.http.QueryDict>` :param set ignore: An optinal set of keys to ignore during the copy :return: A copy of ...
"copy a :class:`django.http.QueryDict` in a :obj:`dict` ignoring keys in the set ``ignore``\n\n :param django.http.QueryDict get_or_post_params: A GET or POST\n :class:`QueryDict<django.http.QueryDict>`\n :param set ignore: An optinal set of keys to ignore during the copy\n :return: A co...
182
false
nitmir/django-cas-server
copy_params
5,246
LDU_FT/jut-io/jut-python-tools/get_webhook_url
LDU_FT
[ "<BEGIN>\n## `_print_jobs`", "internal method to print the provided jobs array in a nice tabular\n format\n<END>", "<BEGIN>\n## `debug`", "debug output goes to stderr so you can still redirect the stdout to a file\n or another program. Controlled by the JUT_DEBUG environment variable being\n present\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_webhook_url API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_webhook_url API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
return the webhook URL for posting webhook data to
"return the webhook URL for posting webhook data to"
72
false
jut-io/jut-python-tools
get_webhook_url
5,247
LDU_FT/althonos/InstaLooter/main
LDU_FT
[ "<BEGIN>\n## `pages`", "Obtain an iterator over Instagram post pages.", " Returns:\n PageIterator: an iterator over the instagram post pages.", " Raises:\n ValueError: when the requested user does not exist.\n RuntimeError: when the user is a private account\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the main API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the main API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
Run from the command line interface. Arguments: argv (list): The positional arguments to read. Defaults to `sys.argv` to use CLI arguments. stream (~io.IOBase): A file where to write error messages. Leave to `None` to use the `~coloredlogs.StandardErrorHandler` f...
"Run from the command line interface.\n\n Arguments:\n argv (list): The positional arguments to read. Defaults to\n `sys.argv` to use CLI arguments.\n stream (~io.IOBase): A file where to write error messages.\n Leave to `None` to use the `~coloredlogs.StandardErrorHandler`\n ...
44
false
althonos/InstaLooter
main
5,248
LDU_FT/ECRL/ecabc/infer_process_count
LDU_FT
[ "<BEGIN>\n## `add_argument`", "Add an additional argument to be passed to the fitness function\n via additional arguments dictionary; this argument/value is not tuned", " Args:\n arg_name (string): name/dictionary key of argument\n arg_value (any): dictionary value of argumen...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the infer_process_count 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 infer_process_count 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...
Infers the number of CPU cores in the current system, sets the number of concurrent processes accordingly
"Infers the number of CPU cores in the current system, sets the\n number of concurrent processes accordingly"
67
false
ECRL/ecabc
infer_process_count
5,249
LDU_FT/dustinmm80/healthy/calculate_health
LDU_FT
[ "<BEGIN>\n## `score`", "Runs pylint on a package and returns a score\n Lower score is better", " :param package_path: path of the package to score\n :return: number of score\n<END>", "<BEGIN>\n## `parse_pylint_output`", "Parses pylint output, counting number of errors, conventions, etc\n :param ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the calculate_health API. 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 calculate_health API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Calculates the health of a package, based on several factors :param package_name: name of package on pypi.python.org :param package_version: version number of package to check, optional - defaults to latest version :param verbose: flag to print out reasons :param no_output: print no output :param l...
"Calculates the health of a package, based on several factors\n\n :param package_name: name of package on pypi.python.org\n :param package_version: version number of package to check, optional - defaults to latest version\n :param verbose: flag to print out reasons\n :param no_output: print no output\n :...
37
false
dustinmm80/healthy
calculate_health
5,250
LDU_FT/src-d/jgit-spark-connector/blobs
LDU_FT
[ "<BEGIN>\n## `repositories`", "Returns a DataFrame with the data about the repositories found at\n the specified repositories path in the form of siva files.", " >>> repos_df = engine.repositories", " :rtype: RepositoriesDataFrame\n<END>", "<BEGIN>\n## `blobs`", "Retrieves the blobs o...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the blobs API. 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 blobs API. 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...
Retrieves the blobs of a list of repositories, reference names and commit hashes. So the result will be a DataFrame of all the blobs in the given commits that are in the given references that belong to the given repositories. >>> blobs_df = engine.blobs(repo_ids, ref_names, hashes) Cal...
"Retrieves the blobs of a list of repositories, reference names and commit hashes.\n So the result will be a DataFrame of all the blobs in the given commits that are\n in the given references that belong to the given repositories.\n\n >>> blobs_df = engine.blobs(repo_ids, ref_names, hashes)\n\n ...
76
false
src-d/jgit-spark-connector
blobs
5,251
LDU_FT/benjamin-hodgson/Contexts/time
LDU_FT
[ "<BEGIN>\n## `catch`", "Call the supplied function with the supplied arguments,\n catching and returning any exception that it throws.", " Arguments:\n func: the function to run.\n *args: positional arguments to pass into the function.\n **kwargs: keyword arguments to pass into the fu...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the time API. 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 time API. 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...
Call the supplied function with the supplied arguments, and return the total execution time as a float in seconds. The precision of the returned value depends on the precision of `time.time()` on your platform. Arguments: func: the function to run. *args: positional arguments to pass i...
"Call the supplied function with the supplied arguments,\n and return the total execution time as a float in seconds.\n\n The precision of the returned value depends on the precision of\n `time.time()` on your platform.\n\n Arguments:\n func: the function to run.\n *args: positional arguments ...
17
false
benjamin-hodgson/Contexts
time
5,252
LDU_FT/fedora-infra/fedmsg/consume
LDU_FT
[ "<BEGIN>\n## `set_high_water_mark`", "Set a high water mark on the zmq socket. Do so in a way that is\n cross-compatible with zeromq2 and zeromq3.\n<END>", "<BEGIN>\n## `set_tcp_keepalive`", "Set a series of TCP keepalive options on the socket if\n and only if\n 1) they are specified explicitly in...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the consume API. 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 consume API. 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...
Forward on messages from the bus to all IRC connections.
"Forward on messages from the bus to all IRC connections."
248
false
fedora-infra/fedmsg
consume
5,253
LDU_FT/dixudx/rtcclient/runSavedQueryByUrl
LDU_FT
[ "<BEGIN>\n## `getRoles`", "Get all :class:`rtcclient.models.Role` objects in this project\n area", " If no :class:`Roles` are retrieved, `None` is returned.", " :return: a :class:`list` that contains all\n :class:`rtcclient.models.Role` objects\n :rtype: list\n<END>", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the runSavedQueryByUrl 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 runSavedQueryByUrl 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...
Query workitems using the saved query url :param saved_query_url: the saved query url :param returned_properties: the returned properties that you want. Refer to :class:`rtcclient.client.RTCClient` for more explanations :return: a :class:`list` that contains the queried ...
"Query workitems using the saved query url\n\n :param saved_query_url: the saved query url\n :param returned_properties: the returned properties that you want.\n Refer to :class:`rtcclient.client.RTCClient` for more explanations\n :return: a :class:`list` that contains the queried\n ...
285
false
dixudx/rtcclient
runSavedQueryByUrl
5,254
LDU_FT/mjg59/python-broadlink/check_power_raw
LDU_FT
[ "<BEGIN>\n## `set_power_mask`", "Sets the power state of the smart power strip.\n<END>", "<BEGIN>\n## `set_power`", "Sets the power state of the smart power strip.\n<END>", "<BEGIN>\n## `check_power_raw`", "Returns the power state of the smart power strip in raw format.\n<END>", "<BEGIN>\n## `check_powe...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the check_power_raw API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the check_power_raw API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
Returns the power state of the smart power strip in raw format.
"Returns the power state of the smart power strip in raw format."
12
false
mjg59/python-broadlink
check_power_raw
5,255
LDU_FT/rosenbrockc/acorn/analyze
LDU_FT
[ "<BEGIN>\n## `cascade`", "Restores a sequence of string definitions using the first entry as the\n original and then applying a series of :func:`~acorn.logging.diff.restore`\n calls.", " Args:\n sequence (list): of results returned by\n :func:`~acorn.logging.diff.compress`, except that ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the analyze API. 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 analyze API. 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...
Analyzes the result from calling the method with the specified FQDN. Args: fqdn (str): full-qualified name of the method that was called. result: result of calling the method with `fqdn`. argl (tuple): positional arguments passed to the method call. argd (dict): keyword arguments pa...
"Analyzes the result from calling the method with the specified FQDN.\n\n Args:\n fqdn (str): full-qualified name of the method that was called.\n result: result of calling the method with `fqdn`.\n argl (tuple): positional arguments passed to the method call.\n argd (dict): keyword argum...
263
false
rosenbrockc/acorn
analyze
5,256
LDU_FT/timothycrosley/deprecated.frosted/different_forks
LDU_FT
[ "<BEGIN>\n## `node_name`", "Convenience function: Returns node.id, or node.name, or None\n<END>", "<BEGIN>\n## `names`", "Return a list of the names referenced by this binding.\n<END>", "<BEGIN>\n## `unusedAssignments`", "Return a generator for the assignments which have not been used.\n<END>", "<BEGIN>...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the different_forks API. 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 different_forks API. 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...
True, if lnode and rnode are located on different forks of IF/TRY.
"True, if lnode and rnode are located on different forks of\n IF/TRY."
41
false
timothycrosley/deprecated.frosted
different_forks
5,257
LDU_FT/geographika/mappyfile/output
LDU_FT
[ "<BEGIN>\n## `standardise_quotes`", "Change the quotes used to wrap a value to the pprint default\n E.g. \"val\" to 'val' or 'val' to \"val\"\n<END>", "<BEGIN>\n## `process_key_dict`", "Process key value dicts e.g. METADATA \"key\" \"value\"\n<END>", "<BEGIN>\n## `process_repeated_list`", "Process ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the 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. The extracted ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the 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. The extracted ...
Parse, transform, and pretty print the result
"Parse, transform, and pretty print\n the result"
184
false
geographika/mappyfile
output
5,258
LDU_FT/ninja-build/ninja/_line
LDU_FT
[ "<BEGIN>\n## `expand`", "Expand a string containing $vars as Ninja would.", " Note: doesn't handle the full Ninja variable syntax, but it's enough\n to make configure.py's use of it work.\n<END>", "<BEGIN>\n## `_count_dollars_before_index`", "Returns the number of '$' characters right in front of s[i]...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _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 extracted d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _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 extracted d...
Write 'text' word-wrapped at self.width characters.
"Write 'text' word-wrapped at self.width characters."
17
false
ninja-build/ninja
_line
5,259
LDU_FT/OLC-Bioinformatics/sipprverse/reporter
LDU_FT
[ "<BEGIN>\n## `cmd2list`", "Executes a command through the operating system and returns the output\n as a list, or on error a string with the standard error.\n EXAMPLE:\n >>> from subprocess import Popen, PIPE\n >>> CMDout2array('ls -l')\n<END>", "<BEGIN>\n## `print_timers`", "PRINT EXECUTION TIM...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the reporter API. 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 reporter API. 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...
Runs the necessary methods to parse raw read outputs
"Runs the necessary methods to parse raw read outputs"
255
false
OLC-Bioinformatics/sipprverse
reporter
5,260
LDU_FT/davidblaisonneau-orange/foreman/delete
LDU_FT
[ "<BEGIN>\n## `importPuppetClasses`", "Function importPuppetClasses\n Force the reload of puppet classes", " @param smartProxyId: smartProxy Id\n @return RETURN: the API result\n<END>", "<BEGIN>\n## `enhance`", "Function enhance\n Enhance the object with new item or enhanced items...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the delete API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the delete API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Function delete Delete an object by id @param obj: object name ('hosts', 'puppetclasses'...) @param id: the id of the object (name or id) @return RETURN: the server response
"Function delete\n Delete an object by id\n\n @param obj: object name ('hosts', 'puppetclasses'...)\n @param id: the id of the object (name or id)\n @return RETURN: the server response"
118
false
davidblaisonneau-orange/foreman
delete
5,261
LDU_FT/automl/HpBandSter/_submit_job
LDU_FT
[ "<BEGIN>\n## `get_config`", "Function to sample a new configuration", "\t\t\tThis function is called inside Hyperband to query a new configuration", "\t\t\tParameters:\n\t\t\t-----------\n\t\t\tbudget: float\n\t\t\t\tthe budget for which this configuration is scheduled", "\t\t\treturns: config\n\t\t\t\tshou...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _submit_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 _submit_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...
hidden function to submit a new job to the dispatcher This function handles the actual submission in a (hopefully) thread save way
"hidden function to submit a new job to the dispatcher\n\n\t\tThis function handles the actual submission in a\n\t\t(hopefully) thread save way"
188
false
automl/HpBandSter
_submit_job
5,262
LDU_FT/swistakm/graceful/min_validator
LDU_FT
[ "<BEGIN>\n## `authentication_required`", "Ensure that user is authenticated otherwise return ``401 Unauthorized``.", " If request fails to authenticate this authorization hook will also\n include list of ``WWW-Athenticate`` challenges.", " Args:\n req (falcon.Request): the request object.\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the min_validator API. 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 min_validator API. 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 validator function that ensures lower bound of a number. Result validation function will validate the internal value of resource instance field with the ``value >= min_value`` check Args: min_value: minimal value for new validator
"Return validator function that ensures lower bound of a number.\n\n Result validation function will validate the internal value of resource\n instance field with the ``value >= min_value`` check\n\n Args:\n min_value: minimal value for new validator"
209
false
swistakm/graceful
min_validator
5,263
LDU_FT/daler/gffutils/create_introns
LDU_FT
[ "<BEGIN>\n## `to_bedtool`", "Convert any iterator into a pybedtools.BedTool object.", " Note that the supplied iterator is not consumed by this function. To save\n to a temp file or to a known location, use the `.saveas()` method of the\n returned BedTool object.\n<END>", "<BEGIN>\n## `tsses`", "Cr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_introns API. 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 create_introns API. 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...
Create introns from existing annotations. Parameters ---------- exon_featuretype : string Feature type to use in order to infer introns. Typically `"exon"`. grandparent_featuretype : string If `grandparent_featuretype` is not None, then group exons by ...
"Create introns from existing annotations.\n\n\n Parameters\n ----------\n exon_featuretype : string\n Feature type to use in order to infer introns. Typically `\"exon\"`.\n\n grandparent_featuretype : string\n If `grandparent_featuretype` is not None, then group exons...
366
false
daler/gffutils
create_introns
5,264
LDU_FT/jaredLunde/vital-tools/remove_blank_lines
LDU_FT
[ "<BEGIN>\n## `line`", "Prints a line separator the full width of the terminal.", " @separator: the #str chars to create the line from\n @color: line color from :mod:vital.debug.colors\n @padding: adds extra lines to either the top, bottom or both\n of the line via :func:padd\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the remove_blank_lines 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 remove_blank_lines 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...
Removes all blank lines in @string -> #str without blank lines
"Removes all blank lines in @string\n\n -> #str without blank lines"
396
false
jaredLunde/vital-tools
remove_blank_lines
5,265
LDU_FT/networks-lab/tidyextractors/_extract
LDU_FT
[ "<BEGIN>\n## `_col_type_set`", "Determines the set of types present in a DataFrame column.", " :param str col: A column name.\n :param pandas.DataFrame df: The dataset. Usually ``self._data``.\n :return: A set of Types.\n<END>", "<BEGIN>\n## `_drop_collections`", "Drops columns containi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _extract API. 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 _extract API. 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...
Extracts user data Using the twitter API. Mutates _data. NOTE: TwitterExtractor requires a complete set of Twitter API credentials to initialize: 'access_token', 'access_secret', 'consumer_key', and 'consumer_secret'. :param list source: A list of user screen name strings. :param args: ...
"Extracts user data Using the twitter API. Mutates _data.\n NOTE: TwitterExtractor requires a complete set of Twitter API credentials\n to initialize: 'access_token', 'access_secret', 'consumer_key', and 'consumer_secret'.\n\n :param list source: A list of user screen name strings.\n :param ...
81
false
networks-lab/tidyextractors
_extract
5,266
LDU_FT/developmentseed/landsat-util/adjust_bounding_box
LDU_FT
[ "<BEGIN>\n## `_read_cmap`", "reads the colormap from a text file given in settings.py.\n See colormap_cubehelix.txt. File must contain 256 RGB values\n<END>", "<BEGIN>\n## `data_collector`", "Buffers n bytes of data.", " :param iterable:\n Could be a list, generator or string\n :type ite...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the adjust_bounding_box 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 adjust_bounding_box 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...
If the bounds 2 corners are outside of bounds1, they will be adjusted to bounds1 corners @params bounds1 - The source bounding box bounds2 - The target bounding box that has to be within bounds1 @return A bounding box tuple in (y1, x1, y2, x2) format
"If the bounds 2 corners are outside of bounds1, they will be adjusted to bounds1 corners\n\n @params\n bounds1 - The source bounding box\n bounds2 - The target bounding box that has to be within bounds1\n\n @return\n A bounding box tuple in (y1, x1, y2, x2) format"
152
false
developmentseed/landsat-util
adjust_bounding_box
5,267
LDU_FT/petl-developers/petl/intervalsubtract
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 intervalsubtract API. 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 intervalsubtract API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Subtract intervals in the right hand table from intervals in the left hand table.
"Subtract intervals in the right hand table from intervals in the left hand \n table."
789
false
petl-developers/petl
intervalsubtract
5,268
LDU_FT/benknight/hue-python-rgb-converter/hex_to_rgb
LDU_FT
[ "<BEGIN>\n## `hex_to_rgb`", "Converts a valid hex color string to an RGB array.\n<END>", "<BEGIN>\n## `cross_product`", "Returns the cross product of two XYPoints.\n<END>", "<BEGIN>\n## `get_distance_between_two_points`", "Returns the distance between two XYPoints.\n<END>", "<BEGIN>\n## `get_xy_point_fr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the hex_to_rgb API. 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 hex_to_rgb API. 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...
Converts a valid hex color string to an RGB array.
"Converts a valid hex color string to an RGB array."
20
false
benknight/hue-python-rgb-converter
hex_to_rgb
5,269
LDU_FT/obulpathi/cdn-fastly-python/validate_version
LDU_FT
[ "<BEGIN>\n## `list_backends`", "List all backends for a particular service and version.\n<END>", "<BEGIN>\n## `create_backend`", "Create a backend for a particular service and version.\n<END>", "<BEGIN>\n## `get_backend`", "Get the backend for a particular service and version.\n<END>", "<BEGIN>\n## `upd...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the validate_version API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the validate_version API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Validate the version for a particular service and version.
"Validate the version for a particular service and version."
116
false
obulpathi/cdn-fastly-python
validate_version
5,270
LDU_FT/GiulioRossetti/ndlib/multi_runs
LDU_FT
[ "<BEGIN>\n## `set_initial_status`", "Override behaviour of methods in class DiffusionModel.\n Overwrites initial status using random real values.\n Generates random node profiles.\n<END>", "<BEGIN>\n## `iteration`", "Execute a single model iteration", " :return: Iteration_id, Incrementa...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the multi_runs API. 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 multi_runs API. 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...
Multiple executions of a given model varying the initial set of infected nodes :param model: a configured diffusion model :param execution_number: number of instantiations :param iteration_number: number of iterations per execution :param infection_sets: predefined set of infected nodes sets :param...
"Multiple executions of a given model varying the initial set of infected nodes\n\n :param model: a configured diffusion model\n :param execution_number: number of instantiations\n :param iteration_number: number of iterations per execution\n :param infection_sets: predefined set of infected nodes sets\n ...
56
false
GiulioRossetti/ndlib
multi_runs
5,271
LDU_FT/jf-parent/brome/embed
LDU_FT
[ "<BEGIN>\n## `validate_config`", "Validate that the browser config contains all the needed config\n<END>", "<BEGIN>\n## `send_keys`", "wait_until_clickable = kwargs.get(\n 'wait_until_clickable',\n BROME_CONFIG['proxy_element']['wait_until_clickable']\n )", " if wait_unti...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the embed API. 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 embed API. 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...
Start an IPython embed Calling embed won't do anything in a multithread context The stack_depth will be found automatically
"Start an IPython embed\n\n Calling embed won't do anything in a multithread context\n\n The stack_depth will be found automatically"
144
false
jf-parent/brome
embed
5,272