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/jasonrbriggs/stomp.py/send_frame
LDU_FT
[ "<BEGIN>\n## `attempt_connection`", "Establish a multicast connection - uses 2 sockets (one for sending, the other for receiving)\n<END>", "<BEGIN>\n## `process_frame`", ":param Frame f: Frame object\n :param bytes frame_str: Raw frame content\n<END>", "<BEGIN>\n## `connect`", ":param str username:...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the send_frame API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the send_frame API. 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...
Encode and send a stomp frame through the underlying transport: :param str cmd: the protocol command :param dict headers: a map of headers to include in the frame :param body: the content of the message
"Encode and send a stomp frame\n through the underlying transport:\n\n :param str cmd: the protocol command\n :param dict headers: a map of headers to include in the frame\n :param body: the content of the message"
154
false
jasonrbriggs/stomp.py
send_frame
140,873
LDU_FT/LEMS/pylems/run
LDU_FT
[ "<BEGIN>\n## `toxml`", "Exports this object into a LEMS XML object\n<END>", "<BEGIN>\n## `toxml`", "Exports this object into a LEMS XML object\n<END>", "<BEGIN>\n## `tokenize`", "Tokenizes the string stored in the parser object into a list\n of tokens.\n<END>", "<BEGIN>\n## `parse_token_list_rec`...
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...
Function for running from a script or shell.
"Function for running from a script or shell."
441
false
LEMS/pylems
run
140,874
LDU_FT/DeV1doR/aioethereum/eth_call
LDU_FT
[ "<BEGIN>\n## `db_putString`", "https://github.com/ethereum/wiki/wiki/JSON-RPC#db_putstring", " DEPRECATED\n<END>", "<BEGIN>\n## `db_getString`", "https://github.com/ethereum/wiki/wiki/JSON-RPC#db_getstring", " DEPRECATED\n<END>", "<BEGIN>\n## `db_putHex`", "https://github.com/ethereum/wi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the eth_call API. 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 eth_call API. 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...
https://github.com/ethereum/wiki/wiki/JSON-RPC#eth_call :param from_: From account address :type from_: str :param to: To account address (optional) :type to: str :param gas: Gas amount for current transaction (optional) :type gas: int :param gas_price: Gas pr...
"https://github.com/ethereum/wiki/wiki/JSON-RPC#eth_call\n\n :param from_: From account address\n :type from_: str\n\n :param to: To account address (optional)\n :type to: str\n\n :param gas: Gas amount for current transaction (optional)\n :type gas: int\n\n :param gas_p...
166
false
DeV1doR/aioethereum
eth_call
140,875
LDU_FT/bitesofcode/xqt/init
LDU_FT
[ "<BEGIN>\n## `init`", "Initialize the xqt system with the PySide wrapper for the Qt system.\r", " :param scope | <dict>\n<END>", "<BEGIN>\n## `createAction`", "Overloads teh create action method to handle the proper base\r\n instance information, similar to the PyQt4 loading system.\r", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the init API. 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 init API. 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...
Initialize the xqt system with the PyQt4 wrapper for the Qt system. :param scope | <dict>
"Initialize the xqt system with the PyQt4 wrapper for the Qt system.\r\n \r\n :param scope | <dict>"
35
false
bitesofcode/xqt
init
140,876
LDU_FT/Legobot/Legobot/connect
LDU_FT
[ "<BEGIN>\n## `connect`", "Connect to a server.", " This overrides the function in SimpleIRCClient\n to provide SSL functionality.", " :param args:\n :param kwargs:\n :return:\n<END>", "<BEGIN>\n## `set_metadata`", "This function sets the metadata that is common between p...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the connect API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the connect API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
Connect to a server. This overrides the function in SimpleIRCClient to provide SSL functionality. :param args: :param kwargs: :return:
"Connect to a server.\n\n This overrides the function in SimpleIRCClient\n to provide SSL functionality.\n\n :param args:\n :param kwargs:\n :return:"
119
false
Legobot/Legobot
connect
140,877
LDU_FT/tech-pi/doufo/register
LDU_FT
[ "<BEGIN>\n## `_nargs`", "number of positional arguments values. Dynamically computed from the arguments attribute.\n<END>", "<BEGIN>\n## `_ndefs`", "number of any default values for positional or keyword parameters\n<END>", "<BEGIN>\n## `func`", "decorates normal function to Function with (optional) numbe...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the register API. 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 register API. 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...
doufo.ConverterDict().register(): A decorator factory to define typing converting decorator Attributes: `self` `src` (`type`): source `type`, `tar` (`type`): target `type`, Returns: `f` (`Callable[[T], B]`): a decorater that defin...
"doufo.ConverterDict().register(): A decorator factory to define typing converting decorator\n Attributes: \n `self`\n `src` (`type`): source `type`,\n `tar` (`type`): target `type`,\n Returns:\n `f` (`Callable[[T], B]`): a decorater tha...
48
false
tech-pi/doufo
register
140,878
LDU_FT/pygobject/pgi/get_foreign_struct
LDU_FT
[ "<BEGIN>\n## `get_backend`", "Returns the backend by name or raises KeyError\n<END>", "<BEGIN>\n## `set_backend`", "Set a prefered ffi backend (cffi, ctypes).", " set_backend() -- default\n set_backend(\"cffi\") -- cffi first, others as fallback\n set_backend(\"ctypes\") -- ctypes first, others as ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_foreign_struct 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_foreign_struct API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
Returns a ForeignStruct implementation or raises ForeignError
"Returns a ForeignStruct implementation or raises ForeignError"
363
false
pygobject/pgi
get_foreign_struct
140,879
LDU_FT/openstack/networking-cisco/allocate_fw_dev
LDU_FT
[ "<BEGIN>\n## `assign_hosting_device_to_cfg_agent`", "Make config agent handle an (unassigned) hosting device.\n<END>", "<BEGIN>\n## `unassign_hosting_device_from_cfg_agent`", "Make config agent handle an (unassigned) hosting device.\n<END>", "<BEGIN>\n## `update_subports`", "Set port attributes for trunk ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the allocate_fw_dev API. 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 allocate_fw_dev API. 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...
Allocate firewall device. Allocate the first Firewall device which has resources available.
"Allocate firewall device.\n\n Allocate the first Firewall device which has resources available."
1,517
true
openstack/networking-cisco
allocate_fw_dev
140,880
LDU_FT/developmentseed/landsat-util/three_digit
LDU_FT
[ "<BEGIN>\n## `_read_cmap`", "reads the colormap from a text file given in settings.py.\n See colormap_cubehelix.txt. File must contain 256 RGB values\n<END>", "<BEGIN>\n## `data_collector`", "Buffers n bytes of data.", " :param iterable:\n Could be a list, generator or string\n :type ite...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the three_digit API. 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 three_digit API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
Add 0s to inputs that their length is less than 3. :param number: The number to convert :type number: int :returns: String :example: >>> three_digit(1) '001'
"Add 0s to inputs that their length is less than 3.\n\n :param number:\n The number to convert\n :type number:\n int\n\n :returns:\n String\n\n :example:\n >>> three_digit(1)\n '001'"
152
false
developmentseed/landsat-util
three_digit
140,881
LDU_FT/chrippa/ds4drv/next_joystick_device
LDU_FT
[ "<BEGIN>\n## `setup`", "Check if the bluetooth controller is available.\n<END>", "<BEGIN>\n## `find_device`", "Scan for bluetooth devices and return a DS4 device if found.\n<END>", "<BEGIN>\n## `start`", "Starts the timer.", " If the callback returns True the timer will be restarted.\n<END>", "...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the next_joystick_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 next_joystick_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. ...
Finds the next available js device name.
"Finds the next available js device name."
29
false
chrippa/ds4drv
next_joystick_device
140,882
LDU_FT/jason-weirather/py-seq-tools/sequence
LDU_FT
[ "<BEGIN>\n## `sort_ranges`", "from an array of ranges, make a sorted array of ranges", " :param inranges: List of GenomicRange data\n :type inranges: GenomicRange[]\n :returns: a new sorted GenomicRange list\n :rtype: GenomicRange[]\n<END>", "<BEGIN>\n## `merge_ranges`", "from a list of genomic range or...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the sequence API. 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 sequence API. 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 strcutre is defined so get, if the sequence is not already there, get the sequence from the reference Always is returned on the positive strand for the MappingGeneric :param ref_dict: reference dictionary (only necessary if sequence has not been set already) :type ref_dict: dict()
"A strcutre is defined so get,\n if the sequence is not already there, get the sequence from the reference\n\n Always is returned on the positive strand for the MappingGeneric\n\n :param ref_dict: reference dictionary (only necessary if sequence has not been set already)\n :type ref_dict: dict()"
449
false
jason-weirather/py-seq-tools
sequence
140,883
LDU_FT/lucasmaystre/choix/lsr_rankings
LDU_FT
[ "<BEGIN>\n## `_init_lsr`", "Initialize the LSR Markov chain and the weights.\n<END>", "<BEGIN>\n## `_ilsr`", "Iteratively refine LSR estimates until convergence.", " Raises\n ------\n RuntimeError\n If the algorithm does not converge after ``max_iter`` iterations.\n<END>", "<BEGIN>\n## `ls...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the lsr_rankings API. 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 lsr_rankings API. 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...
Compute the LSR estimate of model parameters. This function implements the Luce Spectral Ranking inference algorithm [MG15]_ for ranking data (see :ref:`data-rankings`). The argument ``initial_params`` can be used to iteratively refine an existing parameter estimate (see the implementation of :fun...
"Compute the LSR estimate of model parameters.\n\n This function implements the Luce Spectral Ranking inference algorithm\n [MG15]_ for ranking data (see :ref:`data-rankings`).\n\n The argument ``initial_params`` can be used to iteratively refine an\n existing parameter estimate (see the implementation of\n...
211
false
lucasmaystre/choix
lsr_rankings
140,884
LDU_FT/pr-omethe-us/PyKED/ck2respth
LDU_FT
[ "<BEGIN>\n## `search_orcid`", "Search the ORCID public API", " Specfically, return a dictionary with the personal details\n (name, etc.) of the person associated with the given ORCID", " Args:\n orcid (`str`): The ORCID to be searched", " Returns:\n `dict`: Dictionary with the JSON...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the ck2respth API. 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 ck2respth API. 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...
Command-line entry point for converting a ChemKED YAML file to a ReSpecTh XML file.
"Command-line entry point for converting a ChemKED YAML file to a ReSpecTh XML file."
124
false
pr-omethe-us/PyKED
ck2respth
140,885
LDU_FT/napalm-automation/napalm/get_bgp_neighbors
LDU_FT
[ "<BEGIN>\n## `parse_intf_section`", "Parse a single entry from show interfaces output.", " Different cases:\n mgmt0 is up\n admin state is up", " Ethernet2/1 is up\n admin state is up, Dedicated Interface", " Vlan1 is down (Administratively down), line protocol is down, autostate enabled",...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_bgp_neighbors API. 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_bgp_neighbors API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
BGP neighbor information. Currently no VRF support. Supports both IPv4 and IPv6.
"BGP neighbor information.\n\n Currently no VRF support. Supports both IPv4 and IPv6."
254
false
napalm-automation/napalm
get_bgp_neighbors
140,886
LDU_FT/awacha/sastool/nonlinear_leastsquares
LDU_FT
[ "<BEGIN>\n## `readB1logfile`", "Read B1 logfile (*.log)", " Inputs:\n filename: the file name", " Output: A dictionary.\n<END>", "<BEGIN>\n## `writeB1logfile`", "Write a header structure into a B1 logfile.", " Inputs:\n filename: name of the file.\n data: header dictionary"...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the nonlinear_leastsquares 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 nonlinear_leastsquares API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
Perform a non-linear least squares fit, return the results as ErrorValue() instances. Inputs: x: one-dimensional numpy array of the independent variable y: one-dimensional numpy array of the dependent variable dy: absolute error (square root of the variance) of the dependent ...
"Perform a non-linear least squares fit, return the results as\n ErrorValue() instances.\n\n Inputs:\n x: one-dimensional numpy array of the independent variable\n y: one-dimensional numpy array of the dependent variable\n dy: absolute error (square root of the variance) of the dependent\n ...
426
false
awacha/sastool
nonlinear_leastsquares
140,887
LDU_FT/CI-WATER/mapkit/isNumber
LDU_FT
[ "<BEGIN>\n## `getAsKmlGrid`", "Creates a KML file with each cell in the raster represented by a polygon. The result is a vector grid representation of the raster.\n Note that pixels with values between -1 and 0 are omitted as no data values. Also note that this method only works on the first band.\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the isNumber API. 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 isNumber API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
Validate whether a value is a number or not
"Validate whether a value is a number or not"
62
false
CI-WATER/mapkit
isNumber
140,888
LDU_FT/pyeve/cerberus/__store_config
LDU_FT
[ "<BEGIN>\n## `__store_config`", "Assign args to kwargs and store configuration.\n<END>", "<BEGIN>\n## `_error`", "Creates and adds one or multiple errors.", " :param args: Accepts different argument's signatures.", " *1. Bulk addition of errors:*", " - :ter...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the __store_config API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the __store_config API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
Assign args to kwargs and store configuration.
"Assign args to kwargs and store configuration."
31
false
pyeve/cerberus
__store_config
140,889
LDU_FT/erikrose/more-itertools/exactly_n
LDU_FT
[ "<BEGIN>\n## `first`", "Return the first item of *iterable*, or *default* if *iterable* is\n empty.", " >>> first([0, 1, 2, 3])\n 0\n >>> first([], 'some default')\n 'some default'", " If *default* is not provided and there are no items in the iterable,\n raise ``ValueErro...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the exactly_n API. 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 exactly_n API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
Return ``True`` if exactly ``n`` items in the iterable are ``True`` according to the *predicate* function. >>> exactly_n([True, True, False], 2) True >>> exactly_n([True, True, False], 1) False >>> exactly_n([0, 1, 2, 3, 4, 5], 3, lambda x: x < 3) True The itera...
"Return ``True`` if exactly ``n`` items in the iterable are ``True``\n according to the *predicate* function.\n\n >>> exactly_n([True, True, False], 2)\n True\n >>> exactly_n([True, True, False], 1)\n False\n >>> exactly_n([0, 1, 2, 3, 4, 5], 3, lambda x: x < 3)\n True\n\n ...
342
false
erikrose/more-itertools
exactly_n
140,890
LDU_FT/PyMySQL/mysqlclient-python/scroll
LDU_FT
[ "<BEGIN>\n## `numeric_part`", "Returns the leading numeric part of a string.", " >>> numeric_part(\"20-alpha\")\n 20\n >>> numeric_part(\"foo\")\n >>> numeric_part(\"16b\")\n 16\n<END>", "<BEGIN>\n## `literal`", "If o is a single object, returns an SQL literal as a string.\n If o is a ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the scroll API. 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 scroll API. 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 ...
Scroll the cursor in the result set to a new position according to mode. If mode is 'relative' (default), value is taken as offset to the current position in the result set, if set to 'absolute', value states an absolute target position.
"Scroll the cursor in the result set to a new position according\n to mode.\n\n If mode is 'relative' (default), value is taken as offset to\n the current position in the result set, if set to 'absolute',\n value states an absolute target position."
30
false
PyMySQL/mysqlclient-python
scroll
140,891
LDU_FT/conchoecia/gloTK/main
LDU_FT
[ "<BEGIN>\n## `meraculous_runner`", "Check to make sure that the allAssembliesDir has been created, if not,\n make it. This will only execute for the first time an assembly has been\n run in this directory.", " Run the directory from allAssembliesDir. The self.callString instance\n at...
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...
1. Reads in a meraculous config file and outputs all of the associated config files to $PWD/configs 2. The name of each run and the path to the directory is passed to a multiprocessing core that controls which assemblies are executed and when.
"1. Reads in a meraculous config file and outputs all of the associated config\n files to $PWD/configs\n 2. The name of each run and the path to the directory is passed to a\n multiprocessing core that controls which assemblies are executed and when."
73
false
conchoecia/gloTK
main
140,892
LDU_FT/Robpol86/sphinxcontrib-versioning/list_remote
LDU_FT
[ "<BEGIN>\n## `setup_logging`", "Configure console logging. Info and below go to stdout, others go to stderr.", " :param int verbose: Verbosity level. > 0 print debug statements. > 1 passed to sphinx-build.\n :param bool colors: Print color text in non-verbose mode.\n :param str name: Which logger name ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the list_remote API. 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 list_remote API. 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 remote branch/tag latest SHAs. :raise GitError: When git ls-remote fails. :param str local_root: Local path to git root directory. :return: List of tuples containing strings. Each tuple is sha, name, kind. :rtype: list
"Get remote branch/tag latest SHAs.\n\n :raise GitError: When git ls-remote fails.\n\n :param str local_root: Local path to git root directory.\n\n :return: List of tuples containing strings. Each tuple is sha, name, kind.\n :rtype: list"
172
false
Robpol86/sphinxcontrib-versioning
list_remote
140,893
LDU_FT/dmgass/baseline/replace_baseline_repr
LDU_FT
[ "<BEGIN>\n## `main`", "Command line interface.", " :param list args: command line options (defaults to sys.argv)\n :returns: exit code\n :rtype: int\n<END>", "<BEGIN>\n## `showpath`", "Return path in form most convenient for user to read.", " Return relative path when input path is within ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the replace_baseline_repr 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 replace_baseline_repr API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Replace individual baseline representation. :param int linenum: location of baseline representation :param str update: new baseline representation text (with delimiters)
"Replace individual baseline representation.\n\n :param int linenum: location of baseline representation\n :param str update: new baseline representation text (with delimiters)"
29
false
dmgass/baseline
replace_baseline_repr
140,894
LDU_FT/aws/sagemaker-python-sdk/get_execution_role
LDU_FT
[ "<BEGIN>\n## `deploy`", "Deploy this ``Model`` to an ``Endpoint`` and optionally return a ``Predictor``.", " Create a SageMaker ``Model`` and ``EndpointConfig``, and deploy an ``Endpoint`` from this ``Model``.\n If ``self.predictor_cls`` is not None, this method returns a the result of invoking\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_execution_role 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_execution_role 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...
Return the role ARN whose credentials are used to call the API. Throws an exception if Args: sagemaker_session(Session): Current sagemaker session Returns: (str): The role ARN
"Return the role ARN whose credentials are used to call the API.\n Throws an exception if\n Args:\n sagemaker_session(Session): Current sagemaker session\n Returns:\n (str): The role ARN"
796
false
aws/sagemaker-python-sdk
get_execution_role
140,895
LDU_FT/atarashansky/self-assembling-manifold/dispersion_ranking_NN
LDU_FT
[ "<BEGIN>\n## `preprocess_data`", "Log-normalizes and filters the expression data.", " Parameters\n ----------", " div : float, optional, default 1\n The factor by which the gene expression will be divided prior to\n log normalization.", " downsample : float,...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the dispersion_ranking_NN 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 dispersion_ranking_NN API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Computes the spatial dispersion factors for each gene. Parameters ---------- nnm - scipy.sparse, float Square cell-to-cell nearest-neighbor matrix. num_norm_avg - int, optional, default 50 The top 'num_norm_avg' dispersions are averaged to determine the ...
"Computes the spatial dispersion factors for each gene.\n\n Parameters\n ----------\n nnm - scipy.sparse, float\n Square cell-to-cell nearest-neighbor matrix.\n\n num_norm_avg - int, optional, default 50\n The top 'num_norm_avg' dispersions are averaged to determine the...
125
false
atarashansky/self-assembling-manifold
dispersion_ranking_NN
140,896
LDU_FT/sashahart/vex/handle_shell_config
LDU_FT
[ "<BEGIN>\n## `make_arg_parser`", "Return a standard ArgumentParser object.\n<END>", "<BEGIN>\n## `get_options`", "Called to parse the given list as command-line arguments.", " :returns:\n an options object as returned by argparse.\n<END>", "<BEGIN>\n## `get_vexrc`", "Get a representation of th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the handle_shell_config API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the handle_shell_config API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
Carry out the logic of the --shell-config option.
"Carry out the logic of the --shell-config option."
38
false
sashahart/vex
handle_shell_config
140,897
LDU_FT/avara1986/ardy/_install_packages
LDU_FT
[ "<BEGIN>\n## `run`", "Run deploy the lambdas defined in our project.\n Steps:\n * Build Artefact\n * Read file or deploy to S3. It's defined in config[\"deploy\"][\"deploy_method\"]\n * Reload conf with deploy changes\n * check lambda if exist\n * Create Lambda\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _install_packages API. 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 _install_packages API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Install all packages listed to the target directory. Ignores any package that includes Python itself and python-lambda as well since its only needed for deploying and not running the code :param str path: Path to copy installed pip packages to. :param list packages: ...
"Install all packages listed to the target directory.\n Ignores any package that includes Python itself and python-lambda as well\n since its only needed for deploying and not running the code\n :param str path:\n Path to copy installed pip packages to.\n :param list packages:\n ...
17
false
avara1986/ardy
_install_packages
140,898
LDU_FT/vsoch/helpme/upload_asciinema
LDU_FT
[ "<BEGIN>\n## `main`", "the main entry point for the HelpMe Command line application. Currently,\n the user can request help or set config values for a particular helper.\n<END>", "<BEGIN>\n## `write_config`", "use configparser to write a config object to filename\n<END>", "<BEGIN>\n## `generate_tempor...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the upload_asciinema API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the upload_asciinema API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
a wrapper around generation of an asciinema.api.Api to call the upload command given an already existing asciinema file. Parameters ========== filename: the asciinema file to upload, can be generated with function record_asciinema in record.py
"a wrapper around generation of an asciinema.api.Api to call the \n upload command given an already existing asciinema file. \n\n Parameters\n ==========\n filename: the asciinema file to upload, can be generated with \n function record_asciinema in record.py"
121
false
vsoch/helpme
upload_asciinema
140,899
LDU_FT/openxc/openxc-python/from_xml_node
LDU_FT
[ "<BEGIN>\n## `get`", "Return the latest measurement for the given class or None if nothing\n has been received from the vehicle.\n<END>", "<BEGIN>\n## `add_source`", "Add a vehicle data source to the instance.", " The Vehicle instance will be set as the callback of the source, and the\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the from_xml_node API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the from_xml_node API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
Construct a Signal instance from an XML node exported from a Vector CANoe .dbc file.
"Construct a Signal instance from an XML node exported from a Vector\n CANoe .dbc file."
94
false
openxc/openxc-python
from_xml_node
140,900
LDU_FT/morepath/more.jwtauth/remember
LDU_FT
[ "<BEGIN>\n## `verify_refresh_request`", "Wrapper around JWTIdentityPolicy.verify_refresh which verify\n if the request to refresh the token is valid.\n If valid it returns the userid which can be used to create to\n create an updated identity with ``remember_identity``.\n Otherwise it raises an except...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the remember API. 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 remember API. 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...
Remember identity on response. Implements ``morepath.App.remember_identity``, which is called from user login code. Create a JWT token and return it as the Authorization field of the response header. :param response: response object on which to store identity. :type re...
"Remember identity on response.\n\n Implements ``morepath.App.remember_identity``, which is called\n from user login code.\n\n Create a JWT token and return it as the Authorization field of the\n response header.\n\n :param response: response object on which to store identity.\n ...
36
false
morepath/more.jwtauth
remember
140,901
LDU_FT/scott-maddox/openbandparams/CBO
LDU_FT
[ "<BEGIN>\n## `GaP_Eg_Gamma`", "Returns the Gamma-valley bandgap, Eg_Gamma, in electron Volts at a\n given temperature, T, in Kelvin (default: 300 K).", " GaP has a unique Gamma-gap temperature dependence.\n<END>", "<BEGIN>\n## `_has_x`", "Returns True if x is explicitly defined in kwargs\n<END>", "<...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the CBO API. 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 CBO API. 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...
Returns the strain-shifted conduction band offset (CBO), assuming the strain affects all conduction band valleys equally.
"Returns the strain-shifted conduction band offset (CBO), assuming\n the strain affects all conduction band valleys equally."
68
false
scott-maddox/openbandparams
CBO
140,902
LDU_FT/ryan-roemer/django-cloud-browser/_is_gs_folder
LDU_FT
[ "<BEGIN>\n## `is_key`", "Return ``True`` if result is a key object.\n<END>", "<BEGIN>\n## `parse_bool`", "Convert ``string`` or ``bool`` to ``bool``.\n<END>", "<BEGIN>\n## `container_permitted`", "Return whether or not a container is permitted.", " :param name: Container name.\n :return: `...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _is_gs_folder API. 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 _is_gs_folder API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
Return ``True`` if GS standalone folder object. GS will create a 0 byte ``<FOLDER NAME>_$folder$`` key as a pseudo-directory place holder if there are no files present.
"Return ``True`` if GS standalone folder object.\n\n GS will create a 0 byte ``<FOLDER NAME>_$folder$`` key as a\n pseudo-directory place holder if there are no files present."
96
false
ryan-roemer/django-cloud-browser
_is_gs_folder
140,903
LDU_FT/AtsushiSakai/SimpleTkGUIKit/GetListSelect
LDU_FT
[ "<BEGIN>\n## `GetFilePathsWithDialog`", "Multipul File Select with dialog", " fileTypes: you can choise file extension\n ex) fileTypes=[('Excel Files', '.xlsx')]\n<END>", "<BEGIN>\n## `GetRadioButtonSelect`", "Create radio button window for option selection", " title: Window name\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the GetListSelect API. 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 GetListSelect API. 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...
Create list with selectList, and then return seleced string and index title: Window name mag: Label of the list return (seldctedItem, selectedindex)
"Create list with selectList,\n and then return seleced string and index\n\n title: Window name\n mag: Label of the list\n\n return (seldctedItem, selectedindex)"
19
false
AtsushiSakai/SimpleTkGUIKit
GetListSelect
140,904
LDU_FT/blockstack-packages/blockstack-gpg/gpg_app_get_key
LDU_FT
[ "<BEGIN>\n## `make_gpg_home`", "Make GPG keyring dir for a particular application.\n Return the path.\n<END>", "<BEGIN>\n## `get_gpg_home`", "Get the GPG keyring directory for a particular application.\n Return the path.\n<END>", "<BEGIN>\n## `make_gpg_tmphome`", "Make a temporary directory to hold ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the gpg_app_get_key API. 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 gpg_app_get_key API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
Get an app-specific GPG key. Return {'status': True, 'key_id': ..., 'key': ..., 'app_name': ...} on success return {'error': ...} on error
"Get an app-specific GPG key.\n Return {'status': True, 'key_id': ..., 'key': ..., 'app_name': ...} on success\n return {'error': ...} on error"
54
false
blockstack-packages/blockstack-gpg
gpg_app_get_key
140,905
LDU_FT/pyblish/pyblish-qml/which
LDU_FT
[ "<BEGIN>\n## `process`", "Given JSON objects from client, perform actual processing", " Arguments:\n plugin (dict): JSON representation of plug-in to process\n instance (dict, optional): JSON representation of Instance to\n be processed.\n action (str, opti...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the which API. 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 which API. 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...
Locate `program` in PATH Arguments: program (str): Name of program, e.g. "python"
"Locate `program` in PATH\n\n Arguments:\n program (str): Name of program, e.g. \"python\""
272
false
pyblish/pyblish-qml
which
140,906
LDU_FT/OTL/jps/echo
LDU_FT
[ "<BEGIN>\n## `launch_modules_with_names`", "launch module.main functions in another process\n<END>", "<BEGIN>\n## `publish`", "Publish payload to the topic", " .. note:: If you publishes just after creating Publisher instance, it will causes\n lost of message. You have to add sleep if you j...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the echo API. 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 echo API. 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...
print the data for the given topic forever
"print the data for the given topic forever"
31
false
OTL/jps
echo
140,907
LDU_FT/google/flatbuffers/package
LDU_FT
[ "<BEGIN>\n## `compare_version`", "Compare two version number strings of the form W.X.Y.Z.", " The numbers are compared most-significant to least-significant.\n For example, 12.345.67.89 > 2.987.88.99.", " Args:\n a: First version number string to compare\n b: Second version number string to compare",...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the package API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the package API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
Copy Flatbuffers' artifacts to package folder
"Copy Flatbuffers' artifacts to package folder"
83
false
google/flatbuffers
package
140,908
LDU_FT/PRIArobotics/HedgehogUtils/repeat_func
LDU_FT
[ "<BEGIN>\n## `configure`", "Allows to configure some common socket options and configurations, while allowing method chaining\n<END>", "<BEGIN>\n## `recv_multipart_expect`", "Waits for the next multipart message and asserts that it contains the given data.\n<END>", "<BEGIN>\n## `expect_all`", "\\\n Ass...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the repeat_func API. 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 repeat_func API. 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...
Repeats the result of a 0-ary function either indefinitely, or for a defined number of times. `times` and `interval` behave exactly like with `aiostream.create.repeat`. A useful idiom is to combine an indefinite `repeat_func` stream with `aiostream.select.takewhile` to terminate the stream at some point.
"Repeats the result of a 0-ary function either indefinitely, or for a defined number of times.\n `times` and `interval` behave exactly like with `aiostream.create.repeat`.\n\n A useful idiom is to combine an indefinite `repeat_func` stream with `aiostream.select.takewhile`\n to terminate the stream at some poi...
22
false
PRIArobotics/HedgehogUtils
repeat_func
140,909
LDU_FT/peercoin/peercoin_rpc/createrawtransaction
LDU_FT
[ "<BEGIN>\n## `getbalance`", "retrieve balance, If [account] is specified, returns the balance in the account.\n<END>", "<BEGIN>\n## `sendtoaddress`", "send ammount to address, with optional comment. Returns txid.\n sendtoaddress(ADDRESS, AMMOUNT, COMMENT)\n<END>", "<BEGIN>\n## `sendfrom`", "send ou...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the createrawtransaction 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 createrawtransaction API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
[{"txid":input_txid,"vout":0}, ...], {recv_addr: amount, change: amount, ...}
"[{\"txid\":input_txid,\"vout\":0}, ...], {recv_addr: amount, change: amount, ...}"
14
false
peercoin/peercoin_rpc
createrawtransaction
140,910
LDU_FT/hyperledger/sawtooth-core/is_predecessor_of_other
LDU_FT
[ "<BEGIN>\n## `run_callback`", "Calls the callback_func, passing in the two positional arguments,\n conditionally waiting if the callback function hasn't been set yet.\n Meant to be run in a threadpool owned by the FutureCollection.", " Returns:\n None\n<END>", "<BEGIN>\n## `add...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_predecessor_of_other 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 is_predecessor_of_other API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion...
Returns whether the predecessor is a predecessor or a predecessor of a predecessor...of any of the others. Args: predecessor (str): The txn id of the predecessor. others (list(str)): The txn id of the successor. Returns: (bool)
"Returns whether the predecessor is a predecessor or a predecessor\n of a predecessor...of any of the others.\n\n Args:\n predecessor (str): The txn id of the predecessor.\n others (list(str)): The txn id of the successor.\n\n Returns:\n (bool)"
876
false
hyperledger/sawtooth-core
is_predecessor_of_other
140,911
LDU_FT/TkTech/Jawa/read_instruction
LDU_FT
[ "<BEGIN>\n## `_walk`", "A modified os.walk with support for maximum traversal depth.\n<END>", "<BEGIN>\n## `update`", "Add one or more ClassFile sources to the class loader.", " If a given source is a directory path, it is traversed up to the\n maximum set depth and all files under it are adde...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the read_instruction API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the read_instruction API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Reads a single instruction from `fio` and returns it, or ``None`` if the stream is empty. :param fio: Any file-like object providing ``read()``. :param start_pos: The current position in the stream.
"Reads a single instruction from `fio` and returns it, or ``None`` if\n the stream is empty.\n\n :param fio: Any file-like object providing ``read()``.\n :param start_pos: The current position in the stream."
226
false
TkTech/Jawa
read_instruction
140,912
LDU_FT/HIPS/autograd/grad_named
LDU_FT
[ "<BEGIN>\n## `make_gp_funs`", "Functions that perform Gaussian process regression.\n cov_func has signature (cov_params, x, x')\n<END>", "<BEGIN>\n## `def_linear`", "Flags that a function is linear wrt all args\n<END>", "<BEGIN>\n## `project`", "Project the velocity field to be approximately mass-co...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the grad_named API. 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 grad_named API. 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...
Takes gradients with respect to a named argument. Doesn't work on *args or **kwargs.
"Takes gradients with respect to a named argument.\n Doesn't work on *args or **kwargs."
79
false
HIPS/autograd
grad_named
140,913
LDU_FT/fozzle/python-brotherprint/choose_template
LDU_FT
[ "<BEGIN>\n## `initialize`", "Calling this function initializes the printer.", " Args:\n None\n Returns:\n None\n Raises:\n None\n<END>", "<BEGIN>\n## `select_charset`", "Select international character set and changes codes in code table accordingly", "...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the choose_template API. 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 choose_template API. 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...
Choose a template Args: template: String, choose which template you would like. Returns: None Raises: None
"Choose a template\n \n Args:\n template: String, choose which template you would like.\n Returns:\n None\n Raises:\n None"
113
false
fozzle/python-brotherprint
choose_template
140,914
LDU_FT/honzamach/pynspect/compile_ip_v6
LDU_FT
[ "<BEGIN>\n## `parse`", "Parse given data.", " data:\n A string containing the filter definition\n filename:\n Name of the file being parsed (for meaningful\n error messages)\n debuglevel:\n Debug level to yacc\n<END>", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the compile_ip_v6 API. 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 compile_ip_v6 API. 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...
Compiler helper method: attempt to compile constant into object representing IPv6 address to enable relations and thus simple comparisons using Python operators.
"Compiler helper method: attempt to compile constant into object representing\n IPv6 address to enable relations and thus simple comparisons using Python\n operators."
143
false
honzamach/pynspect
compile_ip_v6
140,915
LDU_FT/intelligenia/modeltranslation/has
LDU_FT
[ "<BEGIN>\n## `_get_fieldtranslations`", "Get all the translations for this object.\n<END>", "<BEGIN>\n## `_load_translations`", "Loads all translations as dynamic attributes:\n\t\t<attr>_<lang_code>\n\t\t<attr>_<lang_code>_is_fuzzy\n<END>", "<BEGIN>\n## `_set_dict_translations`", "Establece los atributos ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the has API. 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 has API. 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...
Indica si la caché tiene un objeto igual a éste con los atributos dinámicos de traducción
"Indica si la caché tiene un objeto igual a éste con los\n atributos dinámicos de traducción"
36
false
intelligenia/modeltranslation
has
140,916
LDU_FT/dfm/george/dot_solve
LDU_FT
[ "<BEGIN>\n## `computed`", "Has the processes been computed since the last update of the kernel?\n<END>", "<BEGIN>\n## `parse_samples`", "Parse a list of samples to make sure that it has the correct\n dimensions.", " :param t: ``(nsamples,)`` or ``(nsamples, ndim)``\n The list of sam...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the dot_solve API. 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 dot_solve API. 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...
r""" Compute the inner product of a vector with the inverse of the covariance matrix applied to itself: .. math:: y\,K^{-1}\,y Args: y (ndarray[nsamples]): The vector :math:`y`.
"r\"\"\"\n Compute the inner product of a vector with the inverse of the\n covariance matrix applied to itself:\n\n .. math::\n\n y\\,K^{-1}\\,y\n\n Args:\n y (ndarray[nsamples]): The vector :math:`y`."
111
false
dfm/george
dot_solve
140,917
LDU_FT/GoogleCloudPlatform/cloud-debug-python/_ReadAppJsonFile
LDU_FT
[ "<BEGIN>\n## `InitializeDebuggeeLabels`", "Initialize debuggee labels from environment variables and flags.", " The caller passes all the flags that the the debuglet got. This function\n will only use the flags used to label the debuggee. Flags take precedence\n over environment variables.", " Deb...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _ReadAppJsonFile API. 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 _ReadAppJsonFile API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Reads JSON file from an application directory. Args: relative_path: file name relative to application root directory. Returns: Parsed JSON data or None if the file does not exist, can't be read or not a valid JSON file.
"Reads JSON file from an application directory.\n\n Args:\n relative_path: file name relative to application root directory.\n\n Returns:\n Parsed JSON data or None if the file does not exist, can't be read or\n not a valid JSON file."
276
false
GoogleCloudPlatform/cloud-debug-python
_ReadAppJsonFile
140,918
LDU_FT/jeffknupp/sandman2/jsonify
LDU_FT
[ "<BEGIN>\n## `to_dict`", "Return a dictionary representation of the exception.\n<END>", "<BEGIN>\n## `required`", "Return a list of all columns required by the database to create the\n resource.", " :param cls: The Model class to gather attributes from\n :rtype: list\n<END>", "<BEGIN>...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the jsonify API. 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 jsonify API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
Return a Flask ``Response`` object containing a JSON representation of *resource*. :param resource: The resource to act as the basis of the response
"Return a Flask ``Response`` object containing a\n JSON representation of *resource*.\n\n :param resource: The resource to act as the basis of the response"
74
false
jeffknupp/sandman2
jsonify
140,919
LDU_FT/CalebBell/fluids/pdf_Gates_Gaudin_Schuhman
LDU_FT
[ "<BEGIN>\n## `ccor`", "/* CHEMISTRY/DISSOCIATION CORRECTION FOR MSIS MODELS\n * ALT - altitude\n * R - target ratio\n * H1 - transition scale length\n * ZH - altitude of 1/2 R\n */\n<END>", "<BEGIN>\n## `ccor2`", "/* CHEMISTRY/DISSOCIATION CORRECTION FOR MSIS MODE...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the pdf_Gates_Gaudin_Schuhman API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the pdf_Gates_Gaudin_Schuhman API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi...
r'''Calculates the probability density of a particle distribution following the Gates, Gaudin and Schuhman (GGS) model given a particle diameter `d`, characteristic (maximum) particle diameter `d_characteristic`, and exponent `m`. .. math:: q(d) = \frac{n}{d}\left(\frac{d}{d_{characteristi...
"r'''Calculates the probability density of a particle\n distribution following the Gates, Gaudin and Schuhman (GGS) model given a \n particle diameter `d`, characteristic (maximum) particle\n diameter `d_characteristic`, and exponent `m`.\n \n .. math::\n q(d) = \\frac{n}{d}\\left(\\frac{d}{d_{cha...
3,613
true
CalebBell/fluids
pdf_Gates_Gaudin_Schuhman
140,920
LDU_FT/rycus86/prometheus_flask_exporter/start_http_server
LDU_FT
[ "<BEGIN>\n## `start_http_server`", "Start an HTTP server for exposing the metrics, if the\n `should_start_http_server` function says we should, otherwise just return.\n Uses the implementation from `prometheus_client` rather than a Flask app.", " :param port: the HTTP port to expose the met...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the start_http_server API. 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 start_http_server API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Start an HTTP server for exposing the metrics, if the `should_start_http_server` function says we should, otherwise just return. Uses the implementation from `prometheus_client` rather than a Flask app. :param port: the HTTP port to expose the metrics endpoint on :param host: the HTTP h...
"Start an HTTP server for exposing the metrics, if the\n `should_start_http_server` function says we should, otherwise just return.\n Uses the implementation from `prometheus_client` rather than a Flask app.\n\n :param port: the HTTP port to expose the metrics endpoint on\n :param host: the ...
42
false
rycus86/prometheus_flask_exporter
start_http_server
140,921
LDU_FT/junaruga/rpm-py-installer/which
LDU_FT
[ "<BEGIN>\n## `download_and_install`", "Download and install RPM Python binding.\n<END>", "<BEGIN>\n## `add_patchs_to_build_without_pkg_config`", "Add patches to remove pkg-config command and rpm.pc part.", " Replace with given library_path: lib_dir and include_path: include_dir\n without rpm.p...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the which API. 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 which API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
Return an absolute path of the command. It behaves like "which command".
"Return an absolute path of the command.\n\n It behaves like \"which command\"."
67
false
junaruga/rpm-py-installer
which
140,922
LDU_FT/jut-io/jut-python-tools/pull
LDU_FT
[ "<BEGIN>\n## `_print_jobs`", "internal method to print the provided jobs array in a nice tabular\n format\n<END>", "<BEGIN>\n## `debug`", "debug output goes to stderr so you can still redirect the stdout to a file\n or another program. Controlled by the JUT_DEBUG environment variable being\n present\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the pull API. 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 pull API. 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...
pull all remote programs to a local directory
"pull all remote programs to a local directory"
72
false
jut-io/jut-python-tools
pull
140,923
LDU_FT/xav/Grapefruit/hsl_to_rgb
LDU_FT
[ "<BEGIN>\n## `rgb_to_hsl`", "Convert the color from RGB coordinates to HSL.", " Parameters:\n :r:\n The Red component value [0...1]\n :g:\n The Green component value [0...1]\n :b:\n The Blue component value [0...1]", " Returns:\n The color as an (h, s, l) tuple in the range:\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the hsl_to_rgb API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the hsl_to_rgb API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
Convert the color from HSL coordinates to RGB. Parameters: :h: The Hue component value [0...1] :s: The Saturation component value [0...1] :l: The Lightness component value [0...1] Returns: The color as an (r, g, b) tuple in the range: r[0...1], g[0...1], b[0...1] >...
"Convert the color from HSL coordinates to RGB.\n\n Parameters:\n :h:\n The Hue component value [0...1]\n :s:\n The Saturation component value [0...1]\n :l:\n The Lightness component value [0...1]\n\n Returns:\n The color as an (r, g, b) tuple in the range:\n r[0...1],\n g[0...1],\n ...
234
false
xav/Grapefruit
hsl_to_rgb
140,924
LDU_FT/Parallels/artifactory/splitroot
LDU_FT
[ "<BEGIN>\n## `encode_properties`", "Performs encoding of url parameters from dictionary to a string. It does\n not escape backslash because it is not needed.", " See: http://www.jfrog.com/confluence/display/RTF/Artifactory+REST+API#ArtifactoryRESTAPI-SetItemProperties\n<END>", "<BEGIN>\n## `splitroot`",...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the splitroot API. 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 splitroot API. 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...
Splits path string into drive, root and relative path Uses '/artifactory/' as a splitting point in URI. Everything before it, including '/artifactory/' itself is treated as drive. The next folder is treated as root, and everything else is taken for relative path.
"Splits path string into drive, root and relative path\n\n Uses '/artifactory/' as a splitting point in URI. Everything\n before it, including '/artifactory/' itself is treated as drive.\n The next folder is treated as root, and everything else is taken\n for relative path."
27
false
Parallels/artifactory
splitroot
140,925
LDU_FT/jbeluch/xbmcswift2/filter
LDU_FT
[ "<BEGIN>\n## `display_listitems`", "Displays a list of items along with the index to enable a user\n to select an item.\n<END>", "<BEGIN>\n## `display_video`", "Prints a message for a playing video and displays the parent\n listitem.\n<END>", "<BEGIN>\n## `get_user_choice`", "Returns the selected it...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the 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 extracted ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the 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 extracted ...
Returns True for all records if running in the CLI, else returns True. When running inside XBMC it calls the xbmc.log() method and prevents the message from being double printed to STDOUT.
"Returns True for all records if running in the CLI, else returns\n True.\n\n When running inside XBMC it calls the xbmc.log() method and prevents\n the message from being double printed to STDOUT."
164
false
jbeluch/xbmcswift2
filter
140,926
LDU_FT/tamasgal/km3pipe/phi
LDU_FT
[ "<BEGIN>\n## `count_multiplicities`", "Calculate an array of multiplicities and corresponding coincidence IDs", " Note that this algorithm does not take care about DOM IDs, so it has to\n be fed with DOM hits.", " Parameters\n ----------\n times: array[float], shape=(n,)\n Hit times for ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the phi API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the phi API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
Neutrino direction in polar coordinates. ``phi``, ``theta`` is the opposite of ``zenith``, ``azimuth``. Angles in radians.
"Neutrino direction in polar coordinates.\n\n ``phi``, ``theta`` is the opposite of ``zenith``, ``azimuth``.\n\n Angles in radians."
418
false
tamasgal/km3pipe
phi
140,927
LDU_FT/nschloe/meshio/get_param_map
LDU_FT
[ "<BEGIN>\n## `read`", "Reads a (compressed) PERMAS dato or post file.\n<END>", "<BEGIN>\n## `write`", "Writes PERMAS dat files, cf.\n http://www.intes.de # PERMAS-ASCII-file-format\n<END>", "<BEGIN>\n## `_write_families`", "Write point/cell tag information under FAS/[mesh_name]\n<END>", "<BEGIN>\n## ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_param_map API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_param_map API. 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...
get the optional arguments on a line Example ------- >>> iline = 0 >>> word = 'elset,instance=dummy2,generate' >>> params = get_param_map(iline, word, required_keys=['instance']) params = { 'elset' : None, 'instance' : 'dummy2, 'generate' : None, }
"get the optional arguments on a line\n\n Example\n -------\n >>> iline = 0\n >>> word = 'elset,instance=dummy2,generate'\n >>> params = get_param_map(iline, word, required_keys=['instance'])\n params = {\n 'elset' : None,\n 'instance' : 'dummy2,\n 'generate' : None,\n }"
33
false
nschloe/meshio
get_param_map
140,928
LDU_FT/C4ptainCrunch/ics.py/today
LDU_FT
[ "<BEGIN>\n## `arrow_get`", "this function exists because ICS uses ISO 8601 without dashes or\n colons, i.e. not ISO 8601 at all.\n<END>", "<BEGIN>\n## `parse_duration`", "Return a timedelta object from a string in the DURATION property format\n<END>", "<BEGIN>\n## `timedelta_to_duration`", "Return a st...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the today API. 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 today API. 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...
Iterates (in chronological order) over all events that occurs today Args: strict (bool): if True events will be returned only if they are\ strictly *included* in `day`.
"Iterates (in chronological order) over all events that occurs today\n\n Args:\n strict (bool): if True events will be returned only if they are\\\n strictly *included* in `day`."
50
false
C4ptainCrunch/ics.py
today
140,929
LDU_FT/bachya/pyflunearyou/status_by_state
LDU_FT
[ "<BEGIN>\n## `adjust_status`", "Apply status mapping to a raw API result.\n<END>", "<BEGIN>\n## `status_by_coordinates`", "Return the CDC status for the provided latitude/longitude.\n<END>", "<BEGIN>\n## `status_by_state`", "Return the CDC status for the specified state.\n<END>", "<BEGIN>\n## `status_by...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the status_by_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 e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the status_by_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 e...
Return the CDC status for the specified state.
"Return the CDC status for the specified state."
22
false
bachya/pyflunearyou
status_by_state
140,930
LDU_FT/profusion/sgqlc/connection_args
LDU_FT
[ "<BEGIN>\n## `_log_json_error`", "Log a :exc:`json.JSONDecodeError`, converting to\n GraphQL's ``{\"data\": null, \"errors\": [{\"message\": str(exc)...}]}``", " :param body: the string with JSON document.\n :type body: str", " :param exc: the :exc:`json.JSONDecodeError`\n :...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the connection_args API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the connection_args API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
Returns the default parameters for connection. Extra parameters may be given as argument, both as iterable, positional tuples or mapping. By default, provides: - ``after: String`` - ``before: String`` - ``first: Int`` - ``last: Int``
"Returns the default parameters for connection.\n\n Extra parameters may be given as argument, both as iterable,\n positional tuples or mapping.\n\n By default, provides:\n\n - ``after: String``\n - ``before: String``\n - ``first: Int``\n - ``last: Int``"
75
false
profusion/sgqlc
connection_args
140,931
LDU_FT/williballenthin/python-evtx/ensure_contexted
LDU_FT
[ "<BEGIN>\n## `xml_records`", "If the second return value is not None, then it is an\n Exception encountered during parsing. The first return value\n will be the XML string.", " @type filename str\n @rtype: generator of (etree.Element or str), (None or Exception)\n<END>", "<BEGIN>\n## `templat...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the ensure_contexted API. 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 ensure_contexted API. 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 ensure that an instance of the Evtx class is used within a context statement. That is, that the `with` statement is used, or `__enter__()` and `__exit__()` are called explicitly.
"This decorator ensure that an instance of the\n Evtx class is used within a context statement. That is,\n that the `with` statement is used, or `__enter__()`\n and `__exit__()` are called explicitly."
73
false
williballenthin/python-evtx
ensure_contexted
140,932
LDU_FT/django-leonardo/django-leonardo/save_form
LDU_FT
[ "<BEGIN>\n## `sort_dependencies`", "Sort a list of (app_config, models) pairs into a single list of models.\n The single list of models is sorted so that any model with a natural key\n is serialized before a normal model, and any model with a natural key\n dependency has it's dependencies serialized firs...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the save_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 extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the save_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 extract...
Given a ModelForm return an unsaved instance. ``change`` is True if the object is being changed, and False if it's being added.
"Given a ModelForm return an unsaved instance. ``change`` is True if\n the object is being changed, and False if it's being added."
267
false
django-leonardo/django-leonardo
save_form
140,933
LDU_FT/hfaran/progressive/_calculate_values
LDU_FT
[ "<BEGIN>\n## `simple`", "Simple example using just the Bar class", " This example is intended to show usage of the Bar class at the lowest\n level.\n<END>", "<BEGIN>\n## `draw`", "Draw ``tree`` to the terminal", " :type tree: dict\n :param tree: ``tree`` should be a tree representing ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _calculate_values API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _calculate_values API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Calculate values for drawing bars of non-leafs in ``tree`` Recurses through ``tree``, replaces ``dict``s with ``(BarDescriptor, dict)`` so ``ProgressTree._draw`` can use the ``BarDescriptor``s to draw the tree
"Calculate values for drawing bars of non-leafs in ``tree``\n\n Recurses through ``tree``, replaces ``dict``s with\n ``(BarDescriptor, dict)`` so ``ProgressTree._draw`` can use\n the ``BarDescriptor``s to draw the tree"
48
false
hfaran/progressive
_calculate_values
140,934
LDU_FT/berkerpeksag/astor/walk
LDU_FT
[ "<BEGIN>\n## `convert`", "Walk the srctree, and convert/copy all python files\n into the dsttree\n<END>", "<BEGIN>\n## `split_lines`", "Split inputs according to lines.\n If a line is short enough, just yield it.\n Otherwise, fix it.\n<END>", "<BEGIN>\n## `wrap_line`", "We have a line that ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the walk API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the walk API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
Walk the tree starting at a given node. Maintain a stack of nodes.
"Walk the tree starting at a given node.\n\n Maintain a stack of nodes."
63
false
berkerpeksag/astor
walk
140,935
LDU_FT/thiagopbueno/tf-rddlsim/_output
LDU_FT
[ "<BEGIN>\n## `interm_size`", "Returns the MDP intermediate state size.\n<END>", "<BEGIN>\n## `output_size`", "Returns the simulation cell output size.\n<END>", "<BEGIN>\n## `_dtype`", "Converts `tensor` to tf.float32 datatype if needed.\n<END>", "<BEGIN>\n## `timesteps`", "Returns the input tensor for...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _output API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _output API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
Converts `fluents` to tensors with datatype tf.float32.
"Converts `fluents` to tensors with datatype tf.float32."
64
false
thiagopbueno/tf-rddlsim
_output
140,936
LDU_FT/neo4j-drivers/neobolt/_append
LDU_FT
[ "<BEGIN>\n## `watch`", "Quick wrapper for using the Watcher.", " :param logger_name: name of logger to watch\n :param level: minimum log level to show (default INFO)\n :param out: where to send output (default stdout)\n :return: Watcher instance\n<END>", "<BEGIN>\n## `get_user_agent`", "Obtain t...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _append API. 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 _append API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
Add a message to the outgoing queue. :arg signature: the signature of the message :arg fields: the fields of the message as a tuple :arg response: a response object to handle callbacks
"Add a message to the outgoing queue.\n\n :arg signature: the signature of the message\n :arg fields: the fields of the message as a tuple\n :arg response: a response object to handle callbacks"
86
false
neo4j-drivers/neobolt
_append
140,937
LDU_FT/DolphDev/pynationstates/command
LDU_FT
[ "<BEGIN>\n## `_get_shard`", "Dynamically Builds methods to query shard with proper with arg and kwargs support\n<END>", "<BEGIN>\n## `request`", "Request the API", " This method is wrapped by similar functions\n<END>", "<BEGIN>\n## `command`", "Method Interface to the command API for Nationsta...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the command API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the command API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
Method Interface to the command API for Nationstates
"Method Interface to the command API for Nationstates"
17
false
DolphDev/pynationstates
command
140,938
LDU_FT/EliotBerriot/lifter/build_filter_from_kwargs
LDU_FT
[ "<BEGIN>\n## `_execute`", "We have to override this because in some situation\n (such as with Filebackend, or any dummy backend)\n we have to parse / adapt results *before* when can execute the query\n<END>", "<BEGIN>\n## `get`", "Get the given key from the cache, if present.\n A default ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the build_filter_from_kwargs API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the build_filter_from_kwargs API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio...
Convert django-s like lookup to SQLAlchemy ones
"Convert django-s like lookup to SQLAlchemy ones"
29
false
EliotBerriot/lifter
build_filter_from_kwargs
140,939
LDU_FT/jgorset/facebook/education
LDU_FT
[ "<BEGIN>\n## `cache`", "Query or return the Graph API representation of this resource.\n<END>", "<BEGIN>\n## `work`", "A list of :class:`Employment` instances describing the user's work history.", " Each structure has attributes ``employer``, ``position``, ``started_at`` and ``ended_at``.", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the education API. 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 education API. 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 list of structures describing the user's education history. Each structure has attributes ``school``, ``year``, ``concentration`` and ``type``. ``school``, ``year`` reference ``Page`` instances, while ``concentration`` is a list of ``Page`` instances. ``type`` is just a string that describes...
"A list of structures describing the user's education history.\n\n Each structure has attributes ``school``, ``year``, ``concentration`` and ``type``.\n\n ``school``, ``year`` reference ``Page`` instances, while ``concentration`` is a list of ``Page``\n instances. ``type`` is just a string that des...
20
false
jgorset/facebook
education
140,940
LDU_FT/OCHA-DAP/hdx-python-api/add_region_location
LDU_FT
[ "<BEGIN>\n## `validlocations`", "Read valid locations from HDX", " Args:\n configuration (Optional[Configuration]): HDX configuration. Defaults to global configuration.", " Returns:\n List[Dict]: A list of valid locations\n<END>", "<BEGIN>\n## `get_location_from_HDX_code`...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_region_location 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 add_region_location 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...
Add all countries in a region. If a 3 digit UNStats M49 region code is not provided, value is parsed as a region name. If any country is already added, it is ignored. Args: region (str): M49 region, intermediate region or subregion to add locations (Optional[List[str]]): Valid l...
"Add all countries in a region. If a 3 digit UNStats M49 region code is not provided, value is parsed as a\n region name. If any country is already added, it is ignored.\n\n Args:\n region (str): M49 region, intermediate region or subregion to add\n locations (Optional[List[str]]): V...
513
false
OCHA-DAP/hdx-python-api
add_region_location
140,941
LDU_FT/getsentry/rb/execute_commands
LDU_FT
[ "<BEGIN>\n## `add_host`", "Adds a new host to the cluster. This is only really useful for\n unittests as normally hosts are added through the constructor and\n changes after the cluster has been used for the first time are\n unlikely to make sense.\n<END>", "<BEGIN>\n## `remove_host`", "...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the execute_commands API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the execute_commands API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Concurrently executes a sequence of commands on a Redis cluster that are associated with a routing key, returning a new mapping where values are a list of results that correspond to the command in the same position. For example:: >>> cluster.execute_commands({ ... 'foo...
"Concurrently executes a sequence of commands on a Redis cluster that\n are associated with a routing key, returning a new mapping where\n values are a list of results that correspond to the command in the same\n position. For example::\n\n >>> cluster.execute_commands({\n ......
87
false
getsentry/rb
execute_commands
140,942
LDU_FT/kensho-technologies/graphql-compiler/validate_properties_exist
LDU_FT
[ "<BEGIN>\n## `lower_ir`", "Lower the IR into an IR form that can be represented in Gremlin queries.", " Args:\n ir_blocks: list of IR blocks to lower into Gremlin-compatible form\n query_metadata_table: QueryMetadataTable object containing all metadata collected during\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the validate_properties_exist API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the validate_properties_exist API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi...
Validate that the specified property names are indeed defined on the given class.
"Validate that the specified property names are indeed defined on the given class."
786
false
kensho-technologies/graphql-compiler
validate_properties_exist
140,943
LDU_FT/mapnik/Cascadenik/isOpen
LDU_FT
[ "<BEGIN>\n## `xindexes`", "Generate list of possible indexes into a list of slots.", " Best way to think of this is as a number where each digit might have a different radix.\n E.g.: (10, 10, 10) would return 10 x 10 x 10 = 1000 responses from (0, 0, 0) to (9, 9, 9),\n (2, 2, 2, 2) would re...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the isOpen API. 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 isOpen API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Return true if this filter is not trivially false, i.e. self-contradictory.
"Return true if this filter is not trivially false, i.e. self-contradictory."
123
false
mapnik/Cascadenik
isOpen
140,944
LDU_FT/rvswift/EB/get_sort_order
LDU_FT
[ "<BEGIN>\n## `approximator`", "recursively rank queries\n :param molecules:\n :param options:\n :param sort_order:\n :param frameworks:\n :param ensemble:\n :return:\n<END>", "<BEGIN>\n## `rank_queries`", "rank queries by value added to existing ensemble\n :param molecules:\n :param sc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_sort_order API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_sort_order API. 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...
Count up the total number of scores whose values are positve and negative. If a greater number are negative, then sort in ascending order (e.g. for binding energy estimates) Otherwise, sort in descending order (e.g. for similarity values)
"Count up the total number of scores whose values are positve and negative.\n\tIf a greater number are negative, then sort in ascending order (e.g. for binding energy estimates)\n\tOtherwise, sort in descending order (e.g. for similarity values)"
91
false
rvswift/EB
get_sort_order
140,945
LDU_FT/pybluez/pybluez/_getdevicetuple
LDU_FT
[ "<BEGIN>\n## `btaddrtochars`", "Takes a bluetooth address and returns a tuple with the corresponding\n char values. This can then be used to construct a\n IOBluetoothDevice object, providing the signature of the withAddress:\n selector has been set (as in _setpyobjcsignatures() in this module).", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _getdevicetuple API. 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 _getdevicetuple API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
Returns an (addr, name, COD) device tuple from a IOBluetoothDevice object.
"Returns an (addr, name, COD) device tuple from a IOBluetoothDevice object."
80
false
pybluez/pybluez
_getdevicetuple
140,946
LDU_FT/tipsi/aiozk/render
LDU_FT
[ "<BEGIN>\n## `deserialize`", "Deserializes the given raw bytes into an instance.", " Since this is a subclass of ``Part`` but a top-level one (i.e. no other\n subclass of ``Part`` would have a ``Response`` as a part) this merely\n has to parse the raw bytes and discard the resulting offset....
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the render API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the render API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Creates a composite ``struct`` format and the data to render with it. The format and data are prefixed with a 32-bit integer denoting the number of elements, after which each of the items in the array value are ``render()``-ed and added to the format and data as well.
"Creates a composite ``struct`` format and the data to render with it.\n\n The format and data are prefixed with a 32-bit integer denoting the\n number of elements, after which each of the items in the array value\n are ``render()``-ed and added to the format and data as well."
38
false
tipsi/aiozk
render
140,947
LDU_FT/absent1706/sqlalchemy-mixins/smart_query
LDU_FT
[ "<BEGIN>\n## `to_dict`", "Return dict object with model's data.", " :param nested: flag to return nested relationships' data if true\n :type: bool\n :return: dict\n<END>", "<BEGIN>\n## `with_joined`", "Eagerload for simple cases where we need to just\r\n joined load some relatio...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the smart_query API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the smart_query API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
Does magic Django-ish joins like post___user___name__startswith='Bob' (see https://goo.gl/jAgCyM) Does filtering, sorting and eager loading at the same time. And if, say, filters and sorting need the same joinm it will be done only one. That's why all stuff is combined in single method...
"Does magic Django-ish joins like post___user___name__startswith='Bob'\n (see https://goo.gl/jAgCyM)\n Does filtering, sorting and eager loading at the same time.\n And if, say, filters and sorting need the same joinm it will be done\n only one. That's why all stuff is combined in single m...
46
false
absent1706/sqlalchemy-mixins
smart_query
140,948
LDU_FT/Unity-Technologies/ml-agents/update_reward
LDU_FT
[ "<BEGIN>\n## `get_action`", "Decides actions given observations information, and takes them in environment.\n :param brain_info: A dictionary of brain names and BrainInfo from environment.\n :return: an ActionInfo containing action, memories, values and an object\n to be passed to add experie...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update_reward API. 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_reward API. 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...
Updates reward value for policy. :param new_reward: New reward to save.
"Updates reward value for policy.\n :param new_reward: New reward to save."
171
false
Unity-Technologies/ml-agents
update_reward
140,949
LDU_FT/sanoma/django-arctic/find_field_meta
LDU_FT
[ "<BEGIN>\n## `get_all_fields`", "Returns a list of all field names on the instance.\n<END>", "<BEGIN>\n## `query_string_ordering`", "Add ordering param to the given query string\n :param context: template context\n :param value: examples would be '-id' or 'id'. A minus indicates that the\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_field_meta API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_field_meta API. 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...
In a model, finds the attribute meta connected to the last object when a chain of connected objects is given in a string separated with double underscores.
"In a model, finds the attribute meta connected to the last object when\n a chain of connected objects is given in a string separated with double\n underscores."
85
false
sanoma/django-arctic
find_field_meta
140,950
LDU_FT/Wiredcraft/dopy/unassign_floating_ip
LDU_FT
[ "<BEGIN>\n## `all_floating_ips`", "Lists all of the Floating IPs available on the account.\n<END>", "<BEGIN>\n## `new_floating_ip`", "Creates a Floating IP and assigns it to a Droplet or reserves it to a region.\n<END>", "<BEGIN>\n## `destroy_floating_ip`", "Deletes a Floating IP and removes it from the a...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the unassign_floating_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. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the unassign_floating_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. ...
Unassign a Floating IP from a Droplet. The Floating IP will be reserved in the region but not assigned to a Droplet.
"Unassign a Floating IP from a Droplet.\n The Floating IP will be reserved in the region but not assigned to a Droplet."
12
false
Wiredcraft/dopy
unassign_floating_ip
140,951
LDU_FT/ApproxEng/approxeng.input/find_matching_controllers
LDU_FT
[ "<BEGIN>\n## `map_into_range`", "Map an input function into an output value, clamping such that the magnitude of the output is at most 1.0", " :param low:\n The value in the input range corresponding to zero.\n :param high:\n The value in the input range corresponding to 1.0 or -1.0, dependi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_matching_controllers API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_matching_controllers API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi...
Find a sequence of controllers which match the supplied requirements, or raise an error if no such controllers exist. :param requirements: Zero or more ControllerRequirement instances defining the requirements for controllers. If no item is passed it will be treated as a single requirement with...
"Find a sequence of controllers which match the supplied requirements, or raise an error if no such controllers\n exist.\n\n :param requirements:\n Zero or more ControllerRequirement instances defining the requirements for controllers. If no item is passed it\n will be treated as a single requiremen...
86
false
ApproxEng/approxeng.input
find_matching_controllers
140,952
LDU_FT/saghul/evergreen/sleep
LDU_FT
[ "<BEGIN>\n## `_double_prefix`", "Grow the given deque by doubling, but don't split the second chunk just\n because the first one is small.\n<END>", "<BEGIN>\n## `_merge_prefix`", "Replace the first entries in a deque of strings with a single\n string of up to size bytes.", " >>> d = col...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the sleep API. 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 sleep API. 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...
Yield control to another eligible coroutine until at least *seconds* have elapsed. *seconds* may be specified as an integer, or a float if fractional seconds are desired.
"Yield control to another eligible coroutine until at least *seconds* have\n elapsed.\n\n *seconds* may be specified as an integer, or a float if fractional seconds\n are desired."
79
false
saghul/evergreen
sleep
140,953
LDU_FT/ceph/ceph-deploy/is_running
LDU_FT
[ "<BEGIN>\n## `ceph_is_installed`", "A helper callback to be executed after the connection is made to ensure\n that Ceph is installed.\n<END>", "<BEGIN>\n## `_get_version_output`", "Ignoring errors, call `ceph --version` and return only the version\n portion of the output. For example, output like::"...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_running API. 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 is_running API. 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...
Run a command to check the status of a mon, return a boolean. We heavily depend on the format of the output, if that ever changes we need to modify this. Check daemon status for 3 times output of the status should be similar to:: mon.mira094: running {"version":"0.61.5"} or when it fails:...
"Run a command to check the status of a mon, return a boolean.\n\n We heavily depend on the format of the output, if that ever changes\n we need to modify this.\n Check daemon status for 3 times\n output of the status should be similar to::\n\n mon.mira094: running {\"version\":\"0.61.5\"}\n\n or ...
236
false
ceph/ceph-deploy
is_running
140,954
LDU_FT/rmorshea/dstruct/set_field
LDU_FT
[ "<BEGIN>\n## `datafield`", "A decorator that defines a field for data within a :class:`DataStruct`", " The decorated function becomes the parser for a :class:`DataField` which\n will be assigned to a data structure under the function's defined name.", " Parameters\n ----------\n path: tuple\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_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. The extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_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. The extract...
Forcibly sets field values without parsing
"Forcibly sets field values without parsing"
16
false
rmorshea/dstruct
set_field
140,955
LDU_FT/yhat/ggpy/color_palette
LDU_FT
[ "<BEGIN>\n## `extract_version`", "Return ggplot.__version__ without importing ggplot.", " Extracts version from ggplot/__init__.py\n without importing ggplot, which requires dependencies to be installed.\n<END>", "<BEGIN>\n## `desaturate`", "Decrease the saturation channel of a color by some percent."...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the color_palette API. 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 color_palette API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
Return a list of colors defining a color palette. Availible seaborn palette names: deep, muted, bright, pastel, dark, colorblind Other options: hls, husl, any matplotlib palette Matplotlib paletes can be specified as reversed palettes by appending "_r" to the name or as dark palettes ...
"Return a list of colors defining a color palette.\n\n Availible seaborn palette names:\n deep, muted, bright, pastel, dark, colorblind\n\n Other options:\n hls, husl, any matplotlib palette\n\n Matplotlib paletes can be specified as reversed palettes by appending\n \"_r\" to the name or as da...
44
false
yhat/ggpy
color_palette
140,956
LDU_FT/cogeotiff/rio-tiler/get_vrt_transform
LDU_FT
[ "<BEGIN>\n## `_meters_per_pixel`", "Return the pixel resolution for a given mercator tile zoom and lattitude.", " Parameters\n ----------\n zoom: int\n Mercator zoom level\n lat: float, optional\n Latitude in decimal degree (default: 0)\n tilesize: int, optional\n Mercator ti...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_vrt_transform API. 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_vrt_transform API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Calculate VRT transform. Attributes ---------- src_dst : rasterio.io.DatasetReader Rasterio io.DatasetReader object bounds : list Bounds (left, bottom, right, top) bounds_crs : str Coordinate reference system string (default "epsg:3857") Returns ------- vrt_tran...
"Calculate VRT transform.\n\n Attributes\n ----------\n src_dst : rasterio.io.DatasetReader\n Rasterio io.DatasetReader object\n bounds : list\n Bounds (left, bottom, right, top)\n bounds_crs : str\n Coordinate reference system string (default \"epsg:3857\")\n\n Returns\n -----...
137
false
cogeotiff/rio-tiler
get_vrt_transform
140,957
LDU_FT/bioasp/caspo/mappings_frequency
LDU_FT
[ "<BEGIN>\n## `from_str`", "Creates a literal from a string", " Parameters\n ----------\n string : str\n If the string starts with '!', it's interpreted as a negated variable", " Returns\n -------\n caspo.core.literal.Literal\n Created object inst...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the mappings_frequency 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 mappings_frequency 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...
Plots the frequency of logical conjunction mappings Parameters ---------- df: `pandas.DataFrame`_ DataFrame with columns `frequency` and `mapping` filepath: str Absolute path to a folder where to write the plot Returns ------- plot Generated plot .. _pandas....
"Plots the frequency of logical conjunction mappings\n\n Parameters\n ----------\n df: `pandas.DataFrame`_\n DataFrame with columns `frequency` and `mapping`\n\n filepath: str\n Absolute path to a folder where to write the plot\n\n\n Returns\n -------\n plot\n Generated plot\n\...
366
false
bioasp/caspo
mappings_frequency
140,958
LDU_FT/mdavidsaver/p4p/rpc
LDU_FT
[ "<BEGIN>\n## `_sync`", "I will wait until all pending handlers cothreads have completed\n<END>", "<BEGIN>\n## `close`", "Close PV, disconnecting any clients.", " :param bool destroy: Indicate \"permanent\" closure. Current clients will not see subsequent open().\n :param bool sync: When block...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the rpc API. 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 rpc API. 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...
Decorator marks a method for export. :param type: Specifies which :py:class:`Type` this method will return. The return type (rtype) must be one of: - An instance of :py:class:`p4p.Type` - None, in which case the method must return a :py:class:`p4p.Value` - One of the NT helper classes (eg :py:cla...
"Decorator marks a method for export.\n\n :param type: Specifies which :py:class:`Type` this method will return.\n\n The return type (rtype) must be one of:\n\n - An instance of :py:class:`p4p.Type`\n - None, in which case the method must return a :py:class:`p4p.Value`\n - One of the NT helper classes (e...
201
false
mdavidsaver/p4p
rpc
140,959
LDU_FT/eight04/pyAPNG/from_bytes
LDU_FT
[ "<BEGIN>\n## `parse_chunks`", "Parse PNG bytes into multiple chunks. ", "\t:arg bytes b: The raw bytes of the PNG file.\n\t:return: A generator yielding :class:`Chunk`.\n\t:rtype: Iterator[Chunk]\n<END>", "<BEGIN>\n## `make_chunk`", "Create a raw chunk by composing chunk type and data. It\n\tcalculates chun...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the from_bytes API. 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 from_bytes API. 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...
Create :class:`PNG` from raw bytes. :arg bytes b: The raw bytes of the PNG file. :rtype: :class:`PNG`
"Create :class:`PNG` from raw bytes.\n\t\t\n\t\t:arg bytes b: The raw bytes of the PNG file.\n\t\t:rtype: :class:`PNG`"
58
false
eight04/pyAPNG
from_bytes
140,960
LDU_FT/ptmcg/littletable/as_html
LDU_FT
[ "<BEGIN>\n## `copy_template`", "Create empty copy of the current table, with copies of all\n index definitions.\n<END>", "<BEGIN>\n## `clone`", "Create full copy of the current table, including table contents\n and index definitions.\n<END>", "<BEGIN>\n## `create_index`", "Create a new...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the as_html API. 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 as_html API. 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...
Output the table as a rudimentary HTML table. @param fields: fields in the table to be shown in the table - listing '*' as a field will add all unnamed fields - starting a field name with '-' will suppress that name @type fields: list of strings or a single ...
"Output the table as a rudimentary HTML table.\n @param fields: fields in the table to be shown in the table\n - listing '*' as a field will add all unnamed fields\n - starting a field name with '-' will suppress that name\n @type fields: list of strings or a si...
75
false
ptmcg/littletable
as_html
140,961
LDU_FT/Chilipp/model-organization/ordered_yaml_dump
LDU_FT
[ "<BEGIN>\n## `dir_contains`", "Check if a file of directory is contained in another.", " Parameters\n ----------\n dirname: str\n The base directory that should contain `path`\n path: str\n The name of a directory or file that should be in `dirname`\n exists: bool\n If True, ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the ordered_yaml_dump API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the ordered_yaml_dump API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Dumps the stream from an OrderedDict. Taken from http://stackoverflow.com/questions/5121931/in-python-how-can-you-load-yaml- mappings-as-ordereddicts
"Dumps the stream from an OrderedDict.\n Taken from\n\n http://stackoverflow.com/questions/5121931/in-python-how-can-you-load-yaml-\n mappings-as-ordereddicts"
161
false
Chilipp/model-organization
ordered_yaml_dump
140,962
LDU_FT/SpikeInterface/spikeextractors/write_sorting
LDU_FT
[ "<BEGIN>\n## `write_recording`", "Save recording extractor to MEArec format.\n Parameters\n ----------\n recording: RecordingExtractor\n Recording extractor object to be saved\n save_path: str\n .h5 or .hdf5 path\n<END>", "<BEGIN>\n## `write_sorting`", "Save s...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the write_sorting API. 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 write_sorting API. 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...
Save sorting extractor to MEArec format. Parameters ---------- sorting: SortingExtractor Sorting extractor object to be saved save_path: str .h5 or .hdf5 path sampling_frequency: int Sampling frequency in Hz
"Save sorting extractor to MEArec format.\n Parameters\n ----------\n sorting: SortingExtractor\n Sorting extractor object to be saved\n save_path: str\n .h5 or .hdf5 path\n sampling_frequency: int\n Sampling frequency in Hz"
115
false
SpikeInterface/spikeextractors
write_sorting
140,963
LDU_FT/hozn/coilmq/subscriber_count
LDU_FT
[ "<BEGIN>\n## `server_from_config`", "Gets a configured L{coilmq.server.StompServer} from specified config.", " If `config` is None, global L{coilmq.config.config} var will be used instead.", " The `server_class` and `additional_kwargs` are primarily hooks for using this method\n from a testing enviro...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the subscriber_count API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the subscriber_count API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Returns a count of the number of subscribers. If destination is specified then it only returns count of subscribers for that specific destination. @param destination: The optional topic/queue destination (e.g. '/queue/foo') @type destination: C{str}
"Returns a count of the number of subscribers.\n\n If destination is specified then it only returns count of subscribers \n for that specific destination.\n\n @param destination: The optional topic/queue destination (e.g. '/queue/foo')\n @type destination: C{str}"
211
false
hozn/coilmq
subscriber_count
140,964
LDU_FT/Guake/guake/gen_accel_switch_tabN
LDU_FT
[ "<BEGIN>\n## `mk_tab_context_menu`", "Create the context menu for a notebook tab\n<END>", "<BEGIN>\n## `mk_notebook_context_menu`", "Create the context menu for the notebook\n<END>", "<BEGIN>\n## `trayicon_toggled`", "If the gconf var use_trayicon be changed, this method will\n be called and will s...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the gen_accel_switch_tabN 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_accel_switch_tabN 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 callback (which called by accel key) to go to the Nth tab.
"Generates callback (which called by accel key) to go to the Nth tab."
184
false
Guake/guake
gen_accel_switch_tabN
140,965
LDU_FT/The-Politico/politico-civic-election-night/get_bodies
LDU_FT
[ "<BEGIN>\n## `get_images`", "Object of images serialized by tag name.\n<END>", "<BEGIN>\n## `get_override_votes`", "Votes entered into backend.\n Only used if ``override_ap_votes = True``.\n<END>", "<BEGIN>\n## `get_queryset`", "Returns a queryset of all executive offices holding an election on\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_bodies API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_bodies API. 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...
Bodies with offices up for election on election day.
"Bodies with offices up for election on election day."
62
false
The-Politico/politico-civic-election-night
get_bodies
140,966
LDU_FT/TracyWebTech/django-revproxy/normalize_request_headers
LDU_FT
[ "<BEGIN>\n## `should_stream`", "Function to verify if the proxy_response must be converted into\n a stream.This will be done by checking the proxy_response content-length\n and verify if its length is bigger than one stipulated\n by MIN_STREAMING_LENGTH.", " :param proxy_response: An Instance of url...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the normalize_request_headers API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the normalize_request_headers API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi...
r"""Function used to transform header, replacing 'HTTP\_' to '' and replace '_' to '-' :param request: A HttpRequest that will be transformed :returns: A dictionary with the normalized headers
"r\"\"\"Function used to transform header, replacing 'HTTP\\_' to ''\n and replace '_' to '-'\n\n :param request: A HttpRequest that will be transformed\n :returns: A dictionary with the normalized headers"
41
false
TracyWebTech/django-revproxy
normalize_request_headers
140,967
LDU_FT/blazelibs/blazeutils/find_path_package
LDU_FT
[ "<BEGIN>\n## `workbook_to_reader`", "convert xlwt Workbook instance to an xlrd instance for reading\n<END>", "<BEGIN>\n## `xlsx_to_strio`", "convert xlwt Workbook instance to a BytesIO instance\n<END>", "<BEGIN>\n## `xlsx_to_reader`", "convert xlwt Workbook instance to an xlrd instance for reading\n<END>"...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_path_package API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_path_package API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Takes a file system path and returns the module object of the python package the said path belongs to. If the said path can not be determined, it returns None.
"Takes a file system path and returns the module object of the python\n package the said path belongs to. If the said path can not be\n determined, it returns None."
135
false
blazelibs/blazeutils
find_path_package
140,968
LDU_FT/grycap/cpyutils/t_NUMBER
LDU_FT
[ "<BEGIN>\n## `set_paths`", "Sets the paths where the configuration files will be searched", " * You can have multiple configuration files (e.g. in the /etc/default folder\n and in /etc/appfolder/)\n<END>", "<BEGIN>\n## `config_filename`", "Obtains the first filename found that is included in o...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the t_NUMBER API. 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 t_NUMBER API. 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...
r'(\d+(\.\d*)?|\.\d+)([eE][+-]?\d+)?(kb|gb|mb|tb|pb|Kb|Gb|Mb|Tb|Pb)?
"r'(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?(kb|gb|mb|tb|pb|Kb|Gb|Mb|Tb|Pb)?"
39
false
grycap/cpyutils
t_NUMBER
140,969
LDU_FT/sys-git/certifiable/certify_enum
LDU_FT
[ "<BEGIN>\n## `load_value_from_schema`", "Load a value from a schema defined string.\n<END>", "<BEGIN>\n## `parse_value`", "Convert a string received on the command-line into\n a value or None.", " :param str v:\n The value to parse.\n :param parser:\n The fallback callable to load the...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the certify_enum API. 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 certify_enum API. 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...
Certifier for enum. :param value: The value to be certified. :param kind: The enum type that value should be an instance of. :param bool required: Whether the value can be `None`. Defaults to True. :raises CertifierTypeError: The type is invalid
"Certifier for enum.\n\n :param value:\n The value to be certified.\n :param kind:\n The enum type that value should be an instance of.\n :param bool required:\n Whether the value can be `None`. Defaults to True.\n :raises CertifierTypeError:\n The type is invalid"
100
false
sys-git/certifiable
certify_enum
140,970
LDU_FT/xgfs/NetLSD/_hkt
LDU_FT
[ "<BEGIN>\n## `check_1d`", "Check input to be a vector. Converts lists to np.ndarray.", " Parameters\n ----------\n inp : obj\n Input vector", " Returns\n -------\n numpy.ndarray or None\n Input vector or None", " Examples\n --------\n >>> check_1d([0, 1, 2, 3])\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _hkt API. 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 _hkt API. 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...
Computes heat kernel trace from given eigenvalues, timescales, and normalization. For precise definition, please refer to "NetLSD: Hearing the Shape of a Graph" by A. Tsitsulin, D. Mottin, P. Karras, A. Bronstein, E. Müller. Published at KDD'18. Parameters ---------- eivals : numpy.ndarray ...
"Computes heat kernel trace from given eigenvalues, timescales, and normalization.\n\n For precise definition, please refer to \"NetLSD: Hearing the Shape of a Graph\" by A. Tsitsulin, D. Mottin, P. Karras, A. Bronstein, E. Müller. Published at KDD'18.\n \n Parameters\n ----------\n eivals : numpy.ndarra...
63
false
xgfs/NetLSD
_hkt
140,971
LDU_FT/dmlc/gluon-nlp/evaluate
LDU_FT
[ "<BEGIN>\n## `train`", "Train textCNN model for sentiment analysis.\n<END>", "<BEGIN>\n## `embedding`", "Get tokens, tokens embedding", " Parameters\n ----------\n sentences : List[str]\n sentences for encoding.\n oov_way : str, default avg.\n use **avg**, *...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the evaluate API. 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 evaluate API. 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...
Evaluate the model on the dataset with cache model. Parameters ---------- data_source : NDArray The dataset is evaluated on. batch_size : int The size of the mini-batch. ctx : mx.cpu() or mx.gpu() The context of the computation. Returns ------- loss: float ...
"Evaluate the model on the dataset with cache model.\n\n Parameters\n ----------\n data_source : NDArray\n The dataset is evaluated on.\n batch_size : int\n The size of the mini-batch.\n ctx : mx.cpu() or mx.gpu()\n The context of the computation.\n\n Returns\n -------\n los...
801
false
dmlc/gluon-nlp
evaluate
140,972