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/mattrobenolt/ec2/make_compare
LDU_FT
[ "<BEGIN>\n## `from_file`", "Load ACCESS_KEY_ID and SECRET_ACCESS_KEY from csv\n generated by Amazon's IAM.", " >>> ec2.credentials.from_file('credentials.csv')\n<END>", "<BEGIN>\n## `make_compare`", "Map a key name to a specific comparison function\n<END>", "<BEGIN>\n## `all`", "Wrapper ar...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the make_compare API. 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 make_compare API. 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...
Map a key name to a specific comparison function
"Map a key name to a specific comparison function"
16
false
mattrobenolt/ec2
make_compare
19,073
LDU_FT/Nekroze/partpy/eat_length
LDU_FT
[ "<BEGIN>\n## `pretty_print`", "Print the previous and current line with line numbers and\n a carret under the current character position.", " Will also print a message if one is given to this exception.\n<END>", "<BEGIN>\n## `parse`", "Run the parser over the entire sourestring and return the ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the eat_length API. 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 eat_length API. 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...
Move current position forward by length and sets eos if needed.
"Move current position forward by length and sets eos if needed."
80
false
Nekroze/partpy
eat_length
19,074
LDU_FT/turicas/rows/export_to_txt
LDU_FT
[ "<BEGIN>\n## `import_from_json`", "Import a JSON file or file-like object into a `rows.Table`.", " If a file-like object is provided it MUST be open in text (non-binary) mode\n on Python 3 and could be open in both binary or text mode on Python 2.\n<END>", "<BEGIN>\n## `export_to_json`", "Export a `ro...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the export_to_txt API. 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 export_to_txt API. 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...
Export a `rows.Table` to text. This function can return the result as a string or save into a file (via filename or file-like object). `encoding` could be `None` if no filename/file-like object is specified, then the return type will be `six.text_type`. `frame_style`: will select the frame style t...
"Export a `rows.Table` to text.\n\n This function can return the result as a string or save into a file (via\n filename or file-like object).\n\n `encoding` could be `None` if no filename/file-like object is specified,\n then the return type will be `six.text_type`.\n `frame_style`: will select the frame...
123
false
turicas/rows
export_to_txt
19,075
LDU_FT/base4sistemas/satcfe/analisar
LDU_FT
[ "<BEGIN>\n## `salvar`", "Salva o arquivo de log decodificado.", " :param str destino: (Opcional) Caminho completo para o arquivo onde os\n dados dos logs deverão ser salvos. Se não informado, será criado\n um arquivo temporário via :func:`tempfile.mkstemp`.", " :param str p...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the analisar API. 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 analisar API. 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...
Constrói uma :class:`RespostaConsultarStatusOperacional` a partir do retorno informado. :param unicode retorno: Retorno da função ``ConsultarStatusOperacional``.
"Constrói uma :class:`RespostaConsultarStatusOperacional` a partir do\n retorno informado.\n\n :param unicode retorno: Retorno da função ``ConsultarStatusOperacional``."
208
false
base4sistemas/satcfe
analisar
19,076
LDU_FT/basler/pypylon/handle_typical_memberdefs
LDU_FT
[ "<BEGIN>\n## `shift`", "Return a list corresponding to the lines of text in the `txt` list\n indented by `indent`. Prepend instead the string given in `prepend` to the\n beginning of the first line. Note that if len(prepend) > len(indent), then\n `prepend` will be truncated (doing better is tricky!). Thi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the handle_typical_memberdefs 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 handle_typical_memberdefs API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi...
Produces docstring entries containing an "Overloaded function" section with the documentation for each overload, if the function is overloaded and self.with_overloaded_functions is set. Else, produce normal documentation.
"Produces docstring entries containing an \"Overloaded function\"\n section with the documentation for each overload, if the function is\n overloaded and self.with_overloaded_functions is set. Else, produce\n normal documentation."
42
false
basler/pypylon
handle_typical_memberdefs
19,077
LDU_FT/dgketchum/satellite_image/land_surface_temp
LDU_FT
[ "<BEGIN>\n## `_scene_centroid`", "Compute image center coordinates\n :return: Tuple of image center in lat, lon\n<END>", "<BEGIN>\n## `earth_sun_d`", "Earth-sun distance in AU", " :param dtime time, e.g. datetime.datetime(2007, 5, 1)\n :type datetime object\n :return float(distan...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the land_surface_temp API. 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 land_surface_temp API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Mean values from Allen (2007) :return:
"Mean values from Allen (2007)\n :return:"
86
false
dgketchum/satellite_image
land_surface_temp
19,078
LDU_FT/mobinrg/rpi_spark_drives/clearView
LDU_FT
[ "<BEGIN>\n## `setKeyButton`", "!\n \\~english\n Set key button event\n @param btnId: Key button pin number in BCM\n @param keyCallback: A interrupt <b>callback_function</b> or <b>None</b>. <br>\n If set to <b>None</b> means keybutton work in query mode<br>\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the clearView API. 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 clearView API. 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...
! \~english Clear up canvas with view size @param fillColor: a color value @note The fillColor value range depends on the setting of _buffer_color_mode. * If it is SS_COLOR_MODE_MONO ("1") monochrome mode, it can only select 0: black and 1: white * If...
"!\n \\~english\n Clear up canvas with view size\n @param fillColor: a color value\n @note \n The fillColor value range depends on the setting of _buffer_color_mode.\n * If it is SS_COLOR_MODE_MONO (\"1\") monochrome mode, it can only select 0: black and 1: white\n ...
135
false
mobinrg/rpi_spark_drives
clearView
19,079
LDU_FT/mgaitan/waliki/clean_meta
LDU_FT
[ "<BEGIN>\n## `clean_meta`", "remove moinmoin metada from the top of the file\n<END>", "<BEGIN>\n## `entry_point`", "include an snippet at the bottom of a block, if it exists", " For example, if the plugin with slug 'attachments' is registered", " waliki/attachments_edit_content.html will be incl...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the clean_meta API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the clean_meta API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
remove moinmoin metada from the top of the file
"remove moinmoin metada from the top of the file"
38
false
mgaitan/waliki
clean_meta
19,080
LDU_FT/rrwen/search_google/save_metadata
LDU_FT
[ "<BEGIN>\n## `run`", "Runs the search_google command line tool.", " This function runs the search_google command line tool \n in a terminal. It was intended for use inside a py file \n (.py) to be executed using python.", " Notes:\n * ``[q]`` reflects key ``q`` in the ``cseargs`` parameter for :class:`...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the save_metadata API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the save_metadata API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
Saves a json file of the search result metadata. Saves a json file of the search result metadata from :class:`api.results`.metadata. Args: file_path (str): Path to the json file to save metadata to.
"Saves a json file of the search result metadata.\n \n Saves a json file of the search result metadata from :class:`api.results`.metadata.\n \n Args:\n file_path (str):\n Path to the json file to save metadata to."
31
false
rrwen/search_google
save_metadata
19,081
LDU_FT/loli/medpy/centerdistance_xdminus1
LDU_FT
[ "<BEGIN>\n## `sls`", "r\"\"\"\n Computes the signed local similarity between two images.", " Compares a patch around each voxel of the minuend array to a number of patches\n centered at the points of a search neighbourhood in the subtrahend. Thus, creates\n a multi-dimensional measure of patch simil...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the centerdistance_xdminus1 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 centerdistance_xdminus1 API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion...
r""" Implementation of `centerdistance` that allows to compute sub-volume wise centerdistances. The same notes as for `centerdistance` apply. Parameters ---------- image : array_like or list/tuple of array_like A single image or a list/tuple of images (for multi-spectral case)...
"r\"\"\"\n Implementation of `centerdistance` that allows to compute sub-volume wise\n centerdistances.\n \n The same notes as for `centerdistance` apply.\n \n Parameters\n ----------\n image : array_like or list/tuple of array_like \n A single image or a list/tuple of images (for multi-s...
1,313
true
loli/medpy
centerdistance_xdminus1
19,082
LDU_FT/airspeed-velocity/asv/itemsize
LDU_FT
[ "<BEGIN>\n## `get_graph_data`", "Iterator over graph data sets", " Yields\n ------\n param_idx\n Flat index to parameter permutations for parameterized benchmarks.\n None if benchmark is not parameterized.\n entry_name\n Name for the data set. If benc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the itemsize API. 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 itemsize API. 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...
Return the item size of an object (in bytes). See function **basicsize** for a description of the options.
"Return the item size of an object (in bytes).\n\n See function **basicsize** for a description of\n the options."
256
false
airspeed-velocity/asv
itemsize
19,083
LDU_FT/Godley/MuseParse/FindByIndex
LDU_FT
[ "<BEGIN>\n## `get`", "method to fetch all contents as a list", " :return: list\n<END>", "<BEGIN>\n## `toLily`", "Method which converts the object instance and its attributes to a string of lilypond code", " :return: str of lilypond code\n<END>", "<BEGIN>\n## `Find`", "method for finding ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the FindByIndex API. 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 FindByIndex API. 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...
Method which finds child according to index. Applies only to nodes whose children are sorted into a dict, so if the current node's children are in a list it will recursively search - similarly if the index is not found in the current node's dictionary indexes. :param node: current node to search for :pa...
"Method which finds child according to index. Applies only to nodes whose children are sorted into a dict,\n so if the current node's children are in a list it will recursively search - similarly if the index is not found\n in the current node's dictionary indexes.\n :param node: current node to search for\n ...
113
false
Godley/MuseParse
FindByIndex
19,084
LDU_FT/pandeylab/pythomics/is_homozygous
LDU_FT
[ "<BEGIN>\n## `add_header`", "Parses the VCF Header field and returns the number of samples in the VCF file\n<END>", "<BEGIN>\n## `parse_entry`", "Parse an individual VCF entry and return a VCFEntry which contains information about\n the call (such as alternative allele, zygosity, etc.)\n<END>", "<BEG...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_homozygous API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_homozygous API. 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...
This will give a boolean list corresponding to whether each individual is homozygous for the alternative allele.
"This will give a boolean list corresponding to whether each individual\n is homozygous for the alternative allele."
49
false
pandeylab/pythomics
is_homozygous
19,085
LDU_FT/wooyek/django-powerbank/to_python
LDU_FT
[ "<BEGIN>\n## `to_python`", "Convert the input JSON value into python structures, raises\n django.core.exceptions.ValidationError if the data can't be converted.\n<END>", "<BEGIN>\n## `validate`", "Check value is a valid JSON string, raise ValidationError on\n error.\n<END>", "<BEGIN>\n## `get_...
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...
Convert the input JSON value into python structures, raises django.core.exceptions.ValidationError if the data can't be converted.
"Convert the input JSON value into python structures, raises\n django.core.exceptions.ValidationError if the data can't be converted."
13
false
wooyek/django-powerbank
to_python
19,086
LDU_FT/Bystroushaak/pyDHTMLParser/isEndTagTo
LDU_FT
[ "<BEGIN>\n## `_raw_split`", "Parse HTML from text into array filled with tags end text.", " Source code is little bit unintutive, because it is state machine parser.", " For better understanding, look at http://bit.ly/1rXRcJj", " Example::", " >>> dhtmlparser._raw_split('<html><tag params=...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the isEndTagTo API. 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 isEndTagTo API. 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...
Args: opener (obj): :class:`HTMLElement` instance. Returns: bool: True, if this element is endtag to `opener`.
"Args:\n opener (obj): :class:`HTMLElement` instance.\n\n Returns:\n bool: True, if this element is endtag to `opener`."
147
false
Bystroushaak/pyDHTMLParser
isEndTagTo
19,087
LDU_FT/uber-common/opentracing-python-instrumentation/install_patches
LDU_FT
[ "<BEGIN>\n## `install_all_patches`", "A convenience method that installs all available hooks.", " If a specific module is not available on the path, it is ignored.\n<END>", "<BEGIN>\n## `install_patches`", "Usually called from middleware to install client hooks\n specified in the client_hooks section ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the install_patches API. 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 install_patches API. 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...
Usually called from middleware to install client hooks specified in the client_hooks section of the configuration. :param patchers: a list of patchers to run. Acceptable values include: * None - installs all client patches * 'all' - installs all client patches * empty list - does not install ...
"Usually called from middleware to install client hooks\n specified in the client_hooks section of the configuration.\n\n :param patchers: a list of patchers to run. Acceptable values include:\n * None - installs all client patches\n * 'all' - installs all client patches\n * empty list - does not i...
74
false
uber-common/opentracing-python-instrumentation
install_patches
19,088
LDU_FT/warrenspe/hconf/parse
LDU_FT
[ "<BEGIN>\n## `registerParser`", "Registers a parser to parse configuration inputs.\n<END>", "<BEGIN>\n## `addConfig`", "Adds the given configuration option to the ConfigManager.", " Inputs: name - The configuration name to accept.\n required - A boolean indicating whether or ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
Parse configuration options out of a YAML configuration file. Inputs: configManager - Our parent ConfigManager instance which is constructing the Config object. config - The _Config object containing configuration options populated thus far. Outputs: A dictionary of new configur...
"Parse configuration options out of a YAML configuration file.\n\n Inputs: configManager - Our parent ConfigManager instance which is constructing the Config object.\n config - The _Config object containing configuration options populated thus far.\n\n Outputs: A dictionary of new co...
39
false
warrenspe/hconf
parse
19,089
LDU_FT/enricobacis/wos/make_retrieveParameters
LDU_FT
[ "<BEGIN>\n## `_api`", "API decorator for common tests (sessions open, etc.) and throttle\n limitation (calls per second).\n<END>", "<BEGIN>\n## `_premium`", "Premium decorator for APIs that require premium access level.\n<END>", "<BEGIN>\n## `make_retrieveParameters`", "Create retrieve parameters d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the make_retrieveParameters 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 make_retrieveParameters API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion...
Create retrieve parameters dictionary to be used with APIs. :count: Number of records to display in the result. Cannot be less than 0 and cannot be greater than 100. If count is 0 then only the summary information will be returned. :offset: First record in results to re...
"Create retrieve parameters dictionary to be used with APIs.\n\n :count: Number of records to display in the result. Cannot be less than\n 0 and cannot be greater than 100. If count is 0 then only the\n summary information will be returned.\n\n :offset: First record in result...
53
false
enricobacis/wos
make_retrieveParameters
19,090
LDU_FT/ThreatResponse/margaritashotgun/check_signing_key
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 check_signing_key API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the check_signing_key API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Check that repo signing key is trusted by gpg keychain
"Check that repo signing key is trusted by gpg keychain"
134
false
ThreatResponse/margaritashotgun
check_signing_key
19,091
LDU_FT/wcember/pypub/condense
LDU_FT
[ "<BEGIN>\n## `add_chapter`", "Add a Chapter to your epub.", " Args:\n c (Chapter): A Chapter object representing your chapter.", " Raises:\n TypeError: Raised if a Chapter object isn't supplied to this\n method.\n<END>", "<BEGIN>\n## `create_epub`", "Crea...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the condense API. 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 condense API. 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...
Trims leadings and trailing whitespace between tags in an html document Args: input_string: A (possible unicode) string representing HTML. Returns: A (possibly unicode) string representing HTML. Raises: TypeError: Raised if input_string isn't a unicode string or string.
"Trims leadings and trailing whitespace between tags in an html document\n\n Args:\n input_string: A (possible unicode) string representing HTML.\n\n Returns:\n A (possibly unicode) string representing HTML.\n\n Raises:\n TypeError: Raised if input_string isn't a unicode string or string."
49
false
wcember/pypub
condense
19,092
LDU_FT/GoogleCloudPlatform/appengine-pipelines/_get_timestamp_ms
LDU_FT
[ "<BEGIN>\n## `_get_task_target`", "Get the default target for a pipeline task.", " Current version id format is: user_defined_version.minor_version_number\n Current module id is just the module's name. It could be \"default\"", " Returns:\n A complete target name is of format version.module. If module i...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_timestamp_ms API. 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_timestamp_ms API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Converts a datetime.datetime to integer milliseconds since the epoch. Requires special handling to preserve microseconds. Args: when: A datetime.datetime instance. Returns: Integer time since the epoch in milliseconds. If the supplied 'when' is None, the return value will be None.
"Converts a datetime.datetime to integer milliseconds since the epoch.\n\n Requires special handling to preserve microseconds.\n\n Args:\n when: A datetime.datetime instance.\n\n Returns:\n Integer time since the epoch in milliseconds. If the supplied 'when' is\n None, the return value will be None."
222
false
GoogleCloudPlatform/appengine-pipelines
_get_timestamp_ms
19,093
LDU_FT/jaraco/keyrings.alt/get_password
LDU_FT
[ "<BEGIN>\n## `_ensure_file_path`", "Ensure the storage path exists.\n If it doesn't, create it with \"go-rwx\" permissions.\n<END>", "<BEGIN>\n## `delete_password`", "Delete the password for the username of the service.\n<END>", "<BEGIN>\n## `get_password`", "Get password of the username for the se...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_password API. 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 get_password API. 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...
Get password of the username for the service
"Get password of the username for the service"
43
false
jaraco/keyrings.alt
get_password
19,094
LDU_FT/micropython/micropython/get_dfu_devices
LDU_FT
[ "<BEGIN>\n## `ptr`", "Returns the numbered function (i.e. USART6) for this AF.\n<END>", "<BEGIN>\n## `run_loop`", "Start the loop.", " :param `leds`: Which LEDs to light up upon switch press.\n :type `leds`: sequence of LED objects\n<END>", "<BEGIN>\n## `find_c_file`", "Search vpaths for the c fil...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_dfu_devices API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_dfu_devices API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
Returns a list of USB device which are currently in DFU mode. Additional filters (like idProduct and idVendor) can be passed in to refine the search.
"Returns a list of USB device which are currently in DFU mode.\n Additional filters (like idProduct and idVendor) can be passed in to\n refine the search."
54
false
micropython/micropython
get_dfu_devices
19,095
LDU_FT/maraujop/requests-oauth/get_normalized_url
LDU_FT
[ "<BEGIN>\n## `to_utf8`", "Tries to utf-8 encode x when possible ", " If x is a string returns it encoded, otherwise tries to iter x and \n encode utf-8 all strings it contains, returning a list.\n<END>", "<BEGIN>\n## `signing_base`", "This method generates the OAuth signature. It's defined here to avo...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_normalized_url 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_normalized_url API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
Returns a normalized url, without params
"Returns a normalized url, without params"
11
false
maraujop/requests-oauth
get_normalized_url
19,096
LDU_FT/oauthlib/oauthlib/prepare_token_revocation_request
LDU_FT
[ "<BEGIN>\n## `signature_base_string`", "**Construct the signature base string.**\n Per `section 3.4.1.1`_ of the spec.", " For example, the HTTP request::", " POST /request?b5=%3D%253D&a3=a&c%40=&a2=r%20b HTTP/1.1\n Host: example.com\n Content-Type: application/x-www-form-urlencoded...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the prepare_token_revocation_request API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its c...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the prepare_token_revocation_request API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its c...
Prepare a token revocation request. :param revocation_url: Provider token revocation endpoint URL. :param token: The access or refresh token to be revoked (string). :param token_type_hint: ``"access_token"`` (default) or ``"refresh_token"``. This is optional and if you wish to not pas...
"Prepare a token revocation request.\n\n :param revocation_url: Provider token revocation endpoint URL.\n\n :param token: The access or refresh token to be revoked (string).\n\n :param token_type_hint: ``\"access_token\"`` (default) or\n ``\"refresh_token\"``. This is optional and if you wis...
651
false
oauthlib/oauthlib
prepare_token_revocation_request
19,097
LDU_FT/e3krisztian/pyrene/do_set
LDU_FT
[ "<BEGIN>\n## `pip_install`", "Run pip install ...", " Explicitly ignores user's config.\n<END>", "<BEGIN>\n## `do_copy`", "Copy packages between repos", " copy SOURCE DESTINATION", " Where SOURCE can be either LOCAL-FILE or REPO:PACKAGE-SPEC\n DESTINATION can be either a REPO: ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the do_set API. 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 do_set API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Set repository attributes on the active repo. set attribute=value # intended use: # directory repos: work_on developer-repo set type=directory set directory=package-directory # http repos: work_on company-private-repo set type=http set ...
"Set repository attributes on the active repo.\n\n set attribute=value\n\n # intended use:\n\n # directory repos:\n work_on developer-repo\n set type=directory\n set directory=package-directory\n\n # http repos:\n work_on company-private-repo\n set type=htt...
34
false
e3krisztian/pyrene
do_set
19,098
LDU_FT/TissueMAPS/TmDeploy/key_file_public
LDU_FT
[ "<BEGIN>\n## `__init_os_api`", "Initialise client objects for talking to OpenStack API.", " This is in a separate function so to be called by ``__init__`` and\n ``__setstate__``.\n<END>", "<BEGIN>\n## `stop_instance`", "Stops the instance gracefully.", " :param str instance_id: instan...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the key_file_public API. 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 key_file_public API. 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...
str: path to the public key that will be uploaded to the cloud provider (by default looks for a ``.pub`` file with name :attr:`key_name <tmdeploy.config.CloudSection.key_name>` in ``~/.ssh`` directory)
"str: path to the public key that will be uploaded to the cloud\n provider (by default looks for a ``.pub`` file with name\n :attr:`key_name <tmdeploy.config.CloudSection.key_name>` in ``~/.ssh``\n directory)"
192
false
TissueMAPS/TmDeploy
key_file_public
19,099
LDU_FT/wmayner/pyphi/psq2
LDU_FT
[ "<BEGIN>\n## `memory_full`", "Check if the memory is too full for further caching.\n<END>", "<BEGIN>\n## `cache`", "Memory-limited cache decorator.", " ``maxmem`` is a float between 0 and 100, inclusive, specifying the maximum\n percentage of physical memory that the cache can use.", " If ``typed...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the psq2 API. 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 psq2 API. 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...
Compute the PSQ2 measure. Args: d1 (np.ndarray): The first distribution. d2 (np.ndarray): The second distribution.
"Compute the PSQ2 measure.\n\n Args:\n d1 (np.ndarray): The first distribution.\n d2 (np.ndarray): The second distribution."
914
false
wmayner/pyphi
psq2
19,100
LDU_FT/neurosnap/mudicom/walk
LDU_FT
[ "<BEGIN>\n## `validate`", "This function uses dciodvfy to generate\n a list of warnings and errors discovered within\n the DICOM file.", " :param fname: Location and filename of DICOM file.\n<END>", "<BEGIN>\n## `numpy`", "Grabs image data and converts it to a numpy array\n<END>", "<BEGIN>\n## `_...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the walk API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the walk API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
Loops through all data elements and allows a function to interact with each data element. Uses a generator to improve iteration. :param fn: Function that interacts with each DICOM element
"Loops through all data elements and allows a function to interact\n with each data element. Uses a generator to improve iteration.\n\n :param fn: Function that interacts with each DICOM element"
35
false
neurosnap/mudicom
walk
19,101
LDU_FT/twisted/vertex/addPrivateCertificate
LDU_FT
[ "<BEGIN>\n## `enregister`", "Register a new account and return a Deferred that fires if it worked.", " @param svc: a Q2QService", " @param newAddress: a Q2QAddress object", " @param password: a shared secret (str)\n<END>", "<BEGIN>\n## `connectCached`", "See module docstring", " @param...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the addPrivateCertificate 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 addPrivateCertificate API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Add a PrivateCertificate object to this store for this subjectName. If existingCertificate is None, add a new self-signed certificate.
"Add a PrivateCertificate object to this store for this subjectName.\n\n If existingCertificate is None, add a new self-signed certificate."
191
false
twisted/vertex
addPrivateCertificate
19,102
LDU_FT/darkfeline/animanager/_is_video
LDU_FT
[ "<BEGIN>\n## `_clean_fields`", "Clean lookup fields and check for errors.\n<END>", "<BEGIN>\n## `select`", "Perform an arbitrary SQL SELECT WHERE on the anime table.", " By nature of \"arbitrary query\", this is vulnerable to injection, use only\n trusted values for `where_query`.", " This will \...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _is_video API. 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 _is_video API. 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...
Check filename extension to see if it's a video file.
"Check filename extension to see if it's a video file."
69
false
darkfeline/animanager
_is_video
19,103
LDU_FT/base4sistemas/satcfe/extrair_logs
LDU_FT
[ "<BEGIN>\n## `salvar`", "Salva o arquivo de log decodificado.", " :param str destino: (Opcional) Caminho completo para o arquivo onde os\n dados dos logs deverão ser salvos. Se não informado, será criado\n um arquivo temporário via :func:`tempfile.mkstemp`.", " :param str p...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the extrair_logs API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the extrair_logs API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
Sobrepõe :meth:`~satcfe.base.FuncoesSAT.extrair_logs`. :return: Uma resposta SAT especializada em ``ExtrairLogs``. :rtype: satcfe.resposta.extrairlogs.RespostaExtrairLogs
"Sobrepõe :meth:`~satcfe.base.FuncoesSAT.extrair_logs`.\n\n :return: Uma resposta SAT especializada em ``ExtrairLogs``.\n :rtype: satcfe.resposta.extrairlogs.RespostaExtrairLogs"
208
false
base4sistemas/satcfe
extrair_logs
19,104
LDU_FT/benfred/implicit/get_movielens
LDU_FT
[ "<BEGIN>\n## `download_file`", "Simple wrapper around urlretrieve that uses tqdm to display a progress\n bar of download progress\n<END>", "<BEGIN>\n## `extract_gcc_binaries`", "Try to find GCC on OSX for OpenMP support.\n<END>", "<BEGIN>\n## `set_gcc`", "Try to use GCC on OSX for OpenMP support.\n<END...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_movielens API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_movielens API. 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...
Gets movielens datasets Parameters --------- variant : string Which version of the movielens dataset to download. Should be one of '20m', '10m', '1m' or '100k'. Returns ------- movies : ndarray An array of the movie titles. ratings : csr_matrix A sparse matr...
"Gets movielens datasets\n\n Parameters\n ---------\n variant : string\n Which version of the movielens dataset to download. Should be one of '20m', '10m',\n '1m' or '100k'.\n\n Returns\n -------\n movies : ndarray\n An array of the movie titles.\n ratings : csr_matrix\n ...
87
false
benfred/implicit
get_movielens
19,105
LDU_FT/QualiSystems/vCenterShell/vnic_compose_empty
LDU_FT
[ "<BEGIN>\n## `get_inventory`", "Will locate vm in vcenter and fill its uuid\n :type context: cloudshell.shell.core.context.ResourceCommandContext\n<END>", "<BEGIN>\n## `get_snapshots`", "Restores a virtual machine to a snapshot\n :param vim.ServiceInstance si: py_vmomi service instance\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the vnic_compose_empty 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 vnic_compose_empty 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...
Compose empty vNIC for next attaching to a network :param device: <vim.vm.device.VirtualVmxnet3 or None> Device for this this 'spec' will be composed. If 'None' a new device will be composed. 'Operation' - edit/add' depends on if device existed :return: <vim.vm.device.VirtualDevi...
"Compose empty vNIC for next attaching to a network\n :param device: <vim.vm.device.VirtualVmxnet3 or None> Device for this this 'spec' will be composed.\n If 'None' a new device will be composed.\n 'Operation' - edit/add' depends on if device existed\n :return: <vim.vm.device.Virtua...
231
false
QualiSystems/vCenterShell
vnic_compose_empty
19,106
LDU_FT/rosenbrockc/acorn/_get_acorn
LDU_FT
[ "<BEGIN>\n## `cascade`", "Restores a sequence of string definitions using the first entry as the\n original and then applying a series of :func:`~acorn.logging.diff.restore`\n calls.", " Args:\n sequence (list): of results returned by\n :func:`~acorn.logging.diff.compress`, except that ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_acorn API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_acorn API. 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...
Gets either a slice or an item from an array. Used for the __getitem__ and __getslice__ special methods of the sub-classed array. Args: method (str): on of ['slice', 'item'].
"Gets either a slice or an item from an array. Used for the __getitem__\n and __getslice__ special methods of the sub-classed array.\n\n Args:\n method (str): on of ['slice', 'item']."
263
false
rosenbrockc/acorn
_get_acorn
19,107
LDU_FT/lokhman/pydbal/fetch
LDU_FT
[ "<BEGIN>\n## `locked`", "Context generator for `with` statement, yields thread-safe connection.", " :return: thread-safe connection\n :rtype: pydbal.connection.Connection\n<END>", "<BEGIN>\n## `query`", "Executes an SQL SELECT query and returns rows generator.", " :param sql: query to...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the fetch API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the fetch API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
Executes an SQL SELECT query and returns the first row or `None`. :param sql: statement to execute :param args: parameters iterable :param kwargs: parameters iterable :return: the first row or `None`
"Executes an SQL SELECT query and returns the first row or `None`.\n\n :param sql: statement to execute\n :param args: parameters iterable\n :param kwargs: parameters iterable\n :return: the first row or `None`"
84
false
lokhman/pydbal
fetch
19,108
LDU_FT/grampajoe/pymosh/find_all
LDU_FT
[ "<BEGIN>\n## `find`", "Find the first chunk with specified header and optional list type.\n<END>", "<BEGIN>\n## `find_all`", "Find all direct children with header and optional list type.\n<END>", "<BEGIN>\n## `replace`", "Replace a child chunk with something else.\n<END>", "<BEGIN>\n## `from_data`", "...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_all API. 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 find_all API. 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...
Find all direct children with header and optional list type.
"Find all direct children with header and optional list type."
10
false
grampajoe/pymosh
find_all
19,109
LDU_FT/pysal/spglm/loglike
LDU_FT
[ "<BEGIN>\n## `fit`", "Method that fits a model with a particular estimation routine.", " Parameters\n ----------", " ini_betas : array\n k*1, initial coefficient values, including constant.\n Default is None, which calculates initial value...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the loglike API. 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 loglike API. 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...
r""" The log-likelihood function in terms of the fitted mean response. Parameters ---------- endog : array-like Endogenous response variable mu : array-like Fitted mean response variable freq_weights : array-like 1d array of frequency ...
"r\"\"\"\n The log-likelihood function in terms of the fitted mean response.\n\n Parameters\n ----------\n endog : array-like\n Endogenous response variable\n mu : array-like\n Fitted mean response variable\n freq_weights : array-like\n 1d array...
161
false
pysal/spglm
loglike
19,110
LDU_FT/MediaFire/mediafire-python-open-sdk/seek
LDU_FT
[ "<BEGIN>\n## `decode_resumable_upload_bitmap`", "Decodes bitmap_node to hash of unit_id: is_uploaded", " bitmap_node -- bitmap node of resumable_upload with\n 'count' number and 'words' containing array\n number_of_units -- number of units we are uploading to\n defi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the seek API. 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 seek API. 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...
Seek to position in stream, see file.seek
"Seek to position in stream, see file.seek"
145
false
MediaFire/mediafire-python-open-sdk
seek
19,111
LDU_FT/evandempsey/fp-growth/generate_pattern_list
LDU_FT
[ "<BEGIN>\n## `find_frequent_patterns`", "Given a set of transactions, find the patterns in it\n over the specified support threshold.\n<END>", "<BEGIN>\n## `generate_association_rules`", "Given a set of frequent itemsets, return a dict\n of association rules in the form\n {(left): ((right), confidenc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the generate_pattern_list API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the generate_pattern_list API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Generate a list of patterns with support counts.
"Generate a list of patterns with support counts."
22
false
evandempsey/fp-growth
generate_pattern_list
19,112
LDU_FT/timothydmorton/VESPA/generate
LDU_FT
[ "<BEGIN>\n## `from_df`", "Builds TripleOrbitPopulation from DataFrame", " ``DataFrame`` objects must be of appropriate form to pass\n to :func:`OrbitPopulation.from_df`.", " :param df_long, df_short:\n :class:`pandas.DataFrame` objects to pass to\n :func:`OrbitPopula...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the generate API. 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 generate API. 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...
Generates stars and eclipses All arguments previously defined.
"Generates stars and eclipses\n\n All arguments previously defined."
495
false
timothydmorton/VESPA
generate
19,113
LDU_FT/materialsproject/custodian/full_opt_run
LDU_FT
[ "<BEGIN>\n## `from_spec`", "Load a Custodian instance where the jobs are specified from a\n structure and a spec dict. This allows simple\n custom job sequences to be constructed quickly via a YAML file.", " Args:\n spec (dict): A dict specifying job. A sample of the dict in\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the full_opt_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 extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the full_opt_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 extr...
Returns a generator of jobs for a full optimization run. Basically, this runs an infinite series of geometry optimization jobs until the % vol change in a particular optimization is less than vol_change_tol. Args: vasp_cmd (str): Command to run vasp as a list of args. For example, ...
"Returns a generator of jobs for a full optimization run. Basically,\n this runs an infinite series of geometry optimization jobs until the\n % vol change in a particular optimization is less than vol_change_tol.\n\n Args:\n vasp_cmd (str): Command to run vasp as a list of args. For exam...
90
false
materialsproject/custodian
full_opt_run
19,114
LDU_FT/slundberg/shap/run_remote_experiments
LDU_FT
[ "<BEGIN>\n## `imagenet50`", "This is a set of 50 images representative of ImageNet images.", " This dataset was collected by randomly finding a working ImageNet link and then pasting the\n original ImageNet image into Google image search restricted to images licensed for reuse. A\n similar image (now w...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the run_remote_experiments API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the run_remote_experiments API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
Use ssh to run the experiments on remote machines in parallel. Parameters ---------- experiments : iterable Output of shap.benchmark.experiments(...). thread_hosts : list of strings Each host has the format "host_name:path_to_python_binary" and can appear multiple times in the ...
"Use ssh to run the experiments on remote machines in parallel.\n\n Parameters\n ----------\n experiments : iterable\n Output of shap.benchmark.experiments(...).\n\n thread_hosts : list of strings\n Each host has the format \"host_name:path_to_python_binary\" and can appear multiple times\n ...
299
false
slundberg/shap
run_remote_experiments
19,115
LDU_FT/rtfd/recommonmark/depart_heading
LDU_FT
[ "<BEGIN>\n## `reset`", "Reset the state of state machine.", " After reset, self and self.state can be used to\n passed to docutils.parsers.rst.Directive.run", " Parameters\n ----------\n document: docutils document\n Current document of the node.\n parent: ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the depart_heading API. 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 depart_heading API. 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...
Finish establishing section Wrap up title node, but stick in the section node. Add the section names based on all the text nodes added to the title.
"Finish establishing section\n\n Wrap up title node, but stick in the section node. Add the section names\n based on all the text nodes added to the title."
42
false
rtfd/recommonmark
depart_heading
19,116
LDU_FT/rdireen/spherepy/size
LDU_FT
[ "<BEGIN>\n## `sbessely`", "Returns a vector of spherical bessel functions yn:\r", " x: The argument.\r\n N: values of n will run from 0 to N-1.\n<END>", "<BEGIN>\n## `sbesselj`", "Returns a vector of spherical bessel functions jn:\r", " x: The argument.\r\n N: values of...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the 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 extracted do...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the 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 extracted do...
Total number of coefficients in the ScalarCoefs structure. Example:: >>> sz = c.size >>> N = c.nmax + 1 >>> L = N+ c.mmax * (2 * N - c.mmax - 1); >>> assert sz == L
"Total number of coefficients in the ScalarCoefs structure.\r\n\r\n Example::\r\n\r\n >>> sz = c.size\r\n >>> N = c.nmax + 1\r\n >>> L = N+ c.mmax * (2 * N - c.mmax - 1);\r\n >>> assert sz == L"
194
false
rdireen/spherepy
size
19,117
LDU_FT/weblyzard/inscriptis/get_text
LDU_FT
[ "<BEGIN>\n## `get_format_spec`", "The format specification according to the values of `align` and `width`\n<END>", "<BEGIN>\n## `compute_column_width_and_height`", "compute and set the column width for all colls in the table\n<END>", "<BEGIN>\n## `get_text`", "::returns:\n a rendered string rep...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_text API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_text API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
::returns: a rendered string representation of the given table
"::returns:\n a rendered string representation of the given table"
26
false
weblyzard/inscriptis
get_text
19,118
LDU_FT/squaresLab/BugZoo/resolve
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 resolve API. 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 resolve API. 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...
Ensures that relative paths are transformed into absolute paths.
"Ensures that relative paths are transformed into absolute paths."
247
false
squaresLab/BugZoo
resolve
19,119
LDU_FT/theelous3/asks/_get_new_sock
LDU_FT
[ "<BEGIN>\n## `request`", "Base function for one time http requests.", " Args:\n method (str): The http method to use. For example 'GET'\n uri (str): The url of the resource.\n Example: 'https://example.com/stuff'\n kwargs: Any number of arguments supported, found here:\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_new_sock API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_new_sock API. 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...
On 'Connection: close' headers we've to create a new connection. This reaches in to the parent session and pulls a switcheroo, dunking the current connection and requesting a new one.
"On 'Connection: close' headers we've to create a new connection.\n This reaches in to the parent session and pulls a switcheroo, dunking\n the current connection and requesting a new one."
75
false
theelous3/asks
_get_new_sock
19,120
LDU_FT/rfk/tnetstring/_gdumps
LDU_FT
[ "<BEGIN>\n## `dumps`", "dumps(object,encoding=None) -> string", " This function dumps a python object as a tnetstring.\n<END>", "<BEGIN>\n## `_rdumpq`", "Dump value as a tnetstring, to a deque instance, last chunks first.", " This function generates the tnetstring representation of the given value,\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _gdumps API. 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 _gdumps API. 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...
Generate fragments of value dumped as a tnetstring. This is the naive dumping algorithm, implemented as a generator so that it's easy to pass to "".join() without building a new list. This is mainly here for comparison purposes; the _rdumpq version is measurably faster as it doesn't have to build inte...
"Generate fragments of value dumped as a tnetstring.\n\n This is the naive dumping algorithm, implemented as a generator so that\n it's easy to pass to \"\".join() without building a new list.\n\n This is mainly here for comparison purposes; the _rdumpq version is\n measurably faster as it doesn't have to b...
18
false
rfk/tnetstring
_gdumps
19,121
LDU_FT/pjmark/NIMPA/roi_extraction
LDU_FT
[ "<BEGIN>\n## `trimim`", "Trim and upsample PET image(s), e.g., for GPU execution,\n PVC correction, ROI sampling, etc.\n The input images 'fims' can be passed in multiple ways:\n 1. as a string of the folder containing NIfTI files\n 2. as a string of a NIfTI file path (this way a 4D image can be loade...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the roi_extraction API. 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 roi_extraction API. 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...
Extracting ROI values of upsampled PET. If not provided it will be upsampled. imdic: dictionary of all image parts (image, path to file and affine transformation) > fpet: file name for quantitative PET > faff: file name and path to the affine (rigid) transformations, most likely for upscaled PET ...
"Extracting ROI values of upsampled PET. If not provided it will be upsampled.\n imdic: dictionary of all image parts (image, path to file and affine transformation) \n > fpet: file name for quantitative PET\n > faff: file name and path to the affine (rigid) transformations, most likely for upscaled PET\...
78
false
pjmark/NIMPA
roi_extraction
19,122
LDU_FT/bfrog/whizzer/response
LDU_FT
[ "<BEGIN>\n## `remote`", "Decorator that adds a remote attribute to a function.", " fn -- function being decorated\n name -- aliased name of the function, used for remote proxies\n types -- a argument type specifier, can be used to ensure\n arguments are of the correct type\n<END>", "<BEGI...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the response API. 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 response API. 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...
Handle a results message given to the proxy by the protocol object.
"Handle a results message given to the proxy by the protocol object."
107
false
bfrog/whizzer
response
19,123
LDU_FT/ml31415/numpy-groupies/multi_arange
LDU_FT
[ "<BEGIN>\n## `aggregate_group_loop`", "wraps func in lambda which prevents aggregate_numpy from\n recognising and optimising it. Instead it groups and loops.\n<END>", "<BEGIN>\n## `step_count`", "Return the amount of index changes within group_idx.\n<END>", "<BEGIN>\n## `step_indices`", "Return the edg...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the multi_arange API. 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 multi_arange API. 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...
By example: # 0 1 2 3 4 5 6 7 8 n = [0, 0, 3, 0, 0, 2, 0, 2, 1] res = [0, 1, 2, 0, 1, 0, 1, 0] That is it is equivalent to something like this : hstack((arange(n_i) for n_i in n)) This version seems quite a bit faster, at least for some possible...
"By example:\n \n # 0 1 2 3 4 5 6 7 8\n n = [0, 0, 3, 0, 0, 2, 0, 2, 1]\n res = [0, 1, 2, 0, 1, 0, 1, 0]\n\n That is it is equivalent to something like this :\n \n hstack((arange(n_i) for n_i in n))\n \n This version seems quite a bit faster, at least for some\n...
56
false
ml31415/numpy-groupies
multi_arange
19,124
LDU_FT/nickmilon/Hellas/time_func
LDU_FT
[ "<BEGIN>\n## `logging_format`", "returns a format\n :parameter:\n - str style: defines style of output format (defaults to txt)\n - txt plain text\n - dict like text which can be casted to dict\n<END>", "<BEGIN>\n## `logger_multi`", "a logger that logs to file as well as as scr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the time_func API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the time_func API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
time a function decorator :param args: any args to pass to the function :paran kwargs: any key arguments to pass to the function (if 'operations' is in kwargs keys it is used to calculate operations per second)
"time a function decorator\n :param args: any args to pass to the function\n :paran kwargs: any key arguments to pass to the function\n (if 'operations' is in kwargs keys it is used to calculate operations per second)"
71
false
nickmilon/Hellas
time_func
19,125
LDU_FT/quikmile/trellio/attach_tcp_service
LDU_FT
[ "<BEGIN>\n## `publish`", "publish the return value of this function as a message from this endpoint\n<END>", "<BEGIN>\n## `xsubscribe`", "Used to listen for publications from a specific endpoint of a service. If multiple instances\n subscribe to an endpoint, only one of them receives the event. And the pub...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the attach_tcp_service 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 attach_tcp_service 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...
Attaches a service for hosting :param tcp_service: A TCPService instance
"Attaches a service for hosting\n :param tcp_service: A TCPService instance"
47
false
quikmile/trellio
attach_tcp_service
19,126
LDU_FT/exxeleron/qPython/qlist
LDU_FT
[ "<BEGIN>\n## `read`", "Reads and optionally parses a single message.", " :Parameters:\n - `source` - optional data buffer to be read, if not specified data is \n read from the wrapped stream\n :Options:\n - `raw` (`boolean`) - indicates whether read data should parsed or ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the qlist API. 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 qlist API. 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...
Converts an input array to q vector and enriches object instance with meta data. Returns a :class:`.QList` instance for non-datetime vectors. For datetime vectors :class:`.QTemporalList` is returned instead. If parameter `adjust_dtype` is `True` and q type retrieved via :func:`.get_list_qtype` ...
"Converts an input array to q vector and enriches object instance with \n meta data.\n\n Returns a :class:`.QList` instance for non-datetime vectors. For datetime \n vectors :class:`.QTemporalList` is returned instead.\n\n If parameter `adjust_dtype` is `True` and q type retrieved via \n :func:`.get_list...
127
false
exxeleron/qPython
qlist
19,127
LDU_FT/thoth-station/solver/pip_compile
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 pip_compile API. 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 pip_compile API. 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...
Run pip-compile to pin down packages, also resolve their transitive dependencies.
"Run pip-compile to pin down packages, also resolve their transitive dependencies."
41
false
thoth-station/solver
pip_compile
19,128
LDU_FT/garenchan/policy/register
LDU_FT
[ "<BEGIN>\n## `from_dict`", "Allow loading of rule data from a dictionary.\n<END>", "<BEGIN>\n## `_set_rules`", "Created a new Rules object based on the provided dict of rules.\n<END>", "<BEGIN>\n## `enforce`", "Checks authorization of a rule against the target and credentials.\n<END>", "<BEGIN>\n## `rea...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the register API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the register API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
A decorator used for register custom check. :param name: name of check :type: str :param _callable: check class or a function which return check instance :return: _callable or a decorator
"A decorator used for register custom check.\n\n :param name: name of check\n :type: str\n :param _callable: check class or a function which return check instance\n :return: _callable or a decorator"
35
false
garenchan/policy
register
19,129
LDU_FT/jorgenkg/python-neural-network/replace_nan
LDU_FT
[ "<BEGIN>\n## `predict`", "This method accepts a list of Instances", " Eg: list_of_inputs = [ Instance([0.12, 0.54, 0.84]), Instance([0.15, 0.29, 0.49]) ]\n<END>", "<BEGIN>\n## `save_network_to_file`", "This save method pickles the parameters of the current network into a \n binary file for per...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the replace_nan API. 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 replace_nan API. 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...
Replace instanced of "not a number" with either the mean of the signal feature or a specific value assigned by `replace_nan_with`
"Replace instanced of \"not a number\" with either the mean of the signal feature\n or a specific value assigned by `replace_nan_with`"
19
false
jorgenkg/python-neural-network
replace_nan
19,130
LDU_FT/Saledddar/pyunet/find_file_regex
LDU_FT
[ "<BEGIN>\n## `add_to_path`", "Adds a path to python paths and removes it after the 'with' block ends\n<END>", "<BEGIN>\n## `find_file_regex`", "Finds all the files with the specified root directory with the name matching the regex expression.\n Args :\n root_dir : The root ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_file_regex API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_file_regex API. 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...
Finds all the files with the specified root directory with the name matching the regex expression. Args : root_dir : The root directory. re_expression : The regex expression. return_abs_path : If set to true, returns the absolute path of th...
"Finds all the files with the specified root directory with the name matching the regex expression.\n Args :\n root_dir : The root directory.\n re_expression : The regex expression.\n return_abs_path : If set to true, returns the absolute path ...
18
false
Saledddar/pyunet
find_file_regex
19,131
LDU_FT/petrjasek/eve-elastic/_get_field_mapping
LDU_FT
[ "<BEGIN>\n## `get_dates`", "Return list of datetime fields for given schema.\n<END>", "<BEGIN>\n## `set_filters`", "Put together all filters we have and set them as 'and' filter\n within filtered query.", " :param query: elastic query being constructed\n :param base_filters: all filters set outside...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_field_mapping 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_field_mapping 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...
Get mapping for single field schema. :param schema: field schema
"Get mapping for single field schema.\n\n :param schema: field schema"
106
false
petrjasek/eve-elastic
_get_field_mapping
19,132
LDU_FT/xhtml2pdf/xhtml2pdf/_parseAtPage
LDU_FT
[ "<BEGIN>\n## `pisaParser`", "- Parse HTML and get miniDOM\n - Extract CSS informations, add default CSS, parse CSS\n - Handle the document DOM itself and build reportlab story\n - Return Context object\n<END>", "<BEGIN>\n## `splitIntoLines`", "Split text into lines and calculate X positions. If we ne...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _parseAtPage API. 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 _parseAtPage API. 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...
page : PAGE_SYM S* IDENT? pseudo_page? S* '{' S* declaration [ ';' S* declaration ]* '}' S* ;
"page\n : PAGE_SYM S* IDENT? pseudo_page? S*\n '{' S* declaration [ ';' S* declaration ]* '}' S*\n ;"
134
false
xhtml2pdf/xhtml2pdf
_parseAtPage
19,133
LDU_FT/raamana/pyradigm/extend
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 extend API. 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 extend API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Method to extend the dataset vertically (add samples from anotehr dataset). Parameters ---------- other : MLDataset second dataset to be combined with the current (different samples, but same dimensionality) Raises ------ TypeError i...
"Method to extend the dataset vertically (add samples from anotehr dataset).\n\n Parameters\n ----------\n other : MLDataset\n second dataset to be combined with the current\n (different samples, but same dimensionality)\n\n Raises\n ------\n TypeError\n ...
140
false
raamana/pyradigm
extend
19,134
LDU_FT/treyhunner/django-simple-history/as_of
LDU_FT
[ "<BEGIN>\n## `register`", "Create historical model for `model` and attach history manager to `model`.", " Keyword arguments:\n app -- App to install historical model into (defaults to model.__module__)\n manager_name -- class attribute name to use for historical manager\n records_class -- class to u...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the as_of API. 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 as_of API. 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...
Get a snapshot as of a specific date. Returns an instance, or an iterable of the instances, of the original model with all the attributes set according to what was present on the object on the date provided.
"Get a snapshot as of a specific date.\n\n Returns an instance, or an iterable of the instances, of the\n original model with all the attributes set according to what\n was present on the object on the date provided."
36
false
treyhunner/django-simple-history
as_of
19,135
LDU_FT/raphaelvallat/pingouin/_column_type
LDU_FT
[ "<BEGIN>\n## `plot_blandaltman`", "Generate a Bland-Altman plot to compare two sets of measurements.", " Parameters\n ----------\n x, y : np.array or list\n First and second measurements.\n agreement : float\n Multiple of the standard deviation to plot limit of agreement bounds.\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _column_type API. 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 _column_type API. 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...
The least generic type all column values are convertible to. >>> _column_type([True, False]) is _bool_type True >>> _column_type(["1", "2"]) is _int_type True >>> _column_type(["1", "2.3"]) is _float_type True >>> _column_type(["1", "2.3", "four"]) is _text_type True >>> _column_typ...
"The least generic type all column values are convertible to.\n\n >>> _column_type([True, False]) is _bool_type\n True\n >>> _column_type([\"1\", \"2\"]) is _int_type\n True\n >>> _column_type([\"1\", \"2.3\"]) is _float_type\n True\n >>> _column_type([\"1\", \"2.3\", \"four\"]) is _text_type\n ...
1,159
true
raphaelvallat/pingouin
_column_type
19,136
LDU_FT/ECESeniorDesign/greenhouse_envmgmt/update_soil_moisture
LDU_FT
[ "<BEGIN>\n## `TCA_select`", "This function will write to the control register of the\r\n TCA module to select the channel that will be\r\n exposed on the TCA module.\r\n After doing this, the desired module can be used as it would be normally.\r\n (The caller sh...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update_soil_moisture 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 update_soil_moisture API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Method will select the ADC module, turn on the analog sensor, wait for voltage settle, and then digitize the sensor voltage. Voltage division/signal loss is accounted for by scaling up the sensor output. This may need to be adjusted if ...
"Method will select the ADC module,\r\n turn on the analog sensor, wait for voltage settle, \r\n and then digitize the sensor voltage. \r\n Voltage division/signal loss is accounted for by \r\n scaling up the sensor output.\r\n This may need to be a...
55
false
ECESeniorDesign/greenhouse_envmgmt
update_soil_moisture
19,137
LDU_FT/aewallin/allantools/adev
LDU_FT
[ "<BEGIN>\n## `set_input`", "Set inputs after initialization", " Parameters\n -------\n nr: integer\n length of generated time-series\n number must be power of two\n qd: float\n discrete variance\n b: float\n noise type:\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the adev API. 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 adev API. 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...
Allan deviation. Classic - use only if required - relatively poor confidence. .. math:: \\sigma^2_{ADEV}(\\tau) = { 1 \\over 2 \\tau^2 } \\langle ( {x}_{n+2} - 2x_{n+1} + x_{n} )^2 \\rangle = { 1 \\over 2 (N-2) \\tau^2 } \\sum_{n=1}^{N-2} ( {x}_{n+2} - 2x_{n+1} + x_{n} )^2 ...
"Allan deviation.\n Classic - use only if required - relatively poor confidence.\n\n .. math::\n\n \\\\sigma^2_{ADEV}(\\\\tau) = { 1 \\\\over 2 \\\\tau^2 }\n \\\\langle ( {x}_{n+2} - 2x_{n+1} + x_{n} )^2 \\\\rangle\n = { 1 \\\\over 2 (N-2) \\\\tau^2 }\n \\\\sum_{n=1}^{N-2} ( {x}_{n...
273
false
aewallin/allantools
adev
19,138
LDU_FT/softwarefactory-project/rdopkg/recognized_release
LDU_FT
[ "<BEGIN>\n## `rdopkg_runner`", "default rdopkg action runner including rdopkg action modules\n<END>", "<BEGIN>\n## `rdopkg`", "rdopkg CLI interface", " Execute rdopkg action with specified arguments and return\n shell friendly exit code.", " This is the default high level way to interact with rdo...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the recognized_release 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 recognized_release 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...
Check if this Release value is something we can parse. :rtype: bool
"Check if this Release value is something we can parse.\n :rtype: bool"
60
false
softwarefactory-project/rdopkg
recognized_release
19,139
LDU_FT/sangoma/pysensu/get_event
LDU_FT
[ "<BEGIN>\n## `get_all_client_events`", "Returns the list of current events for a given client.\n<END>", "<BEGIN>\n## `get_event`", "Returns an event for a given client & check name.\n<END>", "<BEGIN>\n## `delete_event`", "Resolves an event for a given check on a given client. (delayed action)\n<END>", "...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_event API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_event API. 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...
Returns an event for a given client & check name.
"Returns an event for a given client & check name."
18
false
sangoma/pysensu
get_event
19,140
LDU_FT/jaumebonet/libconfig/write_options_to_file
LDU_FT
[ "<BEGIN>\n## `_get_repo`", "Identify the path to the repository origin.\n<END>", "<BEGIN>\n## `_entry_must_exist`", "Evaluate key-subkey existence.", " Checks that the key-subkey combo exists in the\n configuration options.\n<END>", "<BEGIN>\n## `_entry_must_not_exist`", "Evaluate key-subkey non-e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the write_options_to_file API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the write_options_to_file API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Write options to file. This is a wrapper over :func:`.write_options_to_JSON` and :func:`.write_options_to_YAML`. :param str filename: Target file to write the options. :param str file_format: File format (``yaml`` or ``json``). :raises: :ValueError: If an unknown `...
"Write options to file.\n\n This is a wrapper over :func:`.write_options_to_JSON` and\n :func:`.write_options_to_YAML`.\n\n :param str filename: Target file to write the options.\n :param str file_format: File format (``yaml`` or ``json``).\n\n :raises:\n :ValueError: If an...
104
false
jaumebonet/libconfig
write_options_to_file
19,141
LDU_FT/mikhaildubov/AST-text-analysis/import_modules_from_package
LDU_FT
[ "<BEGIN>\n## `traverse_depth_first_pre_order`", "Visits the internal \"nodes\" of the enhanced suffix array in depth-first pre-order.", " Based on Abouelhoda et al. (2004).\n<END>", "<BEGIN>\n## `traverse_depth_first_post_order`", "Visits the internal \"nodes\" of the enhanced suffix array in depth-f...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the import_modules_from_package API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclu...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the import_modules_from_package API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclu...
Import modules from package and append into sys.modules :param package: full package name, e.g. east.asts
"Import modules from package and append into sys.modules\n\n :param package: full package name, e.g. east.asts"
52
false
mikhaildubov/AST-text-analysis
import_modules_from_package
19,142
LDU_FT/penguinmenac3/starttf/crop
LDU_FT
[ "<BEGIN>\n## `easy_train_and_evaluate`", "Train and evaluate your model without any boilerplate code.", " 1) Write your data using the starttf.tfrecords.autorecords.write_data method.\n 2) Create your hyper parameter file containing all required fields and then load it using\n starttf.utils.hyper_p...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the crop API. 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 crop API. 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...
Crop an image given the top left corner. :param img: The image :param start_y: The top left corner y coord :param start_x: The top left corner x coord :param h: The result height :param w: The result width :return: The cropped image.
"Crop an image given the top left corner.\n :param img: The image\n :param start_y: The top left corner y coord\n :param start_x: The top left corner x coord\n :param h: The result height\n :param w: The result width\n :return: The cropped image."
120
false
penguinmenac3/starttf
crop
19,143
LDU_FT/kenneth-reitz/args/start_with
LDU_FT
[ "<BEGIN>\n## `remove`", "Removes given arg (or list thereof) from Args object.\n<END>", "<BEGIN>\n## `first`", "Returns first found index of given value (or list of values).\n<END>", "<BEGIN>\n## `start_with`", "Returns all arguments beginning with given string\n (or list thereof).\n<END>", "<...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the start_with API. 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 start_with API. 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...
Returns all arguments beginning with given string (or list thereof).
"Returns all arguments beginning with given string\n (or list thereof)."
14
false
kenneth-reitz/args
start_with
19,144
LDU_FT/nornir-automation/nornir/setup
LDU_FT
[ "<BEGIN>\n## `start`", "Run the task for the given host.", " Arguments:\n host (:obj:`nornir.core.inventory.Host`): Host we are operating with. Populated right\n before calling the ``task``\n nornir(:obj:`nornir.core.Nornir`): Populated right before calling\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the setup API. 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 setup API. 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...
Map methods to states of the documentation build.
"Map methods to states of the documentation build."
175
false
nornir-automation/nornir
setup
19,145
LDU_FT/alfred82santa/dirty-models/recover_dynamic_model_from_data
LDU_FT
[ "<BEGIN>\n## `recover_model_from_data`", "Function to reconstruct a model from DirtyModel basic information: original data, the modified and deleted\n fields.\n Necessary for pickle an object\n<END>", "<BEGIN>\n## `recover_dynamic_model_from_data`", "Function to reconstruct a model from DirtyModel basic...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the recover_dynamic_model_from_data 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 recover_dynamic_model_from_data API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its co...
Function to reconstruct a model from DirtyModel basic information: original data, the modified and deleted fields. Necessary for pickle an object
"Function to reconstruct a model from DirtyModel basic information: original data, the modified and deleted\n fields.\n Necessary for pickle an object"
86
false
alfred82santa/dirty-models
recover_dynamic_model_from_data
19,146
LDU_FT/20c/grainy/int_flags
LDU_FT
[ "<BEGIN>\n## `int_flags`", "Converts string permission flags into integer permission flags as\n specified in const.PERM_STRING_MAP\n Arguments:\n - flags <str>: one or more flags\n For example: \"crud\" or \"ru\" or \"r\"\n - mapper <list=const.PERM_STRING_MAP>: a list containing tu...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the int_flags API. 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 int_flags API. 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 string permission flags into integer permission flags as specified in const.PERM_STRING_MAP Arguments: - flags <str>: one or more flags For example: "crud" or "ru" or "r" - mapper <list=const.PERM_STRING_MAP>: a list containing tuples mapping int permission flag ...
"Converts string permission flags into integer permission flags as\n specified in const.PERM_STRING_MAP\n Arguments:\n - flags <str>: one or more flags\n For example: \"crud\" or \"ru\" or \"r\"\n - mapper <list=const.PERM_STRING_MAP>: a list containing tuples mapping\n int per...
47
false
20c/grainy
int_flags
19,147
LDU_FT/zsims/dic/resolve
LDU_FT
[ "<BEGIN>\n## `create`", "Creates a new instance of the component, respecting the scope.\n :param component_context: The context to resolve dependencies from.\n :param overriding_args: Overriding arguments to use (by name) instead of resolving them.\n :return: An instance of the component.\n<E...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the resolve API. 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 resolve API. 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...
Resolves an instance of the component type. :param component_type: The type of the component (e.g. a class). :param kwargs: Overriding arguments to use (by name) instead of resolving them. :return: An instance of the component.
"Resolves an instance of the component type.\n :param component_type: The type of the component (e.g. a class).\n :param kwargs: Overriding arguments to use (by name) instead of resolving them.\n :return: An instance of the component."
12
false
zsims/dic
resolve
19,148
LDU_FT/ionelmc/python-cogen/_conditions
LDU_FT
[ "<BEGIN>\n## `run_op`", "Handle the operation:", " * if coro is in STATE_RUNNING, send or throw the given op\r", " * if coro is in STATE_NEED_INIT, call the init function and if it\r\n doesn't return a generator, set STATE_COMPLETED and set the result\r\n to whatever the functi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _conditions API. 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 _conditions API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
Return a tuple of etag, last_modified by mtime from stat.
"Return a tuple of etag, last_modified by mtime from stat."
175
false
ionelmc/python-cogen
_conditions
19,149
LDU_FT/mrname/haralyzer/match_headers
LDU_FT
[ "<BEGIN>\n## `get_load_times`", "Just a ``list`` of the load times of a certain asset type for each page", " :param asset_type: ``str`` of the asset type to return load times for\n<END>", "<BEGIN>\n## `get_stdev`", "Returns the standard deviation for a set of a certain asset type.", " :param...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the match_headers API. 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 match_headers API. 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...
Function to match headers. Since the output of headers might use different case, like: 'content-type' vs 'Content-Type' This function is case-insensitive :param entry: entry object :param header_type: ``str`` of header type. Valid values: * 'request' ...
"Function to match headers.\n\n Since the output of headers might use different case, like:\n\n 'content-type' vs 'Content-Type'\n\n This function is case-insensitive\n\n :param entry: entry object\n :param header_type: ``str`` of header type. Valid values:\n\n * 'reque...
72
false
mrname/haralyzer
match_headers
19,150
LDU_FT/mnubo/kubernetes-py/_wait_for_pod_deletion
LDU_FT
[ "<BEGIN>\n## `run`", "Forces a K8sCronJob to run immediately.", " - Fail if the K8sCronJob is currently running on-schedule.\n - Suspend the K8sCronJob.\n - Spawn a K8sPod.\n - Unsuspend a K8sCronJob.", " :param timeout: The timeout, in seconds, after which to kill the K8sPo...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _wait_for_pod_deletion API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _wait_for_pod_deletion API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
Wait until this K8sNode has evicted all its K8sPods. :param daemonset_pods: A list of K8sPods on this K8sNode that are managed by a K8sDaemonSet. :return: None
"Wait until this K8sNode has evicted all its K8sPods.\n \n :param daemonset_pods: A list of K8sPods on this K8sNode that are managed by a K8sDaemonSet.\n \n :return: None"
53
false
mnubo/kubernetes-py
_wait_for_pod_deletion
19,151
LDU_FT/vmlaker/coils/add
LDU_FT
[ "<BEGIN>\n## `tick`", "Tick the ticker.\n Return a tuple of values corresponding to periods given in initializer,\n each value representing the rate of ticks (number of ticks per second)\n during that period.\n<END>", "<BEGIN>\n## `user_input`", "Prompt user for input until a value is ret...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
Add a value, and return current average.
"Add a value, and return current average."
38
false
vmlaker/coils
add
19,152
LDU_FT/msuozzo/Aduro/get_events
LDU_FT
[ "<BEGIN>\n## `calc_update_events`", "Calculate and return an iterable of `KindleEvent`s which, when\n applied to the current snapshot, result in the the current snapshot\n reflecting the progress state of the `asin_to_progress` mapping.", " Functionally, this method generates `AddEvent`s an...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_events API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_events API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
Returns a list of all ``KindleEvent``s held in the store
"Returns a list of all ``KindleEvent``s held in the store"
29
false
msuozzo/Aduro
get_events
19,153
LDU_FT/mozilla/crontabber/backoff_generator
LDU_FT
[ "<BEGIN>\n## `toposort`", "Dependencies are expressed as a dictionary whose keys are items\nand whose values are a set of dependent items. Output is a list of\nsets in topological order. The first set consists of items with no\ndependences, each subsequent set consists of items that depend upon\nitems in the prec...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the backoff_generator API. 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 backoff_generator API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Generate a series of integers used for the length of the sleep between retries. It produces after exhausting the list, it repeats the last value from the list forever. This generator will never raise the StopIteration exception.
"Generate a series of integers used for the length of the sleep\n between retries. It produces after exhausting the list, it repeats\n the last value from the list forever. This generator will never raise\n the StopIteration exception."
59
false
mozilla/crontabber
backoff_generator
19,154
LDU_FT/django-haystack/pysolr/_is_null_value
LDU_FT
[ "<BEGIN>\n## `force_unicode`", "Forces a bytestring to become a Unicode string.\n<END>", "<BEGIN>\n## `force_bytes`", "Forces a Unicode string to become a bytestring.\n<END>", "<BEGIN>\n## `unescape_html`", "Removes HTML or XML character references and entities from a text string.", " @param text The...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _is_null_value API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _is_null_value API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
Check if a given value is ``null``. Criteria for this is based on values that shouldn't be included in the Solr ``add`` request at all.
"Check if a given value is ``null``.\n\n Criteria for this is based on values that shouldn't be included\n in the Solr ``add`` request at all."
102
false
django-haystack/pysolr
_is_null_value
19,155
LDU_FT/phoebe-project/phoebe2/set_for_computations
LDU_FT
[ "<BEGIN>\n## `lc`", "Create parameters for a new light curve dataset.", " Generally, this will be used as an input to the kind argument in\n :meth:`phoebe.frontend.bundle.Bundle.add_dataset`", " :parameter **kwargs: defaults for the values of any of the parameters\n :return: a :class:`phoebe.param...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_for_computations API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_for_computations API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Set the quantities, either at the vertices or centers depending on the settings of the mesh (mesh._compute_at_vertices)
"Set the quantities, either at the vertices or centers depending on the\n settings of the mesh (mesh._compute_at_vertices)"
1,080
true
phoebe-project/phoebe2
set_for_computations
19,156
LDU_FT/ianepperson/telnetsrvlib/cmdHELP
LDU_FT
[ "<BEGIN>\n## `inputcooker_store_queue`", "Put the cooked data in the input queue (no locking needed)\n<END>", "<BEGIN>\n## `streamserver_handle`", "Translate this class for use in a StreamServer\n<END>", "<BEGIN>\n## `check_channel_shell_request`", "Request to start a shell on the given channel\n<END>", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the cmdHELP API. 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 cmdHELP API. 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...
[<command>] Display help Display either brief help on all commands, or detailed help on a single command passed as a parameter.
"[<command>]\n Display help\n Display either brief help on all commands, or detailed\n help on a single command passed as a parameter."
45
false
ianepperson/telnetsrvlib
cmdHELP
19,157
LDU_FT/jedie/PyHardLinkBackup/_read_and_convert
LDU_FT
[ "<BEGIN>\n## `human_filesize`", "'human-readable' file size (i.e. 13 KB, 4.1 MB, 102 bytes, etc).\n<END>", "<BEGIN>\n## `dt2naturaltimesince`", "datetime to a human readable representation with how old this entry is information\n e.g.:\n Jan. 27, 2016, 9:04 p.m. (31 minutes ago)\n<END>", "<BEGIN>\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _read_and_convert API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _read_and_convert API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
if all_values==True: the readed ini file must contain all values
"if all_values==True: the readed ini file must contain all values"
44
false
jedie/PyHardLinkBackup
_read_and_convert
19,158
LDU_FT/Duke-GCB/lando-messaging/send_durable_exchange_message
LDU_FT
[ "<BEGIN>\n## `raise_on_major_version_mismatch`", "Raises error if major version is different. Other wise logs the difference.\n :param work_request: WorkRequest: request that had a different version\n :param local_version: str: our version string that does not match message.version\n<END>", "<BEGIN>\n## `...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the send_durable_exchange_message API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the send_durable_exchange_message API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conc...
Send a message with the specified body to an exchange. :param exchange_name: str: name of the exchange to send the message into :param body: str: contents of the message :return Bool: True when delivery confirmed
"Send a message with the specified body to an exchange.\n :param exchange_name: str: name of the exchange to send the message into\n :param body: str: contents of the message\n :return Bool: True when delivery confirmed"
50
false
Duke-GCB/lando-messaging
send_durable_exchange_message
19,159
LDU_FT/inveniosoftware/kwalitee/_get_files_modified
LDU_FT
[ "<BEGIN>\n## `_get_files_modified`", "Get the list of modified files that are Python or Jinja2.\n<END>", "<BEGIN>\n## `_get_git_author`", "Return the git author from the git variables.\n<END>", "<BEGIN>\n## `_prepare_commit_msg`", "Prepare the commit message in tmp_file.", " It will build the commit ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_files_modified API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_files_modified API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
Get the list of modified files that are Python or Jinja2.
"Get the list of modified files that are Python or Jinja2."
77
false
inveniosoftware/kwalitee
_get_files_modified
19,160
LDU_FT/dmlc/gluon-nlp/split_and_load
LDU_FT
[ "<BEGIN>\n## `train`", "Train textCNN model for sentiment analysis.\n<END>", "<BEGIN>\n## `embedding`", "Get tokens, tokens embedding", " Parameters\n ----------\n sentences : List[str]\n sentences for encoding.\n oov_way : str, default avg.\n use **avg**, *...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the split_and_load API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the split_and_load API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
split and load arrays to a list of contexts
"split and load arrays to a list of contexts"
801
false
dmlc/gluon-nlp
split_and_load
19,161
LDU_FT/wolverdude/GenSON/get_long_docs
LDU_FT
[ "<BEGIN>\n## `add_schema`", "Merge in a JSON schema. This can be a ``dict`` or another\n ``SchemaBuilder``", " :param schema: a JSON Schema", " .. note::\n There is no schema validation. If you pass in a bad schema,\n you might get back a bad schema.\n<END>", "<BEG...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_long_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 ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_long_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 ext...
Build rst description from a set of files.
"Build rst description from a set of files."
20
false
wolverdude/GenSON
get_long_docs
19,162
LDU_FT/danielfrg/word2vec/closest
LDU_FT
[ "<BEGIN>\n## `ix`", "Returns the index on self.vocab and self.clusters for 'word'\n<END>", "<BEGIN>\n## `get_cluster`", "Returns the cluster number for a word in the vocabulary\n<END>", "<BEGIN>\n## `distance`", "Compute the distance distance between two vectors or more (all combinations) of words", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the closest API. 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 closest API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
Returns the closest n words to a vector Parameters ------- vector : numpy.array n : int (default 10) Returns ------- Tuple of 2 numpy.array: 1. position in self.vocab 2. cosine similarity
"Returns the closest n words to a vector\n\n Parameters\n -------\n vector : numpy.array\n n : int (default 10)\n\n Returns\n -------\n Tuple of 2 numpy.array:\n 1. position in self.vocab\n 2. cosine similarity"
42
false
danielfrg/word2vec
closest
19,163
LDU_FT/huge-success/sanic/cleanup
LDU_FT
[ "<BEGIN>\n## `group`", "Create a list of blueprints, optionally grouping them under a\n general URL prefix.", " :param blueprints: blueprints to be registered as a group\n :param url_prefix: URL route to be prepended to all sub-prefixes\n<END>", "<BEGIN>\n## `register`", "Register the b...
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...
This is called when KeepAlive feature is used, it resets the connection in order for it to be able to handle receiving another request on the same connection.
"This is called when KeepAlive feature is used,\n it resets the connection in order for it to be able\n to handle receiving another request on the same connection."
238
false
huge-success/sanic
cleanup
19,164
LDU_FT/benoitkugler/abstractDataLibrary/dateheure
LDU_FT
[ "<BEGIN>\n## `recherche`", "abstractSearch in fields of collection and reset rendering.\n Returns number of results.\n If in_all is True, call get_all before doing the search.\n<END>", "<BEGIN>\n## `launch_background_job`", "Launch the callable job in background thread.\n Succes or failur...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the dateheure API. 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 dateheure API. 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...
abstractRender d'une date-heure datetime.datetime au format JJ/MM/AAAAàHH:mm
"abstractRender d'une date-heure datetime.datetime au format JJ/MM/AAAAàHH:mm"
131
false
benoitkugler/abstractDataLibrary
dateheure
19,165
LDU_FT/runfalk/spans/union
LDU_FT
[ "<BEGIN>\n## `format_sec`", "Format seconds in a more human readable way. It supports units down to\n nanoseconds.", " :param s: Float of seconds to format\n :return: String second representation, like 12.4 us\n<END>", "<BEGIN>\n## `fix_timedelta_repr`", "Account repr change for timedelta in Python...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the union API. 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 union API. 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...
Merges this range with a given range. >>> intrange(1, 5).union(intrange(5, 10)) intrange([1,10)) >>> intrange(1, 10).union(intrange(5, 15)) intrange([1,15)) Two ranges can not be merged if the resulting range would be split in two. This happens when the ...
"Merges this range with a given range.\n\n >>> intrange(1, 5).union(intrange(5, 10))\n intrange([1,10))\n >>> intrange(1, 10).union(intrange(5, 15))\n intrange([1,15))\n\n Two ranges can not be merged if the resulting range would be split in\n two. This happens ...
137
false
runfalk/spans
union
19,166
LDU_FT/Aloomaio/python-sdk/_sender_main
LDU_FT
[ "<BEGIN>\n## `_get_sender`", "Utility function acting as a Sender factory - ensures senders don't get\n created twice of more for the same target server\n<END>", "<BEGIN>\n## `terminate`", "Stops all the active Senders by flushing the buffers and closing the\n underlying sockets\n<END>", "<BEGIN>\n## ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _sender_main API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _sender_main API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
Runs on a pysdk_sender_thread and handles sending events to the Alooma server. Events are sent every <self._batch_interval> seconds or whenever batch size reaches <self._batch_size>
"Runs on a pysdk_sender_thread and handles sending events to the Alooma\n server. Events are sent every <self._batch_interval> seconds or whenever\n batch size reaches <self._batch_size>"
27
false
Aloomaio/python-sdk
_sender_main
19,167
LDU_FT/reorx/torext/get_authenticated_user
LDU_FT
[ "<BEGIN>\n## `format_request`", "Override for better log format", " Tornado format:\n [INFO 2015-03-24 11:29:57 app:521] 200 GET /static/css/lib/pure-min.css (127.0.0.1) 6.76ms\n Current format:\n [gevent.wsgi] INFO 127.0.0.1 - - [2015-03-24 11:18:45] \"GET /test HTTP/1.1\" 200 304 0...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_authenticated_user 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_authenticated_user API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
class RenrenHandler(tornado.web.RequestHandler, RenrenGraphMixin): @tornado.web.asynchronous @gen.engine def get(self): self.get_authenticated_user( callback=(yield gen.Callback('key')), redirect_uri=url) user = ...
"class RenrenHandler(tornado.web.RequestHandler, RenrenGraphMixin):\n @tornado.web.asynchronous\n @gen.engine\n def get(self):\n self.get_authenticated_user(\n callback=(yield gen.Callback('key')),\n redirect_uri=url)\n ...
70
false
reorx/torext
get_authenticated_user
19,168
LDU_FT/LISE-B26/pylabcontrol/open_file_dialog
LDU_FT
[ "<BEGIN>\n## `instantiate_probes`", "Creates instances of the probes inputed;", " Args:\n probes: probes is a nested dictionary with\n (key, sub_dict ) = (name of the probe, {'probe_name': value_probe, 'instrument_name': value_inst}),\n where value_probe is a valid name of a pr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the open_file_dialog API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the open_file_dialog API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Opens a file dialog to get the path to a file and put tha tpath in the correct textbox
"Opens a file dialog to get the path to a file and put tha tpath in the correct textbox"
301
false
LISE-B26/pylabcontrol
open_file_dialog
19,169
LDU_FT/frc1418/tbapy/team
LDU_FT
[ "<BEGIN>\n## `_get`", "Helper method: GET data from given URL on TBA's API.", " :param url: URL string to get data from.\n :return: Requested data in JSON format.\n<END>", "<BEGIN>\n## `_post`", "Helper method: POST data to a given URL on TBA's API.", " :param url: URL string to post ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the team API. 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 team API. 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...
Get data on a single specified team. :param team: Team to get data for. :param simple: Get only vital data. :return: Team object with data on specified team.
"Get data on a single specified team.\n\n :param team: Team to get data for.\n :param simple: Get only vital data.\n :return: Team object with data on specified team."
66
false
frc1418/tbapy
team
19,170
LDU_FT/SecurityInnovation/PGPy/del_uid
LDU_FT
[ "<BEGIN>\n## `decrypt_sk`", "The value \"m\" in the above formulas is derived from the session key\n as follows. First, the session key is prefixed with a one-octet\n algorithm identifier that specifies the symmetric encryption\n algorithm used to encrypt the following Symmetrically Encrypte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the del_uid API. 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 del_uid API. 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...
Find and remove a user id that matches the search string given. This method does not modify the corresponding :py:obj:`~pgpy.PGPUID` object; it only removes it from the list of user ids on the key. :param search: A text string to match name, comment, or email address against :type search: ``str...
"Find and remove a user id that matches the search string given. This method does not modify the corresponding\n :py:obj:`~pgpy.PGPUID` object; it only removes it from the list of user ids on the key.\n\n :param search: A text string to match name, comment, or email address against\n :type search: ...
197
false
SecurityInnovation/PGPy
del_uid
19,171
LDU_FT/postlund/pyatv/print_what_is_playing
LDU_FT
[ "<BEGIN>\n## `lookup_tag`", "Look up a tag based on its key. Returns a DmapTag.\n<END>", "<BEGIN>\n## `scan_for_apple_tvs`", "Scan for Apple TVs using zeroconf (bonjour) and returns them.\n<END>", "<BEGIN>\n## `add_service`", "Handle callback from zeroconf when a service has been discovered.\n<END>", "<...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the print_what_is_playing 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 print_what_is_playing API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Connect to device and print what is playing.
"Connect to device and print what is playing."
146
false
postlund/pyatv
print_what_is_playing
19,172