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/holgern/pyedflib/setPhysicalDimension
LDU_FT
[ "<BEGIN>\n## `short_path`", "Return relative or absolute path name, whichever is shortest.\n<END>", "<BEGIN>\n## `get_all_dict`", "Return a copy of the __all__ dict with irrelevant items removed.\n<END>", "<BEGIN>\n## `compare`", "Return sets of objects only in __all__, refguide, or completely missing.\n<...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the setPhysicalDimension 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 setPhysicalDimension API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Sets the physical dimension of signal edfsignal ("uV", "BPM", "mA", "Degr.", etc.) :param edfsignal: int :param physical_dimension: str Notes ----- This function is recommended for every signal and can be called only after opening a file in writemode and before the first sample...
"Sets the physical dimension of signal edfsignal (\"uV\", \"BPM\", \"mA\", \"Degr.\", etc.)\n\n :param edfsignal: int\n :param physical_dimension: str\n\n Notes\n -----\n This function is recommended for every signal and can be called only after opening a file in writemode and before ...
135
false
holgern/pyedflib
setPhysicalDimension
40,273
LDU_FT/6809/dragonlib/ascii2token
LDU_FT
[ "<BEGIN>\n## `bin2hexline`", "Format binary data to a Hex-Editor like format...", " >>> data = bytearray([i for i in range(256)])\n >>> print('\\\\n'.join(bin2hexline(data, width=16)))\n 0000 00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f ................\n 0016 10 11 12 13 14 15 16 17 18 19 1a 1b ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the ascii2token API. 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 ascii2token API. 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...
TODO: replace no tokens in comments and strings
"TODO: replace no tokens in comments and strings"
63
false
6809/dragonlib
ascii2token
40,274
LDU_FT/burnash/gspread/values_append
LDU_FT
[ "<BEGIN>\n## `authorize`", "Login to Google API using OAuth2 credentials.\n This is a shortcut function which\n instantiates :class:`gspread.client.Client`\n and performs login right away.", " :returns: :class:`gspread.Client` instance.\n<END>", "<BEGIN>\n## `batch_update`", "Lower-level method ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the values_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 ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the values_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 ext...
Lower-level method that directly calls `spreadsheets.values.append <https://developers.google.com/sheets/api/reference/rest/v4/spreadsheets.values/append>`_. :param str range: The `A1 notation <https://developers.google.com/sheets/api/guides/concepts#a1_notation>`_ of a range to searc...
"Lower-level method that directly calls `spreadsheets.values.append <https://developers.google.com/sheets/api/reference/rest/v4/spreadsheets.values/append>`_.\n\n :param str range: The `A1 notation <https://developers.google.com/sheets/api/guides/concepts#a1_notation>`_\n of a range to s...
226
false
burnash/gspread
values_append
40,275
LDU_FT/bpsmith/tia/detect_colspans
LDU_FT
[ "<BEGIN>\n## `sma`", "If n is 0 then return the ltd mean; else return the n day mean\n<END>", "<BEGIN>\n## `true_range`", "http://en.wikipedia.org/wiki/Average_true_range\n The greatest of the following:\n - Current High less the current Low\n - Current High less the previous Close (absolute value)\n...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the detect_colspans API. 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 detect_colspans API. 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...
Determine if any col spans are present in the values. :param use_actual: if True, check actual_values for span. if False, use the formatted_values :return: self
"Determine if any col spans are present in the values.\n :param use_actual: if True, check actual_values for span. if False, use the formatted_values\n :return: self"
226
false
bpsmith/tia
detect_colspans
40,276
LDU_FT/NerdWalletOSS/savage/_before_flush_handler
LDU_FT
[ "<BEGIN>\n## `delete`", "Performs a hard delete on a row, which means the row is deleted from the Savage\n table as well as the archive table.", " :param table: the model class which inherits from\n :class:`~savage.models.user_table.SavageModelMixin` and specifies the model\n of the user tab...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _before_flush_handler API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _before_flush_handler API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Update version ID for all dirty, modified rows
"Update version ID for all dirty, modified rows"
60
false
NerdWalletOSS/savage
_before_flush_handler
40,277
LDU_FT/pandas-profiling/pandas-profiling/histogram
LDU_FT
[ "<BEGIN>\n## `get_rejected_variables`", "Return a list of variable names being rejected for high\n correlation with one of remaining variables.", " Parameters:\n ----------\n threshold : float\n Correlation value which is above the threshold are rejected", " Retur...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the histogram API. 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 histogram API. 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...
Plot an histogram of the data. Parameters ---------- series: Series The data to plot. Returns ------- str The resulting image encoded as a string.
"Plot an histogram of the data.\n\n Parameters\n ----------\n series: Series\n The data to plot.\n\n Returns\n -------\n str\n The resulting image encoded as a string."
91
false
pandas-profiling/pandas-profiling
histogram
40,278
LDU_FT/Projectplace/basepage/get_attribute
LDU_FT
[ "<BEGIN>\n## `click`", "Click web element.", " :param locator: locator tuple or WebElement instance\n :param params: (optional) locator parameters\n :param timeout: (optional) time to wait for element\n :return: None\n<END>", "<BEGIN>\n## `alt_click`", "Alt-click web element.", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_attribute API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_attribute API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
Get attribute from element based on locator with optional parameters. Calls get_element() with expected condition: visibility of element located :param locator: locator tuple or WebElement instance :param attribute: attribute to return :param params: (optional) locator parameters ...
"Get attribute from element based on locator with optional parameters.\n\n Calls get_element() with expected condition: visibility of element located\n\n :param locator: locator tuple or WebElement instance\n :param attribute: attribute to return\n :param params: (optional) locator parameter...
138
false
Projectplace/basepage
get_attribute
40,279
LDU_FT/jbm950/pygame_toolbox/initialize_shade
LDU_FT
[ "<BEGIN>\n## `initialize_shade`", "This method will create semi-transparent surfaces with a specified\n color. The surface can be toggled on and off.\n ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n Inputs:\n Shade_name - String of the name that you want...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the initialize_shade API. 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 initialize_shade API. 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 method will create semi-transparent surfaces with a specified color. The surface can be toggled on and off. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Inputs: Shade_name - String of the name that you want to associate with the surfac...
"This method will create semi-transparent surfaces with a specified\n color. The surface can be toggled on and off.\n ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n Inputs:\n Shade_name - String of the name that you want to associate with the\n ...
35
false
jbm950/pygame_toolbox
initialize_shade
40,280
LDU_FT/stefanfoulis/django-sendsms/send_messages
LDU_FT
[ "<BEGIN>\n## `_send`", "Private method for send one message.", " :param SmsMessage message: SmsMessage class instance.\n :returns: True if message is sended else False\n :rtype: bool\n<END>", "<BEGIN>\n## `send_messages`", "Sends one or more SmsMessage objects and returns the number of ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the send_messages API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the send_messages API. 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...
Sends one or more SmsMessage objects and returns the number of sms messages sent.
"Sends one or more SmsMessage objects and returns the number of sms\n messages sent."
43
false
stefanfoulis/django-sendsms
send_messages
40,281
LDU_FT/google/pyu2f/InternalRecv
LDU_FT
[ "<BEGIN>\n## `ToByteArray`", "Serialize the command.", " Encodes the command as per the U2F specs, using the standard\n ISO 7816-4 extended encoding. All Commands expect data, so\n Le is always present.", " Returns:\n Python bytearray of the encoded command.\n<END>", "<BEGIN>\n## `_BuildPl...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the InternalRecv API. 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 InternalRecv API. 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...
Receives a message from the device, including defragmenting it.
"Receives a message from the device, including defragmenting it."
95
false
google/pyu2f
InternalRecv
40,282
LDU_FT/michael-lazar/rtv/edit
LDU_FT
[ "<BEGIN>\n## `refresh_content`", "Re-download all subscriptions and reset the page index\n<END>", "<BEGIN>\n## `select_subreddit`", "Store the selected subreddit and return to the subreddit page\n<END>", "<BEGIN>\n## `alias_function`", "Create a RedditContentObject function mapped to a BaseReddit function...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the edit API. 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 edit API. 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...
Edit the wiki page. Convenience function that utilizes :meth:`.AuthenticatedReddit.edit_wiki_page` populating both the ``subreddit`` and ``page`` parameters.
"Edit the wiki page.\n\n Convenience function that utilizes\n :meth:`.AuthenticatedReddit.edit_wiki_page` populating both the\n ``subreddit`` and ``page`` parameters."
919
false
michael-lazar/rtv
edit
40,283
LDU_FT/geomet/geomet/loads
LDU_FT
[ "<BEGIN>\n## `block_splitter`", "Creates a generator by slicing ``data`` into chunks of ``block_size``.", " >>> data = range(10)\n >>> list(block_splitter(data, 2))\n [[0, 1], [2, 3], [4, 5], [6, 7], [8, 9]]", " If ``data`` cannot be evenly divided by ``block_size``, the last block will\n simpl...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the loads API. 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 loads API. 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...
Construct a GeoJSON `dict` from WKB (`string`). The resulting GeoJSON `dict` will include the SRID as an integer in the `meta` object. This was an arbitrary decision made by `geomet, the discussion of which took place here: https://github.com/geomet/geomet/issues/28. In order to be consistent with...
"Construct a GeoJSON `dict` from WKB (`string`).\n\n The resulting GeoJSON `dict` will include the SRID as an integer in the\n `meta` object. This was an arbitrary decision made by `geomet, the\n discussion of which took place here:\n https://github.com/geomet/geomet/issues/28.\n\n In order to be consist...
120
false
geomet/geomet
loads
40,284
LDU_FT/ValvePython/vdf/parse
LDU_FT
[ "<BEGIN>\n## `has_duplicates`", "Returns ``True`` if the dict contains keys with duplicates.\n Recurses through any all keys with value that is ``VDFDict``.\n<END>", "<BEGIN>\n## `parse`", "Deserialize ``s`` (a ``str`` or ``unicode`` instance containing a VDF)\n to a Python object.", " ``mapper...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
Deserialize ``s`` (a ``str`` or ``unicode`` instance containing a VDF) to a Python object. ``mapper`` specifies the Python object used after deserializetion. ``dict` is used by default. Alternatively, ``collections.OrderedDict`` can be used if you wish to preserve key order. Or any object that acts lik...
"Deserialize ``s`` (a ``str`` or ``unicode`` instance containing a VDF)\n to a Python object.\n\n ``mapper`` specifies the Python object used after deserializetion. ``dict` is\n used by default. Alternatively, ``collections.OrderedDict`` can be used if you\n wish to preserve key order. Or any object that ac...
24
false
ValvePython/vdf
parse
40,285
LDU_FT/astropy/regions/separation
LDU_FT
[ "<BEGIN>\n## `ds9_objects_to_string`", "Converts a `list` of `~regions.Region` to DS9 region string.", " Parameters\n ----------\n regions : `list`\n List of `~regions.Region` objects\n coordsys : `str`, optional\n This overrides the coordinate system frame for all regions.\n De...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the separation API. 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 separation API. 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...
r"""Separation to another pixel coordinate. This is the two-dimensional cartesian separation :math:`d` with .. math:: d = \sqrt{(x_1 - x_2) ^ 2 + (y_1 - y_2) ^ 2} Parameters ---------- other : `PixCoord` Other pixel coordinate Returns -...
"r\"\"\"Separation to another pixel coordinate.\n\n This is the two-dimensional cartesian separation :math:`d` with\n\n .. math::\n d = \\sqrt{(x_1 - x_2) ^ 2 + (y_1 - y_2) ^ 2}\n\n Parameters\n ----------\n other : `PixCoord`\n Other pixel coordinate\n\n ...
237
false
astropy/regions
separation
40,286
LDU_FT/poulp/zenipy/error
LDU_FT
[ "<BEGIN>\n## `message`", "Display a simple message", " :param text: text inside the window\n :type text: str\n :param title: title of the window\n :type title: str\n :param width: window width\n :type width: int\n :param height: window height\n :type height: int\n :param timeout: clos...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the error API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the error API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
Display a simple error :param text: text inside the window :type text: str :param title: title of the window :type title: str :param width: window width :type width: int :param height: window height :type height: int :param timeout: close the window after n seconds :type timeout...
"Display a simple error\n\n :param text: text inside the window\n :type text: str\n :param title: title of the window\n :type title: str\n :param width: window width\n :type width: int\n :param height: window height\n :type height: int\n :param timeout: close the window after n seconds\n :...
33
false
poulp/zenipy
error
40,287
LDU_FT/jbasko/configmanager/is_default
LDU_FT
[ "<BEGIN>\n## `values`", "Returns a mapping of items to their new values. The mapping includes only items whose value or raw string value\n has changed in the context.\n<END>", "<BEGIN>\n## `changes`", "Returns a mapping of items to their effective change objects which include the old values\n an...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_default API. 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_default API. 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...
``True`` if values of all config items in this section and its subsections have their values equal to defaults or have no value set.
"``True`` if values of all config items in this section and its subsections\n have their values equal to defaults or have no value set."
120
false
jbasko/configmanager
is_default
40,288
LDU_FT/anchore/anchore/format
LDU_FT
[ "<BEGIN>\n## `get_current_user_info`", "Return the metadata about the current user as supplied by the anchore.io service. Includes permissions and tier access.", " :return: Dict of user metadata\n<END>", "<BEGIN>\n## `sync`", "Sync (download) latest policies from the Anchore.io service.\n<END>", "<BEGI...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the format API. 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 format API. 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 ...
Modified from logging/__init__.py in python 2.7 lib Format the specified record as text. The record's attribute dictionary is used as the operand to a string formatting operation which yields the returned string. Before formatting the dictionary, a couple of preparatory steps a...
"Modified from logging/__init__.py in python 2.7 lib\n\n Format the specified record as text.\n\n The record's attribute dictionary is used as the operand to a\n string formatting operation which yields the returned string.\n Before formatting the dictionary, a couple of preparatory steps\n ...
151
false
anchore/anchore
format
40,289
LDU_FT/NicolasLM/spinach/schedule_batch
LDU_FT
[ "<BEGIN>\n## `_reset`", "Initialization that must happen before the arbiter is (re)started\n<END>", "<BEGIN>\n## `attach_tasks`", "Attach a set of tasks.", " A task cannot be scheduled or executed before it is attached to an\n Engine.", " >>> tasks = Tasks()\n >>> spin.attach_t...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the schedule_batch API. 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 schedule_batch API. 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...
Schedule many jobs at once. Scheduling jobs in batches allows to enqueue them fast by avoiding round-trips to the broker. :arg batch: :class:`Batch` instance containing jobs to schedule
"Schedule many jobs at once.\n\n Scheduling jobs in batches allows to enqueue them fast by avoiding\n round-trips to the broker.\n\n :arg batch: :class:`Batch` instance containing jobs to schedule"
93
false
NicolasLM/spinach
schedule_batch
40,290
LDU_FT/ultrabug/py3status/get_color_for_name
LDU_FT
[ "<BEGIN>\n## `load_from_file`", "Return user-written class object from given path.\n<END>", "<BEGIN>\n## `prepare_module`", "Ready the module to get it ready to start.\n<END>", "<BEGIN>\n## `error_output`", "Something is wrong with the module so we want to output the error to\n the i3bar\n<END>", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_color_for_name 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_color_for_name API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
Create a custom color for a given string. This allows the screenshots to each have a unique color but also for that color to be consistent.
"Create a custom color for a given string.\n This allows the screenshots to each have a unique color but also for that\n color to be consistent."
514
false
ultrabug/py3status
get_color_for_name
40,291
LDU_FT/sci-bots/pygtkhelpers/animation_dialog
LDU_FT
[ "<BEGIN>\n## `gcall`", "Calls a function, with the given arguments inside Gtk's main loop.\n Example::\n gcall(lbl.set_text, \"foo\")", " If this call would be made in a thread there could be problems, using\n it inside Gtk's main loop makes it thread safe.\n<END>", "<BEGIN>\n## `invoke_in_mai...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the animation_dialog API. 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 animation_dialog API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
.. versionadded:: v0.19 Parameters ---------- images : list Filepaths to images or :class:`gtk.Pixbuf` instances. delay_s : float, optional Number of seconds to display each frame. Default: ``1.0``. loop : bool, optional If ``True``, restart animation after last ima...
".. versionadded:: v0.19\n\n Parameters\n ----------\n images : list\n Filepaths to images or :class:`gtk.Pixbuf` instances.\n delay_s : float, optional\n Number of seconds to display each frame.\n\n Default: ``1.0``.\n loop : bool, optional\n If ``True``, restart animation af...
240
false
sci-bots/pygtkhelpers
animation_dialog
40,292
LDU_FT/twosigma/marbles/assertDateTimesPast
LDU_FT
[ "<BEGIN>\n## `get_stack_info`", "Capture locals, module name, filename, and line number from the\n stacktrace to provide the source of the assertion error and\n formatted note.\n<END>", "<BEGIN>\n## `assertBetween`", "Fail if ``obj`` is not between ``lower`` and ``upper``.", " If ``strict=True`...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the assertDateTimesPast 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 assertDateTimesPast 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...
Fail if any elements in ``sequence`` are not in the past. If the max element is a datetime, "past" is defined as anything prior to ``datetime.now()``; if the max element is a date, "past" is defined as anything prior to ``date.today()``. If ``strict=True``, fail unless all elements in ...
"Fail if any elements in ``sequence`` are not in the past.\n\n If the max element is a datetime, \"past\" is defined as anything\n prior to ``datetime.now()``; if the max element is a date,\n \"past\" is defined as anything prior to ``date.today()``.\n\n If ``strict=True``, fail unless all e...
199
false
twosigma/marbles
assertDateTimesPast
40,293
LDU_FT/maartenbreddels/ipyvolume/xyzlim
LDU_FT
[ "<BEGIN>\n## `volshow`", "Deprecated: please use ipyvolume.quickvolshow or use the ipyvolume.pylab interface.\n<END>", "<BEGIN>\n## `quickvolshow`", "Visualize a 3d array using volume rendering.", " :param data: 3d numpy array\n :param lighting: boolean, to use lighting or not, if set to false, lighti...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the xyzlim API. 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 xyzlim API. 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 ...
Set limits or all axis the same, if vmax not given, use [-vmin, vmin].
"Set limits or all axis the same, if vmax not given, use [-vmin, vmin]."
141
false
maartenbreddels/ipyvolume
xyzlim
40,294
LDU_FT/SoCo/SoCo/to_dict
LDU_FT
[ "<BEGIN>\n## `_post`", "Try 3 times to request the content.", " :param headers: The HTTP headers\n :type headers: dict\n :param body: The body of the HTTP post\n :type body: str\n :param retries: The number of times to retry before giving up\n :type retries: int\n :param timeout: The time t...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the to_dict API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the to_dict API. 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 dict representation of the `DidlResource`. Args: remove_nones (bool, optional): Optionally remove dictionary elements when their value is `None`. Returns: dict: a dict representing the `DidlResource`
"Return a dict representation of the `DidlResource`.\n\n Args:\n remove_nones (bool, optional): Optionally remove dictionary\n elements when their value is `None`.\n\n Returns:\n dict: a dict representing the `DidlResource`"
663
false
SoCo/SoCo
to_dict
40,295
LDU_FT/valohai/valohai-yaml/get_parameter_defaults
LDU_FT
[ "<BEGIN>\n## `validate`", "Validate (and possibly typecast) the given parameter value value.", " :param value: Parameter value\n :return: Typecast parameter value\n :raises ValidationErrors: if there were validation errors\n<END>", "<BEGIN>\n## `format_cli`", "Build a single parameter a...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_parameter_defaults API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_parameter_defaults API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
Get a dict mapping parameter names to their defaults (if set). :rtype: dict[str, object]
"Get a dict mapping parameter names to their defaults (if set).\n :rtype: dict[str, object]"
42
false
valohai/valohai-yaml
get_parameter_defaults
40,296
LDU_FT/cltl/KafNafParserPy/add_linguistic_processor
LDU_FT
[ "<BEGIN>\n## `set_id`", "Set the property identifier\n @type pid: string\n @param pid: property identifier\n<END>", "<BEGIN>\n## `add_property`", "Adds a new property to the property layer\n @type pid: string\n @param pid: property identifier\n @type label: string\n @...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_linguistic_processor API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_linguistic_processor API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio...
Adds a linguistic processor to a certain layer @type layer: string @param layer: the name of the layer @type my_lp: L{Clp} @param my_lp: the linguistic processor
"Adds a linguistic processor to a certain layer\n @type layer: string\n @param layer: the name of the layer\n @type my_lp: L{Clp}\n @param my_lp: the linguistic processor"
270
false
cltl/KafNafParserPy
add_linguistic_processor
40,297
LDU_FT/python-rope/rope/redo
LDU_FT
[ "<BEGIN>\n## `find_occurrences`", "Return a list of `Location`\\s", " If `unsure` is `True`, possible matches are returned, too. You\n can use `Location.unsure` to see which are unsure occurrences.\n `resources` can be a list of `rope.base.resource.File`\\s that\n should be searched for occurrences...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the redo API. 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 redo API. 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...
Redo undone changes from the history When `change` is `None`, the last undone change will be redone. If change is not `None` it should be an item from `self.redo_list`; this change and all changes that depend on it will be redone. In both cases the list of redone changes will ...
"Redo undone changes from the history\n\n When `change` is `None`, the last undone change will be\n redone. If change is not `None` it should be an item from\n `self.redo_list`; this change and all changes that depend on\n it will be redone. In both cases the list of redone changes\n ...
312
false
python-rope/rope
redo
40,298
LDU_FT/mattsolo1/hmmerclust/fetch_gbwithparts
LDU_FT
[ "<BEGIN>\n## `fetch_gbwithparts`", "Download genbank files from NCBI using Biopython Entrez efetch.", " Args:\n list_of_NC_accessions (list): a list of strings, e.g ['NC_015758', 'NC_002695']\n email (string): NCBI wants your email\n folder (string): Where the gb files download to, gene...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the fetch_gbwithparts API. 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 fetch_gbwithparts API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Download genbank files from NCBI using Biopython Entrez efetch. Args: list_of_NC_accessions (list): a list of strings, e.g ['NC_015758', 'NC_002695'] email (string): NCBI wants your email folder (string): Where the gb files download to, generally './genomes/'
"Download genbank files from NCBI using Biopython Entrez efetch.\n\n Args:\n list_of_NC_accessions (list): a list of strings, e.g ['NC_015758', 'NC_002695']\n email (string): NCBI wants your email\n folder (string): Where the gb files download to, generally './genomes/'"
40
false
mattsolo1/hmmerclust
fetch_gbwithparts
40,299
LDU_FT/jalanb/pysyte/streamer
LDU_FT
[ "<BEGIN>\n## `get_caselessly`", "Find the sought key in the given dictionary regardless of case", " >>> things = {'Fred' : 9}\n >>> print(get_caselessly(things, 'fred'))\n 9\n<END>", "<BEGIN>\n## `append_value`", "Append those items to the values for that key\n<END>", "<BEGIN>\n## `extend_values`...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the streamer API. 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 streamer API. 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...
Open a stream for the first file in arguments, or stdin
"Open a stream for the first file in arguments, or stdin"
224
false
jalanb/pysyte
streamer
40,300
LDU_FT/PySimpleGUI/PySimpleGUI/QueryHowDoI
LDU_FT
[ "<BEGIN>\n## `read_mail`", "Reads late emails from IMAP server and displays them in the Window\n :param window: window to display emails in\n :return:\n<END>", "<BEGIN>\n## `runCommand`", "run shell command", "\t@param cmd: command to execute\n\t@param timeout: timeout for command execution", "\t@re...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the QueryHowDoI API. 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 QueryHowDoI API. 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...
Kicks off a subprocess to send the 'Query' to HowDoI Prints the result, which in this program will route to a gooeyGUI window :param Query: text english question to ask the HowDoI web engine :return: nothing
"Kicks off a subprocess to send the 'Query' to HowDoI\n Prints the result, which in this program will route to a gooeyGUI window\n :param Query: text english question to ask the HowDoI web engine\n :return: nothing"
110
false
PySimpleGUI/PySimpleGUI
QueryHowDoI
40,301
LDU_FT/Loudr/pale/format_endpoint_returns_doc
LDU_FT
[ "<BEGIN>\n## `py_doc_trim`", "Trim a python doc string.", " This example is nipped from https://www.python.org/dev/peps/pep-0257/,\n which describes how to conventionally format and trim docstrings.", " It has been modified to replace single newlines with a space, but leave\n multiple consecutive ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the format_endpoint_returns_doc API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclu...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the format_endpoint_returns_doc API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclu...
Return documentation about the resource that an endpoint returns.
"Return documentation about the resource that an endpoint returns."
107
false
Loudr/pale
format_endpoint_returns_doc
40,302
LDU_FT/Parquery/icontract/_representable
LDU_FT
[ "<BEGIN>\n## `_collapse_invariants`", "Collect invariants from the bases and merge them with the invariants in the namespace.\n<END>", "<BEGIN>\n## `_collapse_preconditions`", "Collapse function preconditions with the preconditions collected from the base classes.", " :param base_preconditions: precondit...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _representable API. 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 _representable API. 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...
Check whether we want to represent the value in the error message on contract breach. We do not want to represent classes, methods, modules and functions. :param value: value related to an AST node :return: True if we want to represent it in the violation error
"Check whether we want to represent the value in the error message on contract breach.\n\n We do not want to represent classes, methods, modules and functions.\n\n :param value: value related to an AST node\n :return: True if we want to represent it in the violation error"
122
false
Parquery/icontract
_representable
40,303
LDU_FT/kiwiz/gkeepapi/add
LDU_FT
[ "<BEGIN>\n## `login`", "Authenticate to Google with the provided credentials.", " Args:\n email (str): The account to use.\n password (str): The account password.\n android_id (str): An identifier for this client.", " Raises:\n LoginException: If there...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
Add a new item to the list. Args: text (str): The text. checked (bool): Whether this item is checked. sort (int): Item id for sorting.
"Add a new item to the list.\n\n Args:\n text (str): The text.\n checked (bool): Whether this item is checked.\n sort (int): Item id for sorting."
164
false
kiwiz/gkeepapi
add
40,304
LDU_FT/kdeldycke/maildir-deduplicate/pretty_diff
LDU_FT
[ "<BEGIN>\n## `check_differences`", "In-depth check of mail differences.", " Compare all mails of the duplicate set with each other, both in size\n and content. Raise an error if we're not within the limits imposed by\n the threshold setting.\n<END>", "<BEGIN>\n## `diff`", "Return differ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the pretty_diff API. 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 pretty_diff API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
Returns a verbose unified diff between two mails' normalized body.
"Returns a verbose unified diff between two mails' normalized body."
68
false
kdeldycke/maildir-deduplicate
pretty_diff
40,305
LDU_FT/kata198/AdvancedHTMLParser/removeChild
LDU_FT
[ "<BEGIN>\n## `getRootNodes`", "getRootNodes - Gets all objects at the \"root\" (first level; no parent). Use this if you may have multiple roots (not children of <html>)\n Use this method to get objects, for example, in an AJAX request where <html> may not be your root.", " Note: I...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the removeChild API. 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 removeChild API. 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...
removeChild - Remove a child tag, if present. @param child <AdvancedTag> - The child to remove @return - The child [with parentNode cleared] if removed, otherwise None. NOTE: This removes a tag. If removing a text block, use #removeText function. If y...
"removeChild - Remove a child tag, if present.\n\n @param child <AdvancedTag> - The child to remove\n\n @return - The child [with parentNode cleared] if removed, otherwise None.\n\n NOTE: This removes a tag. If removing a text block, use #removeText function.\n ...
541
false
kata198/AdvancedHTMLParser
removeChild
40,306
LDU_FT/czepluch/pysecp256k1/ecdsa_verify_raw
LDU_FT
[ "<BEGIN>\n## `_ecdsa_sign_recoverable`", "Takes a message of 32 bytes and a private key\n Returns a recoverable signature of length 64\n<END>", "<BEGIN>\n## `_parse_to_recoverable_signature`", "Returns a parsed recoverable signature of length 65 bytes\n<END>", "<BEGIN>\n## `ecdsa_sign_compact`", "T...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the ecdsa_verify_raw API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the ecdsa_verify_raw API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Takes a message, the signature being verified and a pubkey Returns 1 if signature is valid with given pubkey
"Takes a message, the signature being verified and a pubkey\n Returns 1 if signature is valid with given pubkey"
14
false
czepluch/pysecp256k1
ecdsa_verify_raw
40,307
LDU_FT/PSPC-SPAC-buyandsell/von_anchor/get
LDU_FT
[ "<BEGIN>\n## `least_role`", "Return the TRUSTEE indy-sdk role for an anchor acting in an AnchorSmith capacity.", " :return: TRUSTEE role\n<END>", "<BEGIN>\n## `send_nym`", "Send input anchor's cryptonym (including DID, verification key, plus optional alias and role)\n to the distributed ledger...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
Return enum instance corresponding to input relation string
"Return enum instance corresponding to input relation string"
734
false
PSPC-SPAC-buyandsell/von_anchor
get
40,308
LDU_FT/BYU-PCCL/holodeck/teleport_camera
LDU_FT
[ "<BEGIN>\n## `malloc`", "Allocates a block of shared memory, and returns a numpy array whose data corresponds with that block.", " Args:\n key (str): The key to identify the block.\n shape (list of int): The shape of the numpy array to allocate.\n dtype (type): The numpy ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the teleport_camera API. 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 teleport_camera API. 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...
Queue up a teleport camera command to stop the day cycle. By the next tick, the camera's location and rotation will be updated
"Queue up a teleport camera command to stop the day cycle.\n By the next tick, the camera's location and rotation will be updated"
111
false
BYU-PCCL/holodeck
teleport_camera
40,309
LDU_FT/sparklingpandas/sparklingpandas/var
LDU_FT
[ "<BEGIN>\n## `_prep_pandas_groupby`", "Prepare the old school pandas group by based approach.\n<END>", "<BEGIN>\n## `_group`", "Group together the values with the same key.\n<END>", "<BEGIN>\n## `groups`", "Returns dict {group name -> group labels}.\n<END>", "<BEGIN>\n## `indices`", "Returns dict {gro...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the var API. 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 var API. 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...
Compute standard deviation of groups, excluding missing values. For multiple groupings, the result index will be a MultiIndex.
"Compute standard deviation of groups, excluding missing values.\n\n For multiple groupings, the result index will be a MultiIndex."
87
false
sparklingpandas/sparklingpandas
var
40,310
LDU_FT/ShopRunner/apparate/update_databricks
LDU_FT
[ "<BEGIN>\n## `_update_value`", "creates (if needed) and updates the value of the key in the config with a\n value entered by the user", " Parameters\n ----------\n config: ConfigParser object\n existing configuration\n key: string\n key to update\n instruction: string\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update_databricks API. 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 update_databricks API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
upload library, update jobs using the same major version, and delete libraries with the same major and lower minor versions (depending on update_jobs and cleanup flags) Parameters ---------- logger: logging object configured in cli_commands.py path: string path with name of egg ...
"upload library, update jobs using the same major version,\n and delete libraries with the same major and lower minor versions\n (depending on update_jobs and cleanup flags)\n\n Parameters\n ----------\n logger: logging object\n configured in cli_commands.py\n path: string\n path with na...
44
false
ShopRunner/apparate
update_databricks
40,311
LDU_FT/docker/docker-py/run
LDU_FT
[ "<BEGIN>\n## `compare_version`", "Compare docker versions", " >>> v1 = '1.9'\n >>> v2 = '1.10'\n >>> compare_version(v1, v2)\n 1\n >>> compare_version(v2, v1)\n -1\n >>> compare_version(v2, v2)\n 0\n<END>", "<BEGIN>\n## `datetime_to_timestamp`", "Convert a UTC datetime to a Unix time...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the run API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the run API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
Run a container. By default, it will wait for the container to finish and return its logs, similar to ``docker run``. If the ``detach`` argument is ``True``, it will start the container and immediately return a :py:class:`Container` object, similar to ``docker run -d``. Example...
"Run a container. By default, it will wait for the container to finish\n and return its logs, similar to ``docker run``.\n\n If the ``detach`` argument is ``True``, it will start the container\n and immediately return a :py:class:`Container` object, similar to\n ``docker run -d``.\n\n ...
998
false
docker/docker-py
run
40,312
LDU_FT/cournape/audiolab/info_factory
LDU_FT
[ "<BEGIN>\n## `info_factory`", "Create a system_info class.", " Parameters\n ----------\n name : str\n name of the library\n libnames : seq\n list of libraries to look for\n headers : seq\n list of headers to look for\n classname : str\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the info_factory API. 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 info_factory API. 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...
Create a system_info class. Parameters ---------- name : str name of the library libnames : seq list of libraries to look for headers : seq list of headers to look for classname : str name of the returned class section : st...
"Create a system_info class.\n\n Parameters\n ----------\n name : str\n name of the library\n libnames : seq\n list of libraries to look for\n headers : seq\n list of headers to look for\n classname : str\n name of the returned class\n ...
24
false
cournape/audiolab
info_factory
40,313
LDU_FT/jantman/pypi-download-stats/per_distro_data
LDU_FT
[ "<BEGIN>\n## `_path_for_file`", "Generate the path on disk for a specified project and date.", " :param project_name: the PyPI project name for the data\n :type project: str\n :param date: the date for the data\n :type date: datetime.datetime\n :return: path for where to store...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the per_distro_data API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the per_distro_data API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
Return download data by distro name and version. :return: dict of cache data; keys are datetime objects, values are dict of distro name/version (str) to count (int). :rtype: dict
"Return download data by distro name and version.\n\n :return: dict of cache data; keys are datetime objects, values are\n dict of distro name/version (str) to count (int).\n :rtype: dict"
135
false
jantman/pypi-download-stats
per_distro_data
40,314
LDU_FT/stevepeak/tornpsql/_reregister_types
LDU_FT
[ "<BEGIN>\n## `_reconnect`", "Closes the existing database connection and re-opens it.\n<END>", "<BEGIN>\n## `_reregister_types`", "Registers existing types for a new connection\n<END>", "<BEGIN>\n## `register_type`", "Callback to register data types when reconnect\n<END>", "<BEGIN>\n## `mogrify`", "Fr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _reregister_types API. 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 _reregister_types API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Registers existing types for a new connection
"Registers existing types for a new connection"
22
false
stevepeak/tornpsql
_reregister_types
40,315
LDU_FT/crossbario/zlmdb/is_null
LDU_FT
[ "<BEGIN>\n## `is_null`", "Check if the scalar value or tuple/list value is NULL.", " :param value: Value to check.\n :type value: a scalar or tuple or list", " :return: Returns ``True`` if and only if the value is NULL (scalar value is None\n or _any_ tuple/list elements are None).\n :rtype...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_null API. 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 is_null API. 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...
Check if the scalar value or tuple/list value is NULL. :param value: Value to check. :type value: a scalar or tuple or list :return: Returns ``True`` if and only if the value is NULL (scalar value is None or _any_ tuple/list elements are None). :rtype: bool
"Check if the scalar value or tuple/list value is NULL.\n\n :param value: Value to check.\n :type value: a scalar or tuple or list\n\n :return: Returns ``True`` if and only if the value is NULL (scalar value is None\n or _any_ tuple/list elements are None).\n :rtype: bool"
30
false
crossbario/zlmdb
is_null
40,316
LDU_FT/hobson/pug-ann/sim_trainer
LDU_FT
[ "<BEGIN>\n## `hourly`", "Get detailed (hourly) weather data for the requested days and location", " The Weather Underground URL for Fresno, CA on 1/1/2011 is:\n http://www.wunderground.com/history/airport/KFAT/2011/1/1/DailyHistory.html?MR=1&format=1", " This will fail periodically on Travis, b/c wun...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the sim_trainer API. 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 sim_trainer API. 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...
Simulate a trainer by activating its DataSet and returning DataFrame(columns=['Output','Target'])
"Simulate a trainer by activating its DataSet and returning DataFrame(columns=['Output','Target'])"
81
false
hobson/pug-ann
sim_trainer
40,317
LDU_FT/ozak/georasters/aggregate
LDU_FT
[ "<BEGIN>\n## `map_pixel`", "Usage:\n map_pixel(xcoord, ycoord, x_cell_size, y_cell_size, xmin, ymax)", " where:\n xmin is leftmost X coordinate in system", " ymax is topmost Y coordinate in system", " Example:\n raster = HMISea.tif", " ndv, xsize, ysize, ge...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the aggregate API. 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 aggregate API. 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...
geo.aggregate(block_size) Returns copy of raster aggregated to smaller resolution, by adding cells.
"geo.aggregate(block_size)\n\n Returns copy of raster aggregated to smaller resolution, by adding cells."
136
false
ozak/georasters
aggregate
40,318
LDU_FT/andycasey/ads/get_info
LDU_FT
[ "<BEGIN>\n## `execute`", "Execute the http request to the export service\n :return ads-classic formatted export string\n<END>", "<BEGIN>\n## `_get_field`", "Queries the api for a single field for the record by `id`.\n This method should only be called indirectly by cached properties.\n :p...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_info API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_info API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
Print all of the instantiated Singletons
"Print all of the instantiated Singletons"
30
false
andycasey/ads
get_info
40,319
LDU_FT/coreGreenberet/homematicip-rest-api/enable_events
LDU_FT
[ "<BEGIN>\n## `from_json`", "this function will load the functional channel object \r\n from a json object and the given groups \r", " Args:\r\n js(dict): the json object\r\n groups(Iterable[Group]): the groups for referencing\n<END>", "<BEGIN>\n## `download_configuration`",...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the enable_events API. 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 enable_events API. 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...
Connects to the websocket. Returns a listening task.
"Connects to the websocket. Returns a listening task."
84
false
coreGreenberet/homematicip-rest-api
enable_events
40,320
LDU_FT/ehansis/ozelot/close_session
LDU_FT
[ "<BEGIN>\n## `_query`", "Base query for an url and xpath", " Args:\n url (str): URL to search\n xpath (str): xpath to search (may be ``None``)\n<END>", "<BEGIN>\n## `get`", "Get a URL via the cache.", " If the URL exists in the cache, return the cached value. Otherwise ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the close_session API. 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 close_session API. 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...
Commit and close the DB session associated with this task (no error is raised if None is open) Args: commit (bool): commit session before closing (default=True)
"Commit and close the DB session associated with this task (no error is raised if None is open)\n\n Args:\n commit (bool): commit session before closing (default=True)"
203
false
ehansis/ozelot
close_session
40,321
LDU_FT/jadolg/rocketchat_API/groups_history
LDU_FT
[ "<BEGIN>\n## `directory`", "Search by users or channels on all server.\n<END>", "<BEGIN>\n## `spotlight`", "Searches for users or rooms that are visible to the user.\n<END>", "<BEGIN>\n## `users_info`", "Gets a user’s information, limited to the caller’s permissions.\n<END>", "<BEGIN>\n## `chat_search`"...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the groups_history API. 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 groups_history API. 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...
Retrieves the messages from a private group.
"Retrieves the messages from a private group."
82
false
jadolg/rocketchat_API
groups_history
40,322
LDU_FT/davenquinn/Attitude/noise_covariance
LDU_FT
[ "<BEGIN>\n## `bingham_pdf`", "From the *Encyclopedia of Paleomagnetism*", " From Onstott, 1980:\n Vector resultant: R is analogous to eigenvectors\n of T.\n Eigenvalues are analogous to |R|/N.\n<END>", "<BEGIN>\n## `report`", "Outputs a standalone HTML 'report card' for a\n measurement (or se...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the noise_covariance API. 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 noise_covariance API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Covariance taking into account the 'noise covariance' of the data. This is technically more realistic for continuously sampled data. From Faber, 1993
"Covariance taking into account the 'noise covariance' of the data.\n This is technically more realistic for continuously sampled data.\n From Faber, 1993"
138
false
davenquinn/Attitude
noise_covariance
40,323
LDU_FT/joke2k/faker/checksum
LDU_FT
[ "<BEGIN>\n## `checksum`", "Calculates the checksum char used for the 16th char.\n Author: Vincenzo Palazzo\n<END>", "<BEGIN>\n## `binary`", "Returns random binary blob.", " Default blob size is 1 Mb.\n<END>", "<BEGIN>\n## `md5`", "Calculates the md5 hash of a given string\n :example 'cf...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the checksum API. 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 checksum API. 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...
Calculate and return control digit for given list of digits based on ISO7064, MOD 11,10 standard.
"Calculate and return control digit for given list of digits based on\n ISO7064, MOD 11,10 standard."
334
false
joke2k/faker
checksum
40,324
LDU_FT/IdentityPython/oidcendpoint/make_cookie_content
LDU_FT
[ "<BEGIN>\n## `client_authentication`", "Deal with client authentication", " :param request: The refresh access token request\n :param auth: Client authentication information\n :param kwargs: Extra keyword arguments\n :return: dictionary containing client id, client authentication met...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the make_cookie_content API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the make_cookie_content API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
Create and return a cookies content If you only provide a `seed`, a HMAC gets added to the cookies value and this is checked, when the cookie is parsed again. If you provide both `seed` and `enc_key`, the cookie gets protected by using AEAD encryption. This provides both a MAC over the whole cookie ...
"Create and return a cookies content\n\n If you only provide a `seed`, a HMAC gets added to the cookies value\n and this is checked, when the cookie is parsed again.\n\n If you provide both `seed` and `enc_key`, the cookie gets protected\n by using AEAD encryption. This provides both a MAC over the whole co...
180
false
IdentityPython/oidcendpoint
make_cookie_content
40,325
LDU_FT/exoscale/cs/check_key
LDU_FT
[ "<BEGIN>\n## `check_key`", "Validate that the specified key is allowed according the provided\n list of patterns.\n<END>", "<BEGIN>\n## `cs_encode`", "Encode URI component like CloudStack would do before signing.", " java.net.URLEncoder.encode(s).replace('+', '%20')\n<END>", "<BEGIN>\n## `transform`...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the check_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 extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the check_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 extract...
Validate that the specified key is allowed according the provided list of patterns.
"Validate that the specified key is allowed according the provided\n list of patterns."
22
false
exoscale/cs
check_key
40,326
LDU_FT/heikomuller/sco-models/list_models
LDU_FT
[ "<BEGIN>\n## `init_registry`", "Initialize a model registry with a list of model definitions in Json\n format.", " Parameters\n ----------\n mongo : scodata.MongoDBFactory\n Connector for MongoDB\n model_defs : list()\n List of model definitions in Json-like format\n clear_collec...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the list_models API. 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_models API. 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...
List models in the database. Takes optional parameters limit and offset for pagination. Parameters ---------- limit : int Limit number of models in the result set offset : int Set offset in list (order as defined by object store) Returns ...
"List models in the database. Takes optional parameters limit and\n offset for pagination.\n\n Parameters\n ----------\n limit : int\n Limit number of models in the result set\n offset : int\n Set offset in list (order as defined by object store)\n\n Retur...
27
false
heikomuller/sco-models
list_models
40,327
LDU_FT/Adarnof/adarnauth-esi/receive_callback
LDU_FT
[ "<BEGIN>\n## `sso_redirect`", "Generates a :model:`esi.CallbackRedirect` for the specified request.\n Redirects to EVE for login.\n Accepts a view or URL name as a redirect after SSO.\n<END>", "<BEGIN>\n## `receive_callback`", "Parses SSO callback, validates, retrieves :model:`esi.Token`, and internally...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the receive_callback API. 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 receive_callback API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Parses SSO callback, validates, retrieves :model:`esi.Token`, and internally redirects to the target url.
"Parses SSO callback, validates, retrieves :model:`esi.Token`, and internally redirects to the target url."
45
false
Adarnof/adarnauth-esi
receive_callback
40,328
LDU_FT/kapadia/usgs/metadata
LDU_FT
[ "<BEGIN>\n## `datasets`", "This method is used to find datasets available for searching.\n By passing no parameters except node, all available datasets\n are returned. Additional parameters such as temporal range\n and spatial bounding box can be used to find datasets that \n provide more specific dat...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the metadata API. 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 metadata API. 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...
Request metadata for a given scene in a USGS dataset. :param dataset: :param node: :param entityids: :param extended: Send a second request to the metadata url to get extended metadata on the scene. :param api_key:
"Request metadata for a given scene in a USGS dataset.\n\n :param dataset:\n :param node:\n :param entityids:\n :param extended:\n Send a second request to the metadata url to get extended metadata on the scene.\n :param api_key:"
62
false
kapadia/usgs
metadata
40,329
LDU_FT/thecynic/pylutron/_dispatch_legacy_subscriber
LDU_FT
[ "<BEGIN>\n## `_send_locked`", "Sends the specified command to the lutron controller.", " Assumes self._lock is held.\n<END>", "<BEGIN>\n## `_do_login_locked`", "Executes the login procedure (telnet) as well as setting up some\n connection defaults like turning off the prompt, etc.\n<END>", "<BEGIN>\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _dispatch_legacy_subscriber API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclu...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _dispatch_legacy_subscriber API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclu...
This dispatches the registered callback for 'obj'. This is only used for legacy subscribers since new users should register with the target object directly.
"This dispatches the registered callback for 'obj'. This is only used\n for legacy subscribers since new users should register with the target\n object directly."
73
false
thecynic/pylutron
_dispatch_legacy_subscriber
40,330
LDU_FT/emc-openstack/storops/expand
LDU_FT
[ "<BEGIN>\n## `attach`", "Attaches lun, snap or member snap of cg snap to host.", " Don't pass cg snapshot in as `lun_or_snap`.", " :param lun_or_snap: the lun, snap, or a member snap of cg snap\n :param skip_hlu_0: whether to skip hlu 0\n :return: the hlu number\n<END>", "<BEGIN>...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the expand API. 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 expand API. 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 ...
expand the LUN to a new size :param new_size: new size in bytes. :return: the old size
"expand the LUN to a new size\n\n :param new_size: new size in bytes.\n :return: the old size"
222
false
emc-openstack/storops
expand
40,331
LDU_FT/SuryaSankar/flask-sqlalchemy-booster/as_obj
LDU_FT
[ "<BEGIN>\n## `_isinstance`", "Checks if the specified model instance matches the class model.\n By default this method will raise a `ValueError` if the model is not of\n expected type.", " Args:", " model (Model) : The instance to be type checked", " raise_error (b...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the as_obj API. 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_obj API. 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 ...
A decorator used to return a JSON response with a dict representation of the model instance. It expects the decorated function to return a Model instance. It then converts the instance to dicts and serializes it into a json response Examples: >>> @app.route('/api/shipments...
"A decorator used to return a JSON response with a dict\n representation of the model instance. It expects the decorated function\n to return a Model instance. It then converts the instance to dicts\n and serializes it into a json response\n\n Examples:\n\n >>> @app.route('/api/s...
177
false
SuryaSankar/flask-sqlalchemy-booster
as_obj
40,332
LDU_FT/wummel/dosage/namer
LDU_FT
[ "<BEGIN>\n## `exception`", "Write error message with traceback info.\n<END>", "<BEGIN>\n## `write`", "Write message with indentation, context and optional timestamp.\n<END>", "<BEGIN>\n## `contains_case_insensitive`", "Check if key is in adict. The search is case insensitive.\n<END>", "<BEGIN>\n## `fini...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the namer API. 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 namer API. 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...
Image file name is UNIX time stamp & something for most of the comics...
"Image file name is UNIX time stamp & something for most of the comics..."
141
false
wummel/dosage
namer
40,333
LDU_FT/shichao-an/115wangpan/delete
LDU_FT
[ "<BEGIN>\n## `send`", "Send a formatted API request", " :param request: a formatted request object\n :type request: :class:`.Request`\n :param bool expect_json: if True, raise :class:`.InvalidAPIAccess` if\n response is not in JSON format\n :param bool ignore_content: whet...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the delete API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the delete API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Delete task (does not influence its corresponding directory) :return: whether deletion is successful :raise: :class:`.TaskError` if the task is already deleted
"Delete task (does not influence its corresponding directory)\n\n :return: whether deletion is successful\n :raise: :class:`.TaskError` if the task is already deleted"
100
false
shichao-an/115wangpan
delete
40,334
LDU_FT/KeithSSmith/switcheo-python/order
LDU_FT
[ "<BEGIN>\n## `neo_get_scripthash_from_address`", "Convert a Public Address String to a ScriptHash (Address) String.", " :param address: The Public address to convert.\n :type address: str\n :return: String containing the converted ScriptHash.\n<END>", "<BEGIN>\n## `num2hexstring`", "Converts a numb...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the 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 extracted d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the 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 extracted d...
This function is a wrapper function around the create and execute order functions to help make this processes simpler for the end user by combining these requests in 1 step. Execution of this function is as follows:: order(pair="SWTH_NEO", side="buy", price=0.0002, quantit...
"This function is a wrapper function around the create and execute order functions to help make this processes\n simpler for the end user by combining these requests in 1 step.\n Execution of this function is as follows::\n\n order(pair=\"SWTH_NEO\", side=\"buy\",\n price=0.000...
218
false
KeithSSmith/switcheo-python
order
40,335
LDU_FT/silas/ops/cp
LDU_FT
[ "<BEGIN>\n## `chmod`", "Changes file mode permissions.", " >>> if chmod('/tmp/one', 0755):\n ... print('OK')\n OK", " NOTE: The precending ``0`` is required when using a numerical mode.\n<END>", "<BEGIN>\n## `chown`", "Change file owner and group.", " >>> if chown('/tmp/one', ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the cp API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted docu...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the cp API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted docu...
Copy source to destination. >>> if cp('/tmp/one', '/tmp/two'): ... print('OK') OK
"Copy source to destination.\n\n >>> if cp('/tmp/one', '/tmp/two'):\n ... print('OK')\n OK"
25
false
silas/ops
cp
40,336
LDU_FT/jaijuneja/PyTLDR/summarize
LDU_FT
[ "<BEGIN>\n## `summarize`", "Implements the TextRank summarization algorithm, which follows closely to the PageRank algorithm for ranking\n web pages.", " :param text: a string of text to be summarized, path to a text file, or URL starting with http\n :param length: the length of the output ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the summarize API. 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 summarize API. 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...
Implements the TextRank summarization algorithm, which follows closely to the PageRank algorithm for ranking web pages. :param text: a string of text to be summarized, path to a text file, or URL starting with http :param length: the length of the output summary; either a number of sentences (e...
"Implements the TextRank summarization algorithm, which follows closely to the PageRank algorithm for ranking\n web pages.\n\n :param text: a string of text to be summarized, path to a text file, or URL starting with http\n :param length: the length of the output summary; either a number of sentenc...
30
false
jaijuneja/PyTLDR
summarize
40,337
LDU_FT/jantman/pypi-download-stats/_generate_html
LDU_FT
[ "<BEGIN>\n## `_path_for_file`", "Generate the path on disk for a specified project and date.", " :param project_name: the PyPI project name for the data\n :type project: str\n :param date: the date for the data\n :type date: datetime.datetime\n :return: path for where to store...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _generate_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 ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _generate_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 ex...
Generate the HTML for the specified graphs. :return: :rtype:
"Generate the HTML for the specified graphs.\n\n :return:\n :rtype:"
135
false
jantman/pypi-download-stats
_generate_html
40,338
LDU_FT/satellogic/telluric/chunks
LDU_FT
[ "<BEGIN>\n## `join`", "This method takes a list of rasters and returns a raster that is constructed of all of them\n<END>", "<BEGIN>\n## `merge_all`", "Merge a list of rasters, cropping by a region of interest.\n There are cases that the roi is not precise enough for this cases one can use,\n the ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the chunks API. 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 chunks API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
This method returns GeoRaster chunks out of the original raster. The chunck is evaluated only when fetched from the iterator. Useful when you want to iterate over a big rasters. Parameters ---------- shape : int or tuple, optional The shape of the chunk. Default: 25...
"This method returns GeoRaster chunks out of the original raster.\n\n The chunck is evaluated only when fetched from the iterator.\n Useful when you want to iterate over a big rasters.\n\n Parameters\n ----------\n shape : int or tuple, optional\n The shape of the chunk. De...
261
false
satellogic/telluric
chunks
40,339
LDU_FT/ianclegg/winrmlib/create
LDU_FT
[ "<BEGIN>\n## `_get_rsa_public_key`", "PyOpenSSL does not provide a public method to export the public key from a certificate as a properly formatted\n ASN.1 RSAPublicKey structure. There are 'hacks' which use dump_privatekey(crypto.FILETYPE_ASN1, <public_key>),\n but this dumps the public key within...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
resource can be a URL or a ResourceLocator
"resource can be a URL or a ResourceLocator"
33
false
ianclegg/winrmlib
create
40,340
LDU_FT/mitodl/PyLmod/_spreadsheet2gradebook_multi
LDU_FT
[ "<BEGIN>\n## `unravel_sections`", "Unravels section type dictionary into flat list of sections with\n section type set as an attribute.", " Args:\n section_data(dict): Data return from py:method::get_sections", " Returns:\n list: Flat list of sections with ``sectionT...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _spreadsheet2gradebook_multi API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its concl...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _spreadsheet2gradebook_multi API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its concl...
Transfer grades from spreadsheet to array. Helper function that transfer grades from spreadsheet using ``multi_grade()`` (multiple students at a time). We do this by creating a large array containing all grades to transfer, then make one call to the Gradebook API. Args: ...
"Transfer grades from spreadsheet to array.\n\n Helper function that transfer grades from spreadsheet using\n ``multi_grade()`` (multiple students at a time). We do this by\n creating a large array containing all grades to transfer, then\n make one call to the Gradebook API.\n\n Args:...
190
false
mitodl/PyLmod
_spreadsheet2gradebook_multi
40,341
LDU_FT/dstanek/snake-guice/enclosing_frame
LDU_FT
[ "<BEGIN>\n## `create_child`", "Create a new injector that inherits the state from this injector.", " All bindings are inherited. In the future this may become closer to\n child injectors on google-guice.\n<END>", "<BEGIN>\n## `_validate_func_args`", "Validate decorator args when used to decora...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the enclosing_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 e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the enclosing_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 e...
Get an enclosing frame that skips decorator code
"Get an enclosing frame that skips decorator code"
11
false
dstanek/snake-guice
enclosing_frame
40,342
LDU_FT/ChristopherRabotin/bungiesearch/filter_model_items
LDU_FT
[ "<BEGIN>\n## `update_index`", "Updates the index for the provided model_items.\n :param model_items: a list of model_items (django Model instances, or proxy instances) which are to be indexed/updated or deleted.\n If action is 'index', the model_items must be serializable objects. If action is 'delete', the...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the filter_model_items 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 filter_model_items 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...
Filters the model items queryset based on start and end date.
"Filters the model items queryset based on start and end date."
46
false
ChristopherRabotin/bungiesearch
filter_model_items
40,343
LDU_FT/closeio/redis-hashring/heartbeat
LDU_FT
[ "<BEGIN>\n## `_fetch`", "Internal helper that fetches the ring from Redis, including only active\n nodes/replicas. Returns a list of tuples (start, replica) (see\n _fetch_all docs for more details).\n<END>", "<BEGIN>\n## `_fetch_all`", "Internal helper that fetches the ring from Redis, including...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the heartbeat API. 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 heartbeat API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
Add/update the node in Redis. Needs to be called regularly by the client.
"Add/update the node in Redis. Needs to be called regularly by the\n client."
21
false
closeio/redis-hashring
heartbeat
40,344
LDU_FT/SatelliteQE/nailgun/enable
LDU_FT
[ "<BEGIN>\n## `main`", "Create an identical user account on a pair of satellites.\n<END>", "<BEGIN>\n## `get_organization_id`", "Return the ID of the organization with label ``label``.", " :param server_config: A dict of information about the server being talked\n to. The dict should include the ke...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the enable API. 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 enable API. 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 ...
Enables the RedHat Repository RedHat Repos needs to be enabled first, so that we can sync it. :param synchronous: What should happen if the server returns an HTTP 202 (accepted) status code? Wait for the task to complete if ``True``. Immediately return the server's response oth...
"Enables the RedHat Repository\n\n RedHat Repos needs to be enabled first, so that we can sync it.\n\n :param synchronous: What should happen if the server returns an HTTP\n 202 (accepted) status code? Wait for the task to complete if\n ``True``. Immediately return the server's respo...
695
false
SatelliteQE/nailgun
enable
40,345
LDU_FT/oblalex/verboselib/handle_extensions
LDU_FT
[ "<BEGIN>\n## `execute`", "Adapted `compilemessages <http://bit.ly/1r3glSu>`_ command from Django.\n<END>", "<BEGIN>\n## `native_path`", "Always return a native path, that is unicode on Python 3 and bytestring on\n Python 2.", " Taken `from Django <http://bit.ly/1r3gogZ>`_.\n<END>", "<BEGIN>\n## `fin...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the handle_extensions API. 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 handle_extensions API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Organizes multiple extensions that are separated with commas or passed by using --extension/-e multiple times. Note that the .py extension is ignored here because of the way non-*.py files are handled in ``extract`` messages (they are copied to file.ext.py files to trick xgettext to parse them as Pytho...
"Organizes multiple extensions that are separated with commas or passed by\n using --extension/-e multiple times. Note that the .py extension is ignored\n here because of the way non-*.py files are handled in ``extract`` messages\n (they are copied to file.ext.py files to trick xgettext to parse them as\n ...
29
false
oblalex/verboselib
handle_extensions
40,346
LDU_FT/pgxcentre/geneparse/get_open_func
LDU_FT
[ "<BEGIN>\n## `get_variant_genotypes`", "Get the genotypes from a well formed variant instance.", " Args:\n marker (Variant): A Variant instance.", " Returns:\n A list of Genotypes instance containing a pointer to the variant as\n well as a vector of encoded genot...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_open_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 ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_open_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 ext...
Get the opening function. Args: fn (str): the name of the file. return_fmt (bool): if the file format needs to be returned. Returns: tuple: either a tuple containing two elements: a boolean telling if the format is bgzip, and the opening function.
"Get the opening function.\n\n Args:\n fn (str): the name of the file.\n return_fmt (bool): if the file format needs to be returned.\n\n Returns:\n tuple: either a tuple containing two elements: a boolean telling if the\n format is bgzip, and the opening function."
120
false
pgxcentre/geneparse
get_open_func
40,347
LDU_FT/wdbm/megaparsex/parse
LDU_FT
[ "<BEGIN>\n## `main`", "Loop over a list of input text strings. Parse each string using a list of\n parsers, one included in megaparsex and one defined in this script. If a\n confirmation is requested, seek confirmation, otherwise display any response\n text and engage any triggered functions.\n<END>", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
Parse input text using various triggers, some returning text and some for engaging functions. If triggered, a trigger returns text or True if and if not triggered, returns False. If no triggers are triggered, return False, if one trigger is triggered, return the value returned by that trigger, and if mu...
"Parse input text using various triggers, some returning text and some for\n engaging functions. If triggered, a trigger returns text or True if and if\n not triggered, returns False. If no triggers are triggered, return False, if\n one trigger is triggered, return the value returned by that trigger, and if\n ...
13
false
wdbm/megaparsex
parse
40,348
LDU_FT/farshidce/touchworks-python/get_token
LDU_FT
[ "<BEGIN>\n## `get_token`", "get the security token by connecting to TouchWorks API\n<END>", "<BEGIN>\n## `_token_valid`", "checks if the token cached is valid or has expired by comparing\n the time token was created with current time\n :return: True if token has not expired yet and False is toke...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_token API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_token API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
get the security token by connecting to TouchWorks API
"get the security token by connecting to TouchWorks API"
72
false
farshidce/touchworks-python
get_token
40,349
LDU_FT/uber/tchannel-python/outgoing_connections
LDU_FT
[ "<BEGIN>\n## `should_retry_on_error`", "rules for retry", " :param error:\n ProtocolException that returns from Server\n<END>", "<BEGIN>\n## `client_for`", "Build a synchronous client class for the given Thrift service.", " The generated class accepts a TChannelSyncClient and an optio...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the outgoing_connections 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 outgoing_connections 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 a list of all outgoing connections for this peer.
"Returns a list of all outgoing connections for this peer."
422
false
uber/tchannel-python
outgoing_connections
40,350
LDU_FT/ericjang/tdb/connect
LDU_FT
[ "<BEGIN>\n## `s`", "step to the next node in the execution order\n<END>", "<BEGIN>\n## `get_values`", "returns final values (same result as tf.Session.run())\n<END>", "<BEGIN>\n## `_init_evals_bps`", "HTOps may depend on tf.Tensors that are not in eval. We need to have all inputs to HTOps ready\n\t\tupon ...
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...
establish connection to frontend notebook
"establish connection to frontend notebook"
35
false
ericjang/tdb
connect
40,351
LDU_FT/gofed/gofedlib/commits
LDU_FT
[ "<BEGIN>\n## `compare`", "Compare two snapshots:\n\t\t- return a list of new packages in this snapshot\n\t\t- return a list of new builds in this snapshot", "\t\t:param snapshot: distribution snapshot\n\t\t:type snapshot: DistributionSnapshot\n<END>", "<BEGIN>\n## `branches`", "Return a list of branches fo...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the commits API. 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 commits API. 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...
For given branch return a list of commits. Each commit contains basic information about itself. :param branch: git branch :type branch: [str]{} :param since: minimal timestamp for commit's commit date :type since: int :param to: maximal timestamp for commit's commit date :type to: int
"For given branch return a list of commits.\n\t\tEach commit contains basic information about itself.\n\n\t\t:param branch: git branch\n\t\t:type branch: [str]{}\n\t\t:param since: minimal timestamp for commit's commit date\n\t\t:type since: int\n\t\t:param to: maximal timestamp for commit's commit date\n\t\t:type t...
98
false
gofed/gofedlib
commits
40,352
LDU_FT/brunato/lograptor/_read_apps
LDU_FT
[ "<BEGIN>\n## `make_text`", "Make the text representation of a report data element.\n<END>", "<BEGIN>\n## `make_html`", "Make the text representation of a report element as html.\n<END>", "<BEGIN>\n## `make_csv`", "Get the text representation of a report element as csv.\n<END>", "<BEGIN>\n## `make_format...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _read_apps API. 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 _read_apps API. 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...
Read the configuration of applications returning a dictionary :return: A dictionary with application names as keys and configuration \ object as values.
"Read the configuration of applications returning a dictionary\n\n :return: A dictionary with application names as keys and configuration \\\n object as values."
121
false
brunato/lograptor
_read_apps
40,353
LDU_FT/dnephin/PyStaticConfiguration/view_help
LDU_FT
[ "<BEGIN>\n## `build_attributes`", "Return an attributes dictionary with ValueTokens replaced by a\n property which returns the config value.\n<END>", "<BEGIN>\n## `cache_as_field`", "Cache a functions return value as the field 'cache_name'.\n<END>", "<BEGIN>\n## `extract_value`", "Given a value pro...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the view_help API. 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 view_help API. 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 a help message describing all the statically configured keys.
"Return a help message describing all the statically configured keys."
49
false
dnephin/PyStaticConfiguration
view_help
40,354
LDU_FT/DallasMorningNews/django-datafreezer/generate_sections
LDU_FT
[ "<BEGIN>\n## `clean`", "Verifies that beginning date is before ending date.\n<END>", "<BEGIN>\n## `get_success_url`", "Ensure the user-originating redirection URL is safe.\n<END>", "<BEGIN>\n## `form_valid`", "Security check complete. Log the user in.\n<END>", "<BEGIN>\n## `map_hubs_to_verticals`", "R...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the generate_sections API. 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 generate_sections API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Return all hubs, slugs, and upload counts.
"Return all hubs, slugs, and upload counts."
63
false
DallasMorningNews/django-datafreezer
generate_sections
40,355
LDU_FT/fitnr/convertdate/nth_day_of_month
LDU_FT
[ "<BEGIN>\n## `to_jd`", "Return Julian day count of given ISO year, week, and day\n<END>", "<BEGIN>\n## `from_jd`", "Return tuple of ISO (year, week, day) for Julian day\n<END>", "<BEGIN>\n## `legal_date`", "Check if this is a legal date in the Julian calendar\n<END>", "<BEGIN>\n## `from_jd`", "Calcula...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the nth_day_of_month API. 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 nth_day_of_month API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Return (year, month, day) tuple that represents nth weekday of month in year. If n==0, returns last weekday of month. Weekdays: Monday=0
"Return (year, month, day) tuple that represents nth weekday of month in year.\n If n==0, returns last weekday of month. Weekdays: Monday=0"
85
false
fitnr/convertdate
nth_day_of_month
40,356
LDU_FT/kajala/django-jacc/_format_date
LDU_FT
[ "<BEGIN>\n## `balance`", "Returns account balance after this entry.\n :return: Decimal\n<END>", "<BEGIN>\n## `get_balance`", "Returns account balance before specified datetime (excluding entries on the datetime).\n :param t: datetime\n :return: Decimal\n<END>", "<BEGIN>\n## `needs_settl...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _format_date API. 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 _format_date API. 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...
Short date format. :param obj: date or datetime or None :return: str
"Short date format.\n :param obj: date or datetime or None\n :return: str"
31
false
kajala/django-jacc
_format_date
40,357
LDU_FT/Yubico/yubikey-manager/usb
LDU_FT
[ "<BEGIN>\n## `openpgp`", "Manage OpenPGP Application.", " Examples:", " \\b\n Set the retries for PIN, Reset Code and Admin PIN to 10:\n $ ykman openpgp set-retries 10 10 10", " \\b\n Require touch to use the authentication key:\n $ ykman openpgp touch aut on\n<END>", "<BEGIN>...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the usb API. 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 usb API. 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...
Enable or disable applications over USB.
"Enable or disable applications over USB."
180
false
Yubico/yubikey-manager
usb
40,358
LDU_FT/adamziel/python_translate/add_resource
LDU_FT
[ "<BEGIN>\n## `load_messages`", "Loads translation found in a directory.", " @type directory: string\n @param directory: The directory to search", " @type catalogue: MessageCatalogue\n @param catalogue: The message catalogue to dump", " @raises: ValueError\n<END>", "<BEGI...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_resource API. 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 add_resource API. 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...
Adds a resource @type format: str @param format: Name of the loader (@see add_loader) @type resource: str @param resource: The resource name @type locale: str @type domain: str @raises: ValueError If the locale contains invalid characters @return:
"Adds a resource\n @type format: str\n @param format: Name of the loader (@see add_loader)\n\n @type resource: str\n @param resource: The resource name\n\n @type locale: str\n @type domain: str\n\n @raises: ValueError If the locale contains invalid characters\n @r...
136
false
adamziel/python_translate
add_resource
40,359
LDU_FT/xtrementl/focus/start
LDU_FT
[ "<BEGIN>\n## `_new_token`", "Appends new token to token stream.", " `chars`\n List of token characters. Defaults to current token list.\n `line_no`\n Line number for token. Defaults to current line number.\n<END>", "<BEGIN>\n## `_process_string`", "Process...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the start API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the start API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
Starts a new task matching the provided name. `task_name` Name of existing task to start. Returns boolean. * Raises a ``TaskNotFound`` exception if task doesn't exist, an ``InvalidTaskConfig` exception if task config file is invalid, or ...
"Starts a new task matching the provided name.\n\n `task_name`\n Name of existing task to start.\n\n Returns boolean.\n\n * Raises a ``TaskNotFound`` exception if task doesn't exist, an\n ``InvalidTaskConfig` exception if task config file is invalid, or\n ...
413
false
xtrementl/focus
start
40,360
LDU_FT/ryanvarley/ExoData/addParam
LDU_FT
[ "<BEGIN>\n## `load_db_from_url`", "Loads the database from a gzipped version of the system folder, by default the one located in the oec_gzip repo\n in the OpenExoplanetCatalogue GitHub group.", " The database is loaded from the url in memory", " :param url: url to load (must be gzipped version of sy...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the addParam API. 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 addParam API. 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...
Checks the key dosnt already exist, adds alternate names to a seperate list Future - format input and add units - logging
"Checks the key dosnt already exist, adds alternate names to a seperate list\n\n Future\n - format input and add units\n - logging"
133
false
ryanvarley/ExoData
addParam
40,361
LDU_FT/acutesoftware/virtual-AI-simulator/bld_rafter_deflection
LDU_FT
[ "<BEGIN>\n## `calc_basics`", "calculate various aspects of the structure\n<END>", "<BEGIN>\n## `bld_rafter_deflection`", "calculate rafter deflections - see test_calc_building_design.py for \n Sample values for equations below from Structures II course\n<END>", "<BEGIN>\n## `main`", "Prototype to see h...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the bld_rafter_deflection 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 bld_rafter_deflection API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
calculate rafter deflections - see test_calc_building_design.py for Sample values for equations below from Structures II course
"calculate rafter deflections - see test_calc_building_design.py for \n Sample values for equations below from Structures II course"
86
false
acutesoftware/virtual-AI-simulator
bld_rafter_deflection
40,362
LDU_FT/TadLeonard/tfatool/parse_datetime
LDU_FT
[ "<BEGIN>\n## `up_down_by_arrival`", "Monitors a local directory and a remote FlashAir directory and\n generates sets of new files to be uploaded or downloaded.\n Sets to upload are generated in a tuple\n like (Direction.up, {...}), while download sets to download\n are generated in a tuple like (Direc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_datetime API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_datetime API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
The arrow library is sadly not good enough to parse certain date strings. It even gives unexpected results for partial date strings such as '2015-01' or just '2015', which I think should be seen as 'the first moment of 2014'. This function should overcome those limitations.
"The arrow library is sadly not good enough to parse\n certain date strings. It even gives unexpected results for partial\n date strings such as '2015-01' or just '2015', which I think\n should be seen as 'the first moment of 2014'.\n This function should overcome those limitations."
34
false
TadLeonard/tfatool
parse_datetime
40,363
LDU_FT/planetarypy/pvl/append
LDU_FT
[ "<BEGIN>\n## `append`", "Adds a (name, value) pair, doesn't overwrite the value if it already\n exists.\n<END>", "<BEGIN>\n## `__insert_wrapper`", "Make sure the arguments given to the insert methods are correct\n<END>", "<BEGIN>\n## `_get_index_for_insert`", "Get the index of the key to insert bef...
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 ...
Adds a (name, value) pair, doesn't overwrite the value if it already exists.
"Adds a (name, value) pair, doesn't overwrite the value if it already\n exists."
63
false
planetarypy/pvl
append
40,364
LDU_FT/niklasb/webkit-server/connect
LDU_FT
[ "<BEGIN>\n## `xpath`", "Finds another node by XPath originating at the current node.\n<END>", "<BEGIN>\n## `css`", "Finds another node by a CSS selector relative to the current node.\n<END>", "<BEGIN>\n## `get_bool_attr`", "Returns the value of a boolean HTML attribute like `checked` or `disabled`\n<END>"...
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...
Returns a new socket connection to this server.
"Returns a new socket connection to this server."
30
false
niklasb/webkit-server
connect
40,365
LDU_FT/nint8835/jigsaw/load_plugins
LDU_FT
[ "<BEGIN>\n## `load_manifests`", "Loads all plugin manifests on the plugin path\n<END>", "<BEGIN>\n## `load_manifest`", "Loads a plugin manifest from a given path", " :param path: The folder to load the plugin manifest from\n<END>", "<BEGIN>\n## `load_plugin`", "Loads a plugin from the given manif...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load_plugins API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load_plugins API. 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...
Loads all plugins :param args: Arguments to pass to the plugins
"Loads all plugins\n\n :param args: Arguments to pass to the plugins"
25
false
nint8835/jigsaw
load_plugins
40,366
LDU_FT/Microsoft/LightGBM/eval_valid
LDU_FT
[ "<BEGIN>\n## `check_dependicies`", "Check the dynamic symbol versions.", " Parameters\n ----------\n objdump_string : string\n The dynamic symbol table entries of the file (result of `objdump -T` command).\n<END>", "<BEGIN>\n## `_objective_function_wrapper`", "Decorate an objective function....
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the eval_valid API. 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 eval_valid API. 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...
Evaluate for validation data. Parameters ---------- feval : callable or None, optional (default=None) Customized evaluation function. Should accept two parameters: preds, train_data, and return (eval_name, eval_result, is_higher_better) or list of such tuples...
"Evaluate for validation data.\n\n Parameters\n ----------\n feval : callable or None, optional (default=None)\n Customized evaluation function.\n Should accept two parameters: preds, train_data,\n and return (eval_name, eval_result, is_higher_better) or list of suc...
379
false
Microsoft/LightGBM
eval_valid
40,367
LDU_FT/cloudera/cm_api/_set_attrs
LDU_FT
[ "<BEGIN>\n## `set_basic_auth`", "Set up basic auth for the client\n @param username: Login name.\n @param password: Login password.\n @param realm: The authentication realm.\n @return: The current object\n<END>", "<BEGIN>\n## `execute`", "Submit an HTTP request.\n @param http_method: GET, POST,...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _set_attrs API. 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 _set_attrs API. 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...
Sets all the attributes in the dictionary. Optionally, allows setting read-only attributes (e.g. when deserializing from JSON) and skipping JSON deserialization of values.
"Sets all the attributes in the dictionary. Optionally, allows setting\n read-only attributes (e.g. when deserializing from JSON) and skipping\n JSON deserialization of values."
561
false
cloudera/cm_api
_set_attrs
40,368
LDU_FT/SpriteLink/NIPAP/add_prefix
LDU_FT
[ "<BEGIN>\n## `_serve_file`", "Call Paste's FileApp (a WSGI application) to serve the file\n at the specified path\n<END>", "<BEGIN>\n## `extract_prefix_attr`", "Extract prefix attributes from arbitary dict.\n<END>", "<BEGIN>\n## `extract_pool_attr`", "Extract pool attributes from arbitary dict.\n<E...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_prefix API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_prefix API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
Add prefix according to the specification. The following keys can be used: vrf ID of VRF to place the prefix in prefix the prefix to add if already known family address family (4 or 6) description A short description ...
"Add prefix according to the specification.\n\n The following keys can be used:\n\n vrf ID of VRF to place the prefix in\n prefix the prefix to add if already known\n family address family (4 or 6)\n description A short description...
454
false
SpriteLink/NIPAP
add_prefix
40,369
LDU_FT/koriakin/binflakes/zext
LDU_FT
[ "<BEGIN>\n## `to_sint`", "Converts the word to a BinInt, treating it as a signed number.\n<END>", "<BEGIN>\n## `sar`", "Performs an arithmetic right-shift of a BinWord by the given number\n of bits. Bits shifted out of the word are lost. The word is\n filled on the left with copies of the top ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the zext API. 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 zext API. 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...
Zero-extends a word to a larger width. It is an error to specify a smaller width (use ``extract`` instead to crop off the extra bits).
"Zero-extends a word to a larger width. It is an error to specify\n a smaller width (use ``extract`` instead to crop off the extra bits)."
59
false
koriakin/binflakes
zext
40,370
LDU_FT/bitesofcode/projexui/setRecordSet
LDU_FT
[ "<BEGIN>\n## `addEntry`", "Creates a new entry item for this widget.\r", " :param key | <str>\r\n value | <variant>\n<END>", "<BEGIN>\n## `dictionary`", "Returns a dictionary of the key/value pairing for the items in\r\n this widget.\r", " :return {<s...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the setRecordSet API. 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 setRecordSet API. 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...
Sets the record set instance that this widget will use. :param recordSet | <orb.RecordSet>
"Sets the record set instance that this widget will use.\r\n \r\n :param recordSet | <orb.RecordSet>"
4,917
true
bitesofcode/projexui
setRecordSet
40,371
LDU_FT/arviz-devs/arviz/save_data
LDU_FT
[ "<BEGIN>\n## `generate_dims_coords`", "Generate default dimensions and coordinates for a variable.", " Parameters\n ----------\n shape : tuple[int]\n Shape of the variable\n var_name : str\n Name of the variable. Used in the default name, if necessary\n dims : list\n List of ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the save_data API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the save_data API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
Save dataset as a netcdf file. WARNING: Only idempotent in case `data` is InferenceData Parameters ---------- data : InferenceData, or any object accepted by `convert_to_inference_data` Object to be saved filename : str name or path of the file to load trace group : str (option...
"Save dataset as a netcdf file.\n\n WARNING: Only idempotent in case `data` is InferenceData\n\n Parameters\n ----------\n data : InferenceData, or any object accepted by `convert_to_inference_data`\n Object to be saved\n filename : str\n name or path of the file to load trace\n group : ...
674
false
arviz-devs/arviz
save_data
40,372