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/tensorflow/tensorboard/_lerp | LDU_FT | [
"<BEGIN>\n## `add_event`",
"Adds an event to the event file.",
" Args:\n event: An `Event` protocol buffer.\n<END>",
"<BEGIN>\n## `write`",
"Enqueue the given bytes to be written asychronously\n<END>",
"<BEGIN>\n## `flush`",
"Write all the enqueued bytestring before this flush call to di... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _lerp API.
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 _lerp API.
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... | Affinely map from [x0, x1] onto [y0, y1]. | "Affinely map from [x0, x1] onto [y0, y1]." | 1,768 | true | tensorflow/tensorboard | _lerp | 36,773 | |
LDU_FT/langloisjp/tstore/update | LDU_FT | [
"<BEGIN>\n## `get`",
"Return record of given type with key `rid`",
" >>> s = teststore()\n >>> s.create('tstoretest', {'id': '1', 'name': 'Toto'})\n >>> r = s.get('tstoretest', '1')\n >>> r['name']\n 'Toto'\n >>> s.get('badcls', '1')\n Traceback (most recent call... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update API.
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 update API.
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 ... | Update existing record
>>> s = teststore()
>>> s.create('tstoretest', {'id': '1', 'name': 'Toto'})
>>> r = s.get('tstoretest', '1')
>>> r['age']
>>> s.update('tstoretest', '1', {'age': 25})
>>> r = s.get('tstoretest', '1')
>>> r['age']
25
>>> s.up... | "Update existing record\n\n >>> s = teststore()\n >>> s.create('tstoretest', {'id': '1', 'name': 'Toto'})\n >>> r = s.get('tstoretest', '1')\n >>> r['age']\n >>> s.update('tstoretest', '1', {'age': 25})\n >>> r = s.get('tstoretest', '1')\n >>> r['age']\n 25\n ... | 61 | false | langloisjp/tstore | update | 36,774 | |
LDU_FT/nir0s/serv/_lookup_by_mapping | LDU_FT | [
"<BEGIN>\n## `generate`",
"Create a service.",
" `COMMAND` is the path to the executable to run\n<END>",
"<BEGIN>\n## `_parse_service_env_vars`",
"Return a dict based on `key=value` pair strings.\n<END>",
"<BEGIN>\n## `_set_service_name_from_command`",
"Set the name of a service according to the comm... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _lookup_by_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 _lookup_by_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... | Return a the init system based on a constant mapping of
distribution+version to init system..
See constants.py for the mapping.
A failover of the version is proposed for when no version is supplied.
For instance, Arch Linux's version will most probably be "rolling" at
any given ... | "Return a the init system based on a constant mapping of\n distribution+version to init system..\n\n See constants.py for the mapping.\n A failover of the version is proposed for when no version is supplied.\n For instance, Arch Linux's version will most probably be \"rolling\" at\n a... | 65 | false | nir0s/serv | _lookup_by_mapping | 36,775 | |
LDU_FT/sibirrer/lenstronomy/check_additional_images | LDU_FT | [
"<BEGIN>\n## `array2image`",
"maps a 1d array into a (nx, ny) 2d grid with array populating the idex_mask indices\n :param array: 1d array\n :param idex_mask: 1d array of length nx*ny\n :param nx: x-axis of 2d grid\n :param ny: y-axis of 2d grid\n :return:\n<END>",
"<BEGIN>\n#... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the check_additional_images 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 check_additional_images API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion... | checks whether additional images have been found and placed in kwargs_ps
:param kwargs_ps: point source kwargs
:return: bool, True if more image positions are found than originally been assigned | "checks whether additional images have been found and placed in kwargs_ps\n :param kwargs_ps: point source kwargs\n :return: bool, True if more image positions are found than originally been assigned" | 886 | false | sibirrer/lenstronomy | check_additional_images | 36,776 | |
LDU_FT/PyCQA/pylint-django/apply_augmentations | LDU_FT | [
"<BEGIN>\n## `register`",
"Required method to auto register this checker.\n<END>",
"<BEGIN>\n## `ignore_import_warnings_for_related_fields`",
"Replaces the leave_module method on the VariablesChecker class to\n prevent unused-import warnings which are caused by the ForeignKey\n and OneToOneField transfo... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the apply_augmentations 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 apply_augmentations 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... | Apply augmentation and suppression rules. | "Apply augmentation and suppression rules." | 32 | false | PyCQA/pylint-django | apply_augmentations | 36,777 | |
LDU_FT/juju/juju-bundlelib/_validate_machines | LDU_FT | [
"<BEGIN>\n## `isstring`",
"Report whether the given value is a byte or unicode string.\n<END>",
"<BEGIN>\n## `_parse_url`",
"Parse the given charm or bundle URL, provided as a string.",
" Return a tuple containing the entity reference fragments: schema, user,\n series, name and revision.\n Each fra... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _validate_machines 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 _validate_machines 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... | Validate the given machines section.
Validation includes machines constraints, series and annotations.
Use the given add_error callable to register validation error. | "Validate the given machines section.\n\n Validation includes machines constraints, series and annotations.\n Use the given add_error callable to register validation error." | 84 | false | juju/juju-bundlelib | _validate_machines | 36,778 | |
LDU_FT/singingwolfboy/flask-dance/make_slack_blueprint | LDU_FT | [
"<BEGIN>\n## `make_discord_blueprint`",
"Make a blueprint for authenticating with Discord using OAuth 2. This requires\n a client ID and client secret from Discord. You should either pass them to\n this constructor, or make sure that your Flask application config defines\n them, using the variables :envv... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the make_slack_blueprint 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_slack_blueprint API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | Make a blueprint for authenticating with Slack using OAuth 2. This requires
a client ID and client secret from Slack. You should either pass them to
this constructor, or make sure that your Flask application config defines
them, using the variables :envvar:`SLACK_OAUTH_CLIENT_ID` and
:envvar:`SLACK_OAUT... | "Make a blueprint for authenticating with Slack using OAuth 2. This requires\n a client ID and client secret from Slack. You should either pass them to\n this constructor, or make sure that your Flask application config defines\n them, using the variables :envvar:`SLACK_OAUTH_CLIENT_ID` and\n :envvar:`SLACK... | 123 | false | singingwolfboy/flask-dance | make_slack_blueprint | 36,779 | |
LDU_FT/empymod/empymod/halfspace | LDU_FT | [
"<BEGIN>\n## `check_ab`",
"r\"\"\"Check source-receiver configuration.",
" This check-function is called from one of the modelling routines in\n :mod:`model`. Consult these modelling routines for a detailed description\n of the input parameters.",
" Parameters\n ----------\n ab : int\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the halfspace API.
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 halfspace API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extract... | r"""Return frequency- or time-space domain VTI half-space solution.
Calculates the frequency- or time-space domain electromagnetic response for
a half-space below air using the diffusive approximation, as given in
[SlHM10]_, where the electric source is located at [0, 0, zsrc], and the
electric receive... | "r\"\"\"Return frequency- or time-space domain VTI half-space solution.\n\n Calculates the frequency- or time-space domain electromagnetic response for\n a half-space below air using the diffusive approximation, as given in\n [SlHM10]_, where the electric source is located at [0, 0, zsrc], and the\n electri... | 570 | false | empymod/empymod | halfspace | 36,780 | |
LDU_FT/arne-cl/discoursegraphs/horizontal_positions | LDU_FT | [
"<BEGIN>\n## `merging_cli`",
"simple commandline interface of the merging module.",
" This function is called when you use the ``discoursegraphs`` application\n directly on the command line.\n<END>",
"<BEGIN>\n## `add_node_ids_as_labels`",
"Adds the ID of each node of a discourse graph as a label (an ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the horizontal_positions API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the horizontal_positions API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | return map: node ID -> first token index (int) it covers | "return map: node ID -> first token index (int) it covers" | 846 | false | arne-cl/discoursegraphs | horizontal_positions | 36,781 | |
LDU_FT/azavea/python-sld/validate | LDU_FT | [
"<BEGIN>\n## `makeproperty`",
"Make a property on an instance of an SLDNode. If cls is omitted, the\n property is assumed to be a text node, with no corresponding class\n object. If name is omitted, the property is assumed to be a complex\n node, with a corresponding class wrapper.",
" ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the validate API.
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 validate API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracte... | Validate the current file against the SLD schema. This first normalizes
the SLD document, then validates it. Any schema validation error messages
are logged at the INFO level.
@rtype: boolean
@return: A flag indicating if the SLD is valid. | "Validate the current file against the SLD schema. This first normalizes\n the SLD document, then validates it. Any schema validation error messages\n are logged at the INFO level.\n\n @rtype: boolean\n @return: A flag indicating if the SLD is valid." | 29 | false | azavea/python-sld | validate | 36,782 | |
LDU_FT/SavinaRoja/OpenAccess_EPUB/convert_supplementary_material_elements | LDU_FT | [
"<BEGIN>\n## `make_EPUB`",
"Standard workflow for creating an EPUB document.",
" make_EPUB is used to produce an EPUB file from a parsed article. In addition\n to the article it also requires a path to the appropriate image directory\n which it will insert into the EPUB file, as well the output directo... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the convert_supplementary_material_elements API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicate... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the convert_supplementary_material_elements API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicate... | Supplementary material are not, nor are they generally expected to be,
packaged into the epub file. Though this is a technical possibility,
and certain epub reading systems (such as those run on a PC) might be
reasonably capable of the external handling of diverse file formats
I presume ... | "Supplementary material are not, nor are they generally expected to be,\n packaged into the epub file. Though this is a technical possibility,\n and certain epub reading systems (such as those run on a PC) might be\n reasonably capable of the external handling of diverse file formats\n I pre... | 245 | false | SavinaRoja/OpenAccess_EPUB | convert_supplementary_material_elements | 36,783 | |
LDU_FT/GetmeUK/MongoFrames/timestamp_update | LDU_FT | [
"<BEGIN>\n## `to_json_type`",
"Return a dictionary for the document with values converted to JSON safe\n types.\n<END>",
"<BEGIN>\n## `_path_to_value`",
"Return a value from a dictionary at the given path\n<END>",
"<BEGIN>\n## `_remove_keys`",
"Remove a list of keys from a dictionary.",
" ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the timestamp_update API.
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 timestamp_update API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | Timestamp the modified field for all documents. This method should be
bound to a frame class like so:
```
MyFrameClass.listen('update', MyFrameClass.timestamp_update)
``` | "Timestamp the modified field for all documents. This method should be\n bound to a frame class like so:\n\n ```\n MyFrameClass.listen('update', MyFrameClass.timestamp_update)\n ```" | 121 | false | GetmeUK/MongoFrames | timestamp_update | 36,784 | |
LDU_FT/ClearcodeHQ/mirakuru/wait_for | LDU_FT | [
"<BEGIN>\n## `pre_start_check`",
"Check if process accepts connections.",
" .. note::",
" Process will be considered started, when it'll be able to accept\n TCP connections as defined in initializer.\n<END>",
"<BEGIN>\n## `after_start_check`",
"Check if defined URL returns exp... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the wait_for API.
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 wait_for API.
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... | Wait for callback to return True.
Simply returns if wait_for condition has been met,
raises TimeoutExpired otherwise and kills the process.
:param callback wait_for: callback to call
:raises: mirakuru.exceptions.TimeoutExpired
:returns: itself
:rtype: SimpleExecutor | "Wait for callback to return True.\n\n Simply returns if wait_for condition has been met,\n raises TimeoutExpired otherwise and kills the process.\n\n :param callback wait_for: callback to call\n :raises: mirakuru.exceptions.TimeoutExpired\n :returns: itself\n :rtype: SimpleExe... | 49 | false | ClearcodeHQ/mirakuru | wait_for | 36,785 | |
LDU_FT/larsyencken/csvdiff/_is_significant | LDU_FT | [
"<BEGIN>\n## `apply`",
"Transform the records with the patch. May fail if the records do not\n match those expected in the patch.\n<END>",
"<BEGIN>\n## `create`",
"Diff two sets of records, using the index columns as the primary key for\n both datasets.\n<END>",
"<BEGIN>\n## `_compare_rows`",
"Retur... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _is_significant API.
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 _is_significant API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The e... | Return True if a change is genuinely significant given our tolerance. | "Return True if a change is genuinely significant given our tolerance." | 28 | false | larsyencken/csvdiff | _is_significant | 36,786 | |
LDU_FT/xtream1101/web-wrapper/_create_session | LDU_FT | [
"<BEGIN>\n## `get_image_dimension`",
"Return a tuple that contains (width, height)\n Pass in a url to an image and find out its size without loading the whole file\n If the image wxh could not be found, the tuple will contain `None` values\n<END>",
"<BEGIN>\n## `screenshot`",
"This can be used n... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _create_session API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The e... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _create_session API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The e... | Creates a fresh session with no/default headers and proxies | "Creates a fresh session with no/default headers and proxies" | 39 | false | xtream1101/web-wrapper | _create_session | 36,787 | |
LDU_FT/angr/pyvex/put_conditional | LDU_FT | [
"<BEGIN>\n## `lift`",
"This is the main body of the \"lifting\" for the instruction.\n This can/should be overriden to provide the general flow of how instructions in your arch work.\n For example, in MSP430, this is:",
" - Figure out what your operands are by parsing the addressing, and lo... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the put_conditional API.
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 put_conditional API.
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... | Like put, except it checks a condition
to decide what to put in the destination register.
:param cond: The VexValue representing the logical expression for the condition
(if your expression only has constants, don't use this method!)
:param valiftrue: the VexValue to put in reg if c... | "Like put, except it checks a condition\n to decide what to put in the destination register.\n\n :param cond: The VexValue representing the logical expression for the condition\n (if your expression only has constants, don't use this method!)\n :param valiftrue: the VexValue to put in re... | 87 | false | angr/pyvex | put_conditional | 36,788 | |
LDU_FT/jelmer/python-fastimport/invert_dict | LDU_FT | [
"<BEGIN>\n## `check_path`",
"Check that a path is legal.",
" :return: the path if all is OK\n :raise ValueError: if the path is illegal\n<END>",
"<BEGIN>\n## `format_path`",
"Format a path in utf8, quoting it if necessary.\n<END>",
"<BEGIN>\n## `format_who_when`",
"Format a tuple of name,email,sec... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the invert_dict API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the invert_dict API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | Invert a dictionary with keys matching each value turned into a list. | "Invert a dictionary with keys matching each value turned into a list." | 100 | false | jelmer/python-fastimport | invert_dict | 36,789 | |
LDU_FT/tisimst/pyDOE/fullfact | LDU_FT | [
"<BEGIN>\n## `pbdesign`",
"Generate a Plackett-Burman design\r",
" Parameter\r\n ---------\r\n n : int\r\n The number of factors to create a matrix for.\r",
" Returns\r\n -------\r\n H : 2d-array\r\n An orthogonal design matrix with n columns, one for each factor, and\r\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the fullfact API.
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 fullfact API.
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... | Create a general full-factorial design
Parameters
----------
levels : array-like
An array of integers that indicate the number of levels of each input
design factor.
Returns
-------
mat : 2d-array
The design matrix with coded levels 0 to k-1 for a k-l... | "Create a general full-factorial design\r\n \r\n Parameters\r\n ----------\r\n levels : array-like\r\n An array of integers that indicate the number of levels of each input\r\n design factor.\r\n \r\n Returns\r\n -------\r\n mat : 2d-array\r\n The design matrix with coded le... | 96 | false | tisimst/pyDOE | fullfact | 36,790 | |
LDU_FT/joytunes/JTLocalize/extract_jtl_string_pairs_from_text_file | LDU_FT | [
"<BEGIN>\n## `handle_duplications`",
"Omits the duplications in the strings files.\n Keys that appear more than once, will be joined to one appearance and the omit will be documented.",
" Args:\n file_path (str): The path to the strings file.\n<END>",
"<BEGIN>\n## `add_comments`",
"Add comm... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the extract_jtl_string_pairs_from_text_file API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicate... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the extract_jtl_string_pairs_from_text_file API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicate... | Extracts all string pairs matching the JTL pattern from given text file.
This can be used as an "extract_func" argument in the extract_string_pairs_in_directory method.
Args:
results_dict (dict): The dict to add the the string pairs to.
file_path (str): The path of the file from which to extra... | "Extracts all string pairs matching the JTL pattern from given text file.\n\n This can be used as an \"extract_func\" argument in the extract_string_pairs_in_directory method.\n\n Args:\n results_dict (dict): The dict to add the the string pairs to.\n file_path (str): The path of the file from which... | 104 | false | joytunes/JTLocalize | extract_jtl_string_pairs_from_text_file | 36,791 | |
LDU_FT/aroberge/experimental/exec_module | LDU_FT | [
"<BEGIN>\n## `start_console`",
"Starts a console; modified from code.interact\n<END>",
"<BEGIN>\n## `push`",
"Transform and push a line to the interpreter.",
" The line should not have a trailing newline; it may have\n internal newlines. The line is appended to a buffer and the\n inter... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the exec_module API.
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 exec_module API.
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... | import the source code, transforma it before executing it so that
it is known to Python. | "import the source code, transforma it before executing it so that\n it is known to Python." | 54 | false | aroberge/experimental | exec_module | 36,792 | |
LDU_FT/TheGhouls/oct/_get_processed_dataframe | LDU_FT | [
"<BEGIN>\n## `copy_config`",
"Copy current config file to output directory\n<END>",
"<BEGIN>\n## `run`",
"Start an oct project",
" :param Namespace args: the commande-line arguments\n<END>",
"<BEGIN>\n## `from_template`",
"Create a new oct project from existing template",
" :param Namespace args... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_processed_dataframe API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_processed_dataframe API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio... | Generate required dataframe for results from raw dataframe
:param pandas.DataFrame dataframe: the raw dataframe
:return: a dict containing raw, compiled, and summary dataframes from original dataframe
:rtype: dict | "Generate required dataframe for results from raw dataframe\n\n :param pandas.DataFrame dataframe: the raw dataframe\n :return: a dict containing raw, compiled, and summary dataframes from original dataframe\n :rtype: dict" | 101 | false | TheGhouls/oct | _get_processed_dataframe | 36,793 | |
LDU_FT/napalm-automation/napalm/get_mac_address_table | LDU_FT | [
"<BEGIN>\n## `parse_intf_section`",
"Parse a single entry from show interfaces output.",
" Different cases:\n mgmt0 is up\n admin state is up",
" Ethernet2/1 is up\n admin state is up, Dedicated Interface",
" Vlan1 is down (Administratively down), line protocol is down, autostate enabled",... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_mac_address_table 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_mac_address_table API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | Returns a lists of dictionaries. Each dictionary represents an entry in the MAC Address
Table, having the following keys
* mac (string)
* interface (string)
* vlan (int)
* active (boolean)
* static (boolean)
* moves (int)
* last... | "Returns a lists of dictionaries. Each dictionary represents an entry in the MAC Address\n Table, having the following keys\n * mac (string)\n * interface (string)\n * vlan (int)\n * active (boolean)\n * static (boolean)\n * moves (int)\n ... | 254 | false | napalm-automation/napalm | get_mac_address_table | 36,794 | |
LDU_FT/101Loop/drf-addons/validate_email | LDU_FT | [
"<BEGIN>\n## `get_fieldsets`",
"Add ownership info fields in fieldset with proper separation.",
" Author: Himanshu Shankar (https://himanshus.com)\n<END>",
"<BEGIN>\n## `get_readonly_fields`",
"Makes `created_by`, `create_date` & `update_date` readonly when\n editing.",
" Author: Hima... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the validate_email API.
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 validate_email API.
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... | Validates an email address
Source: Himanshu Shankar (https://github.com/iamhssingh)
Parameters
----------
email: str
Returns
-------
bool | "Validates an email address\n Source: Himanshu Shankar (https://github.com/iamhssingh)\n Parameters\n ----------\n email: str\n\n Returns\n -------\n bool" | 35 | false | 101Loop/drf-addons | validate_email | 36,795 | |
LDU_FT/barrust/mediawiki/_parse_section_links | LDU_FT | [
"<BEGIN>\n## `timeout`",
"Set request timeout in seconds (or fractions of a second)\n<END>",
"<BEGIN>\n## `language`",
"Set the language to use; attempts to change the API URL\n<END>",
"<BEGIN>\n## `login`",
"Login as specified user",
" Args:\n username (str): The username to l... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _parse_section_links API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _parse_section_links API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | given a section id, parse the links in the unordered list | "given a section id, parse the links in the unordered list" | 107 | false | barrust/mediawiki | _parse_section_links | 36,796 | |
LDU_FT/PedalPi/PluginsManager/audio_outputs | LDU_FT | [
"<BEGIN>\n## `load`",
"Load the index file and reorder the banks based in order listed in index",
" :param list[Indexable] indexables: Banks that will be reordered based in index file\n :return list[Bank]: Banks reordered\n<END>",
"<BEGIN>\n## `register`",
"Register an observer for it be notif... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the audio_outputs API.
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 audio_outputs API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | :return: A list of audio output :class:`Ports`. | ":return: A list of audio output :class:`Ports`." | 139 | false | PedalPi/PluginsManager | audio_outputs | 36,797 | |
LDU_FT/praekeltfoundation/seaworthy/run | LDU_FT | [
"<BEGIN>\n## `wait_for_response`",
"Try make a GET request with an HTTP client against a certain path and\n return once any response has been received, ignoring any errors.",
" :param ContainerHttpClient client:\n The HTTP client to use to connect to the container.\n :param timeout:\n Tim... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the run API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted doc... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the run API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted doc... | Create the container and start it. Similar to ``docker run``.
:param fetch_image:
Whether to try pull the image if it's not found. The behaviour here
is similar to ``docker run`` and this parameter defaults to
``True``.
:param **kwargs: Keyword arguments passed to :m... | "Create the container and start it. Similar to ``docker run``.\n\n :param fetch_image:\n Whether to try pull the image if it's not found. The behaviour here\n is similar to ``docker run`` and this parameter defaults to\n ``True``.\n :param **kwargs: Keyword arguments passe... | 173 | false | praekeltfoundation/seaworthy | run | 36,798 | |
LDU_FT/mcieslik-mctp/papy/save | LDU_FT | [
"<BEGIN>\n## `_inspect`",
"(internal) Determines the type of a given ``object``. Discriminates between \n ``Piper``, ``Worker``, ``FunctionType`` and ``Iterable`` instances. It \n returns a ``tuple`` of boolean variables i.e: (is_piper, is_worker, \n is_function, is_iterable_of_pipers, is_iterable_of... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the save API.
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 save API.
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... | Saves pipeline as a Python source code file.
Arguments:
- filename(``path``) Path to save the pipeline source code. | "Saves pipeline as a Python source code file.\n \n Arguments:\n \n - filename(``path``) Path to save the pipeline source code." | 323 | false | mcieslik-mctp/papy | save | 36,799 | |
LDU_FT/ianclegg/ntlmlib/wrap_message | LDU_FT | [
"<BEGIN>\n## `wrap`",
"NTM GSSwrap()\n :param message: The message to be encrypted\n :return: The signed and encrypted message\n<END>",
"<BEGIN>\n## `unwrap`",
"NTLM GSSUnwrap()\n :param message: The message to be encrypted\n :return: The signed and encrypted message\n<END>",
"<B... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the wrap_message API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extr... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the wrap_message API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extr... | Cryptographically signs and optionally encrypts the supplied message. The message is only encrypted if
'confidentiality' was negotiated, otherwise the message is left untouched.
:return: A tuple containing the message signature and the optionally encrypted message | "Cryptographically signs and optionally encrypts the supplied message. The message is only encrypted if\n 'confidentiality' was negotiated, otherwise the message is left untouched.\n :return: A tuple containing the message signature and the optionally encrypted message" | 43 | false | ianclegg/ntlmlib | wrap_message | 36,800 | |
LDU_FT/threeML/astromodels/free | LDU_FT | [
"<BEGIN>\n## `angular_distance_fast`",
"Compute angular distance using the Haversine formula. Use this one when you know you will never ask for points at\n their antipodes. If this is not the case, use the angular_distance function which is slower, but works also for\n antipodes.",
" :param lon1:\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the free API.
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 free API.
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... | Free the parameters with the coordinates (either ra,dec or l,b depending on how the class
has been instanced) | "Free the parameters with the coordinates (either ra,dec or l,b depending on how the class\n has been instanced)" | 240 | false | threeML/astromodels | free | 36,801 | |
LDU_FT/woolfson-group/isambard/_initialize_pop | LDU_FT | [
"<BEGIN>\n## `covalent_bonds`",
"Returns all the covalent bonds in a list of `Atom` pairs.",
" Notes\n -----\n Uses information `element_data`, which can be accessed directly\n through this module i.e. `isambard.ampal.interactions.element_data`.",
" Parameters\n ----------\n atoms : [(`At... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _initialize_pop API.
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 _initialize_pop API.
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... | Generates the initial population and assigns fitnesses. | "Generates the initial population and assigns fitnesses." | 880 | false | woolfson-group/isambard | _initialize_pop | 36,802 | |
LDU_FT/gplepage/gvar/logpdf | LDU_FT | [
"<BEGIN>\n## `deriv`",
"Compute *n*-th derivative of ``self``.",
" :param n: Number of derivatives.\n :type n: positive integer\n :returns: *n*-th derivative of ``self``.\n<END>",
"<BEGIN>\n## `integ`",
"Compute *n*-th indefinite integral of ``self``.",
" If *x0* is specified, ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the logpdf API.
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 logpdf API.
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 ... | Logarithm of the probability density function evaluated at ``p``. | "Logarithm of the probability density function evaluated at ``p``." | 206 | false | gplepage/gvar | logpdf | 36,803 | |
LDU_FT/onicagroup/runway/post_deploy_assume_role | LDU_FT | [
"<BEGIN>\n## `fix_hyphen_commands`",
"Update options to match their module names with underscores.\n<END>",
"<BEGIN>\n## `calculate_hash_of_files`",
"Return a hash of all of the given files at the given root.",
" Adapted from stacker.hooks.aws_lambda; used according to its license:\n https://github.co... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the post_deploy_assume_role API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the post_deploy_assume_role API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion... | Revert to previous credentials, if necessary. | "Revert to previous credentials, if necessary." | 130 | false | onicagroup/runway | post_deploy_assume_role | 36,804 | |
LDU_FT/libvips/pyvips/fetch | LDU_FT | [
"<BEGIN>\n## `print_all`",
"Print all objects.",
" Print a table of all active libvips objects. Handy for debugging.\n<END>",
"<BEGIN>\n## `get_typeof`",
"Get the GType of a GObject property.",
" This function returns 0 if the property does not exist.\n<END>",
"<BEGIN>\n## `get`",
"Get a... | 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... | Fill a region with pixel data.
Pixels are filled with data!
Returns:
Pixel data.
Raises:
:class:`.Error` | "Fill a region with pixel data.\n\n Pixels are filled with data!\n\n Returns:\n Pixel data.\n\n Raises:\n :class:`.Error`" | 73 | false | libvips/pyvips | fetch | 36,805 | |
LDU_FT/peterwittek/ncpol2sdpa/__process_inequalities | LDU_FT | [
"<BEGIN>\n## `read_sdpa_out`",
"Helper function to parse the output file of SDPA.",
" :param filename: The name of the SDPA output file.\n :type filename: str.\n :param solutionmatrix: Optional parameter for retrieving the solution.\n :type solutionmatrix: bool.\n :param status: Optional paramete... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the __process_inequalities 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 __process_inequalities 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 localizing matrices
Arguments:
inequalities -- list of inequality constraints
monomials -- localizing monomials
block_index -- the current block index in constraint matrices of the
SDP relaxation | "Generate localizing matrices\n\n Arguments:\n inequalities -- list of inequality constraints\n monomials -- localizing monomials\n block_index -- the current block index in constraint matrices of the\n SDP relaxation" | 217 | false | peterwittek/ncpol2sdpa | __process_inequalities | 36,806 | |
LDU_FT/ValvePython/vdf/loads | LDU_FT | [
"<BEGIN>\n## `has_duplicates`",
"Returns ``True`` if the dict contains keys with duplicates.\n Recurses through any all keys with value that is ``VDFDict``.\n<END>",
"<BEGIN>\n## `parse`",
"Deserialize ``s`` (a ``str`` or ``unicode`` instance containing a VDF)\n to a Python object.",
" ``mapper... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the loads API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted d... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the loads API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted d... | Deserialize ``s`` (a ``str`` or ``unicode`` instance containing a JSON
document) to a Python object. | "Deserialize ``s`` (a ``str`` or ``unicode`` instance containing a JSON\n document) to a Python object." | 24 | false | ValvePython/vdf | loads | 36,807 | |
LDU_FT/cytoscape/py2cytoscape/check_response | LDU_FT | [
"<BEGIN>\n## `to_networkx`",
"Return this network in NetworkX graph object.",
" :return: Network as NetworkX graph object\n<END>",
"<BEGIN>\n## `to_dataframe`",
"Return this network in pandas DataFrame.",
" :return: Network as DataFrame. This is equivalent to SIF.\n<END>",
"<BEGIN>\n## `a... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the check_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 ex... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the check_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 ex... | Check HTTP response and raise exception if response is not OK. | "Check HTTP response and raise exception if response is not OK." | 598 | false | cytoscape/py2cytoscape | check_response | 36,808 | |
LDU_FT/hatemile/hatemile-for-python/is_valid_element | LDU_FT | [
"<BEGIN>\n## `_get_shortcut_prefix`",
"Returns the shortcut prefix of browser.",
" :param user_agent: The user agent of browser.\n :type user_agent: str\n :param standart_prefix: The default prefix.\n :type standart_prefix: str\n :return: The shortcut prefix of browser.\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_valid_element API.
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 is_valid_element API.
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 the element can be manipulated by HaTeMiLe.
:param element: The element
:type element: hatemile.util.html.htmldomelement.HTMLDOMElement
:return: True if element can be manipulated or False if element cannot
be manipulated.
:rtype: bool | "Check that the element can be manipulated by HaTeMiLe.\n\n :param element: The element\n :type element: hatemile.util.html.htmldomelement.HTMLDOMElement\n :return: True if element can be manipulated or False if element cannot\n be manipulated.\n :rtype: bool" | 202 | false | hatemile/hatemile-for-python | is_valid_element | 36,809 | |
LDU_FT/thombashi/DateTimeRange/encompass | LDU_FT | [
"<BEGIN>\n## `validate_time_inversion`",
"Check time inversion of the time range.",
" :raises ValueError:\n If |attr_start_datetime| is\n bigger than |attr_end_datetime|.\n :raises TypeError:\n Any one of |attr_start_datetime| and |attr_end_datetime|,\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the encompass API.
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 encompass API.
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... | Newly set a time range that encompasses
the input and the current time range.
:param DateTimeRange x:
Value to compute encompass with the current time range.
:Sample Code:
.. code:: python
from datetimerange import DateTimeRange
dtr0 = D... | "Newly set a time range that encompasses\n the input and the current time range.\n\n :param DateTimeRange x:\n Value to compute encompass with the current time range.\n\n :Sample Code:\n .. code:: python\n\n from datetimerange import DateTimeRange\n ... | 58 | false | thombashi/DateTimeRange | encompass | 36,810 | |
LDU_FT/fedora-python/pyp2rpm/rpm_versioned_name | LDU_FT | [
"<BEGIN>\n## `cut_to_length`",
"Shorten given text on first delimiter after given number\n of characters.\n<END>",
"<BEGIN>\n## `get_interpreter_path`",
"Return the executable of a specified or current version.\n<END>",
"<BEGIN>\n## `license_from_trove`",
"Finds out license from list of trove classifie... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the rpm_versioned_name API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
Th... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the rpm_versioned_name API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
Th... | Properly versions the name.
For example:
rpm_versioned_name('python-foo', '26') will return python26-foo
rpm_versioned_name('pyfoo, '3') will return python3-pyfoo
If version is same as settings.DEFAULT_PYTHON_VERSION, no change
is done.
Args:
name: name to v... | "Properly versions the name.\n For example:\n rpm_versioned_name('python-foo', '26') will return python26-foo\n rpm_versioned_name('pyfoo, '3') will return python3-pyfoo\n\n If version is same as settings.DEFAULT_PYTHON_VERSION, no change\n is done.\n\n Args:\n name:... | 140 | false | fedora-python/pyp2rpm | rpm_versioned_name | 36,811 | |
LDU_FT/pyGrowler/Growler/connection_made | LDU_FT | [
"<BEGIN>\n## `create`",
"Create a new prototype object with the argument as the source\n prototype.",
" .. Note:",
" This does not `initialize` the newly created object any\n more than setting its prototype.\n Calling the __init__ method is usually unnecessary as... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the connection_made API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The e... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the connection_made API.
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... | (asyncio.Protocol member)
Called upon when there is a new socket connection.
This creates a new responder (as determined by the member
'responder_type') and stores in a list.
Incoming data from this connection will always call on_data
to the last element of this list.
A... | "(asyncio.Protocol member)\n\n Called upon when there is a new socket connection.\n This creates a new responder (as determined by the member\n 'responder_type') and stores in a list.\n Incoming data from this connection will always call on_data\n to the last element of this list.\n\n... | 203 | false | pyGrowler/Growler | connection_made | 36,812 | |
LDU_FT/ChrisCummins/labm8/cp | LDU_FT | [
"<BEGIN>\n## `table`",
"Return a formatted string of \"list of list\" table data.",
" See: http://pandas.pydata.org/pandas-docs/dev/generated/pandas.DataFrame.html",
" Examples:",
" >>> fmt.print([(\"foo\", 1), (\"bar\", 2)])\n 0 1\n 0 foo 1\n 1 bar 2",
" ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the cp API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted docu... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the cp API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted docu... | Copy a file or directory.
If source is a directory, this recursively copies the directory
and its contents. If the destination is a directory, then this
creates a copy of the source in the destination directory with the
same basename.
If the destination already exists, this will attempt to overwri... | "Copy a file or directory.\n\n If source is a directory, this recursively copies the directory\n and its contents. If the destination is a directory, then this\n creates a copy of the source in the destination directory with the\n same basename.\n\n If the destination already exists, this will attempt to... | 345 | false | ChrisCummins/labm8 | cp | 36,813 | |
LDU_FT/KoffeinFlummi/Chronyk/_round | LDU_FT | [
"<BEGIN>\n## `_mktime`",
"Custom mktime because Windows can't be arsed to properly do pre-Epoch\n dates, probably because it's busy counting all its chromosomes.\n<END>",
"<BEGIN>\n## `_strftime`",
"Custom strftime because Windows is shit again.\n<END>",
"<BEGIN>\n## `_dtfromtimestamp`",
"Custom dateti... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _round API.
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 _round API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted ... | A custom rounding function that's a bit more 'strict'. | "A custom rounding function that's a bit more 'strict'." | 43 | false | KoffeinFlummi/Chronyk | _round | 36,814 | |
LDU_FT/brechtm/rinohtype/peekiter | LDU_FT | [
"<BEGIN>\n## `preprocess_tree`",
"Transform internal refuri targets in reference nodes to refids and\n transform footnote rubrics so that they do not end up in the output\n<END>",
"<BEGIN>\n## `_size_columns`",
"Calculate the table's column sizes constrained by:",
" - requested (absolute, rela... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the peekiter API.
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 peekiter API.
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 first row and also iterable with same items as original | "Return first row and also iterable with same items as original" | 310 | false | brechtm/rinohtype | peekiter | 36,815 | |
LDU_FT/graphql-python/graphql-core/complete_value | LDU_FT | [
"<BEGIN>\n## `is_valid_value`",
"Given a type and any value, return True if that value is valid.\n<END>",
"<BEGIN>\n## `get_key_for_schema_and_document_string`",
"This method returns a unique key given a schema and a request_string\n<END>",
"<BEGIN>\n## `document_from_string`",
"This method returns a Grap... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the complete_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 complete_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... | Implements the instructions for completeValue as defined in the
"Field entries" section of the spec.
If the field type is Non-Null, then this recursively completes the value for the inner type. It throws a field
error if that completion returns null, as per the "Nullability" section of the spec.
If th... | "Implements the instructions for completeValue as defined in the\n \"Field entries\" section of the spec.\n\n If the field type is Non-Null, then this recursively completes the value for the inner type. It throws a field\n error if that completion returns null, as per the \"Nullability\" section of the spec.\n... | 128 | false | graphql-python/graphql-core | complete_value | 36,816 | |
LDU_FT/buildbot/buildbot/splitArgs | LDU_FT | [
"<BEGIN>\n## `parse`",
"Parse messages sent by the 'buildbot-cvs-mail' program.\n<END>",
"<BEGIN>\n## `parse`",
"Parse messages sent by the svn 'commit-email.pl' trigger.\n<END>",
"<BEGIN>\n## `parse`",
"Parse branch notification messages sent by Launchpad.\n<END>",
"<BEGIN>\n## `remote_write`",
"Call... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the splitArgs API.
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 splitArgs API.
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 list of arguments parsed by shlex.split() or
raise UsageError if failed | "Returns list of arguments parsed by shlex.split() or\n raise UsageError if failed" | 518 | false | buildbot/buildbot | splitArgs | 36,817 | |
LDU_FT/philgyford/django-spectator/page | LDU_FT | [
"<BEGIN>\n## `generate_slug`",
"A copy of spectator.core.models.SluggedModelMixin._generate_slug()\n<END>",
"<BEGIN>\n## `set_slug`",
"Create a slug for each Work already in the DB.\n<END>",
"<BEGIN>\n## `get_kinds_data`",
"Returns a dict of all the data about the kinds, keyed to the kind\n value. ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the page API.
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 page API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted do... | Return a standard ``Page`` instance with custom, digg-specific
page ranges attached. | "Return a standard ``Page`` instance with custom, digg-specific\n page ranges attached." | 169 | false | philgyford/django-spectator | page | 36,818 | |
LDU_FT/dh1tw/pyhamtools/decode_pc11_message | LDU_FT | [
"<BEGIN>\n## `get_homecall`",
"Strips off country prefixes (HC2/DH1TW) and activity suffixes (DH1TW/P).",
" Args:\n callsign (str): Amateur Radio callsign",
" Returns:\n str: callsign without country/activity pre/suffixes",
" Raises:\n ValueError: No cal... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the decode_pc11_message API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
T... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the decode_pc11_message API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
T... | Decode PC11 message, which usually contains DX Spots | "Decode PC11 message, which usually contains DX Spots" | 238 | false | dh1tw/pyhamtools | decode_pc11_message | 36,819 | |
LDU_FT/digidotcom/python-devicecloud/compile | LDU_FT | [
"<BEGIN>\n## `_parse_command_response`",
"Parse an SCI command response into ElementTree XML",
" This is a helper method that takes a Requests Response object\n of an SCI command response and will parse it into an ElementTree Element\n representing the root of the XML response.",
" :param response... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the 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 extracted... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the 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 extracted... | Compile this expression into a query string | "Compile this expression into a query string" | 366 | false | digidotcom/python-devicecloud | compile | 36,820 | |
LDU_FT/keenlabs/KeenClient-Python/pad_aes256 | LDU_FT | [
"<BEGIN>\n## `_initialize_client_from_environment`",
"Initialize a KeenClient instance using environment variables.\n<END>",
"<BEGIN>\n## `add_event`",
"Adds an event.",
" Depending on the persistence strategy of the client,\n this will either result in the event being uploaded to Keen\n immediatel... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the pad_aes256 API.
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 pad_aes256 API.
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... | Pads an input string to a given block size.
:param s: string
:returns: The padded string. | "Pads an input string to a given block size.\n :param s: string\n :returns: The padded string." | 177 | false | keenlabs/KeenClient-Python | pad_aes256 | 36,821 | |
LDU_FT/FujiMakoto/AgentML/_add_response | LDU_FT | [
"<BEGIN>\n## `value`",
"Return the value of the redirect response\n<END>",
"<BEGIN>\n## `get`",
"Evaluate and return the current active topic\n :param user: The active user object\n :type user: agentml.User or None",
" :param agentml: The active AgentML instance\n :type agentml... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _add_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 ext... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _add_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 ext... | Add a new trigger
:param response: The Response object
:type response: Response or Condition
:param weight: The weight of the response
:type weight: int | "Add a new trigger\n :param response: The Response object\n :type response: Response or Condition\n\n :param weight: The weight of the response\n :type weight: int" | 183 | false | FujiMakoto/AgentML | _add_response | 36,822 | |
LDU_FT/frostming/marko/parse | LDU_FT | [
"<BEGIN>\n## `camel_to_snake_case`",
"Takes a camelCased string and converts to snake_case.\n<END>",
"<BEGIN>\n## `is_paired`",
"Check if the text only contains:\n 1. blackslash escaped parentheses, or\n 2. parentheses paired.\n<END>",
"<BEGIN>\n## `match_prefix`",
"Check if the line starts with giv... | 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... | Do the actual parsing and returns an AST or parsed element.
:param source_or_text: the text or source object.
Based on the type, it will do following:
- text: returns the parsed Document element.
- source: parse the source and returns the parsed children as a list. | "Do the actual parsing and returns an AST or parsed element.\n\n :param source_or_text: the text or source object.\n Based on the type, it will do following:\n - text: returns the parsed Document element.\n - source: parse the source and returns the parsed children as a list." | 49 | false | frostming/marko | parse | 36,823 | |
LDU_FT/adafruit/Adafruit_Python_DHT/get_platform | LDU_FT | [
"<BEGIN>\n## `get_platform`",
"Return a DHT platform interface for the currently detected platform.\n<END>",
"<BEGIN>\n## `read`",
"Read DHT sensor of specified sensor type (DHT11, DHT22, or AM2302) on\n specified pin and return a tuple of humidity (as a floating point value\n in percent) and temperatur... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_platform API.
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_platform API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extr... | Return a DHT platform interface for the currently detected platform. | "Return a DHT platform interface for the currently detected platform." | 13 | false | adafruit/Adafruit_Python_DHT | get_platform | 36,824 | |
LDU_FT/kblin/ncbi-genome-download/get_default | LDU_FT | [
"<BEGIN>\n## `_create_list`",
"Create a list from the input value.",
" If the input is a list already, return it.\n If the input is a comma-separated string, split it.\n<END>",
"<BEGIN>\n## `is_compatible_assembly_level`",
"Check if a given ncbi assembly level string matches the configured assembly le... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_default API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_default API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | Get the default value of a given category. | "Get the default value of a given category." | 56 | false | kblin/ncbi-genome-download | get_default | 36,825 | |
LDU_FT/shoeffner/cvloop/annotate | LDU_FT | [
"<BEGIN>\n## `load_hat`",
"Loads the hat from a picture at path.",
" Args:\n path: The path to load from",
" Returns:\n The hat data.\n<END>",
"<BEGIN>\n## `find_faces`",
"Uses a haarcascade to detect faces inside an image.",
" Args:\n image: The ima... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the annotate API.
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 annotate API.
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... | Annotates the processed axis with given annotations for
the provided framedata.
Args:
framedata: The current frame number. | "Annotates the processed axis with given annotations for\n the provided framedata.\n\n Args:\n framedata: The current frame number." | 67 | false | shoeffner/cvloop | annotate | 36,826 | |
LDU_FT/sqlalchemy-redshift/sqlalchemy-redshift/get_table_options | LDU_FT | [
"<BEGIN>\n## `gen_columns_from_children`",
"Generates columns that are being used in child elements of the delete query\n this will be used to determine tables for the using clause.\n :param root: the delete query\n :return: a generator of columns\n<END>",
"<BEGIN>\n## `visit_delete_stmt`",
"Adds red... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_table_options API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_table_options API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | Return a dictionary of options specified when the table of the
given name was created.
Overrides interface
:meth:`~sqlalchemy.engine.Inspector.get_table_options`. | "Return a dictionary of options specified when the table of the\n given name was created.\n\n Overrides interface\n :meth:`~sqlalchemy.engine.Inspector.get_table_options`." | 48 | false | sqlalchemy-redshift/sqlalchemy-redshift | get_table_options | 36,827 | |
LDU_FT/rueckstiess/mtools/_construct_mongod | LDU_FT | [
"<BEGIN>\n## `wait_for_host`",
"Ping server and wait for response.",
" Ping a mongod or mongos every `interval` seconds until it responds, or\n `timeout` seconds have passed. If `to_start` is set to False, will wait for\n the node to shut down instead. This function can be called as a separate\n thr... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _construct_mongod API.
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 _construct_mongod API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | Construct command line strings for mongod process. | "Construct command line strings for mongod process." | 260 | false | rueckstiess/mtools | _construct_mongod | 36,828 | |
LDU_FT/scivision/pymap3d/radec2azel | LDU_FT | [
"<BEGIN>\n## `anglesep_meeus`",
"Parameters\n ----------",
" lon0 : float or numpy.ndarray of float\n longitude of first point\n lat0 : float or numpy.ndarray of float\n latitude of first point\n lon1 : float or numpy.ndarray of float\n longitude of second point\n lat1 : floa... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the radec2azel API.
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 radec2azel API.
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... | converts right ascension, declination to azimuth, elevation
Parameters
----------
ra_deg : float or numpy.ndarray of float
right ascension to target [degrees]
dec_deg : float or numpy.ndarray of float
declination to target [degrees]
lat_deg : float
observer WGS84 latitude... | "converts right ascension, declination to azimuth, elevation\n\n Parameters\n ----------\n\n ra_deg : float or numpy.ndarray of float\n right ascension to target [degrees]\n\n dec_deg : float or numpy.ndarray of float\n declination to target [degrees]\n\n lat_deg : float\n observer W... | 293 | false | scivision/pymap3d | radec2azel | 36,829 | |
LDU_FT/mjirik/sed3/__put_slice_in_slim | LDU_FT | [
"<BEGIN>\n## `show_slices`",
"Show slices as tiled image\r",
" :param data3d: Input data\r\n :param contour: Data for contouring\r\n :param seeds: Seed data\r\n :param axis: Axis for sliceing\r\n :param slice_step: Show each \"slice_step\"-th slice, can be float\r\n :param shape: tuple(vertica... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the __put_slice_in_slim 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 __put_slice_in_slim 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... | put one small slice as a tile in a big image | "put one small slice as a tile in a big image" | 30 | false | mjirik/sed3 | __put_slice_in_slim | 36,830 | |
LDU_FT/adamzap/landslide/get_css | LDU_FT | [
"<BEGIN>\n## `parse`",
"Parses and renders a text as HTML regarding current format.\n<END>",
"<BEGIN>\n## `descape`",
"Decodes html entities from a given string\n<END>",
"<BEGIN>\n## `get_path_url`",
"Returns an absolute or relative path url given a path\n<END>",
"<BEGIN>\n## `html_parts`",
"Given an ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_css API.
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 get_css API.
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... | Fetches and returns stylesheet file path or contents, for both
print and screen contexts, depending if we want a standalone
presentation or not. | "Fetches and returns stylesheet file path or contents, for both\n print and screen contexts, depending if we want a standalone\n presentation or not." | 49 | false | adamzap/landslide | get_css | 36,831 | |
LDU_FT/TkTech/Jawa/save | LDU_FT | [
"<BEGIN>\n## `_walk`",
"A modified os.walk with support for maximum traversal depth.\n<END>",
"<BEGIN>\n## `update`",
"Add one or more ClassFile sources to the class loader.",
" If a given source is a directory path, it is traversed up to the\n maximum set depth and all files under it are adde... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the save API.
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 save API.
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... | Saves the class to the file-like object `source`.
:param source: Any file-like object providing write(). | "Saves the class to the file-like object `source`.\n\n :param source: Any file-like object providing write()." | 226 | false | TkTech/Jawa | save | 36,832 | |
LDU_FT/jvarho/pylibscrypt/scrypt | LDU_FT | [
"<BEGIN>\n## `salsa20_8`",
"Salsa20/8 http://en.wikipedia.org/wiki/Salsa20\n<END>",
"<BEGIN>\n## `smix`",
"SMix; a specific case of ROMix based on Salsa20/8\n<END>",
"<BEGIN>\n## `scrypt`",
"Returns a key derived using the scrypt key-derivarion function",
" N must be a power of two larger than 1 but ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the scrypt API.
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 scrypt API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted ... | Returns a key derived using the scrypt key-derivarion function
N must be a power of two larger than 1 but no larger than 2 ** 63 (insane)
r and p must be positive numbers such that r * p < 2 ** 30
The default values are:
N -- 2**14 (~16k)
r -- 8
p -- 1
Memory usage is proportional to N*r.... | "Returns a key derived using the scrypt key-derivarion function\n\n N must be a power of two larger than 1 but no larger than 2 ** 63 (insane)\n r and p must be positive numbers such that r * p < 2 ** 30\n\n The default values are:\n N -- 2**14 (~16k)\n r -- 8\n p -- 1\n\n Memory usage is proportio... | 59 | false | jvarho/pylibscrypt | scrypt | 36,833 | |
LDU_FT/ransford/sllurp/setTxPower | LDU_FT | [
"<BEGIN>\n## `decode_tve_parameter`",
"Generic byte decoding function for TVE parameters.",
" Given an array of bytes, tries to interpret a TVE parameter from the\n beginning of the array. Returns the decoded data and the number of bytes\n it read.\n<END>",
"<BEGIN>\n## `tagReportCallback`",
"Func... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the setTxPower API.
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 setTxPower API.
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... | Set the transmission power for one or more antennas.
@param tx_power: index into self.tx_power_table | "Set the transmission power for one or more antennas.\n\n @param tx_power: index into self.tx_power_table" | 59 | false | ransford/sllurp | setTxPower | 36,834 | |
LDU_FT/axel-events/axel/_threads | LDU_FT | [
"<BEGIN>\n## `handle`",
"Registers a handler. The handler can be transmitted together \r\n with two arguments as a list or dictionary. The arguments are:\r",
" memoize \r\n if True, the execution result will be cached in self.memoize\r\n timeout \r\n will allocate a pr... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _threads API.
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 _threads API.
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... | Calculates maximum number of threads that will be started | "Calculates maximum number of threads that will be started" | 17 | false | axel-events/axel | _threads | 36,835 | |
LDU_FT/codeforamerica/epa_python/audit | LDU_FT | [
"<BEGIN>\n## `admin_penalty`",
"An enforcement action that results in levying the permit holder with a\n penalty or fine. It is used to track judicial hearing dates, penalty\n amounts, and type of administrative penalty order.",
" >>> PCS().admin_penalty('enfor_action_date', '16-MAR-01')\n<... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the audit API.
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 audit API.
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... | Pretreatment Compliance Inspections (PCI) or Pretreatment Audits
collect information resulting from inspections pertaining to a Publicly
Owned Treatment Works (POTWs) that receive pollutants from in direct
dischargers.
>>> PCS().audit('insp_date', '16-MAR-01') | "Pretreatment Compliance Inspections (PCI) or Pretreatment Audits\n collect information resulting from inspections pertaining to a Publicly\n Owned Treatment Works (POTWs) that receive pollutants from in direct\n dischargers.\n\n >>> PCS().audit('insp_date', '16-MAR-01')" | 114 | false | codeforamerica/epa_python | audit | 36,836 | |
LDU_FT/dshean/pygeotools/gt_corners | LDU_FT | [
"<BEGIN>\n## `fn_check_full`",
"Check for file existence",
" Avoids race condition, but slower than os.path.exists.",
" Parameters\n ----------\n fn : str\n Input filename string.",
" Returns\n -------\n status \n True if file exists, False otherwise.\n<END>",
"<BEGIN>\n... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the gt_corners API.
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 gt_corners API.
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... | Get corner coordinates based on input geotransform and raster dimensions | "Get corner coordinates based on input geotransform and raster dimensions" | 322 | false | dshean/pygeotools | gt_corners | 36,837 | |
LDU_FT/pymupdf/PyMuPDF/drawSquiggle | LDU_FT | [
"<BEGIN>\n## `_Widget_fontdict`",
"Turns the above font definitions into a dictionary. Assumes certain line breaks and spaces.\n<END>",
"<BEGIN>\n## `getTextlength`",
"Calculate length of a string for a given built-in font.",
" Args:\n fontname: name of the font.\n fontsize: size of font in... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the drawSquiggle API.
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 drawSquiggle API.
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... | Draw a squiggly line from point p1 to point p2. | "Draw a squiggly line from point p1 to point p2." | 282 | false | pymupdf/PyMuPDF | drawSquiggle | 36,838 | |
LDU_FT/RaRe-Technologies/smart_open/register_compressor | LDU_FT | [
"<BEGIN>\n## `extract_kwargs`",
"Extract keyword argument documentation from a function's docstring.",
" Parameters\n ----------\n docstring: str\n The docstring to extract keyword arguments from.",
" Returns\n -------\n list of (str, str, list str)",
" str\n The name of t... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the register_compressor API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
T... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the register_compressor 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... | Register a callback for transparently decompressing files with a specific extension.
Parameters
----------
ext: str
The extension.
callback: callable
The callback. It must accept two position arguments, file_obj and mode.
Examples
--------
Instruct smart_open to use the i... | "Register a callback for transparently decompressing files with a specific extension.\n\n Parameters\n ----------\n ext: str\n The extension.\n callback: callable\n The callback. It must accept two position arguments, file_obj and mode.\n\n Examples\n --------\n\n Instruct smart_open... | 150 | false | RaRe-Technologies/smart_open | register_compressor | 36,839 | |
LDU_FT/JosuaKrause/quick_server/_add_file_mask | LDU_FT | [
"<BEGIN>\n## `json_dumps`",
"A safe JSON dump function that provides correct diverging numbers for a\n ECMAscript consumer.\n<END>",
"<BEGIN>\n## `msg`",
"Prints a message from the server to the log file.\n<END>",
"<BEGIN>\n## `setup_restart`",
"Sets up restart functionality that doesn't keep the fi... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _add_file_mask API.
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 _add_file_mask API.
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... | Adds a raw file mask for dynamic requests.
Parameters
----------
start : string
The URL prefix that must be matched to perform this request.
method_str : string
The HTTP method for which to trigger the request.
method : function(esrh, args)
... | "Adds a raw file mask for dynamic requests.\n\n Parameters\n ----------\n start : string\n The URL prefix that must be matched to perform this request.\n\n method_str : string\n The HTTP method for which to trigger the request.\n\n method : function(esrh, args)\n... | 90 | false | JosuaKrause/quick_server | _add_file_mask | 36,840 | |
LDU_FT/empirical-org/Quill-NLP-Tools-and-Datasets/lemmatize | LDU_FT | [
"<BEGIN>\n## `_verbs_with_subjects`",
"Given a spacy document return the verbs that have subjects\n<END>",
"<BEGIN>\n## `mangle_agreement`",
"Given a correct sentence, return a sentence or sentences with a subject\n verb agreement error\n<END>",
"<BEGIN>\n## `_build_trigram_indices`",
"Build a dictiona... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the lemmatize API.
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 lemmatize API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extract... | Return the lemmas of the tokens in a text. | "Return the lemmas of the tokens in a text." | 70 | false | empirical-org/Quill-NLP-Tools-and-Datasets | lemmatize | 36,841 | |
LDU_FT/viniciuschiele/flask-apscheduler/init_app | LDU_FT | [
"<BEGIN>\n## `pop_trigger`",
"Pops trigger and trigger args from a given dict.\n<END>",
"<BEGIN>\n## `fix_job_def`",
"Replaces the datetime in string by datetime object.\n<END>",
"<BEGIN>\n## `init_app`",
"Initialize the APScheduler with a Flask application instance.\n<END>",
"<BEGIN>\n## `start`",
"S... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the init_app API.
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 init_app API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracte... | Initialize the APScheduler with a Flask application instance. | "Initialize the APScheduler with a Flask application instance." | 37 | false | viniciuschiele/flask-apscheduler | init_app | 36,842 | |
LDU_FT/hubo1016/vlcp/shutdown | LDU_FT | [
"<BEGIN>\n## `get_connection`",
"Get an exclusive connection, useful for blocked commands and transactions.",
" You must call release or shutdown (not recommanded) to return the connection after use.",
" :param container: routine container",
" :returns: RedisClientBase object, with some... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the shutdown API.
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 shutdown API.
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... | Shutdown all connections. Exclusive connections created by get_connection will shutdown after release() | "Shutdown all connections. Exclusive connections created by get_connection will shutdown after release()" | 538 | false | hubo1016/vlcp | shutdown | 36,843 | |
LDU_FT/JukeboxPipeline/jukeboxmaya/locknode | LDU_FT | [
"<BEGIN>\n## `main_func`",
"Main funcion when executing this module as script",
" :param args: commandline arguments\n :type args: list\n :returns: None\n :rtype: None\n :raises: None\n<END>",
"<BEGIN>\n## `setup_launch_parser`",
"Setup the given parser for the launch command",
" :pa... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the locknode API.
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 locknode API.
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... | Contextmanager that will lock or unlock the given node and afterwards, restore the original status
:param node: the node to lock/unlock or nodes
:type node: str | list | tuple
:param lock: True for locking, False for unlocking
:type lock: bool
:returns: None
:rtype: None
:raises: None | "Contextmanager that will lock or unlock the given node and afterwards, restore the original status\n\n :param node: the node to lock/unlock or nodes\n :type node: str | list | tuple\n :param lock: True for locking, False for unlocking\n :type lock: bool\n :returns: None\n :rtype: None\n :raises: N... | 241 | false | JukeboxPipeline/jukeboxmaya | locknode | 36,844 | |
LDU_FT/chibisov/drf-extensions/_xml_escape_attr | LDU_FT | [
"<BEGIN>\n## `get_etags_and_matchers`",
"Get the etags from the header and perform a validation against the required preconditions.\n<END>",
"<BEGIN>\n## `evaluate_preconditions`",
"Evaluate whether the precondition for the request is met.\n<END>",
"<BEGIN>\n## `_regex_from_encoded_pattern`",
"foo' -> ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _xml_escape_attr API.
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 _xml_escape_attr API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | Escape the given string for use in an HTML/XML tag attribute.
By default this doesn't bother with escaping `'` to `'`, presuming that
the tag attribute is surrounded by double quotes. | "Escape the given string for use in an HTML/XML tag attribute.\n\n By default this doesn't bother with escaping `'` to `'`, presuming that\n the tag attribute is surrounded by double quotes." | 55 | false | chibisov/drf-extensions | _xml_escape_attr | 36,845 | |
LDU_FT/erikrose/peep/peep_port | LDU_FT | [
"<BEGIN>\n## `activate`",
"Make a compatible version of pip importable. Raise a RuntimeError if we\n couldn't.\n<END>",
"<BEGIN>\n## `path_and_line`",
"Return the path and line number of the file from which an\n InstallRequirement came.\n<END>",
"<BEGIN>\n## `hashes_above`",
"Yield hashes from conti... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the peep_port API.
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 peep_port API.
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 a peep requirements file to one compatble with pip-8 hashing.
Loses comments and tromps on URLs, so the result will need a little manual
massaging, but the hard part--the hash conversion--is done for you. | "Convert a peep requirements file to one compatble with pip-8 hashing.\n\n Loses comments and tromps on URLs, so the result will need a little manual\n massaging, but the hard part--the hash conversion--is done for you." | 53 | false | erikrose/peep | peep_port | 36,846 | |
LDU_FT/neuropsychology/NeuroKit.py/eeg_microstates_features | LDU_FT | [
"<BEGIN>\n## `complexity`",
"Computes several chaos/complexity indices of a signal (including entropy, fractal dimensions, Hurst and Lyapunov exponent etc.).",
" Parameters\n ----------\n signal : list or array\n List or array of values.\n sampling_rate : int\n Sampling rate (samples/s... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the eeg_microstates_features API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the eeg_microstates_features API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio... | Compute statistics and features for/of the microstates. | "Compute statistics and features for/of the microstates." | 778 | false | neuropsychology/NeuroKit.py | eeg_microstates_features | 36,847 | |
LDU_FT/Scille/autobahn-sync/run | LDU_FT | [
"<BEGIN>\n## `leave`",
"Actively close this WAMP session.",
" Replace :meth:`autobahn.wamp.interface.IApplicationSession.leave`\n<END>",
"<BEGIN>\n## `call`",
"Call a remote procedure.",
" Replace :meth:`autobahn.wamp.interface.IApplicationSession.call`\n<END>",
"<BEGIN>\n## `register`",
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the run API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted doc... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the run API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted doc... | Start the background twisted thread and create the WAMP connection
:param blocking: If ``False`` (default) this method will spawn a new
thread that will be used to run the callback events (e.i. registered and
subscribed functions). If ``True`` this method will not returns and
use the cu... | "Start the background twisted thread and create the WAMP connection\n\n :param blocking: If ``False`` (default) this method will spawn a new\n thread that will be used to run the callback events (e.i. registered and\n subscribed functions). If ``True`` this method will not returns and\n use ... | 39 | false | Scille/autobahn-sync | run | 36,848 | |
LDU_FT/FreekingDean/insteon-hub/refresh_details | LDU_FT | [
"<BEGIN>\n## `refresh_devices`",
"Queries hub for list of devices, and creates new device objects\n<END>",
"<BEGIN>\n## `refresh_details`",
"Query hub and refresh all details of a device,\n but NOT status, includes grouplist not present in\n refresh_all_devices\n<END>",
"<BEGIN>\n## `_update_d... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the refresh_details API.
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 refresh_details API.
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... | Query hub and refresh all details of a device,
but NOT status, includes grouplist not present in
refresh_all_devices | "Query hub and refresh all details of a device,\n but NOT status, includes grouplist not present in\n refresh_all_devices" | 10 | false | FreekingDean/insteon-hub | refresh_details | 36,849 | |
LDU_FT/jic-dtool/dtoolcore/_put_overlay | LDU_FT | [
"<BEGIN>\n## `generous_parse_uri`",
"Return a urlparse.ParseResult object with the results of parsing the\n given URI. This has the same properties as the result of parse_uri.",
" When passed a relative path, it determines the absolute path, sets the\n scheme to file, the netloc to localhost and return... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _put_overlay API.
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 _put_overlay API.
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... | Store overlay so that it is accessible by the given name.
:param overlay_name: name of the overlay
:param overlay: overlay must be a dictionary where the keys are
identifiers in the dataset
:raises: TypeError if the overlay is not a dictionary,
ValueErro... | "Store overlay so that it is accessible by the given name.\n\n :param overlay_name: name of the overlay\n :param overlay: overlay must be a dictionary where the keys are\n identifiers in the dataset\n :raises: TypeError if the overlay is not a dictionary,\n Va... | 111 | false | jic-dtool/dtoolcore | _put_overlay | 36,850 | |
LDU_FT/Meseira/subordinate/read_file | LDU_FT | [
"<BEGIN>\n## `append`",
"If name is not in the map, append it with an empty id range set.\n<END>",
"<BEGIN>\n## `read_file`",
"Read and parse id data from id_file which must be an iterable\n yielding Unicode strings formatted as in '/etc/subuid' or\n '/etc/subgid'.\n<END>",
"<BEGIN>\n## `write... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the read_file API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extract... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the read_file API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extract... | Read and parse id data from id_file which must be an iterable
yielding Unicode strings formatted as in '/etc/subuid' or
'/etc/subgid'. | "Read and parse id data from id_file which must be an iterable\n yielding Unicode strings formatted as in '/etc/subuid' or\n '/etc/subgid'." | 14 | false | Meseira/subordinate | read_file | 36,851 | |
LDU_FT/shveenkov/aiotarantool-queue-python/drop | LDU_FT | [
"<BEGIN>\n## `create_from_tuple`",
"Create task from tuple.",
" Returns `Task` instance.\n<END>",
"<BEGIN>\n## `release`",
"Put the task back into the queue.",
" May contain a possible new `delay` before the task is executed again.",
" Returns `True` is task is released (task state ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the drop API.
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 drop API.
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... | Drop entire query (if there are no in-progress tasks or workers).
Returns `True` on successful drop. | "Drop entire query (if there are no in-progress tasks or workers).\n\n Returns `True` on successful drop." | 43 | false | shveenkov/aiotarantool-queue-python | drop | 36,852 | |
LDU_FT/oasiswork/zimsoap/delegate_auth | LDU_FT | [
"<BEGIN>\n## `from_dict`",
"Given a dict in python-zimbra format or XML, generate\n a Python object.\n<END>",
"<BEGIN>\n## `property`",
"Returns a property value",
" :param: default will return that value if the property is not found,\n else, will raise a KeyError.\n<END>",
"<B... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the delegate_auth API.
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 delegate_auth API.
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... | Uses the DelegateAuthRequest to provide a ZimbraAccountClient
already logged with the provided account.
It's the mechanism used with the "view email" button in admin console. | "Uses the DelegateAuthRequest to provide a ZimbraAccountClient\n already logged with the provided account.\n\n It's the mechanism used with the \"view email\" button in admin console." | 242 | false | oasiswork/zimsoap | delegate_auth | 36,853 | |
LDU_FT/Britefury/batchup/get_data_path | LDU_FT | [
"<BEGIN>\n## `num_batches`",
"Compute the number of mini-batches required to cover a data set of\n size `n` using batches of size `batch_size`.",
" Parameters\n ----------\n n: int\n the number of samples in the data set\n batch_size: int\n the mini-batch size",
" Returns\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_data_path API.
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_data_path API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | Get the path of the given file within the batchup data directory
Parameters
----------
filename: str
The filename to locate within the batchup data directory
Returns
-------
str
The full path of the file | "Get the path of the given file within the batchup data directory\n\n Parameters\n ----------\n filename: str\n The filename to locate within the batchup data directory\n\n Returns\n -------\n str\n The full path of the file" | 194 | false | Britefury/batchup | get_data_path | 36,854 | |
LDU_FT/bodylabs/lace/faces_per_edge | LDU_FT | [
"<BEGIN>\n## `copy`",
"Returns a deep copy with all of the numpy arrays copied\n If only is a list of strings, i.e. ['f', 'v'], then only those properties will be copied\n<END>",
"<BEGIN>\n## `concatenate`",
"Concatenates an arbitrary number of meshes.",
" Currently supports vertices, vertex c... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the faces_per_edge API.
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 faces_per_edge API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ex... | Returns an Ex2 array of adjacencies between faces, where
each element in the array is a face index. Each edge is included
only once. Edges that are not shared by 2 faces are not included. | "Returns an Ex2 array of adjacencies between faces, where\n each element in the array is a face index. Each edge is included\n only once. Edges that are not shared by 2 faces are not included." | 133 | false | bodylabs/lace | faces_per_edge | 36,855 | |
LDU_FT/dcolish/Refugee/collect | LDU_FT | [
"<BEGIN>\n## `do_down`",
"Run down migration with name or numeric id matching arg\n<END>",
"<BEGIN>\n## `do_up`",
"Run up migration with name or numeric id matching arg\n<END>",
"<BEGIN>\n## `collect`",
"Walks self.migration_home and load all potential migration modules\n<END>",
"<BEGIN>\n## `new`",
"... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the collect API.
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 collect API.
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... | Walks self.migration_home and load all potential migration modules | "Walks self.migration_home and load all potential migration modules" | 20 | false | dcolish/Refugee | collect | 36,856 | |
LDU_FT/JensAstrup/pyOutlook/attach | LDU_FT | [
"<BEGIN>\n## `auto_reply_message`",
"The account's Internal auto reply message. Setting the value will change the auto reply message of the\n account, automatically setting the status to enabled (but not altering the schedule).\n<END>",
"<BEGIN>\n## `set_auto_reply`",
"Set an automatic reply for the a... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the attach API.
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 attach API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted ... | Adds an attachment to the email. The filename is passed through Django's get_valid_filename which removes
invalid characters. From the documentation for that function:
>>> get_valid_filename("john's portrait in 2004.jpg")
'johns_portrait_in_2004.jpg'
Args:
file_bytes: The b... | "Adds an attachment to the email. The filename is passed through Django's get_valid_filename which removes\n invalid characters. From the documentation for that function:\n\n >>> get_valid_filename(\"john's portrait in 2004.jpg\")\n 'johns_portrait_in_2004.jpg'\n\n Args:\n file_by... | 99 | false | JensAstrup/pyOutlook | attach | 36,857 | |
LDU_FT/ldo/dbussy/iter_init | LDU_FT | [
"<BEGIN>\n## `data_key`",
"returns a unique value that allows data to be used as a dict/set key.\n<END>",
"<BEGIN>\n## `get_version`",
"returns the libdbus library version as a tuple of integers (major, minor, micro).\n<END>",
"<BEGIN>\n## `matches_rule`",
"does Message message match against the specified... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the iter_init API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extract... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the iter_init API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extract... | creates an iterator for extracting the arguments of the Message. | "creates an iterator for extracting the arguments of the Message." | 74 | false | ldo/dbussy | iter_init | 36,858 | |
LDU_FT/clement-alexandre/TotemBionet/as_dot | LDU_FT | [
"<BEGIN>\n## `pick_a_model_randomly`",
"Naive picking function, return one of the models chosen randomly.\n<END>",
"<BEGIN>\n## `as_data_frame`",
"Create a panda DataFrame representation of the resource table.\n<END>",
"<BEGIN>\n## `is_active`",
"Return True if the multiplex is active in the given state, ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the as_dot API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the as_dot API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted ... | Return as a string the dot version of the graph. | "Return as a string the dot version of the graph." | 49 | false | clement-alexandre/TotemBionet | as_dot | 36,859 | |
LDU_FT/django-auth-ldap/django-auth-ldap/_load_user_dn | LDU_FT | [
"<BEGIN>\n## `get_or_build_user`",
"This must return a (User, built) 2-tuple for the given LDAP user.",
" username is the Django-friendly username of the user. ldap_user.dn is\n the user's DN and ldap_user.attrs contains all of their LDAP\n attributes.",
" The returned User object ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _load_user_dn API.
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 _load_user_dn API.
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... | Populates self._user_dn with the distinguished name of our user.
This will either construct the DN from a template in
AUTH_LDAP_USER_DN_TEMPLATE or connect to the server and search for it.
If we have to search, we'll cache the DN. | "Populates self._user_dn with the distinguished name of our user.\n\n This will either construct the DN from a template in\n AUTH_LDAP_USER_DN_TEMPLATE or connect to the server and search for it.\n If we have to search, we'll cache the DN." | 65 | false | django-auth-ldap/django-auth-ldap | _load_user_dn | 36,860 | |
LDU_FT/kiwiz/gkeepapi/find | LDU_FT | [
"<BEGIN>\n## `login`",
"Authenticate to Google with the provided credentials.",
" Args:\n email (str): The account to use.\n password (str): The account password.\n android_id (str): An identifier for this client.",
" Raises:\n LoginException: If there... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find API.
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 find API.
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... | Find Notes based on the specified criteria.
Args:
query (Union[_sre.SRE_Pattern, str, None]): A str or regular expression to match against the title and text.
func (Union[callable, None]): A filter function.
labels (Union[List[str], None]): A list of label ids or objects to ... | "Find Notes based on the specified criteria.\n\n Args:\n query (Union[_sre.SRE_Pattern, str, None]): A str or regular expression to match against the title and text.\n func (Union[callable, None]): A filter function.\n labels (Union[List[str], None]): A list of label ids or objec... | 164 | false | kiwiz/gkeepapi | find | 36,861 | |
LDU_FT/PyMySQL/Tornado-MySQL/_read_packet | LDU_FT | [
"<BEGIN>\n## `executemany`",
"Run several data against one query",
" PyMySQL can execute bulkinsert for query like 'INSERT ... VALUES (%s)'.\n In other form of queries, just run :meth:`execute` many times.\n<END>",
"<BEGIN>\n## `fetchall`",
"Fetch all, as per MySQLdb. Pretty useless for large ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _read_packet API.
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 _read_packet API.
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... | Read an entire "mysql packet" in its entirety from the network
and return a MysqlPacket type that represents the results. | "Read an entire \"mysql packet\" in its entirety from the network\n and return a MysqlPacket type that represents the results." | 56 | false | PyMySQL/Tornado-MySQL | _read_packet | 36,862 | |
LDU_FT/ulule/django-linguist/has_linguist_args | LDU_FT | [
"<BEGIN>\n## `_filter_or_exclude`",
"Overrides default behavior to handle linguist fields.\n<END>",
"<BEGIN>\n## `_get_concrete_fields_with_model`",
"For compatibility with Django<=1.10. Replace old\n `_meta.get_concrete_fields_with_model`.\n https://docs.djangoproject.com/en/1.10/ref/models/met... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the has_linguist_args API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the has_linguist_args API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | Parses the given args and returns True if they contain
linguist lookups. | "Parses the given args and returns True if they contain\n linguist lookups." | 62 | false | ulule/django-linguist | has_linguist_args | 36,863 | |
LDU_FT/mikeboers/Flask-ACL/is_permission_in_set | LDU_FT | [
"<BEGIN>\n## `parse_state`",
"Convert a bool, or string, into a bool.",
" The string pairs we respond to (case insensitively) are:",
" - ALLOW & DENY\n - GRANT & REJECT",
" :returns bool: ``True`` or ``False``.\n :raises ValueError: when not a ``bool`` or one of the above strings.",
" E.... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_permission_in_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.
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_permission_in_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.
... | Test if a permission is in the given set.
:param perm: The permission object to check for.
:param perm_set: The set to check in. If a ``str``, the permission is
checked for equality. If a container, the permission is looked for in
the set. If a function, the permission is passed to the "set". | "Test if a permission is in the given set.\n\n :param perm: The permission object to check for.\n :param perm_set: The set to check in. If a ``str``, the permission is\n checked for equality. If a container, the permission is looked for in\n the set. If a function, the permission is passed to the \"... | 44 | false | mikeboers/Flask-ACL | is_permission_in_set | 36,864 | |
LDU_FT/cloudnull/turbolift/_header_poster | LDU_FT | [
"<BEGIN>\n## `start`",
"Return a list of objects from the API for a container.\n<END>",
"<BEGIN>\n## `_cdn`",
"Retrieve a long list of all files in a container.",
" :return final_list, list_count, last_obj:\n<END>",
"<BEGIN>\n## `remove_dirs`",
"Delete a directory recursively.",
" :param... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _header_poster API.
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 _header_poster API.
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... | POST Headers on a specified object in the container.
:param uri: ``str``
:param headers: ``dict`` | "POST Headers on a specified object in the container.\n\n :param uri: ``str``\n :param headers: ``dict``" | 148 | false | cloudnull/turbolift | _header_poster | 36,865 | |
LDU_FT/Guake/guake/on_history_size_value_changed | LDU_FT | [
"<BEGIN>\n## `mk_tab_context_menu`",
"Create the context menu for a notebook tab\n<END>",
"<BEGIN>\n## `mk_notebook_context_menu`",
"Create the context menu for the notebook\n<END>",
"<BEGIN>\n## `trayicon_toggled`",
"If the gconf var use_trayicon be changed, this method will\n be called and will s... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the on_history_size_value_changed 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 on_history_size_value_changed API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conc... | Changes the value of history_size in dconf | "Changes the value of history_size in dconf" | 184 | false | Guake/guake | on_history_size_value_changed | 36,866 | |
LDU_FT/disqus/gutter/switch | LDU_FT | [
"<BEGIN>\n## `get_gutter_client`",
"Creates gutter clients and memoizes them in a registry for future quick access.",
" Args:\n alias (str or None): Name of the client. Used for caching.\n If name is falsy then do not use the cache.\n cache (dict): cache to store gutter managers in.\... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the switch API.
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 switch API.
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 switch with the provided ``name``.
If ``autocreate`` is set to ``True`` and no switch with that name
exists, a ``DISABLED`` switch will be with that name.
Keyword Arguments:
name -- A name of a switch. | "Returns the switch with the provided ``name``.\n\n If ``autocreate`` is set to ``True`` and no switch with that name\n exists, a ``DISABLED`` switch will be with that name.\n\n Keyword Arguments:\n name -- A name of a switch." | 26 | false | disqus/gutter | switch | 36,867 | |
LDU_FT/cs50/lib50/_apply_default | LDU_FT | [
"<BEGIN>\n## `push`",
"Push to github.com/org/repo=username/slug if tool exists.\n Returns username, commit hash\n<END>",
"<BEGIN>\n## `local`",
"Create/update local copy of github.com/org/repo/branch.\n Returns path to local copy\n<END>",
"<BEGIN>\n## `working_area`",
"Copy all files to a temporary... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _apply_default API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ex... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _apply_default API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ex... | Apply default value to every str in config.
Also ensure every TaggedValue has default in .tags | "Apply default value to every str in config.\n Also ensure every TaggedValue has default in .tags" | 38 | false | cs50/lib50 | _apply_default | 36,868 | |
LDU_FT/gdestuynder/simple_bugzilla/put_attachment | LDU_FT | [
"<BEGIN>\n## `quick_search`",
"Wrapper for search_bugs, for simple string searches\n<END>",
"<BEGIN>\n## `search_bugs`",
"http://bugzilla.readthedocs.org/en/latest/api/core/v1/bug.html#search-bugs\n terms = [{'product': 'Infrastructure & Operations'}, {'status': 'NEW'}]\n<END>",
"<BEGIN>\n## `put_att... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the put_attachment API.
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 put_attachment API.
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... | http://bugzilla.readthedocs.org/en/latest/api/core/v1/attachment.html#update-attachment | "http://bugzilla.readthedocs.org/en/latest/api/core/v1/attachment.html#update-attachment" | 18 | false | gdestuynder/simple_bugzilla | put_attachment | 36,869 | |
LDU_FT/scieloorg/articlemetaapi/collection | LDU_FT | [
"<BEGIN>\n## `collection`",
"Retrieve the collection ids according to the given 3 letters acronym\n<END>",
"<BEGIN>\n## `add_journal`",
"This method include new journals to the ArticleMeta.",
" data: legacy SciELO Documents JSON Type 3.\n<END>",
"<BEGIN>\n## `add_issue`",
"This method include new... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the collection API.
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 collection API.
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... | Retrieve the collection ids according to the given 3 letters acronym | "Retrieve the collection ids according to the given 3 letters acronym" | 13 | false | scieloorg/articlemetaapi | collection | 36,870 | |
LDU_FT/benzrf/parthial/eval_in_new | LDU_FT | [
"<BEGIN>\n## `scopes_as`",
"Replace my :attr:`scopes` for the duration of the with block.",
" My global scope is not replaced.",
" Args:\n new_scopes (list of dict-likes): The new :attr:`scopes` to use.\n<END>",
"<BEGIN>\n## `new_scope`",
"Add a new innermost scope for the duratio... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the eval_in_new API.
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 eval_in_new API.
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... | :meth:`eval` an expression in a new, temporary :class:`Context`.
This should be safe to use directly on user input.
Args:
expr (LispVal): The expression to evaluate.
*args: Args for the :class:`Context` constructor.
**kwargs: Kwargs for the :class:`Context` construc... | ":meth:`eval` an expression in a new, temporary :class:`Context`.\n\n This should be safe to use directly on user input.\n\n Args:\n expr (LispVal): The expression to evaluate.\n *args: Args for the :class:`Context` constructor.\n **kwargs: Kwargs for the :class:`Context` ... | 35 | false | benzrf/parthial | eval_in_new | 36,871 | |
LDU_FT/openbermuda/ripl/interpret | LDU_FT | [
"<BEGIN>\n## `interpret`",
"Try and find the image file ",
" some magic here would be good.",
" FIXME move elsewhere and make so everyone can use.",
" interpreter that finds things?\n<END>",
"<BEGIN>\n## `horizontal_layout`",
"Augment slide with horizontal layout info\n<END>",
"<B... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the interpret API.
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 interpret API.
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... | Process a file of rest and return list of dicts | "Process a file of rest and return list of dicts" | 33 | false | openbermuda/ripl | interpret | 36,872 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.