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/pyinvoke/invocations/_browse
LDU_FT
[ "<BEGIN>\n## `confirm`", "Ask user a yes/no question and return their response as a boolean.", " ``question`` should be a simple, grammatically complete question such as\n \"Do you wish to continue?\", and will have a string similar to ``\" [Y/n] \"``\n appended automatically. This function will *not* ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _browse API. 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 _browse API. 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...
Open build target's index.html in a browser (using 'open').
"Open build target's index.html in a browser (using 'open')."
126
false
pyinvoke/invocations
_browse
17,773
LDU_FT/niolabs/python-xbee/main
LDU_FT
[ "<BEGIN>\n## `_write`", "_write: binary data -> None", " Packages the given binary data in an API frame and writes the\n result to the serial port\n<END>", "<BEGIN>\n## `_build_command`", "_build_command: string (binary data) ... -> binary data", " _build_command will construct a comm...
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...
Sends an API AT command to read the lower-order address bits from an XBee Series 1 and looks for a response
"Sends an API AT command to read the lower-order address bits from\n an XBee Series 1 and looks for a response"
91
false
niolabs/python-xbee
main
17,774
LDU_FT/Dallinger/Dallinger/set_rest_notification
LDU_FT
[ "<BEGIN>\n## `setup`", "Setup the networks.", " Setup only does stuff if there are no networks, this is so it only\n runs once at the start of the experiment. It first calls the same\n function in the super (see experiments.py in dallinger). Then it adds a\n source to each network.\n...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_rest_notification API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_rest_notification API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Set a REST endpoint to recieve notifications about the HIT The newer AWS MTurk API does not support this feature, which means we cannot use boto3 here. Instead, we make the call manually after assembling a properly signed request.
"Set a REST endpoint to recieve notifications about the HIT\n The newer AWS MTurk API does not support this feature, which means we\n cannot use boto3 here. Instead, we make the call manually after\n assembling a properly signed request."
425
false
Dallinger/Dallinger
set_rest_notification
17,775
LDU_FT/twitterdev/search-tweets-python/gen_params_from_config
LDU_FT
[ "<BEGIN>\n## `parse_version`", "Parses the program's version from a python variable declaration.\n<END>", "<BEGIN>\n## `make_session`", "Creates a Requests Session for use. Accepts a bearer token\n for premiums users and will override username and password information if\n present.", " Args:\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the gen_params_from_config API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the gen_params_from_config API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
Generates parameters for a ResultStream from a dictionary.
"Generates parameters for a ResultStream from a dictionary."
88
false
twitterdev/search-tweets-python
gen_params_from_config
17,776
LDU_FT/roycoding/slots/run
LDU_FT
[ "<BEGIN>\n## `run`", "Run MAB test with T trials.", " Parameters\n ----------\n trials : int\n Number of trials to run.\n strategy : str\n Name of selected strategy.\n parameters : dict\n Parameters for selected strategy.", " Available...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the run API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the run API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
Run MAB test with T trials. Parameters ---------- trials : int Number of trials to run. strategy : str Name of selected strategy. parameters : dict Parameters for selected strategy. Available strategies: - Epsilon-greedy (...
"Run MAB test with T trials.\n\n Parameters\n ----------\n trials : int\n Number of trials to run.\n strategy : str\n Name of selected strategy.\n parameters : dict\n Parameters for selected strategy.\n\n Available strategies:\n - Eps...
55
false
roycoding/slots
run
17,777
LDU_FT/PythonRails/rails/get
LDU_FT
[ "<BEGIN>\n## `_load_controllers`", "Load all controllers from folder 'controllers'.", " Ignore files with leading underscore (for example: controllers/_blogs.py)\n<END>", "<BEGIN>\n## `get_action_handler`", "Return action of controller as callable.", " If requested controller isn't found - r...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
Return variable by name from the project's config. Name can be a dotted path, like: 'rails.db.type'.
"Return variable by name from the project's config.\n\n Name can be a dotted path, like: 'rails.db.type'."
21
false
PythonRails/rails
get
17,778
LDU_FT/openatx/facebook-wda/screenshot
LDU_FT
[ "<BEGIN>\n## `urljoin`", "The default urlparse.urljoin behavior look strange\n Standard urlparse.urljoin('http://a.com/foo', '/bar')\n Expect: http://a.com/foo/bar\n Actually: http://a.com/bar", " This function fix that.\n<END>", "<BEGIN>\n## `wait_ready`", "wait until WDA back to normal", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the screenshot API. 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 screenshot API. 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...
Take screenshot with session check Returns: PIL.Image
"Take screenshot with session check\n\n Returns:\n PIL.Image"
68
false
openatx/facebook-wda
screenshot
17,779
LDU_FT/FlaskGuys/Flask-Imagine/create_cached_item
LDU_FT
[ "<BEGIN>\n## `apply`", "Apply filter to resource\n :param resource: Image\n :return: Image\n<END>", "<BEGIN>\n## `get_item`", "Get resource item\n :param path: string\n :return: PIL.Image\n<END>", "<BEGIN>\n## `create_cached_item`", "Create cached resource item\n :param ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_cached_item API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_cached_item API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
Create cached resource item :param path: str :param content: Image :return: str
"Create cached resource item\n :param path: str\n :param content: Image\n :return: str"
66
false
FlaskGuys/Flask-Imagine
create_cached_item
17,780
LDU_FT/ttinies/sc2gameLobby/ladderPlayerInfo
LDU_FT
[ "<BEGIN>\n## `addNew`", "Add a new version record to the database to be tracked\n VERSION RECORD EXAMPLE:\n \"base-version\": 55505, \n \"data-hash\": \"60718A7CA50D0DF42987A30CF87BCB80\", \n \"fixed-hash\": \"0189B2804E2F6BA4C4591222089E63B2\", \n \"label\": \"3.16\", \n \"r...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the ladderPlayerInfo API. 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 ladderPlayerInfo API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
obtain information housed on the ladder about playerName
"obtain information housed on the ladder about playerName"
76
false
ttinies/sc2gameLobby
ladderPlayerInfo
17,781
LDU_FT/linkedin/Zopkio/parse_config_list
LDU_FT
[ "<BEGIN>\n## `make_machine_mapping`", "Convert the machine list argument from a list of names into a mapping of logical names to\n physical hosts. This is similar to the _parse_configs function but separated to provide the\n opportunity for extension and additional checking of machine access\n<END>", "<BEGIN>...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_config_list API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_config_list API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Parse a list of configuration properties separated by '='
"Parse a list of configuration properties separated by '='"
85
false
linkedin/Zopkio
parse_config_list
17,782
LDU_FT/ransford/sllurp/inventory
LDU_FT
[ "<BEGIN>\n## `decode_tve_parameter`", "Generic byte decoding function for TVE parameters.", " Given an array of bytes, tries to interpret a TVE parameter from the\n beginning of the array. Returns the decoded data and the number of bytes\n it read.\n<END>", "<BEGIN>\n## `tagReportCallback`", "Func...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the inventory API. 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 inventory API. 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...
Conduct inventory (searching the area around the antennas).
"Conduct inventory (searching the area around the antennas)."
59
false
ransford/sllurp
inventory
17,783
LDU_FT/flowersteam/explauto/logs
LDU_FT
[ "<BEGIN>\n## `predict_y`", "Provide an prediction of xq in the output space", " @param xq an array of float of length dim_x\n @return predicted y as np.array of float\n<END>", "<BEGIN>\n## `predict_given_context`", "Provide a prediction of x with context c on dimensions c_dims in the outpu...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the logs API. 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 logs API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
Returns the list of :class:`~explauto.experiment.log.ExperimentLog`. .. note:: The logs will be returned as a vector if repeat was set as one in the :meth:`~explauto.experiment.pool.ExperimentPool.run` method else it will be a matrix where each rows represents the n repetitions of an experiment.
"Returns the list of :class:`~explauto.experiment.log.ExperimentLog`.\n\n .. note:: The logs will be returned as a vector if repeat was set as one in the :meth:`~explauto.experiment.pool.ExperimentPool.run` method else it will be a matrix where each rows represents the n repetitions of an experiment."
685
false
flowersteam/explauto
logs
17,784
LDU_FT/nerdvegas/rez/schema_keys
LDU_FT
[ "<BEGIN>\n## `add_node`", "Add given node to the graph.", " @attention: While nodes can be of any type, it's strongly recommended to use only\n numbers and single-line strings as node identifiers if you intend to use write().", " @type node: node\n @param node: Node identifier.", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the schema_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 schema_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...
Get the string values of keys in a dict-based schema. Non-string keys are ignored. Returns: Set of string keys of a schema which is in the form (eg): schema = Schema({Required("foo"): int, Optional("bah"): basestring})
"Get the string values of keys in a dict-based schema.\n\n Non-string keys are ignored.\n\n Returns:\n Set of string keys of a schema which is in the form (eg):\n\n schema = Schema({Required(\"foo\"): int,\n Optional(\"bah\"): basestring})"
2,330
true
nerdvegas/rez
schema_keys
17,785
LDU_FT/joshspeagle/dynesty/randoffset
LDU_FT
[ "<BEGIN>\n## `runplot`", "Plot live points, ln(likelihood), ln(weight), and ln(evidence)\n as a function of ln(prior volume).", " Parameters\n ----------\n results : :class:`~dynesty.results.Results` instance\n A :class:`~dynesty.results.Results` instance from a nested\n sampling run."...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the randoffset API. 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 randoffset API. 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 a random offset from the center of the ellipsoid.
"Return a random offset from the center of the ellipsoid."
709
false
joshspeagle/dynesty
randoffset
17,786
LDU_FT/picklepete/pyicloud/refresh_client
LDU_FT
[ "<BEGIN>\n## `refresh_client`", "Refreshes the FindMyiPhoneService endpoint,", " This ensures that the location data is up-to-date.\n<END>", "<BEGIN>\n## `status`", "Returns status information for device.", " This returns only a subset of possible properties.\n<END>", "<BEGIN>\n## `play_so...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the refresh_client API. 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 refresh_client API. 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...
Refreshes the FindMyiPhoneService endpoint, This ensures that the location data is up-to-date.
"Refreshes the FindMyiPhoneService endpoint,\n\n This ensures that the location data is up-to-date."
32
false
picklepete/pyicloud
refresh_client
17,787
LDU_FT/jamieleshaw/lurklib/umode
LDU_FT
[ "<BEGIN>\n## `find`", "Finds needle in haystack.\n If needle is found return True, if not return False.\n Required arguments:\n * haystack - Text to search in.\n * needle - Text to search for.\n<END>", "<BEGIN>\n## `send`", "Send a raw string with the CR-LF appended to it.\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the umode API. 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 umode API. 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/gets user modes. Required arguments: * nick - Nick to set/get user modes for. Optional arguments: * modes='' - Sets these user modes on a nick.
"Sets/gets user modes.\n Required arguments:\n * nick - Nick to set/get user modes for.\n Optional arguments:\n * modes='' - Sets these user modes on a nick."
112
false
jamieleshaw/lurklib
umode
17,788
LDU_FT/scikit-hep/root_numpy/extract_docstring
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 extract_docstring API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the extract_docstring API. 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 a module-level docstring, if any
"Extract a module-level docstring, if any"
180
false
scikit-hep/root_numpy
extract_docstring
17,789
LDU_FT/carymrobbins/py-tryhaskell/parse
LDU_FT
[ "<BEGIN>\n## `_bad_result`", ":param str|unicode error: Syntax error from TryHaskell.\n :rtype: TryHaskell.Result\n<END>", "<BEGIN>\n## `eval`", ":param str|unicode exp: Haskell expression to evaluate.\n :rtype: str|unicode\n<END>", "<BEGIN>\n## `get`", ":param str|unicode exp: Haskell expre...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
:param dict j: JSON response from TryHaskell. :rtype: TryHaskell.Result
":param dict j: JSON response from TryHaskell.\n :rtype: TryHaskell.Result"
14
false
carymrobbins/py-tryhaskell
parse
17,790
LDU_FT/raiden-network/raiden/close
LDU_FT
[ "<BEGIN>\n## `events_for_onchain_secretreveal`", "Emits the event for revealing the secret on-chain if the transfer\n can not be settled off-chain.\n<END>", "<BEGIN>\n## `handle_inittarget`", "Handles an ActionInitTarget state change.\n<END>", "<BEGIN>\n## `handle_offchain_secretreveal`", "Validates an...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the close API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the close API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
Closes the channel using the provided balance proof.
"Closes the channel using the provided balance proof."
1,120
true
raiden-network/raiden
close
17,791
LDU_FT/cnelson/python-fleet/set_desired_state
LDU_FT
[ "<BEGIN>\n## `_set_options_from_file`", "Parses a unit file and updates self._data['options']", " Args:\n file_handle (file): a file-like object (supporting read()) containing a unit", " Returns:\n True: The file was successfuly parsed and options were updated", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_desired_state API. 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 set_desired_state API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Update the desired state of a unit. Args: state (str): The desired state for the unit, must be one of ``_STATES`` Returns: str: The updated state Raises: fleet.v1.errors.APIError: Fleet returned a response code >= 400 ValueError: An invalid val...
"Update the desired state of a unit.\n\n Args:\n state (str): The desired state for the unit, must be one of ``_STATES``\n\n Returns:\n str: The updated state\n\n Raises:\n fleet.v1.errors.APIError: Fleet returned a response code >= 400\n ValueError: An ...
89
false
cnelson/python-fleet
set_desired_state
17,792
LDU_FT/inveniosoftware-attic/invenio-utils/make_invenio_opener
LDU_FT
[ "<BEGIN>\n## `get_callable_signature_as_string`", "Return a string representing a callable.", " It is executed as if it would have been declared on the prompt.", " >>> def foo(arg1, arg2, arg3='val1', arg4='val2', *args, **argd):\n ... pass\n >>> get_callable_signature_as_string(foo)\n def ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the make_invenio_opener 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 make_invenio_opener API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
Return an urllib2 opener with the useragent already set in the appropriate way.
"Return an urllib2 opener with the useragent already set in the appropriate\n way."
424
false
inveniosoftware-attic/invenio-utils
make_invenio_opener
17,793
LDU_FT/RaRe-Technologies/gensim-simserver/merge
LDU_FT
[ "<BEGIN>\n## `merge_sims`", "Merge two precomputed similarity lists, truncating the result to `clip` most similar items.\n<END>", "<BEGIN>\n## `terminate`", "Delete all files created by this index, invalidating `self`. Use with care.\n<END>", "<BEGIN>\n## `index_documents`", "Update fresh index with new d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the merge API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the merge API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
Merge documents from the other index. Update precomputed similarities in the process.
"Merge documents from the other index. Update precomputed similarities\n in the process."
74
false
RaRe-Technologies/gensim-simserver
merge
17,794
LDU_FT/pytroll/posttroll/add
LDU_FT
[ "<BEGIN>\n## `restart_listener`", "Restart listener after configuration update.\n<END>", "<BEGIN>\n## `create_subscriber`", "Create a subscriber instance using specified addresses and\n message types.\n<END>", "<BEGIN>\n## `heartbeat`", "Send a heartbeat ... but only if *min_interval* seconds has p...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add API. 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 add API. 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...
Add *address* to the subscribing list for *topics*. It topics is None we will subscibe to already specified topics.
"Add *address* to the subscribing list for *topics*.\n\n It topics is None we will subscibe to already specified topics."
46
false
pytroll/posttroll
add
17,795
LDU_FT/sentinel-hub/eo-learn/_execute_tasks
LDU_FT
[ "<BEGIN>\n## `execute`", "Execute computation of blobs on input eopatch", " :param eopatch: Input eopatch\n :type eopatch: eolearn.core.EOPatch\n :return: EOPatch instance with new key holding the blob image.\n :rtype: eolearn.core.EOPatch\n<END>", "<BEGIN>\n## `_check_classifier`"...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _execute_tasks API. 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 _execute_tasks API. 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...
Executes tasks comprising the workflow in the predetermined order. :param input_args: External input arguments to the workflow. :type input_args: Dict :param out_degs: Dictionary mapping vertices (task IDs) to their out-degrees. (The out-degree equals the number of tasks that depen...
"Executes tasks comprising the workflow in the predetermined order.\r\n\r\n :param input_args: External input arguments to the workflow.\r\n :type input_args: Dict\r\n :param out_degs: Dictionary mapping vertices (task IDs) to their out-degrees. (The out-degree equals the number\r\n of tasks...
453
false
sentinel-hub/eo-learn
_execute_tasks
17,796
LDU_FT/opereto/pyopereto/rerun_process
LDU_FT
[ "<BEGIN>\n## `get_service_version`", "get_service_version(self, service_id, mode='production', version='default')", " | Get a specific version details of a given service. Opereto will try to fetch the requested service version. If not found, it will return the default production version. The \"actual_ver...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the rerun_process API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the rerun_process API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
rerun_process(self, pid, title=None, agent=None) Reruns a process :Parameters: * *pid* (`string`) -- Process id to rerun * *title* (`string`) -- Title for the process * *agent* (`string`) -- a valid value may be one of the following: agent identifier, agent identifiers (list) :...
"rerun_process(self, pid, title=None, agent=None)\n\n Reruns a process\n\n :Parameters:\n * *pid* (`string`) -- Process id to rerun\n * *title* (`string`) -- Title for the process\n * *agent* (`string`) -- a valid value may be one of the following: agent identifier, agent identifiers ...
220
false
opereto/pyopereto
rerun_process
17,797
LDU_FT/lsst-sqre/sqre-codekit/countdown_timer
LDU_FT
[ "<BEGIN>\n## `countdown_timer`", "Show a simple countdown progress bar", " Parameters\n ----------\n seconds\n Period of time the progress bar takes to reach zero.\n<END>", "<BEGIN>\n## `eta_bar`", "Display an adaptive ETA / countdown bar with a message.", " Parameters\n ----------\n...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the countdown_timer API. 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 countdown_timer API. 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...
Show a simple countdown progress bar Parameters ---------- seconds Period of time the progress bar takes to reach zero.
"Show a simple countdown progress bar\n\n Parameters\n ----------\n seconds\n Period of time the progress bar takes to reach zero."
82
false
lsst-sqre/sqre-codekit
countdown_timer
17,798
LDU_FT/acutesoftware/AIKIF/find_ontology
LDU_FT
[ "<BEGIN>\n## `where_am_i`", "high level function that can estimate where user is based \n on predefined setups.\n<END>", "<BEGIN>\n## `dump_all`", "prints all attributes and returns them as a dictionary \n (mainly for testing how it will all integrate)\n<END>", "<BEGIN>\n## `summarise`", "extrap...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_ontology API. 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 find_ontology API. 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...
top level function used for new data processing which attempts to find a level in a heirarchy and return the key and filename usage res = FindOntology('file') # returns 'SYSTEM-PC-FILE'
"top level function used for new data processing which attempts\n to find a level in a heirarchy and return the key and filename\n usage res = FindOntology('file') # returns 'SYSTEM-PC-FILE'"
486
false
acutesoftware/AIKIF
find_ontology
17,799
LDU_FT/jaywink/federation/retrieve_and_parse_content
LDU_FT
[ "<BEGIN>\n## `check_sender_and_entity_handle_match`", "Ensure that sender and entity handles match.", " Basically we've already verified the sender is who they say when receiving the payload. However, the sender might\n be trying to set another author in the payload itself, since Diaspora has the sender i...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the retrieve_and_parse_content API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclus...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the retrieve_and_parse_content API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclus...
Retrieve remote content and return an Entity class instance. This is basically the inverse of receiving an entity. Instead, we fetch it, then call "handle_receive". :param sender_key_fetcher: Function to use to fetch sender public key. If not given, network will be used to fetch the profile and the ke...
"Retrieve remote content and return an Entity class instance.\n\n This is basically the inverse of receiving an entity. Instead, we fetch it, then call \"handle_receive\".\n\n :param sender_key_fetcher: Function to use to fetch sender public key. If not given, network will be used\n to fetch the profile an...
230
false
jaywink/federation
retrieve_and_parse_content
17,800
LDU_FT/KrishnaswamyLab/graphtools/to_pickle
LDU_FT
[ "<BEGIN>\n## `set_params`", "Set parameters on this object", " Safe setter method - attributes should not be modified directly as some\n changes are not valid.\n Valid parameters:\n - n_jobs\n - random_state\n - verbose\n Invalid parameters: (these would require ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the to_pickle API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the to_pickle API. 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...
Save the current Graph to a pickle. Parameters ---------- path : str File path where the pickled object will be stored.
"Save the current Graph to a pickle.\n\n Parameters\n ----------\n path : str\n File path where the pickled object will be stored."
207
false
KrishnaswamyLab/graphtools
to_pickle
17,801
LDU_FT/caseyjlaw/activegit/initrepo
LDU_FT
[ "<BEGIN>\n## `initrepo`", "Initialize an activegit repo. \n Default makes base shared repo that should be cloned for users\n<END>", "<BEGIN>\n## `initializerepo`", "Fill empty directory with products and make first commit\n<END>", "<BEGIN>\n## `isvalid`", "Checks whether contents of repo are consistent...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the initrepo API. 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 initrepo API. 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...
Initialize an activegit repo. Default makes base shared repo that should be cloned for users
"Initialize an activegit repo. \n Default makes base shared repo that should be cloned for users"
14
false
caseyjlaw/activegit
initrepo
17,802
LDU_FT/ahwillia/tensortools/_broadcast_arg
LDU_FT
[ "<BEGIN>\n## `unfold`", "Returns the mode-`mode` unfolding of `tensor`.", " Parameters\n ----------\n tensor : ndarray\n mode : int", " Returns\n -------\n ndarray\n unfolded_tensor of shape ``(tensor.shape[mode], -1)``", " Author\n ------\n Jean Kossaifi <https://github...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _broadcast_arg API. 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 _broadcast_arg API. 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...
Broadcasts plotting option `arg` to all factors. Args: U : KTensor arg : argument provided by the user argtype : expected type for arg name : name of the variable, used for error handling Returns: iterable version of arg of length U.ndim
"Broadcasts plotting option `arg` to all factors.\n\n Args:\n U : KTensor\n arg : argument provided by the user\n argtype : expected type for arg\n name : name of the variable, used for error handling\n\n Returns:\n iterable version of arg of length U.ndim"
158
false
ahwillia/tensortools
_broadcast_arg
17,803
LDU_FT/rene-aguirre/pywinusb/simple_decorator
LDU_FT
[ "<BEGIN>\n## `hid_device_path_exists`", "Test if required device_path is still valid\r\n (HID device connected to host)\n<END>", "<BEGIN>\n## `find_all_hid_devices`", "Finds all HID devices connected to the system\n<END>", "<BEGIN>\n## `show_hids`", "Check all HID devices conected to PC hosts.\n<END>",...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the simple_decorator API. 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 simple_decorator API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
This decorator can be used to turn simple functions into well-behaved decorators, so long as the decorators are fairly simple. If a decorator expects a function and returns a function (no descriptors), and if it doesn't modify function attributes or docstring, then it is eligible to use this. S...
"This decorator can be used to turn simple functions\r\n into well-behaved decorators, so long as the decorators\r\n are fairly simple. If a decorator expects a function and\r\n returns a function (no descriptors), and if it doesn't\r\n modify function attributes or docstring, then it is\r\n eligible to ...
61
false
rene-aguirre/pywinusb
simple_decorator
17,804
LDU_FT/thombashi/pytablewriter/open
LDU_FT
[ "<BEGIN>\n## `write_table`", "|write_table| with\n `Labeled Tab-separated Values (LTSV) <http://ltsv.org/>`__ format.\n Invalid characters in labels/data are removed.", " :raises pytablewriter.EmptyHeaderError: If the |headers| is empty.\n :Example:\n :ref:`example-ltsv-ta...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the open API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the open API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
Open a SQLite database file. :param str file_path: SQLite database file path to open.
"Open a SQLite database file.\n\n :param str file_path: SQLite database file path to open."
97
false
thombashi/pytablewriter
open
17,805
LDU_FT/choldgraf/download/_fetch_file
LDU_FT
[ "<BEGIN>\n## `download`", "Download a URL.", " This will download a file and store it in a '~/data/` folder,\n creating directories if need be. It will also work for zip\n files, in which case it will unzip all of the files to the\n desired location.", " Parameters\n ----------\n url : st...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _fetch_file API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _fetch_file API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
Load requested file, downloading it if needed or requested. Parameters ---------- url: string The url of file to be downloaded. file_name: string Name, along with the path, of where downloaded file will be saved. resume: bool, optional If true, try to resume partially downlo...
"Load requested file, downloading it if needed or requested.\n\n Parameters\n ----------\n url: string\n The url of file to be downloaded.\n file_name: string\n Name, along with the path, of where downloaded file will be saved.\n resume: bool, optional\n If true, try to resume partia...
25
false
choldgraf/download
_fetch_file
17,806
LDU_FT/MIR-MU/ntcir-math-density/get_all_positions
LDU_FT
[ "<BEGIN>\n## `plot_estimates`", "Plots density, and probability estimates.", " Parameters\n ----------\n positions : iterable of float\n Paragraph positions for which densities, and probabilities were estimated.\n estimates : six-tuple of (sequence of float)\n Estimates of P(relevant),...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_all_positions API. 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_all_positions API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Extracts paragraph identifiers, and positions from a dataset in the NTCIR-11 Math-2, and NTCIR-12 MathIR XHTML5 format. Parameters ---------- dataset : Path A path to a dataset. num_workers : int, optional The number of processes that will extract paragraph positions from the datase...
"Extracts paragraph identifiers, and positions from a dataset in the NTCIR-11 Math-2, and\n NTCIR-12 MathIR XHTML5 format.\n\n Parameters\n ----------\n dataset : Path\n A path to a dataset.\n num_workers : int, optional\n The number of processes that will extract paragraph positions from t...
28
false
MIR-MU/ntcir-math-density
get_all_positions
17,807
LDU_FT/ntucllab/libact/predict
LDU_FT
[ "<BEGIN>\n## `report_entry_label`", "Return the best label of the asked entry.", " Parameters\n ----------\n entry_id : int\n The index of the sample to ask.", " Returns\n -------\n label: object\n The best label of the given sample.\n<END>", "...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the predict API. 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 predict API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
Returns ------- proba : ndarray, shape=(n_clusters, ) The probability of given cluster being label 1.
"Returns\n -------\n proba : ndarray, shape=(n_clusters, )\n The probability of given cluster being label 1."
128
false
ntucllab/libact
predict
17,808
LDU_FT/pytorch/text/build_vocab
LDU_FT
[ "<BEGIN>\n## `load_vectors`", "Arguments:\n vectors: one of or a list containing instantiations of the\n GloVe, CharNGram, or Vectors classes. Alternatively, one\n of or a list of available pretrained vectors:\n charngram.100d\n fasttext.en.30...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the build_vocab API. 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 build_vocab API. 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...
Construct the Vocab object for nesting field and combine it with this field's vocab. Arguments: Positional arguments: Dataset objects or other iterable data sources from which to construct the Vocab object that represents the set of possible values for the nesting fi...
"Construct the Vocab object for nesting field and combine it with this field's vocab.\n\n Arguments:\n Positional arguments: Dataset objects or other iterable data\n sources from which to construct the Vocab object that\n represents the set of possible values for the nest...
131
false
pytorch/text
build_vocab
17,809
LDU_FT/croach/django-simple-rest/auth_required
LDU_FT
[ "<BEGIN>\n## `calculate_signature`", "Calculates the signature for the given request data.\n<END>", "<BEGIN>\n## `to_json`", "Serializes a python object as JSON", " This method uses the DJangoJSONEncoder to to ensure that python objects\n such as Decimal objects are properly serialized. It can also se...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the auth_required API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the auth_required API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
Requires that the user be authenticated either by a signature or by being actively logged in.
"Requires that the user be authenticated either by a signature or by\n being actively logged in."
24
false
croach/django-simple-rest
auth_required
17,810
LDU_FT/JelleAalbers/multihist/bin_centers
LDU_FT
[ "<BEGIN>\n## `from_histogram`", "Make a Hist1D from a numpy bin_edges + histogram pair\n :param histogram: Initial histogram\n :param bin_edges: Bin edges of histogram. Must be one longer than length of histogram\n :param axis_names: Ignored. Sorry :-)\n :return:\n<END>", "<BEGIN>\n#...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the bin_centers API. 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 bin_centers API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
Return bin centers along an axis, or if axis=None, list of bin_centers along each axis
"Return bin centers along an axis, or if axis=None, list of bin_centers along each axis"
57
false
JelleAalbers/multihist
bin_centers
17,811
LDU_FT/acutesoftware/AIKIF/populate_from_staging
LDU_FT
[ "<BEGIN>\n## `where_am_i`", "high level function that can estimate where user is based \n on predefined setups.\n<END>", "<BEGIN>\n## `dump_all`", "prints all attributes and returns them as a dictionary \n (mainly for testing how it will all integrate)\n<END>", "<BEGIN>\n## `summarise`", "extrap...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the populate_from_staging 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 populate_from_staging 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 SQL to insert staging table records into the core table based on column_list (If no column list then insert sequentially)
"generate SQL to insert staging table records into\n the core table based on column_list (If no column list\n then insert sequentially)"
486
false
acutesoftware/AIKIF
populate_from_staging
17,812
LDU_FT/EnergieID/smappy/actuator_on
LDU_FT
[ "<BEGIN>\n## `authenticated`", "Decorator to check if Smappee's access token has expired.\n If it has, use the refresh token to request a new access token\n<END>", "<BEGIN>\n## `urljoin`", "Join terms together with forward slashes", " Parameters\n ----------\n parts", " Returns\n -------...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the actuator_on API. 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 actuator_on API. 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...
Turn actuator on Parameters ---------- service_location_id : int actuator_id : int duration : int, optional 300,900,1800 or 3600 , specifying the time in seconds the actuator should be turned on. Any other value results in turning on for an un...
"Turn actuator on\n\n Parameters\n ----------\n service_location_id : int\n actuator_id : int\n duration : int, optional\n 300,900,1800 or 3600 , specifying the time in seconds the actuator\n should be turned on. Any other value results in turning on for an\n ...
87
false
EnergieID/smappy
actuator_on
17,813
LDU_FT/foutaise/texttable/add_rows
LDU_FT
[ "<BEGIN>\n## `obj2unicode`", "Return a unicode representation of a python object\n<END>", "<BEGIN>\n## `len`", "Redefining len here so it will be able to work with non-ASCII characters\n<END>", "<BEGIN>\n## `set_chars`", "Set the characters used to draw lines between rows and columns", " - the ar...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_rows API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_rows API. 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...
Add several rows in the rows stack - The 'rows' argument can be either an iterator returning arrays, or a by-dimensional array - 'header' specifies if the first row should be used as the header of the table
"Add several rows in the rows stack\n\n - The 'rows' argument can be either an iterator returning arrays,\n or a by-dimensional array\n - 'header' specifies if the first row should be used as the header\n of the table"
65
false
foutaise/texttable
add_rows
17,814
LDU_FT/sosy-lab/benchexec/expand_filename_pattern
LDU_FT
[ "<BEGIN>\n## `_program_files_from_executable`", "Get a list of program files by expanding a list of path patterns\n and interpreting it as relative to the executable.\n This method can be used as helper for implementing the method program_files().\n Contrary to the default implementation of p...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the expand_filename_pattern 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 expand_filename_pattern API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion...
The function expand_filename_pattern expands a filename pattern to a sorted list of filenames. The pattern can contain variables and wildcards. If base_dir is given and pattern is not absolute, base_dir and pattern are joined.
"The function expand_filename_pattern expands a filename pattern to a sorted list\n of filenames. The pattern can contain variables and wildcards.\n If base_dir is given and pattern is not absolute, base_dir and pattern are joined."
406
false
sosy-lab/benchexec
expand_filename_pattern
17,815
LDU_FT/SylvanasSun/python-common-cache/set_capacity
LDU_FT
[ "<BEGIN>\n## `_enable_lock`", "The decorator for ensuring thread-safe when current cache instance is concurrent status.\n<END>", "<BEGIN>\n## `_enable_cleanup`", "Execute cleanup operation when the decorated function completed.\n<END>", "<BEGIN>\n## `_enable_thread_pool`", "Use thread pool for executing a...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_capacity API. 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 set_capacity API. 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...
>>> cache = Cache(log_level=logging.WARNING) >>> cache.set_capacity(100) >>> cache.capacity 100 >>> cache.set_capacity('haha') >>> cache.capacity 100
">>> cache = Cache(log_level=logging.WARNING)\n >>> cache.set_capacity(100)\n >>> cache.capacity\n 100\n >>> cache.set_capacity('haha')\n >>> cache.capacity\n 100"
71
false
SylvanasSun/python-common-cache
set_capacity
17,816
LDU_FT/pivotal-energy-solutions/django-datatable-view/_get_datatable_options
LDU_FT
[ "<BEGIN>\n## `resolve_orm_path`", "Follows the queryset-style query path of ``orm_path`` starting from ``model`` class. If the\n path ends up referring to a bad field name, ``django.db.models.fields.FieldDoesNotExist`` will\n be raised.\n<END>", "<BEGIN>\n## `get_model_at_related_field`", "Looks up ``a...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_datatable_options API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_datatable_options API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
Helps to keep the promise that we only run ``get_datatable_options()`` once.
"Helps to keep the promise that we only run ``get_datatable_options()`` once."
128
false
pivotal-energy-solutions/django-datatable-view
_get_datatable_options
17,817
LDU_FT/quodlibet/mutagen/getenv
LDU_FT
[ "<BEGIN>\n## `_parse_sv8_int`", "Reads (max limit) bytes from fileobj until the MSB is zero.\n All 7 LSB will be merged to a big endian uint.", " Raises ValueError in case not MSB is zero, or EOFError in\n case the file ended before limit is reached.", " Returns (parsed number, number of bytes rea...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the getenv API. 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 getenv API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Like `os.getenv` but returns unicode under Windows + Python 2 Args: key (pathlike): The env var to get value (object): The value to return if the env var does not exist Returns: `fsnative` or `object`: The env var or the passed value if it doesn't exist
"Like `os.getenv` but returns unicode under Windows + Python 2\n\n Args:\n key (pathlike): The env var to get\n value (object): The value to return if the env var does not exist\n Returns:\n `fsnative` or `object`:\n The env var or the passed value if it doesn't exist"
518
false
quodlibet/mutagen
getenv
17,818
LDU_FT/SpockBotMC/SpockBot/drop_slot
LDU_FT
[ "<BEGIN>\n## `clean_var`", "Turn text into a valid python classname or variable\n<END>", "<BEGIN>\n## `full_tasktrace`", "List of all failed tasks caused by this and all previous errors.", " Returns:\n List[Task]\n<END>", "<BEGIN>\n## `yaw_pitch`", "Calculate the yaw and pitch of this ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the drop_slot API. 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 drop_slot API. 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...
Drop one or all items of the slot. Does not wait for confirmation from the server. If you want that, use a ``Task`` and ``yield inventory.async.drop_slot()`` instead. If ``slot`` is None, drops the ``cursor_slot`` or, if that's empty, the currently held item (``active_slot``). ...
"Drop one or all items of the slot.\n\n Does not wait for confirmation from the server. If you want that,\n use a ``Task`` and ``yield inventory.async.drop_slot()`` instead.\n\n If ``slot`` is None, drops the ``cursor_slot`` or, if that's empty,\n the currently held item (``active_slot``).\n...
62
false
SpockBotMC/SpockBot
drop_slot
17,819
LDU_FT/jneight/django-xadmin-extras/get_context
LDU_FT
[ "<BEGIN>\n## `get_form`", "Instanciate the form for the current step", " FormAdminView from xadmin expects form to be at self.form_obj\n<END>", "<BEGIN>\n## `render`", "Returns the ``HttpResponse`` with the context data\n<END>", "<BEGIN>\n## `render_to_response`", "Add django-crispy form helper a...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_context API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_context API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
Use this method to built context data for the template Mix django wizard context data with django-xadmin context
"Use this method to built context data for the template\n\n Mix django wizard context data with django-xadmin context"
14
false
jneight/django-xadmin-extras
get_context
17,820
LDU_FT/proteanhq/protean/send_mass_mail
LDU_FT
[ "<BEGIN>\n## `from_dict`", "Initialize a ListRequestObject object from a dictionary.\n<END>", "<BEGIN>\n## `_cast_to_type`", "Convert the value to its string representation\n<END>", "<BEGIN>\n## `_cast_to_type`", "Convert the value to an int and raise error on failures\n<END>", "<BEGIN>\n## `_cast_to_ty...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the send_mass_mail API. 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 send_mass_mail API. 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...
Given a data_tuple of (subject, message, from_email, recipient_list), send each message to each recipient list. Return the number of emails sent. If from_email is None, use the DEFAULT_FROM_EMAIL setting.
"Given a data_tuple of (subject, message, from_email, recipient_list), send\n each message to each recipient list. Return the number of emails sent.\n If from_email is None, use the DEFAULT_FROM_EMAIL setting."
214
false
proteanhq/protean
send_mass_mail
17,821
LDU_FT/williamjameshandley/fgivenx/parallel_apply
LDU_FT
[ "<BEGIN>\n## `plot`", "r\"\"\"\n Plot iso-probability mass function, converted to sigmas.", " Parameters\n ----------\n x, y, z : numpy arrays\n Same as arguments to :func:`matplotlib.pyplot.contour`", " ax: axes object, optional\n :class:`matplotlib.axes._subplots.AxesSubplot` to...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parallel_apply API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parallel_apply API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
Apply a function to an array with openmp parallelisation. Equivalent to `[f(x) for x in array]`, but parallelised if required. Parameters ---------- f: function Univariate function to apply to each element of array array: array-like Array to apply f to parallel: int or bool, ...
"Apply a function to an array with openmp parallelisation.\n\n Equivalent to `[f(x) for x in array]`, but parallelised if required.\n\n Parameters\n ----------\n f: function\n Univariate function to apply to each element of array\n\n array: array-like\n Array to apply f to\n\n parallel: ...
191
false
williamjameshandley/fgivenx
parallel_apply
17,822
LDU_FT/marcolagi/quantulum/disambiguate_unit
LDU_FT
[ "<BEGIN>\n## `get_numwords`", "Convert number words to integers in a given text.\n<END>", "<BEGIN>\n## `get_dimension_permutations`", "Get all possible dimensional definitions for an entity.\n<END>", "<BEGIN>\n## `download_wiki`", "Download WikiPedia pages of ambiguous units.\n<END>", "<BEGIN>\n## `disa...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the disambiguate_unit API. 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 disambiguate_unit API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Resolve ambiguity. Distinguish between units that have same names, symbols or abbreviations.
"Resolve ambiguity.\n\n Distinguish between units that have same names, symbols or abbreviations."
30
false
marcolagi/quantulum
disambiguate_unit
17,823
LDU_FT/fhcrc/nestly/add
LDU_FT
[ "<BEGIN>\n## `_delim_accum`", "Accumulator for delimited files", " Combines each file with values from JSON dictionary in same directory", " :param iterable control_files: Iterable of control files\n :param filename_template: A template for the file to nest_map\n :param keys: List of keys to selec...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add API. 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 add API. 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...
Adds a level to the nesting and creates a checkpoint that can be reverted to later for aggregation by calling :meth:`SConsWrap.pop`. :param name: Identifier for the nest level :param nestable: A nestable object - see :meth:`Nest.add() <nestly.core.Nest.add>`. :param kw: Addi...
"Adds a level to the nesting and creates a checkpoint that can be\n reverted to later for aggregation by calling :meth:`SConsWrap.pop`.\n\n :param name: Identifier for the nest level\n :param nestable: A nestable object - see\n :meth:`Nest.add() <nestly.core.Nest.add>`.\n :param k...
73
false
fhcrc/nestly
add
17,824
LDU_FT/vinci1it2000/schedula/get_unused_node_id
LDU_FT
[ "<BEGIN>\n## `register`", "Creates a :class:`Blueprint.cls` and calls each deferred operation.", " :param obj:\n The initialized object with which to call all deferred operations.\n :type obj: object", " :param memo:\n A dictionary to cache registered Blueprints.\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_unused_node_id API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_unused_node_id API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
Finds an unused node id in `graph`. :param graph: A directed graph. :type graph: networkx.classes.digraph.DiGraph :param initial_guess: Initial node id guess. :type initial_guess: str, optional :param _format: Format to generate the new node id if the given is already used...
"Finds an unused node id in `graph`.\n\n :param graph:\n A directed graph.\n :type graph: networkx.classes.digraph.DiGraph\n\n :param initial_guess:\n Initial node id guess.\n :type initial_guess: str, optional\n\n :param _format:\n Format to generate the new node id if the given is ...
765
false
vinci1it2000/schedula
get_unused_node_id
17,825
LDU_FT/joke2k/django-faker/do_or_fake_filter
LDU_FT
[ "<BEGIN>\n## `optional_assignment_tag`", "https://groups.google.com/forum/?fromgroups=#!topic/django-developers/E0XWFrkRMGc\n new template tags type\n<END>", "<BEGIN>\n## `do_fake`", "call a faker format\n uses:", " {% fake \"formatterName\" *args **kwargs as myvar %}\n {{ my...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the do_or_fake_filter API. 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 do_or_fake_filter API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
call a faker if value is None uses: {{ myint|or_fake:'randomInt' }}
"call a faker if value is None\n uses:\n\n {{ myint|or_fake:'randomInt' }}"
20
false
joke2k/django-faker
do_or_fake_filter
17,826
LDU_FT/robertmartin8/PyPortfolioOpt/max_sharpe
LDU_FT
[ "<BEGIN>\n## `negative_sharpe`", "Calculate the negative Sharpe ratio of a portfolio", " :param weights: asset weights of the portfolio\n :type weights: np.ndarray\n :param expected_returns: expected return of each asset\n :type expected_returns: pd.Series\n :param cov_matrix: the covariance matr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the max_sharpe API. 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 max_sharpe API. 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...
Maximise the Sharpe Ratio. The result is also referred to as the tangency portfolio, as it is the tangent to the efficient frontier curve that intercepts the risk-free rate. :param risk_free_rate: risk-free rate of borrowing/lending, defaults to 0.02 :type risk_free_rate: float, optiona...
"Maximise the Sharpe Ratio. The result is also referred to as the tangency portfolio,\n as it is the tangent to the efficient frontier curve that intercepts the risk-free\n rate.\n\n :param risk_free_rate: risk-free rate of borrowing/lending, defaults to 0.02\n :type risk_free_rate: float, o...
90
false
robertmartin8/PyPortfolioOpt
max_sharpe
17,827
LDU_FT/NYUCCL/psiTurk/get_my_ip
LDU_FT
[ "<BEGIN>\n## `check_auth`", "This function is called to check if a username password combination\n is valid.\n<END>", "<BEGIN>\n## `requires_auth`", "Decorator to prompt for user name and password. Useful for data dumps,\n etc. That you don't want to be public.\n<END>", "<BEGIN>\n## `get_...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_my_ip API. 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_my_ip API. 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...
Asks and external server what your ip appears to be (useful is running from behind a NAT/wifi router). Of course, incoming port to the router must be forwarded correctly.
"Asks and external server what your ip appears to be (useful is\r\n running from behind a NAT/wifi router). Of course, incoming port\r\n to the router must be forwarded correctly."
65
false
NYUCCL/psiTurk
get_my_ip
17,828
LDU_FT/ttm/socialLegacy/makeNetwork
LDU_FT
[ "<BEGIN>\n## `searchTag`", "Set Twitter search or stream criteria for the selection of tweets\n<END>", "<BEGIN>\n## `makeRetweetNetwork`", "Receives tweets, returns directed retweet networks.", " Without and with isolated nodes.\n<END>", "<BEGIN>\n## `makeNetwork`", "Makes graph object from .gdf load...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the makeNetwork API. 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 makeNetwork API. 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...
Makes graph object from .gdf loaded data
"Makes graph object from .gdf loaded data"
45
false
ttm/socialLegacy
makeNetwork
17,829
LDU_FT/twisted/txacme/request_challenges
LDU_FT
[ "<BEGIN>\n## `_parse_header_links`", "Parse the links from a Link: header field.", " .. todo:: Links with the same relation collide at the moment.", " :param bytes value: The header value.", " :rtype: `dict`\n :return: A dictionary of parsed links, keyed by ``rel`` or ``url``.\n<END>", "<BEGI...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the request_challenges 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 request_challenges 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...
Create a new authorization. :param ~acme.messages.Identifier identifier: The identifier to authorize. :return: The new authorization resource. :rtype: Deferred[`~acme.messages.AuthorizationResource`]
"Create a new authorization.\n\n :param ~acme.messages.Identifier identifier: The identifier to\n authorize.\n\n :return: The new authorization resource.\n :rtype: Deferred[`~acme.messages.AuthorizationResource`]"
150
false
twisted/txacme
request_challenges
17,830
LDU_FT/kata198/AdvancedHTMLParser/getElementsByTagName
LDU_FT
[ "<BEGIN>\n## `getRootNodes`", "getRootNodes - Gets all objects at the \"root\" (first level; no parent). Use this if you may have multiple roots (not children of <html>)\n Use this method to get objects, for example, in an AJAX request where <html> may not be your root.", " Note: I...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the getElementsByTagName 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 getElementsByTagName API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
getElementsByTagName - Searches and returns all elements with a specific tag name. @param tagName <lowercase str> - A lowercase string of the tag name. @param root <AdvancedTag/'root'> - Search starting at a specific node, if provided. if string 'root', the root of the p...
"getElementsByTagName - Searches and returns all elements with a specific tag name.\n \n @param tagName <lowercase str> - A lowercase string of the tag name. \n @param root <AdvancedTag/'root'> - Search starting at a specific node, if provided. if string 'root', the root of t...
541
false
kata198/AdvancedHTMLParser
getElementsByTagName
17,831
LDU_FT/line/line-bot-sdk-python/get_or_new_from_json_dict_with_types
LDU_FT
[ "<BEGIN>\n## `get`", "GET request.", " :param str url: Request url\n :param dict headers: (optional) Request headers\n :param dict params: (optional) Request query parameter\n :param bool stream: (optional) get content as stream\n :param timeout: (optional), How long to wait f...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_or_new_from_json_dict_with_types API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates i...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_or_new_from_json_dict_with_types API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates i...
Get `cls` object w/ deserialization from json by using type key hint if needed. If data is instance of one of cls, return data. Else if data is instance of dict, create instance from dict. Else, return None. :param data: :param cls_map: :param type_key: :rtype: ...
"Get `cls` object w/ deserialization from json by using type key hint if needed.\n\n If data is instance of one of cls, return data.\n Else if data is instance of dict, create instance from dict.\n Else, return None.\n\n :param data:\n :param cls_map:\n :param type_key:\n ...
135
false
line/line-bot-sdk-python
get_or_new_from_json_dict_with_types
17,832
LDU_FT/lambdamusic/Ontospy/_printClassRange
LDU_FT
[ "<BEGIN>\n## `main_cli`", "Ontospy allows to extract and visualise ontology information included in RDF data. Use one of the commands listed below to find out more, or visit http://lambdamusic.github.io/ontospy\n<END>", "<BEGIN>\n## `scan`", "SCAN: get ontology data from RDF source and print out a report.\n<E...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _printClassRange API. 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 _printClassRange API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
print(more informative stats about the object) 2016-06-14: added inferred option
"print(more informative stats about the object)\n 2016-06-14: added inferred option"
360
false
lambdamusic/Ontospy
_printClassRange
17,833
LDU_FT/christian-oudard/htmltreediff/multi_split
LDU_FT
[ "<BEGIN>\n## `diff`", "Show the differences between the old and new html document, as html.", " Return the document html with extra tags added to show changes. Add <ins>\n tags around newly added sections, and <del> tags to show sections that have\n been deleted.\n<END>", "<BEGIN>\n## `adjusted_ops`"...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the multi_split API. 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 multi_split API. 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...
Split the text by the given regexes, in priority order. Make sure that the regex is parenthesized so that matches are returned in re.split(). Splitting on a single regex works like normal split. >>> '|'.join(multi_split('one two three', [r'\w+'])) 'one| |two| |three' Splitting on digits first...
"Split the text by the given regexes, in priority order.\n\n Make sure that the regex is parenthesized so that matches are returned in\n re.split().\n\n Splitting on a single regex works like normal split.\n >>> '|'.join(multi_split('one two three', [r'\\w+']))\n 'one| |two| |three'\n\n Splitting on d...
69
false
christian-oudard/htmltreediff
multi_split
17,834
LDU_FT/maceoutliner/django-fiction-outlines/move
LDU_FT
[ "<BEGIN>\n## `mk_dropdown_tree`", "Override of ``treebeard`` method to enforce the same root.\n<END>", "<BEGIN>\n## `length_estimate`", "Calculates and estimated word count based on number of characters, locations,\n and arcs. For reference see:\n http://www.writingexcuses.com/2017/07/02/12-27-c...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the move API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the move API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
An override of the treebeard api in order to send a signal in advance.
"An override of the treebeard api in order to send a signal in advance."
61
false
maceoutliner/django-fiction-outlines
move
17,835
LDU_FT/escalant3/pyblueprints/addVertex
LDU_FT
[ "<BEGIN>\n## `addVertex`", "Add param declared for compability with the API. Neo4j\n creates the id automatically\n @params _id: Node unique identifier", " @returns The created Vertex or None\n<END>", "<BEGIN>\n## `getVertex`", "Retrieves an existing vertex from the graph\n @para...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the addVertex API. 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 addVertex API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
Add param declared for compability with the API. Neo4j creates the id automatically @params _id: Node unique identifier @returns The created Vertex or None
"Add param declared for compability with the API. Neo4j\n creates the id automatically\n @params _id: Node unique identifier\n\n @returns The created Vertex or None"
36
false
escalant3/pyblueprints
addVertex
17,836
LDU_FT/grangier/python-goose/is_highlink_density
LDU_FT
[ "<BEGIN>\n## `check_large_images`", "\\\n although slow the best way to determine the best image is to download\n them and check the actual dimensions of the image when on disk\n so we'll go through a phased approach...\n 1. get a list of ALL images from the parent node\n 2. fil...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_highlink_density 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 is_highlink_density 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...
\ checks the density of links within a node, is there not much text and most of it contains linky shit? if so it's no good
"\\\n checks the density of links within a node,\n is there not much text and most of it contains linky shit?\n if so it's no good"
51
false
grangier/python-goose
is_highlink_density
17,837
LDU_FT/jrief/djangocms-cascade/get_form
LDU_FT
[ "<BEGIN>\n## `_enrich_link`", "Enrich the dict glossary['link'] with an identifier onto the model\n<END>", "<BEGIN>\n## `get_form`", "Extend the form for the given plugin with the form SharableCascadeForm\n<END>", "<BEGIN>\n## `get_picture_elements`", "Create a context, used to render a <picture> together...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_form API. 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 get_form API. 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...
Extend the form for the given plugin with the form SharableCascadeForm
"Extend the form for the given plugin with the form SharableCascadeForm"
78
false
jrief/djangocms-cascade
get_form
17,838
LDU_FT/vmonaco/pohmm/full2ph
LDU_FT
[ "<BEGIN>\n## `fit`", "Fit the classifier with labels y and observations X\n<END>", "<BEGIN>\n## `fit_df`", "Fit the classifier with labels y and DataFrames dfs\n<END>", "<BEGIN>\n## `score`", "Compute the log probability under the model.\n<END>", "<BEGIN>\n## `score_events`", "Compute the log probabil...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the full2ph API. 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 full2ph API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
Convert a full transmat to the respective p-state and h-state transmats
"Convert a full transmat to the respective p-state and h-state transmats"
33
false
vmonaco/pohmm
full2ph
17,839
LDU_FT/Miserlou/Zappa/boto_client
LDU_FT
[ "<BEGIN>\n## `route_sns_task`", "Gets SNS Message, deserialises the message,\n imports the function, calls the function with args\n<END>", "<BEGIN>\n## `run_message`", "Runs a function defined by a message object with keys:\n 'task_path', 'args', and 'kwargs' used by lambda routing\n and a 'command' ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the boto_client API. 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 boto_client API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
A wrapper to apply configuration options to boto clients
"A wrapper to apply configuration options to boto clients"
312
false
Miserlou/Zappa
boto_client
17,840
LDU_FT/viewflow/django-fsm/get_available_FIELD_transitions
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 get_available_FIELD_transitions API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its co...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_available_FIELD_transitions API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its co...
List of transitions available in current model state with all conditions met
"List of transitions available in current model state\n with all conditions met"
16
false
viewflow/django-fsm
get_available_FIELD_transitions
17,841
LDU_FT/openstax/cnx-epub/_make_resource_from_inline
LDU_FT
[ "<BEGIN>\n## `squash_xml_to_text`", "Squash the given XML element (as `elm`) to a text containing XML.\n The outer most element/tag will be removed, but inner elements will\n remain. If `remove_namespaces` is specified, XML namespace declarations\n will be removed from the text.", " :param elm: XML ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _make_resource_from_inline API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclus...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _make_resource_from_inline API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclus...
Makes an ``models.Resource`` from a ``models.Reference`` of type INLINE. That is, a data: uri
"Makes an ``models.Resource`` from a ``models.Reference``\n of type INLINE. That is, a data: uri"
67
false
openstax/cnx-epub
_make_resource_from_inline
17,842
LDU_FT/victorlei/smop/p_expr2
LDU_FT
[ "<BEGIN>\n## `callgraph`", "Build callgraph of func_list, ignoring\n built-in functions\n<END>", "<BEGIN>\n## `recordtype`", "Returns a new class with named fields.", " @keyword field_defaults: A mapping from (a subset of) field names to default \n values.\n @keyword default: If provided, th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the p_expr2 API. 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 p_expr2 API. 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...
expr2 : expr AND expr | expr ANDAND expr | expr BACKSLASH expr | expr COLON expr | expr DIV expr | expr DOT expr | expr DOTDIV expr | expr DOTDIVEQ expr | expr DOTEXP expr | expr DOTMUL expr ...
"expr2 : expr AND expr\n | expr ANDAND expr\n | expr BACKSLASH expr\n | expr COLON expr\n | expr DIV expr\n | expr DOT expr\n | expr DOTDIV expr\n | expr DOTDIVEQ expr\n | expr DOTEXP expr\n | expr DOTMUL expr\n ...
69
false
victorlei/smop
p_expr2
17,843
LDU_FT/edeposit/edeposit.amqp.storage/search_objects
LDU_FT
[ "<BEGIN>\n## `render_trees`", "Render list of `trees` to HTML.", " Args:\n trees (list): List of :class:`.Tree`.\n path_composer (fn reference): Function used to compose paths from UUID.\n Look at :func:`.compose_tree_path` from :mod:`.web_tools`.", " Returns:\n str: HTML...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the search_objects API. 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 search_objects API. 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 list of objects which match all properties that are set (``not None``) using AND operator to all of them. Example: result = storage_handler.search_objects( DBPublication(isbn="azgabash") ) Args: query (obj): Object implementing proper ...
"Return list of objects which match all properties that are set\n (``not None``) using AND operator to all of them.\n\n Example:\n result = storage_handler.search_objects(\n DBPublication(isbn=\"azgabash\")\n )\n\n Args:\n query (obj): Object implemen...
140
false
edeposit/edeposit.amqp.storage
search_objects
17,844
LDU_FT/dixudx/rtcclient/getTemplate
LDU_FT
[ "<BEGIN>\n## `getRoles`", "Get all :class:`rtcclient.models.Role` objects in this project\n area", " If no :class:`Roles` are retrieved, `None` is returned.", " :return: a :class:`list` that contains all\n :class:`rtcclient.models.Role` objects\n :rtype: list\n<END>", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the getTemplate API. 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 getTemplate API. 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 template from some to-be-copied :class:`rtcclient.workitem.Workitem` The resulting XML document is returned as a :class:`string`, but if `template_name` (a string value) is specified, it is written there instead. :param copied_from: the to-be-copied :class:`rtcc...
"Get template from some to-be-copied\n :class:`rtcclient.workitem.Workitem`\n\n The resulting XML document is returned as a :class:`string`, but if\n `template_name` (a string value) is specified,\n it is written there instead.\n\n :param copied_from: the to-be-copied\n :cl...
285
false
dixudx/rtcclient
getTemplate
17,845
LDU_FT/Metatab/metatab/split_term
LDU_FT
[ "<BEGIN>\n## `split_term`", "Split a term in to parent and record term components\n :param term: combined term text\n :return: Tuple of parent and record term\n<END>", "<BEGIN>\n## `split_term_lower`", "Like split_term, but also lowercases both parent and record term\n :param term: combin...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the split_term API. 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 split_term API. 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...
Split a term in to parent and record term components :param term: combined term text :return: Tuple of parent and record term
"Split a term in to parent and record term components\n :param term: combined term text\n :return: Tuple of parent and record term"
102
false
Metatab/metatab
split_term
17,846
LDU_FT/HttpRunner/HttpRunner/lower_dict_keys
LDU_FT
[ "<BEGIN>\n## `setup_logger`", "setup root logger with ColoredFormatter.\n<END>", "<BEGIN>\n## `_handle_skip_feature`", "handle skip feature for test\n - skip: skip current test unconditionally\n - skipIf: skip current test if condition is true\n - skipUnless: skip current test...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the lower_dict_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 e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the lower_dict_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 e...
convert keys in dict to lower case Args: origin_dict (dict): mapping data structure Returns: dict: mapping with all keys lowered. Examples: >>> origin_dict = { "Name": "", "Request": "", "URL": "", "METHOD": "", "Headers"...
"convert keys in dict to lower case\n\n Args:\n origin_dict (dict): mapping data structure\n\n Returns:\n dict: mapping with all keys lowered.\n\n Examples:\n >>> origin_dict = {\n \"Name\": \"\",\n \"Request\": \"\",\n \"URL\": \"\",\n \"METHOD\...
267
false
HttpRunner/HttpRunner
lower_dict_keys
17,847
LDU_FT/Robin8Put/pmes/get_deals
LDU_FT
[ "<BEGIN>\n## `create_table`", "RPC method for creating table with custom name and fields\n :return event id\n<END>", "<BEGIN>\n## `insert`", "RPC method for inserting data to the table\n :return: None\n<END>", "<BEGIN>\n## `select`", "RPC method for selecting data from the database\n :return sele...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_deals API. 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_deals API. 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...
Receives all users deals Accepts: - buyer public key
"Receives all users deals\n\t\tAccepts:\n\t\t- buyer public key"
170
false
Robin8Put/pmes
get_deals
17,848
LDU_FT/newville/wxmplot/__GetMark
LDU_FT
[ "<BEGIN>\n## `display`", "generic display, using imshow (default) or contour\n<END>", "<BEGIN>\n## `update_image`", "update image on panel, as quickly as possible\n<END>", "<BEGIN>\n## `add_highlight_area`", "add a highlighted area -- outline an arbitrarily shape --\n as if drawn from a Lasso event...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the __GetMark API. 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 __GetMark API. 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...
keep track of cursor position within text
"keep track of cursor position within text"
169
false
newville/wxmplot
__GetMark
17,849
LDU_FT/ngmarchant/oasis/reset
LDU_FT
[ "<BEGIN>\n## `update`", "Update the posterior and estimates after a label is sampled", " Parameters\n ----------\n ell : int\n sampled label: 0 or 1", " k : int\n index of stratum where label was sampled\n<END>", "<BEGIN>\n## `_sample_item`", "Sample an it...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the reset API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the reset API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
Resets the sampler to its initial state Note ---- This will destroy the label cache, instrumental distribution and history of estimates.
"Resets the sampler to its initial state\n\n Note\n ----\n This will destroy the label cache, instrumental distribution and\n history of estimates."
115
false
ngmarchant/oasis
reset
17,850
LDU_FT/Dallinger/Dallinger/scale_down_dynos
LDU_FT
[ "<BEGIN>\n## `setup`", "Setup the networks.", " Setup only does stuff if there are no networks, this is so it only\n runs once at the start of the experiment. It first calls the same\n function in the super (see experiments.py in dallinger). Then it adds a\n source to each network.\n...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the scale_down_dynos API. 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 scale_down_dynos API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Turn off web and worker dynos, plus clock process if there is one and it's active.
"Turn off web and worker dynos, plus clock process if\n there is one and it's active."
425
false
Dallinger/Dallinger
scale_down_dynos
17,851
LDU_FT/merll/docker-map/_prepare_container
LDU_FT
[ "<BEGIN>\n## `get_state_actions`", "For attached volumes, missing containers are created and initial containers are started and prepared with\n permissions. Outdated containers or containers with errors are recreated. The latter also applies to instance\n containers. Similarly, instance containers a...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _prepare_container 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 _prepare_container 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...
Runs a temporary container for preparing an attached volume for a container configuration. :param client: Docker client. :type client: docker.Client :param action: Action configuration. :type action: dockermap.map.runner.ActionConfig :param volume_container: Name of the containe...
"Runs a temporary container for preparing an attached volume for a container configuration.\n\n :param client: Docker client.\n :type client: docker.Client\n :param action: Action configuration.\n :type action: dockermap.map.runner.ActionConfig\n :param volume_container: Name of the c...
584
false
merll/docker-map
_prepare_container
17,852
LDU_FT/Gjum/agarnet/on_message
LDU_FT
[ "<BEGIN>\n## `gcommer_claim`", "Try to get a token for this server address.\n `address` has to be ip:port, e.g. `'1.2.3.4:1234'`\n Returns tuple(address, token)\n<END>", "<BEGIN>\n## `gcommer_donate`", "Donate a token for this server address.\n `address` and `token` should be the return values from f...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the on_message API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the on_message API. 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...
Poll the websocket for a new packet. `Client.listen()` calls this. :param msg (string(byte array)): Optional. Parse the specified message instead of receiving a packet from the socket.
"Poll the websocket for a new packet.\n\n `Client.listen()` calls this.\n\n :param msg (string(byte array)): Optional. Parse the specified message\n instead of receiving a packet from the socket."
57
false
Gjum/agarnet
on_message
17,853
LDU_FT/push-things/wallabag_api/post_entry_tags
LDU_FT
[ "<BEGIN>\n## `query`", "Do a query to the System API", " :param path: url to the API\n :param method: the kind of query to do\n :param params: a dict with all the\n necessary things to query the API\n :return json data\n<END>", "<BEGIN>\n## `handle_json_response`", "get th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the post_entry_tags API. 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 post_entry_tags API. 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...
POST /api/entries/{entry}/tags.{_format} Add one or more tags to an entry :param entry: \w+ an integer The Entry ID :param tags: list of tags (urlencoded) :return result
"POST /api/entries/{entry}/tags.{_format}\n\n Add one or more tags to an entry\n\n :param entry: \\w+ an integer The Entry ID\n :param tags: list of tags (urlencoded)\n :return result"
68
false
push-things/wallabag_api
post_entry_tags
17,854
LDU_FT/crunchyroll/ef-open/service_group
LDU_FT
[ "<BEGIN>\n## `services`", "Args:\n service_group: optional name of service group\n Returns:\n if service_group is omitted or None, flattened dict of all service records in the service registry\n if service_group is present, dict of service records in that group\n<END>", "<BEGIN>\n## `iter_serv...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the service_group API. 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 service_group API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
Args: service_name: the name of the service in the service registry Returns: the name of the group the service is in, or None of the service was not found
"Args:\n service_name: the name of the service in the service registry\n Returns:\n the name of the group the service is in, or None of the service was not found"
231
false
crunchyroll/ef-open
service_group
17,855
LDU_FT/joeferraro/mm/generateHeader
LDU_FT
[ "<BEGIN>\n## `parse_json`", "Parse a JSON file\n First remove comments and then use the json module package\n Comments look like :\n // ...\n or\n /*\n ...\n */\n<END>", "<BEGIN>\n## `get_meta_type_by_dir`", "> quick and dirty fix for users expe...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the generateHeader API. 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 generateHeader API. 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...
Generate a SOAP header as defined in: http://www.salesforce.com/us/developer/docs/api/Content/soap_headers.htm
"Generate a SOAP header as defined in:\n http://www.salesforce.com/us/developer/docs/api/Content/soap_headers.htm"
71
false
joeferraro/mm
generateHeader
17,856
LDU_FT/raymondEhlers/pachyderm/configure
LDU_FT
[ "<BEGIN>\n## `get_histograms_in_list`", "Get histograms from the file and make them available in a dict.", " Lists are recursively explored, with all lists converted to dictionaries, such that the return\n dictionaries which only contains hists and dictionaries of hists (ie there are no ROOT ``TCollection...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the configure API. 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 configure API. 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...
Configure matplotlib according to my (biased) specification. As a high level summary, this is a combination of a number of seaborn settings, along with my own tweaks. By calling this function, the matplotlilb ``rcParams`` will be modified according to these settings. Up to this point, the settings hav...
"Configure matplotlib according to my (biased) specification.\n\n As a high level summary, this is a combination of a number of seaborn settings, along with\n my own tweaks. By calling this function, the matplotlilb ``rcParams`` will be modified according\n to these settings.\n\n Up to this point, the setti...
229
false
raymondEhlers/pachyderm
configure
17,857
LDU_FT/slackapi/python-slackclient/users_lookupByEmail
LDU_FT
[ "<BEGIN>\n## `run_on`", "A decorator to store and link a callback to an event.\n<END>", "<BEGIN>\n## `on`", "Stores and links the callback(s) to the event.", " Args:\n event (str): A string that specifies a Slack or websocket event.\n e.g. 'channel_joined' or 'open'\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the users_lookupByEmail 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 users_lookupByEmail 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...
Find a user with an email address. Args: email (str): An email address belonging to a user in the workspace. e.g. 'spengler@ghostbusters.example.com'
"Find a user with an email address.\n\n Args:\n email (str): An email address belonging to a user in the workspace.\n e.g. 'spengler@ghostbusters.example.com'"
222
false
slackapi/python-slackclient
users_lookupByEmail
17,858
LDU_FT/marshmallow-code/webargs/handle_error
LDU_FT
[ "<BEGIN>\n## `dict2schema`", "Generate a `marshmallow.Schema` class given a dictionary of\n `Fields <marshmallow.fields.Field>`.\n<END>", "<BEGIN>\n## `is_json`", "Indicates if this mimetype is JSON or not. By default a request\n is considered to include JSON data if the mimetype is\n ``application/...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the handle_error API. 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 handle_error API. 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...
Called if an error occurs while parsing args. By default, just logs and raises ``error``.
"Called if an error occurs while parsing args. By default, just logs and\n raises ``error``."
108
false
marshmallow-code/webargs
handle_error
17,859
LDU_FT/tensorflow/mesh/get_operation_device
LDU_FT
[ "<BEGIN>\n## `make_layer_stack`", "Configurable layer stack.", " Args:\n layers: a list of subclasses of TransformerLayer\n num_layers: an integer\n Returns:\n a LayerStack\n<END>", "<BEGIN>\n## `make_bitransformer`", "Gin-configurable bitransformer constructor.", " In your config file you nee...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_operation_device 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_operation_device API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
The device of an operation. Note that only tf operations have device assignments. Args: operation_name: a string, name of an operation in the graph. Returns: a string or None, representing the device name.
"The device of an operation.\n\n Note that only tf operations have device assignments.\n\n Args:\n operation_name: a string, name of an operation in the graph.\n\n Returns:\n a string or None, representing the device name."
958
false
tensorflow/mesh
get_operation_device
17,860
LDU_FT/diffeo/rejester/as_child
LDU_FT
[ "<BEGIN>\n## `dump_queue`", "Debug-log some of the queues.", " ``names`` may include any of \"worker\", \"available\", \"priorities\",\n \"expiration\", \"workers\", or \"reservations_ITEM\" filling in some\n specific item.\n<END>", "<BEGIN>\n## `worker_id`", "A unique identifier for th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the as_child API. 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 as_child API. 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...
Run a single job in a child process. This method never returns; it always calls :func:`sys.exit` with an error code that says what it did.
"Run a single job in a child process.\n\n This method never returns; it always calls :func:`sys.exit`\n with an error code that says what it did."
391
false
diffeo/rejester
as_child
17,861
LDU_FT/ssalentin/plip/get_linkage
LDU_FT
[ "<BEGIN>\n## `process_pdb`", "Analysis of a single PDB file. Can generate textual reports XML, PyMOL session files and images as output.\n<END>", "<BEGIN>\n## `download_structure`", "Given a PDB ID, downloads the corresponding PDB structure.\n Checks for validity of ID and handles error while downloading.\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_linkage API. 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_linkage API. 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 linkage information from a LINK entry PDB line.
"Get the linkage information from a LINK entry PDB line."
176
false
ssalentin/plip
get_linkage
17,862
LDU_FT/noobermin/pys/mk_getkw
LDU_FT
[ "<BEGIN>\n## `conv`", "essentially, the generalization of", " arg if arg else default", " or", " func(arg) if arg else default\n<END>", "<BEGIN>\n## `filelines`", "read lines from a file into lines...optional strip\n<END>", "<BEGIN>\n## `parse_utuple`", "parse a string into a list of a unif...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the mk_getkw API. 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 mk_getkw API. 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...
a helper for generating a function for reading keywords in interface functions with a dictionary with defaults expects the defaults dictionary to have keywords you request. example: defaults = dict(a='a',b=3); def bigfunc(**kw): getkw=mk_getkw(kw,defaults); # I want the callers' `...
"a helper for generating a function for reading keywords in\n interface functions with a dictionary with defaults\n\n expects the defaults dictionary to have keywords you request.\n\n example:\n defaults = dict(a='a',b=3);\n def bigfunc(**kw):\n getkw=mk_getkw(kw,defaults);\n\n # I want the...
37
false
noobermin/pys
mk_getkw
17,863
LDU_FT/openid/JWTConnect-Python-OidcMsg/only_extras
LDU_FT
[ "<BEGIN>\n## `make_openid_request`", "Construct the JWT to be passed by value (the request parameter) or by\n reference (request_uri).\n The request will be signed", " :param arq: The Authorization request\n :param keys: Keys to use for signing/encrypting. A KeyJar instance\n :param issuer: Who i...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the only_extras API. 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 only_extras API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
Return True if this instance only has key,value pairs for keys that are not defined in c_params. :return: True/False
"Return True if this instance only has key,value pairs for keys\n that are not defined in c_params.\n \n :return: True/False"
75
false
openid/JWTConnect-Python-OidcMsg
only_extras
17,864
LDU_FT/behave/behave-django/add_command_arguments
LDU_FT
[ "<BEGIN>\n## `add_command_arguments`", "Additional command line arguments for the behave management command\n<END>", "<BEGIN>\n## `add_behave_arguments`", "Additional command line arguments extracted directly from behave\n<END>", "<BEGIN>\n## `add_arguments`", "Add behave's and our command line arguments ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_command_arguments API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_command_arguments API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Additional command line arguments for the behave management command
"Additional command line arguments for the behave management command"
15
false
behave/behave-django
add_command_arguments
17,865
LDU_FT/BlackEarth/bl/expected_param_keys
LDU_FT
[ "<BEGIN>\n## `random_id`", "Creates a random id with the given length and charset.\r\n ## Parameters\r\n * length the number of characters in the id\r\n * charset what character set to use (a list of characters)\r\n * first_charset what character set for the first character\r\n *...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the expected_param_keys API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the expected_param_keys API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
returns a list of params that this ConfigTemplate expects to receive
"returns a list of params that this ConfigTemplate expects to receive"
54
false
BlackEarth/bl
expected_param_keys
17,866
LDU_FT/guaix-ucm/pyemir/save_ds9
LDU_FT
[ "<BEGIN>\n## `merge2images`", "Merge 2 EMIR images, averaging the common region.", " Parameters\n ----------\n hdu1 : HDUList object\n Input image #1.\n hdu2 : HDUList object\n Input image #2.\n debugplot : int\n Determines whether intermediate computations and/or plots\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the save_ds9 API. 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 save_ds9 API. 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...
Save ds9 region output info filename. Parameters ---------- output : str String containing the full output to be exported as a ds9 region file. filename : str Output file name.
"Save ds9 region output info filename.\n\n Parameters\n ----------\n output : str\n String containing the full output to be exported as a ds9 region\n file.\n filename : str\n Output file name."
282
false
guaix-ucm/pyemir
save_ds9
17,867
LDU_FT/HPCC-Cloud-Computing/CAL/update_object
LDU_FT
[ "<BEGIN>\n## `delete`", "This is bad delete function\n because one vpc can have more than one subnet.\n It is Ok if user only use CAL for manage cloud resource\n We will update ASAP.\n<END>", "<BEGIN>\n## `create_container`", "Create container", " :param container(string): contai...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update_object API. 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 update_object API. 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...
Update object metadata :param container: container name (Container is equivalent to Bucket term in Amazon). :param obj: object name (Object is equivalent to Key term in Amazon). :param metadata(dict): additional metadata to include in the request.
"Update object metadata\n\n :param container: container name (Container is equivalent to\n Bucket term in Amazon).\n :param obj: object name (Object is equivalent to\n Key term in Amazon).\n :param metadata(dict): additional metadata to include in the req...
68
false
HPCC-Cloud-Computing/CAL
update_object
17,868
LDU_FT/MacHu-GWU/pymongo_mate-project/select_distinct_field
LDU_FT
[ "<BEGIN>\n## `read_csv_arg_preprocess`", "Automatically decide if we need to use iterator mode to read a csv file.", " :param abspath: csv file absolute path.\n :param memory_usage: max memory will be used for pandas.read_csv().\n<END>", "<BEGIN>\n## `smart_insert`", "An optimized Insert strategy.", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the select_distinct_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 select_distinct_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. ...
Select distinct value or combination of values of single or multiple fields. :params fields: str or list of str. :return data: list of list. **中文文档** 选择多列中出现过的所有可能的排列组合。
"Select distinct value or combination of values of\n single or multiple fields.\n\n :params fields: str or list of str.\n :return data: list of list.\n\n **中文文档**\n\n 选择多列中出现过的所有可能的排列组合。"
188
false
MacHu-GWU/pymongo_mate-project
select_distinct_field
17,869
LDU_FT/ascribe/pyspool/can_transfer
LDU_FT
[ "<BEGIN>\n## `address_from_path`", "Args:\n path (str): Path for the HD wallet. If path is ``None`` it\n will generate a unique path based on time.", " Returns:\n A ``tuple`` with the path and leaf address.\n<END>", "<BEGIN>\n## `_unique_hierarchical_string`", "Re...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the can_transfer API. 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 can_transfer API. 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...
bool: :const:`True` if :attr:`address` can transfer the edition :attr:`edition_number` of :attr:`piece_address` else :const:`False`.
"bool: :const:`True` if :attr:`address` can transfer the edition\n :attr:`edition_number` of :attr:`piece_address` else :const:`False`."
79
false
ascribe/pyspool
can_transfer
17,870
LDU_FT/mar10/pyftpsync/on_copy_local
LDU_FT
[ "<BEGIN>\n## `match_path`", "Return True if `path` matches `match` and `exclude` options.\n<END>", "<BEGIN>\n## `_compare_file`", "Byte compare two files (early out on first difference).\n<END>", "<BEGIN>\n## `_tick`", "Write progress info and move cursor to beginning of line.\n<END>", "<BEGIN>\n## `_sy...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the on_copy_local API. 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 on_copy_local API. 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...
Called when the local resource should be copied to remote.
"Called when the local resource should be copied to remote."
122
false
mar10/pyftpsync
on_copy_local
17,871
LDU_FT/edwards-lab/MVtest/print_header
LDU_FT
[ "<BEGIN>\n## `standardize`", "Standardize the variables within a range [-1.0 and 1.0]", " This replaces the local copies of this data. When it's time to\n scale back, use destandardize from the datasource for that.\n<END>", "<BEGIN>\n## `destandardize`", "Revert the betas and variance componen...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the print_header API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the print_header API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
Prints header to f (will write header based on verbose) :param f: stream to print output :param verbose: print all data or only the most important parts?
"Prints header to f (will write header based on verbose)\n\n :param f: stream to print output\n :param verbose: print all data or only the most important parts?"
44
false
edwards-lab/MVtest
print_header
17,872