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/Vital-Fernandez/dazer/drawcircle | LDU_FT | [
"<BEGIN>\n## `linfit`",
"Least squares linear fit.",
" Fit a straight line `f(x_true) = a + bx` to points `(x_true, y)`. Returns\n coefficients `a` and `b` that minimize the squared error.",
" Parameters\n ----------\n x_true : array_like\n one dimensional array of `x_true` data with `n... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the drawcircle API.
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 drawcircle API.
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... | Draws a circle centered on (x, y) with radius r. All these are in the coordinates of your initial image !
You give these x and y in the usual ds9 pixels, (0,0) is bottom left.
I will convert this into the right PIL coordiates. | "Draws a circle centered on (x, y) with radius r. All these are in the coordinates of your initial image !\n You give these x and y in the usual ds9 pixels, (0,0) is bottom left.\n I will convert this into the right PIL coordiates." | 228 | false | Vital-Fernandez/dazer | drawcircle | 37,073 | |
LDU_FT/maweigert/gputools/fftshift | LDU_FT | [
"<BEGIN>\n## `gaussian_filter`",
"blurs data with a gaussian kernel of given sigmas",
" Parameters\n ----------\n data: ndarray\n 2 or 3 dimensional array \n sigma: scalar or tuple\n the sigma of the gaussian \n truncate: float \n truncate the kernel after truncate*sigma \n... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the fftshift API.
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 fftshift API.
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... | gpu version of fftshift for numpy arrays or OCLArrays
Parameters
----------
arr_obj: numpy array or OCLArray (float32/complex64)
the array to be fftshifted
axes: list or None
the axes over which to shift (like np.fft.fftshift)
if None, all axes are taken
res_g:
if gi... | "gpu version of fftshift for numpy arrays or OCLArrays\n\n Parameters\n ----------\n arr_obj: numpy array or OCLArray (float32/complex64)\n the array to be fftshifted\n axes: list or None\n the axes over which to shift (like np.fft.fftshift)\n if None, all axes are taken\n res_g:\n ... | 199 | false | maweigert/gputools | fftshift | 37,074 | |
LDU_FT/rootpy/rootpy/cd_previous | LDU_FT | [
"<BEGIN>\n## `total`",
"Return the total yield and its associated statistical uncertainty.\n<END>",
"<BEGIN>\n## `sys_names`",
"Return a list of unique systematic names from OverallSys and HistoSys\n<END>",
"<BEGIN>\n## `iter_sys`",
"Iterate over sys_name, overall_sys, histo_sys.\n overall_sys or h... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the cd_previous API.
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 cd_previous API.
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... | cd to the gDirectory before this file was open. | "cd to the gDirectory before this file was open." | 878 | false | rootpy/rootpy | cd_previous | 37,075 | |
LDU_FT/nooperpudd/weibopy/request | LDU_FT | [
"<BEGIN>\n## `authorize_url`",
"authorization url\n request weibo authorization url\n :return:\n code string 用于第二步调用oauth2/access_token接口,获取授权后的access token。\n state string 如果传递参数,会回传该参数\n<END>",
"<BEGIN>\n## `request`",
":param method: str, http method [\"GET\",\"POST\... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the request API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the request API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted... | :param method: str, http method ["GET","POST","PUT"]
:param suffix: the url suffix
:param data:
:return: | ":param method: str, http method [\"GET\",\"POST\",\"PUT\"]\n :param suffix: the url suffix\n :param data:\n :return:" | 21 | false | nooperpudd/weibopy | request | 37,076 | |
LDU_FT/marcolagi/quantulum/extract_spellout_values | LDU_FT | [
"<BEGIN>\n## `get_numwords`",
"Convert number words to integers in a given text.\n<END>",
"<BEGIN>\n## `get_dimension_permutations`",
"Get all possible dimensional definitions for an entity.\n<END>",
"<BEGIN>\n## `download_wiki`",
"Download WikiPedia pages of ambiguous units.\n<END>",
"<BEGIN>\n## `disa... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the extract_spellout_values API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the extract_spellout_values API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion... | Convert spelled out numbers in a given text to digits. | "Convert spelled out numbers in a given text to digits." | 30 | false | marcolagi/quantulum | extract_spellout_values | 37,077 | |
LDU_FT/tethysplatform/condorpy/_get_all_descendants | LDU_FT | [
"<BEGIN>\n## `_get_all_descendants`",
"traverses all descendants nodes\n :raises: CircularDependency if self is contained in descendants\n :return: a set containing all descendant nodes\n<END>",
"<BEGIN>\n## `set_scheduler`",
"Defines the remote scheduler",
" Args:\n host (st... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_all_descendants 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_all_descendants API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | traverses all descendants nodes
:raises: CircularDependency if self is contained in descendants
:return: a set containing all descendant nodes | "traverses all descendants nodes\n :raises: CircularDependency if self is contained in descendants\n :return: a set containing all descendant nodes" | 52 | false | tethysplatform/condorpy | _get_all_descendants | 37,078 | |
LDU_FT/onecodex/onecodex/_file_size | LDU_FT | [
"<BEGIN>\n## `plot_heatmap`",
"Plot heatmap of taxa abundance/count data for several samples.",
" Parameters\n ----------\n rank : {'auto', 'kingdom', 'phylum', 'class', 'order', 'family', 'genus', 'species'}, optional\n Analysis will be restricted to abundances of taxa at the sp... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _file_size API.
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 _file_size API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extrac... | Return size of a single file, compressed or uncompressed | "Return size of a single file, compressed or uncompressed" | 304 | false | onecodex/onecodex | _file_size | 37,079 | |
LDU_FT/daboth/pagan/choose_weapon | LDU_FT | [
"<BEGIN>\n## `init_weapon_list`",
"Initialize the possible weapon\n combinations.\n<END>",
"<BEGIN>\n## `grind_hash_for_colors`",
"Extracts information from the hashcode\n to generate different colors. Returns a\n list of colors in (r,g,b) tupels.\n<END>",
"<BEGIN>\n## `split_sequence`",
"Generat... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the choose_weapon API.
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 choose_weapon API.
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... | Chooses a weapon from a given list
based on the decision. | "Chooses a weapon from a given list\n based on the decision." | 46 | false | daboth/pagan | choose_weapon | 37,080 | |
LDU_FT/llazzaro/django-scheduler/_cook_slots | LDU_FT | [
"<BEGIN>\n## `daily_table`",
"Display a nice table with occurrences and action buttons.\n Arguments:\n start - hour at which the day starts\n end - hour at which the day ends\n increment - size of a time slot (in minutes)\n<END>",
"<BEGIN>\n## `_cook_slots`",
"Prepare slots to be displayed... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _cook_slots API.
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 _cook_slots API.
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... | Prepare slots to be displayed on the left hand side
calculate dimensions (in px) for each slot.
Arguments:
period - time period for the whole series
increment - slot size in minutes | "Prepare slots to be displayed on the left hand side\n calculate dimensions (in px) for each slot.\n Arguments:\n period - time period for the whole series\n increment - slot size in minutes" | 38 | false | llazzaro/django-scheduler | _cook_slots | 37,081 | |
LDU_FT/ankitpopli1891/django-autotranslate/restore_placeholders | LDU_FT | [
"<BEGIN>\n## `humanize_placeholders`",
"Convert placeholders to the (google translate) service friendly form.",
" %(name)s -> __name__\n %s -> __item__\n %d -> __number__\n<END>",
"<BEGIN>\n## `restore_placeholders`",
"Restore placeholders in the translated message.\n<END>",
"<BEGIN>\... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the restore_placeholders 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 restore_placeholders API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | Restore placeholders in the translated message. | "Restore placeholders in the translated message." | 15 | false | ankitpopli1891/django-autotranslate | restore_placeholders | 37,082 | |
LDU_FT/msikma/kanaconv/kana_romaji_lt | LDU_FT | [
"<BEGIN>\n## `_clear_char`",
"Clears the current character and makes the machine ready\n to accept the next character.\n<END>",
"<BEGIN>\n## `_append_unknown_char`",
"Appends the unknown character, in case one was encountered.\n<END>",
"<BEGIN>\n## `_flush_char`",
"Appends the rōmaji characters tha... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the kana_romaji_lt API.
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 kana_romaji_lt API.
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... | Generates a lookup table with the kana characters on the left side
and their rōmaji equivalents as the values.
For the consonant-vowel (cv) characters, we'll generate:
{u'か': ('ka', 'k', 'k', 'ā'),
u'が': ('ga', 'g', 'g', 'ā'),
[...]
Multiple kana character sets can be passed as res... | "Generates a lookup table with the kana characters on the left side\n and their rōmaji equivalents as the values.\n\n For the consonant-vowel (cv) characters, we'll generate:\n\n {u'か': ('ka', 'k', 'k', 'ā'),\n u'が': ('ga', 'g', 'g', 'ā'),\n [...]\n\n Multiple kana character sets can be pas... | 57 | false | msikma/kanaconv | kana_romaji_lt | 37,083 | |
LDU_FT/UniversalDevicesInc/polyglot-v2-python-interface/_startMqtt | LDU_FT | [
"<BEGIN>\n## `init_interface`",
"Grab the ~/.polyglot/.env file for variables\n If you are running Polyglot v2 on this same machine\n then it should already exist. If not create it.\n<END>",
"<BEGIN>\n## `_connect`",
"The callback for when the client receives a CONNACK response from the server.\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _startMqtt API.
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 _startMqtt API.
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... | The client start method. Starts the thread for the MQTT Client
and publishes the connected message. | "The client start method. Starts the thread for the MQTT Client\n and publishes the connected message." | 42 | false | UniversalDevicesInc/polyglot-v2-python-interface | _startMqtt | 37,084 | |
LDU_FT/squaresLab/BugZoo/register_as_default | LDU_FT | [
"<BEGIN>\n## `is_installed`",
"Determines whether the Docker image for a given bug has been installed\n on the server.\n<END>",
"<BEGIN>\n## `register`",
"Dynamically registers a given bug with the server. Note that the\n registration will not persist beyond the lifetime of the server.\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the register_as_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.
T... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the register_as_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.
T... | Registers a coverage extractor class as the default coverage extractor
for a given language. Requires that the coverage extractor class has
already been registered with a given name.
.. code: python
from bugzoo.core import Language
from bugzoo.mgr.coverage import CoverageExtractor, registe... | "Registers a coverage extractor class as the default coverage extractor\n for a given language. Requires that the coverage extractor class has\n already been registered with a given name.\n\n .. code: python\n\n from bugzoo.core import Language\n from bugzoo.mgr.coverage import CoverageExtractor,... | 247 | false | squaresLab/BugZoo | register_as_default | 37,085 | |
LDU_FT/emilydolson/avida-spatial-tools/gen_gradient | LDU_FT | [
"<BEGIN>\n## `gen_gradient`",
"Returns a line of text to add to an environment file, initializing a\n gradient resource with the specified\n name (string), inflow(int), radius(int), and location (tuple of ints)\n<END>",
"<BEGIN>\n## `gen_res`",
"Returns a line of text to add to an environment file, init... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the gen_gradient API.
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 gen_gradient API.
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... | Returns a line of text to add to an environment file, initializing a
gradient resource with the specified
name (string), inflow(int), radius(int), and location (tuple of ints) | "Returns a line of text to add to an environment file, initializing a\n gradient resource with the specified\n name (string), inflow(int), radius(int), and location (tuple of ints)" | 189 | false | emilydolson/avida-spatial-tools | gen_gradient | 37,086 | |
LDU_FT/PrefPy/prefpy/get_alternatives | LDU_FT | [
"<BEGIN>\n## `mse`",
"Description:\r\n Calculates the Mean Squared Error (MSE) of\r\n an estimation on flat numpy ndarrays.\r\n Parameters:\r\n mean: actual value (numpy ndarray)\r\n estimator: estimated value of the mean (numpy ndarray)\n<END>",
"<BEGIN>\n## `sse`",
"Descr... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_alternatives API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_alternatives API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | Description:
Returns the alternative(s) with the given ranking in the
computed aggregate ranking. An error is thrown if the
ranking does not exist. | "Description:\r\n Returns the alternative(s) with the given ranking in the\r\n computed aggregate ranking. An error is thrown if the\r\n ranking does not exist." | 316 | false | PrefPy/prefpy | get_alternatives | 37,087 | |
LDU_FT/dsoprea/NsqSpinner/set_servers | LDU_FT | [
"<BEGIN>\n## `__send_rdy`",
"Determine the RDY value, and set it. It can either be a static value\n a callback, or None. If it's None, we'll calculate the value based on\n our limits and connection counts.",
" The documentation recommends starting with (1), but since we are always\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_servers API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_servers API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | Set the current collection of servers. The entries are 2-tuples of
contexts and nodes. | "Set the current collection of servers. The entries are 2-tuples of \n contexts and nodes." | 50 | false | dsoprea/NsqSpinner | set_servers | 37,088 | |
LDU_FT/jart/fabulous/compile_speedup | LDU_FT | [
"<BEGIN>\n## `lorem_gotham`",
"Cheesy Gothic Poetry Generator",
" Uses Python generators to yield eternal angst.",
" When you need to generate random verbiage to test your code or\n typographic design, let's face it... Lorem Ipsum and \"the quick\n brown fox\" are old and boring!",
" What you... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the compile_speedup API.
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 compile_speedup API.
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... | Tries to compile/link the C version of this module
Like it really makes a huge difference. With a little bit of luck
this should *just work* for you.
You need:
- Python >= 2.5 for ctypes library
- gcc (``sudo apt-get install gcc``) | "Tries to compile/link the C version of this module\n\n Like it really makes a huge difference. With a little bit of luck\n this should *just work* for you.\n\n You need:\n\n - Python >= 2.5 for ctypes library\n - gcc (``sudo apt-get install gcc``)" | 148 | false | jart/fabulous | compile_speedup | 37,089 | |
LDU_FT/MacHu-GWU/macro-project/right_click | LDU_FT | [
"<BEGIN>\n## `learn_all_skill`",
"在技能编辑界面学会所有的技能。运行脚本前, 将鼠标放在第一个技能的技能等级\n 的数字上, 并选中所有文本。然后运行此脚本, 并在1秒内切回到修改器界面。",
" :param level: 技能等级\n :param master_level: 专精等级, 0是普通, 1是专家, 2是大师\n<END>",
"<BEGIN>\n## `right_click`",
"Right click at ``(x, y)`` on screen for ``n`` times.\n at begin.",
" ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the right_click API.
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 right_click API.
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... | Right click at ``(x, y)`` on screen for ``n`` times.
at begin.
**中文文档**
在屏幕的 ``(x, y)`` 坐标处右键单击 ``n`` 次。 | "Right click at ``(x, y)`` on screen for ``n`` times.\n at begin.\n\n **中文文档**\n\n 在屏幕的 ``(x, y)`` 坐标处右键单击 ``n`` 次。" | 125 | false | MacHu-GWU/macro-project | right_click | 37,090 | |
LDU_FT/KnightConan/sspdatatables/generate_error_json_response | LDU_FT | [
"<BEGIN>\n## `get_table_frame`",
"render the structure (or structure_for_superuser) and an instance of the\n footer form",
" :param prefix: str: used for unifying the rendered parameter's name,\n such\n that the template of serverside datatables can be used in one page\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the generate_error_json_response 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 generate_error_json_response API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its concl... | Intends to build an error json response. If the error_response_context is
None, then we generate this response using data tables format
:param error_dict: str/dict: contains the error message(s)
:param error_response_context: None/dict: context dictionary to render, if
error occurs
:return: JsonR... | "Intends to build an error json response. If the error_response_context is\n None, then we generate this response using data tables format\n\n :param error_dict: str/dict: contains the error message(s)\n :param error_response_context: None/dict: context dictionary to render, if\n error occurs\n :return... | 42 | false | KnightConan/sspdatatables | generate_error_json_response | 37,091 | |
LDU_FT/jameslyons/pycipher/decipher | LDU_FT | [
"<BEGIN>\n## `encipher`",
"Encipher string using Atbash cipher.",
" Example::",
" ciphertext = Atbash().encipher(plaintext) ",
" :param string: The string to encipher.\n :param keep_punct: if true, punctuation and spacing are retained. If false, it is all removed. Default... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the decipher API.
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 decipher API.
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... | Decipher string using affine cipher according to initialised key.
Example::
plaintext = Affine(a,b).decipher(ciphertext)
:param string: The string to decipher.
:param keep_punct: if true, punctuation and spacing are retained. If false, it is all removed. Default is Fa... | "Decipher string using affine cipher according to initialised key.\n\n Example::\n \n plaintext = Affine(a,b).decipher(ciphertext) \n\n :param string: The string to decipher.\n :param keep_punct: if true, punctuation and spacing are retained. If false, it is all removed. Defau... | 135 | false | jameslyons/pycipher | decipher | 37,092 | |
LDU_FT/exa-analytics/exa/yield_typed | LDU_FT | [
"<BEGIN>\n## `_create`",
"Globally called function for creating the isotope/element API.\n<END>",
"<BEGIN>\n## `read_tarball`",
"Read a (possibly compressed) tarball archive and return a dictionary of\n editors.",
" .. code-block:: python",
" eds = read_tarball(path, classes=MyEditor) # Al... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the yield_typed API.
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 yield_typed API.
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... | Generator that yields typed object names of the class (or object's class).
Args:
obj_or_cls (object): Class object or instance of class
Returns:
name (array): Names of class attributes that are strongly typed | "Generator that yields typed object names of the class (or object's class).\n\n Args:\n obj_or_cls (object): Class object or instance of class\n\n Returns:\n name (array): Names of class attributes that are strongly typed" | 194 | false | exa-analytics/exa | yield_typed | 37,093 | |
LDU_FT/devopshq/youtrack/import_links | LDU_FT | [
"<BEGIN>\n## `get_user`",
"http://confluence.jetbrains.net/display/YTD2/GET+user\n<END>",
"<BEGIN>\n## `import_users`",
"Import users, returns import result (http://confluence.jetbrains.net/display/YTD2/Import+Users)\n Example: importUsers([{'login':'vadim', 'fullName':'vadim', 'email':'eee@ss.com'... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the import_links API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extr... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the import_links API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extr... | Import links, returns import result (http://confluence.jetbrains.net/display/YTD2/Import+Links)
Accepts result of getLinks()
Example: importLinks([{'login':'vadim', 'fullName':'vadim', 'email':'eee@ss.com', 'jabber':'fff@fff.com'},
{'login':'maxim', 'fullName':'... | "Import links, returns import result (http://confluence.jetbrains.net/display/YTD2/Import+Links)\n Accepts result of getLinks()\n Example: importLinks([{'login':'vadim', 'fullName':'vadim', 'email':'eee@ss.com', 'jabber':'fff@fff.com'},\n {'login':'maxim', 'fullNam... | 21 | false | devopshq/youtrack | import_links | 37,094 | |
LDU_FT/coghost/izen/push_to_topic | LDU_FT | [
"<BEGIN>\n## `encrypt`",
"简单封装系统加密",
" :param plain: 待加密内容\n :type plain: ``str/bytes``\n :param algorithm: 加密算法\n :type algorithm: str\n :return:\n :rtype:\n<END>",
"<BEGIN>\n## `aes_obj`",
"生成aes加密所需要的 ``key, iv``",
" .. warning:: 每个AES.new对象, 只能使用一次",
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the push_to_topic API.
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 push_to_topic API.
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... | - 发送数据 dat 到目的地 dst
:param cfgs:
:type cfgs:
:param dst:
:type dst:
:param dat:
:type dat:
:param qos:
:type qos:
:param retain:
:type retain: | "- 发送数据 dat 到目的地 dst\n\n :param cfgs:\n :type cfgs:\n :param dst:\n :type dst:\n :param dat:\n :type dat:\n :param qos:\n :type qos:\n :param retain:\n :type retain:" | 273 | false | coghost/izen | push_to_topic | 37,095 | |
LDU_FT/solocompt/plugs-mail/get_template_files | LDU_FT | [
"<BEGIN>\n## `validate_context`",
"Make sure there are no duplicate context objects\n or we might end up with switched data",
" Converting the tuple to a set gets rid of the\n eventual duplicate objects, comparing the length\n of the original tuple and set tells us if we\n hav... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_template_files 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_template_files 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... | Multilanguage support means that for each template
we can have multiple templtate files, this methods
returns all the template (html and txt) files
that match the (class) template name | "Multilanguage support means that for each template\n we can have multiple templtate files, this methods\n returns all the template (html and txt) files\n that match the (class) template name" | 28 | false | solocompt/plugs-mail | get_template_files | 37,096 | |
LDU_FT/johntruckenbrodt/spatialist/rasterize | LDU_FT | [
"<BEGIN>\n## `hdr`",
"write ENVI header files",
" Parameters\n ----------\n data: str or dict\n the file or dictionary to get the info from\n filename: str\n the HDR file to write",
" Returns\n -------\n<END>",
"<BEGIN>\n## `__hdr2dict`",
"read a HDR file into a dictionary\... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the rasterize API.
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 rasterize API.
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... | rasterize a vector object
Parameters
----------
vectorobject: Vector
the vector object to be rasterized
reference: Raster
a reference Raster object to retrieve geo information and extent from
outname: str or None
the name of the GeoTiff output file; if None, an in-memory obj... | "rasterize a vector object\n\n Parameters\n ----------\n vectorobject: Vector\n the vector object to be rasterized\n reference: Raster\n a reference Raster object to retrieve geo information and extent from\n outname: str or None\n the name of the GeoTiff output file; if None, an in-... | 227 | false | johntruckenbrodt/spatialist | rasterize | 37,097 | |
LDU_FT/bninja/pilo/map | LDU_FT | [
"<BEGIN>\n## `reset`",
"Used if you need to recursively parse forms.\n<END>",
"<BEGIN>\n## `rewind`",
"Used if you need to rewind stack to a particular frame.",
" :param predicate: Callable used to stop unwind, e.g.:",
" .. code::",
" def stop(frame):\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the map API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted doc... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the map API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted doc... | Executes the steps used to "map" this fields value from `ctx.src` to a
value.
:param value: optional **pre-computed** value.
:return: The successfully mapped value or:
- NONE if one was not found
- ERROR if the field was present in `ctx.src` but invalid. | "Executes the steps used to \"map\" this fields value from `ctx.src` to a\n value.\n\n :param value: optional **pre-computed** value.\n\n :return: The successfully mapped value or:\n\n - NONE if one was not found\n - ERROR if the field was present in `ctx.src` but invalid." | 25 | false | bninja/pilo | map | 37,098 | |
LDU_FT/bcbnz/python-rofi/error | LDU_FT | [
"<BEGIN>\n## `close`",
"Close any open window.",
" Note that this only works with non-blocking methods.\n<END>",
"<BEGIN>\n## `_run_blocking`",
"Internal API: run a blocking command with subprocess.",
" This closes any open non-blocking dialog before running the command.",
" Paramet... | 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... | Show an error window.
This method blocks until the user presses a key.
Fullscreen mode is not supported for error windows, and if specified
will be ignored.
Parameters
----------
message: string
Error message to show. | "Show an error window.\n\n This method blocks until the user presses a key.\n\n Fullscreen mode is not supported for error windows, and if specified\n will be ignored.\n\n Parameters\n ----------\n message: string\n Error message to show." | 68 | false | bcbnz/python-rofi | error | 37,099 | |
LDU_FT/ucsb-cs-education/hairball/_process | LDU_FT | [
"<BEGIN>\n## `main`",
"The entrypoint for the hairball command installed via setup.py.\n<END>",
"<BEGIN>\n## `path_to_key`",
"Return the sha1sum (key) belonging to the file at filepath.\n<END>",
"<BEGIN>\n## `key_to_path`",
"Return the fullpath to the file with sha1sum key.\n<END>",
"<BEGIN>\n## `load`"... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _process API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracte... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _process API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracte... | Internal hook that marks reachable scripts before calling analyze.
Returns data exactly as returned by the analyze method. | "Internal hook that marks reachable scripts before calling analyze.\n\n Returns data exactly as returned by the analyze method." | 90 | false | ucsb-cs-education/hairball | _process | 37,100 | |
LDU_FT/cdgriffith/Reusables/run | LDU_FT | [
"<BEGIN>\n## `datetime_format`",
"Replaces format style phrases (listed in the dt_exps dictionary)\n with this datetime instance's information.",
" .. code :: python",
" reusables.datetime_format(\"Hey, it's {month-full} already!\")\n \"Hey, it's March already!\"",
" :param desired_fo... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the 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... | Start the main loop as a background process. *nix only | "Start the main loop as a background process. *nix only" | 320 | false | cdgriffith/Reusables | run | 37,101 | |
LDU_FT/mamrhein/specification/visit_arguments | LDU_FT | [
"<BEGIN>\n## `is_satisfied_by`",
"Return True if `candidate` satisfies the specification.\n<END>",
"<BEGIN>\n## `src2ast`",
"Return ast.Expression created from source code given in `src`.\n<END>",
"<BEGIN>\n## `replace_name`",
"Replace all Name nodes named `old_name` with nodes named `new_name`.\n<END>",
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the visit_arguments API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The e... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the visit_arguments API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The e... | Return `node`s representation as argument list. | "Return `node`s representation as argument list." | 66 | false | mamrhein/specification | visit_arguments | 37,102 | |
LDU_FT/bapakode/OmMongo/validate_wrap | LDU_FT | [
"<BEGIN>\n## `setdefault`",
"if the ``name`` is set, return its value. Otherwse set ``name`` to\n ``value`` and return ``value``\n<END>",
"<BEGIN>\n## `ascending`",
"Add a descending index for ``name`` to this index.",
" :param name: Name to be used in the index\n<END>",
"<BEGIN>\n#... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the validate_wrap API.
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 validate_wrap API.
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... | Validates the type and value of ``value`` | "Validates the type and value of ``value``" | 248 | false | bapakode/OmMongo | validate_wrap | 37,103 | |
LDU_FT/elifesciences/elife-article/get_last_commit_to_master | LDU_FT | [
"<BEGIN>\n## `build_contributors`",
"Given a list of authors from the parser, instantiate contributors\n objects and build them\n<END>",
"<BEGIN>\n## `build_datasets`",
"Given datasets in JSON format, build and return a list of dataset objects\n<END>",
"<BEGIN>\n## `build_data_availability`",
"Given da... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_last_commit_to_master API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_last_commit_to_master API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi... | returns the last commit on the master branch. It would be more ideal to get the commit
from the branch we are currently on, but as this is a check mostly to help
with production issues, returning the commit from master will be sufficient. | "returns the last commit on the master branch. It would be more ideal to get the commit\n from the branch we are currently on, but as this is a check mostly to help\n with production issues, returning the commit from master will be sufficient." | 44 | false | elifesciences/elife-article | get_last_commit_to_master | 37,104 | |
LDU_FT/django-leonardo/django-leonardo/get_form | LDU_FT | [
"<BEGIN>\n## `sort_dependencies`",
"Sort a list of (app_config, models) pairs into a single list of models.\n The single list of models is sorted so that any model with a natural key\n is serialized before a normal model, and any model with a natural key\n dependency has it's dependencies serialized firs... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_form API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracte... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_form API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracte... | Returns an instance of the form to be used in this view. | "Returns an instance of the form to be used in this view." | 267 | false | django-leonardo/django-leonardo | get_form | 37,105 | |
LDU_FT/har07/PySastrawi/execute | LDU_FT | [
"<BEGIN>\n## `disambiguate`",
"Disambiguate Prefix Rule 24\n Rule 24 : perCAerV -> per-CAerV where C != 'r'\n<END>",
"<BEGIN>\n## `stem`",
"Stem a text string to its common stem form.\n<END>",
"<BEGIN>\n## `stem_plural_word`",
"Stem a plural word to its common stem form.\n Asian J. (2007) \"... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the execute API.
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 execute API.
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... | Execute stemming process; the result can be retrieved with result | "Execute stemming process; the result can be retrieved with result" | 13 | false | har07/PySastrawi | execute | 37,106 | |
LDU_FT/ailionx/cloudflare-ddns/create_record | LDU_FT | [
"<BEGIN>\n## `request`",
"The requester shortcut to submit a http request to CloutFlare\n :param url:\n :param method:\n :param data:\n :return:\n<END>",
"<BEGIN>\n## `setup_zone`",
"Setup zone for current domain.\n It will also setup the dns records of the zone\n :re... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_record API.
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 create_record API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | Create a dns record
:param dns_type:
:param name:
:param content:
:param kwargs:
:return: | "Create a dns record\n :param dns_type:\n :param name:\n :param content:\n :param kwargs:\n :return:" | 16 | false | ailionx/cloudflare-ddns | create_record | 37,107 | |
LDU_FT/Spirent/py-stcrestclient/log | LDU_FT | [
"<BEGIN>\n## `url`",
"Construct a URL from the given components.\n<END>",
"<BEGIN>\n## `download_file`",
"Download a file.",
" If a timeout defined, it is not a time limit on the entire download;\n rather, an exception is raised if the server has not issued a response\n for timeout seco... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the log API.
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 log API.
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... | Write a diagnostic message to a log file or to standard output.
Arguments:
level -- Severity level of entry. One of: INFO, WARN, ERROR, FATAL.
msg -- Message to write to log. | "Write a diagnostic message to a log file or to standard output.\n\n Arguments:\n level -- Severity level of entry. One of: INFO, WARN, ERROR, FATAL.\n msg -- Message to write to log." | 102 | false | Spirent/py-stcrestclient | log | 37,108 | |
LDU_FT/mdiener/grace/save_docs | LDU_FT | [
"<BEGIN>\n## `visit`",
"Returns a generator that walks all children recursively.\n<END>",
"<BEGIN>\n## `list_js_files`",
"Generator for all JavaScript files in the directory, recursively",
" >>> 'examples/module.js' in list(list_js_files('examples'))\n True\n<END>",
"<BEGIN>\n## `save_file`",
"Sav... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the save_docs API.
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_docs API.
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 documentation files for codebase into `output_dir`. If output
dir is None, it'll refrain from building the index page and build
the file(s) in the current directory.
If `files` is None, it'll build all files in the codebase. | "Save documentation files for codebase into `output_dir`. If output\n dir is None, it'll refrain from building the index page and build\n the file(s) in the current directory.\n\n If `files` is None, it'll build all files in the codebase." | 188 | false | mdiener/grace | save_docs | 37,109 | |
LDU_FT/gitenberg-dev/gitberg/font | LDU_FT | [
"<BEGIN>\n## `remote_path`",
"turns an ebook_id into a path on PG's server(s)\n 4443 -> 4/4/4/4443/\n<END>",
"<BEGIN>\n## `make`",
"turn fetched files into a local repo, make auxiliary files\n<END>",
"<BEGIN>\n## `push`",
"create a github repo and push the local repo into it\n<END>",
"<BEGIN... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the font API.
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 font API.
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... | Return a tuple that contains font properties required for rendering. | "Return a tuple that contains font properties required for rendering." | 51 | false | gitenberg-dev/gitberg | font | 37,110 | |
LDU_FT/julienr/meshcut/cross_section_mesh | LDU_FT | [
"<BEGIN>\n## `load_ply`",
"Same as load_ply, but takes a file-like object\n<END>",
"<BEGIN>\n## `orthogonal_vector`",
"Return an arbitrary vector that is orthogonal to v\n<END>",
"<BEGIN>\n## `show_plane`",
"Show the plane with the given origin and normal. scale give its size\n<END>",
"<BEGIN>\n## `slic... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the cross_section_mesh 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 cross_section_mesh 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... | Args:
mesh: A geom.TriangleMesh instance
plane: The cut plane : geom.Plane instance
dist_tol: If two points are closer than dist_tol, they are considered
the same | "Args:\n mesh: A geom.TriangleMesh instance\n plane: The cut plane : geom.Plane instance\n dist_tol: If two points are closer than dist_tol, they are considered\n the same" | 34 | false | julienr/meshcut | cross_section_mesh | 37,111 | |
LDU_FT/rodynnz/xccdf/as_dict | LDU_FT | [
"<BEGIN>\n## `update_xml_element`",
"Updates the xml element contents to matches the instance contents.",
" :returns: Updated XML element.\n :rtype: lxml.etree._Element\n<END>",
"<BEGIN>\n## `to_xml_string`",
"Exports the element in XML format.",
" :returns: element in XML format.\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the as_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 as_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... | Serializes the object necessary data in a dictionary.
:returns: Serialized data in a dictionary.
:rtype: dict | "Serializes the object necessary data in a dictionary.\n\n :returns: Serialized data in a dictionary.\n :rtype: dict" | 77 | false | rodynnz/xccdf | as_dict | 37,112 | |
LDU_FT/bayesimpact/fex/_generate_features | LDU_FT | [
"<BEGIN>\n## `run`",
"Run all FeatureExtractors and output results to CSV.\n<END>",
"<BEGIN>\n## `_generate_features`",
"Run all FeatureExtractors and record results in a key-value format.",
" :param feature_extractors: iterable of `FeatureExtractor` objects.\n<END>",
"<BEGIN>\n## `emit`",
"Use t... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _generate_features 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 _generate_features 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... | Run all FeatureExtractors and record results in a key-value format.
:param feature_extractors: iterable of `FeatureExtractor` objects. | "Run all FeatureExtractors and record results in a key-value format.\n\n :param feature_extractors: iterable of `FeatureExtractor` objects." | 18 | false | bayesimpact/fex | _generate_features | 37,113 | |
LDU_FT/crocs-muni/roca/process_csr | LDU_FT | [
"<BEGIN>\n## `error_message`",
"Formats exception message + cause\n :param e:\n :param message:\n :param cause:\n :return: formatted message, includes cause if any is set\n<END>",
"<BEGIN>\n## `format_pgp_key`",
"Formats PGP key in 16hex digits\n :param key:\n :return:\n<END>",
"<BEGIN>\n#... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the process_csr API.
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 process_csr API.
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... | Processing parsed X509 csr
:param csr:
:type csr: cryptography.x509.CertificateSigningRequest
:param name:
:param idx:
:param data:
:param pem:
:param source:
:param aux:
:return: | "Processing parsed X509 csr\n :param csr:\n :type csr: cryptography.x509.CertificateSigningRequest\n :param name:\n :param idx:\n :param data:\n :param pem:\n :param source:\n :param aux:\n :return:" | 133 | false | crocs-muni/roca | process_csr | 37,114 | |
LDU_FT/stanfordnlp/stanza/parse_bytes | LDU_FT | [
"<BEGIN>\n## `validate`",
"Evaluate this model on `validation_instances` during training and\n output a report.",
" :param validation_instances: The data to use to validate the model.\n :type validation_instances: list(instance.Instance)",
" :param metrics: Functions like those fou... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_bytes API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_bytes API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | >>> parse_bytes('24B')
24.0
>>> parse_bytes('4MiB')
4194304.0 | ">>> parse_bytes('24B')\n 24.0\n >>> parse_bytes('4MiB')\n 4194304.0" | 309 | false | stanfordnlp/stanza | parse_bytes | 37,115 | |
LDU_FT/niolabs/python-xbee/byteToInt | LDU_FT | [
"<BEGIN>\n## `_write`",
"_write: binary data -> None",
" Packages the given binary data in an API frame and writes the\n result to the serial port\n<END>",
"<BEGIN>\n## `_build_command`",
"_build_command: string (binary data) ... -> binary data",
" _build_command will construct a comm... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the byteToInt API.
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 byteToInt API.
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... | byte -> int
Determines whether to use ord() or not to get a byte's value. | "byte -> int\n\n Determines whether to use ord() or not to get a byte's value." | 91 | false | niolabs/python-xbee | byteToInt | 37,116 | |
LDU_FT/wistful/pympris/signal_wrapper | LDU_FT | [
"<BEGIN>\n## `register_signal_handler`",
"register `handler_function` to receive `signal_name`.",
" Uses class's dbus interface self.IFACE, objects name self.name\n and objects path self.OBJ_PATH to match signal.",
" :param str signal_name: The signal name;\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the signal_wrapper API.
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 signal_wrapper API.
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... | Decorator converts function's arguments from dbus types to python. | "Decorator converts function's arguments from dbus types to python." | 36 | false | wistful/pympris | signal_wrapper | 37,117 | |
LDU_FT/zeaphoo/reston/close | LDU_FT | [
"<BEGIN>\n## `get_access_flags_string`",
"Transform an access flags to the corresponding string",
" :param value: the value of the access flags\n :type value: int",
" :rtype: string\n<END>",
"<BEGIN>\n## `get_shorty_idx_value`",
"Return the string associated to the shorty_idx",
" ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the close API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted d... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the close API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted d... | Close the file, and for mode "w" and "a" write the ending
records. | "Close the file, and for mode \"w\" and \"a\" write the ending\n records." | 152 | false | zeaphoo/reston | close | 37,118 | |
LDU_FT/konomae/lastpass-python/extract_chunks | LDU_FT | [
"<BEGIN>\n## `open_remote`",
"Fetches a blob from the server and creates a vault\n<END>",
"<BEGIN>\n## `fetch_blob`",
"Just fetches the blob, could be used to store it locally\n<END>",
"<BEGIN>\n## `extract_chunks`",
"Splits the blob into chucks grouped by kind.\n<END>",
"<BEGIN>\n## `parse_ACCT`",
"P... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the extract_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 ex... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the extract_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 ex... | Splits the blob into chucks grouped by kind. | "Splits the blob into chucks grouped by kind." | 18 | false | konomae/lastpass-python | extract_chunks | 37,119 | |
LDU_FT/ulule/django-badgify/get_recipe_instances_for_badges | LDU_FT | [
"<BEGIN>\n## `chunks`",
"Yields successive n-sized chunks from l.\n<END>",
"<BEGIN>\n## `log_queries`",
"Logs recipe instance SQL queries (actually, only time).\n<END>",
"<BEGIN>\n## `get_recipe_instance`",
"Returns the recipe instance for the given badge slug.\n If badge has not been registered, r... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_recipe_instances_for_badges API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its co... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_recipe_instances_for_badges API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its co... | Takes a list of badge slugs and returns a tuple: ``(valid, invalid)``. | "Takes a list of badge slugs and returns a tuple: ``(valid, invalid)``." | 28 | false | ulule/django-badgify | get_recipe_instances_for_badges | 37,120 | |
LDU_FT/alexa/alexa-skills-kit-sdk-for-python/speak | LDU_FT | [
"<BEGIN>\n## `invoke`",
"Invokes the dispatcher, to handle the request envelope and\n return a response envelope.",
" :param request_envelope: Request Envelope instance containing\n request information\n :type request_envelope: RequestEnvelope\n :param context: Context pas... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the speak API.
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 speak API.
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... | Say the provided speech to the user.
:param speech: the output speech sent back to the user.
:type speech: str
:param play_behavior: attribute to control alexa's speech
interruption
:type play_behavior: ask_sdk_model.ui.play_behavior.PlayBehavior
:return: response fa... | "Say the provided speech to the user.\n\n :param speech: the output speech sent back to the user.\n :type speech: str\n :param play_behavior: attribute to control alexa's speech\n interruption\n :type play_behavior: ask_sdk_model.ui.play_behavior.PlayBehavior\n :return: res... | 285 | false | alexa/alexa-skills-kit-sdk-for-python | speak | 37,121 | |
LDU_FT/edx/XBlock/to_json | LDU_FT | [
"<BEGIN>\n## `default_select`",
"Raise an exception when we have ambiguous entry points.\n<END>",
"<BEGIN>\n## `_load_class_entry_point`",
"Load `entry_point`, and set the `entry_point.name` as the\n attribute `plugin_name` on the loaded object\n<END>",
"<BEGIN>\n## `load_class`",
"Load a single cl... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the to_json API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the to_json API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted... | Serialize the date as an ISO-formatted date string, or None. | "Serialize the date as an ISO-formatted date string, or None." | 295 | false | edx/XBlock | to_json | 37,122 | |
LDU_FT/transitland/mapzen-gtfs/convex_hull | LDU_FT | [
"<BEGIN>\n## `convex_hull`",
"Returns points on convex hull of an array of points in CCW order.\n<END>",
"<BEGIN>\n## `filtany`",
"Filter a set of entities based on method return. Use keyword arguments.",
" Example:\n filtmeth(entities, id='123')\n filtmeth(entities, name='bart')",
" Multiple filt... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the convex_hull API.
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 convex_hull API.
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 points on convex hull of an array of points in CCW order. | "Returns points on convex hull of an array of points in CCW order." | 26 | false | transitland/mapzen-gtfs | convex_hull | 37,123 | |
LDU_FT/alecthomas/injector/create_object | LDU_FT | [
"<BEGIN>\n## `provider`",
"Decorator for :class:`Module` methods, registering a provider of a type.",
" >>> class MyModule(Module):\n ... @provider\n ... def provide_name(self) -> str:\n ... return 'Bob'",
" @provider-decoration implies @inject so you can omit it and things will\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_object API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_object API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | Create a new instance, satisfying any dependencies on cls. | "Create a new instance, satisfying any dependencies on cls." | 60 | false | alecthomas/injector | create_object | 37,124 | |
LDU_FT/Thermondo/django-heroku-connect/_get_admin_route_name | LDU_FT | [
"<BEGIN>\n## `_replaced`",
"Replace elements in iterable with values from an alias dict, suppressing empty values.",
" Used to consistently enhance how certain fields are displayed in list and detail pages.\n<END>",
"<BEGIN>\n## `_get_admin_route_name`",
"Get the base name of the admin route for a model ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_admin_route_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.
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_admin_route_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.
... | Get the base name of the admin route for a model or model instance.
For use with :func:`django.urls.reverse`, although it still needs the specific route suffix
appended, for example ``_changelist``. | "Get the base name of the admin route for a model or model instance.\n\n For use with :func:`django.urls.reverse`, although it still needs the specific route suffix\n appended, for example ``_changelist``." | 98 | false | Thermondo/django-heroku-connect | _get_admin_route_name | 37,125 | |
LDU_FT/inveniosoftware-contrib/invenio-classifier/extract | LDU_FT | [
"<BEGIN>\n## `get_acronyms`",
"Find acronyms and expansions from the fulltext.",
" If needed, acronyms can already contain a dictionary of previously found\n acronyms that will be merged with the current results.\n<END>",
"<BEGIN>\n## `_add_expansion_to_acronym_dict`",
"Add an acronym to the dictiona... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the extract API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the extract API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted... | Run keyword extraction on given PDF file for given taxonomy. | "Run keyword extraction on given PDF file for given taxonomy." | 178 | false | inveniosoftware-contrib/invenio-classifier | extract | 37,126 | |
LDU_FT/wbond/certvalidator/fetch_certs | LDU_FT | [
"<BEGIN>\n## `fetch`",
"Fetches an OCSP response for a certificate",
" :param cert:\n An asn1cyrpto.x509.Certificate object to get an OCSP reponse for",
" :param issuer:\n An asn1crypto.x509.Certificate object that is the issuer of cert",
" :param hash_algo:\n A unicode string ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the fetch_certs API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the fetch_certs API.
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... | Fetches certificates from the authority information access extension of
an asn1crypto.crl.CertificateList object and places them into the
cert registry.
:param certificate_list:
An asn1crypto.crl.CertificateList object
:param user_agent:
The HTTP user agent to use when requesting the C... | "Fetches certificates from the authority information access extension of\n an asn1crypto.crl.CertificateList object and places them into the\n cert registry.\n\n :param certificate_list:\n An asn1crypto.crl.CertificateList object\n\n :param user_agent:\n The HTTP user agent to use when request... | 202 | false | wbond/certvalidator | fetch_certs | 37,127 | |
LDU_FT/todddeluca/python-vagrant/conf | LDU_FT | [
"<BEGIN>\n## `which`",
"Emulate unix 'which' command. If program is a path to an executable file\n (i.e. it contains any directory components, like './myscript'), return\n program. Otherwise, if an executable file matching program is found in one\n of the directories in the PATH environment variable, r... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the conf API.
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 conf API.
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... | Parse ssh_config into a dict containing the keys defined in ssh_config,
which should include these keys (listed with example values): 'User'
(e.g. 'vagrant'), 'HostName' (e.g. 'localhost'), 'Port' (e.g. '2222'),
'IdentityFile' (e.g. '/home/todd/.ssh/id_dsa'). Cache the parsed
configura... | "Parse ssh_config into a dict containing the keys defined in ssh_config,\n which should include these keys (listed with example values): 'User'\n (e.g. 'vagrant'), 'HostName' (e.g. 'localhost'), 'Port' (e.g. '2222'),\n 'IdentityFile' (e.g. '/home/todd/.ssh/id_dsa'). Cache the parsed\n conf... | 94 | false | todddeluca/python-vagrant | conf | 37,128 | |
LDU_FT/openstack/hacking/is_import_exception | LDU_FT | [
"<BEGIN>\n## `hacking_todo_format`",
"Check for 'TODO()'.",
" OpenStack HACKING guide recommendation for TODO:\n Include your name with TODOs as in \"# TODO(termie)\"",
" Okay: # TODO(sdague)\n H101: # TODO fail\n H101: # TODO\n H101: # TODO (jogo) fail\n Okay: TODO = 5\n<END>",
"<BEGIN... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_import_exception API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
T... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_import_exception 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... | Check module name to see if import has been whitelisted.
Import based rules should not run on any whitelisted module | "Check module name to see if import has been whitelisted.\n\n Import based rules should not run on any whitelisted module" | 114 | false | openstack/hacking | is_import_exception | 37,129 | |
LDU_FT/blockstack/virtualchain/is_multisig_address | LDU_FT | [
"<BEGIN>\n## `lpad`",
"Left-pad a given string (msg) with a character (symbol) for a given number of bytes (length).\n Return the padded string\n<END>",
"<BEGIN>\n## `changebase`",
"Change a string's characters from one base to another.\n Return the re-encoded string\n<END>",
"<BEGIN>\n## `num_to_var_... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_multisig_address API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
T... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_multisig_address 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... | Is the given address a multisig address? | "Is the given address a multisig address?" | 491 | false | blockstack/virtualchain | is_multisig_address | 37,130 | |
LDU_FT/envi-idl/envipyengine/get | LDU_FT | [
"<BEGIN>\n## `task`",
"Returns an ENVI Py Engine Task object. See ENVI Py Engine Task for examples.",
" :param task_name: The name of the task to retrieve.\n :return: An ENVI Py Engine Task object.\n<END>",
"<BEGIN>\n## `tasks`",
"Returns a list of all tasks known to the engine.",
" :... | 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... | Returns the value of the specified configuration property.
Property values stored in the user configuration file take
precedence over values stored in the system configuration
file.
:param property_name: The name of the property to retrieve.
:return: The value of the property. | "Returns the value of the specified configuration property.\n Property values stored in the user configuration file take\n precedence over values stored in the system configuration\n file.\n\n :param property_name: The name of the property to retrieve.\n :return: The value of the property." | 42 | false | envi-idl/envipyengine | get | 37,131 | |
LDU_FT/Dallinger/Dallinger/retrieve_data | LDU_FT | [
"<BEGIN>\n## `setup`",
"Setup the networks.",
" Setup only does stuff if there are no networks, this is so it only\n runs once at the start of the experiment. It first calls the same\n function in the super (see experiments.py in dallinger). Then it adds a\n source to each network.\n... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the retrieve_data API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the retrieve_data API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | Retrieves and saves data from a running experiment | "Retrieves and saves data from a running experiment" | 425 | false | Dallinger/Dallinger | retrieve_data | 37,132 | |
LDU_FT/rbw/pysnow/greater_than | LDU_FT | [
"<BEGIN>\n## `count`",
"Returns the number of records the query would yield\n<END>",
"<BEGIN>\n## `_all_inner`",
"Yields all records for the query and follows links if present on the response after validating",
" :return: List of records with content\n<END>",
"<BEGIN>\n## `get_multiple`",
"Wrappe... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the greater_than API.
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 greater_than API.
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 new `>` condition
:param greater_than: str or datetime compatible object (naive UTC datetime or tz-aware datetime)
:raise:
- QueryTypeError: if `greater_than` is of an unexpected type | "Adds new `>` condition\n\n :param greater_than: str or datetime compatible object (naive UTC datetime or tz-aware datetime)\n :raise:\n - QueryTypeError: if `greater_than` is of an unexpected type" | 164 | false | rbw/pysnow | greater_than | 37,133 | |
LDU_FT/zyga/python-phablet/push | LDU_FT | [
"<BEGIN>\n## `main`",
"Phablet command line user interface",
" This function implements the phablet command line tool\n<END>",
"<BEGIN>\n## `run`",
"Run a command on the phablet device using ssh",
" :param cmd:\n a list of strings to execute as a command\n :param timeout:\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the push API.
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 push API.
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... | Push (synchronize) some data onto the phablet device
:param src:
source file or directory
:param dest:
destination file or directory
:param timeout:
a timeout (in seconds) for device discovery
:param key:
a path to a public ssh key to use ... | "Push (synchronize) some data onto the phablet device\n\n :param src:\n source file or directory\n :param dest:\n destination file or directory\n :param timeout:\n a timeout (in seconds) for device discovery\n :param key:\n a path to a public ssh k... | 28 | false | zyga/python-phablet | push | 37,134 | |
LDU_FT/chrisjsewell/jsonextended/view_plugins | LDU_FT | [
"<BEGIN>\n## `apply_unitschema`",
"apply the unit schema to the data",
" Parameters\n ----------\n data : dict\n uschema : dict\n units schema to apply\n as_quantity : bool\n if true, return values as pint.Quantity objects\n raise_outerr : bool\n raise error if a unit cann... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the view_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 view_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... | return a view of the loaded plugin names and descriptions
Parameters
----------
category : None or str
if str, apply for single plugin category
Examples
--------
>>> from pprint import pprint
>>> pprint(view_plugins())
{'decoders': {}, 'encoders': {}, 'parsers': {}}
>>> c... | "return a view of the loaded plugin names and descriptions\n\n Parameters\n ----------\n category : None or str\n if str, apply for single plugin category\n\n Examples\n --------\n\n >>> from pprint import pprint\n >>> pprint(view_plugins())\n {'decoders': {}, 'encoders': {}, 'parsers': {... | 347 | false | chrisjsewell/jsonextended | view_plugins | 37,135 | |
LDU_FT/wiredrive/wtframework/print_debug | LDU_FT | [
"<BEGIN>\n## `print_debug`",
"Print if and only if the debug flag is set true in the config.yaml file.",
" Args:\n args : var args of print arguments.\n<END>",
"<BEGIN>\n## `print_time`",
"Print the current elapsed time.",
" Kwargs:\n message (str) : Message to prefix the time ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the print_debug API.
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 print_debug API.
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... | Print if and only if the debug flag is set true in the config.yaml file.
Args:
args : var args of print arguments. | "Print if and only if the debug flag is set true in the config.yaml file.\n\n Args:\n args : var args of print arguments." | 236 | false | wiredrive/wtframework | print_debug | 37,136 | |
LDU_FT/rbarrois/python-semanticversion/to_python | LDU_FT | [
"<BEGIN>\n## `identifier_cmp`",
"Compare two identifier (for pre-release/build components).\n<END>",
"<BEGIN>\n## `identifier_list_cmp`",
"Compare two identifier list (pre-release/build components).",
" The rule is:\n - Identifiers are paired between lists\n - They are compared from left to... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the to_python API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extract... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the to_python API.
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... | Converts any value to a base.Spec field. | "Converts any value to a base.Spec field." | 29 | false | rbarrois/python-semanticversion | to_python | 37,137 | |
LDU_FT/gevious/flask_slither/crossdomain | LDU_FT | [
"<BEGIN>\n## `get_instance`",
"Get a record from the database with the id field matching `obj_id`.\n<END>",
"<BEGIN>\n## `get_collection`",
"Get a record from the database with the id field matching `obj_id`.\n<END>",
"<BEGIN>\n## `register_resource`",
"Register the resource on the resource name or a cust... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the crossdomain API.
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 crossdomain API.
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... | This decorator sets the rules for the crossdomain request per http
method. The settings are taken from the actual resource itself, and
returned as per the CORS spec.
All CORS requests are rejected if the resource's `allow_methods`
doesn't include the 'OPTIONS' method. | "This decorator sets the rules for the crossdomain request per http\n method. The settings are taken from the actual resource itself, and\n returned as per the CORS spec.\n\n All CORS requests are rejected if the resource's `allow_methods`\n doesn't include the 'OPTIONS' method." | 17 | false | gevious/flask_slither | crossdomain | 37,138 | |
LDU_FT/LabKey/labkey-api-python/activate_users | LDU_FT | [
"<BEGIN>\n## `create`",
"Create a domain\n :param server_context: A LabKey server context. See utils.create_server_context.\n :param domain_definition: A domain definition.\n :param container_path: labkey container path if not already set in context\n :return: Domain\n<END>",
"<BEGIN>\n## `drop`",
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the activate_users API.
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 activate_users API.
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... | Activate user accounts
:param server_context: A LabKey server context. See utils.create_server_context.
:param target_ids:
:param container_path:
:return: | "Activate user accounts\n :param server_context: A LabKey server context. See utils.create_server_context.\n :param target_ids:\n :param container_path:\n :return:" | 60 | false | LabKey/labkey-api-python | activate_users | 37,139 | |
LDU_FT/cnobile2012/pololu-motors/_setMotorShutdown | LDU_FT | [
"<BEGIN>\n## `getError`",
"Get the error message or value stored in the Qik 2s9v1 hardware.",
" :Keywords:\n device : `int`\n The device is the integer number of the hardware devices ID and\n is only used with the Pololu Protocol. Defaults to the hardware's\n def... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _setMotorShutdown API.
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 _setMotorShutdown API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | Set the motor shutdown on error status stored on the hardware device.
:Parameters:
value : `int`
An integer indicating the effect on the motors when an error occurs.
device : `int`
The device is the integer number of the hardware devices ID and
is only us... | "Set the motor shutdown on error status stored on the hardware device.\n\n :Parameters:\n value : `int`\n An integer indicating the effect on the motors when an error occurs.\n device : `int`\n The device is the integer number of the hardware devices ID and\n is... | 97 | false | cnobile2012/pololu-motors | _setMotorShutdown | 37,140 | |
LDU_FT/ApproxEng/approxeng.input/_input_to_raw_value | LDU_FT | [
"<BEGIN>\n## `map_into_range`",
"Map an input function into an output value, clamping such that the magnitude of the output is at most 1.0",
" :param low:\n The value in the input range corresponding to zero.\n :param high:\n The value in the input range corresponding to 1.0 or -1.0, dependi... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _input_to_raw_value API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
T... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _input_to_raw_value API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
T... | Convert the value read from evdev to a 0.0 to 1.0 range.
:internal:
:param value:
a value ranging from the defined minimum to the defined maximum value.
:return:
0.0 at minimum, 1.0 at maximum, linearly interpolating between those two points. | "Convert the value read from evdev to a 0.0 to 1.0 range.\n\n :internal:\n\n :param value:\n a value ranging from the defined minimum to the defined maximum value.\n :return:\n 0.0 at minimum, 1.0 at maximum, linearly interpolating between those two points." | 86 | false | ApproxEng/approxeng.input | _input_to_raw_value | 37,141 | |
LDU_FT/thieman/dagobah/api_call | LDU_FT | [
"<BEGIN>\n## `run`",
"Continually monitors Jobs of the parent Dagobah.\n<END>",
"<BEGIN>\n## `set_backend`",
"Manually set backend after construction.\n<END>",
"<BEGIN>\n## `from_backend`",
"Reconstruct this Dagobah instance from the backend.\n<END>",
"<BEGIN>\n## `_construct_from_json`",
"Construct t... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the api_call API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracte... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the api_call API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracte... | Returns function result in API format if requested from an API
endpoint | "Returns function result in API format if requested from an API\n endpoint" | 120 | false | thieman/dagobah | api_call | 37,142 | |
LDU_FT/CloudGenix/sdk-python/login | LDU_FT | [
"<BEGIN>\n## `jdout`",
"JD Output function. Does quick pretty printing of a CloudGenix Response body. This function returns a string\n instead of directly printing content.",
" **Parameters:**",
" - **api_response:** A CloudGenix-attribute extended `requests.Response` object",
" **Returns:**... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the login API.
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 login API.
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... | Login api
**Parameters:**:
- **data**: Dictionary containing data to POST as JSON
- **api_version**: API version to use (default v2.0)
**Returns:** requests.Response object extended with cgx_status and cgx_content properties. | "Login api\n\n **Parameters:**:\n\n - **data**: Dictionary containing data to POST as JSON\n - **api_version**: API version to use (default v2.0)\n\n **Returns:** requests.Response object extended with cgx_status and cgx_content properties." | 153 | false | CloudGenix/sdk-python | login | 37,143 | |
LDU_FT/wickman/compactor/send | LDU_FT | [
"<BEGIN>\n## `encode_request`",
"Encode a request into a raw HTTP request. This function returns a string\n of bytes that represent a valid HTTP/1.0 request, including any libprocess\n headers required for communication.",
" Use the `legacy` option (set to True) to use the legacy User-Agent based\n libproce... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the send API.
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 send API.
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... | Send a message to another process.
Same as ``Process.send`` except that ``message`` is a protocol buffer.
Returns immediately.
:param to: The pid of the process to send a message.
:type to: :class:`PID`
:param message: The message to send
:type method: A protocol buffer instance.
:raises:... | "Send a message to another process.\n\n Same as ``Process.send`` except that ``message`` is a protocol buffer.\n\n Returns immediately.\n\n :param to: The pid of the process to send a message.\n :type to: :class:`PID`\n :param message: The message to send\n :type method: A protocol buffer instance.\n ... | 96 | false | wickman/compactor | send | 37,144 | |
LDU_FT/VasilyStepanov/pywidl/p_Attribute | LDU_FT | [
"<BEGIN>\n## `p_Interface`",
"Interface : interface IDENTIFIER Inheritance \"{\" InterfaceMembers \"}\" \";\"\n<END>",
"<BEGIN>\n## `p_Dictionary`",
"Dictionary : dictionary IDENTIFIER Inheritance \"{\" DictionaryMembers \"}\" \";\"\n<END>",
"<BEGIN>\n## `p_DictionaryMember`",
"DictionaryMember : Type IDE... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the p_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 extra... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the p_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 extra... | Attribute : Inherit ReadOnly attribute Type IDENTIFIER ";" | "Attribute : Inherit ReadOnly attribute Type IDENTIFIER \";\"" | 34 | false | VasilyStepanov/pywidl | p_Attribute | 37,145 | |
LDU_FT/inveniosoftware/invenio-openaire/harvest_fundref | LDU_FT | [
"<BEGIN>\n## `get_text_node`",
"Return a text node from given XML tree given an lxml XPath.\n<END>",
"<BEGIN>\n## `iter_grants`",
"Fetch grants from a remote OAI-PMH endpoint.",
" Return the Sickle-provided generator object.\n<END>",
"<BEGIN>\n## `dump`",
"Dump the grant information to a local st... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the harvest_fundref API.
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 harvest_fundref API.
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... | Harvest funders from FundRef and store as authority records. | "Harvest funders from FundRef and store as authority records." | 33 | false | inveniosoftware/invenio-openaire | harvest_fundref | 37,146 | |
LDU_FT/delfick/harpoon/intervention | LDU_FT | [
"<BEGIN>\n## `a_temp_file`",
"Yield the name of a temporary file and ensure it's removed after use\n<END>",
"<BEGIN>\n## `run_container`",
"Run this image and all dependency images\n<END>",
"<BEGIN>\n## `run_deps`",
"Start containers for all our dependencies\n<END>",
"<BEGIN>\n## `stop_deps`",
"Stop t... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the intervention API.
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 intervention API.
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... | Ask the user if they want to commit this container and run sh in it | "Ask the user if they want to commit this container and run sh in it" | 149 | false | delfick/harpoon | intervention | 37,147 | |
LDU_FT/ThreatResponse/margaritashotgun/cleanup | LDU_FT | [
"<BEGIN>\n## `configure`",
"Connect paramiko transport",
" :type auth: :py:class`margaritashotgun.auth.AuthMethods`\n :param auth: authentication object\n :type address: str\n :param address: remote server ip or hostname\n :type port: int\n :param port: remote server po... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the cleanup API.
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 cleanup API.
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... | Release resources used by supporting classes | "Release resources used by supporting classes" | 134 | false | ThreatResponse/margaritashotgun | cleanup | 37,148 | |
LDU_FT/ArtoLabs/SimpleSteem/steem_instance | LDU_FT | [
"<BEGIN>\n## `setup`",
"Runs only the first time SimpleSteem() \n is instantiated. Prompts user for the values\n that are then written to config.py\n<END>",
"<BEGIN>\n## `make`",
"takes the arguments and writes them as \n variable / value pairs to config.py\n<END>",
"<BEGIN>\n## `goodno... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the steem_instance API.
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 steem_instance API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ex... | Returns the steem instance if it already exists
otherwise uses the goodnode method to fetch a node
and instantiate the Steem class. | "Returns the steem instance if it already exists\n otherwise uses the goodnode method to fetch a node\n and instantiate the Steem class." | 74 | false | ArtoLabs/SimpleSteem | steem_instance | 37,149 | |
LDU_FT/rossant/ipymd/_is_chunk_markdown | LDU_FT | [
"<BEGIN>\n## `_get_html_contents`",
"Process a HTML block and detects whether it is a code block,\n a math block, or a regular HTML block.\n<END>",
"<BEGIN>\n## `format_manager`",
"Return the instance singleton, creating if necessary\n<END>",
"<BEGIN>\n## `register_entrypoints`",
"Look through the `set... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _is_chunk_markdown 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 _is_chunk_markdown API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
Th... | Return whether a chunk contains Markdown contents. | "Return whether a chunk contains Markdown contents." | 64 | false | rossant/ipymd | _is_chunk_markdown | 37,150 | |
LDU_FT/pycontribs/jira/set_application_property | LDU_FT | [
"<BEGIN>\n## `translate_resource_args`",
"Decorator that converts Issue and Project resources to their keys when used as arguments.\n<END>",
"<BEGIN>\n## `_check_update_`",
"Check if the current version of the library is outdated.\n<END>",
"<BEGIN>\n## `_fetch_pages`",
"Fetch pages.",
" :param it... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_application_property 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 set_application_property API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio... | Set the application property.
:param key: key of the property to set
:type key: str
:param value: value to assign to the property
:type value: str | "Set the application property.\n\n :param key: key of the property to set\n :type key: str\n :param value: value to assign to the property\n :type value: str" | 468 | false | pycontribs/jira | set_application_property | 37,151 | |
LDU_FT/scott-griffiths/bitstring/join | LDU_FT | [
"<BEGIN>\n## `offsetcopy`",
"Return a copy of a ByteStore with the newoffset.",
" Not part of public interface.\n<END>",
"<BEGIN>\n## `equal`",
"Return True if ByteStores a == b.",
" Not part of public interface.\n<END>",
"<BEGIN>\n## `structparser`",
"Parse struct-like format string token into ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the join API.
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 join API.
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... | Return concatenation of bitstrings joined by self.
sequence -- A sequence of bitstrings. | "Return concatenation of bitstrings joined by self.\n\n sequence -- A sequence of bitstrings." | 251 | false | scott-griffiths/bitstring | join | 37,152 | |
LDU_FT/silenc3r/dikicli/translate | LDU_FT | [
"<BEGIN>\n## `_parse_html`",
"Parse html string.",
" Parameters\n ----------\n html_dump : str\n HTML content.\n native : bool, optional\n Whether to translate from native to foreign language.",
" Returns\n -------\n translations : list\n Translations list.",
" R... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the translate API.
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 translate API.
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... | Translate a word.
Parameters
----------
word : str
Word to translate.
config : Config
Configuration settings.
use_cache : bool, optional
Wheter to use cache.
to_eng : bool, optional
Translate from Polish to English.
Returns
-------
translation
... | "Translate a word.\n\n Parameters\n ----------\n word : str\n Word to translate.\n config : Config\n Configuration settings.\n use_cache : bool, optional\n Wheter to use cache.\n to_eng : bool, optional\n Translate from Polish to English.\n\n Returns\n -------\n tr... | 62 | false | silenc3r/dikicli | translate | 37,153 | |
LDU_FT/Clinical-Genomics/trailblazer/parse_config | LDU_FT | [
"<BEGIN>\n## `parse_mip_analysis`",
"Parse the output analysis files from MIP for adding info\n to trend database",
" Args:\n mip_config_raw (dict): raw YAML input from MIP analysis config file\n qcmetrics_raw (dict): raw YAML input from MIP analysis qc metric file\n sampleinfo_raw (d... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_config API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extr... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_config API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extr... | Parse MIP config file.
Args:
data (dict): raw YAML input from MIP analysis config file
Returns:
dict: parsed data | "Parse MIP config file.\n\n Args:\n data (dict): raw YAML input from MIP analysis config file\n\n Returns:\n dict: parsed data" | 44 | false | Clinical-Genomics/trailblazer | parse_config | 37,154 | |
LDU_FT/johnbywater/eventsourcing/entity_from_snapshot | LDU_FT | [
"<BEGIN>\n## `register_new_suffix_tree`",
"Factory method, returns new suffix tree object.\n<END>",
"<BEGIN>\n## `find_substring`",
"Returns the index if substring in tree, otherwise -1.\n<END>",
"<BEGIN>\n## `_canonize_suffix`",
"This canonizes the suffix, walking along its suffix string until it\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the entity_from_snapshot 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 entity_from_snapshot API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | Reconstructs domain entity from given snapshot. | "Reconstructs domain entity from given snapshot." | 161 | false | johnbywater/eventsourcing | entity_from_snapshot | 37,155 | |
LDU_FT/andymccurdy/redis-py/pipeline_execute_command | LDU_FT | [
"<BEGIN>\n## `acquire`",
"Use Redis to hold a shared, distributed lock named ``name``.\n Returns True once the lock is acquired.",
" If ``blocking`` is False, always return immediately. If the lock\n was acquired, return True, otherwise return False.",
" ``blocking_timeout`` specif... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the pipeline_execute_command 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 pipeline_execute_command API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio... | Stage a command to be executed when execute() is next called
Returns the current Pipeline object back so commands can be
chained together, such as:
pipe = pipe.set('foo', 'bar').incr('baz').decr('bang')
At some other point, you can then run: pipe.execute(),
which will execute ... | "Stage a command to be executed when execute() is next called\n\n Returns the current Pipeline object back so commands can be\n chained together, such as:\n\n pipe = pipe.set('foo', 'bar').incr('baz').decr('bang')\n\n At some other point, you can then run: pipe.execute(),\n which will... | 308 | false | andymccurdy/redis-py | pipeline_execute_command | 37,156 | |
LDU_FT/cni/MRS/l2_norm | LDU_FT | [
"<BEGIN>\n## `fetch_data`",
"Downloads files to folder and checks their md5 checksums",
" Parameters\n ----------\n files : dictionary\n For each file in `files` the value should be (url, md5). The file will\n be downloaded from url if the file does not already exist or if the\n fi... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the l2_norm API.
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 l2_norm API.
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... | The l2 norm of an array is is defined as: sqrt(||x||), where ||x|| is the
dot product of the vector. | "The l2 norm of an array is is defined as: sqrt(||x||), where ||x|| is the\n dot product of the vector." | 328 | false | cni/MRS | l2_norm | 37,157 | |
LDU_FT/frnsys/broca/_weight_concepts | LDU_FT | [
"<BEGIN>\n## `train_doc2vec`",
"Train a doc2vec model on a list of files.\n<END>",
"<BEGIN>\n## `_doc2vec_doc_stream`",
"Generator to feed sentences to the dov2vec model.\n<END>",
"<BEGIN>\n## `estimate_eps`",
"Estimates possible eps values (to be used with DBSCAN)\n for a given distance matrix by look... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _weight_concepts API.
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 _weight_concepts API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | Calculates weights for concepts in a document.
This is just the frequency of terms which map to a concept. | "Calculates weights for concepts in a document.\n\n This is just the frequency of terms which map to a concept." | 125 | false | frnsys/broca | _weight_concepts | 37,158 | |
LDU_FT/tkem/uritools/urijoin | LDU_FT | [
"<BEGIN>\n## `urijoin`",
"Convert a URI reference relative to a base URI to its target URI\n string.\n<END>",
"<BEGIN>\n## `uridefrag`",
"Remove an existing fragment component from a URI reference string.\n<END>",
"<BEGIN>\n## `geturi`",
"Return the recombined version of the original URI as a string.\n... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the urijoin API.
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 urijoin API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted... | Convert a URI reference relative to a base URI to its target URI
string. | "Convert a URI reference relative to a base URI to its target URI\n string." | 45 | false | tkem/uritools | urijoin | 37,159 | |
LDU_FT/gbowerman/azurerm/list_media_endpoint_keys | LDU_FT | [
"<BEGIN>\n## `get_rg_from_id`",
"get a resource group name from a VMSS ID string\n<END>",
"<BEGIN>\n## `get_user_agent`",
"User-Agent Header. Sends library identification to Azure endpoint.\n<END>",
"<BEGIN>\n## `do_get`",
"Do an HTTP GET request and return JSON.",
" Args:\n endpoint (str): Az... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the list_media_endpoint_keys 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 list_media_endpoint_keys API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio... | list the media endpoint keys in a media service
Args:
access_token (str): A valid Azure authentication token.
subscription_id (str): Azure subscription id.
rgname (str): Azure resource group name.
msname (str): Media service name.
Returns:
HTTP response. JSON body. | "list the media endpoint keys in a media service\n\n Args:\n access_token (str): A valid Azure authentication token.\n subscription_id (str): Azure subscription id.\n rgname (str): Azure resource group name.\n msname (str): Media service name.\n\n Returns:\n HTTP response. JSON ... | 605 | false | gbowerman/azurerm | list_media_endpoint_keys | 37,160 | |
LDU_FT/keras-rl/keras-rl/on_episode_begin | LDU_FT | [
"<BEGIN>\n## `fit`",
"Trains the agent on the given environment.",
" # Arguments\n env: (`Env` instance): Environment that the agent interacts with. See [Env](#env) for details.\n nb_steps (integer): Number of training steps to be performed.\n action_repetition (integer):... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the on_episode_begin API.
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 on_episode_begin API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | Called at beginning of each episode for each callback in callbackList | "Called at beginning of each episode for each callback in callbackList" | 113 | false | keras-rl/keras-rl | on_episode_begin | 37,161 | |
LDU_FT/lvieirajr/mongorest/update_many | LDU_FT | [
"<BEGIN>\n## `insert`",
"Saves the Document to the database if it is valid.\n Returns errors otherwise.\n<END>",
"<BEGIN>\n## `update`",
"Updates the document with the given _id saved in the collection if it\n is valid.\n Returns errors otherwise.\n<END>",
"<BEGIN>\n## `delete`",
"Del... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update_many API.
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 update_many API.
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... | Updates all documents that pass the filter with the update value
Will upsert a new document if upsert=True and no document is filtered | "Updates all documents that pass the filter with the update value\n Will upsert a new document if upsert=True and no document is filtered" | 42 | false | lvieirajr/mongorest | update_many | 37,162 | |
LDU_FT/raamana/pyradigm/get | LDU_FT | [
"<BEGIN>\n## `check_compatibility`",
"Checks whether the given MLdataset instances are compatible",
" i.e. with same set of subjects, each beloning to the same class in all instances.",
" Checks the first dataset in the list against the rest, and returns a boolean array.",
" Parameters\n -------... | 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... | Method like dict.get() which can return specified value if key not found | "Method like dict.get() which can return specified value if key not found" | 140 | false | raamana/pyradigm | get | 37,163 | |
LDU_FT/OpenHydrology/floodestimation/amax_files | LDU_FT | [
"<BEGIN>\n## `valid_flows_array`",
"Return array of valid flows (i.e. excluding rejected years etc)",
" :param catchment: gauged catchment with amax_records set\n :type catchment: :class:`floodestimation.entities.Catchment`\n :return: 1D array of flow values\n :rtype: :class:`numpy.ndarray`\n<END>",... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the amax_files API.
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 amax_files API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extrac... | Return all annual maximum flow (`*.am`) files in cache folder and sub folders.
:return: List of file paths
:rtype: list | "Return all annual maximum flow (`*.am`) files in cache folder and sub folders.\n\n :return: List of file paths\n :rtype: list" | 194 | false | OpenHydrology/floodestimation | amax_files | 37,164 | |
LDU_FT/alejandrobll/py-sphviewer/plot | LDU_FT | [
"<BEGIN>\n## `set_logscale`",
"- set_logscale(): If M is the matrix of the image, it defines the image M as log10(M+1).\n<END>",
"<BEGIN>\n## `histogram`",
"- histogram(axis=None, **kargs): It computes and shows the histogram of the image. This is \n usefull for choosing a proper scale to the output, o... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the plot API.
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 plot API.
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... | - plot(axis=None, **kwarg): Finally, sphviewer.Scene class has its own plotting method.
It shows the scene as seen by the camera. It is to say, it plots the particles according
to their aparent coordinates; axis makes a reference to an existing axis. In case axis is None,
the plot is made on th... | "- plot(axis=None, **kwarg): Finally, sphviewer.Scene class has its own plotting method. \n It shows the scene as seen by the camera. It is to say, it plots the particles according\n to their aparent coordinates; axis makes a reference to an existing axis. In case axis is None,\n the plot is made o... | 55 | false | alejandrobll/py-sphviewer | plot | 37,165 | |
LDU_FT/chorsley/python-Wappalyzer/_prepare_pattern | LDU_FT | [
"<BEGIN>\n## `_parse_html`",
"Parse the HTML with BeautifulSoup to find <script> and <meta> tags.\n<END>",
"<BEGIN>\n## `new_from_url`",
"Constructs a new WebPage object for the URL,\n using the `requests` module to fetch the HTML.",
" Parameters\n ----------",
" url : str\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _prepare_pattern API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _prepare_pattern API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | Strip out key:value pairs from the pattern and compile the regular
expression. | "Strip out key:value pairs from the pattern and compile the regular\n expression." | 24 | false | chorsley/python-Wappalyzer | _prepare_pattern | 37,166 | |
LDU_FT/anomaly/prestans/access_required | LDU_FT | [
"<BEGIN>\n## `_setup_serializers`",
"Auto set the return serializer based on Accept headers\n http://docs.webob.org/en/latest/reference.html#header-getters",
" Intersection of requested types and supported types tells us if we\n can in fact respond in one of the request formats\n<END>",
"... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the access_required API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The e... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the access_required API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The e... | Authenticates a HTTP method handler based on a custom set of arguments | "Authenticates a HTTP method handler based on a custom set of arguments" | 99 | false | anomaly/prestans | access_required | 37,167 | |
LDU_FT/pysal/esda/__crand | LDU_FT | [
"<BEGIN>\n## `by_col`",
"Function to compute a Join_Count statistic on a dataframe",
" Arguments\n ---------\n df : pandas.DataFrame\n a pandas dataframe with a geometry column\n cols : string or list of string\n name ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the __crand API.
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 __crand API.
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... | conditional randomization
for observation i with ni neighbors, the candidate set cannot include
i (we don't want i being a neighbor of i). we have to sample without
replacement from a set of ids that doesn't include i. numpy doesn't
directly support sampling wo replacement and it is ex... | "conditional randomization\n\n for observation i with ni neighbors, the candidate set cannot include\n i (we don't want i being a neighbor of i). we have to sample without\n replacement from a set of ids that doesn't include i. numpy doesn't\n directly support sampling wo replacement and it... | 192 | false | pysal/esda | __crand | 37,168 | |
LDU_FT/thoth-station/solver/parse_python | LDU_FT | [
"<BEGIN>\n## `compare_version`",
"Compare two version strings.",
" :param a: str\n :param b: str\n :return: -1 / 0 / 1\n<END>",
"<BEGIN>\n## `get_ecosystem_solver`",
"Get Solver subclass instance for particular ecosystem.",
" :param ecosystem_name: name of ecosystem for which solver should be ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_python API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extr... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_python API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extr... | Parse PyPI specification of a single dependency.
:param spec: str, for example "Django>=1.5,<1.8"
:return: [Django [[('>=', '1.5'), ('<', '1.8')]]] | "Parse PyPI specification of a single dependency.\n\n :param spec: str, for example \"Django>=1.5,<1.8\"\n :return: [Django [[('>=', '1.5'), ('<', '1.8')]]]" | 41 | false | thoth-station/solver | parse_python | 37,169 | |
LDU_FT/ltworf/typedload/_forwardrefload | LDU_FT | [
"<BEGIN>\n## `uniontypes`",
"Returns the types of a Union.",
" Raises ValueError if the argument is not a Union\n and AttributeError when running on an unsupported\n Python version.\n<END>",
"<BEGIN>\n## `index`",
"Returns the index in the handlers list\n that matches the given value.",
" ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _forwardrefload API.
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 _forwardrefload API.
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... | This resolves a ForwardRef.
It just looks up the type in the dictionary of known types
and loads the value using that. | "This resolves a ForwardRef.\n\n It just looks up the type in the dictionary of known types\n and loads the value using that." | 55 | false | ltworf/typedload | _forwardrefload | 37,170 | |
LDU_FT/shichao-an/115wangpan/directory | 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 directory API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extract... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the directory API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extract... | Associated directory, if any, with this task | "Associated directory, if any, with this task" | 100 | false | shichao-an/115wangpan | directory | 37,171 | |
LDU_FT/ouroboroscoding/format-oc-python/clean | LDU_FT | [
"<BEGIN>\n## `default`",
"Default",
"\t\tCalled when the regular Encoder can't figure out what to do with the type",
"\t\tArgs:\n\t\t\tself (CEncoder): A pointer to the current instance\n\t\t\tobj (mixed): An unknown object that needs to be encoded",
"\t\tReturns:\n\t\t\tstr: A valid JSON string representin... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the clean API.
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 clean API.
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... | Clean
Uses the valid method to check which type the value is, and then calls
the correct version of clean on that node
Arguments:
value {mixed} -- The value to clean
Returns:
mixed | "Clean\n\n\t\tUses the valid method to check which type the value is, and then calls\n\t\tthe correct version of clean on that node\n\n\t\tArguments:\n\t\t\tvalue {mixed} -- The value to clean\n\n\t\tReturns:\n\t\t\tmixed" | 155 | false | ouroboroscoding/format-oc-python | clean | 37,172 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.