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/bioidiap/gridtk/stop_jobs | LDU_FT | [
"<BEGIN>\n## `submit`",
"Submits a job that will be executed on the local machine during a call to \"run\".\n All kwargs will simply be ignored.\n<END>",
"<BEGIN>\n## `stop_jobs`",
"Resets the status of the job to 'submitted' when they are labeled as 'executing'.\n<END>",
"<BEGIN>\n## `stop_job`",
"Res... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the stop_jobs API.
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 stop_jobs API.
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... | Resets the status of the job to 'submitted' when they are labeled as 'executing'. | "Resets the status of the job to 'submitted' when they are labeled as 'executing'." | 163 | false | bioidiap/gridtk | stop_jobs | 24,273 | |
LDU_FT/readbeyond/aeneas/middle_end | LDU_FT | [
"<BEGIN>\n## `pretty_print`",
"Return a Unicode string pretty print of the log entries.",
" :param bool as_list: if ``True``, return a list of Unicode strings,\n one for each entry, instead of a Unicode string\n :param bool show_datetime: if ``True``, show the date and ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the middle_end API.
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 middle_end API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extrac... | Set the index (+1) where MIDDLE ends.
:param int index: the new index for MIDDLE end | "Set the index (+1) where MIDDLE ends.\n\n :param int index: the new index for MIDDLE end" | 1,097 | true | readbeyond/aeneas | middle_end | 24,274 | |
LDU_FT/sunt05/SuPy/geopotential2geometric | LDU_FT | [
"<BEGIN>\n## `_path_insensitive`",
"Recursive part of path_insensitive to do the work.\n<END>",
"<BEGIN>\n## `url_is_alive`",
"Checks that a given URL is reachable.\n :param url: A URL\n :rtype: bool\n<END>",
"<BEGIN>\n## `form_option`",
"generate option name based suffix for URL",
" :param str... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the geopotential2geometric 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 geopotential2geometric API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.... | Converts geopoential height to geometric height
Parameters
----------
h : float
Geopotential height (meters)
latitude : float
Latitude (degrees)
Returns
-------
z : float
Geometric Height (meters) above the reference ellipsoid | "Converts geopoential height to geometric height\n\n Parameters\n ----------\n h : float\n Geopotential height (meters)\n latitude : float\n Latitude (degrees)\n\n Returns\n -------\n z : float\n Geometric Height (meters) above the reference ellipsoid" | 143 | false | sunt05/SuPy | geopotential2geometric | 24,275 | |
LDU_FT/hsolbrig/PyShEx/satisfiesShapeAnd | LDU_FT | [
"<BEGIN>\n## `conforms`",
"`5.6.1 Schema Validation Requirement <http://shex.io/shex-semantics/#validation-requirement>`_",
" A graph G is said to conform with a schema S with a ShapeMap m when:",
" Every, SemAct in the startActs of S has a successful evaluation of semActsSatisfied.\n Every node n in... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the satisfiesShapeAnd API.
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 satisfiesShapeAnd API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | Se is a ShapeAnd and for every shape expression se2 in shapeExprs, satisfies(n, se2, G, m) | "Se is a ShapeAnd and for every shape expression se2 in shapeExprs, satisfies(n, se2, G, m)" | 234 | false | hsolbrig/PyShEx | satisfiesShapeAnd | 24,276 | |
LDU_FT/caseyjlaw/rtpipe/plot_psrrates | LDU_FT | [
"<BEGIN>\n## `get_metadata`",
"Function to scan data (a small read) and define parameters used elsewhere.\n filename needs full path.\n Examples include, read/bgsub windows, image grid, memory profile.\n If pickle file doesn't exist, it creates one. \n Either way, dictionary is returned with info.\n<E... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the plot_psrrates API.
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 plot_psrrates API.
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... | Plot cumulative rate histograms. List of pkl files in order, as for make_psrrates. | "Plot cumulative rate histograms. List of pkl files in order, as for make_psrrates." | 256 | false | caseyjlaw/rtpipe | plot_psrrates | 24,277 | |
LDU_FT/loanzen/falcon-auth/parse_auth_token_from_request | LDU_FT | [
"<BEGIN>\n## `parse_auth_token_from_request`",
"Parses and returns Auth token from the request header. Raises\n `falcon.HTTPUnauthoried exception` with proper error message\n<END>",
"<BEGIN>\n## `get_auth_header`",
"Returns the value for authorization header\n Args:\n user_payload(dic... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_auth_token_from_request 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 parse_auth_token_from_request API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conc... | Parses and returns the Hawk Authorization header if it is present and well-formed.
Raises `falcon.HTTPUnauthoried exception` with proper error message | "Parses and returns the Hawk Authorization header if it is present and well-formed.\n Raises `falcon.HTTPUnauthoried exception` with proper error message" | 15 | false | loanzen/falcon-auth | parse_auth_token_from_request | 24,278 | |
LDU_FT/QualiSystems/cloudshell-networking-devices/add_vlan | LDU_FT | [
"<BEGIN>\n## `create_networking_resource_from_context`",
"Creates an instance of Networking Resource by given context\n :param shell_name: Shell Name\n :type shell_name: str\n :param supported_os: list of supported OS\n :type supported_os: list\n :param context: cloudshell.shell.core.driver_context... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_vlan API.
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_vlan API.
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... | Run flow to add VLAN(s) to interface
:param vlan_id: Already validated number of VLAN(s)
:param full_name: Full interface name. Example: 2950/Chassis 0/FastEthernet0-23
:param port_mode: port mode type. Should be trunk or access
:param qnq:
:param c_tag: | "Run flow to add VLAN(s) to interface\n\n :param vlan_id: Already validated number of VLAN(s)\n :param full_name: Full interface name. Example: 2950/Chassis 0/FastEthernet0-23\n :param port_mode: port mode type. Should be trunk or access\n :param qnq:\n :param c_tag:" | 87 | false | QualiSystems/cloudshell-networking-devices | add_vlan | 24,279 | |
LDU_FT/mozilla/DeepSpeech/increment | LDU_FT | [
"<BEGIN>\n## `reduce_filename`",
"r'''\n Expects something like /tmp/tmpAjry4Gdsbench/test.weights.e5.XXX.YYY.pb\n Where XXX is a variation on the model size for example\n And where YYY is a const related to the training dataset\n<END>",
"<BEGIN>\n## `keep_only_digits`",
"r'''\n local helper to ju... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the increment API.
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 increment API.
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... | Increments the counter by the given amount
:param amount: the amount to increment by (default 1)
:return: the incremented value of the counter | "Increments the counter by the given amount\n :param amount: the amount to increment by (default 1)\n :return: the incremented value of the counter" | 98 | false | mozilla/DeepSpeech | increment | 24,280 | |
LDU_FT/Arvedui/picuplib/remote_upload | LDU_FT | [
"<BEGIN>\n## `gen_user_agent`",
"generating the user agent witch will be used for most requests",
" monkey patching system and release functions from platform module\n to prevent disclosure of the OS and it's version\n<END>",
"<BEGIN>\n## `check_rotation`",
"checks rotation parameter if illegal value ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the remote_upload API.
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 remote_upload API.
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... | wraps remote_upload funktion
:param str picture_url: URL to picture allowd Protocols are: ftp,\
http, https
:param str resize: Aresolution in the folowing format: \
'80x80'(optional)
:param str|degree rotation: The picture will be rotated by this Value. \
All... | "wraps remote_upload funktion\n\n :param str picture_url: URL to picture allowd Protocols are: ftp,\\\n http, https\n :param str resize: Aresolution in the folowing format: \\\n '80x80'(optional)\n :param str|degree rotation: The picture will be rotated by this Value. \\\n ... | 27 | false | Arvedui/picuplib | remote_upload | 24,281 | |
LDU_FT/Rockhopper-Technologies/pluginlib/_filter | LDU_FT | [
"<BEGIN>\n## `_items`",
"Args:\n type_filter(list): Optional iterable of types to return (GroupDict only)\n name(str): Only return key by this name",
" Alternative generator for items() method\n<END>",
"<BEGIN>\n## `_filter`",
"Args:\n blacklist(tuple): Iterable of of... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _filter API.
Each 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 _filter API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted... | Args:
blacklist(tuple): Iterable of of BlacklistEntry objects
newest_only(bool): Only the newest version of each plugin is returned
type(str): Plugin type to retrieve
name(str): Plugin name to retrieve
version(str): Plugin version to retrieve
Returns ... | "Args:\n blacklist(tuple): Iterable of of BlacklistEntry objects\n newest_only(bool): Only the newest version of each plugin is returned\n type(str): Plugin type to retrieve\n name(str): Plugin name to retrieve\n version(str): Plugin version to retrieve\n\n ... | 65 | false | Rockhopper-Technologies/pluginlib | _filter | 24,282 | |
LDU_FT/aiidateam/aiida-codtools/prepare_for_submission | LDU_FT | [
"<BEGIN>\n## `run_filter_calculation`",
"Run the CifFilterCalculation on the CifData input node.\n<END>",
"<BEGIN>\n## `inspect_filter_calculation`",
"Inspect the result of the CifFilterCalculation, verifying that it produced a CifData output node.\n<END>",
"<BEGIN>\n## `run_select_calculation`",
"Run the... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the prepare_for_submission 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 prepare_for_submission API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.... | This method is called prior to job submission with a set of calculation input nodes.
The inputs will be validated and sanitized, after which the necessary input files will be written to disk in a
temporary folder. A CalcInfo instance will be returned that contains lists of files that need to be copied ... | "This method is called prior to job submission with a set of calculation input nodes.\n\n The inputs will be validated and sanitized, after which the necessary input files will be written to disk in a\n temporary folder. A CalcInfo instance will be returned that contains lists of files that need to be cop... | 73 | false | aiidateam/aiida-codtools | prepare_for_submission | 24,283 | |
LDU_FT/globality-corp/microcosm-logging/enable_loggly | LDU_FT | [
"<BEGIN>\n## `enable_loggly`",
"Enable loggly if it is configured and not debug/testing.\n<END>",
"<BEGIN>\n## `make_dict_config`",
"Build a dictionary configuration from conventions and configuration.\n<END>",
"<BEGIN>\n## `make_stream_handler`",
"Create the stream handler. Used for console/debug output.... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the enable_loggly API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the enable_loggly API.
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... | Enable loggly if it is configured and not debug/testing. | "Enable loggly if it is configured and not debug/testing." | 15 | false | globality-corp/microcosm-logging | enable_loggly | 24,284 | |
LDU_FT/kontron/python-ipmi/finish_upload_and_wait | LDU_FT | [
"<BEGIN>\n## `sel_entries`",
"Generator which returns all SEL entries.\n<END>",
"<BEGIN>\n## `initiate_upgrade_action`",
"Initiate Upgrade Action\n components:\n action:\n ACTION_BACKUP_COMPONENT = 0x00\n ACTION_PREPARE_COMPONENT = 0x01\n ACTION_UPLOAD_FOR_UPGRAD... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the finish_upload_and_wait 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 finish_upload_and_wait API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.... | Finish the firmware upload process and wait for
long running command. | "Finish the firmware upload process and wait for\n long running command." | 87 | false | kontron/python-ipmi | finish_upload_and_wait | 24,285 | |
LDU_FT/ThreatConnect-Inc/tcex/package | LDU_FT | [
"<BEGIN>\n## `_print_results`",
"Print the download results.",
" Args:\n file (str): The filename.\n status (str): The file download status.\n<END>",
"<BEGIN>\n## `_confirm_overwrite`",
"Confirm overwrite of template files.",
" Make sure the user would like to continue ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the package API.
Each 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 package API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted... | Build the App package for deployment to ThreatConnect Exchange. | "Build the App package for deployment to ThreatConnect Exchange." | 1,591 | true | ThreatConnect-Inc/tcex | package | 24,286 | |
LDU_FT/atarashansky/self-assembling-manifold/identify_marker_genes_rf | LDU_FT | [
"<BEGIN>\n## `preprocess_data`",
"Log-normalizes and filters the expression data.",
" Parameters\n ----------",
" div : float, optional, default 1\n The factor by which the gene expression will be divided prior to\n log normalization.",
" downsample : float,... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the identify_marker_genes_rf 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 identify_marker_genes_rf API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio... | Ranks marker genes for each cluster using a random forest
classification approach.
Parameters
----------
labels - numpy.array or str, optional, default None
Cluster labels to use for marker gene identification. If None,
assumes that one of SAM's clustering algor... | "Ranks marker genes for each cluster using a random forest\n classification approach.\n\n Parameters\n ----------\n\n labels - numpy.array or str, optional, default None\n Cluster labels to use for marker gene identification. If None,\n assumes that one of SAM's cluster... | 125 | false | atarashansky/self-assembling-manifold | identify_marker_genes_rf | 24,287 | |
LDU_FT/lra/mackup/_parse_directory | LDU_FT | [
"<BEGIN>\n## `getFilepaths`",
"Get home and mackup filepaths for given file",
" Args:\n filename (str)",
" Returns:\n home_filepath, mackup_filepath (str, str)\n<END>",
"<BEGIN>\n## `backup`",
"Backup the application config files.",
" Algorithm:\n if... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _parse_directory API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _parse_directory API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | Parse the storage directory in the config.
Returns:
str | "Parse the storage directory in the config.\n\n Returns:\n str" | 116 | false | lra/mackup | _parse_directory | 24,288 | |
LDU_FT/stephantul/reach/load_fast_format | LDU_FT | [
"<BEGIN>\n## `load`",
"r\"\"\"\n Read a file in word2vec .txt format.",
" The load function will raise a ValueError when trying to load items\n which do not conform to line lengths.",
" Parameters\n ----------\n pathtovector : string\n The path to the vecto... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load_fast_format API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load_fast_format API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | Load a reach instance in fast format.
As described above, the fast format stores the words and vectors of the
Reach instance separately, and is drastically faster than loading from
.txt files.
Parameters
----------
filename : str
The filename prefix from whi... | "Load a reach instance in fast format.\n\n As described above, the fast format stores the words and vectors of the\n Reach instance separately, and is drastically faster than loading from\n .txt files.\n\n Parameters\n ----------\n filename : str\n The filename prefi... | 63 | false | stephantul/reach | load_fast_format | 24,289 | |
LDU_FT/itamarst/eliot/get_fields_for_exception | LDU_FT | [
"<BEGIN>\n## `stopService`",
"Stop the writer thread, wait for it to finish.\n<END>",
"<BEGIN>\n## `bind`",
"Return a new L{Message} with this message's contents plus the\n additional given bindings.\n<END>",
"<BEGIN>\n## `_freeze`",
"Freeze this message for logging, registering it with C{action}."... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_fields_for_exception 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_fields_for_exception API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio... | Given an exception instance, return fields to add to the failed action
message.
@param logger: ``ILogger`` currently being used.
@param exception: An exception instance.
@return: Dictionary with fields to include. | "Given an exception instance, return fields to add to the failed action\n message.\n\n @param logger: ``ILogger`` currently being used.\n @param exception: An exception instance.\n\n @return: Dictionary with fields to include." | 282 | false | itamarst/eliot | get_fields_for_exception | 24,290 | |
LDU_FT/sdispater/backpack/max | LDU_FT | [
"<BEGIN>\n## `avg`",
"Get the average value of a given key.",
" :param key: The key to get the average for\n :type key: mixed",
" :rtype: float or int\n<END>",
"<BEGIN>\n## `chunk`",
"Chunk the underlying collection.",
" :param size: The chunk size\n :type size: int",
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the max API.
Each 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 max API.
Each 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... | Get the max value of a given key.
:param key: The key
:type key: str or None
:rtype: mixed | "Get the max value of a given key.\n\n :param key: The key\n :type key: str or None\n\n :rtype: mixed" | 137 | false | sdispater/backpack | max | 24,291 | |
LDU_FT/tensorflow/mesh/rewrite_stack_variables | LDU_FT | [
"<BEGIN>\n## `make_layer_stack`",
"Configurable layer stack.",
" Args:\n layers: a list of subclasses of TransformerLayer\n num_layers: an integer\n Returns:\n a LayerStack\n<END>",
"<BEGIN>\n## `make_bitransformer`",
"Gin-configurable bitransformer constructor.",
" In your config file you nee... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the rewrite_stack_variables 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 rewrite_stack_variables API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion... | Rewrite the current graph to combine variables.
This helps speed up graph construction times in the case of large meshes
and large numbers of variables.
This function should be called after graph construction (it is called by
default in the Lowering constuctor).
When we find a set of variables w... | "Rewrite the current graph to combine variables.\n\n This helps speed up graph construction times in the case of large meshes\n and large numbers of variables.\n\n This function should be called after graph construction (it is called by\n default in the Lowering constuctor).\n\n When we find a set of va... | 958 | false | tensorflow/mesh | rewrite_stack_variables | 24,292 | |
LDU_FT/ivanprjcts/sdklib/set_headers | LDU_FT | [
"<BEGIN>\n## `parse`",
"Parse the given XML input and convert it into a dictionary.",
" `xml_input` can either be a `string` or a file-like object.",
" If `xml_attribs` is `True`, element attributes are put in the dictionary\n among regular child elements, using `@` as a prefix to avoid collisions. I... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_headers API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_headers API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | Parameters:
+--------------+---------------+
| header_name | header_value |
+==============+===============+
| header1 | value1 |
+--------------+---------------+
| header2 | value2 |
+--------------+---------------+ | "Parameters:\n\n +--------------+---------------+\n | header_name | header_value |\n +==============+===============+\n | header1 | value1 |\n +--------------+---------------+\n | header2 | value2 |\n +--------------+---------------+" | 125 | false | ivanprjcts/sdklib | set_headers | 24,293 | |
LDU_FT/f3at/feat/get_stack_var | LDU_FT | [
"<BEGIN>\n## `parse_incoming_query`",
"Effect factory parsing the query value from params and merging in\n the static_conditions specified.",
" @param factory: IQueryView\n @param static_conditions: effect to be called to build up static\n conditions of the query\n @par... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_stack_var API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_stack_var API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | This function may fiddle with the locals of the calling function,
to make it the root function of the fiber. If called from a short-lived
function be sure to use a bigger frame depth.
Returns the fiber state or None. | "This function may fiddle with the locals of the calling function,\n to make it the root function of the fiber. If called from a short-lived\n function be sure to use a bigger frame depth.\n Returns the fiber state or None." | 658 | false | f3at/feat | get_stack_var | 24,294 | |
LDU_FT/b3j0f/schema/register | LDU_FT | [
"<BEGIN>\n## `_getter`",
"Called when the parent element tries to get this property value.",
" :param obj: parent object.\n<END>",
"<BEGIN>\n## `_setter`",
"Called when the parent element tries to set this property value.",
" :param obj: parent object.\n :param value: new value to use... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the register API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracte... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the register API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracte... | Register input schema class.
When registering a schema, all inner schemas are registered as well.
:param Schema schema: schema to register.
:return: old registered schema.
:rtype: type | "Register input schema class.\n\n When registering a schema, all inner schemas are registered as well.\n\n :param Schema schema: schema to register.\n :return: old registered schema.\n :rtype: type" | 101 | false | b3j0f/schema | register | 24,295 | |
LDU_FT/pavoni/pyvera/init_controller | LDU_FT | [
"<BEGIN>\n## `init_controller`",
"Initialize a controller.",
" Provides a single global controller for applications that can't do this\n themselves\n<END>",
"<BEGIN>\n## `data_request`",
"Perform a data_request and return the result.\n<END>",
"<BEGIN>\n## `get_device_by_name`",
"Search the list of... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the init_controller API.
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 init_controller API.
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... | Initialize a controller.
Provides a single global controller for applications that can't do this
themselves | "Initialize a controller.\n\n Provides a single global controller for applications that can't do this\n themselves" | 94 | false | pavoni/pyvera | init_controller | 24,296 | |
LDU_FT/ambitioninc/django-manager-utils/_get_prepped_model_field | LDU_FT | [
"<BEGIN>\n## `configure_settings`",
"Configures settings for manage.py and for run_tests.py.\n<END>",
"<BEGIN>\n## `_get_update_fields`",
"Get the fields to be updated in an upsert.",
" Always exclude auto_now_add, auto_created fields, and unique fields in an update\n<END>",
"<BEGIN>\n## `_fill_auto_fi... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_prepped_model_field 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_prepped_model_field API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio... | Gets the value of a field of a model obj that is prepared for the db. | "Gets the value of a field of a model obj that is prepared for the db." | 110 | false | ambitioninc/django-manager-utils | _get_prepped_model_field | 24,297 | |
LDU_FT/belbio/bel/process_pub_date | LDU_FT | [
"<BEGIN>\n## `convert_msg_to_html`",
"Convert \\n into a <BR> for an HTML formatted message\n<END>",
"<BEGIN>\n## `validate`",
"Validate Nanopub",
" Error Levels are similar to log levels - selecting WARNING includes both\n WARNING and ERROR, selecting ERROR just includes ERROR",
" The validation... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the process_pub_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 ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the process_pub_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 ... | Create pub_date from what Pubmed provides in Journal PubDate entry | "Create pub_date from what Pubmed provides in Journal PubDate entry" | 475 | false | belbio/bel | process_pub_date | 24,298 | |
LDU_FT/eeue56/PyChat.js/close | LDU_FT | [
"<BEGIN>\n## `create_message`",
"Creates a standard message from a given user with the message \r\n Replaces newline with html break\n<END>",
"<BEGIN>\n## `write_message`",
"Writes a message to this chat connection's handler\n<END>",
"<BEGIN>\n## `join_room`",
"Connects to a given room \r\n ... | 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... | Closes the connection by removing the user from all rooms | "Closes the connection by removing the user from all rooms" | 20 | false | eeue56/PyChat.js | close | 24,299 | |
LDU_FT/Yelp/kafka-utils/rebalance_brokers | LDU_FT | [
"<BEGIN>\n## `get_assignment`",
"Parse the given json plan in dict format.\n<END>",
"<BEGIN>\n## `_send_consumer_aware_request`",
"Send a list of requests to the consumer coordinator for the group\n specified using the supplied encode/decode functions. As the payloads\n that use consumer-aware r... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the rebalance_brokers API.
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 rebalance_brokers API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | Rebalance partition-count across brokers within each replication-group. | "Rebalance partition-count across brokers within each replication-group." | 538 | false | Yelp/kafka-utils | rebalance_brokers | 24,300 | |
LDU_FT/castelao/oceansdb/dbsource | LDU_FT | [
"<BEGIN>\n## `cropIndices`",
"Return the indices to crop dataset",
" Assuming that the dataset have the dimensions given by\n dims, this function return the indices to conform with\n the given coordinates (lat, lon, ...)\n<END>",
"<BEGIN>\n## `dbsource`",
"Return which file(s) to us... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the dbsource API.
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 dbsource API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracte... | Return which file(s) to use according to dbname, var, etc | "Return which file(s) to use according to dbname, var, etc" | 39 | false | castelao/oceansdb | dbsource | 24,301 | |
LDU_FT/blakev/python-syncthing/browse | LDU_FT | [
"<BEGIN>\n## `keys_to_datetime`",
"Converts all the keys in an object to DateTime instances.",
" Args:\n obj (dict): the JSON-like ``dict`` object to modify inplace.\n keys (str): keys of the object being converted into DateTime\n instances.",
" Returns:\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the browse API.
Each 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 browse API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted ... | Returns a list of directories matching the path given.
Args:
path (str): glob pattern.
Returns:
List[str] | "Returns a list of directories matching the path given.\n\n Args:\n path (str): glob pattern.\n\n Returns:\n List[str]" | 60 | false | blakev/python-syncthing | browse | 24,302 | |
LDU_FT/bitlabstudio/django-development-fabfile/run_syncdb | LDU_FT | [
"<BEGIN>\n## `require_server`",
"Checks if the user has called the task with a server name.",
" Fabric tasks decorated with this decorator must be called like so::",
" fab <server name> <task name>",
" If no server name is given, the task will not be executed.\n<END>",
"<BEGIN>\n## `run_deplo... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the run_syncdb API.
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 run_syncdb API.
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... | Runs `./manage.py syncdb --migrate` on the given server.
Usage::
fab <server> run_syncdb | "Runs `./manage.py syncdb --migrate` on the given server.\n\n Usage::\n\n fab <server> run_syncdb" | 77 | false | bitlabstudio/django-development-fabfile | run_syncdb | 24,303 | |
LDU_FT/xflows/rdm/_facts | LDU_FT | [
"<BEGIN>\n## `cv_split`",
"Returns a list of pairs (train_context, test_context), one for each cross-validation fold.",
" The split is stratified.",
" :param context: DBContext to be split\n :param folds: number of folds\n :param random_seed: random seed to be used",
" :return... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _facts API.
Each 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 _facts API.
Each 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 facts for the given entity with pk in `target`. | "Returns the facts for the given entity with pk in `target`." | 102 | false | xflows/rdm | _facts | 24,304 | |
LDU_FT/rsmuc/health_monitoring_plugins/check_battery_replace_indicator | LDU_FT | [
"<BEGIN>\n## `check_ups_estimated_minutes_remaining`",
"OID .1.3.6.1.2.1.33.1.2.3.0\n MIB excerpt\n An estimate of the time to battery charge depletion\n under the present load conditions if the utility power\n is off and remains off, or if it were to be lost and\n remain off.\n<END>",
"<BEGIN>\n... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the check_battery_replace_indicator 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 check_battery_replace_indicator API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its co... | OID .1.3.6.1.4.1.318.1.1.1.2.2.4.0
MIB Excerpt
Indicates whether the UPS batteries need replacing.
Value List
noBatteryNeedsReplacing (1)
batteryNeedsReplacing (2) | "OID .1.3.6.1.4.1.318.1.1.1.2.2.4.0\n MIB Excerpt\n Indicates whether the UPS batteries need replacing.\n Value List\n noBatteryNeedsReplacing (1)\n batteryNeedsReplacing (2)" | 75 | false | rsmuc/health_monitoring_plugins | check_battery_replace_indicator | 24,305 | |
LDU_FT/gtaylor/django-athumb/_get_raw_data | LDU_FT | [
"<BEGIN>\n## `create_thumbnail`",
"This serves as a really basic example of a thumbnailing method. You\n may want to implement your own logic, but this will work for\n simple cases.",
" :param Image image: This is your engine's ``Image`` object. For\n PIL it's PIL.Image.\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_raw_data API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_raw_data API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | Returns the raw data from the Image, which can be directly written
to a something, be it a file-like object or a database.
:param PIL.Image image: The image to get the raw data for.
:param str format: The format to save to. If this value is ``None``,
PIL will attempt to guess. You'r... | "Returns the raw data from the Image, which can be directly written\n to a something, be it a file-like object or a database.\n\n :param PIL.Image image: The image to get the raw data for.\n :param str format: The format to save to. If this value is ``None``,\n PIL will attempt to guess.... | 76 | false | gtaylor/django-athumb | _get_raw_data | 24,306 | |
LDU_FT/tilezen/mapbox-vector-tile/_coords | LDU_FT | [
"<BEGIN>\n## `_coords`",
"Return a list of lists of coordinates of the polygon. The list consists\n firstly of the list of exterior coordinates followed by zero or more lists\n of any interior coordinates.\n<END>",
"<BEGIN>\n## `_drop_degenerate_inners`",
"Drop degenerate (zero-size) inners from the pol... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _coords API.
Each 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 _coords API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted... | Return a list of lists of coordinates of the polygon. The list consists
firstly of the list of exterior coordinates followed by zero or more lists
of any interior coordinates. | "Return a list of lists of coordinates of the polygon. The list consists\n firstly of the list of exterior coordinates followed by zero or more lists\n of any interior coordinates." | 32 | false | tilezen/mapbox-vector-tile | _coords | 24,307 | |
LDU_FT/toloco/pyoanda/update_trade | LDU_FT | [
"<BEGIN>\n## `check`",
"Logic extracted from:\n http://developer.oanda.com/rest-live/orders/#createNewOrder\n<END>",
"<BEGIN>\n## `__get_response`",
"Creates a response object with the given params and option",
" Parameters\n ----------\n url : string\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update_trade API.
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 update_trade API.
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... | Modify an existing trade.
Note: Only the specified parameters will be modified. All
other parameters will remain unchanged. To remove an
optional parameter, set its value to 0.
Parameters
----------
trade_id : int
The id of the tr... | "Modify an existing trade.\n\n Note: Only the specified parameters will be modified. All\n other parameters will remain unchanged. To remove an\n optional parameter, set its value to 0.\n\n Parameters\n ----------\n trade_id : int\n The id... | 46 | false | toloco/pyoanda | update_trade | 24,308 | |
LDU_FT/google/dotty/getvalue | LDU_FT | [
"<BEGIN>\n## `generate_chunks`",
"Yield 'chunk_size' items from 'data' at a time.\n<END>",
"<BEGIN>\n## `reduce`",
"Repeatedly call fold and merge on data and then finalize.",
" Arguments:\n data: Input for the fold function.\n reducer: The IReducer to use.\n chunk_size: How many ite... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the getvalue API.
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 getvalue API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracte... | Return the single value of x or raise TypError if more than one value. | "Return the single value of x or raise TypError if more than one value." | 284 | false | google/dotty | getvalue | 24,309 | |
LDU_FT/amol-/dukpy/register_path | LDU_FT | [
"<BEGIN>\n## `babel_compile`",
"Compiles the given ``source`` from ES6 to ES5 using Babeljs\n<END>",
"<BEGIN>\n## `coffee_compile`",
"Compiles the given ``source`` from CoffeeScript to JavaScript\n<END>",
"<BEGIN>\n## `register_path`",
"Registers a directory where to look for modules.",
" By defa... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the register_path API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the register_path API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | Registers a directory where to look for modules.
By default only modules relative to current path are found. | "Registers a directory where to look for modules.\n\n By default only modules relative to current path are found." | 26 | false | amol-/dukpy | register_path | 24,310 | |
LDU_FT/randomsync/robotframework-mqttlibrary/subscribe | LDU_FT | [
"<BEGIN>\n## `connect`",
"Connect to an MQTT broker. This is a pre-requisite step for publish\n and subscribe keywords.",
" `broker` MQTT broker host",
" `port` broker port (default 1883)",
" `client_id` if not specified, a random id is generated",
" `clean_session` spec... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the subscribe API.
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 subscribe API.
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... | Subscribe to a topic and return a list of message payloads received
within the specified time.
`topic` topic to subscribe to
`qos` quality of service for the subscription
`timeout` duration of subscription. Specify 0 to enable background looping (async)
`limit` the max nu... | "Subscribe to a topic and return a list of message payloads received\n within the specified time.\n\n `topic` topic to subscribe to\n\n `qos` quality of service for the subscription\n\n `timeout` duration of subscription. Specify 0 to enable background looping (async)\n\n `limit` ... | 72 | false | randomsync/robotframework-mqttlibrary | subscribe | 24,311 | |
LDU_FT/adaptive-learning/proso-apps/tag_values | LDU_FT | [
"<BEGIN>\n## `process_answer`",
"This method is used during the answer streaming and is called after the\n predictive model for each answer.",
" Args:\n user (int):\n identifier of ther user answering the question\n asked (int):\n identifier of t... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the tag_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 extrac... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the tag_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 extrac... | Get tags types and values with localized names
language:
language of tags | "Get tags types and values with localized names\n\n language:\n language of tags" | 276 | false | adaptive-learning/proso-apps | tag_values | 24,312 | |
LDU_FT/publysher/rdflib-django/_get_query_sets_for_object | LDU_FT | [
"<BEGIN>\n## `_get_query_sets_for_object`",
"Determines the correct query set based on the object.",
" If the object is a literal, it will return a query set over LiteralStatements.\n If the object is a URIRef or BNode, it will return a query set over Statements.\n If the object is unknown, it will ret... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_query_sets_for_object 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 _get_query_sets_for_object API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclus... | Determines the correct query set based on the object.
If the object is a literal, it will return a query set over LiteralStatements.
If the object is a URIRef or BNode, it will return a query set over Statements.
If the object is unknown, it will return both the LiteralStatement and Statement query sets.
... | "Determines the correct query set based on the object.\n\n If the object is a literal, it will return a query set over LiteralStatements.\n If the object is a URIRef or BNode, it will return a query set over Statements.\n If the object is unknown, it will return both the LiteralStatement and Statement query se... | 17 | false | publysher/rdflib-django | _get_query_sets_for_object | 24,313 | |
LDU_FT/benmack/eo-box/_process_window | LDU_FT | [
"<BEGIN>\n## `buildvrt`",
"Build a VRT",
" See also: https://www.gdal.org/gdalbuildvrt.html",
" You can find the possible BuildVRTOptions (**kwargs**) here:\n https://github.com/nextgis/pygdal/blob/78a793057d2162c292af4f6b240e19da5d5e52e2/2.1.0/osgeo/gdal.py#L1051",
" Arguments:\n input_f... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _process_window API.
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 _process_window API.
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... | Load (resampled) array of window ji_win and apply custom function on it. | "Load (resampled) array of window ji_win and apply custom function on it." | 98 | false | benmack/eo-box | _process_window | 24,314 | |
LDU_FT/Netflix-Skunkworks/historical/group_records_by_type | LDU_FT | [
"<BEGIN>\n## `handler`",
"Historical security group event differ.",
" Listens to the Historical current table and determines if there are differences that need to be persisted in the\n historical record.\n<END>",
"<BEGIN>\n## `serialize`",
"Serializes the JSON for the Polling Event Model.",
" ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the group_records_by_type API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the group_records_by_type API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | Break records into two lists; create/update events and delete events.
:param records:
:param update_events:
:return update_records, delete_records: | "Break records into two lists; create/update events and delete events.\n\n :param records:\n :param update_events:\n :return update_records, delete_records:" | 146 | false | Netflix-Skunkworks/historical | group_records_by_type | 24,315 | |
LDU_FT/RudolfCardinal/pythonlib/contains_unquoted_target | LDU_FT | [
"<BEGIN>\n## `pdb_run`",
"Calls ``func(*args, **kwargs)``; if it raises an exception, break into\n the ``pdb`` debugger.\n<END>",
"<BEGIN>\n## `get_class_name_from_frame`",
"A frame contains information about a specific call in the Python call\n stack; see https://docs.python.org/3/library/inspect.html.... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the contains_unquoted_target 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 contains_unquoted_target API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio... | Checks if ``target`` exists in ``x`` outside quotes (as defined by
``quote``). Principal use: from
:func:`contains_unquoted_ampersand_dangerous_to_windows`. | "Checks if ``target`` exists in ``x`` outside quotes (as defined by\n ``quote``). Principal use: from\n :func:`contains_unquoted_ampersand_dangerous_to_windows`." | 2,517 | true | RudolfCardinal/pythonlib | contains_unquoted_target | 24,316 | |
LDU_FT/ojii/django-multilingual-ng/placeholder_plugin_filter | LDU_FT | [
"<BEGIN>\n## `reorder_translation_formset_by_language_code`",
"Shuffle the forms in the formset of multilingual model in the\n order of their language_ids.\n<END>",
"<BEGIN>\n## `multilingual`",
"Returns context variables containing information about available languages.\n<END>",
"<BEGIN>\n## `multilingu... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the placeholder_plugin_filter API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the placeholder_plugin_filter API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi... | This is only used on models which use placeholders from the django-cms | "This is only used on models which use placeholders from the django-cms" | 58 | false | ojii/django-multilingual-ng | placeholder_plugin_filter | 24,317 | |
LDU_FT/avihad/twistes/_update_ssl_params | LDU_FT | [
"<BEGIN>\n## `expand_action`",
"From one document or action definition passed in by the user extract the\n action/data lines needed for elasticsearch's\n :meth:`~elasticsearch.Elasticsearch.bulk` api.\n :return es format to bulk doc\n<END>",
"<BEGIN>\n## `bulk`",
"Helper for the :meth:`~e... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _update_ssl_params 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 _update_ssl_params 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... | Update the host ssl params (port or scheme) if needed.
:param host:
:return: | "Update the host ssl params (port or scheme) if needed.\n :param host:\n :return:" | 78 | false | avihad/twistes | _update_ssl_params | 24,318 | |
LDU_FT/jrief/django-angular/get_all_remote_methods | LDU_FT | [
"<BEGIN>\n## `THUMBNAIL_OPTIONS`",
"Set the size as a 2-tuple for thumbnailed images after uploading them.\n<END>",
"<BEGIN>\n## `get_context`",
"Some widgets require a modified rendering context, if they contain angular directives.\n<END>",
"<BEGIN>\n## `errors`",
"Returns a TupleErrorList for this field... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_all_remote_methods API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_all_remote_methods API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.... | Returns a dictionary to be used for calling ``djangoCall.configure()``, which itself extends the
Angular API to the client, offering him to call remote methods. | "Returns a dictionary to be used for calling ``djangoCall.configure()``, which itself extends the\n Angular API to the client, offering him to call remote methods." | 63 | false | jrief/django-angular | get_all_remote_methods | 24,319 | |
LDU_FT/nikcub/floyd/t | 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 t API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted docum... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the t API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted docum... | Number of days in the given month; i.e. '28' to '31 | "Number of days in the given month; i.e. '28' to '31" | 71 | false | nikcub/floyd | t | 24,320 | |
LDU_FT/cloudera/impyla/get_schema | LDU_FT | [
"<BEGIN>\n## `drop_database`",
"Parameters:\n - name\n - deleteData\n - cascade\n<END>",
"<BEGIN>\n## `get_fields`",
"Parameters:\n - db_name\n - table_name\n<END>",
"<BEGIN>\n## `get_fields_with_environment_context`",
"Parameters:\n - db_name\n - table_name\n - environment... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_schema API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extrac... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_schema API.
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... | Parameters:
- db_name
- table_name | "Parameters:\n - db_name\n - table_name" | 206 | false | cloudera/impyla | get_schema | 24,321 | |
LDU_FT/pyGrowler/Growler/calculate_etag | LDU_FT | [
"<BEGIN>\n## `create`",
"Create a new prototype object with the argument as the source\n prototype.",
" .. Note:",
" This does not `initialize` the newly created object any\n more than setting its prototype.\n Calling the __init__ method is usually unnecessary as... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the calculate_etag API.
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 calculate_etag API.
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... | Calculate an etag value
Args:
a_file (pathlib.Path): The filepath to the
Returns:
String of the etag value to be sent back in header | "Calculate an etag value\n\n Args:\n a_file (pathlib.Path): The filepath to the\n\n Returns:\n String of the etag value to be sent back in header" | 203 | false | pyGrowler/Growler | calculate_etag | 24,322 | |
LDU_FT/juanifioren/django-oidc-provider/extract_access_token | LDU_FT | [
"<BEGIN>\n## `userinfo`",
"Create a dictionary with all the requested claims about the End-User.\n See: http://openid.net/specs/openid-connect-core-1_0.html#UserInfoResponse",
" Return a dictionary.\n<END>",
"<BEGIN>\n## `create_response_dic`",
"Generate the dic that will be jsonify. Checking scopes g... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the extract_access_token API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the extract_access_token API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | Get the access token using Authorization Request Header Field method.
Or try getting via GET.
See: http://tools.ietf.org/html/rfc6750#section-2.1
Return a string. | "Get the access token using Authorization Request Header Field method.\n Or try getting via GET.\n See: http://tools.ietf.org/html/rfc6750#section-2.1\n\n Return a string." | 60 | false | juanifioren/django-oidc-provider | extract_access_token | 24,323 | |
LDU_FT/bitcraft/PyTMX/get_tileset_from_gid | LDU_FT | [
"<BEGIN>\n## `default_image_loader`",
"This default image loader just returns filename, rect, and any flags\n<END>",
"<BEGIN>\n## `decode_gid`",
"Decode a GID from TMX data",
" as of 0.7.0 it determines if the tile should be flipped when rendered\n as of 0.8.0 bit 30 determines if GID is rotated",
"... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_tileset_from_gid 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_tileset_from_gid 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 tileset that owns the gid
Note: this is a slow operation, so if you are expecting to do this
often, it would be worthwhile to cache the results of this.
:param gid: gid of tile image
:rtype: TiledTileset if found, otherwise ValueError | "Return tileset that owns the gid\n\n Note: this is a slow operation, so if you are expecting to do this\n often, it would be worthwhile to cache the results of this.\n\n :param gid: gid of tile image\n :rtype: TiledTileset if found, otherwise ValueError" | 134 | false | bitcraft/PyTMX | get_tileset_from_gid | 24,324 | |
LDU_FT/rshk/python-libxdo/get_desktop_for_window | LDU_FT | [
"<BEGIN>\n## `_errcheck`",
"Error checker for functions returning an integer indicating\n success (0) / failure (1).",
" Raises a XdoException in case of error, otherwise just\n returns ``None`` (returning the original code, 0, would be\n useless anyways..)\n<END>",
"<BEGIN>\n## `move_mouse`",
"... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_desktop_for_window 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_desktop_for_window API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.... | Get the desktop a window is on.
Uses _NET_WM_DESKTOP of the EWMH spec.
If your desktop does not support ``_NET_WM_DESKTOP``, then '*desktop'
remains unmodified.
:param wid: the window to query | "Get the desktop a window is on.\n Uses _NET_WM_DESKTOP of the EWMH spec.\n\n If your desktop does not support ``_NET_WM_DESKTOP``, then '*desktop'\n remains unmodified.\n\n :param wid: the window to query" | 125 | false | rshk/python-libxdo | get_desktop_for_window | 24,325 | |
LDU_FT/koszullab/instaGRAAL/zoom_in_pixel | LDU_FT | [
"<BEGIN>\n## `estimate_parameters_rippe`",
"estimation by least square optimization of Rippe parameters on the\n experimental data\n :param max_dist_kb:\n :param size_bin_kb:\n<END>",
"<BEGIN>\n## `estimate_parameters`",
"estimation by least square optimization of Rippe parameters on the\... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the zoom_in_pixel API.
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 zoom_in_pixel API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | return the curr_frag at a higher resolution | "return the curr_frag at a higher resolution" | 116 | false | koszullab/instaGRAAL | zoom_in_pixel | 24,326 | |
LDU_FT/Tivix/django-common/send_mail | LDU_FT | [
"<BEGIN>\n## `ssl_required`",
"Views decorated with this will always get redirected to https\n except when allow_non_ssl is set to true.\n<END>",
"<BEGIN>\n## `anonymous_required`",
"Only allow if user is NOT authenticated.\n<END>",
"<BEGIN>\n## `generic_var`",
"Stores generic variables in the session ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the send_mail API.
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 send_mail API.
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... | Sends email with advanced optional parameters
To attach non-file content (e.g. content not saved on disk), use
files_manually parameter and provide list of 3 element tuples, e.g.
[('design.png', img_data, 'image/png'),] which will be passed to
email.attach(). | "Sends email with advanced optional parameters\n\n To attach non-file content (e.g. content not saved on disk), use\n files_manually parameter and provide list of 3 element tuples, e.g.\n [('design.png', img_data, 'image/png'),] which will be passed to\n email.attach()." | 28 | false | Tivix/django-common | send_mail | 24,327 | |
LDU_FT/lago-project/lago/update_args | LDU_FT | [
"<BEGIN>\n## `expose`",
"Decorator to be used with :class:`SDKWrapper`. This decorator indicates\n that the wrapped method or class should be exposed in the proxied object.",
" Args:\n func(types.FunctionType/types.MethodType): function to decorate",
" Returns:\n None\n<END>",
"<BEGIN... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update_args API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update_args API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | Update config dictionary with parsed args, as resolved by argparse.
Only root positional arguments that already exist will overridden.
Args:
args (namespace): args parsed by argparse | "Update config dictionary with parsed args, as resolved by argparse.\n Only root positional arguments that already exist will overridden.\n\n Args:\n args (namespace): args parsed by argparse" | 718 | false | lago-project/lago | update_args | 24,328 | |
LDU_FT/dwkim78/upsilon/get_features2 | LDU_FT | [
"<BEGIN>\n## `sigma_clipping`",
"Remove any fluctuated data points by magnitudes.",
" Parameters\n ----------\n date : array_like\n An array of dates.\n mag : array_like\n An array of magnitudes.\n err : array_like\n An array of magnitude errors.\n threshold : float, optio... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_features2 API.
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_features2 API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | Return all features with its names.
Returns
-------
names : list
Feature names.
values : list
Feature values | "Return all features with its names.\n\n Returns\n -------\n names : list\n Feature names.\n values : list\n Feature values" | 80 | false | dwkim78/upsilon | get_features2 | 24,329 | |
LDU_FT/nickpandolfi/Cyther/run | LDU_FT | [
"<BEGIN>\n## `get_content`",
"Finds the 'content' tag from a 'pattern' in the provided 'string'\n<END>",
"<BEGIN>\n## `extract`",
"Used to extract a given regex pattern from a string, given several options\n<END>",
"<BEGIN>\n## `extractRuntime`",
"Used to find the correct static lib name to pass to gcc\n<... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the run API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted doc... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the run API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted doc... | Extracts and runs the '@cyther' code from the given file 'path' name | "Extracts and runs the '@cyther' code from the given file 'path' name" | 131 | false | nickpandolfi/Cyther | run | 24,330 | |
LDU_FT/rdireen/spherepy/s_data | LDU_FT | [
"<BEGIN>\n## `sbessely`",
"Returns a vector of spherical bessel functions yn:\r",
" x: The argument.\r\n N: values of n will run from 0 to N-1.\n<END>",
"<BEGIN>\n## `sbesselj`",
"Returns a vector of spherical bessel functions jn:\r",
" x: The argument.\r\n N: values of... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the s_data API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the s_data API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted ... | I am going to assume we will always have even data. This is pretty
safe because it means that we have measured both poles of the sphere and
have data that has been continued.
nrows_fdata: Number of rows in fdata.
Nmax: The largest number of n values desired.
Q: ... | "I am going to assume we will always have even data. This is pretty \r\n safe because it means that we have measured both poles of the sphere and \r\n have data that has been continued.\r\n\r\n nrows_fdata: Number of rows in fdata.\r\n Nmax: The largest number of n values desired.\r\n ... | 194 | false | rdireen/spherepy | s_data | 24,331 | |
LDU_FT/jaraco/jaraco.postgres/create | LDU_FT | [
"<BEGIN>\n## `create`",
"CREATE this DATABASE.",
" @param sql: (Optional) A string of psql (such as might be generated\n by pg_dump); it will be executed by psql(1) after creating the\n database.\n @type sql: str",
" @rtype: None\n<END>",
"<BEGIN>\n## `psql_string`",
"Ev... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted ... | Construct a PostgresDatabase and create it on self | "Construct a PostgresDatabase and create it on self" | 45 | false | jaraco/jaraco.postgres | create | 24,332 | |
LDU_FT/zkbt/the-friendly-stars/finder | LDU_FT | [
"<BEGIN>\n## `from_coordinates`",
"Iniitalize a constellation object.",
" Parameters\n ----------",
" ra, dec, distance, pm_ra_cosdec, pm_dec, radial_velocity\n These must be able to initialize a SkyCoord.\n id : list, array\n Identifications for the entries.\... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the finder API.
Each 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 finder API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted ... | Plot a finder chart. This *does* create a new figure. | "Plot a finder chart. This *does* create a new figure." | 52 | false | zkbt/the-friendly-stars | finder | 24,333 | |
LDU_FT/josiah-wolf-oberholtzer/uqbar/get_repr | LDU_FT | [
"<BEGIN>\n## `_build_mappings`",
"Collect all bases and organize into parent/child mappings.\n<END>",
"<BEGIN>\n## `_collect_classes`",
"Collect all classes defined in/under ``package_paths``.\n<END>",
"<BEGIN>\n## `find_common_prefix`",
"Find the common prefix of two or more paths.",
" ::",
" ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_repr API.
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_repr API.
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... | Build a repr string for ``expr`` from its vars and signature.
::
>>> class MyObject:
... def __init__(self, arg1, arg2, *var_args, foo=None, bar=None, **kwargs):
... self.arg1 = arg1
... self.arg2 = arg2
... self.var_args = var_args
... ... | "Build a repr string for ``expr`` from its vars and signature.\n\n ::\n\n >>> class MyObject:\n ... def __init__(self, arg1, arg2, *var_args, foo=None, bar=None, **kwargs):\n ... self.arg1 = arg1\n ... self.arg2 = arg2\n ... self.var_args = var_args\n ... | 123 | false | josiah-wolf-oberholtzer/uqbar | get_repr | 24,334 | |
LDU_FT/paramiko/paramiko/auth_password | LDU_FT | [
"<BEGIN>\n## `make_tarball`",
"Create a tar file from all the files under 'base_dir'.\n This file may be compressed.",
" :param compress: Compression algorithms. Supported algorithms are:\n 'gzip': (the default)\n 'compress'\n 'bzip2'\n None\n For 'gzip' and 'bzip2' the inte... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the auth_password API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the auth_password API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | Authenticate to the server using a password. The username and password
are sent over an encrypted link.
If an ``event`` is passed in, this method will return immediately, and
the event will be triggered once authentication succeeds or fails. On
success, `is_authenticated` will return ... | "Authenticate to the server using a password. The username and password\n are sent over an encrypted link.\n\n If an ``event`` is passed in, this method will return immediately, and\n the event will be triggered once authentication succeeds or fails. On\n success, `is_authenticated` will r... | 608 | false | paramiko/paramiko | auth_password | 24,335 | |
LDU_FT/cloudera/cm_api/_get_peer_type_param | LDU_FT | [
"<BEGIN>\n## `set_basic_auth`",
"Set up basic auth for the client\n @param username: Login name.\n @param password: Login password.\n @param realm: The authentication realm.\n @return: The current object\n<END>",
"<BEGIN>\n## `execute`",
"Submit an HTTP request.\n @param http_method: GET, POST,... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_peer_type_param 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_peer_type_param API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | Checks if the resource_root's API version is >= 11 and construct type param. | "Checks if the resource_root's API version is >= 11 and construct type param." | 561 | false | cloudera/cm_api | _get_peer_type_param | 24,336 | |
LDU_FT/bschollnick/semantic_url/change_page | LDU_FT | [
"<BEGIN>\n## `norm_page_cnt`",
"Normalize a integer (page).",
" * Ensure that it is greater than Zero, and is not None.\n - If less than 1, or None, set it to 1",
" * if max_number is None, then do not check for max_number\n * if greater than max_number, reset it to be max_number\n<END>",
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the change_page API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the change_page API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | Args:
* offset - Integer - The positive / negative change to apply
to the page.
* max_page_count - The maximum number of pages available.
* nom - None on Max or Min - If max number of pages reached,
return none instead of forcing back into range.
Returns:
Boolean... | "Args:\n * offset - Integer - The positive / negative change to apply\n to the page.\n * max_page_count - The maximum number of pages available.\n * nom - None on Max or Min - If max number of pages reached,\n return none instead of forcing back into range.\n\n Returns:\n ... | 61 | false | bschollnick/semantic_url | change_page | 24,337 | |
LDU_FT/Azure/azure-event-hubs-python/renew_lease_async | LDU_FT | [
"<BEGIN>\n## `parse_sas_token`",
"Parse a SAS token into its components.",
" :param sas_token: The SAS token.\n :type sas_token: str\n :rtype: dict[str, str]\n<END>",
"<BEGIN>\n## `offset`",
"The offset of the event data object.",
" :rtype: ~azure.eventhub.common.Offset\n<END>",
"<BEGIN>... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the renew_lease_async API.
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 renew_lease_async API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | Renew a lease currently held by this host.
If the lease has been stolen, or expired, or released, it is not possible to renew it.
You will have to call getLease() and then acquireLease() again.
:param lease: The stored lease to be renewed.
:type lease: ~azure.eventprocessorhost.lease.Le... | "Renew a lease currently held by this host.\n If the lease has been stolen, or expired, or released, it is not possible to renew it.\n You will have to call getLease() and then acquireLease() again.\n\n :param lease: The stored lease to be renewed.\n :type lease: ~azure.eventprocessorhost.le... | 260 | false | Azure/azure-event-hubs-python | renew_lease_async | 24,338 | |
LDU_FT/cole/aiosmtplib/read_response | LDU_FT | [
"<BEGIN>\n## `connection_made`",
"Modified ``connection_made`` that supports upgrading our transport in\n place using STARTTLS.",
" We set the _transport directly on the StreamReader, rather than calling\n set_transport (which will raise an AssertionError on upgrade).\n<END>",
"<BEGIN>\n#... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the read_response API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the read_response API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | Get a status reponse from the server.
Returns an SMTPResponse namedtuple consisting of:
- server response code (e.g. 250, or such, if all goes well)
- server response string corresponding to response code (multiline
responses are converted to a single, multiline string). | "Get a status reponse from the server.\n\n Returns an SMTPResponse namedtuple consisting of:\n - server response code (e.g. 250, or such, if all goes well)\n - server response string corresponding to response code (multiline\n responses are converted to a single, multiline string)." | 142 | false | cole/aiosmtplib | read_response | 24,339 | |
LDU_FT/paylogic/halogen/serialize | LDU_FT | [
"<BEGIN>\n## `to_dict`",
"Return a dictionary representation of the error.",
" :return: A dict with the keys:\n - attr: Attribute which contains the error, or \"<root>\" if it refers to the schema root.\n - errors: A list of dictionary representations of the errors.\n<END>",
"<BEG... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the serialize API.
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 serialize API.
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... | Serialize the attribute of the input data.
Gets the attribute value with accessor and converts it using the
type serialization. Schema will place this serialized value into
corresponding compartment of the HAL structure with the name of the
attribute as a key.
:param value: Val... | "Serialize the attribute of the input data.\n\n Gets the attribute value with accessor and converts it using the\n type serialization. Schema will place this serialized value into\n corresponding compartment of the HAL structure with the name of the\n attribute as a key.\n\n :param va... | 51 | false | paylogic/halogen | serialize | 24,340 | |
LDU_FT/proycon/pynlpl/correctwords | LDU_FT | [
"<BEGIN>\n## `auc`",
"Compute Area Under the Curve (AUC) using the trapezoidal rule",
" This is a general fuction, given points on a curve. For computing the area\n under the ROC-curve, see :func:`auc_score`.",
" Parameters\n ----------\n x : array, shape = [n]\n x coordinates.",
" ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the correctwords API.
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 correctwords API.
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... | Generic correction method for words. You most likely want to use the helper functions
:meth:`Sentence.splitword` , :meth:`Sentence.mergewords`, :meth:`deleteword`, :meth:`insertword` instead | "Generic correction method for words. You most likely want to use the helper functions\n :meth:`Sentence.splitword` , :meth:`Sentence.mergewords`, :meth:`deleteword`, :meth:`insertword` instead" | 533 | false | proycon/pynlpl | correctwords | 24,341 | |
LDU_FT/niklasf/python-chess/is_repetition | LDU_FT | [
"<BEGIN>\n## `open_tablebase`",
"Opens a collection of tables for probing. See\n :class:`~chess.syzygy.Tablebase`.",
" .. note::",
" Generally probing requires tablebase files for the specific\n material composition, **as well as** tablebase files with less pieces.\n This is importa... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_repetition API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_repetition API.
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 current position has repeated 3 (or a given number of)
times.
Unlike :func:`~chess.Board.can_claim_threefold_repetition()`,
this does not consider a repetition that can be played on the next
move.
Note that checking this can be slow: In the worst case the entire
... | "Checks if the current position has repeated 3 (or a given number of)\n times.\n\n Unlike :func:`~chess.Board.can_claim_threefold_repetition()`,\n this does not consider a repetition that can be played on the next\n move.\n\n Note that checking this can be slow: In the worst case the ... | 367 | false | niklasf/python-chess | is_repetition | 24,342 | |
LDU_FT/quasipedia/swaggery/_mount_resources | LDU_FT | [
"<BEGIN>\n## `operations`",
"Decorator for marking Resource methods as HTTP operations.",
" This decorator does a number of different things:\n - It transfer onto itself docstring and annotations from the decorated\n method, so as to be \"transparent\" with regards to introspection.\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _mount_resources API.
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 _mount_resources API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | Mount all registered resources onto the application. | "Mount all registered resources onto the application." | 67 | false | quasipedia/swaggery | _mount_resources | 24,343 | |
LDU_FT/BeyondTheClouds/enoslib/_to_enos_roles | LDU_FT | [
"<BEGIN>\n## `_build_g5k_conf`",
"Build the conf of the g5k provider from the vmong5k conf.\n<END>",
"<BEGIN>\n## `cached`",
"Decorator for caching/retrieving api calls request.",
" Many calls to the API are getter on static parts (e.g site of a given\n cluster name won't change). By caching some resp... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _to_enos_roles API.
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 _to_enos_roles API.
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... | Transform the roles to use enoslib.host.Host hosts.
Args:
roles (dict): roles returned by
:py:func:`enoslib.infra.provider.Provider.init` | "Transform the roles to use enoslib.host.Host hosts.\n\n Args:\n roles (dict): roles returned by\n :py:func:`enoslib.infra.provider.Provider.init`" | 229 | false | BeyondTheClouds/enoslib | _to_enos_roles | 24,344 | |
LDU_FT/thoth-station/solver/_pipdeptree | LDU_FT | [
"<BEGIN>\n## `compare_version`",
"Compare two version strings.",
" :param a: str\n :param b: str\n :return: -1 / 0 / 1\n<END>",
"<BEGIN>\n## `get_ecosystem_solver`",
"Get Solver subclass instance for particular ecosystem.",
" :param ecosystem_name: name of ecosystem for which solver should be ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _pipdeptree API.
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 _pipdeptree API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | Get pip dependency tree by executing pipdeptree tool. | "Get pip dependency tree by executing pipdeptree tool." | 41 | false | thoth-station/solver | _pipdeptree | 24,345 | |
LDU_FT/toumorokoshi/transmute-core/process_result | LDU_FT | [
"<BEGIN>\n## `from_argspec`",
"retrieve a FunctionSignature object\n from the argspec and the annotations passed.\n<END>",
"<BEGIN>\n## `split_args`",
"given a dictionary of arguments, split them into\n args and kwargs",
" note: this destroys the arg_dict passed. if you need it,\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the process_result API.
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 process_result API.
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... | process a result:
transmute_func: the transmute_func function that returned the response.
context: the transmute_context to use.
result: the return value of the function, which will be serialized and
returned back in the API.
exc: the exception object. For Python 2, the traceback should
... | "process a result:\n\n transmute_func: the transmute_func function that returned the response.\n\n context: the transmute_context to use.\n\n result: the return value of the function, which will be serialized and\n returned back in the API.\n\n exc: the exception object. For Python 2, the traceba... | 100 | false | toumorokoshi/transmute-core | process_result | 24,346 | |
LDU_FT/jmgilman/Neolib/getProxyForObject | LDU_FT | [
"<BEGIN>\n## `installed`",
"Returns whether or not Google Chrome is installed",
" Determines the application data path for Google Chrome\n and checks if the path exists. If so, returns True, otherwise\n it will return False.",
" Returns\n bool - True if Chrome is installe... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the getProxyForObject API.
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 getProxyForObject API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | Returns the proxied version of C{obj} as stored in the context, or
creates a new proxied object and returns that.
@see: L{pyamf.flex.proxy_object}
@since: 0.6 | "Returns the proxied version of C{obj} as stored in the context, or\n creates a new proxied object and returns that.\n\n @see: L{pyamf.flex.proxy_object}\n @since: 0.6" | 629 | false | jmgilman/Neolib | getProxyForObject | 24,347 | |
LDU_FT/Loudr/pale/_parse_handler_result | LDU_FT | [
"<BEGIN>\n## `py_doc_trim`",
"Trim a python doc string.",
" This example is nipped from https://www.python.org/dev/peps/pep-0257/,\n which describes how to conventionally format and trim docstrings.",
" It has been modified to replace single newlines with a space, but leave\n multiple consecutive ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _parse_handler_result API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _parse_handler_result API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | Parses the item(s) returned by your handler implementation.
Handlers may return a single item (payload), or a tuple that gets
passed to the Response class __init__ method of your HTTP layer.
_parse_handler_result separates the payload from the rest the tuple,
as well as providing the t... | "Parses the item(s) returned by your handler implementation.\n\n Handlers may return a single item (payload), or a tuple that gets\n passed to the Response class __init__ method of your HTTP layer.\n\n _parse_handler_result separates the payload from the rest the tuple,\n as well as providin... | 107 | false | Loudr/pale | _parse_handler_result | 24,348 | |
LDU_FT/xym-tool/xym/strip_empty_lines_forward | LDU_FT | [
"<BEGIN>\n## `hexdump`",
"Hexdump function by sbz and 7h3rAm on Github:\n (https://gist.github.com/7h3rAm/5603718).\n :param src: Source, the string to be shown in hexadecimal format\n :param length: Number of hex characters to print in one row\n :param sep: Unprintable characters representation\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the strip_empty_lines_forward API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the strip_empty_lines_forward API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi... | Skip over empty lines
:param content: parsed text
:param i: current parsed line
:return: number of skipped lined | "Skip over empty lines\n :param content: parsed text\n :param i: current parsed line\n :return: number of skipped lined" | 30 | false | xym-tool/xym | strip_empty_lines_forward | 24,349 | |
LDU_FT/inveniosoftware/invenio-jsonschemas/path_to_url | LDU_FT | [
"<BEGIN>\n## `jsonresolver_loader`",
"JSON resolver plugin that loads the schema endpoint.",
" Injected into Invenio-Records JSON resolver.\n<END>",
"<BEGIN>\n## `resolve_schema`",
"Transform JSON schemas \"allOf\".",
" This is the default schema resolver.",
" This function was created because ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the path_to_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 extra... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the path_to_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 extra... | Build URL from a path.
:param path: relative path of the schema.
:returns: The schema complete URL or ``None`` if not found. | "Build URL from a path.\n\n :param path: relative path of the schema.\n :returns: The schema complete URL or ``None`` if not found." | 42 | false | inveniosoftware/invenio-jsonschemas | path_to_url | 24,350 | |
LDU_FT/Peter-Slump/python-keycloak-client/resource_set_update | LDU_FT | [
"<BEGIN>\n## `session`",
"Get session object to benefit from connection pooling.",
" http://docs.python-requests.org/en/master/user/advanced/#session-objects",
" :rtype: requests.Session\n<END>",
"<BEGIN>\n## `open_id_connect`",
"Get OpenID Connect client",
" :param str client_id:\n... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the resource_set_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.
T... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the resource_set_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.
T... | Update a resource set.
https://docs.kantarainitiative.org/uma/rec-oauth-resource-reg-v1_0_1.html#update-resource-set
:param str token: client access token
:param str id: Identifier of the resource set
:param str name:
:param str uri: (optional)
:param str type: (optiona... | "Update a resource set.\n\n https://docs.kantarainitiative.org/uma/rec-oauth-resource-reg-v1_0_1.html#update-resource-set\n\n :param str token: client access token\n :param str id: Identifier of the resource set\n :param str name:\n :param str uri: (optional)\n :param str type:... | 118 | false | Peter-Slump/python-keycloak-client | resource_set_update | 24,351 | |
LDU_FT/JosuaKrause/quick_cache/has | LDU_FT | [
"<BEGIN>\n## `get_file`",
"Returns the file path for the given cache object.\n<END>",
"<BEGIN>\n## `remove_all_locks`",
"Removes all locks and ensures their content is written to disk.\n<END>",
"<BEGIN>\n## `get_hnd`",
"Gets a handle for the given cache file with exclusive access.\n The handle i... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the has API.
Each 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 has API.
Each 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... | Whether the cache file exists in the file system. | "Whether the cache file exists in the file system." | 14 | false | JosuaKrause/quick_cache | has | 24,352 | |
LDU_FT/abe-winter/pg13-py/saveget | LDU_FT | [
"<BEGIN>\n## `names_from_exp`",
"Return a list of AttrX and NameX from the expression.\n<END>",
"<BEGIN>\n## `classify_wherex`",
"helper for wherex_to_rowlist. returns [SingleTableCond,...], [CartesianCond,...]\n<END>",
"<BEGIN>\n## `table_to_rowlist`",
"helper for wherex_to_rowlist. (table.Table, [exp, .... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the saveget API.
Each 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 saveget API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted... | save, return old value. todo: make the expire() atomic with a redis script | "save, return old value. todo: make the expire() atomic with a redis script" | 182 | false | abe-winter/pg13-py | saveget | 24,353 | |
LDU_FT/snbuback/django_services/get_view_doc | LDU_FT | [
"<BEGIN>\n## `get_view_doc`",
"Build view documentation. Return in html format.\n If you want in markdown format, use html=False\n<END>",
"<BEGIN>\n## `wrap_accordion`",
"Wrap text_body_list in twitter bootstrap accordion. text_body_list must be list with tuple with title and body\n<END>",
"<BEGIN>\n## `... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_view_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 extr... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_view_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 extr... | Build view documentation. Return in html format.
If you want in markdown format, use html=False | "Build view documentation. Return in html format.\n If you want in markdown format, use html=False" | 43 | false | snbuback/django_services | get_view_doc | 24,354 | |
LDU_FT/vberlier/nbtlib/schema | LDU_FT | [
"<BEGIN>\n## `load`",
"Load the nbt file at the specified location.\r",
" By default, the function will figure out by itself if the file is\r\n gzipped before loading it. You can pass a boolean to the `gzipped`\r\n keyword only argument to specify explicitly whether the file is\r\n compressed or not... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the schema API.
Each 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 schema API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted ... | Create a compound tag schema.
This function is a short convenience function that makes it easy to
subclass the base `CompoundSchema` class.
The `name` argument is the name of the class and `dct` should be a
dictionnary containing the actual schema. The schema should map keys
to tag types or... | "Create a compound tag schema.\r\n\r\n This function is a short convenience function that makes it easy to\r\n subclass the base `CompoundSchema` class.\r\n\r\n The `name` argument is the name of the class and `dct` should be a\r\n dictionnary containing the actual schema. The schema should map keys\r\n ... | 66 | false | vberlier/nbtlib | schema | 24,355 | |
LDU_FT/closeio/quotequail/render_html_tree | LDU_FT | [
"<BEGIN>\n## `quote`",
"Takes a plain text message as an argument, returns a list of tuples. The\n first argument of the tuple denotes whether the text should be expanded by\n default. The second argument is the unmodified corresponding text.",
" Example: [(True, 'expanded text'), (False, '> Some quote... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the render_html_tree API.
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 render_html_tree API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | Renders the given HTML tree, and strips any wrapping that was applied in
get_html_tree().
You should avoid further processing of the given tree after calling this
method because we modify namespaced tags here. | "Renders the given HTML tree, and strips any wrapping that was applied in\n get_html_tree().\n\n You should avoid further processing of the given tree after calling this\n method because we modify namespaced tags here." | 65 | false | closeio/quotequail | render_html_tree | 24,356 | |
LDU_FT/HazyResearch/pdftotree/traverse_layout | LDU_FT | [
"<BEGIN>\n## `_retain_centroids`",
"Only keep one number for each cluster within thres of each other\n<END>",
"<BEGIN>\n## `_split_vlines_hlines`",
"Separates lines into horizontal and vertical ones\n<END>",
"<BEGIN>\n## `_mark_grid_bounds`",
"Assume all lines define a complete grid over the region_bbox.\... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the traverse_layout API.
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 traverse_layout API.
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... | Tree walker and invokes the callback as it
traverse pdf object tree | "Tree walker and invokes the callback as it\n traverse pdf object tree" | 113 | false | HazyResearch/pdftotree | traverse_layout | 24,357 | |
LDU_FT/collectiveacuity/jsonModel/_validate_dict | LDU_FT | [
"<BEGIN>\n## `tabulate`",
"a function to add the tabulate method to a jsonModel object",
" :param json_model: jsonModel object\n :return: jsonModel object\n<END>",
"<BEGIN>\n## `_evaluate_field`",
"a helper method for evaluating record values based upon query criteria",
" :param record_dict: ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _validate_dict API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ex... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _validate_dict API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ex... | a helper method for recursively validating keys in dictionaries
:return input_dict | "a helper method for recursively validating keys in dictionaries\n\n :return input_dict" | 65 | false | collectiveacuity/jsonModel | _validate_dict | 24,358 | |
LDU_FT/BD2KOnFHIR/fhirtordf/is_atom | LDU_FT | [
"<BEGIN>\n## `namespace_for`",
"Reverse namespace lookup. Note that returned namespace may not be unique\n :param uri: namespace URI\n :return: namespace\n<END>",
"<BEGIN>\n## `known_formats`",
"Return a list of available formats in rdflib for the required task\n :param use: task (typically Serializ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_atom API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_atom API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted... | Determine whether predicate is an 'atomic' type -- i.e it doesn't use a FHIR value representation
:param pred: type to test
:return: | "Determine whether predicate is an 'atomic' type -- i.e it doesn't use a FHIR value representation\n :param pred: type to test\n :return:" | 75 | false | BD2KOnFHIR/fhirtordf | is_atom | 24,359 | |
LDU_FT/inveniosoftware/invenio-userprofiles/_update_with_csrf_disabled | LDU_FT | [
"<BEGIN>\n## `register_form_factory`",
"Factory for creating an extended user registration form.\n<END>",
"<BEGIN>\n## `confirm_register_form_factory`",
"Factory for creating a confirm register form.\n<END>",
"<BEGIN>\n## `_update_with_csrf_disabled`",
"Update the input dict with CSRF disabled depending o... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _update_with_csrf_disabled 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 _update_with_csrf_disabled API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclus... | Update the input dict with CSRF disabled depending on WTF-Form version.
From Flask-WTF 0.14.0, `csrf_enabled` param has been deprecated in favor of
`meta={csrf: True/False}`. | "Update the input dict with CSRF disabled depending on WTF-Form version.\n\n From Flask-WTF 0.14.0, `csrf_enabled` param has been deprecated in favor of\n `meta={csrf: True/False}`." | 20 | false | inveniosoftware/invenio-userprofiles | _update_with_csrf_disabled | 24,360 | |
LDU_FT/underworldcode/stripy/midpoint_refine_triangulation_by_vertices | LDU_FT | [
"<BEGIN>\n## `install_documentation`",
"Install the example notebooks for litho1pt0 in the given location",
" WARNING: If the path exists, the Notebook files will be written into the path\n and will overwrite any existing files with which they collide. The default\n path (\"./Litho1pt0-Notebooks\") is ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the midpoint_refine_triangulation_by_vertices API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indica... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the midpoint_refine_triangulation_by_vertices API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indica... | return points defining a refined triangulation obtained by bisection of all edges
in the triangulation connected to any of the vertices in the list provided | "return points defining a refined triangulation obtained by bisection of all edges\n in the triangulation connected to any of the vertices in the list provided" | 224 | false | underworldcode/stripy | midpoint_refine_triangulation_by_vertices | 24,361 | |
LDU_FT/carlosp420/dataset-creator/convert_blocks_to_string | LDU_FT | [
"<BEGIN>\n## `split_data`",
"Splits the list of SeqRecordExpanded objects into lists, which are\n kept into a bigger list.",
" If the file_format is Nexus, then it is only partitioned by gene. If it\n is FASTA, then it needs partitioning by codon positions if required.",
" Example:... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the convert_blocks_to_string 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 convert_blocks_to_string API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio... | New method, only in MegaDatasetBlock class.
:return: flattened data blocks as string | "New method, only in MegaDatasetBlock class.\n\n :return: flattened data blocks as string" | 54 | false | carlosp420/dataset-creator | convert_blocks_to_string | 24,362 | |
LDU_FT/StanfordBioinformatics/scgpm_seqresults_dnanexus/download_fastqs | LDU_FT | [
"<BEGIN>\n## `log_file_name`",
"Function : Creates a logfile name, named after this script and includes the number of seconds since the Epoch.\n An optional extension can be specified to make the logfile name more meaningful regarding its purpose.\n Args : ext - The extension to add to the log fi... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the download_fastqs API.
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 download_fastqs API.
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... | Downloads all FASTQ files in the project that match the specified barcode, or if a barcode
isn't given, all FASTQ files as in this case it is assumed that this is not a multiplexed
experiment. Files are downloaded to the directory specified by dest_dir.
Args:
barcode: `str`. ... | "Downloads all FASTQ files in the project that match the specified barcode, or if a barcode \n isn't given, all FASTQ files as in this case it is assumed that this is not a multiplexed \n experiment. Files are downloaded to the directory specified by dest_dir. \n \n Args:\n barcode: `... | 63 | false | StanfordBioinformatics/scgpm_seqresults_dnanexus | download_fastqs | 24,363 | |
LDU_FT/ch3pjw/junction/_override_sugar | LDU_FT | [
"<BEGIN>\n## `_do_crop`",
"Crops a list of strings to the specified width/height\n<END>",
"<BEGIN>\n## `_set_align`",
"We define a setter because it's better to diagnose this kind of\n programmatic error here than have to work out why alignment is odd when\n we sliently fail!\n<END>",
"<BEGIN>... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _override_sugar API.
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 _override_sugar API.
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... | Use this decorator to override an attribute that is specified in
blessings' sugar dict with your own function that adds some additional
functionality. | "Use this decorator to override an attribute that is specified in\n blessings' sugar dict with your own function that adds some additional\n functionality." | 37 | false | ch3pjw/junction | _override_sugar | 24,364 | |
LDU_FT/MarcoFavorito/flloat/p_path | LDU_FT | [
"<BEGIN>\n## `all_models`",
"Find all the possible interpretations given a set of symbols\n<END>",
"<BEGIN>\n## `minimal_models`",
"Find models of min size (i.e. the less number of proposition to True).\n Very trivial (and inefficient) algorithm: BRUTE FORCE on all the possible interpretations.\n<END>"... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the p_path API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the p_path API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted ... | path : path UNION path
| path SEQ path
| path STAR
| temp_formula TEST
| propositional | "path : path UNION path\n | path SEQ path\n | path STAR\n | temp_formula TEST\n | propositional" | 22 | false | MarcoFavorito/flloat | p_path | 24,365 | |
LDU_FT/mila/pyoo/_clean_index | LDU_FT | [
"<BEGIN>\n## `str_repr`",
"Implements string conversion methods for the given class.",
" The given class must implement the __str__ method. This decorat\n will add __repr__ and __unicode__ (for Python 2).\n<END>",
"<BEGIN>\n## `_clean_slice`",
"Validates and normalizes a cell range slice.",
" >>>... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _clean_index API.
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 _clean_index API.
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... | Validates and normalizes a cell range index.
>>> _clean_index(0, 10)
0
>>> _clean_index(-10, 10)
0
>>> _clean_index(10, 10)
Traceback (most recent call last):
...
IndexError: Cell index out of range.
>>> _clean_index(-11, 10)
Traceback (most recent call last):
...
IndexE... | "Validates and normalizes a cell range index.\n\n >>> _clean_index(0, 10)\n 0\n >>> _clean_index(-10, 10)\n 0\n >>> _clean_index(10, 10)\n Traceback (most recent call last):\n ...\n IndexError: Cell index out of range.\n >>> _clean_index(-11, 10)\n Traceback (most recent call last):\n .... | 70 | false | mila/pyoo | _clean_index | 24,366 | |
LDU_FT/nschloe/meshplex/_mark_vertices | LDU_FT | [
"<BEGIN>\n## `create_cell_volumes`",
"Computes the volumes of the \"cells\" in the mesh.\n<END>",
"<BEGIN>\n## `create_control_volumes`",
"Compute the control volumes of all nodes in the mesh.\n<END>",
"<BEGIN>\n## `get_signed_simplex_volumes`",
"Signed volume of a simplex in nD. Note that signing only ma... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _mark_vertices API.
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 _mark_vertices API.
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... | Mark faces/edges which are fully in subdomain. | "Mark faces/edges which are fully in subdomain." | 44 | false | nschloe/meshplex | _mark_vertices | 24,367 | |
LDU_FT/CleanCut/green/isPackage | LDU_FT | [
"<BEGIN>\n## `toParallelTargets`",
"Produce a list of targets which should be tested in parallel.",
" For the most part this will be a list of test modules. The exception is\n when a dotted name representing something more granular than a module\n was input (like an individal test case or test method)... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the isPackage API.
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 isPackage API.
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... | Determine whether or not a given path is a (sub)package or not. | "Determine whether or not a given path is a (sub)package or not." | 33 | false | CleanCut/green | isPackage | 24,368 | |
LDU_FT/RockFeng0/rtsf/get_value_from_cfg | LDU_FT | [
"<BEGIN>\n## `get_summary`",
"summarize the report data\r\n @param list_all: a list which save the report data\r\n @param kwargs: such as\r\n show_all: True/False report show all status cases\r\n proj_name: project name \r\n home_page: ho... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_value_from_cfg 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_value_from_cfg 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... | initial the configuration with file that you specify
Sample usage:
config = get_value_from_cfg()
return:
return a dict -->config[section][option] such as config["twsm"]["dut_ip"] | "initial the configuration with file that you specify \r\n Sample usage: \r\n config = get_value_from_cfg() \r\n return:\r\n return a dict -->config[section][option] such as config[\"twsm\"][\"dut_ip\"]" | 53 | false | RockFeng0/rtsf | get_value_from_cfg | 24,369 | |
LDU_FT/useblocks/sphinxcontrib-needs/process_needlist | LDU_FT | [
"<BEGIN>\n## `row_col_maker`",
"Creates and returns a column.",
" :param app: current sphinx app\n :param fromdocname: current document\n :param all_needs: Dictionary of all need objects\n :param need_info: need_info object, which stores all related need data\n :param need_key: The key to access ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the process_needlist API.
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 process_needlist API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | Replace all needlist nodes with a list of the collected needs.
Augment each need with a backlink to the original location. | "Replace all needlist nodes with a list of the collected needs.\n Augment each need with a backlink to the original location." | 155 | false | useblocks/sphinxcontrib-needs | process_needlist | 24,370 | |
LDU_FT/marrow/schema/loads | LDU_FT | [
"<BEGIN>\n## `_validators`",
"Iterate across the complete set of child validators.\n<END>",
"<BEGIN>\n## `_process_arguments`",
"Map positional to keyword arguments, identify invalid assignments, and return the result.",
"\t\tThis is likely generic enough to be useful as a standalone utility function, and g... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the loads API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted d... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the loads API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted d... | Attempt to load a string-based value into the native representation.
Empty strings are treated as ``None`` values. | "Attempt to load a string-based value into the native representation.\n\t\t\n\t\tEmpty strings are treated as ``None`` values." | 28 | false | marrow/schema | loads | 24,371 | |
LDU_FT/developersociety/django-glitter/object_version_choices | LDU_FT | [
"<BEGIN>\n## `get_templates`",
"Return a list of templates usable by a model.\n<END>",
"<BEGIN>\n## `attach`",
"Registers the given layout(s) classes\n admin site:",
" @pages.register(Page)\n class Default(PageLayout):\n pass\n<END>",
"<BEGIN>\n## `get_formset`",
"Default user to the cur... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the object_version_choices 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 object_version_choices 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 list of form choices for versions of this object which can be published. | "Return a list of form choices for versions of this object which can be published." | 80 | false | developersociety/django-glitter | object_version_choices | 24,372 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.