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/jeffh/sniffer/trigger_modified
LDU_FT
[ "<BEGIN>\n## `_import`", "A messy way to import library-specific classes.\n TODO: I should really make a factory class or something, but I'm lazy.\n Plus, factories remind me a lot of java...\n<END>", "<BEGIN>\n## `exec_from_dir`", "Runs the scent.py file from the given directory (cwd if None given).", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the trigger_modified API. 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 trigger_modified API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Triggers modified event if the given filepath mod time is newer.
"Triggers modified event if the given filepath mod time is newer."
54
false
jeffh/sniffer
trigger_modified
26,073
LDU_FT/securestate/termineter/get_table_idbb_field
LDU_FT
[ "<BEGIN>\n## `format_ltime`", "Return data formatted into a human readable time stamp.", "\t:param str endianess: The endianess to use when packing values ('>' or '<')\n\t:param int tm_format: The format that the data is packed in, this typically\n\t corresponds with the value in the GEN_CONFIG_TBL (table #0) ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_table_idbb_field 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_table_idbb_field 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 data from a packed TABLE_IDB_BFLD bit-field. :param str endianess: The endianess to use when packing values ('>' or '<') :param str data: The packed and machine-formatted data to parse :rtype: tuple :return: Tuple of (proc_nbr, std_vs_mfg)
"Return data from a packed TABLE_IDB_BFLD bit-field.\n\n\t:param str endianess: The endianess to use when packing values ('>' or '<')\n\t:param str data: The packed and machine-formatted data to parse\n\t:rtype: tuple\n\t:return: Tuple of (proc_nbr, std_vs_mfg)"
68
false
securestate/termineter
get_table_idbb_field
26,074
LDU_FT/hovren/crisp/estimate_rotation
LDU_FT
[ "<BEGIN>\n## `sync_camera_gyro`", "Get time offset that aligns image timestamps with gyro timestamps.", " Given an image sequence, and gyroscope data, with their respective timestamps,\n calculate the offset that aligns the image data with the gyro data.\n The timestamps must only differ by an offset, ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the estimate_rotation API. 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 estimate_rotation API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Estimate the rotation between first and last frame It uses RANSAC where the error metric is the reprojection error of the points from the last frame to the first frame. Parameters ----------------- camera : CameraModel Camera model ransac_threshold : float ...
"Estimate the rotation between first and last frame\n\n It uses RANSAC where the error metric is the reprojection error of the points\n from the last frame to the first frame.\n\n Parameters\n -----------------\n camera : CameraModel\n Camera model\n ransac_threshold...
252
false
hovren/crisp
estimate_rotation
26,075
LDU_FT/zhanglab/psamm/define
LDU_FT
[ "<BEGIN>\n## `_combine_transfers`", "Combine multiple pair transfers into one.\n<END>", "<BEGIN>\n## `parse_compound_file`", "Iterate over the compound entries in the given file\n<END>", "<BEGIN>\n## `parse_compound`", "Parse a compound specification.", " If no compartment is specified in the string,...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the define API. 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 define API. 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 ...
Define variables within the namespace. This is similar to :meth:`.Problem.define` except that names must be given as an iterable. This method accepts the same keyword arguments as :meth:`.Problem.define`.
"Define variables within the namespace.\n\n This is similar to :meth:`.Problem.define` except that names must be\n given as an iterable. This method accepts the same keyword arguments\n as :meth:`.Problem.define`."
584
false
zhanglab/psamm
define
26,076
LDU_FT/bfontaine/term2048/adjustColors
LDU_FT
[ "<BEGIN>\n## `adjustColors`", "Change a few colors depending on the mode to use. The default mode\n doesn't assume anything and avoid using white & black colors. The dark\n mode use white and avoid dark blue while the light mode use black and\n avoid yellow, to give a few examples.\n<END>", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the adjustColors API. 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 adjustColors API. 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...
Change a few colors depending on the mode to use. The default mode doesn't assume anything and avoid using white & black colors. The dark mode use white and avoid dark blue while the light mode use black and avoid yellow, to give a few examples.
"Change a few colors depending on the mode to use. The default mode\n doesn't assume anything and avoid using white & black colors. The dark\n mode use white and avoid dark blue while the light mode use black and\n avoid yellow, to give a few examples."
28
false
bfontaine/term2048
adjustColors
26,077
LDU_FT/boundlessgeo/lib-qgis-commons/openParametersDialog
LDU_FT
[ "<BEGIN>\n## `get_oauth_authcfg`", "Check if the given authcfg_id (or the default) exists, and if it's valid\n OAuth2, return the configuration or None\n<END>", "<BEGIN>\n## `setup_oauth`", "Setup oauth configuration to access the BCS API,\n return authcfg_id on success, None on failure\n<END>", "<BEG...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the openParametersDialog 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 openParametersDialog API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Opens a dialog to enter parameters. Parameters are passed as a list of Parameter objects Returns a dict with param names as keys and param values as values Returns None if the dialog was cancelled
"Opens a dialog to enter parameters.\n Parameters are passed as a list of Parameter objects\n Returns a dict with param names as keys and param values as values\n Returns None if the dialog was cancelled"
72
false
boundlessgeo/lib-qgis-commons
openParametersDialog
26,078
LDU_FT/go-macaroon-bakery/py-macaroon-bakery/check_first_party_caveat
LDU_FT
[ "<BEGIN>\n## `encode_caveat`", "Encrypt a third-party caveat.", " The third_party_info key holds information about the\n third party we're encrypting the caveat for; the key is the\n public/private key pair of the party that's adding the caveat.", " The caveat will be encoded according to the vers...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the check_first_party_caveat API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the check_first_party_caveat API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio...
Checks the caveat against all registered caveat conditions. :return: error message string if any or None
"Checks the caveat against all registered caveat conditions.\n :return: error message string if any or None"
223
false
go-macaroon-bakery/py-macaroon-bakery
check_first_party_caveat
26,079
LDU_FT/ziwenxie/netease-dl/download_artist_by_id
LDU_FT
[ "<BEGIN>\n## `download_song_by_search`", "Download a song by its name.", " :params song_name: song name.\n<END>", "<BEGIN>\n## `download_song_by_id`", "Download a song by id and save it to disk.", " :params song_id: song id.\n :params song_name: song name.\n :params folder: sto...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the download_artist_by_id API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the download_artist_by_id API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Download a artist's top50 songs by his/her id. :params artist_id: artist id. :params artist_name: artist name.
"Download a artist's top50 songs by his/her id.\n\n :params artist_id: artist id.\n :params artist_name: artist name."
99
false
ziwenxie/netease-dl
download_artist_by_id
26,080
LDU_FT/AirtestProject/Poco/wait_for_disappearance
LDU_FT
[ "<BEGIN>\n## `jsonrpc_map`", "Map of json-rpc available calls.", " :return str:\n<END>", "<BEGIN>\n## `command`", "通过hunter调用gm指令,可调用hunter指令库中定义的所有指令,也可以调用text类型的gm指令\n gm指令相关功能请参考safaia GM指令扩展模块", " :param cmd: 指令\n :param type: 语言,默认text\n :return: None\n<END>", "<B...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the wait_for_disappearance 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 wait_for_disappearance API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
Block and wait until the UI element **disappears** within the given timeout. Args: timeout: maximum waiting time in seconds Raises: PocoTargetTimeout: when timeout
"Block and wait until the UI element **disappears** within the given timeout.\n\n Args:\n timeout: maximum waiting time in seconds\n\n Raises:\n PocoTargetTimeout: when timeout"
191
false
AirtestProject/Poco
wait_for_disappearance
26,081
LDU_FT/mortada/fredapi/get_series_info
LDU_FT
[ "<BEGIN>\n## `__fetch_data`", "helper function for fetching data given a request URL\n<END>", "<BEGIN>\n## `_parse`", "helper function for parsing FRED date string into datetime\n<END>", "<BEGIN>\n## `get_series_info`", "Get information about a series such as its title, frequency, observation start/end da...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_series_info API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_series_info API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
Get information about a series such as its title, frequency, observation start/end dates, units, notes, etc. Parameters ---------- series_id : str Fred series id such as 'CPIAUCSL' Returns ------- info : Series a pandas Series containing informat...
"Get information about a series such as its title, frequency, observation start/end dates, units, notes, etc.\n\n Parameters\n ----------\n series_id : str\n Fred series id such as 'CPIAUCSL'\n\n Returns\n -------\n info : Series\n a pandas Series containi...
44
false
mortada/fredapi
get_series_info
26,082
LDU_FT/totalgood/nlpia/normalize_ext
LDU_FT
[ "<BEGIN>\n## `main`", "Train an LSTM encoder-decoder squence-to-sequence model on Anki flashcards for international translation", " >>> model = main('spa', n=400, epochs=3, batch_size=128, num_neurons=32)\n Train on 360 samples, validate on 40 samples\n Epoch 1/3\n ...\n >>> len(model.get_weights...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the normalize_ext API. 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 normalize_ext API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
Convert file extension(s) to normalized form, e.g. '.tgz' -> '.tar.gz' Normalized extensions are ordered in reverse order of how they should be processed. Also extensions are ordered in order of decreasing specificity/detail. e.g. zip last, then txt/bin, then model type, then model dimensionality .TGZ...
"Convert file extension(s) to normalized form, e.g. '.tgz' -> '.tar.gz'\n\n Normalized extensions are ordered in reverse order of how they should be processed.\n Also extensions are ordered in order of decreasing specificity/detail.\n e.g. zip last, then txt/bin, then model type, then model dimensionality\n\n ...
471
false
totalgood/nlpia
normalize_ext
26,083
LDU_FT/jsommers/switchyard/router_main
LDU_FT
[ "<BEGIN>\n## `router_main`", "Main method for router; we stay in a loop in this method, receiving\n packets until the end of time.\n<END>", "<BEGIN>\n## `from_bytes`", "Takes a byte string as a parameter and returns a list of\n IPOption objects.\n<END>", "<BEGIN>\n## `to_bytes`", "Takes a li...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the router_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 extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the router_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 extra...
Main method for router; we stay in a loop in this method, receiving packets until the end of time.
"Main method for router; we stay in a loop in this method, receiving\n packets until the end of time."
192
false
jsommers/switchyard
router_main
26,084
LDU_FT/hannes-brt/hebel/cublasChpr2
LDU_FT
[ "<BEGIN>\n## `parameters`", "A property that returns all of the model's parameters.\n<END>", "<BEGIN>\n## `parameters`", "Used to set all of the model's parameters to new values.", " **Parameters:**", " value : array_like\n New values for the model parameters. Must be of length\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the cublasChpr2 API. 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 cublasChpr2 API. 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...
Rank-2 operation on Hermitian-packed matrix.
"Rank-2 operation on Hermitian-packed matrix."
372
false
hannes-brt/hebel
cublasChpr2
26,085
LDU_FT/kkroening/ffmpeg-python/run_async
LDU_FT
[ "<BEGIN>\n## `get_args`", "Build command-line arguments to be passed to ffmpeg.\n<END>", "<BEGIN>\n## `compile`", "Build command-line for invoking ffmpeg.", " The :meth:`run` function uses this to build the commnad line\n arguments and should work in most cases, but calling this function\n directly...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the run_async API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the run_async API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
Asynchronously invoke ffmpeg for the supplied node graph. Args: pipe_stdin: if True, connect pipe to subprocess stdin (to be used with ``pipe:`` ffmpeg inputs). pipe_stdout: if True, connect pipe to subprocess stdout (to be used with ``pipe:`` ffmpeg outputs). pipe_s...
"Asynchronously invoke ffmpeg for the supplied node graph.\n\n Args:\n pipe_stdin: if True, connect pipe to subprocess stdin (to be\n used with ``pipe:`` ffmpeg inputs).\n pipe_stdout: if True, connect pipe to subprocess stdout (to be\n used with ``pipe:`` ffmpeg outputs).\n ...
149
false
kkroening/ffmpeg-python
run_async
26,086
LDU_FT/inveniosoftware/invenio-communities/delete
LDU_FT
[ "<BEGIN>\n## `format_item`", "Render a template to a string with the provided item in context.\n<END>", "<BEGIN>\n## `index`", "Index page with uploader and list of existing depositions.\n<END>", "<BEGIN>\n## `generic_item`", "Index page with uploader and list of existing depositions.\n<END>", "<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 ...
Mark the community for deletion. :param delete_time: DateTime after which to delete the community. :type delete_time: datetime.datetime :raises: CommunitiesError
"Mark the community for deletion.\n\n :param delete_time: DateTime after which to delete the community.\n :type delete_time: datetime.datetime\n :raises: CommunitiesError"
89
false
inveniosoftware/invenio-communities
delete
26,087
LDU_FT/edx/XBlock/rescore
LDU_FT
[ "<BEGIN>\n## `default_select`", "Raise an exception when we have ambiguous entry points.\n<END>", "<BEGIN>\n## `_load_class_entry_point`", "Load `entry_point`, and set the `entry_point.name` as the\n attribute `plugin_name` on the loaded object\n<END>", "<BEGIN>\n## `load_class`", "Load a single cl...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the rescore API. 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 rescore API. 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...
Calculate a new raw score and save it to the block. If only_if_higher is True and the score didn't improve, keep the existing score. Raises a TypeError if the block cannot be scored. Raises a ValueError if the user has not yet completed the problem. May also raise other errors in self...
"Calculate a new raw score and save it to the block. If only_if_higher\n is True and the score didn't improve, keep the existing score.\n\n Raises a TypeError if the block cannot be scored.\n Raises a ValueError if the user has not yet completed the problem.\n\n May also raise other errors ...
295
false
edx/XBlock
rescore
26,088
LDU_FT/sendgrid/sendgrid-python/add_to
LDU_FT
[ "<BEGIN>\n## `threshold`", "Threshold used to determine if your content qualifies as spam.\n On a scale from 1 to 10, with 10 being most strict, or most likely to\n be considered as spam.", " :param value: Threshold used to determine if your content qualifies as\n spam....
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_to API. 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 add_to API. 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 ...
Add a single recipient to this Personalization. :type email: Email
"Add a single recipient to this Personalization.\n\n :type email: Email"
229
false
sendgrid/sendgrid-python
add_to
26,089
LDU_FT/wolfhong/formic/main
LDU_FT
[ "<BEGIN>\n## `pylint_jenkins`", "Run PyLint on the code and produce a report suitable for the\n Jenkins plugin 'violations'.", " Note that there is a bug in the Violations plugin which means that\n absolute paths to source (produced by PyLint) are not read. The sed command\n removes the workspace pa...
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...
Command line entry point; arguments must match those defined in in :meth:`create_parser()`; returns 0 for success, else 1. Example:: command.main("-i", "**/*.py", "--no-default-excludes") Runs formic printing out all .py files in the current working directory and its children to ``sys.stdout``....
"Command line entry point; arguments must match those defined in\n in :meth:`create_parser()`; returns 0 for success, else 1.\n\n Example::\n\n command.main(\"-i\", \"**/*.py\", \"--no-default-excludes\")\n\n Runs formic printing out all .py files in the current working directory\n and its children to ...
98
false
wolfhong/formic
main
26,090
LDU_FT/tornadoweb/tornado/_unquote_or_none
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 _unquote_or_none API. 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 _unquote_or_none API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
None-safe wrapper around url_unescape to handle unmatched optional groups correctly. Note that args are passed as bytes so the handler can decide what encoding to use.
"None-safe wrapper around url_unescape to handle unmatched optional\n groups correctly.\n\n Note that args are passed as bytes so the handler can decide what\n encoding to use."
1,291
true
tornadoweb/tornado
_unquote_or_none
26,091
LDU_FT/Kensuke-Mitsuzawa/JapaneseTokenizers/tokenize
LDU_FT
[ "<BEGIN>\n## `__check_mecab_dict_path`", "check path to dict of Mecab in system environment\n<END>", "<BEGIN>\n## `__feature_parser`", "Parse the POS feature output by Mecab\n :param uni_feature unicode:\n :return ( (pos1, pos2, pos3), word_stem ):\n<END>", "<BEGIN>\n## `__postprocess_analyzed...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the tokenize API. 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 tokenize API. 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...
This method returns tokenized result. If return_list==True(default), this method returns list whose element is tuple consisted with word_stem and POS. If return_list==False, this method returns TokenizedSenetence object.
"This method returns tokenized result.\n If return_list==True(default), this method returns list whose element is tuple consisted with word_stem and POS.\n If return_list==False, this method returns TokenizedSenetence object."
58
false
Kensuke-Mitsuzawa/JapaneseTokenizers
tokenize
26,092
LDU_FT/qwilka/vn-tree/get_node_by_path
LDU_FT
[ "<BEGIN>\n## `add_child`", "Add a child node to the current node instance.", " :param node: the child node instance.\n :type node: Node\n :returns: The new child node instance. \n :rtype: Node\n<END>", "<BEGIN>\n## `remove_child`", "Remove a child node from the current node ins...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_node_by_path API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_node_by_path API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Get a node from a node path. Warning: use of this method assumes that sibling nodes have unique names, if this is not assured the `get_node_by_coord` method can be used instead. | Example with absolute node path: | `node.get_node_by_path('/root.name/child.name/gchild.name')` ...
"Get a node from a node path. \n\n Warning: use of this method assumes that sibling nodes have unique names,\n if this is not assured the `get_node_by_coord` method can be used instead.\n\n | Example with absolute node path: \n | `node.get_node_by_path('/root.name/child.name/gchild.name')`...
59
false
qwilka/vn-tree
get_node_by_path
26,093
LDU_FT/boronine/discipline/restore
LDU_FT
[ "<BEGIN>\n## `word`", "This function generates a fake word by creating between two and three\n random syllables and then joining them together.\n<END>", "<BEGIN>\n## `save_object`", "Save an object with Discipline", " Only argument is a Django object. This function saves the object\n (r...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the restore API. 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 restore API. 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...
Restore all of the object attributes to the attributes. Return the Django object.
"Restore all of the object attributes to the attributes. Return the\n Django object."
49
false
boronine/discipline
restore
26,094
LDU_FT/romanorac/discomll/fit
LDU_FT
[ "<BEGIN>\n## `random_init_map`", "Assign datapoint `e` randomly to one of the `k` clusters.\n<END>", "<BEGIN>\n## `estimate_map`", "Find the cluster `i` that is closest to the datapoint `e`.\n<END>", "<BEGIN>\n## `estimate_reduce`", "Estimate the cluster centers for each cluster.\n<END>", "<BEGIN>\n## `...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the 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 extracted doc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the 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 extracted doc...
Function starts a job for calculation of theta parameters Parameters ---------- input - dataset object with input urls and other parameters alpha - convergence value max_iterations - define maximum number of iterations save_results - save results to ddfs show - show info about job execution...
"Function starts a job for calculation of theta parameters\n\n Parameters\n ----------\n input - dataset object with input urls and other parameters\n alpha - convergence value\n max_iterations - define maximum number of iterations\n save_results - save results to ddfs\n show - show info about job ...
77
false
romanorac/discomll
fit
26,095
LDU_FT/sjkingo/virtualenv-api/_python_rpath
LDU_FT
[ "<BEGIN>\n## `_python_rpath`", "The relative path (from environment root) to python.\n<END>", "<BEGIN>\n## `_create`", "Executes `virtualenv` to create a new environment.\n<END>", "<BEGIN>\n## `_execute_pip`", "Executes pip commands.", " :param args: Arguments to pass to pip (list[str])\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _python_rpath API. 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 _python_rpath API. 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...
The relative path (from environment root) to python.
"The relative path (from environment root) to python."
38
false
sjkingo/virtualenv-api
_python_rpath
26,096
LDU_FT/choderalab/pymbar/computePMF
LDU_FT
[ "<BEGIN>\n## `read_file`", "Read contents of the specified file.", " Parameters:\n -----------\n filename : str\n The name of the file to be read", " Returns:\n lines : list of str\n The contents of the file, split by line\n<END>", "<BEGIN>\n## `getFreeEnergyDifferences`", "Get the dim...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the computePMF API. 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 computePMF API. 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...
Compute the free energy of occupying a number of bins. This implementation computes the expectation of an indicator-function observable for each bin. Parameters ---------- u_n : np.ndarray, float, shape=(N) u_n[n] is the reduced potential energy of snapshot n of state k for...
"Compute the free energy of occupying a number of bins.\n\n This implementation computes the expectation of an indicator-function observable for each bin.\n\n Parameters\n ----------\n u_n : np.ndarray, float, shape=(N)\n u_n[n] is the reduced potential energy of snapshot n of sta...
533
false
choderalab/pymbar
computePMF
26,097
LDU_FT/SmileyChris/django-countries/get_prep_value
LDU_FT
[ "<BEGIN>\n## `get_option`", "Get a configuration option, trying the options attribute first and\n falling back to a Django project setting.\n<END>", "<BEGIN>\n## `countries`", "Return the a dictionary of countries, modified by any overriding\n options.", " The result is cached so future...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_prep_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 ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_prep_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 ex...
Returns field's value prepared for saving into a database.
"Returns field's value prepared for saving into a database."
42
false
SmileyChris/django-countries
get_prep_value
26,098
LDU_FT/viewflow/django-fsm/can_proceed
LDU_FT
[ "<BEGIN>\n## `get_available_FIELD_transitions`", "List of transitions available in current model state\n with all conditions met\n<END>", "<BEGIN>\n## `get_available_user_FIELD_transitions`", "List of transitions available in current model state\n with all conditions met and user have rights on it\n<END...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the can_proceed API. 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 can_proceed API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
Returns True if model in state allows to call bound_method Set ``check_conditions`` argument to ``False`` to skip checking conditions.
"Returns True if model in state allows to call bound_method\n\n Set ``check_conditions`` argument to ``False`` to skip checking\n conditions."
16
false
viewflow/django-fsm
can_proceed
26,099
LDU_FT/obulpathi/cdn-fastly-python/get_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 get_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 extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_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 extra...
Get the version for a particular service.
"Get the version for a particular service."
116
false
obulpathi/cdn-fastly-python
get_version
26,100
LDU_FT/chaoss/grimoirelab-toolkit/datetime_to_utc
LDU_FT
[ "<BEGIN>\n## `datetime_to_utc`", "Convert a timestamp to UTC+0 timezone.", " Returns the given datetime object converted to a date with\n UTC+0 timezone. For naive datetimes, it will be assumed that\n they are in UTC+0. When the timezone is wrong, UTC+0 will\n be set as default (using `dateutil.tz.t...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the datetime_to_utc API. 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 datetime_to_utc API. 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...
Convert a timestamp to UTC+0 timezone. Returns the given datetime object converted to a date with UTC+0 timezone. For naive datetimes, it will be assumed that they are in UTC+0. When the timezone is wrong, UTC+0 will be set as default (using `dateutil.tz.tzutc` object). :param dt: timestamp to con...
"Convert a timestamp to UTC+0 timezone.\n\n Returns the given datetime object converted to a date with\n UTC+0 timezone. For naive datetimes, it will be assumed that\n they are in UTC+0. When the timezone is wrong, UTC+0 will\n be set as default (using `dateutil.tz.tzutc` object).\n\n :param dt: timestam...
34
false
chaoss/grimoirelab-toolkit
datetime_to_utc
26,101
LDU_FT/twisted/txmongo/_create_property
LDU_FT
[ "<BEGIN>\n## `configure`", "Configures the protocol using the information gathered from the\n remote Mongo instance. Such information may contain the max\n BSON document size, replica set configuration, and the master\n status of the instance.\n<END>", "<BEGIN>\n## `notifyReady`...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _create_property API. 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 _create_property API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Helper for creating properties to read/write to files.
"Helper for creating properties to read/write to files."
64
false
twisted/txmongo
_create_property
26,102
LDU_FT/SMTG-UCL/sumo/get_path_data
LDU_FT
[ "<BEGIN>\n## `kpath_from_seekpath`", "r\"\"\"Convert seekpath-formatted kpoints path to sumo-preferred format.", " If 'GAMMA' is used as a label this will be replaced by '\\Gamma'.", " Args:\n seekpath (list): A :obj:`list` of 2-tuples containing the labels at\n each si...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_path_data API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_path_data API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
r"""Get the k-point path, coordinates and symmetry labels for a structure. If a manual :obj:`list` of kpoints is supplied using the ``kpt_list`` variable, the ``mode`` option will be ignored. The format of the returned data will be different if phonopy is ``True`` or ``False``. This is because phonopy...
"r\"\"\"Get the k-point path, coordinates and symmetry labels for a structure.\n\n If a manual :obj:`list` of kpoints is supplied using the ``kpt_list``\n variable, the ``mode`` option will be ignored.\n\n The format of the returned data will be different if phonopy is ``True`` or\n ``False``. This is becau...
449
false
SMTG-UCL/sumo
get_path_data
26,103
LDU_FT/stoneworksolutions/stoneredis/multi_rpush_limit
LDU_FT
[ "<BEGIN>\n## `reconnect`", "Connects to Redis with a exponential waiting (3**n)\n<END>", "<BEGIN>\n## `_multi_lpop_pipeline`", "Pops multiple elements from a list in a given pipeline\n<END>", "<BEGIN>\n## `multi_lpop`", "Pops multiple elements from a list\r\n This operation will be atomic if tr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the multi_rpush_limit API. 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 multi_rpush_limit API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Pushes multiple elements to a list in an atomic way until it reaches certain size Once limit is reached, the function will lpop the oldest elements This operation runs in LUA, so is always atomic
"Pushes multiple elements to a list in an atomic way until it reaches certain size\r\n Once limit is reached, the function will lpop the oldest elements\r\n This operation runs in LUA, so is always atomic"
20
false
stoneworksolutions/stoneredis
multi_rpush_limit
26,104
LDU_FT/emory-libraries/eulfedora/purgeDatastream
LDU_FT
[ "<BEGIN>\n## `file_md5sum`", "Calculate and returns an MD5 checksum for the specified file. Any file\n errors (non-existent file, read error, etc.) are not handled here but should\n be caught where this method is called.", " :param filename: full path to the file for which a checksum should be calcula...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the purgeDatastream API. 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 purgeDatastream API. 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...
Purge a datastream, or specific versions of a dastream, from a Fedora object. On success, response content will include a list of timestamps for the purged datastream versions; on failure, response content may contain an error message. :param pid: object pid :param dsID: datast...
"Purge a datastream, or specific versions of a dastream, from\n a Fedora object. On success, response content will include\n a list of timestamps for the purged datastream versions; on failure,\n response content may contain an error message.\n\n :param pid: object pid\n :param dsID:...
312
false
emory-libraries/eulfedora
purgeDatastream
26,105
LDU_FT/mapnik/Cascadenik/main
LDU_FT
[ "<BEGIN>\n## `xindexes`", "Generate list of possible indexes into a list of slots.", " Best way to think of this is as a number where each digit might have a different radix.\n E.g.: (10, 10, 10) would return 10 x 10 x 10 = 1000 responses from (0, 0, 0) to (9, 9, 9),\n (2, 2, 2, 2) would re...
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...
Given an input file containing nothing but styles, print out an unrolled list of declarations in cascade order.
"Given an input file containing nothing but styles, print out an\n unrolled list of declarations in cascade order."
123
false
mapnik/Cascadenik
main
26,106
LDU_FT/davidhuser/dhis2.py/load_json
LDU_FT
[ "<BEGIN>\n## `_set_log_format`", "Set log format\n :param color: Log message is colored\n :param include_caller: At the end, put a [caller:line-of-code], e.g. [script:123]\n :return: string of log format\n<END>", "<BEGIN>\n## `setup_logger`", "Setup logzero logger. if logfile is specified, create add...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load_json API. 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 load_json API. 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...
Load JSON file from path :param path: file path :return: A Python object (e.g. a dict)
"Load JSON file from path\n :param path: file path\n :return: A Python object (e.g. a dict)"
52
false
davidhuser/dhis2.py
load_json
26,107
LDU_FT/django-danceschool/django-danceschool/availableDurations
LDU_FT
[ "<BEGIN>\n## `get_context_data`", "Add the list of registrations for the given series\n<END>", "<BEGIN>\n## `get_context_data`", "The URL to redirect to can be explicitly specified, or it can come\n from the site session history, or it can be the default admin success page\n as specified in the ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the availableDurations 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 availableDurations 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...
A lesson can always be booked for the length of a single slot, but this method checks if multiple slots are available. This method requires that slots are non-overlapping, which needs to be enforced on slot save.
"A lesson can always be booked for the length of a single slot, but this method\n checks if multiple slots are available. This method requires that slots are\n non-overlapping, which needs to be enforced on slot save."
337
false
django-danceschool/django-danceschool
availableDurations
26,108
LDU_FT/persephone-tools/persephone/find_untranscribed_wavs
LDU_FT
[ "<BEGIN>\n## `handle_unhandled_exception`", "Handler for unhandled exceptions that will write to the logs\n<END>", "<BEGIN>\n## `write_transcriptions`", "Write the utterance transcriptions to files in the tgt_dir. Is lazy and\n checks if the file already exists.", " Args:\n utterances: A list o...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_untranscribed_wavs API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_untranscribed_wavs 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 the prefixes for all the wav files that do not have an associated transcription Args: wav_path: Path to search for wav files in transcription_path: Path to search for transcriptions in label_type: The type of labels for transcriptions. Eg "phonemes" "phonemes_and_tones" Returns: ...
"Find the prefixes for all the wav files that do not have an associated transcription\n Args:\n wav_path: Path to search for wav files in\n transcription_path: Path to search for transcriptions in\n label_type: The type of labels for transcriptions. Eg \"phonemes\" \"phonemes_and_tones\"\n Re...
219
false
persephone-tools/persephone
find_untranscribed_wavs
26,109
LDU_FT/neuropsychology/NeuroKit.py/read_acqknowledge
LDU_FT
[ "<BEGIN>\n## `complexity`", "Computes several chaos/complexity indices of a signal (including entropy, fractal dimensions, Hurst and Lyapunov exponent etc.).", " Parameters\n ----------\n signal : list or array\n List or array of values.\n sampling_rate : int\n Sampling rate (samples/s...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the read_acqknowledge API. 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 read_acqknowledge API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Read and Format a BIOPAC's AcqKnowledge file into a pandas' dataframe. Parameters ---------- filename : str Filename (with or without the extension) of a BIOPAC's AcqKnowledge file. path : str Data directory. index : str How to index the dataframe. "datetime" for aproximate...
"Read and Format a BIOPAC's AcqKnowledge file into a pandas' dataframe.\n\n Parameters\n ----------\n filename : str\n Filename (with or without the extension) of a BIOPAC's AcqKnowledge file.\n path : str\n Data directory.\n index : str\n How to index the dataframe. \"datetime\" fo...
778
false
neuropsychology/NeuroKit.py
read_acqknowledge
26,110
LDU_FT/mccutchen/triangulizor/get_color_dist
LDU_FT
[ "<BEGIN>\n## `triangulize`", "Processes the given image by breaking it down into tiles of the given\n size and applying a triangular effect to each tile. Returns the processed\n image as a PIL Image object.", " The image can be given as anything suitable for passing to `Image.open`\n (ie, the path t...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_color_dist API. 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_color_dist API. 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...
Calculates the "distance" between two colors, where the distance is another color whose components are the absolute values of the difference between each component of the input colors.
"Calculates the \"distance\" between two colors, where the distance is\n another color whose components are the absolute values of the difference\n between each component of the input colors."
22
false
mccutchen/triangulizor
get_color_dist
26,111
LDU_FT/mozilla-services/python-dockerflow/check_migrations_applied
LDU_FT
[ "<BEGIN>\n## `get_version`", "Load and return the contents of version.json.", " :param root: The root path that the ``version.json`` file will be opened\n :type root: str\n :returns: Content of ``version.json`` or None\n :rtype: dict or None\n<END>", "<BEGIN>\n## `version`", "Returns the content...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the check_migrations_applied API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the check_migrations_applied API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio...
A built-in check to see if all migrations have been applied correctly. It's automatically added to the list of Dockerflow checks if a `flask_migrate.Migrate <https://flask-migrate.readthedocs.io/>`_ object is passed to the :class:`~dockerflow.flask.app.Dockerflow` class during instantiation, e.g.:: ...
"A built-in check to see if all migrations have been applied correctly.\n\n It's automatically added to the list of Dockerflow checks if a\n `flask_migrate.Migrate <https://flask-migrate.readthedocs.io/>`_ object\n is passed to the :class:`~dockerflow.flask.app.Dockerflow` class during\n instantiation, e.g....
59
false
mozilla-services/python-dockerflow
check_migrations_applied
26,112
LDU_FT/saxix/django-sysinfo/get_installed_distributions
LDU_FT
[ "<BEGIN>\n## `merge`", "merges b into a", " >>> a={1:{\"a\":\"A\"},2:{\"b\":\"B\"}, 8:[]}\n >>> b={2:{\"c\":\"C\"},3:{\"d\":\"D\"}}", " >>> c = merge(a, b)\n >>> c == a == {8: [], 1: {\"a\": \"A\"}, 2: {\"c\": \"C\", \"b\": \"B\"}, 3: {\"d\": \"D\"}}\n True", " >>> c = merge(a, {1: \"a\"})...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_installed_distributions 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 get_installed_distributions API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclu...
Return a list of installed Distribution objects. ``skip`` argument is an iterable of lower-case project names to ignore; defaults to stdlib_pkgs
"Return a list of installed Distribution objects.\n ``skip`` argument is an iterable of lower-case project names to\n ignore; defaults to stdlib_pkgs"
33
false
saxix/django-sysinfo
get_installed_distributions
26,113
LDU_FT/yodle/docker-registry-client/delete_repository_tag
LDU_FT
[ "<BEGIN>\n## `_http_response`", "url -> full target url\n method -> method from requests\n data -> request body\n kwargs -> url formatting args\n<END>", "<BEGIN>\n## `_http_call`", "url -> full target url\n method -> method from requests\n data -> request body...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the delete_repository_tag 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 delete_repository_tag API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
DELETE /v1/repositories/(namespace)/(repository)/tags/(tag*)
"DELETE /v1/repositories/(namespace)/(repository)/tags/(tag*)"
18
false
yodle/docker-registry-client
delete_repository_tag
26,114
LDU_FT/inveniosoftware/invenio-jsonschemas/resolve_schema
LDU_FT
[ "<BEGIN>\n## `jsonresolver_loader`", "JSON resolver plugin that loads the schema endpoint.", " Injected into Invenio-Records JSON resolver.\n<END>", "<BEGIN>\n## `resolve_schema`", "Transform JSON schemas \"allOf\".", " This is the default schema resolver.", " This function was created because ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the resolve_schema API. 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 resolve_schema API. 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...
Transform JSON schemas "allOf". This is the default schema resolver. This function was created because some javascript JSON Schema libraries don't support "allOf". We recommend to use this function only in this specific case. This function is transforming the JSON Schema by removing "allOf" keywo...
"Transform JSON schemas \"allOf\".\n\n This is the default schema resolver.\n\n This function was created because some javascript JSON Schema libraries\n don't support \"allOf\". We recommend to use this function only in this\n specific case.\n\n This function is transforming the JSON Schema by removing ...
42
false
inveniosoftware/invenio-jsonschemas
resolve_schema
26,115
LDU_FT/bharadwaj-raju/libdesktop/open_file_with_default_program
LDU_FT
[ "<BEGIN>\n## `get_config_dir`", "Get the configuration directory.", "\tGet the configuration directories, optionally for a specific program.", "\tArgs:\n\t\t\tprogram\t(str) : The name of the program whose configuration directories have to be found.\n\t\t\tsystem_wide (bool): Gets the system-wide configuratio...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the open_file_with_default_program 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 open_file_with_default_program API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its con...
Opens a file with the default program for that type. Open the file with the user's preferred application. Args: file_path (str) : Path to the file to be opened. background (bool): Run the program in the background, instead of waiting for completion. Defaults to ``False``. return_cmd (bool): Returns the co...
"Opens a file with the default program for that type.\n\n\tOpen the file with the user's preferred application.\n\n\tArgs:\n\t\t\tfile_path (str) : Path to the file to be opened.\n\t\t\tbackground (bool): Run the program in the background, instead of waiting for completion. Defaults to ``False``.\n\t\t\treturn_cmd (bo...
119
false
bharadwaj-raju/libdesktop
open_file_with_default_program
26,116
LDU_FT/jwhitlock/drf-cached-instances/choice_default_serializer
LDU_FT
[ "<BEGIN>\n## `user_default_serializer`", "Convert a User to a cached instance representation.\n<END>", "<BEGIN>\n## `user_default_add_related_pks`", "Add related primary keys to a User instance.\n<END>", "<BEGIN>\n## `group_default_invalidator`", "Invalidated cached items when the Group changes.\n<END>", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the choice_default_serializer API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the choice_default_serializer API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi...
Convert a Choice to a cached instance representation.
"Convert a Choice to a cached instance representation."
75
false
jwhitlock/drf-cached-instances
choice_default_serializer
26,117
LDU_FT/square/connect-python-sdk/limit
LDU_FT
[ "<BEGIN>\n## `attribute_name`", "Sets the attribute_name of this CatalogQueryRange.\n The name of the attribute to be searched.", " :param attribute_name: The attribute_name of this CatalogQueryRange.\n :type: str\n<END>", "<BEGIN>\n## `idempotency_key`", "Sets the idempotency_key of th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the limit API. 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 limit API. 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...
Sets the limit of this ListEmployeeWagesRequest. Maximum number of Employee Wages to return per page. Can range between 1 and 200. The default is the maximum at 200. :param limit: The limit of this ListEmployeeWagesRequest. :type: int
"Sets the limit of this ListEmployeeWagesRequest.\n Maximum number of Employee Wages to return per page. Can range between 1 and 200. The default is the maximum at 200.\n\n :param limit: The limit of this ListEmployeeWagesRequest.\n :type: int"
148
false
square/connect-python-sdk
limit
26,118
LDU_FT/cedricbonhomme/Stegano/hide
LDU_FT
[ "<BEGIN>\n## `a2bits`", "Converts a string to its bits representation as a string of 0's and 1's.", " >>> a2bits(\"Hello World!\")\n '010010000110010101101100011011000110111100100000010101110110111101110010011011000110010000100001'\n<END>", "<BEGIN>\n## `a2bits_list`", "Convert a string to its bits re...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the hide API. 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 hide API. 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...
Hide a message (string) in an image with the LSB (Least Significant Bit) technique.
"Hide a message (string) in an image with the\n LSB (Least Significant Bit) technique."
38
false
cedricbonhomme/Stegano
hide
26,119
LDU_FT/inveniosoftware/invenio-github/index_old
LDU_FT
[ "<BEGIN>\n## `get`", "Return a repository.", " :param integer user_id: User identifier.\n :param integer github_id: GitHub repository identifier.\n :param str name: GitHub repository full name.\n :returns: The repository object.\n :raises: :py:exc:`~sqlalchemy.orm.exc.NoResult...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the index_old API. 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 index_old API. 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...
Generate a badge for a specific GitHub repository.
"Generate a badge for a specific GitHub repository."
42
false
inveniosoftware/invenio-github
index_old
26,120
LDU_FT/openvax/datacache/fetch
LDU_FT
[ "<BEGIN>\n## `connect_if_correct_version`", "Return a sqlite3 database connection if the version in the database's\n metadata matches the version argument.", " Also implicitly checks for whether the data in this database has\n been completely filled, since we set the version last.", " TODO: Make a...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the fetch API. 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 fetch API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
Return the local path to the downloaded copy of a given URL. Don't download the file again if it's already present, unless `force` is True.
"Return the local path to the downloaded copy of a given URL.\n Don't download the file again if it's already present,\n unless `force` is True."
101
false
openvax/datacache
fetch
26,121
LDU_FT/LettError/MutatorMath/capture_logger
LDU_FT
[ "<BEGIN>\n## `makeUnicodeMapFromSources`", "Create a dict with glyphName -> unicode value pairs\n using the data in the sources. \n If all master glyphs have the same unicode value\n this value will be used in the map.\n If master glyphs have conflicting value, a warnin...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the capture_logger API. 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 capture_logger API. 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...
Context manager to capture a logger output with a StringIO stream.
"Context manager to capture a logger output with a StringIO stream."
169
false
LettError/MutatorMath
capture_logger
26,122
LDU_FT/jbittel/django-mama-cas/get_subject
LDU_FT
[ "<BEGIN>\n## `get`", "(2.1) As a credential requestor, /login accepts three optional\n parameters:", " 1. ``service``: the identifier of the application the client is\n accessing. We assume this identifier to be a URL.\n 2. ``renew``: requires a client to present credentials\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_subject API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_subject API. 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...
Build a Subject XML block for a SAML 1.1 AuthenticationStatement or AttributeStatement.
"Build a Subject XML block for a SAML 1.1\n AuthenticationStatement or AttributeStatement."
86
false
jbittel/django-mama-cas
get_subject
26,123
LDU_FT/mozilla/elasticutils/_do_search
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 _do_search API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _do_search API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
Perform the mlt call, then convert that raw format into a SearchResults instance and return it.
"Perform the mlt call, then convert that raw format into a\n SearchResults instance and return it."
208
false
mozilla/elasticutils
_do_search
26,124
LDU_FT/mozilla/socorrolib/wait_for_completion
LDU_FT
[ "<BEGIN>\n## `klass_to_pypath`", "when a class is defined within the module that is being executed as\n main, the module name will be specified as '__main__' even though the\n module actually had its own real name. This ends up being very confusing\n to Configman as it tries to refer to a class by its p...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the wait_for_completion 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 wait_for_completion 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...
This is a blocking function call that will wait for the queuing thread to complete. parameters: waiting_func - this function will be called every one second while waiting for the queuing thread to quit. This allows for logging timers, s...
"This is a blocking function call that will wait for the queuing\n thread to complete.\n\n parameters:\n waiting_func - this function will be called every one second while\n waiting for the queuing thread to quit. This allows\n for logging ti...
155
false
mozilla/socorrolib
wait_for_completion
26,125
LDU_FT/heroku/sf-suds/pop
LDU_FT
[ "<BEGIN>\n## `splitPrefix`", "Split the name into a tuple (I{prefix}, I{name}). The first element in\n the tuple is I{None} when the name does't have a prefix.\n @param name: A node name containing an optional prefix.\n @type name: basestring\n @return: A tuple containing the (2) parts of I{name}\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the pop API. 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 pop API. 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...
Pop the frame at the top of the stack. @return: The popped frame, else None. @rtype: L{Frame}
"Pop the frame at the top of the stack.\n @return: The popped frame, else None.\n @rtype: L{Frame}"
38
false
heroku/sf-suds
pop
26,126
LDU_FT/mozilla-b2g/fxos-certsuite/run_marionette_script
LDU_FT
[ "<BEGIN>\n## `to_ints`", "Turn version string into a numeric representation for easy comparison.\n Undeclared point versions are assumed to be 0.\n :param version: a NSS version string\n :return: array of [major, minor, point, pointpoint, tag value]\n<END>", "<BEGIN>\n## `first_older_than_s...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the run_marionette_script 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 run_marionette_script API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Create a Marionette instance and run the provided script
"Create a Marionette instance and run the provided script"
58
false
mozilla-b2g/fxos-certsuite
run_marionette_script
26,127
LDU_FT/radical-cybertools/radical.entk/luid
LDU_FT
[ "<BEGIN>\n## `resolve_placeholders`", "**Purpose**: Substitute placeholders in staging attributes of a Task with actual paths to the corresponding tasks.", " :arguments:\n :path: string describing the staging paths, possibly containing a placeholder\n :placeholder_dict: dictionary holding the v...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the luid API. 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 luid API. 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...
Unique ID of the current stage (fully qualified). example: >>> stage.luid pipe.0001.stage.0004 :getter: Returns the fully qualified uid of the current stage :type: String
"Unique ID of the current stage (fully qualified).\n\n example:\n >>> stage.luid\n pipe.0001.stage.0004\n\n :getter: Returns the fully qualified uid of the current stage\n :type: String"
146
false
radical-cybertools/radical.entk
luid
26,128
LDU_FT/sdss/sdss_access/lookup_keys
LDU_FT
[ "<BEGIN>\n## `remote`", "Configures remote access", " Parameters\n ----------\n remote_base : str\n base URL path for remote repository\n username : str\n user name for remote repository\n password : str\n password for local repository\n<END>",...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the lookup_keys API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the lookup_keys API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
Lookup the keyword arguments needed for a given path name Parameters: name (str): The name of the path Returns: A list of keywords needed for filepath generation
"Lookup the keyword arguments needed for a given path name\n\n Parameters:\n name (str):\n The name of the path\n\n Returns:\n A list of keywords needed for filepath generation"
121
false
sdss/sdss_access
lookup_keys
26,129
LDU_FT/Capitains/MyCapytain/set_subject
LDU_FT
[ "<BEGIN>\n## `call`", "Call an endpoint given the parameters", " :param parameters: Dictionary of parameters\n :type parameters: dict\n :rtype: text\n<END>", "<BEGIN>\n## `getValidReff`", "Retrieve valid urn-references for a text", " :param urn: URN identifying the text\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_subject API. 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 set_subject API. 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...
Set the DC Subject literal value :param value: Value of the subject node :param lang: Language in which the value is
"Set the DC Subject literal value\n\n :param value: Value of the subject node\n :param lang: Language in which the value is"
473
false
Capitains/MyCapytain
set_subject
26,130
LDU_FT/deepmind/pysc2/_units_in_area
LDU_FT
[ "<BEGIN>\n## `DEFINE_point`", "Registers a flag whose value parses as a point.\n<END>", "<BEGIN>\n## `spatial`", "Choose the action space for the action proto.\n<END>", "<BEGIN>\n## `select_unit`", "Select a specific unit from the multi-unit selection.\n<END>", "<BEGIN>\n## `control_group`", "Act on a...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _units_in_area API. 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 _units_in_area API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
Return the list of units that intersect the rect.
"Return the list of units that intersect the rect."
300
false
deepmind/pysc2
_units_in_area
26,131
LDU_FT/pywbem/pywbem/_get_instance_repo
LDU_FT
[ "<BEGIN>\n## `_hash_item`", "Hash an item (CIM value, CIM object), by delegating to its hash function.", " The item may be `None`.\n<END>", "<BEGIN>\n## `_stacklevel_above_module`", "Return the stack level (with 1 = caller of this function) of the first\n caller that is not defined in the specified mo...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_instance_repo API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_instance_repo 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...
Returns the instance repository for the specified CIM namespace within the mock repository. This is the original instance variable, so any modifications will change the mock repository. Validates that the namespace exists in the mock repository. If the instance repository does not cont...
"Returns the instance repository for the specified CIM namespace\n within the mock repository. This is the original instance variable,\n so any modifications will change the mock repository.\n\n Validates that the namespace exists in the mock repository.\n\n If the instance repository does n...
3,983
true
pywbem/pywbem
_get_instance_repo
26,132
LDU_FT/ssato/python-anyconfig/make
LDU_FT
[ "<BEGIN>\n## `_load_plugins_itr`", ".. seealso:: the doc of :func:`load_plugins`\n<END>", "<BEGIN>\n## `select_by_key`", ":param items: A list of tuples of keys and values, [([key], val)]\n :return: A list of tuples of key and values, [(key, [val])]", " >>> select_by_key([([\"a\", \"aaa\"], 1), ([\"b\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the make API. 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 make API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
:param obj: a path string, a pathlib.Path or a file / file-like object :return: Namedtuple object represents a kind of input object such as a file / file-like object, path string or pathlib.Path object :raises: ValueError, UnknownProcessorTypeError, UnknownFileTypeError
":param obj: a path string, a pathlib.Path or a file / file-like object\n :return:\n Namedtuple object represents a kind of input object such as a file /\n file-like object, path string or pathlib.Path object\n\n :raises: ValueError, UnknownProcessorTypeError, UnknownFileTypeError"
534
false
ssato/python-anyconfig
make
26,133
LDU_FT/materialsproject/pymatgen/lengths_and_angles
LDU_FT
[ "<BEGIN>\n## `ion_or_solid_comp_object`", "Returns either an ion object or composition object given\n a formula.", " Args:\n formula: String formula. Eg. of ion: NaOH(aq), Na[+];\n Eg. of solid: Fe2O3(s), Fe(s), Na2O", " Returns:\n Composition/Ion object\n<END>", "<BEGIN>\n...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the lengths_and_angles 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 lengths_and_angles 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...
Returns (lattice lengths, lattice angles).
"Returns (lattice lengths, lattice angles)."
6,523
true
materialsproject/pymatgen
lengths_and_angles
26,134
LDU_FT/potash/drain/load
LDU_FT
[ "<BEGIN>\n## `y_score`", "Score examples from a new matrix X\n Args:\n estimator: an sklearn estimator object\n X: design matrix with the same features that the estimator was trained on", " Returns: a vector of scores of the same length as X", " Note that estimator.predict_proba is pref...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load API. 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 load API. 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...
safely load steps in place, excluding those that fail Args: steps: the steps to load
"safely load steps in place, excluding those that fail\n Args:\n steps: the steps to load"
165
false
potash/drain
load
26,135
LDU_FT/b3j0f/utils/get_proxy
LDU_FT
[ "<BEGIN>\n## `find_ctx`", "Get the right ctx related to input elt.", " In order to keep safe memory as much as possible, it is important to find\n the right context element. For example, instead of putting properties on\n a function at the level of an instance, it is important to save such\n propert...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_proxy API. 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_proxy API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
Get proxy from an elt. If elt implements the proxy generator method (named ``__getproxy__``), use it instead of using this module functions. :param elt: elt to proxify. :type elt: object or function/method :param bases: base types to enrich in the result cls if not None. :param _dict: class me...
"Get proxy from an elt.\n\n If elt implements the proxy generator method (named ``__getproxy__``), use\n it instead of using this module functions.\n\n :param elt: elt to proxify.\n :type elt: object or function/method\n :param bases: base types to enrich in the result cls if not None.\n :param _dict:...
169
false
b3j0f/utils
get_proxy
26,136
LDU_FT/cebel/pyctd/direct_evidences
LDU_FT
[ "<BEGIN>\n## `set_mysql`", "Set the SQLAlchemy connection string with MySQL settings\n<END>", "<BEGIN>\n## `_limit_and_df`", "adds a limit (limit==None := no limit) to any query and allow a return as pandas.DataFrame", " :param bool as_df: if is set to True results return as pandas.DataFrame\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the direct_evidences API. 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 direct_evidences API. 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: All available direct evidences for gene disease correlations :rtype: list
":return: All available direct evidences for gene disease correlations\n :rtype: list"
126
false
cebel/pyctd
direct_evidences
26,137
LDU_FT/razor-x/scipy-data_fitting/reset_directory
LDU_FT
[ "<BEGIN>\n## `add_symbol`", "Add a symbol with key `name` to `scipy_data_fitting.Model.symbols`.\n Optionally, specify an alternative `string` to pass to [`sympy.Symbol`][1],\n otherwise `name` is used.", " [1]: http://docs.sympy.org/dev/modules/core.html#id4\n<END>", "<BEGIN>\n## `replac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the reset_directory API. 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 reset_directory API. 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...
Remove `directory` if it exists, then create it if it doesn't exist.
"Remove `directory` if it exists, then create it if it doesn't exist."
163
false
razor-x/scipy-data_fitting
reset_directory
26,138
LDU_FT/nabla-c0d3/nassl/_init_client_authentication
LDU_FT
[ "<BEGIN>\n## `verify`", "Verify that the OCSP response is trusted.", " Args:\n verify_locations: The file path to a trust store containing pem-formatted certificates, to be used for\n validating the OCSP response.", " Raises OcspResponseNotTrustedError if the validation fai...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _init_client_authentication 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 _init_client_authentication API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclu...
Setup client authentication using the supplied certificate and key.
"Setup client authentication using the supplied certificate and key."
22
false
nabla-c0d3/nassl
_init_client_authentication
26,139
LDU_FT/baliame/http-hmac-python/validate
LDU_FT
[ "<BEGIN>\n## `signable`", "Creates the signable string for a request and returns it.", " Keyword arguments:\n request -- A request object which can be consumed by this API.\n authheaders -- A string-indexable object which contains the headers appropriate for this signature version.\n ...
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...
Validates the URL object. The URL object is invalid if it does not represent an absolute URL. Returns True or False based on this.
"Validates the URL object. The URL object is invalid if it does not represent an absolute URL.\n Returns True or False based on this."
81
false
baliame/http-hmac-python
validate
26,140
LDU_FT/etcher-be/emiz/get_remarks
LDU_FT
[ "<BEGIN>\n## `unit_pos_to_spot`", "Translates a unit position to a known parking spot", " Args:\n unit_pos: unit position as Vec2", " Returns: ParkingSpot object\n<END>", "<BEGIN>\n## `_tdec`", "Translates a 4-digit decimal temperature representation", " Ex: 1045 -> -4.5°C 0237 -> 23....
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_remarks API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_remarks API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
Returns the report split into components and the remarks string Remarks can include items like RMK and on, NOSIG and on, and BECMG and on
"Returns the report split into components and the remarks string\n\n Remarks can include items like RMK and on, NOSIG and on, and BECMG and on"
297
false
etcher-be/emiz
get_remarks
26,141
LDU_FT/jreese/aiosqlite/execute_fetchall
LDU_FT
[ "<BEGIN>\n## `connect`", "Create and return a connection proxy to the sqlite database.\n<END>", "<BEGIN>\n## `_execute`", "Execute the given function on the shared connection's thread.\n<END>", "<BEGIN>\n## `fetchmany`", "Fetch up to `cursor.arraysize` number of rows.\n<END>", "<BEGIN>\n## `run`", "Ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the execute_fetchall API. 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 execute_fetchall API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Helper to execute a query and return all the data.
"Helper to execute a query and return all the data."
22
false
jreese/aiosqlite
execute_fetchall
26,142
LDU_FT/dshean/demcoreg/compute_offset_ncc
LDU_FT
[ "<BEGIN>\n## `get_nlcd_fn`", "Calls external shell script `get_nlcd.sh` to fetch:", " 2011 Land Use Land Cover (nlcd) grids, 30 m", " http://www.mrlc.gov/nlcd11_leg.php\n<END>", "<BEGIN>\n## `get_bareground_fn`", "Calls external shell script `get_bareground.sh` to fetch:", " ~2010 global bare g...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the compute_offset_ncc 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 compute_offset_ncc 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...
Compute horizontal offset between input rasters using normalized cross-correlation (NCC) method
"Compute horizontal offset between input rasters using normalized cross-correlation (NCC) method"
63
false
dshean/demcoreg
compute_offset_ncc
26,143
LDU_FT/dr-leo/pandaSDMX/group_attrib
LDU_FT
[ "<BEGIN>\n## `namedtuple`", "Returns a new subclass of tuple with named fields.\n This is a patched version of collections.namedtuple from the stdlib.\n Unlike the latter, it accepts non-identifier strings as field names.\n All values are accessible through dict syntax. Fields whose names are\n identi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the group_attrib API. 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 group_attrib API. 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...
return a namedtuple containing all attributes attached to groups of which the given series is a member for each group of which the series is a member
"return a namedtuple containing all attributes attached\r\n to groups of which the given series is a member\r\n for each group of which the series is a member"
86
false
dr-leo/pandaSDMX
group_attrib
26,144
LDU_FT/PMBio/limix-backup/splitGenoSlidingWindow
LDU_FT
[ "<BEGIN>\n## `PCA`", "run PCA, retrieving the first (components) principle components\n\treturn [s0, eig, w0]\n\ts0: factors\n\tw0: weights\n<END>", "<BEGIN>\n## `PC_varExplained`", "Run PCA and calculate the cumulative fraction of variance\n Args:\n Y: phenotype values\n standardize: if True...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the splitGenoSlidingWindow 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 splitGenoSlidingWindow API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
split into windows using a slide criterion Args: size: window size step: moving step (default: 0.5*size) Returns: wnd_i: number of windows nSnps: vector of per-window number of SNPs
"split into windows using a slide criterion\n Args:\n size: window size\n step: moving step (default: 0.5*size)\n Returns:\n wnd_i: number of windows\n nSnps: vector of per-window number of SNPs"
428
false
PMBio/limix-backup
splitGenoSlidingWindow
26,145
LDU_FT/cdgriffith/Box/_conversion_checks
LDU_FT
[ "<BEGIN>\n## `_safe_attr`", "Convert a key into something that is accessible as an attribute\n<END>", "<BEGIN>\n## `_camel_killer`", "CamelKiller, qu'est-ce que c'est?", " Taken from http://stackoverflow.com/a/1176023/3244542\n<END>", "<BEGIN>\n## `_conversion_checks`", "Internal use for checking if ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _conversion_checks 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 _conversion_checks 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...
Internal use for checking if a duplicate safe attribute already exists :param item: Item to see if a dup exists :param keys: Keys to check against :param box_config: Easier to pass in than ask for specfic items :param check_only: Don't bother doing the conversion work :param pre_check: Need to add ...
"Internal use for checking if a duplicate safe attribute already exists\n\n :param item: Item to see if a dup exists\n :param keys: Keys to check against\n :param box_config: Easier to pass in than ask for specfic items\n :param check_only: Don't bother doing the conversion work\n :param pre_check: Need ...
31
false
cdgriffith/Box
_conversion_checks
26,146
LDU_FT/bspaans/python-mingus/transpose
LDU_FT
[ "<BEGIN>\n## `valid_beat_duration`", "Return True when log2(duration) is an integer.\n<END>", "<BEGIN>\n## `add_notes`", "Add a Note, note as string or NoteContainer to the last Bar.", " If the Bar is full, a new one will automatically be created.", " If the Bar is not full but the note can'...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the transpose API. 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 transpose API. 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...
Transpose the note up or down the interval. Examples: >>> a = Note('A') >>> a.transpose('3') >>> a 'C#-5' >>> a.transpose('3', False) >>> a 'A-4'
"Transpose the note up or down the interval.\n\n Examples:\n >>> a = Note('A')\n >>> a.transpose('3')\n >>> a\n 'C#-5'\n >>> a.transpose('3', False)\n >>> a\n 'A-4'"
535
false
bspaans/python-mingus
transpose
26,147
LDU_FT/novopl/peltak/start
LDU_FT
[ "<BEGIN>\n## `start`", "Create a new release branch.", " Args:\n component (str):\n Version component to bump when creating the release. Can be *major*,\n *minor* or *patch*.\n exact (str):\n The exact version to set for the release. Overrides the component\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the start API. 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 start API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
Create a new release branch. Args: component (str): Version component to bump when creating the release. Can be *major*, *minor* or *patch*. exact (str): The exact version to set for the release. Overrides the component argument. This allows to re-rel...
"Create a new release branch.\n\n Args:\n component (str):\n Version component to bump when creating the release. Can be *major*,\n *minor* or *patch*.\n exact (str):\n The exact version to set for the release. Overrides the component\n argument. This allows ...
367
false
novopl/peltak
start
26,148
LDU_FT/amoffat/sh/wait
LDU_FT
[ "<BEGIN>\n## `encode_to_py3bytes_or_py2str`", "takes anything and attempts to return a py2 string or py3 bytes. this\n is typically used when creating command + arguments to be executed via\n os.exec*\n<END>", "<BEGIN>\n## `get_exc_from_name`", "takes an exception name, like:", " ErrorReturnCo...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the wait API. 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 wait API. 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...
waits for the process to complete, handles the exit code
"waits for the process to complete, handles the exit code"
83
false
amoffat/sh
wait
26,149
LDU_FT/pebble/libpebble2/get_flash_region
LDU_FT
[ "<BEGIN>\n## `send_notification`", "Sends a notification. Blocks as long as necessary.", " :param subject: The subject.\n :type subject: str\n :param message: The message.\n :type message: str\n :param sender: The sender.\n :type sender: str\n :param source: The ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_flash_region API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_flash_region API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Retrieves the contents of a region of flash from the watch. This only works on watches running non-release firmware. Raises :exc:`.GetBytesError` on failure. :return: The retrieved data :rtype: bytes
"Retrieves the contents of a region of flash from the watch. This only works on watches running\n non-release firmware.\n Raises :exc:`.GetBytesError` on failure.\n\n :return: The retrieved data\n :rtype: bytes"
121
false
pebble/libpebble2
get_flash_region
26,150
LDU_FT/openai/universe/send_env_text
LDU_FT
[ "<BEGIN>\n## `send_KeyEvent`", "For most ordinary keys, the \"keysym\" is the same as the\n corresponding ASCII value. Other common keys are shown in the\n KEY_ constants.\n<END>", "<BEGIN>\n## `send_PointerEvent`", "Indicates either pointer movement or a pointer button press or\n rel...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the send_env_text API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the send_env_text API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
text channel to communicate with the agent
"text channel to communicate with the agent"
126
false
openai/universe
send_env_text
26,151
LDU_FT/Jaymon/prom/get_table_info
LDU_FT
[ "<BEGIN>\n## `fields`", "return all the fields and their raw values for this Orm instance. This\n property returns a dict with the field names and their current values", " if you want to control the values for outputting to an api, use .jsonable()\n<END>", "<BEGIN>\n## `create`", "create an in...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_table_info API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_table_info API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
Returns a dict with table_name keys mapped to the Interface that table exists in :param *table_names: the tables you are searching for
"Returns a dict with table_name keys mapped to the Interface that table exists in\n\n :param *table_names: the tables you are searching for"
241
false
Jaymon/prom
get_table_info
26,152
LDU_FT/dbcli/athenacli/format_uptime
LDU_FT
[ "<BEGIN>\n## `refresher`", "Decorator to add the decorated function to the dictionary of\n refreshers. Any function decorated with a @refresher will be executed as\n part of the completion refresh routine.\n<END>", "<BEGIN>\n## `refresh`", "Creates a SQLCompleter object and populates it with the relevan...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the format_uptime API. 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 format_uptime API. 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...
Format number of seconds into human-readable string. :param uptime_in_seconds: The server uptime in seconds. :returns: A human-readable string representing the uptime. >>> uptime = format_uptime('56892') >>> print(uptime) 15 hours 48 min 12 sec
"Format number of seconds into human-readable string.\n :param uptime_in_seconds: The server uptime in seconds.\n :returns: A human-readable string representing the uptime.\n >>> uptime = format_uptime('56892')\n >>> print(uptime)\n 15 hours 48 min 12 sec"
95
false
dbcli/athenacli
format_uptime
26,153
LDU_FT/kgaughan/dbkit/query_value
LDU_FT
[ "<BEGIN>\n## `strip_accents`", "Strip accents to prepare for slugification.\n<END>", "<BEGIN>\n## `slugify`", "Converts the given string to a URL slug.\n<END>", "<BEGIN>\n## `_make_connect`", "Returns a function capable of making connections with a particular\n driver given the supplied credentials.\n<...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the query_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 extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the query_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 extra...
Execute a query, returning the first value in the first row of the result set. If the query returns no result set, a default value is returned, which is `None` by default.
"Execute a query, returning the first value in the first row of the\n result set. If the query returns no result set, a default value is\n returned, which is `None` by default."
55
false
kgaughan/dbkit
query_value
26,154
LDU_FT/cmutel/constructive_geometries/within
LDU_FT
[ "<BEGIN>\n## `has_gis`", "Skip function execution if there are no presamples\n<END>", "<BEGIN>\n## `sha256`", "Generate SHA 256 hash for file at `filepath`\n<END>", "<BEGIN>\n## `check_data`", "Check that definitions file is present, and that faces file is readable.\n<END>", "<BEGIN>\n## `load_definitio...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the within API. 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 within API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Get all locations that completely contain this location. If the ``resolved_row`` context manager is not used, ``RoW`` doesn't have a spatial definition. Therefore, ``RoW`` can only be contained by ``GLO`` and ``RoW``.
"Get all locations that completely contain this location.\n\n If the ``resolved_row`` context manager is not used, ``RoW`` doesn't have a spatial definition. Therefore, ``RoW`` can only be contained by ``GLO`` and ``RoW``."
55
false
cmutel/constructive_geometries
within
26,155
LDU_FT/zzyztyy/pyIGRF/igrf_value
LDU_FT
[ "<BEGIN>\n## `loadCoeffs`", "load igrf12 coeffs from file\n :param filename: file which save coeffs (str)\n :return: g and h list one by one (list(float))\n<END>", "<BEGIN>\n## `getCoeffs`", ":param gh: list from loadCoeffs\n :param date: float\n :return: list: g, list: h\n<END>", "<BEGIN>\n## `...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the igrf_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 extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the igrf_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 extrac...
:return D is declination (+ve east) I is inclination (+ve down) H is horizontal intensity X is north component Y is east component Z is vertical component (+ve down) F is total intensity
":return\n D is declination (+ve east)\n I is inclination (+ve down)\n H is horizontal intensity\n X is north component\n Y is east component\n Z is vertical component (+ve down)\n F is total intensity"
16
false
zzyztyy/pyIGRF
igrf_value
26,156
LDU_FT/Shizmob/pydle/is_same_nick
LDU_FT
[ "<BEGIN>\n## `on_ctcp_version`", "Built-in CTCP version as some networks seem to require it.\n<END>", "<BEGIN>\n## `on_raw_privmsg`", "Modify PRIVMSG to redirect CTCP messages.\n<END>", "<BEGIN>\n## `on_raw_notice`", "Modify NOTICE to redirect CTCP messages.\n<END>", "<BEGIN>\n## `_register`", "Hijack...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_same_nick API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_same_nick API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
Check if given nicknames are equal in the server's case mapping.
"Check if given nicknames are equal in the server's case mapping."
96
false
Shizmob/pydle
is_same_nick
26,157
LDU_FT/yamins81/tabular/parse_dependency_links
LDU_FT
[ "<BEGIN>\n## `arrayuniqify`", "Very fast uniqify routine for numpy arrays.", " **Parameters**", " **X** : numpy array", " Determine the unique elements of this numpy array.", " **retainorder** : Boolean, optional", " Whether or not to retu...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_dependency_links 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 parse_dependency_links API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
from: http://cburgmer.posterous.com/pip-requirementstxt-and-setuppy
"from:\n http://cburgmer.posterous.com/pip-requirementstxt-and-setuppy"
928
false
yamins81/tabular
parse_dependency_links
26,158
LDU_FT/JamesGardiner/chwrapper/document
LDU_FT
[ "<BEGIN>\n## `search_officers`", "Search for officers by name.", " Args:\n term (str): Officer name to search on.\n disqualified (Optional[bool]): True to search for disqualified\n officers\n kwargs (dict): additional keywords passed into\n requests.sessio...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the document API. 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 document API. 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...
Requests for a document by the document id. Normally the response.content can be saved as a pdf file Args: document_id (str): The id of the document retrieved. kwargs (dict): additional keywords passed into requests.session.get *params* keyword.
"Requests for a document by the document id.\n Normally the response.content can be saved as a pdf file\n\n Args:\n document_id (str): The id of the document retrieved.\n kwargs (dict): additional keywords passed into\n requests.session.get *params* keyword."
33
false
JamesGardiner/chwrapper
document
26,159
LDU_FT/tipsi/aiozk/abort
LDU_FT
[ "<BEGIN>\n## `deserialize`", "Deserializes the given raw bytes into an instance.", " Since this is a subclass of ``Part`` but a top-level one (i.e. no other\n subclass of ``Part`` would have a ``Response`` as a part) this merely\n has to parse the raw bytes and discard the resulting offset....
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the abort API. 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 abort API. 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...
Aborts a connection and puts all pending futures into an error state. If ``sys.exc_info()`` is set (i.e. this is being called in an exception handler) then pending futures will have that exc info set. Otherwise the given ``exception`` parameter is used (defaults to ``ConnectError``).
"Aborts a connection and puts all pending futures into an error state.\n\n If ``sys.exc_info()`` is set (i.e. this is being called in an exception\n handler) then pending futures will have that exc info set. Otherwise\n the given ``exception`` parameter is used (defaults to\n ``ConnectError...
38
false
tipsi/aiozk
abort
26,160
LDU_FT/percipient/django-querysetsequence/decode_cursor
LDU_FT
[ "<BEGIN>\n## `get_ordering`", "Take whatever the expected ordering is and then first order by QuerySet.\n<END>", "<BEGIN>\n## `_get_position_from_instance`", "The position will be a tuple of values:", " The QuerySet number inside of the QuerySetSequence.\n Whatever the normal value tak...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the decode_cursor API. 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 decode_cursor API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
Given a request with a cursor, return a `Cursor` instance. Differs from the standard CursorPagination to handle a tuple in the position field.
"Given a request with a cursor, return a `Cursor` instance.\n\n Differs from the standard CursorPagination to handle a tuple in the\n position field."
21
false
percipient/django-querysetsequence
decode_cursor
26,161
LDU_FT/spyder-ide/conda-manager/_timer_update
LDU_FT
[ "<BEGIN>\n## `get_package_versions`", "Gives all the compatible package canonical name", " name : str\n Name of the package\n<END>", "<BEGIN>\n## `closing_plugin`", "Perform actions before parent main window is closed.\n<END>", "<BEGIN>\n## `get_conf_path`", "Return absolute path for c...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _timer_update API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _timer_update API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
Add some moving points to the dependency resolution text.
"Add some moving points to the dependency resolution text."
160
false
spyder-ide/conda-manager
_timer_update
26,162
LDU_FT/scikit-hep/root_numpy/generate_example_rst
LDU_FT
[ "<BEGIN>\n## `matrix`", "Convert a ROOT TMatrix into a NumPy matrix.", " Parameters\n ----------\n mat : ROOT TMatrixT\n A ROOT TMatrixD or TMatrixF", " Returns\n -------\n mat : numpy.matrix\n A NumPy matrix", " Examples\n --------\n >>> from root_numpy import matri...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the generate_example_rst 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_example_rst API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Generate the list of examples, as well as the contents of examples.
"Generate the list of examples, as well as the contents of\n examples."
180
false
scikit-hep/root_numpy
generate_example_rst
26,163
LDU_FT/markovmodel/msmtools/flux_matrix
LDU_FT
[ "<BEGIN>\n## `flux_matrix`", "r\"\"\"Compute the TPT flux network for the reaction A-->B.", " Parameters\n ----------\n T : (M, M) ndarray\n transition matrix\n pi : (M,) ndarray\n Stationary distribution corresponding to T\n qminus : (M,) ndarray\n Backward comittor\n qpl...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the flux_matrix API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the flux_matrix API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
r"""Compute the TPT flux network for the reaction A-->B. Parameters ---------- T : (M, M) ndarray transition matrix pi : (M,) ndarray Stationary distribution corresponding to T qminus : (M,) ndarray Backward comittor qplus : (M,) ndarray Forward committor net...
"r\"\"\"Compute the TPT flux network for the reaction A-->B.\n\n Parameters\n ----------\n T : (M, M) ndarray\n transition matrix\n pi : (M,) ndarray\n Stationary distribution corresponding to T\n qminus : (M,) ndarray\n Backward comittor\n qplus : (M,) ndarray\n Forward co...
1,330
true
markovmodel/msmtools
flux_matrix
26,164
LDU_FT/lehins/django-smartfields/get_status
LDU_FT
[ "<BEGIN>\n## `process`", "Processing is triggered by field's pre_save method. It will be\n executed if field's value has been changed (known through descriptor and\n stashing logic) or if model instance has never been saved before,\n i.e. no pk set, because there is a chance that field was in...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_status API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_status API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
Retrives a status of a field from cache. Fields in state 'error' and 'complete' will not retain the status after the call.
"Retrives a status of a field from cache. Fields in state 'error' and\n 'complete' will not retain the status after the call."
16
false
lehins/django-smartfields
get_status
26,165
LDU_FT/pytorch/ignite/attach
LDU_FT
[ "<BEGIN>\n## `add_event_handler`", "Add an event handler to be executed when the specified event is fired.", " Args:\n event_name: An event to attach the handler to. Valid events are from :class:`~ignite.engine.Events`\n or any `event_name` added by :meth:`~ignite.engine.Engine....
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the attach API. 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 attach API. 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 ...
Attaches the progress bar to an engine object. Args: engine (Engine): engine object. metric_names (list, optional): list of the metrics names to log as the bar progresses output_transform (callable, optional): a function to select what you want to print from the engine's ...
"Attaches the progress bar to an engine object.\n\n Args:\n engine (Engine): engine object.\n metric_names (list, optional): list of the metrics names to log as the bar progresses\n output_transform (callable, optional): a function to select what you want to print from the engine...
110
false
pytorch/ignite
attach
26,166
LDU_FT/lvjiyong/configreset/load_package
LDU_FT
[ "<BEGIN>\n## `reset`", "重置设置\n :param target:\n :param settings:\n :return:\n<END>", "<BEGIN>\n## `load_package`", "从目录中载入配置文件\n :param package_dir:\n :param package:\n :param exclude:\n :param default_section:\n :return:\n<END>", "<BEGIN>\n## `load`", "从混合类型组中读取配置\n :param defa...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load_package API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load_package API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
从目录中载入配置文件 :param package_dir: :param package: :param exclude: :param default_section: :return:
"从目录中载入配置文件\n :param package_dir:\n :param package:\n :param exclude:\n :param default_section:\n :return:"
26
false
lvjiyong/configreset
load_package
26,167
LDU_FT/python-visualization/branca/render
LDU_FT
[ "<BEGIN>\n## `legend_scaler`", "Downsamples the number of legend values so that there isn't a collision\n of text on the legend colorbar (within reason). The colorbar seems to\n support ~10 entries as a maximum.\n<END>", "<BEGIN>\n## `linear_gradient`", "Given a list of hexcode values, will return a lis...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the render API. 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 render API. 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 ...
Renders the HTML representation of the element.
"Renders the HTML representation of the element."
73
false
python-visualization/branca
render
26,168
LDU_FT/postlund/pyatv/start
LDU_FT
[ "<BEGIN>\n## `lookup_tag`", "Look up a tag based on its key. Returns a DmapTag.\n<END>", "<BEGIN>\n## `scan_for_apple_tvs`", "Scan for Apple TVs using zeroconf (bonjour) and returns them.\n<END>", "<BEGIN>\n## `add_service`", "Handle callback from zeroconf when a service has been discovered.\n<END>", "<...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the start API. 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 start API. 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 the pairing server and publish service.
"Start the pairing server and publish service."
146
false
postlund/pyatv
start
26,169
LDU_FT/andrewda/frc-livescore/_broadcast
LDU_FT
[ "<BEGIN>\n## `guess_segments_lines`", "given segments, outputs a array of line numbers, or -1 if it\n doesn't belong to any\n<END>", "<BEGIN>\n## `contained_segments_matrix`", "givens a n*n matrix m, n=len(segments), in which m[i,j] means\n segments[i] is contained inside segments[j]\n<END>", "<BEGIN>...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _broadcast API. 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 _broadcast API. 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...
To be used exclusively by create_broadcast. A broadcast function gets an attribute on the src_processor and sets it (possibly under a different name) on dest_processors
"To be used exclusively by create_broadcast.\n A broadcast function gets an attribute on the src_processor and\n sets it (possibly under a different name) on dest_processors"
18
false
andrewda/frc-livescore
_broadcast
26,170
LDU_FT/csparpa/pyowm/to_UNIXtime
LDU_FT
[ "<BEGIN>\n## `parse_JSON`", "Parses a *StationHistory* instance out of raw JSON data. Only certain\n properties of the data are used: if these properties are not found or\n cannot be parsed, an error is issued.", " :param JSON_string: a raw JSON string\n :type JSON_string: str\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the to_UNIXtime API. 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 to_UNIXtime API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
Returns the UNIXtime corresponding to the time value conveyed by the specified object, which can be either a UNIXtime, a ``datetime.datetime`` object or an ISO8601-formatted string in the format `YYYY-MM-DD HH:MM:SS+00``. :param timeobject: the object conveying the time value :type timeobject: int,...
"Returns the UNIXtime corresponding to the time value conveyed by the\n specified object, which can be either a UNIXtime, a\n ``datetime.datetime`` object or an ISO8601-formatted string in the format\n `YYYY-MM-DD HH:MM:SS+00``.\n\n :param timeobject: the object conveying the time value\n :type timeobjec...
612
false
csparpa/pyowm
to_UNIXtime
26,171
LDU_FT/ericflo/hurricane/parse_cookie
LDU_FT
[ "<BEGIN>\n## `unquote_header_value`", "r\"\"\"Unquotes a header value. (Reversal of :func:`quote_header_value`).\n This does not use the real unquoting but what browsers are actually\n using for quoting.", " :param value: the header value to unquote.\n<END>", "<BEGIN>\n## `parse_cookie`", "Parse a...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_cookie API. 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 parse_cookie API. 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...
Parse a cookie. :param header: the header to be used to parse the cookie. :param charset: the charset for the cookie values. :param errors: the error behavior for the charset decoding.
"Parse a cookie.\n\n :param header: the header to be used to parse the cookie.\n :param charset: the charset for the cookie values.\n :param errors: the error behavior for the charset decoding."
12
false
ericflo/hurricane
parse_cookie
26,172