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/HDI-Project/BTB/add
LDU_FT
[ "<BEGIN>\n## `tune_pipeline`", "Tunes a specified pipeline with the\n specified tuner for TUNING_BUDGET_PER_ITER (3) iterations.", " Params:\n X: np.array of X training data\n y: np.array of y training data\n X_val: np.array of X validation data\n y_val: np.array of y validatio...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
Add data about known pipeline and scores. Updates ``dpp_vector`` and refits model with all data. Args: X (dict): mapping of pipeline indices to scores. Keys must correspond to the index of a column in ``dpp_matrix`` and values are the corresponding score for pipeline on ...
"Add data about known pipeline and scores.\n\n Updates ``dpp_vector`` and refits model with all data.\n\n Args:\n X (dict): mapping of pipeline indices to scores. Keys must correspond to the index of a\n column in ``dpp_matrix`` and values are the corresponding score for pipeline...
75
false
HDI-Project/BTB
add
31,773
LDU_FT/classner/pymp/_get_conf_value
LDU_FT
[ "<BEGIN>\n## `array`", "Factory method for shared memory arrays supporting all numpy dtypes.\n<END>", "<BEGIN>\n## `_get_conf_value`", "Get configuration value from PYMP/OMP env variables.\n<END>", "<BEGIN>\n## `range`", "Get the correctly distributed parallel chunks.", " This corresponds to usin...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_conf_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 e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_conf_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 e...
Get configuration value from PYMP/OMP env variables.
"Get configuration value from PYMP/OMP env variables."
15
false
classner/pymp
_get_conf_value
31,774
LDU_FT/xi/ldif3/_unparse_change_record
LDU_FT
[ "<BEGIN>\n## `_fold_line`", "Write string line as one or more folded lines.\n<END>", "<BEGIN>\n## `_needs_base64_encoding`", "Return True if attr_value has to be base-64 encoded.", " This is the case because of special chars or because attr_type is in\n self._base64_attrs\n<END>", "<BEGIN>\n...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _unparse_change_record API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _unparse_change_record API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
:type modlist: List[Tuple] :param modlist: List of additions (2-tuple) or modifications (3-tuple)
":type modlist: List[Tuple]\n :param modlist: List of additions (2-tuple) or modifications (3-tuple)"
25
false
xi/ldif3
_unparse_change_record
31,775
LDU_FT/cebel/pyuniprot/get_tissue_specificities
LDU_FT
[ "<BEGIN>\n## `get_args`", "Check allowed argument names and return is as dictionary\n<END>", "<BEGIN>\n## `query_disease`", "Returns list of diseases by query parameters\n ---", " tags:", " - Query functions", " parameters:", " - name: identifier\n in: query\n type: st...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_tissue_specificities 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_tissue_specificities API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio...
get list of :class:`pyuniprot.manager.models.TissueSpecificity` object from XML node entry :param entry: XML node entry :return: models.TissueSpecificity object
"get list of :class:`pyuniprot.manager.models.TissueSpecificity` object from XML node entry\n\n :param entry: XML node entry\n :return: models.TissueSpecificity object"
416
false
cebel/pyuniprot
get_tissue_specificities
31,776
LDU_FT/datastore/datastore/next
LDU_FT
[ "<BEGIN>\n## `list`", "Returns the `list` representation of this Key.", " Note that this method assumes the key is immutable.\n<END>", "<BEGIN>\n## `instance`", "Returns an instance Key, by appending a name to the namespace.\n<END>", "<BEGIN>\n## `parent`", "Returns the parent Key (all namespaces exc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the next API. Each 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 next API. Each 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...
Iterator next. Build up count of returned elements during iteration.
"Iterator next. Build up count of returned elements during iteration."
180
false
datastore/datastore
next
31,777
LDU_FT/pycontribs/pyrax/request
LDU_FT
[ "<BEGIN>\n## `resize`", "Resize the volume to the specified size (in GB).\n<END>", "<BEGIN>\n## `get`", "This additional code is necessary to properly return the 'volume'\n attribute of the instance as a CloudDatabaseVolume object instead of\n a raw dict.\n<END>", "<BEGIN>\n## `_create_body`",...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the request API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the request API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
Formats the request into a dict representing the headers and body that will be used to make the API call.
"Formats the request into a dict representing the headers\n and body that will be used to make the API call."
1,326
true
pycontribs/pyrax
request
31,778
LDU_FT/berkeley-cocosci/Wallace/get_info
LDU_FT
[ "<BEGIN>\n## `submission_successful`", "Run when a participant submits successfully.\n<END>", "<BEGIN>\n## `summary`", "Summarize the participants' status codes.\n<END>", "<BEGIN>\n## `experiment_property`", "Get a property of the experiment by name.\n<END>", "<BEGIN>\n## `ad_address`", "Get the addre...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_info API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_info API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
Get a specific info. Both the node and info id must be specified in the url.
"Get a specific info.\n\n Both the node and info id must be specified in the url."
118
false
berkeley-cocosci/Wallace
get_info
31,779
LDU_FT/atztogo/phonopy/init_dynamic_structure_factor
LDU_FT
[ "<BEGIN>\n## `_set_translations`", "Set primitive translations in supercell", " _trans_s\n Translations with respect to supercell basis vectors\n _trans_p\n Translations with respect to primitive cell basis vectors\n _N\n Number of the translations = det(sup...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the init_dynamic_structure_factor 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 init_dynamic_structure_factor API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conc...
Initialize dynamic structure factor calculation. ******************************************************************* This is still an experimental feature. API can be changed without notification. ******************************************************************* Need to cal...
"Initialize dynamic structure factor calculation.\n\n *******************************************************************\n This is still an experimental feature. API can be changed without\n notification.\n *******************************************************************\n\n Nee...
417
false
atztogo/phonopy
init_dynamic_structure_factor
31,780
LDU_FT/sbg/sevenbridges-python/_get_part_url
LDU_FT
[ "<BEGIN>\n## `query`", "Query (List) tasks. Date parameters may be both strings and python date\n objects.\n :param project: Target project. optional.\n :param status: Task status.\n :param batch: Only batch tasks.\n :param parent: Parent batch task identifier.\n :param e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_part_url API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_part_url API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
Used by the worker to fetch url for the part that is to be uploaded. :param api: Api instance. :param url: Part url. :param upload: Upload identifier. :param part: Part number. :return: Storage generated URL for the part.
"Used by the worker to fetch url for the part that is to be uploaded.\n :param api: Api instance.\n :param url: Part url.\n :param upload: Upload identifier.\n :param part: Part number.\n :return: Storage generated URL for the part."
292
false
sbg/sevenbridges-python
_get_part_url
31,781
LDU_FT/KelSolaar/Umbra/uninitialize_ui
LDU_FT
[ "<BEGIN>\n## `restore_geometry_on_layout_change`", "Setter for **self.__restore_geometry_on_layout_change** attribute.", " :param value: Attribute value.\n :type value: bool\n<END>", "<BEGIN>\n## `get`", "Returns given layout value.", " :param layout: Layout name.\n :type layou...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the uninitialize_ui API. 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 uninitialize_ui API. 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...
Uninitializes the Component ui. :return: Method success. :rtype: bool
"Uninitializes the Component ui.\n\n :return: Method success.\n :rtype: bool"
1,432
true
KelSolaar/Umbra
uninitialize_ui
31,782
LDU_FT/nikcub/floyd/get_file_contents
LDU_FT
[ "<BEGIN>\n## `get_file_contents`", "Get the context of the file using full path name\n<END>", "<BEGIN>\n## `import_model`", "imports a model of name from path, returning from local model\n cache if it has been previously loaded otherwise importing\n<END>", "<BEGIN>\n## `parse_md`", "Takes a post path a...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_file_contents API. 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_file_contents API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Get the context of the file using full path name
"Get the context of the file using full path name"
71
false
nikcub/floyd
get_file_contents
31,783
LDU_FT/pmelchior/proxmin/prox_hard
LDU_FT
[ "<BEGIN>\n## `prox_gradf_lim`", "Forward-backward step: gradient, followed by projection\n<END>", "<BEGIN>\n## `prox_lim12`", "if boundary == \"circle\":\n if j == 0:\n xy = np.array([x[0], Xs[1][0]])\n if j == 1:\n xy = np.array([Xs[0][0], x[0]])\n return [prox_circ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the prox_hard API. 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 prox_hard API. 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...
Hard thresholding X if |X| >= thresh, otherwise 0 NOTE: modifies X in place
"Hard thresholding\n\n X if |X| >= thresh, otherwise 0\n NOTE: modifies X in place"
91
false
pmelchior/proxmin
prox_hard
31,784
LDU_FT/alvations/pywsd/penn2morphy
LDU_FT
[ "<BEGIN>\n## `similarity_by_path`", "Returns maximum path similarity between two senses.", " :param sense1: A synset.\n :param sense2: A synset.\n :param option: String, one of ('path', 'wup', 'lch').\n :return: A float, similarity measurement.\n<END>", "<BEGIN>\n## `similarity_by_infocontent`", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the penn2morphy API. 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 penn2morphy API. 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...
Converts tags from Penn format (input: single string) to Morphy.
"Converts tags from Penn format (input: single string) to Morphy."
83
false
alvations/pywsd
penn2morphy
31,785
LDU_FT/libyal/dtfabric/MapByteStream
LDU_FT
[ "<BEGIN>\n## `Main`", "The main program function.", " Returns:\n bool: True if successful or False if not.\n<END>", "<BEGIN>\n## `CheckDirectory`", "Validates definition files in a directory.", " Args:\n path (str): path of the definition file.\n extension (Optional[str]): extension of th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the MapByteStream API. 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 MapByteStream API. 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...
Maps the data type on a byte stream. Args: byte_stream (bytes): byte stream. byte_offset (Optional[int]): offset into the byte stream where to start. Returns: str: mapped values. Raises: MappingError: if the data type definition cannot be mapped on the byte stream.
"Maps the data type on a byte stream.\n\n Args:\n byte_stream (bytes): byte stream.\n byte_offset (Optional[int]): offset into the byte stream where to start.\n\n Returns:\n str: mapped values.\n\n Raises:\n MappingError: if the data type definition cannot be mapped on\n the byte s...
373
false
libyal/dtfabric
MapByteStream
31,786
LDU_FT/inveniosoftware/kwalitee/_register_pyflakes_check
LDU_FT
[ "<BEGIN>\n## `_get_files_modified`", "Get the list of modified files that are Python or Jinja2.\n<END>", "<BEGIN>\n## `_get_git_author`", "Return the git author from the git variables.\n<END>", "<BEGIN>\n## `_prepare_commit_msg`", "Prepare the commit message in tmp_file.", " It will build the commit ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _register_pyflakes_check 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 _register_pyflakes_check API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio...
Register the pyFlakes checker into PEP8 set of checks.
"Register the pyFlakes checker into PEP8 set of checks."
77
false
inveniosoftware/kwalitee
_register_pyflakes_check
31,787
LDU_FT/guaix-ucm/numina/subsets_of_fileinfo_from_txt
LDU_FT
[ "<BEGIN>\n## `combine`", "Combine HDUList objects using algorithm 'method\n<END>", "<BEGIN>\n## `logging_from_debugplot`", "Set debugging level based on debugplot value.", " Parameters\n ----------\n debugplot : int\n Debugging level for messages and plots. For details see\n '...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the subsets_of_fileinfo_from_txt API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its concl...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the subsets_of_fileinfo_from_txt API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its concl...
Returns a dictionary with subsets of FileInfo instances from a TXT file. Each subset of files must be preceded by a line: @ <number> <label> where <number> indicates the number of files in that subset, and <label> is a label for that subset. Any additional text beyond <label> in the same line is ig...
"Returns a dictionary with subsets of FileInfo instances from a TXT file.\n\n Each subset of files must be preceded by a line:\n @ <number> <label>\n where <number> indicates the number of files in that subset,\n and <label> is a label for that subset. Any additional text\n beyond <label> in the same lin...
605
false
guaix-ucm/numina
subsets_of_fileinfo_from_txt
31,788
LDU_FT/ansible/ansible-container/preparse_iter
LDU_FT
[ "<BEGIN>\n## `to_bytes`", "Make sure that a string is a byte string", " :arg obj: An object to make sure is a byte string. In most cases this\n will be either a text string or a byte string. However, with\n ``nonstring='simplerepr'``, this can be used as a traceback-free\n version of `...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the preparse_iter API. 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 preparse_iter API. 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...
Comments can be anywhere. So break apart the Dockerfile into significant lines and any comments that precede them. And if a line is a carryover from the previous via an escaped-newline, bring the directive with it.
"Comments can be anywhere. So break apart the Dockerfile into significant\n lines and any comments that precede them. And if a line is a carryover\n from the previous via an escaped-newline, bring the directive with it."
64
false
ansible/ansible-container
preparse_iter
31,789
LDU_FT/python-gitlab/python-gitlab/erase
LDU_FT
[ "<BEGIN>\n## `on_http_error`", "Manage GitlabHttpError exceptions.", " This decorator function can be used to catch GitlabHttpError exceptions\n raise specialized exceptions instead.", " Args:\n error(Exception): The exception type to raise -- must inherit from\n GitlabError\n<END>"...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the erase API. Each 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 erase API. Each 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...
Erase the job (remove job artifacts and trace). Args: **kwargs: Extra options to send to the server (e.g. sudo) Raises: GitlabAuthenticationError: If authentication is not correct GitlabJobEraseError: If the job could not be erased
"Erase the job (remove job artifacts and trace).\n\n Args:\n **kwargs: Extra options to send to the server (e.g. sudo)\n\n Raises:\n GitlabAuthenticationError: If authentication is not correct\n GitlabJobEraseError: If the job could not be erased"
508
false
python-gitlab/python-gitlab
erase
31,790
LDU_FT/bitesofcode/projexui/setText
LDU_FT
[ "<BEGIN>\n## `addEntry`", "Creates a new entry item for this widget.\r", " :param key | <str>\r\n value | <variant>\n<END>", "<BEGIN>\n## `dictionary`", "Returns a dictionary of the key/value pairing for the items in\r\n this widget.\r", " :return {<s...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the setText API. Each 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 setText API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
Sets the text for this edit to the inputed text. :param text | <str>
"Sets the text for this edit to the inputed text.\n \n :param text | <str>"
4,917
true
bitesofcode/projexui
setText
31,791
LDU_FT/SkyLothar/shcmd/iter_content
LDU_FT
[ "<BEGIN>\n## `cd`", "cd to target dir when running in this block", " :param cd_path: dir to cd into\n :param create: create new dir if destination not there", " Usage::", " >>> with cd(\"/tmp\"):\n ... print(\"we are in /tmp now\")\n<END>", "<BEGIN>\n## `cd_to`", "make a gener...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the iter_content API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the iter_content API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
yields stdout data, chunk by chunk :param chunk_size: size of each chunk (in bytes)
"yields stdout data, chunk by chunk\n\n :param chunk_size: size of each chunk (in bytes)"
41
false
SkyLothar/shcmd
iter_content
31,792
LDU_FT/chibisov/drf-extensions/_dedent
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 _dedent API. Each 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 _dedent API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
_dedent(text, tabsize=8, skip_first_line=False) -> dedented text "text" is the text to dedent. "tabsize" is the tab width to use for indent width calculations. "skip_first_line" is a boolean indicating if the first line should be skipped for calculating the indent width and for dede...
"_dedent(text, tabsize=8, skip_first_line=False) -> dedented text\n\n \"text\" is the text to dedent.\n \"tabsize\" is the tab width to use for indent width calculations.\n \"skip_first_line\" is a boolean indicating if the first line should\n be skipped for calculating the indent width ...
55
false
chibisov/drf-extensions
_dedent
31,793
LDU_FT/smarie/python-autoclass/is_attr_selected
LDU_FT
[ "<BEGIN>\n## `autohash`", "A decorator to makes objects of the class implement __hash__, so that they can be used correctly for example in\n sets.", " Parameters allow to customize the list of attributes that are taken into account in the hash.", " :param include: a tuple of explicit attribute names ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_attr_selected API. 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_attr_selected API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
decide whether an action has to be performed on the attribute or not, based on its name
"decide whether an action has to be performed on the attribute or not, based on its name"
94
false
smarie/python-autoclass
is_attr_selected
31,794
LDU_FT/mickbad/mblibs/getFileFormat
LDU_FT
[ "<BEGIN>\n## `reload`", "fonction de chargement automatique de la configuration\n\t\t\tdepuis le fichier extérieur\n<END>", "<BEGIN>\n## `get`", "Récupération d'une configuration \n\t\t\tle paramètre ```name``` peut être soit un nom ou \n\t\t\tun chemin vers la valeur (séparateur /)", "\t\t\t```parent_searc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the getFileFormat API. 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 getFileFormat API. 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...
Récupération du contenu d'un fichier via la configuration et interprétation des variables données en argument
"Récupération du contenu d'un fichier via la configuration\n\t\t\tet interprétation des variables données en argument"
52
false
mickbad/mblibs
getFileFormat
31,795
LDU_FT/libnano/primer3-py/designPrimers
LDU_FT
[ "<BEGIN>\n## `_parse_ntthal`", "Helper method that uses regex to parse ntthal output.\n<END>", "<BEGIN>\n## `calcThermo`", "Main subprocess wrapper for calls to the ntthal executable.", " Returns a named tuple with tm, ds, dh, and dg values or None if no\n structure / complex could be computed.\n<END>...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the designPrimers API. 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 designPrimers API. 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...
Run the Primer3 design process. If the global args have been previously set (either by a pervious `designPrimers` call or by a `setGlobals` call), `designPrimers` may be called with seqArgs alone (as a means of optimization). Args: seq_args (dict) : Primer3 sequence/design args a...
"Run the Primer3 design process.\n\n If the global args have been previously set (either by a pervious\n `designPrimers` call or by a `setGlobals` call), `designPrimers` may be\n called with seqArgs alone (as a means of optimization).\n\n Args:\n seq_args (dict) : Primer3 sequence/desig...
43
false
libnano/primer3-py
designPrimers
31,796
LDU_FT/SpectoLabs/hoverpy/__rmpid
LDU_FT
[ "<BEGIN>\n## `wipe`", "Wipe the bolt database.", " Calling this after HoverPy has been instantiated is\n potentially dangerous. This function is mostly used\n internally for unit tests.\n<END>", "<BEGIN>\n## `simulation`", "Gets / Sets the simulation data.", " If no data is pas...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the __rmpid API. Each 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 __rmpid API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
Remove the PID file on shutdown, unfortunately this may not get called if not given the time to shut down.
"Remove the PID file on shutdown, unfortunately\n this may not get called if not given the time to\n shut down."
24
false
SpectoLabs/hoverpy
__rmpid
31,797
LDU_FT/mcieslik-mctp/papy/add_pipe
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 add_pipe API. 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 add_pipe API. 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...
Adds a pipe (A, ..., N) which is an N-``tuple`` tuple of ``Pipers`` instances. Adding a pipe means to add all the ``Pipers`` and connect them in the specified left to right order. The direction of the edges in the ``DictGraph`` is reversed compared to the left to right data-f...
"Adds a pipe (A, ..., N) which is an N-``tuple`` tuple of ``Pipers`` \n instances. Adding a pipe means to add all the ``Pipers`` and connect \n them in the specified left to right order.\n \n The direction of the edges in the ``DictGraph`` is reversed compared to \n the left to right ...
323
false
mcieslik-mctp/papy
add_pipe
31,798
LDU_FT/neo4j-drivers/neobolt/on_success
LDU_FT
[ "<BEGIN>\n## `watch`", "Quick wrapper for using the Watcher.", " :param logger_name: name of logger to watch\n :param level: minimum log level to show (default INFO)\n :param out: where to send output (default stdout)\n :return: Watcher instance\n<END>", "<BEGIN>\n## `get_user_agent`", "Obtain t...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the on_success API. 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 on_success API. 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...
Called when a SUCCESS message has been received.
"Called when a SUCCESS message has been received."
86
false
neo4j-drivers/neobolt
on_success
31,799
LDU_FT/jaraco/path.py/lines
LDU_FT
[ "<BEGIN>\n## `load`", "If the supplied parameter is a string, assum it's a simple\n pattern.\n<END>", "<BEGIN>\n## `simple_cache`", "Save results for the :meth:'path.using_module' classmethod.\n When Python 3.2 is available, use functools.lru_cache instead.\n<END>", "<BEGIN>\n## `only_newer`", "Wrap...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the lines API. Each 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 lines API. Each 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...
r""" Open this file, read all lines, return them in a list. Optional arguments: `encoding` - The Unicode encoding (or character set) of the file. The default is ``None``, meaning the content of the file is read as 8-bit characters and returned as a l...
"r\"\"\" Open this file, read all lines, return them in a list.\n\n Optional arguments:\n `encoding` - The Unicode encoding (or character set) of\n the file. The default is ``None``, meaning the content\n of the file is read as 8-bit characters and returned\n ...
158
false
jaraco/path.py
lines
31,800
LDU_FT/daboth/pagan/choose_aspect
LDU_FT
[ "<BEGIN>\n## `init_weapon_list`", "Initialize the possible weapon\n combinations.\n<END>", "<BEGIN>\n## `grind_hash_for_colors`", "Extracts information from the hashcode\n to generate different colors. Returns a\n list of colors in (r,g,b) tupels.\n<END>", "<BEGIN>\n## `split_sequence`", "Generat...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the choose_aspect API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the choose_aspect API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
Chooses a style from ASPECTSTYLES based on the decision.
"Chooses a style from ASPECTSTYLES\n based on the decision."
46
false
daboth/pagan
choose_aspect
31,801
LDU_FT/xtream1101/web-wrapper/hover
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 hover API. Each 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 hover API. Each 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...
In selenium, move cursor over an element :element: Object found using driver.find_...("element_class/id/etc")
"In selenium, move cursor over an element\n :element: Object found using driver.find_...(\"element_class/id/etc\")"
39
false
xtream1101/web-wrapper
hover
31,802
LDU_FT/rocky/python-xdis/show_code
LDU_FT
[ "<BEGIN>\n## `disco`", "diassembles and deparses a given code block 'co'\n<END>", "<BEGIN>\n## `disco_loop`", "Disassembles a queue of code objects. If we discover\n another code object which will be found in co_consts, we add\n the new code to the list. Note that the order of code discovery\n is in ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the show_code API. 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 show_code API. 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...
Print details of methods, functions, or code to *file*. If *file* is not provided, the output is printed on stdout.
"Print details of methods, functions, or code to *file*.\n\n If *file* is not provided, the output is printed on stdout."
133
false
rocky/python-xdis
show_code
31,803
LDU_FT/nok/sklearn-porter/export
LDU_FT
[ "<BEGIN>\n## `export`", "Port a trained estimator to the syntax of a chosen programming language.", " Parameters\n ----------\n :param class_name : string\n The name of the class in the returned result.\n :param method_name : string\n The name of the method in t...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the export API. Each 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 export API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Port a trained estimator to the syntax of a chosen programming language. Parameters ---------- :param class_name : string The name of the class in the returned result. :param method_name : string The name of the method in the returned result. :param expor...
"Port a trained estimator to the syntax of a chosen programming language.\n\n Parameters\n ----------\n :param class_name : string\n The name of the class in the returned result.\n :param method_name : string\n The name of the method in the returned result.\n :pa...
197
false
nok/sklearn-porter
export
31,804
LDU_FT/HumanCellAtlas/cloud-blobstore/get_last_modified_date
LDU_FT
[ "<BEGIN>\n## `list`", "Returns an iterator of all blob entries in a bucket that match a given prefix. Do not return any keys that\n contain the delimiter past the\n prefix.\n<END>", "<BEGIN>\n## `delete`", "Deletes an object in a bucket. If the operation definitely did not delete anything, ret...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_last_modified_date API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_last_modified_date API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
Retrieves last modified date for a given key in a given bucket. :param bucket: the bucket the object resides in. :param key: the key of the object for which the last modified date is being retrieved. :return: the last modified date
"Retrieves last modified date for a given key in a given bucket.\n :param bucket: the bucket the object resides in.\n :param key: the key of the object for which the last modified date is being retrieved.\n :return: the last modified date"
59
false
HumanCellAtlas/cloud-blobstore
get_last_modified_date
31,805
LDU_FT/codito/pyqtkeybind/get_keyboard_mapping
LDU_FT
[ "<BEGIN>\n## `bind_global_key`", "An alias for ``bind_key(event_type, ROOT_WINDOW, key_string, cb)``.\n :param event_type: Either 'KeyPress' or 'KeyRelease'.\n :type event_type: str\n :param key_string: A string of the form 'Mod1-Control-a'.\n Namely, a list of zero or more modifier...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_keyboard_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. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_keyboard_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. ...
Return a keyboard mapping cookie that can be used to fetch the table of keysyms in the current X environment. :rtype: xcb.xproto.GetKeyboardMappingCookie
"Return a keyboard mapping cookie that can be used to fetch the table of\n keysyms in the current X environment.\n\n :rtype: xcb.xproto.GetKeyboardMappingCookie"
56
false
codito/pyqtkeybind
get_keyboard_mapping
31,806
LDU_FT/dj-stripe/dj-stripe/add_card
LDU_FT
[ "<BEGIN>\n## `stripe_to_db`", "Convert the raw value to decimal representation.\n<END>", "<BEGIN>\n## `stripe_to_db`", "Convert the raw timestamp value to a DateTime representation.\n<END>", "<BEGIN>\n## `from_request`", "Create, validate and process a WebhookEventTrigger given a Django\n\t\trequest objec...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_card API. 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 add_card API. 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...
Adds a card to this customer's account. :param source: Either a token, like the ones returned by our Stripe.js, or a dictionary containing a user's credit card details. Stripe will automatically validate the card. :type source: string, dict :param set_default: Whether or not to set the source as the customer'...
"Adds a card to this customer's account.\n\n\t\t:param source: Either a token, like the ones returned by our Stripe.js, or a dictionary containing a\n\t\t\tuser's credit card details. Stripe will automatically validate the card.\n\t\t:type source: string, dict\n\t\t:param set_default: Whether or not to set the source a...
300
false
dj-stripe/dj-stripe
add_card
31,807
LDU_FT/aisthesis/pynance/_candlestick_ax
LDU_FT
[ "<BEGIN>\n## `optimize`", "Return parameters for portfolio optimization.", " Parameters\n ----------\n exp_rets : ndarray\n Vector of expected returns for each investment..\n covs : ndarray\n Covariance matrix for the given investments.", " Returns\n ---------\n a : ndarray\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _candlestick_ax API. 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 _candlestick_ax API. 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...
# Alternatively: (but hard to get dates set up properly) plt.xticks(range(len(df.index)), df.index, rotation=45) fplt.candlestick2_ohlc(ax, df.loc[:, 'Open'].values, df.loc[:, 'High'].values, df.loc[:, 'Low'].values, df.loc[:, 'Close'].values, width=0.2)
"# Alternatively: (but hard to get dates set up properly)\n plt.xticks(range(len(df.index)), df.index, rotation=45)\n fplt.candlestick2_ohlc(ax, df.loc[:, 'Open'].values, df.loc[:, 'High'].values, \n df.loc[:, 'Low'].values, df.loc[:, 'Close'].values, width=0.2)"
231
false
aisthesis/pynance
_candlestick_ax
31,808
LDU_FT/azraq27/gini/sort_matches
LDU_FT
[ "<BEGIN>\n## `matches_from_list`", "Returns the members of ``options`` that best matches ``item``. Will prioritize\n exact matches, then filename-style matching, then fuzzy matching. Returns a tuple of item,\n index, match type, and fuzziness (if applicable)", " :item: string to match\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the sort_matches API. 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 sort_matches API. 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...
Sorts a ``list`` of matches best to worst
"Sorts a ``list`` of matches best to worst"
23
false
azraq27/gini
sort_matches
31,809
LDU_FT/opennode/waldur-core/close
LDU_FT
[ "<BEGIN>\n## `subfield_get`", "Verbatim copy from:\n https://github.com/django/django/blob/1.9.13/django/db/models/fields/subclassing.py#L38\n<END>", "<BEGIN>\n## `_preprocess_kwargs`", "Replace generic key related attribute with filters by object_id and content_type fields\n<END>", "<BEGIN>\n## `list`",...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the close API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the close API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
To close alert - run **POST** against */api/alerts/<alert_uuid>/close/*. No data is required. Only users with staff privileges can close alerts.
"To close alert - run **POST** against */api/alerts/<alert_uuid>/close/*. No data is required.\n Only users with staff privileges can close alerts."
526
false
opennode/waldur-core
close
31,810
LDU_FT/hmartiniano/faz/split_task_parameters
LDU_FT
[ "<BEGIN>\n## `_build_graph`", "Produce a dependency graph based on a list\n of tasks produced by the parser.\n<END>", "<BEGIN>\n## `expand_variables`", "Expand variables in the task code.\n Only variables who use the $[<variable name>] format are expanded.\n Variables using the $<vari...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the split_task_parameters 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 split_task_parameters API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Split a string of comma separated words.
"Split a string of comma separated words."
20
false
hmartiniano/faz
split_task_parameters
31,811
LDU_FT/razor-x/scipy-data_fitting/fixed_values
LDU_FT
[ "<BEGIN>\n## `add_symbol`", "Add a symbol with key `name` to `scipy_data_fitting.Model.symbols`.\n Optionally, specify an alternative `string` to pass to [`sympy.Symbol`][1],\n otherwise `name` is used.", " [1]: http://docs.sympy.org/dev/modules/core.html#id4\n<END>", "<BEGIN>\n## `replac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the fixed_values API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the fixed_values API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
A flat tuple of all values corresponding to `scipy_data_fitting.Fit.fixed_parameters` and `scipy_data_fitting.Fit.constants` after applying any prefixes. The values mimic the order of those lists.
"A flat tuple of all values corresponding to `scipy_data_fitting.Fit.fixed_parameters`\n and `scipy_data_fitting.Fit.constants` after applying any prefixes.\n\n The values mimic the order of those lists."
163
false
razor-x/scipy-data_fitting
fixed_values
31,812
LDU_FT/serkanyersen/underscore.py/countBy
LDU_FT
[ "<BEGIN>\n## `obj`", "Returns passed object but if chain method is used\n returns the last processed result\n<END>", "<BEGIN>\n## `_wrap`", "Returns result but ig chain method is used\n returns the object itself so we can chain\n<END>", "<BEGIN>\n## `_toOriginal`", "Pitty attempt to convert ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the countBy API. Each 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 countBy API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
Counts instances of an object that group by a certain criterion. Pass either a string attribute to count by, or a function that returns the criterion.
"Counts instances of an object that group by a certain criterion. Pass\n either a string attribute to count by, or a function that returns the\n criterion."
130
false
serkanyersen/underscore.py
countBy
31,813
LDU_FT/chaoss/grimoirelab-manuscripts/get_agg
LDU_FT
[ "<BEGIN>\n## `overview`", "Compute metrics in the overview section for enriched github issues\n indexes.\n Returns a dictionary. Each key in the dictionary is the name of\n a metric, the value is the value of that metric. Value can be\n a complex object (eg, a time series).", " :param index: inde...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_agg API. Each 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_agg API. Each 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 aggregated value for the metric :return: the value of the metric
"Returns the aggregated value for the metric\n\n :return: the value of the metric"
271
false
chaoss/grimoirelab-manuscripts
get_agg
31,814
LDU_FT/cmap/cmapPy/do_reset_ids
LDU_FT
[ "<BEGIN>\n## `subset_main`", "Separate method from main() in order to make testing easier and to\n enable command-line access.\n<END>", "<BEGIN>\n## `_read_arg`", "If arg is a list with 1 element that corresponds to a valid file path, use\n set_io.grp to read the grp file. Otherwise, check that arg is a...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the do_reset_ids API. 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 do_reset_ids API. 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...
Reset ids in concatenated metadata and data dfs to unique integers and save the old ids in a metadata column. Note that the dataframes are modified in-place. Args: concatenated_meta_df (pandas df) data_df (pandas df) concat_direction (string): 'horiz' or 'vert' Returns: ...
"Reset ids in concatenated metadata and data dfs to unique integers and\n save the old ids in a metadata column.\n\n Note that the dataframes are modified in-place.\n\n Args:\n concatenated_meta_df (pandas df)\n data_df (pandas df)\n concat_direction (string): 'horiz' or 'vert'\n\n Retu...
210
false
cmap/cmapPy
do_reset_ids
31,815
LDU_FT/mgoral/subconvert/formatSub
LDU_FT
[ "<BEGIN>\n## `__parseFormat`", "Actual parser. Please note that time_to is not required to process as not all subtitles\n provide it.\n<END>", "<BEGIN>\n## `createSubtitle`", "Returns a correct 'Subtitle' object from a text given in 'section'. If 'section' cannot\n be parsed, None is returned.\n...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the formatSub API. 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 formatSub API. 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 sub-type specific formatting to GSP formatting. By default formatSub will replace 1-to-1 all occurences of subtitle specific tags with their GSP equivalents. Due to performance reasons it will not parse given 'string' in any other way. That means that it cannot detect exotic situations l...
"Convert sub-type specific formatting to GSP formatting.\n By default formatSub will replace 1-to-1 all occurences of subtitle specific tags with\n their GSP equivalents. Due to performance reasons it will not parse given 'string' in any\n other way. That means that it cannot detect exotic situatio...
50
false
mgoral/subconvert
formatSub
31,816
LDU_FT/blacktop/virustotal-api/_return_response_and_status_code
LDU_FT
[ "<BEGIN>\n## `_return_response_and_status_code`", "Output the requests response content or content as json and status code", " :rtype : dict\n :param response: requests response object\n :param json_results: Should return JSON or raw content\n :return: dict containing the response content and/or the...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _return_response_and_status_code API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its c...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _return_response_and_status_code API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its c...
Output the requests response content or content as json and status code :rtype : dict :param response: requests response object :param json_results: Should return JSON or raw content :return: dict containing the response content and/or the status code with error string.
"Output the requests response content or content as json and status code\n\n :rtype : dict\n :param response: requests response object\n :param json_results: Should return JSON or raw content\n :return: dict containing the response content and/or the status code with error string."
89
false
blacktop/virustotal-api
_return_response_and_status_code
31,817
LDU_FT/blockstack-packages/jsontokens-py/_unpack_token_compact
LDU_FT
[ "<BEGIN>\n## `_unpack_token_compact`", "Unpack a compact-form serialized JWT.\n Returns (header, payload, signature, signing_input) on success\n Raises DecodeError on bad input\n<END>", "<BEGIN>\n## `_unpack_token_json`", "Unpack a JSON-serialized JWT\n Returns (headers, payload, signatures) on succe...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _unpack_token_compact 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 _unpack_token_compact API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Unpack a compact-form serialized JWT. Returns (header, payload, signature, signing_input) on success Raises DecodeError on bad input
"Unpack a compact-form serialized JWT.\n Returns (header, payload, signature, signing_input) on success\n Raises DecodeError on bad input"
32
false
blockstack-packages/jsontokens-py
_unpack_token_compact
31,818
LDU_FT/slaveofcode/pycrawler/extract_js_links
LDU_FT
[ "<BEGIN>\n## `extract_favicon`", "Extracting favicon url from BeautifulSoup object", " :param bs4: `BeautifulSoup`\n :return: `list` List of favicon urls\n<END>", "<BEGIN>\n## `extract_metas`", "Extracting meta tags from BeautifulSoup object", " :param bs4: `BeautifulSoup`\n :return: `list` Li...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the extract_js_links API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the extract_js_links API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Extracting js links from BeautifulSoup object :param bs4: `BeautifulSoup` :return: `list` List of links
"Extracting js links from BeautifulSoup object\n\n :param bs4: `BeautifulSoup`\n :return: `list` List of links"
33
false
slaveofcode/pycrawler
extract_js_links
31,819
LDU_FT/satellogic/telluric/boundless_vrt_doc
LDU_FT
[ "<BEGIN>\n## `join`", "This method takes a list of rasters and returns a raster that is constructed of all of them\n<END>", "<BEGIN>\n## `merge_all`", "Merge a list of rasters, cropping by a region of interest.\n There are cases that the roi is not precise enough for this cases one can use,\n the ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the boundless_vrt_doc API. 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 boundless_vrt_doc API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Make a VRT XML document. Parameters ---------- src_dataset : Dataset The dataset to wrap. background : Dataset, optional A dataset that provides the optional VRT background. NB: this dataset must have the same number of bands as the src_dataset. Returns ------- bytes ...
"Make a VRT XML document.\n Parameters\n ----------\n src_dataset : Dataset\n The dataset to wrap.\n background : Dataset, optional\n A dataset that provides the optional VRT background. NB: this dataset\n must have the same number of bands as the src_dataset.\n Returns\n -------\...
261
false
satellogic/telluric
boundless_vrt_doc
31,820
LDU_FT/NYUCCL/psiTurk/check_auth
LDU_FT
[ "<BEGIN>\n## `check_auth`", "This function is called to check if a username password combination\n is valid.\n<END>", "<BEGIN>\n## `requires_auth`", "Decorator to prompt for user name and password. Useful for data dumps,\n etc. That you don't want to be public.\n<END>", "<BEGIN>\n## `get_...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the check_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 extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the check_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 extrac...
This function is called to check if a username password combination is valid.
"This function is called to check if a username password combination\n is valid."
65
false
NYUCCL/psiTurk
check_auth
31,821
LDU_FT/delph-in/pydelphin/repp
LDU_FT
[ "<BEGIN>\n## `compile`", "Use ACE to compile a grammar.", " Args:\n cfg_path (str): the path to the ACE config file\n out_path (str): the path where the compiled grammar will be\n written\n executable (str, optional): the path to the ACE binary; if\n `None`, the `ac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the repp API. Each 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 repp API. Each 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...
Tokenize with a Regular Expression PreProcessor (REPP). Results are printed directly to stdout. If more programmatic access is desired, the :mod:`delphin.repp` module provides a similar interface. Args: file (str, file): filename, open file, or stream of sentence inputs con...
"Tokenize with a Regular Expression PreProcessor (REPP).\n\n Results are printed directly to stdout. If more programmatic\n access is desired, the :mod:`delphin.repp` module provides a\n similar interface.\n\n Args:\n file (str, file): filename, open file, or stream of sentence\n inputs\n ...
662
false
delph-in/pydelphin
repp
31,822
LDU_FT/ckoepp/TwitterSearch/set_count
LDU_FT
[ "<BEGIN>\n## `set_source_filter`", "Only search for tweets entered via given source", " :param source: String. Name of the source to search for. An example \\\n would be ``source=twitterfeed`` for tweets submitted via TwitterFeed\n :raises: TwitterSearchException\n<END>", "<BEGIN>\n## `ad...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_count API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_count API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
Sets 'count' parameter used to define the number of \ tweets to return per page. Maximum and default value is 100 :param cnt: Integer containing the number of tweets per \ page within a range of 1 to 100 :raises: TwitterSearchException
"Sets 'count' parameter used to define the number of \\\n tweets to return per page. Maximum and default value is 100\n\n :param cnt: Integer containing the number of tweets per \\\n page within a range of 1 to 100\n :raises: TwitterSearchException"
91
false
ckoepp/TwitterSearch
set_count
31,823
LDU_FT/vaab/colour/rgb2hex
LDU_FT
[ "<BEGIN>\n## `hsl2rgb`", "Convert HSL representation towards RGB", " :param h: Hue, position around the chromatic circle (h=1 equiv h=0)\n :param s: Saturation, color saturation (0=full gray, 1=full color)\n :param l: Ligthness, Overhaul lightness (0=full black, 1=full white)\n :rtype: 3-uple for RG...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the rgb2hex API. Each 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 rgb2hex API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
Transform RGB tuple to hex RGB representation :param rgb: RGB 3-uple of float between 0 and 1 :rtype: 3 hex char or 6 hex char string representation Usage ----- >>> from colour import rgb2hex >>> rgb2hex((0.0,1.0,0.0)) '#0f0' Rounding try to be as natural as possible: >>> rgb2h...
"Transform RGB tuple to hex RGB representation\n\n :param rgb: RGB 3-uple of float between 0 and 1\n :rtype: 3 hex char or 6 hex char string representation\n\n Usage\n -----\n\n >>> from colour import rgb2hex\n\n >>> rgb2hex((0.0,1.0,0.0))\n '#0f0'\n\n Rounding try to be as natural as possible:\...
99
false
vaab/colour
rgb2hex
31,824
LDU_FT/jeffbuttars/upkg/installed_list
LDU_FT
[ "<BEGIN>\n## `exec`", "todo: Docstring for exec", " :param args: arg description\n :type args: type description\n :return:\n :rtype:\n<END>", "<BEGIN>\n## `exec`", "todo: Docstring for exec", " :param args: arg description\n :type args: type description\n :...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the installed_list API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the installed_list API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
todo: Docstring for list :return: :rtype:
"todo: Docstring for list\n :return:\n :rtype:"
76
false
jeffbuttars/upkg
installed_list
31,825
LDU_FT/internetarchive/warc/_read_file_header
LDU_FT
[ "<BEGIN>\n## `open`", "Shorthand for WARCFile(filename, mode).", " Auto detects file and opens it.\n<END>", "<BEGIN>\n## `init_defaults`", "Initializes important headers to default values, if not already specified.", " The WARC-Record-ID header is set to a newly generated UUID.\n The WARC...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _read_file_header API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _read_file_header API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Reads out the file header for the arc file. If version was not provided, this will autopopulate it.
"Reads out the file header for the arc file. If version was\n not provided, this will autopopulate it."
41
false
internetarchive/warc
_read_file_header
31,826
LDU_FT/edeposit/edeposit.amqp.harvester/name_to_vector
LDU_FT
[ "<BEGIN>\n## `save_cache`", "Save cahce to the disk.", " Args:\n cache (set): Set with cached data.\n<END>", "<BEGIN>\n## `load_cache`", "Load cache from the disk.", " Return:\n set: Deserialized data from disk.\n<END>", "<BEGIN>\n## `filter_publication`", "Deduplication function, ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the name_to_vector API. 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 name_to_vector API. 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...
Convert `name` to the ASCII vector. Example: >>> name_to_vector("ing. Franta Putšálek") ['putsalek', 'franta', 'ing'] Args: name (str): Name which will be vectorized. Returns: list: Vector created from name.
"Convert `name` to the ASCII vector.\n\n Example:\n >>> name_to_vector(\"ing. Franta Putšálek\")\n ['putsalek', 'franta', 'ing']\n\n Args:\n name (str): Name which will be vectorized.\n\n Returns:\n list: Vector created from name."
303
false
edeposit/edeposit.amqp.harvester
name_to_vector
31,827
LDU_FT/project-ncl/pnc-cli/build_set_raw
LDU_FT
[ "<BEGIN>\n## `get_environment`", "Get a specific Environment by name or ID\n<END>", "<BEGIN>\n## `create_new`", "Creates a new License", " This method makes a synchronous HTTP request by default. To make an\n asynchronous HTTP request, please define a `callback` function\n to be invoked...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the build_set_raw API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the build_set_raw API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
Start a build of the given BuildConfigurationSet
"Start a build of the given BuildConfigurationSet"
527
false
project-ncl/pnc-cli
build_set_raw
31,828
LDU_FT/scot-dev/scot/get_connectivity
LDU_FT
[ "<BEGIN>\n## `ignore_patterns`", "Function that can be used as copytree() ignore parameter.", " Patterns is a sequence of glob-style patterns\n that are used to exclude files\n<END>", "<BEGIN>\n## `copytree`", "Recursively copy a directory tree using copy2().", " The destination directory must no...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_connectivity API. 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_connectivity API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Calculate spectral connectivity measure. Parameters ---------- measure_name : str Name of the connectivity measure to calculate. See :class:`Connectivity` for supported measures. plot : {False, None, Figure object}, optional Whether and where to plot the connecti...
"Calculate spectral connectivity measure.\n\n Parameters\n ----------\n measure_name : str\n Name of the connectivity measure to calculate. See :class:`Connectivity` for supported measures.\n plot : {False, None, Figure object}, optional\n Whether and where to plot the ...
381
false
scot-dev/scot
get_connectivity
31,829
LDU_FT/doconix/django-mako-plus/convert_date
LDU_FT
[ "<BEGIN>\n## `run_command`", "Runs a command, piping all output to the DMP log.\n The args should be separate arguments so paths and subcommands can have spaces in them:", " ret = run_command('ls', '-l', '/Users/me/My Documents')\n print(ret.code)\n print(ret.stdout)\n print(ret.s...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the convert_date API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the convert_date API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
Converts to datetime.date: '', '-', None convert to parameter default The first matching format in settings.DATE_INPUT_FORMATS converts to datetime
"Converts to datetime.date:\n '', '-', None convert to parameter default\n The first matching format in settings.DATE_INPUT_FORMATS converts to datetime"
207
false
doconix/django-mako-plus
convert_date
31,830
LDU_FT/SethMMorton/natsort/natsort_keygen
LDU_FT
[ "<BEGIN>\n## `fast_float`", "Convert a string to a float quickly, return input as-is if not possible.", " We don't need to accept all input that the real fast_int accepts because\n natsort is controlling what is passed to this function.", " Parameters\n ----------\n x : str\n String to a...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the natsort_keygen API. 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 natsort_keygen API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
Generate a key to sort strings and numbers naturally. This key is designed for use as the `key` argument to functions such as the `sorted` builtin. The user may customize the generated function with the arguments to `natsort_keygen`, including an optional `key` function. Parameters ------...
"Generate a key to sort strings and numbers naturally.\n\n This key is designed for use as the `key` argument to\n functions such as the `sorted` builtin.\n\n The user may customize the generated function with the\n arguments to `natsort_keygen`, including an optional\n `key` function.\n\n Parameters\...
190
false
SethMMorton/natsort
natsort_keygen
31,831
LDU_FT/JensAstrup/pyOutlook/move_into
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 move_into API. 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 move_into API. 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...
Move the Folder into a different folder. This makes the Folder provided a child folder of the destination_folder. Raises: AuthError: Raised if Outlook returns a 401, generally caused by an invalid or expired access token. Args: destination_folder: A :class:`Folder <pyO...
"Move the Folder into a different folder.\n\n This makes the Folder provided a child folder of the destination_folder.\n\n Raises:\n AuthError: Raised if Outlook returns a 401, generally caused by an invalid or expired access token.\n\n Args:\n destination_folder: A :class:`Fo...
99
false
JensAstrup/pyOutlook
move_into
31,832
LDU_FT/jimzhan/pyx/timeit
LDU_FT
[ "<BEGIN>\n## `get_version`", "Derives a PEP386-compliant version number from VERSION.\n<END>", "<BEGIN>\n## `attr`", "Decorator that add attributes into func.", " Added attributes can be access outside via function's `func_dict` property.\n<END>", "<BEGIN>\n## `timeit`", "Decorator that logs the cost...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the timeit API. Each 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 timeit API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Decorator that logs the cost time of a function.
"Decorator that logs the cost time of a function."
41
false
jimzhan/pyx
timeit
31,833
LDU_FT/striglia/pyramid_swagger/get_op_for_request
LDU_FT
[ "<BEGIN>\n## `includeme`", ":type config: :class:`pyramid.config.Configurator`\n<END>", "<BEGIN>\n## `validate_swagger_schema`", "Validate the structure of Swagger schemas against the spec.", " **Valid only for Swagger v1.2 spec**", " Note: It is possible that resource_listing is not present in\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_op_for_request API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_op_for_request API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
Find out which operation in the Swagger schema corresponds to the given pyramid request. :type request: :class:`pyramid.request.Request` :type route_info: dict (usually has 'match' and 'route' keys) :type spec: :class:`bravado_core.spec.Spec` :rtype: :class:`bravado_core.operation.Operation` :r...
"Find out which operation in the Swagger schema corresponds to the given\n pyramid request.\n\n :type request: :class:`pyramid.request.Request`\n :type route_info: dict (usually has 'match' and 'route' keys)\n :type spec: :class:`bravado_core.spec.Spec`\n :rtype: :class:`bravado_core.operation.Operation`...
101
false
striglia/pyramid_swagger
get_op_for_request
31,834
LDU_FT/grycap/RADL/p_configure_sentence
LDU_FT
[ "<BEGIN>\n## `parse_radl`", "Parse a RADL document in JSON.", " Args.:\n - data(str or list): document to parse.", " Return(RADL): RADL object.\n<END>", "<BEGIN>\n## `radlToSimple`", "Return a list of maps whose values are only other maps or lists.\n<END>", "<BEGIN>\n## `getValue`", "Return t...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the p_configure_sentence 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 p_configure_sentence API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
configure_sentence : CONFIGURE VAR | CONFIGURE VAR LPAREN RECIPE_BEGIN recipe RECIPE_END RPAREN
"configure_sentence : CONFIGURE VAR\n | CONFIGURE VAR LPAREN RECIPE_BEGIN recipe RECIPE_END RPAREN"
121
false
grycap/RADL
p_configure_sentence
31,835
LDU_FT/PyFilesystem/pyfilesystem2/seek
LDU_FT
[ "<BEGIN>\n## `install`", "Install an opener.", " Arguments:\n opener (`Opener`): an `Opener` instance, or a callable that\n returns an opener instance.", " Note:\n May be used as a class decorator. For example::\n registry = Registry()\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the seek API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the seek API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
Change stream position. Change the stream position to the given byte offset. The offset is interpreted relative to the position indicated by ``whence``. Arguments: offset (int): the offset to the new position, in bytes. whence (int): the position reference. Poss...
"Change stream position.\n\n Change the stream position to the given byte offset. The\n offset is interpreted relative to the position indicated by\n ``whence``.\n\n Arguments:\n offset (int): the offset to the new position, in bytes.\n whence (int): the position refere...
320
false
PyFilesystem/pyfilesystem2
seek
31,836
LDU_FT/openid/python-openid/txn_storeAssociation
LDU_FT
[ "<BEGIN>\n## `queryURL`", "Build a URL to query the proxy resolver.", " @param xri: An XRI to resolve.\n @type xri: unicode", " @param service_type: The service type to resolve, if you desire\n service endpoint selection. A service type is a URI.\n @type service_type: s...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the txn_storeAssociation 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 txn_storeAssociation API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Set the association for the server URL. Association -> NoneType
"Set the association for the server URL.\n\n Association -> NoneType"
828
false
openid/python-openid
txn_storeAssociation
31,837
LDU_FT/mezz64/pyHik/add_update_callback
LDU_FT
[ "<BEGIN>\n## `_set_motion_detection`", "Set desired motion detection state on camera\n<END>", "<BEGIN>\n## `add_update_callback`", "Register as callback for when a matching device sensor changes.\n<END>", "<BEGIN>\n## `initialize`", "Initialize deviceInfo and available events.\n<END>", "<BEGIN>\n## `get...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_update_callback API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_update_callback API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
Register as callback for when a matching device sensor changes.
"Register as callback for when a matching device sensor changes."
14
false
mezz64/pyHik
add_update_callback
31,838
LDU_FT/mailgun/talon/has_signature
LDU_FT
[ "<BEGIN>\n## `safe_format`", "Helper: formats string with any combination of bytestrings/unicode\n strings without raising exceptions\n<END>", "<BEGIN>\n## `to_unicode`", "Safely returns a unicode version of a given string\n >>> utils.to_unicode('привет')\n u'привет'\n >>> utils.to_unicode(u'п...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the has_signature API. 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 has_signature API. 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...
Checks if the body has signature. Returns True or False.
"Checks if the body has signature. Returns True or False."
140
false
mailgun/talon
has_signature
31,839
LDU_FT/erikrose/parsimonious/visit
LDU_FT
[ "<BEGIN>\n## `visit`", "Walk a parse tree, transforming it into another representation.", " Recursively descend a parse tree, dispatching to the method named after\n the rule in the :class:`~parsimonious.grammar.Grammar` that produced\n each node. If, for example, a rule was... ::", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the visit API. Each 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 visit API. Each 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...
Walk a parse tree, transforming it into another representation. Recursively descend a parse tree, dispatching to the method named after the rule in the :class:`~parsimonious.grammar.Grammar` that produced each node. If, for example, a rule was... :: bold = '<b>' ...the ``v...
"Walk a parse tree, transforming it into another representation.\n\n Recursively descend a parse tree, dispatching to the method named after\n the rule in the :class:`~parsimonious.grammar.Grammar` that produced\n each node. If, for example, a rule was... ::\n\n bold = '<b>'\n\n ....
41
false
erikrose/parsimonious
visit
31,840
LDU_FT/radjkarl/imgProcessor/polynomial
LDU_FT
[ "<BEGIN>\n## `polynomial`", "replace all masked values\r\n calculate flatField from 2d-polynomal fit filling\r\n all high gradient areas within averaged fit-image\r", " returns flatField, average background level, fitted image, valid indices mask\n<END>", "<BEGIN>\n## `exampleSignals`", "std ... st...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the polynomial API. 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 polynomial API. 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...
replace all masked values calculate flatField from 2d-polynomal fit filling all high gradient areas within averaged fit-image returns flatField, average background level, fitted image, valid indices mask
"replace all masked values\r\n calculate flatField from 2d-polynomal fit filling\r\n all high gradient areas within averaged fit-image\r\n\r\n returns flatField, average background level, fitted image, valid indices mask"
462
false
radjkarl/imgProcessor
polynomial
31,841
LDU_FT/secdev/scapy/register_pubkey
LDU_FT
[ "<BEGIN>\n## `_get_npcap_config`", "Get a Npcap parameter matching key in the registry.", " List:\n AdminOnly, DefaultFilterSettings, DltNull, Dot11Adapters, Dot11Support\n LoopbackAdapter, LoopbackSupport, NdisImPlatformBindingOptions, VlanSupport\n WinPcapCompatible\n<END>", "<BEGIN>\n## `_exec_...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the register_pubkey API. 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 register_pubkey API. 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...
XXX Check that the pubkey received is in the group.
"XXX Check that the pubkey received is in the group."
1,329
true
secdev/scapy
register_pubkey
31,842
LDU_FT/vecnet/vecnet.openmalaria/attribute
LDU_FT
[ "<BEGIN>\n## `get_percentage_from_prob`", "Converted probability of being treated to total percentage of clinical cases treated\n<END>", "<BEGIN>\n## `get_schema_version_from_xml`", "Get schemaVersion attribute from OpenMalaria scenario file\n xml - open file or content of xml document to be processed\n<EN...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the attribute API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the attribute API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
Decorator used to declare that property is a tag attribute
"Decorator used to declare that property is a tag attribute"
42
false
vecnet/vecnet.openmalaria
attribute
31,843
LDU_FT/Hypex/hyppy/requires_api_auth
LDU_FT
[ "<BEGIN>\n## `get_coord_box`", "Get the square boundary coordinates for a given centre and distance\n<END>", "<BEGIN>\n## `fleet_ttb`", "Calculate the time taken to construct a given fleet\n<END>", "<BEGIN>\n## `requires_password_auth`", "Decorator for HAPI methods that requires the instance to be authent...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the requires_api_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...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the requires_api_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...
Decorator for HAPI methods that requires the instance to be authenticated with a HAPI token
"Decorator for HAPI methods that requires the instance to be authenticated with a HAPI token"
10
false
Hypex/hyppy
requires_api_auth
31,844
LDU_FT/svenkreiss/pysparkling/dump
LDU_FT
[ "<BEGIN>\n## `get_fs`", "Find the file system implementation for this path.\n<END>", "<BEGIN>\n## `awaitTermination`", "Wait for context to stop.", " :param float timeout: in seconds\n<END>", "<BEGIN>\n## `binaryRecordsStream`", "Monitor a directory and process all binary files.", " File...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the dump API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the dump API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
Writes a stream to a file. :param stream: A BytesIO instance. ``bytes`` are also possible and are converted to BytesIO. :rtype: File
"Writes a stream to a file.\n\n :param stream:\n A BytesIO instance. ``bytes`` are also possible and are converted\n to BytesIO.\n\n :rtype: File"
109
false
svenkreiss/pysparkling
dump
31,845
LDU_FT/daknuett/py_register_machine2/do_cycle
LDU_FT
[ "<BEGIN>\n## `int_to_bytes`", ".. _int_to_bytes:", "\tConverts the ``int`` ``int_`` to a ``bytes`` object.\n\t``len(result) == width``.", "\tIf ``width`` is None, a number of bytes that is able to hold the\n\tnumber is choosen, depending on ``int_.bit_length()``.", "\tSee also: bytes_to_int_\n<END>", "<BE...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the do_cycle API. 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 do_cycle API. 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...
.. _do_cycle: Run one clock cycle of the Processor_, works according to processor_phases_. Then all ``on_cycle_callbacks`` are executed and the internal Registers are updated. If ``f_cpu`` is set and the execution took not long enough, ``do_cycle`` will wait until the right time for the next cycle. If `...
".. _do_cycle:\n\n\t\tRun one clock cycle of the Processor_,\n\t\tworks according to processor_phases_.\n\n\t\tThen all ``on_cycle_callbacks`` are executed and the internal Registers are updated.\n\n\t\tIf ``f_cpu`` is set and the execution took not long enough,\n\t\t``do_cycle`` will wait until the right time for the ...
154
false
daknuett/py_register_machine2
do_cycle
31,846
LDU_FT/kankiri/pabiana/setup
LDU_FT
[ "<BEGIN>\n## `read_interfaces`", "Reads an Interfaces JSON file at the given path and returns it as a dictionary.\n<END>", "<BEGIN>\n## `multiple`", "Returns a set of strings to be used as Slots with Pabianas default Clock.", "\tArgs:\n\t\tlayer: The layer in the hierarchy this Area is placed in.\n\t\t\tTec...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the setup API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the setup API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
Sets up this Node with the specified Interfaces before it is run. Args: puller: Indication if a Puller Interface should be created. subscriptions: Collection of the Subscriber Interfaces to be created and their Slots.
"Sets up this Node with the specified Interfaces before it is run.\n\n\t\tArgs:\n\t\t\tpuller: Indication if a Puller Interface should be created.\n\t\t\tsubscriptions: Collection of the Subscriber Interfaces to be created and their Slots."
20
false
kankiri/pabiana
setup
31,847
LDU_FT/CenturyLinkCloud/clc-python-sdk/SetCredentials
LDU_FT
[ "<BEGIN>\n## `SetCredentials`", "Establish API username and password associated with APIv2 commands.\n<END>", "<BEGIN>\n## `get_session`", "Start a session with the given parameters", "\tUse instead of SetCredentials if you need a session object to avoid the use of global credentials.", "\tReturns a sessi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the SetCredentials API. 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 SetCredentials API. 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...
Establish API username and password associated with APIv2 commands.
"Establish API username and password associated with APIv2 commands."
402
false
CenturyLinkCloud/clc-python-sdk
SetCredentials
31,848
LDU_FT/mdiener/grace/p_multiplicative_expr
LDU_FT
[ "<BEGIN>\n## `visit`", "Returns a generator that walks all children recursively.\n<END>", "<BEGIN>\n## `list_js_files`", "Generator for all JavaScript files in the directory, recursively", " >>> 'examples/module.js' in list(list_js_files('examples'))\n True\n<END>", "<BEGIN>\n## `save_file`", "Sav...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the p_multiplicative_expr 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 p_multiplicative_expr API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
multiplicative_expr : unary_expr | multiplicative_expr MULT unary_expr | multiplicative_expr DIV unary_expr | multiplicative_expr MOD unary_expr
"multiplicative_expr : unary_expr\n | multiplicative_expr MULT unary_expr\n | multiplicative_expr DIV unary_expr\n | multiplicative_expr MOD unary_expr"
188
false
mdiener/grace
p_multiplicative_expr
31,849
LDU_FT/kkroening/ffmpeg-python/convert_kwargs_to_cmd_line_args
LDU_FT
[ "<BEGIN>\n## `get_args`", "Build command-line arguments to be passed to ffmpeg.\n<END>", "<BEGIN>\n## `compile`", "Build command-line for invoking ffmpeg.", " The :meth:`run` function uses this to build the commnad line\n arguments and should work in most cases, but calling this function\n directly...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the convert_kwargs_to_cmd_line_args API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its co...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the convert_kwargs_to_cmd_line_args API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its co...
Helper function to build command line arguments out of dict.
"Helper function to build command line arguments out of dict."
149
false
kkroening/ffmpeg-python
convert_kwargs_to_cmd_line_args
31,850
LDU_FT/20c/grainy/get_permissions
LDU_FT
[ "<BEGIN>\n## `int_flags`", "Converts string permission flags into integer permission flags as\n specified in const.PERM_STRING_MAP\n Arguments:\n - flags <str>: one or more flags\n For example: \"crud\" or \"ru\" or \"r\"\n - mapper <list=const.PERM_STRING_MAP>: a list containing tu...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_permissions API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_permissions API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
Returns the permissions level for the specified namespace Arguments: namespace -- permissioning namespace (str) explicit -- require explicitly set permissions to the provided namespace Returns: int -- permissioning flags
"Returns the permissions level for the specified namespace\n\n Arguments:\n\n namespace -- permissioning namespace (str)\n explicit -- require explicitly set permissions to the provided namespace\n\n Returns:\n\n int -- permissioning flags"
47
false
20c/grainy
get_permissions
31,851
LDU_FT/jay-johnson/network-pipeline/process_icmp_frame
LDU_FT
[ "<BEGIN>\n## `publish_processed_network_packets`", "# Redis/RabbitMQ/SQS messaging endpoints for pub-sub\n routing_key = ev(\"PUBLISH_EXCHANGE\",\n \"reporting.accounts\")\n queue_name = ev(\"PUBLISH_QUEUE\",\n \"reporting.accounts\")\n auth_url = ev(\"PUB_BROKER_UR...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the process_icmp_frame API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the process_icmp_frame API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
process_icmp_frame Convert a complex nested json dictionary to a flattened dictionary and capture all unique keys for table construction :param id: key for this msg :param msg: icmp frame for packet
"process_icmp_frame\n\n Convert a complex nested json dictionary\n to a flattened dictionary and capture\n all unique keys for table construction\n\n :param id: key for this msg\n :param msg: icmp frame for packet"
140
false
jay-johnson/network-pipeline
process_icmp_frame
31,852
LDU_FT/mmerickel/subparse/add_command
LDU_FT
[ "<BEGIN>\n## `parse_docstring`", "Parse a PEP-257 docstring.", " SHORT -> blank line -> LONG\n<END>", "<BEGIN>\n## `add_command`", "Attach a command directly to the :class:`CLI` object.\n<END>", "<BEGIN>\n## `command`", "Attach a command to the current :class:`CLI` object.", " The function s...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_command API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_command API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
Attach a command directly to the :class:`CLI` object.
"Attach a command directly to the :class:`CLI` object."
19
false
mmerickel/subparse
add_command
31,853
LDU_FT/sprockets/sprockets-influxdb/_maybe_warn_about_buffer_size
LDU_FT
[ "<BEGIN>\n## `add_measurement`", "Add measurement data to the submission buffer for eventual writing to\n InfluxDB.", " Example:", " .. code:: python", " import sprockets_influxdb as influxdb", " measurement = influxdb.Measurement('example', 'measurement-name')\n measurement....
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _maybe_warn_about_buffer_size 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 _maybe_warn_about_buffer_size API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conc...
Check the buffer size and issue a warning if it's too large and a warning has not been issued for more than 60 seconds.
"Check the buffer size and issue a warning if it's too large and\n a warning has not been issued for more than 60 seconds."
93
false
sprockets/sprockets-influxdb
_maybe_warn_about_buffer_size
31,854
LDU_FT/6809/dragonlib/ascii_listing2program_dump
LDU_FT
[ "<BEGIN>\n## `bin2hexline`", "Format binary data to a Hex-Editor like format...", " >>> data = bytearray([i for i in range(256)])\n >>> print('\\\\n'.join(bin2hexline(data, width=16)))\n 0000 00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f ................\n 0016 10 11 12 13 14 15 16 17 18 19 1a 1b ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the ascii_listing2program_dump API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclus...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the ascii_listing2program_dump API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclus...
convert a ASCII BASIC program listing into tokens. This tokens list can be used to insert it into the Emulator RAM.
"convert a ASCII BASIC program listing into tokens.\n This tokens list can be used to insert it into the\n Emulator RAM."
63
false
6809/dragonlib
ascii_listing2program_dump
31,855
LDU_FT/nyaruka/smartmin/dispatch
LDU_FT
[ "<BEGIN>\n## `_read_requirements`", "Parses a file for pip installation requirements.\n<END>", "<BEGIN>\n## `get_list_class`", "Returns the class to use for the passed in list. We just build something up\n from the object type for the list.\n<END>", "<BEGIN>\n## `format_datetime`", "Formats a date, co...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the dispatch API. 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 dispatch API. 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...
Overloaded to check permissions if appropriate
"Overloaded to check permissions if appropriate"
118
false
nyaruka/smartmin
dispatch
31,856
LDU_FT/merll/docker-fabric/list_networks
LDU_FT
[ "<BEGIN>\n## `reset_socat`", "Finds and closes all processes of `socat`.", " :param use_sudo: Use `sudo` command. As Docker-Fabric does not run `socat` with `sudo`, this is by default set to\n ``False``. Setting it to ``True`` could unintentionally remove instances from other users.\n :type use_sudo:...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the list_networks API. 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 list_networks API. 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...
Lists networks on the Docker remote host, similar to ``docker network ls``. :param full_ids: Shows the full network ids. When ``False`` (default) only shows the first 12 characters. :type full_ids: bool
"Lists networks on the Docker remote host, similar to ``docker network ls``.\n\n :param full_ids: Shows the full network ids. When ``False`` (default) only shows the first 12 characters.\n :type full_ids: bool"
157
false
merll/docker-fabric
list_networks
31,857
LDU_FT/rosshamish/catanlog/log_game_start
LDU_FT
[ "<BEGIN>\n## `logpath`", "Return the logfile path and filename as a string.", " The file with name self.logpath() is written to on flush().", " The filename contains the log's timestamp and the names of players in the game.\n The logpath changes when reset() or _set_players() are called, ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the log_game_start API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the log_game_start API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
Begin a game. Erase the log, set the timestamp, set the players, and write the log header. The robber is assumed to start on the desert (or off-board). :param players: iterable of catan.game.Player objects :param terrain: list of 19 catan.board.Terrain objects. :param numbers:...
"Begin a game.\n\n Erase the log, set the timestamp, set the players, and write the log header.\n\n The robber is assumed to start on the desert (or off-board).\n\n :param players: iterable of catan.game.Player objects\n :param terrain: list of 19 catan.board.Terrain objects.\n :param...
47
false
rosshamish/catanlog
log_game_start
31,858
LDU_FT/ThreatResponse/margaritashotgun/start_tunnel
LDU_FT
[ "<BEGIN>\n## `configure`", "Connect paramiko transport", " :type auth: :py:class`margaritashotgun.auth.AuthMethods`\n :param auth: authentication object\n :type address: str\n :param address: remote server ip or hostname\n :type port: int\n :param port: remote server po...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the start_tunnel API. 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 start_tunnel API. 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...
Start ssh forward tunnel :type local_port: int :param local_port: local port binding for ssh tunnel :type remote_address: str :param remote_address: remote tunnel endpoint bind address :type remote_port: int :param remote_port: remote tunnel endpoint bind port
"Start ssh forward tunnel\n\n :type local_port: int\n :param local_port: local port binding for ssh tunnel\n :type remote_address: str\n :param remote_address: remote tunnel endpoint bind address\n :type remote_port: int\n :param remote_port: remote tunnel endpoint bind port"
134
false
ThreatResponse/margaritashotgun
start_tunnel
31,859
LDU_FT/singingwolfboy/flask-dance/make_authentiq_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_authentiq_blueprint 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 make_authentiq_blueprint API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio...
Make a blueprint for authenticating with authentiq using OAuth 2. This requires a client ID and client secret from authentiq. You should either pass them to this constructor, or make sure that your Flask application config defines them, using the variables :envvar:`AUTHENTIQ_OAUTH_CLIENT_ID` and :envvar...
"Make a blueprint for authenticating with authentiq using OAuth 2. This requires\n a client ID and client secret from authentiq. You should either pass them to\n this constructor, or make sure that your Flask application config defines\n them, using the variables :envvar:`AUTHENTIQ_OAUTH_CLIENT_ID` and\n :e...
123
false
singingwolfboy/flask-dance
make_authentiq_blueprint
31,860
LDU_FT/OCHA-DAP/hdx-python-utilities/hash_stream
LDU_FT
[ "<BEGIN>\n## `raisefrom`", "Call Python 3 raise from or emulate it for Python 2", " Args:\n exc_type (Any): Type of Exception\n message (str): Error message to display\n exc (BaseException): original exception", " Returns:\n None\n<END>", "<BEGIN>\n## `get_session`", "Set...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the hash_stream API. 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 hash_stream API. 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...
Stream file from url and hash it using MD5. Must call setup method first. Args: url (str): URL to download Returns: str: MD5 hash of file
"Stream file from url and hash it using MD5. Must call setup method first.\n\n Args:\n url (str): URL to download\n\n Returns:\n str: MD5 hash of file"
232
false
OCHA-DAP/hdx-python-utilities
hash_stream
31,861
LDU_FT/andrenarchy/krypy/angles
LDU_FT
[ "<BEGIN>\n## `find_common_dtype`", "Returns common dtype of numpy and scipy objects.", " Recognizes ndarray, spmatrix and LinearOperator. All other objects are\n ignored (most notably None).\n<END>", "<BEGIN>\n## `shape_vecs`", "Reshape all ndarrays with ``shape==(n,)`` to ``shape==(n,1)``.", " R...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the angles API. Each 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 angles API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Principal angles between two subspaces. This algorithm is based on algorithm 6.2 in `Knyazev, Argentati. Principal angles between subspaces in an A-based scalar product: algorithms and perturbation estimates. 2002.` This algorithm can also handle small angles (in contrast to the naive cosine-based svd ...
"Principal angles between two subspaces.\n\n This algorithm is based on algorithm 6.2 in `Knyazev, Argentati. Principal\n angles between subspaces in an A-based scalar product: algorithms and\n perturbation estimates. 2002.` This algorithm can also handle small angles\n (in contrast to the naive cosine-base...
194
false
andrenarchy/krypy
angles
31,862
LDU_FT/danilobellini/audiolazy/lowpass
LDU_FT
[ "<BEGIN>\n## `deprecate`", "A deprecation warning emmiter as a decorator.\n<END>", "<BEGIN>\n## `get_module_names`", "All names in the package directory that matches the given glob, without\n their extension. Repeated names should appear only once.\n<END>", "<BEGIN>\n## `get_modules`", "List of module ob...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the lowpass API. Each 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 lowpass API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
This strategy uses an exponential approximation for cut-off frequency calculation, found by matching the single pole and single zero Laplace highpass filter and mirroring the resulting filter to get a lowpass.
"This strategy uses an exponential approximation for cut-off frequency\n calculation, found by matching the single pole and single zero Laplace\n highpass filter and mirroring the resulting filter to get a lowpass."
578
false
danilobellini/audiolazy
lowpass
31,863
LDU_FT/proycon/flat/initdoc
LDU_FT
[ "<BEGIN>\n## `pub_view`", "The initial view, does not provide the document content yet\n<END>", "<BEGIN>\n## `checkversion`", "Checks foliadocserve version, returns 1 if the document is newer than the library, -1 if it is older, 0 if it is equal\n<END>", "<BEGIN>\n## `view`", "The initial view, does not p...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the initdoc API. Each 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 initdoc API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
Initialise a document (not invoked directly)
"Initialise a document (not invoked directly)"
12
false
proycon/flat
initdoc
31,864
LDU_FT/MozillaSecurity/laniakea/list_devices
LDU_FT
[ "<BEGIN>\n## `list_tags`", "List all used macros within a UserData script.", " :param userdata: The UserData script.\n :type userdata: str\n<END>", "<BEGIN>\n## `handle_tags`", "Insert macro values or auto export variables in UserData scripts.", " :param userdata: The UserData script....
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the list_devices API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the list_devices API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
Retrieve list of devices in a project by one of more conditions.
"Retrieve list of devices in a project by one of more conditions."
136
false
MozillaSecurity/laniakea
list_devices
31,865
LDU_FT/ioos/compliance-checker/check_metadata_link
LDU_FT
[ "<BEGIN>\n## `is_opendap`", "Returns True if the URL is a valid OPeNDAP URL", " :param str url: URL for a remote OPeNDAP endpoint\n<END>", "<BEGIN>\n## `datetime_is_iso`", "Attempts to parse a date formatted in ISO 8601 format\n<END>", "<BEGIN>\n## `kvp_convert`", "Converts a list of string attribute...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the check_metadata_link 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 check_metadata_link 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...
Checks if metadata link is formed in a rational manner :param netCDF4.Dataset ds: An open netCDF dataset
"Checks if metadata link is formed in a rational manner\n\n :param netCDF4.Dataset ds: An open netCDF dataset"
624
false
ioos/compliance-checker
check_metadata_link
31,866
LDU_FT/subdownloader/subdownloader/do_po
LDU_FT
[ "<BEGIN>\n## `do_po`", "Update all po files with the data in the pot reference file.\n<END>", "<BEGIN>\n## `configuration_get_default_folder`", "Return the default folder where user-specific data is stored.\n This depends of the system on which Python is running,\n :return: path to the user-specific con...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the do_po API. Each 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 do_po API. Each 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...
Update all po files with the data in the pot reference file.
"Update all po files with the data in the pot reference file."
87
false
subdownloader/subdownloader
do_po
31,867
LDU_FT/vbwagner/ctypescrypto/update
LDU_FT
[ "<BEGIN>\n## `digest`", "Method digest is redefined to return keyed MAC value instead of\n just digest.\n<END>", "<BEGIN>\n## `bytes`", "Returns num bytes of cryptographically strong pseudo-random\n bytes. If checkc_result is True, raises error if PRNG is not\n seeded enough\n<END>", "<BEGIN>\n...
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 ...
Hashes given byte string @param data - string to hash @param length - if not specifed, entire string is hashed, otherwise only first length bytes
"Hashes given byte string\n\n @param data - string to hash\n @param length - if not specifed, entire string is hashed,\n otherwise only first length bytes"
119
false
vbwagner/ctypescrypto
update
31,868
LDU_FT/tkaemming/django-subdomains/urljoin
LDU_FT
[ "<BEGIN>\n## `url`", "Resolves a URL in a template, using subdomain-based URL resolution.", " If no subdomain is provided and a ``request`` is in the template context\n when rendering, the URL will be resolved relative to the current request's\n subdomain. If no ``request`` is provided, the URL will be...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the urljoin API. Each 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 urljoin API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
Joins a domain, path and scheme part together, returning a full URL. :param domain: the domain, e.g. ``example.com`` :param path: the path part of the URL, e.g. ``/example/`` :param scheme: the scheme part of the URL, e.g. ``http``, defaulting to the value of ``settings.DEFAULT_URL_SCHEME`` :re...
"Joins a domain, path and scheme part together, returning a full URL.\n\n :param domain: the domain, e.g. ``example.com``\n :param path: the path part of the URL, e.g. ``/example/``\n :param scheme: the scheme part of the URL, e.g. ``http``, defaulting to the\n value of ``settings.DEFAULT_URL_SCHEME``\n...
18
false
tkaemming/django-subdomains
urljoin
31,869
LDU_FT/PSPC-SPAC-buyandsell/von_agent/load_cache
LDU_FT
[ "<BEGIN>\n## `validate_config`", "Call jsonschema validation to raise JSONValidation on non-compliance or silently pass.", " :param key: validation schema key of interest\n :param config: configuration dict to validate\n<END>", "<BEGIN>\n## `_seed2did`", "Derive DID, as per indy-sdk, from seed.", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load_cache API. 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 load_cache API. 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...
Load caches and archive enough to go offline and be able to verify proof on content marked of interest in configuration. Return timestamp (epoch seconds) of cache load event, also used as subdirectory for cache archives. :param archive: whether to archive caches to disk :return...
"Load caches and archive enough to go offline and be able to verify proof\n on content marked of interest in configuration.\n\n Return timestamp (epoch seconds) of cache load event, also used as subdirectory\n for cache archives.\n\n :param archive: whether to archive caches to disk\n ...
285
false
PSPC-SPAC-buyandsell/von_agent
load_cache
31,870
LDU_FT/taxpon/pymesh/scale
LDU_FT
[ "<BEGIN>\n## `set_initial_values`", "Set initial values form existing self.data value\n :return: None\n<END>", "<BEGIN>\n## `rotate_x`", "Rotate mesh around x-axis", " :param float deg: Rotation angle (degree)\n :return:\n<END>", "<BEGIN>\n## `translate_x`", "Translate mesh for x-di...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the scale API. Each 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 scale API. Each 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...
Scale mesh :param float sx: Amount to scale for x-direction :param float sy: Amount to scale for y-direction :param float sz: Amount to scale for z-direction
"Scale mesh\n\n :param float sx: Amount to scale for x-direction\n :param float sy: Amount to scale for y-direction\n :param float sz: Amount to scale for z-direction"
28
false
taxpon/pymesh
scale
31,871
LDU_FT/jreese/dotlink/parse_mapping
LDU_FT
[ "<BEGIN>\n## `parse_mapping`", "Do a simple parse of the dotfile mapping, using semicolons to\n separate source file name from the target file paths.\n<END>", "<BEGIN>\n## `sh`", "Run a shell command with the given arguments.\n<END>", "<BEGIN>\n## `ssh`", "Run an ssh command using the configured us...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_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. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_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. The ext...
Do a simple parse of the dotfile mapping, using semicolons to separate source file name from the target file paths.
"Do a simple parse of the dotfile mapping, using semicolons to\n separate source file name from the target file paths."
16
false
jreese/dotlink
parse_mapping
31,872