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/bretth/woven/_restore_file | LDU_FT | [
"<BEGIN>\n## `setupnode`",
"Install a baseline host. Can be run multiple times\n<END>",
"<BEGIN>\n## `add_repositories`",
"Adds additional sources as defined in LINUX_PACKAGE_REPOSITORIES.\n<END>",
"<BEGIN>\n## `change_ssh_port`",
"For security woven changes the default ssh port.\n<END>",
"<BEGIN>\n## `... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _restore_file API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _restore_file API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | Restore a file if it exists and remove the backup | "Restore a file if it exists and remove the backup" | 140 | false | bretth/woven | _restore_file | 36,573 | |
LDU_FT/OCA/odoorpc/_check_relation | LDU_FT | [
"<BEGIN>\n## `commit`",
"Commit dirty records to the server. This method is automatically\n called when the `auto_commit` option is set to `True` (default).\n It can be useful to set the former option to `False` to get better\n performance by reducing the number of RPC requests generated.",
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _check_relation API.
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 _check_relation API.
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... | Raise a `ValueError` if `relation` is not allowed among
the possible values. | "Raise a `ValueError` if `relation` is not allowed among\n the possible values." | 264 | false | OCA/odoorpc | _check_relation | 36,574 | |
LDU_FT/ethereum/web3.py/address | LDU_FT | [
"<BEGIN>\n## `solidityKeccak`",
"Executes keccak256 exactly as Solidity does.\n Takes list of abi_types as inputs -- `[uint24, int8[], bool]`\n and list of corresponding values -- `[20, [-1, 5, 0], True]`\n<END>",
"<BEGIN>\n## `gas_price_strategy_middleware`",
"Includes a gas price using the ga... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the address API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the address API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted... | Should be called to get client direct address
@method address
@returns {String} client direct address | "Should be called to get client direct address\n\n @method address\n @returns {String} client direct address" | 268 | false | ethereum/web3.py | address | 36,575 | |
LDU_FT/tumblr/pytumblr/post | LDU_FT | [
"<BEGIN>\n## `new_oauth`",
"Return the consumer and oauth tokens with three-legged OAuth process and\n save in a yaml file in the user's home directory.\n<END>",
"<BEGIN>\n## `validate_params`",
"Helps us validate the parameters for the request",
" :param valid_options: a list of strings of valid opti... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the post API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted do... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the post API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted do... | Issues a POST request against the API, allows for multipart data uploads
:param url: a string, the url you are requesting
:param params: a dict, the key-value of all the parameters needed
in the request
:param files: a list, the list of tuples of files
:returns: ... | "Issues a POST request against the API, allows for multipart data uploads\n\n :param url: a string, the url you are requesting\n :param params: a dict, the key-value of all the parameters needed\n in the request\n :param files: a list, the list of tuples of files\n\n :r... | 126 | false | tumblr/pytumblr | post | 36,576 | |
LDU_FT/Thermondo/django-heroku-connect/related | LDU_FT | [
"<BEGIN>\n## `_replaced`",
"Replace elements in iterable with values from an alias dict, suppressing empty values.",
" Used to consistently enhance how certain fields are displayed in list and detail pages.\n<END>",
"<BEGIN>\n## `_get_admin_route_name`",
"Get the base name of the admin route for a model ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the related API.
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 related API.
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... | Get a QuerySet for all trigger log objects for the same connected model.
Args:
exclude_self (bool): Whether to exclude this log object from the result list | "Get a QuerySet for all trigger log objects for the same connected model.\n\n Args:\n exclude_self (bool): Whether to exclude this log object from the result list" | 98 | false | Thermondo/django-heroku-connect | related | 36,577 | |
LDU_FT/biosignalsnotebooks/biosignalsnotebooks/write_to_file | LDU_FT | [
"<BEGIN>\n## `windowing`",
"-----\n Brief\n -----\n Function to window the input signal, that return the windowed signal.",
" -----------\n Description\n -----------\n Machine learning pipelines usually use features to represent each sample of the input signals.\n In order to extract tho... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the write_to_file API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the write_to_file API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | Class method responsible for generating a file containing the notebook object data.
----------
Parameters
----------
path : str
biosignalsnotebooks Root folder path (where the notebook will be stored).
filename : str
Defines the name of the notebook file... | "Class method responsible for generating a file containing the notebook object data.\n\n ----------\n Parameters\n ----------\n path : str\n biosignalsnotebooks Root folder path (where the notebook will be stored).\n\n filename : str\n Defines the name of the not... | 800 | false | biosignalsnotebooks/biosignalsnotebooks | write_to_file | 36,578 | |
LDU_FT/flo-compbio/genometools/smart_open_write | LDU_FT | [
"<BEGIN>\n## `sum`",
"Sum over rows or columns.",
" Overrides the default `pandas.DataFrame.sum()` function to prevent\n temporary in-memory copies.\n<END>",
"<BEGIN>\n## `get_heatmap`",
"Generate a heatmap (`ExpHeatmap`) of the matrix.",
" See :class:`ExpHeatmap` constructor for keyw... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the smart_open_write API.
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 smart_open_write API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | Open a file for writing or return ``stdout``.
Adapted from StackOverflow user "Wolph"
(http://stackoverflow.com/a/17603000). | "Open a file for writing or return ``stdout``.\n\n Adapted from StackOverflow user \"Wolph\"\n (http://stackoverflow.com/a/17603000)." | 496 | false | flo-compbio/genometools | smart_open_write | 36,579 | |
LDU_FT/Salamek/cron-descriptor/get_segment_description | LDU_FT | [
"<BEGIN>\n## `parse_cron_line`",
"Parses crontab line and returns only starting time string",
" Args:\n line: crontab line\n Returns:\n Time part of cron line\n<END>",
"<BEGIN>\n## `parse`",
"Parses the cron expression string\n Returns:\n A 7 part string... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_segment_description 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_segment_description 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 segment description
Args:
expression: Segment to descript
all_description: *
get_single_item_description: 1
get_interval_description_format: 1/2
get_between_description_format: 1-2
get_description_format: format get_single_item_desc... | "Returns segment description\n Args:\n expression: Segment to descript\n all_description: *\n get_single_item_description: 1\n get_interval_description_format: 1/2\n get_between_description_format: 1-2\n get_description_format: format get_single_i... | 52 | false | Salamek/cron-descriptor | get_segment_description | 36,580 | |
LDU_FT/deeplook/svglib/findAttr | LDU_FT | [
"<BEGIN>\n## `find_font`",
"Return the font and a Boolean indicating if the match is exact.\n<END>",
"<BEGIN>\n## `svg2rlg`",
"Convert an SVG file to an RLG Drawing object.\n<END>",
"<BEGIN>\n## `monkeypatch_reportlab`",
"https://bitbucket.org/rptlab/reportlab/issues/95/\n ReportLab always use 'Even-Od... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the findAttr API.
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 findAttr API.
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... | Search an attribute with some name in some node or above.
First the node is searched, then its style attribute, then
the search continues in the node's parent node. If no such
attribute is found, '' is returned. | "Search an attribute with some name in some node or above.\n\n First the node is searched, then its style attribute, then\n the search continues in the node's parent node. If no such\n attribute is found, '' is returned." | 40 | false | deeplook/svglib | findAttr | 36,581 | |
LDU_FT/lobocv/crashreporter/setup_smtp | LDU_FT | [
"<BEGIN>\n## `setup_smtp`",
"Set up the crash reporter to send reports via email using SMTP",
" :param host: SMTP host\n :param port: SMTP port\n :param user: sender email address\n :param passwd: sender email password\n :param recipients: list or comma separated string of rec... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the setup_smtp API.
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 setup_smtp API.
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 up the crash reporter to send reports via email using SMTP
:param host: SMTP host
:param port: SMTP port
:param user: sender email address
:param passwd: sender email password
:param recipients: list or comma separated string of recipients | "Set up the crash reporter to send reports via email using SMTP\n\n :param host: SMTP host\n :param port: SMTP port\n :param user: sender email address\n :param passwd: sender email password\n :param recipients: list or comma separated string of recipients" | 59 | false | lobocv/crashreporter | setup_smtp | 36,582 | |
LDU_FT/jschaf/ideone-api/languages | LDU_FT | [
"<BEGIN>\n## `_transform_to_dict`",
"Transform the array from Ideone into a Python dictionary.\n<END>",
"<BEGIN>\n## `_collapse_language_array`",
"Convert the Ideone language list into a Python dictionary.\n<END>",
"<BEGIN>\n## `_translate_language_name`",
"Translate a human readable langauge name into it... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the languages API.
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 languages API.
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... | Get a list of supported languages and cache it.
Examples
--------
>>> ideone_object.languages()
{'error': 'OK',
'languages': {1: "C++ (gcc-4.3.4)",
2: "Pascal (gpc) (gpc 20070904)",
...
...
... | "Get a list of supported languages and cache it.\n\n Examples\n --------\n\n >>> ideone_object.languages()\n {'error': 'OK',\n 'languages': {1: \"C++ (gcc-4.3.4)\",\n 2: \"Pascal (gpc) (gpc 20070904)\",\n ...\n ...\n ... | 45 | false | jschaf/ideone-api | languages | 36,583 | |
LDU_FT/anthill/koala/today | LDU_FT | [
"<BEGIN>\n## `max_dimension`",
"This function calculates the maximum dimension of the workbook or optionally the worksheet. It returns a tupple\n of two integers, the first being the rows and the second being the columns.",
" :param cellmap: all the cells that should be used to calculate the maximum.\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the today API.
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 today API.
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... | Note: Excel stores dates as sequential serial numbers so that they can be used in calculations.
January 1, 1900 is serial number 1, and January 1, 2008 is serial number 39448 because it is 39,447 days after January 1, 1900.
You will need to change the number format (Format Cells) in order to display a proper d... | "Note: Excel stores dates as sequential serial numbers so that they can be used in calculations.\n January 1, 1900 is serial number 1, and January 1, 2008 is serial number 39448 because it is 39,447 days after January 1, 1900.\n You will need to change the number format (Format Cells) in order to display a prope... | 38 | false | anthill/koala | today | 36,584 | |
LDU_FT/pyBookshelf/bookshelf/dir_attribs | LDU_FT | [
"<BEGIN>\n## `apt_install_from_url`",
"installs a pkg from a url\n p pkg_name: the name of the package to install\n p url: the full URL for the rpm package\n<END>",
"<BEGIN>\n## `apt_add_key`",
"trust a new PGP key related to a apt-repository\n<END>",
"<BEGIN>\n## `is_package_installed`",
"c... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the dir_attribs API.
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 dir_attribs API.
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... | cuisine dir_attribs doesn't do sudo, so we implement our own
Updates the mode/owner/group for the given remote directory. | "cuisine dir_attribs doesn't do sudo, so we implement our own\n Updates the mode/owner/group for the given remote directory." | 88 | false | pyBookshelf/bookshelf | dir_attribs | 36,585 | |
LDU_FT/CTPUG/wafer/find_duplicate_schedule_items | LDU_FT | [
"<BEGIN>\n## `build_object`",
"Override django-bakery to skip profiles that raise 404\n<END>",
"<BEGIN>\n## `generate_schedule`",
"Helper function which creates an ordered list of schedule days\n<END>",
"<BEGIN>\n## `get_context_data`",
"Allow adding a 'render_description' parameter\n<END>",
"<BEGIN>\n#... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_duplicate_schedule_items 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 find_duplicate_schedule_items API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conc... | Find talks / pages assigned to mulitple schedule items | "Find talks / pages assigned to mulitple schedule items" | 72 | false | CTPUG/wafer | find_duplicate_schedule_items | 36,586 | |
LDU_FT/rackerlabs/fastfood/create_new_cookbook | LDU_FT | [
"<BEGIN>\n## `metadata`",
"Return dict representation of this cookbook's metadata.rb .\n<END>",
"<BEGIN>\n## `berksfile`",
"Return this cookbook's Berksfile instance.\n<END>",
"<BEGIN>\n## `from_dict`",
"Create a MetadataRb instance from a dict.\n<END>",
"<BEGIN>\n## `depends_statement`",
"Return a va... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_new_cookbook 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 create_new_cookbook 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... | Create a new cookbook.
:param cookbook_name: Name of the new cookbook.
:param cookbooks_home: Target dir for new cookbook. | "Create a new cookbook.\n\n :param cookbook_name: Name of the new cookbook.\n :param cookbooks_home: Target dir for new cookbook." | 68 | false | rackerlabs/fastfood | create_new_cookbook | 36,587 | |
LDU_FT/Robpol86/etaprogress/get_info | LDU_FT | [
"<BEGIN>\n## `terminal_width`",
"Returns the terminal's width (number of character columns).\n<END>",
"<BEGIN>\n## `get_remaining_width`",
"Returns the number of characters available if sample string were to be printed in the terminal.",
" Positional arguments:\n sample_string -- gets the length of th... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_info API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracte... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_info API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracte... | Get information about this current console window (for Microsoft Windows only).
Raises IOError if attempt to get information fails (if there is no console window).
Don't forget to call _WindowsCSBI.initialize() once in your application before calling this method.
Positional arguments:
... | "Get information about this current console window (for Microsoft Windows only).\n\n Raises IOError if attempt to get information fails (if there is no console window).\n\n Don't forget to call _WindowsCSBI.initialize() once in your application before calling this method.\n\n Positional arguments:\... | 76 | false | Robpol86/etaprogress | get_info | 36,588 | |
LDU_FT/threeML/astromodels/get_flux | LDU_FT | [
"<BEGIN>\n## `angular_distance_fast`",
"Compute angular distance using the Haversine formula. Use this one when you know you will never ask for points at\n their antipodes. If this is not the case, use the angular_distance function which is slower, but works also for\n antipodes.",
" :param lon1:\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_flux API.
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_flux API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracte... | Get the total flux of this particle source at the given energies (summed over the components) | "Get the total flux of this particle source at the given energies (summed over the components)" | 240 | false | threeML/astromodels | get_flux | 36,589 | |
LDU_FT/boriel/zxbasic/sentence_bytes | LDU_FT | [
"<BEGIN>\n## `reset`",
"This is called when we need to reinitialize the instance state\n<END>",
"<BEGIN>\n## `make_node`",
"This will return a node with the symbol as a function.\n<END>",
"<BEGIN>\n## `add_string_label`",
"Maps (\"folds\") the given string, returning an unique label ID.\n This allo... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the sentence_bytes API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ex... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the sentence_bytes API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ex... | Return bytes of a sentence.
This is a very simple parser. Sentence is a list of strings and numbers.
1st element of sentence MUST match a token. | "Return bytes of a sentence.\n This is a very simple parser. Sentence is a list of strings and numbers.\n 1st element of sentence MUST match a token." | 974 | false | boriel/zxbasic | sentence_bytes | 36,590 | |
LDU_FT/MultipedRobotics/pyxl320/makeServoPacket | LDU_FT | [
"<BEGIN>\n## `makeServoIDPacket`",
"Given the current ID, returns a packet to set the servo to a new ID\n<END>",
"<BEGIN>\n## `packetToDict`",
"Given a packet, this turns it into a dictionary ... is this useful?",
"\tin: packet, array of numbers\n\tout: dictionary (key, value)\n<END>",
"<BEGIN>\n## `sweep... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the makeServoPacket API.
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 makeServoPacket API.
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... | Commands the servo to an angle (in degrees) | "Commands the servo to an angle (in degrees)" | 71 | false | MultipedRobotics/pyxl320 | makeServoPacket | 36,591 | |
LDU_FT/spacetelescope/synphot_refactor/sampleset | LDU_FT | [
"<BEGIN>\n## `overlap_status`",
"Check overlap between two arrays.",
" Parameters\n ----------\n a, b : array-like\n Arrays to check. Assumed to be in the same unit.",
" Returns\n -------\n result : {'full', 'partial', 'none'}\n * 'full' - ``a`` is within or same as ``b``\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the sampleset API.
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 sampleset API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extract... | Return ``x`` array that samples the feature.
Parameters
----------
factor_bbox : float
Factor for ``bounding_box`` calculations.
num : int
Number of points to generate. | "Return ``x`` array that samples the feature.\n\n Parameters\n ----------\n factor_bbox : float\n Factor for ``bounding_box`` calculations.\n\n num : int\n Number of points to generate." | 519 | false | spacetelescope/synphot_refactor | sampleset | 36,592 | |
LDU_FT/moonlitesolutions/SolrClient/get_facets_ranges | LDU_FT | [
"<BEGIN>\n## `get_ngroups`",
"Returns ngroups count if it was specified in the query, otherwise ValueError.",
" If grouping on more than one field, provide the field argument to specify which count you are looking for.\n<END>",
"<BEGIN>\n## `get_groups_count`",
"Returns 'matches' from group response.... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_facets_ranges API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_facets_ranges API.
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 query facet ranges ::
>>> res = solr.query('SolrClient_unittest',{
'q':'*:*',
'facet':True,
'facet.range':'price',
'facet.range.start':0,
'facet.range.end':100,
'facet.range.gap':10
})
... | "Returns query facet ranges ::\n\n >>> res = solr.query('SolrClient_unittest',{\n 'q':'*:*',\n 'facet':True,\n 'facet.range':'price',\n 'facet.range.start':0,\n 'facet.range.end':100,\n 'facet.range.gap':10\n ... | 182 | false | moonlitesolutions/SolrClient | get_facets_ranges | 36,593 | |
LDU_FT/bitcaster-io/bitcaster/warning | LDU_FT | [
"<BEGIN>\n## `process_response`",
"Update the storage backend (i.e., save the messages).",
" Raise ValueError if not all messages could be stored and DEBUG is True.\n<END>",
"<BEGIN>\n## `route`",
"A decorator that is used to register a view function for a\n given URL rule. This does the same... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the warning API.
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 warning API.
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... | Add a message with the ``WARNING`` level. | "Add a message with the ``WARNING`` level." | 71 | false | bitcaster-io/bitcaster | warning | 36,594 | |
LDU_FT/openeventdata/mordecai/read_in_admin1 | LDU_FT | [
"<BEGIN>\n## `country_list_maker`",
"Helper function to return dictionary of countries in {\"country\" : \"iso\"} form.\n<END>",
"<BEGIN>\n## `make_skip_list`",
"Return hand-defined list of place names to skip and not attempt to geolocate. If users would like to exclude\n country names, this would be the f... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the read_in_admin1 API.
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 read_in_admin1 API.
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... | Small helper function to read in a admin1 code <--> admin1 name document.
Parameters
----------
filepath: string
path to the admin1 mapping JSON. This file is usually
mordecai/resources/data/admin1CodesASCII.json
Returns
-------
admin1_dict: dictionary
... | "Small helper function to read in a admin1 code <--> admin1 name document.\n\n Parameters\n ----------\n filepath: string\n path to the admin1 mapping JSON. This file is usually\n mordecai/resources/data/admin1CodesASCII.json\n\n Returns\n -------\n admin1_dict: dictionary\n ... | 110 | false | openeventdata/mordecai | read_in_admin1 | 36,595 | |
LDU_FT/ulfalizer/Kconfiglib/load_config | LDU_FT | [
"<BEGIN>\n## `oldconfig`",
"Prompts the user for a value if node.item is a visible symbol/choice with\n no user value.\n<END>",
"<BEGIN>\n## `all_arch_srcarch_pairs`",
"Generates all valid (ARCH, SRCARCH) tuples for the kernel, corresponding to\n different architectures. SRCARCH holds the arch/ subdirec... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load_config API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load_config API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | Loads symbol values from a file in the .config format. Equivalent to
calling Symbol.set_value() to set each of the values.
"# CONFIG_FOO is not set" within a .config file sets the user value of
FOO to n. The C tools work the same way.
For each symbol, the Symbol.user_value attribute ho... | "Loads symbol values from a file in the .config format. Equivalent to\n calling Symbol.set_value() to set each of the values.\n\n \"# CONFIG_FOO is not set\" within a .config file sets the user value of\n FOO to n. The C tools work the same way.\n\n For each symbol, the Symbol.user_value att... | 139 | false | ulfalizer/Kconfiglib | load_config | 36,596 | |
LDU_FT/jic-dtool/dtoolcore/generous_parse_uri | LDU_FT | [
"<BEGIN>\n## `generous_parse_uri`",
"Return a urlparse.ParseResult object with the results of parsing the\n given URI. This has the same properties as the result of parse_uri.",
" When passed a relative path, it determines the absolute path, sets the\n scheme to file, the netloc to localhost and return... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the generous_parse_uri 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 generous_parse_uri API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
Th... | Return a urlparse.ParseResult object with the results of parsing the
given URI. This has the same properties as the result of parse_uri.
When passed a relative path, it determines the absolute path, sets the
scheme to file, the netloc to localhost and returns a parse of the result. | "Return a urlparse.ParseResult object with the results of parsing the\n given URI. This has the same properties as the result of parse_uri.\n\n When passed a relative path, it determines the absolute path, sets the\n scheme to file, the netloc to localhost and returns a parse of the result." | 111 | false | jic-dtool/dtoolcore | generous_parse_uri | 36,597 | |
LDU_FT/allenai/allennlp/main | LDU_FT | [
"<BEGIN>\n## `forward`",
"Parameters\n ----------\n inputs : ``PackedSequence``, required.\n A batch first ``PackedSequence`` to run the stacked LSTM over.\n initial_state : Tuple[torch.Tensor, torch.Tensor], optional, (default = None)\n A tuple (state, memory) represent... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the main API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted do... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the main API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted do... | Parameters
----------
data_directory : str, required.
The path to the data directory of https://github.com/jkkummerfeld/text2sql-data
which has been preprocessed using scripts/reformat_text2sql_data.py.
dataset : str, optional.
The dataset to parse. By default all are parsed.
fil... | "Parameters\n ----------\n data_directory : str, required.\n The path to the data directory of https://github.com/jkkummerfeld/text2sql-data\n which has been preprocessed using scripts/reformat_text2sql_data.py.\n dataset : str, optional.\n The dataset to parse. By default all are parsed.\... | 1,296 | true | allenai/allennlp | main | 36,598 | |
LDU_FT/spoqa/tsukkomi/typechecked | LDU_FT | [
"<BEGIN>\n## `check_type`",
"Check given ``value``'s type.",
" :param value: given argument\n :param hint: expected type of given ``value``.\n as like :mod:`typing` interprets, :const:`None` is interpreted\n as :class:`types.NoneType`\n :type hint: :class:`typing.Optiona... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the typechecked API.
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 typechecked API.
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... | A decorator to make a callable object checks its types
.. code-block:: python
from typing import Callable
@typechecked
def foobar(x: str) -> bool:
return x == 'hello world'
@typechecked
def hello_world(foo: str, bar: Callable[[str], bool]) -> bool:
retur... | "A decorator to make a callable object checks its types\n\n .. code-block:: python\n\n from typing import Callable\n\n @typechecked\n def foobar(x: str) -> bool:\n return x == 'hello world'\n\n\n @typechecked\n def hello_world(foo: str, bar: Callable[[str], bool]) -> bool:\n ... | 26 | false | spoqa/tsukkomi | typechecked | 36,599 | |
LDU_FT/msoulier/tftpy/__create | LDU_FT | [
"<BEGIN>\n## `parse`",
"This method is used to parse an existing datagram into its\n corresponding TftpPacket object. The buffer is the raw bytes off of\n the network.\n<END>",
"<BEGIN>\n## `__create`",
"This method returns the appropriate class object corresponding to\n the passed opcode... | 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 extracte... | 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 extracte... | This method returns the appropriate class object corresponding to
the passed opcode. | "This method returns the appropriate class object corresponding to\n the passed opcode." | 70 | false | msoulier/tftpy | __create | 36,600 | |
LDU_FT/google/python-gflags/FindModuleDefiningFlag | LDU_FT | [
"<BEGIN>\n## `GetRealPath`",
"Given an executable filename, find in the PATH or find absolute path.\n Args:\n filename An executable filename (string)\n Returns:\n Absolute version of filename.\n None if filename could not be found locally, absolutely, or in PATH\n<END>",
"<BEGIN>\n## `Run`",
"Run... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the FindModuleDefiningFlag 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 FindModuleDefiningFlag 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 the name of the module defining this flag, or default.
Args:
flagname: Name of the flag to lookup.
default: Value to return if flagname is not defined. Defaults
to None.
Returns:
The name of the module which registered the flag with this name.
If no such module exists ... | "Return the name of the module defining this flag, or default.\n\n Args:\n flagname: Name of the flag to lookup.\n default: Value to return if flagname is not defined. Defaults\n to None.\n\n Returns:\n The name of the module which registered the flag with this name.\n If no such modu... | 243 | false | google/python-gflags | FindModuleDefiningFlag | 36,601 | |
LDU_FT/MonashBI/arcana/get_checksums | LDU_FT | [
"<BEGIN>\n## `satisfy`",
"Checks whether the given requirements are satisfiable within the given\n execution context",
" Parameter\n ---------\n requirements : list(Requirement)\n List of requirements to check whether they are satisfiable\n<END>",
"<BEGIN>\n## `connect`"... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_checksums API.
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_checksums API.
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... | Downloads the MD5 digests associated with the files in the file-set.
These are saved with the downloaded files in the cache and used to
check if the files have been updated on the server
Parameters
----------
resource : xnat.ResourceCatalog
The xnat resource
... | "Downloads the MD5 digests associated with the files in the file-set.\n These are saved with the downloaded files in the cache and used to\n check if the files have been updated on the server\n\n Parameters\n ----------\n resource : xnat.ResourceCatalog\n The xnat resource\... | 275 | false | MonashBI/arcana | get_checksums | 36,602 | |
LDU_FT/jason-weirather/py-seq-tools/_get_block | LDU_FT | [
"<BEGIN>\n## `sort_ranges`",
"from an array of ranges, make a sorted array of ranges",
" :param inranges: List of GenomicRange data\n :type inranges: GenomicRange[]\n :returns: a new sorted GenomicRange list\n :rtype: GenomicRange[]\n<END>",
"<BEGIN>\n## `merge_ranges`",
"from a list of genomic range or... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_block API.
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_block API.
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... | Just read a single block from your current location in _fh | "Just read a single block from your current location in _fh" | 449 | false | jason-weirather/py-seq-tools | _get_block | 36,603 | |
LDU_FT/sparklingpandas/sparklingpandas/groups | LDU_FT | [
"<BEGIN>\n## `_prep_pandas_groupby`",
"Prepare the old school pandas group by based approach.\n<END>",
"<BEGIN>\n## `_group`",
"Group together the values with the same key.\n<END>",
"<BEGIN>\n## `groups`",
"Returns dict {group name -> group labels}.\n<END>",
"<BEGIN>\n## `indices`",
"Returns dict {gro... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the groups API.
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 groups API.
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 dict {group name -> group labels}. | "Returns dict {group name -> group labels}." | 87 | false | sparklingpandas/sparklingpandas | groups | 36,604 | |
LDU_FT/joerick/pyinstrument/exit_frames | LDU_FT | [
"<BEGIN>\n## `file_supports_color`",
"Returns True if the running system's terminal supports color.",
" Borrowed from Django\n https://github.com/django/django/blob/master/django/core/management/color.py\n<END>",
"<BEGIN>\n## `load_report`",
"Returns the session referred to by identifier\n<END>",
"<... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the exit_frames API.
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 exit_frames API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | Returns a list of frames whose children include a frame outside of the group | "Returns a list of frames whose children include a frame outside of the group" | 43 | false | joerick/pyinstrument | exit_frames | 36,605 | |
LDU_FT/Komnomnomnom/swigibpy/reqMktDepth | LDU_FT | [
"<BEGIN>\n## `placeOrder`",
"placeOrder(EClient self, OrderId id, Contract contract, Order order)\n<END>",
"<BEGIN>\n## `reqMktDepth`",
"reqMktDepth(EClient self, TickerId id, Contract contract, int numRows, TagValueListSPtr const & mktDepthOptions)\n<END>",
"<BEGIN>\n## `exerciseOptions`",
"exerciseOptio... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the reqMktDepth API.
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 reqMktDepth API.
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... | reqMktDepth(EClient self, TickerId id, Contract contract, int numRows, TagValueListSPtr const & mktDepthOptions) | "reqMktDepth(EClient self, TickerId id, Contract contract, int numRows, TagValueListSPtr const & mktDepthOptions)" | 81 | false | Komnomnomnom/swigibpy | reqMktDepth | 36,606 | |
LDU_FT/MacHu-GWU/pymongo_mate-project/_load | LDU_FT | [
"<BEGIN>\n## `read_csv_arg_preprocess`",
"Automatically decide if we need to use iterator mode to read a csv file.",
" :param abspath: csv file absolute path.\n :param memory_usage: max memory will be used for pandas.read_csv().\n<END>",
"<BEGIN>\n## `smart_insert`",
"An optimized Insert strategy.",
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _load API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted d... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _load API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted d... | Load :class:`mongomock.database.Database` from dict data. | "Load :class:`mongomock.database.Database` from dict data." | 188 | false | MacHu-GWU/pymongo_mate-project | _load | 36,607 | |
LDU_FT/spatialaudio/python-pa-ringbuffer/read | LDU_FT | [
"<BEGIN>\n## `init`",
"Return RingBuffer class using the given CFFI instance.\n<END>",
"<BEGIN>\n## `write`",
"Write data to the ring buffer.",
" This advances the write index after writing;\n calling :meth:`advance_write_index` is *not* necessary.",
" :param data: Data to write to th... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the read API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted do... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the read API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted do... | Read data from the ring buffer into a new buffer.
This advances the read index after reading;
calling :meth:`advance_read_index` is *not* necessary.
:param size: The number of elements to be read.
If not specified, all available elements are read.
:type size: int, optional
... | "Read data from the ring buffer into a new buffer.\n\n This advances the read index after reading;\n calling :meth:`advance_read_index` is *not* necessary.\n\n :param size: The number of elements to be read.\n If not specified, all available elements are read.\n :type size: int, o... | 27 | false | spatialaudio/python-pa-ringbuffer | read | 36,608 | |
LDU_FT/howl-anderson/MicroTokenizer/create_tokenizer | LDU_FT | [
"<BEGIN>\n## `create_tokenizer`",
"Create a pipeline component from a factory.",
" name (unicode): Factory name to look up in `Language.factories`.\n config (dict): Configuration parameters to initialise component.\n RETURNS (callable): Pipeline component.\n<END>",
"<BEGIN>\n## `add_codes... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_tokenizer API.
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 create_tokenizer API.
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 a pipeline component from a factory.
name (unicode): Factory name to look up in `Language.factories`.
config (dict): Configuration parameters to initialise component.
RETURNS (callable): Pipeline component. | "Create a pipeline component from a factory.\n\n name (unicode): Factory name to look up in `Language.factories`.\n config (dict): Configuration parameters to initialise component.\n RETURNS (callable): Pipeline component." | 43 | false | howl-anderson/MicroTokenizer | create_tokenizer | 36,609 | |
LDU_FT/campaignmonitor/createsend-python/get | LDU_FT | [
"<BEGIN>\n## `authorize_url`",
"Get the authorization URL for your application, given the application's\n client_id, redirect_uri, scope, and optional state data.\n<END>",
"<BEGIN>\n## `exchange_token`",
"Exchange a provided OAuth code for an OAuth access token, 'expires in'\n value and refresh ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted doc... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted doc... | Gets a subscriber by list ID and email address. | "Gets a subscriber by list ID and email address." | 73 | false | campaignmonitor/createsend-python | get | 36,610 | |
LDU_FT/raphaelvallat/pingouin/_expand_numparse | LDU_FT | [
"<BEGIN>\n## `plot_blandaltman`",
"Generate a Bland-Altman plot to compare two sets of measurements.",
" Parameters\n ----------\n x, y : np.array or list\n First and second measurements.\n agreement : float\n Multiple of the standard deviation to plot limit of agreement bounds.\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _expand_numparse API.
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 _expand_numparse API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | Return a list of bools of length `column_count` which indicates whether
number parsing should be used on each column.
If `disable_numparse` is a list of indices, each of those indices are False,
and everything else is True.
If `disable_numparse` is a bool, then the returned list is all the same. | "Return a list of bools of length `column_count` which indicates whether\n number parsing should be used on each column.\n If `disable_numparse` is a list of indices, each of those indices are False,\n and everything else is True.\n If `disable_numparse` is a bool, then the returned list is all the same." | 1,159 | true | raphaelvallat/pingouin | _expand_numparse | 36,611 | |
LDU_FT/tensorflow/datasets/_make_reserved_tokens_re | LDU_FT | [
"<BEGIN>\n## `_decode_image`",
"Reads and decodes an image from a file object as a Numpy array.",
" The SUN dataset contains images in several formats (despite the fact that\n all of them have .jpg extension). Some of them are:\n - BMP (RGB)\n - PNG (grayscale, RGBA, RGB interlaced)\n - JPEG (RGB)\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _make_reserved_tokens_re API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _make_reserved_tokens_re API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio... | Constructs compiled regex to parse out reserved tokens. | "Constructs compiled regex to parse out reserved tokens." | 609 | false | tensorflow/datasets | _make_reserved_tokens_re | 36,612 | |
LDU_FT/openspending/babbage/fact_pk | LDU_FT | [
"<BEGIN>\n## `count_results`",
"Get the count of records matching the query.\n<END>",
"<BEGIN>\n## `generate_results`",
"Generate the resulting records for this query, applying pagination.\n Values will be returned by their reference.\n<END>",
"<BEGIN>\n## `apply`",
"Sort on a set of field specificatio... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the fact_pk API.
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 fact_pk API.
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... | Try to determine the primary key of the fact table for use in
fact table counting.
If more than one column exists, return the first column of the pk. | "Try to determine the primary key of the fact table for use in\n fact table counting. \n If more than one column exists, return the first column of the pk." | 66 | false | openspending/babbage | fact_pk | 36,613 | |
LDU_FT/pyviz/holoviews/set_server_callback | LDU_FT | [
"<BEGIN>\n## `initialize_plot`",
"Initializes a new plot object with the last available frame.\n<END>",
"<BEGIN>\n## `_get_axis_dims`",
"Returns the dimensions corresponding to each axis.",
" Should return a list of dimensions or list of lists of\n dimensions, which will be formatted to label ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_server_callback API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
T... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_server_callback API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
T... | Set up on_change events for bokeh server interactions. | "Set up on_change events for bokeh server interactions." | 1,961 | true | pyviz/holoviews | set_server_callback | 36,614 | |
LDU_FT/klahnakoski/mo-json/scrub | LDU_FT | [
"<BEGIN>\n## `pypy_json_encode`",
"pypy DOES NOT OPTIMIZE GENERATOR CODE WELL\n<END>",
"<BEGIN>\n## `unicode_key`",
"CONVERT PROPERTY VALUE TO QUOTED NAME OF SAME\n<END>",
"<BEGIN>\n## `parse`",
"INTENDED TO TREAT JSON AS A STREAM; USING MINIMAL MEMORY WHILE IT ITERATES\n THROUGH THE STRUCTURE. ASSUMI... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the scrub API.
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 scrub API.
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... | REMOVE/REPLACE VALUES THAT CAN NOT BE JSON-IZED | "REMOVE/REPLACE VALUES THAT CAN NOT BE JSON-IZED" | 20 | false | klahnakoski/mo-json | scrub | 36,615 | |
LDU_FT/solocompt/plugs-core/random_string | LDU_FT | [
"<BEGIN>\n## `get_db_distinct`",
"Checks if a field / value pair exists in database\n and continues generating values until it finds\n a one that does not exist",
" func is the function that generates values and\n params is the parameters that function takes\n<END>",
"<BEGIN>\n## `get_model_class`... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the random_string API.
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 random_string API.
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... | By default generates a random string of 10 chars composed
of digits and ascii lowercase letters. String length and pool can
be override by using kwargs. Pool must be a list of strings | "By default generates a random string of 10 chars composed\n of digits and ascii lowercase letters. String length and pool can\n be override by using kwargs. Pool must be a list of strings" | 20 | false | solocompt/plugs-core | random_string | 36,616 | |
LDU_FT/bykof/billomapy/update_delivery_note | LDU_FT | [
"<BEGIN>\n## `_create_get_request`",
"Creates a get request and return the response data\n<END>",
"<BEGIN>\n## `_create_put_request`",
"Creates a put request and return the response data\n<END>",
"<BEGIN>\n## `_create_delete_request`",
"Creates a post request and return the response data\n<END>",
"<BEGI... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update_delivery_note API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update_delivery_note API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | Updates a delivery note
:param delivery_note_id: the delivery note id
:param delivery_note_dict: dict
:return: dict | "Updates a delivery note\n\n :param delivery_note_id: the delivery note id\n :param delivery_note_dict: dict\n :return: dict" | 502 | false | bykof/billomapy | update_delivery_note | 36,617 | |
LDU_FT/tkem/uritools/getquerydict | LDU_FT | [
"<BEGIN>\n## `urijoin`",
"Convert a URI reference relative to a base URI to its target URI\n string.\n<END>",
"<BEGIN>\n## `uridefrag`",
"Remove an existing fragment component from a URI reference string.\n<END>",
"<BEGIN>\n## `geturi`",
"Return the recombined version of the original URI as a string.\n... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the getquerydict API.
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 getquerydict API.
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... | Split the query component into individual `name=value` pairs
separated by `sep` and return a dictionary of query variables.
The dictionary keys are the unique query variable names and
the values are lists of values for each name. | "Split the query component into individual `name=value` pairs\n separated by `sep` and return a dictionary of query variables.\n The dictionary keys are the unique query variable names and\n the values are lists of values for each name." | 45 | false | tkem/uritools | getquerydict | 36,618 | |
LDU_FT/orbeckst/RecSQL/connection_count | LDU_FT | [
"<BEGIN>\n## `make_python_name`",
"Returns a unicode string that can be used as a legal python identifier.",
" :Arguments:\n *s*\n string\n *default*\n use *default* if *s* is ``None``\n *number_prefix*\n string to prepend if *s* starts with a number\n<END>",
"<BEGIN>... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the connection_count API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the connection_count API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | Number of currently open connections to the database.
(Stored in table sqlarray_master.) | "Number of currently open connections to the database.\n\n (Stored in table sqlarray_master.)" | 96 | false | orbeckst/RecSQL | connection_count | 36,619 | |
LDU_FT/materialsvirtuallab/monty/nPr | LDU_FT | [
"<BEGIN>\n## `zopen`",
"This function wraps around the bz2, gzip and standard python's open\n function to deal intelligently with bzipped, gzipped or standard text\n files.",
" Args:\n filename (str/Path): filename or pathlib.Path.\n \\*args: Standard args for python open(..). E.g., 'r' f... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the nPr API.
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 nPr API.
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... | Calculates nPr.
Args:
n (int): total number of items.
r (int): items to permute
Returns:
nPr. | "Calculates nPr.\n\n Args:\n n (int): total number of items.\n r (int): items to permute\n\n Returns:\n nPr." | 238 | false | materialsvirtuallab/monty | nPr | 36,620 | |
LDU_FT/ANTsX/ANTsPy/transform | LDU_FT | [
"<BEGIN>\n## `smooth_image`",
"Smooth an image",
" ANTsR function: `smoothImage`",
" Arguments\n ---------\n image \n Image to smooth",
" sigma \n Smoothing factor. Can be scalar, in which case the same sigma is applied to each dimension, or a vector of length dim(inimage) t... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the transform API.
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 transform API.
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... | Transform an image using an Affine transform with
translation parameters randomly generated from the user-specified
range. Return the transform if X=None.
Arguments
---------
X : ANTsImage
Image to transform
y : ANTsImage (optional)
Another ima... | "Transform an image using an Affine transform with\n translation parameters randomly generated from the user-specified\n range. Return the transform if X=None.\n\n Arguments\n ---------\n X : ANTsImage\n Image to transform\n\n y : ANTsImage (optional)\n ... | 1,176 | true | ANTsX/ANTsPy | transform | 36,621 | |
LDU_FT/openvax/topiary/load_cufflinks_dataframe | LDU_FT | [
"<BEGIN>\n## `transcript_sort_key`",
"Key function used to sort transcripts. Taking the negative of\n protein sequence length and nucleotide sequence length so that\n the transcripts with longest sequences come first in the list. This couldn't\n be accomplished with `reverse=True` since we're also sortin... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load_cufflinks_dataframe API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load_cufflinks_dataframe API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio... | Loads a Cufflinks tracking file, which contains expression levels
(in FPKM: Fragments Per Kilobase of transcript per Million fragments)
for transcript isoforms or whole genes. These transcripts/genes may be
previously known (in which case they have an Ensembl ID) or a novel
assembly from the RNA-Seq dat... | "Loads a Cufflinks tracking file, which contains expression levels\n (in FPKM: Fragments Per Kilobase of transcript per Million fragments)\n for transcript isoforms or whole genes. These transcripts/genes may be\n previously known (in which case they have an Ensembl ID) or a novel\n assembly from the RNA-Se... | 91 | false | openvax/topiary | load_cufflinks_dataframe | 36,622 | |
LDU_FT/hackthefed/govtrack2csv/make_congress_dir | LDU_FT | [
"<BEGIN>\n## `import_legislators`",
"Read the legislators from the csv files into a single Dataframe. Intended\n for importing new data.\n<END>",
"<BEGIN>\n## `import_committees`",
"Read the committees from the csv files into a single Dataframe. Intended for importing new data.\n<END>",
"<BEGIN>\n## `mov... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the make_congress_dir API.
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 make_congress_dir API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | If the directory for a given congress does not exist. Make it. | "If the directory for a given congress does not exist. Make it." | 24 | false | hackthefed/govtrack2csv | make_congress_dir | 36,623 | |
LDU_FT/taborlab/FlowCal/gstd | LDU_FT | [
"<BEGIN>\n## `clustering_gmm`",
"Find clusters in an array using a Gaussian Mixture Model.",
" Before clustering, `data` can be automatically rescaled as specified by\n the `scale` argument.",
" Parameters\n ----------\n data : FCSData or array_like\n Data to cluster.\n n_clusters : i... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the gstd API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted do... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the gstd API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted do... | Calculate the geometric std. dev. of the events in an FCSData object.
Parameters
----------
data : FCSData or numpy array
NxD flow cytometry data where N is the number of events and D is
the number of parameters (aka channels).
channels : int or str or list of int or list of str, option... | "Calculate the geometric std. dev. of the events in an FCSData object.\n\n Parameters\n ----------\n data : FCSData or numpy array\n NxD flow cytometry data where N is the number of events and D is\n the number of parameters (aka channels).\n channels : int or str or list of int or list of str... | 418 | false | taborlab/FlowCal | gstd | 36,624 | |
LDU_FT/wbond/csrbuilder/subject_public_key | LDU_FT | [
"<BEGIN>\n## `_writer`",
"Decorator for a custom writer, but a default reader\n<END>",
"<BEGIN>\n## `pem_armor_csr`",
"Encodes a CSR into PEM format",
" :param certification_request:\n An asn1crypto.csr.CertificationRequest object of the CSR to armor.\n Typically this is obtained from CSRBu... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the subject_public_key API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
Th... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the subject_public_key API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
Th... | An asn1crypto.keys.PublicKeyInfo or oscrypto.asymmetric.PublicKey
object of the subject's public key. | "An asn1crypto.keys.PublicKeyInfo or oscrypto.asymmetric.PublicKey\n object of the subject's public key." | 43 | false | wbond/csrbuilder | subject_public_key | 36,625 | |
LDU_FT/mongodb/mongo-python-driver/find_one_and_delete | LDU_FT | [
"<BEGIN>\n## `_arguments_repr`",
"Representation of the arguments used to create this object.\n<END>",
"<BEGIN>\n## `with_options`",
"Make a copy of this CodecOptions, overriding some options::",
" >>> from bson.codec_options import DEFAULT_CODEC_OPTIONS\n >>> DEFAULT_CODEC_OPTIONS.tz_... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_one_and_delete 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 find_one_and_delete 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... | Finds a single document and deletes it, returning the document.
>>> db.test.count_documents({'x': 1})
2
>>> db.test.find_one_and_delete({'x': 1})
{u'x': 1, u'_id': ObjectId('54f4e12bfba5220aa4d6dee8')}
>>> db.test.count_documents({'x': 1})
1
If multi... | "Finds a single document and deletes it, returning the document.\n\n >>> db.test.count_documents({'x': 1})\n 2\n >>> db.test.find_one_and_delete({'x': 1})\n {u'x': 1, u'_id': ObjectId('54f4e12bfba5220aa4d6dee8')}\n >>> db.test.count_documents({'x': 1})\n 1\n\n ... | 908 | false | mongodb/mongo-python-driver | find_one_and_delete | 36,626 | |
LDU_FT/tamasgal/km3pipe/get_converter | LDU_FT | [
"<BEGIN>\n## `count_multiplicities`",
"Calculate an array of multiplicities and corresponding coincidence IDs",
" Note that this algorithm does not take care about DOM IDs, so it has to\n be fed with DOM hits.",
" Parameters\n ----------\n times: array[float], shape=(n,)\n Hit times for ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_converter API.
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_converter API.
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... | Generate unit conversion function for given parameter | "Generate unit conversion function for given parameter" | 418 | false | tamasgal/km3pipe | get_converter | 36,627 | |
LDU_FT/jopohl/urh/segment_messages_from_magnitudes | LDU_FT | [
"<BEGIN>\n## `bootstrap_modulator`",
"Set initial parameters for default modulator if it was not edited by user previously\n :return:\n<END>",
"<BEGIN>\n## `modulate_data`",
":param buffer: Buffer in which the modulated data shall be written, initialized with zeros\n :return:\n<END>",
"<BEGIN>... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the segment_messages_from_magnitudes API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its c... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the segment_messages_from_magnitudes API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its c... | Get the list of start, end indices of messages
:param magnitudes: Magnitudes of samples
:param noise_threshold: Threshold for noise
:return: | "Get the list of start, end indices of messages\n\n :param magnitudes: Magnitudes of samples\n :param noise_threshold: Threshold for noise\n :return:" | 149 | false | jopohl/urh | segment_messages_from_magnitudes | 36,628 | |
LDU_FT/WalletGuild/desw/get_user | LDU_FT | [
"<BEGIN>\n## `confirm_send`",
"Confirm that a send has completed. Does not actually check confirmations,\n but instead assumes that if this is called, the transaction has been\n completed. This is because we assume our own sends are safe.",
" :param session:\n :param str ref_id: The updated ref_id f... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_user API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracte... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_user API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracte... | Get your user object.
Users may only get their own info, not others'.
---
responses:
'200':
description: user response
schema:
$ref: '#/definitions/User'
default:
description: unexpected error
schema:
$ref: '#/definitions/errorModel'
descr... | "Get your user object.\n\n Users may only get their own info, not others'.\n ---\n responses:\n '200':\n description: user response\n schema:\n $ref: '#/definitions/User'\n default:\n description: unexpected error\n schema:\n $ref: '#/definitions/errorMod... | 28 | false | WalletGuild/desw | get_user | 36,629 | |
LDU_FT/lokhman/pydbal/commit_all | LDU_FT | [
"<BEGIN>\n## `locked`",
"Context generator for `with` statement, yields thread-safe connection.",
" :return: thread-safe connection\n :rtype: pydbal.connection.Connection\n<END>",
"<BEGIN>\n## `query`",
"Executes an SQL SELECT query and returns rows generator.",
" :param sql: query to... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the commit_all API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extrac... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the commit_all API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extrac... | Commits all current nesting transactions. | "Commits all current nesting transactions." | 84 | false | lokhman/pydbal | commit_all | 36,630 | |
LDU_FT/rigetti/grove/to_kraus | LDU_FT | [
"<BEGIN>\n## `_prepare_c_jk_m`",
"Prepare the coefficient matrix for state tomography. This function uses sparse matrices\n for much greater efficiency.\n The coefficient matrix is defined as:",
" .. math::",
" C_{(jk)m} = \\tr{\\Pi_{s_j} \\Lambda_k(P_m)} = \\sum_{r}\\pi_{jr}(\\mathcal{R}_... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the to_kraus API.
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 to_kraus API.
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... | Compute the Kraus operator representation of the estimated process.
:return: The process as a list of Kraus operators.
:rytpe: List[np.array] | "Compute the Kraus operator representation of the estimated process.\n\n :return: The process as a list of Kraus operators.\n :rytpe: List[np.array]" | 428 | false | rigetti/grove | to_kraus | 36,631 | |
LDU_FT/cni/MRS/ols_matrix | LDU_FT | [
"<BEGIN>\n## `fetch_data`",
"Downloads files to folder and checks their md5 checksums",
" Parameters\n ----------\n files : dictionary\n For each file in `files` the value should be (url, md5). The file will\n be downloaded from url if the file does not already exist or if the\n fi... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the ols_matrix API.
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 ols_matrix API.
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... | Generate the matrix used to solve OLS regression.
Parameters
----------
A: float array
The design matrix
norm: callable, optional
A normalization function to apply to the matrix, before extracting the
OLS matrix.
Notes
-----
The matrix needed for OLS regression f... | "Generate the matrix used to solve OLS regression.\n\n Parameters\n ----------\n\n A: float array\n The design matrix\n\n norm: callable, optional\n A normalization function to apply to the matrix, before extracting the\n OLS matrix.\n\n Notes\n -----\n\n The matrix needed for ... | 328 | false | cni/MRS | ols_matrix | 36,632 | |
LDU_FT/praekelt/django-profile/get_initial | LDU_FT | [
"<BEGIN>\n## `get_initial`",
"Gathers initial form values from user and profile objects\n suitable for using as form's initial data.\n<END>",
"<BEGIN>\n## `save`",
"This method should be called when is_valid is true to save\n relevant fields to user and profile models.\n<END>",
"<BEGIN>\n## `c... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_initial API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_initial API.
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... | Gathers initial form values from user and profile objects
suitable for using as form's initial data. | "Gathers initial form values from user and profile objects\n suitable for using as form's initial data." | 10 | false | praekelt/django-profile | get_initial | 36,633 | |
LDU_FT/UCL-INGI/INGInious/delete_task | LDU_FT | [
"<BEGIN>\n## `handle_agent_message`",
"Dispatch messages received from agents to the right handlers\n<END>",
"<BEGIN>\n## `handle_client_message`",
"Dispatch messages received from clients to the right handlers\n<END>",
"<BEGIN>\n## `send_container_update_to_client`",
":param client_addrs: list of clients... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the delete_task API.
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 delete_task API.
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... | :param courseid: the course id of the course
:param taskid: the task id of the task
:raise InvalidNameException or CourseNotFoundException
Erase the content of the task folder | ":param courseid: the course id of the course\n :param taskid: the task id of the task\n :raise InvalidNameException or CourseNotFoundException\n Erase the content of the task folder" | 567 | false | UCL-INGI/INGInious | delete_task | 36,634 | |
LDU_FT/leonjza/pytel/send_message | LDU_FT | [
"<BEGIN>\n## `_connect`",
"Connect",
" Setup a socket connection to the specified telegram-cli socket",
" --\n @return None\n<END>",
"<BEGIN>\n## `_send`",
"Send",
" Send a payload to a telegram-cli socket.",
" --\n @param payload:str ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the send_message API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extr... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the send_message API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extr... | Send Message
Sends a message to a Telegram Recipient.
From telegram-cli:
msg <peer> <text> Sends text message to peer
--
@param recipient:str The telegram recipient the message is intended
for. Can be either a... | "Send Message\n\n Sends a message to a Telegram Recipient.\n From telegram-cli:\n msg <peer> <text> Sends text message to peer\n\n --\n @param recipient:str The telegram recipient the message is intended\n for. Can be... | 24 | false | leonjza/pytel | send_message | 36,635 | |
LDU_FT/binux/pyspider/on_task_failed | LDU_FT | [
"<BEGIN>\n## `get_encoding`",
"Get encoding from request headers or page head.\n<END>",
"<BEGIN>\n## `encoding`",
"encoding of Response.content.",
" if Response.encoding is None, encoding will be guessed\n by header or content or chardet if available.\n<END>",
"<BEGIN>\n## `text`",
"Conten... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the on_task_failed API.
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 on_task_failed API.
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... | Called when a task is failed, called by `on_task_status` | "Called when a task is failed, called by `on_task_status`" | 126 | false | binux/pyspider | on_task_failed | 36,636 | |
LDU_FT/pavelsof/ipatok/replace_digits_with_chao | LDU_FT | [
"<BEGIN>\n## `normalise`",
"Convert each character of the string to the normal form in which it was\n\tdefined in the IPA spec. This would be normal form D, except for the\n\tvoiceless palatar fricative (ç) which should be in normal form C.",
"\tHelper for tokenise_word(string, ..).\n<END>",
"<BEGIN>\n## `gro... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the replace_digits_with_chao 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 replace_digits_with_chao API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio... | Replace the digits 1-5 (also in superscript) with Chao tone letters. Equal
consecutive digits are collapsed into a single Chao letter.
If inverse=True, smaller digits are converted into higher tones; otherwise,
they are converted into lower tones (the default).
Part of ipatok's public API. | "Replace the digits 1-5 (also in superscript) with Chao tone letters. Equal\n\tconsecutive digits are collapsed into a single Chao letter.\n\n\tIf inverse=True, smaller digits are converted into higher tones; otherwise,\n\tthey are converted into lower tones (the default).\n\n\tPart of ipatok's public API." | 47 | false | pavelsof/ipatok | replace_digits_with_chao | 36,637 | |
LDU_FT/slickqa/python-client/create | LDU_FT | [
"<BEGIN>\n## `find`",
"You can pass in the appropriate model object from the queries module,\n or a dictionary with the keys and values for the query,\n or a set of key=value parameters.\n<END>",
"<BEGIN>\n## `findOne`",
"Perform a find, with the same options present, but only return a maximum o... | 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 ... | Create the specified object (perform a POST to the api). You specify the object as a parameter, using
the parent object as a function. Example:
proj = Project()
... add project data here
proj = slick.projects(proj).create() | "Create the specified object (perform a POST to the api). You specify the object as a parameter, using\n the parent object as a function. Example:\n proj = Project()\n ... add project data here\n proj = slick.projects(proj).create()" | 37 | false | slickqa/python-client | create | 36,638 | |
LDU_FT/mass-project/mass_api_client/create | LDU_FT | [
"<BEGIN>\n## `create`",
"Create a new report.",
" For convenience :func:`~mass_api_client.resources.scheduled_analysis.ScheduledAnalysis.create_report`\n of class :class:`.ScheduledAnalysis` can be used instead.",
" :param scheduled_analysis: The :class:`.ScheduledAnalysis` this report wa... | 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 ... | Create a new report.
For convenience :func:`~mass_api_client.resources.scheduled_analysis.ScheduledAnalysis.create_report`
of class :class:`.ScheduledAnalysis` can be used instead.
:param scheduled_analysis: The :class:`.ScheduledAnalysis` this report was created for
:param tags: A lis... | "Create a new report.\n\n For convenience :func:`~mass_api_client.resources.scheduled_analysis.ScheduledAnalysis.create_report`\n of class :class:`.ScheduledAnalysis` can be used instead.\n\n :param scheduled_analysis: The :class:`.ScheduledAnalysis` this report was created for\n :param tags... | 65 | false | mass-project/mass_api_client | create | 36,639 | |
LDU_FT/NiklasRosenstein-Python/nr-deprecated/set_exception | LDU_FT | [
"<BEGIN>\n## `skip`",
"Must be called from within `__enter__()`. Performs some magic to have a\n #ContextSkipped exception be raised the moment the with context is entered.\n The #ContextSkipped must then be handled in `__exit__()` to suppress the\n propagation of the exception.",
" > Important: This functi... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_exception API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_exception API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | This method allows you to set an exception in the future without requring
that exception to be raised from the futures worker. This method can be
called on an unbound future.
:param exc_info: Either an exception info tuple or an exception value.
In the latter case, the traceback will be automatically... | "This method allows you to set an exception in the future without requring\n that exception to be raised from the futures worker. This method can be\n called on an unbound future.\n\n :param exc_info: Either an exception info tuple or an exception value.\n In the latter case, the traceback will be automat... | 305 | false | NiklasRosenstein-Python/nr-deprecated | set_exception | 36,640 | |
LDU_FT/shi-cong/PYSTUDY/reverse_cipher | LDU_FT | [
"<BEGIN>\n## `add_view`",
"增加handler\n :param view_name: 路由\n :param handler: 处理类\n :return:\n<END>",
"<BEGIN>\n## `start`",
"启动服务器\n :param port: 端口号\n :return:\n<END>",
"<BEGIN>\n## `create_process`",
"创建进程\n :param daemon: True主进程关闭而关闭, False主进程必须等待子进程结束\n :para... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the reverse_cipher API.
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 reverse_cipher API.
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... | 反转加密法
:param message: 待加密字符串
:return: 被加密字符串 | "反转加密法\n :param message: 待加密字符串\n :return: 被加密字符串" | 91 | false | shi-cong/PYSTUDY | reverse_cipher | 36,641 | |
LDU_FT/mistio/mist.client/remove_metric | LDU_FT | [
"<BEGIN>\n## `request`",
"The main purpose of this is to be a wrapper-like function to pass the api_token and all the other params to the\n requests that are being made",
" :returns: An instance of RequestsHandler\n<END>",
"<BEGIN>\n## `delete`",
"Delete the cloud from the list of added clouds... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the remove_metric API.
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 remove_metric API.
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... | Remove a metric from a monitored machine
:param metric_id: Metric_id (provided by self.get_stats() ) | "Remove a metric from a monitored machine\n\n :param metric_id: Metric_id (provided by self.get_stats() )" | 106 | false | mistio/mist.client | remove_metric | 36,642 | |
LDU_FT/samluescher/django-media-tree/get_file_link | LDU_FT | [
"<BEGIN>\n## `i18n_javascript`",
"Displays the i18n JavaScript that the Django admin requires.",
" This takes into account the USE_I18N setting. If it's set to False, the\n generated JavaScript will be leaner and faster.\n<END>",
"<BEGIN>\n## `file_links`",
"Turns a (optionally nested) list of... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_file_link API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_file_link API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | Returns a formatted HTML link tag to the FileNode's file, optionally including some meta information about the file. | "Returns a formatted HTML link tag to the FileNode's file, optionally including some meta information about the file." | 96 | false | samluescher/django-media-tree | get_file_link | 36,643 | |
LDU_FT/MisterY/gnucash-portfolio/get_next_occurrence | LDU_FT | [
"<BEGIN>\n## `get_next_occurrence`",
"Calculates the next occurrence date for scheduled transaction.\n Mimics the recurrenceNextInstance() function from GnuCash.\n Still not fully complete but handles the main cases I use.\n<END>",
"<BEGIN>\n## `handle_friday`",
"Extracted the calculation for when the n... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_next_occurrence API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
T... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_next_occurrence 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... | Calculates the next occurrence date for scheduled transaction.
Mimics the recurrenceNextInstance() function from GnuCash.
Still not fully complete but handles the main cases I use. | "Calculates the next occurrence date for scheduled transaction.\n Mimics the recurrenceNextInstance() function from GnuCash.\n Still not fully complete but handles the main cases I use." | 157 | false | MisterY/gnucash-portfolio | get_next_occurrence | 36,644 | |
LDU_FT/projectatomic/atomic-reactor/get_koji_module_build | LDU_FT | [
"<BEGIN>\n## `_build`",
"build image from provided build_args",
" :return: BuildResults\n<END>",
"<BEGIN>\n## `_load_results`",
"load results from recent build",
" :return: BuildResults\n<END>",
"<BEGIN>\n## `commit_buildroot`",
"create image from buildroot",
" :return:\n<END>",... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_koji_module_build 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_koji_module_build 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 build information from Koji for a module. The module specification must
include at least name, stream and version. For legacy support, you can omit
context if there is only one build of the specified NAME:STREAM:VERSION.
:param session: KojiSessionWrapper, Session for talking to Koji
:param module_... | "Get build information from Koji for a module. The module specification must\n include at least name, stream and version. For legacy support, you can omit\n context if there is only one build of the specified NAME:STREAM:VERSION.\n\n :param session: KojiSessionWrapper, Session for talking to Koji\n :param m... | 440 | false | projectatomic/atomic-reactor | get_koji_module_build | 36,645 | |
LDU_FT/kevinconway/venvctrl/install_requirements | LDU_FT | [
"<BEGIN>\n## `create`",
"Create a new virtual environment.",
" Args:\n python (str): The name or path of a python interpreter to use while\n creating the virtual environment.\n system_site (bool): Whether or not use use the system site packages\n within... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the install_requirements 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 install_requirements API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | Install packages from a requirements.txt file.
Args:
path (str): The path to the requirements file.
index (str): The URL for a pypi index to use. | "Install packages from a requirements.txt file.\n\n Args:\n path (str): The path to the requirements file.\n index (str): The URL for a pypi index to use." | 51 | false | kevinconway/venvctrl | install_requirements | 36,646 | |
LDU_FT/bkjones/pyrabbit/get_connections | LDU_FT | [
"<BEGIN>\n## `do_call`",
"Send an HTTP request to the REST API.",
" :param string path: A URL\n :param string method: The HTTP method (GET, POST, etc.) to use\n in the request.\n :param string body: A string representing any data to be sent in the\n body of the HTTP re... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_connections API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The e... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_connections API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The e... | :returns: list of dicts, or an empty list if there are no connections. | ":returns: list of dicts, or an empty list if there are no connections." | 112 | false | bkjones/pyrabbit | get_connections | 36,647 | |
LDU_FT/csaez/wishlib/inside_softimage | LDU_FT | [
"<BEGIN>\n## `inside_softimage`",
"Returns a boolean indicating if the code is executed inside softimage.\n<END>",
"<BEGIN>\n## `auto_update`",
"This class method could be used as decorator on subclasses, it ensures\n update method is called after function execution.\n<END>",
"<BEGIN>\n## `update`",
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the inside_softimage API.
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 inside_softimage API.
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 a boolean indicating if the code is executed inside softimage. | "Returns a boolean indicating if the code is executed inside softimage." | 22 | false | csaez/wishlib | inside_softimage | 36,648 | |
LDU_FT/sendgrid/sendgrid-python/add_cc | LDU_FT | [
"<BEGIN>\n## `threshold`",
"Threshold used to determine if your content qualifies as spam.\n On a scale from 1 to 10, with 10 being most strict, or most likely to\n be considered as spam.",
" :param value: Threshold used to determine if your content qualifies as\n spam.... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_cc API.
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 add_cc API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted ... | Adds a Cc object to the Personalization object
:param to_emails: An Cc object
:type to_emails: Cc
:param global_substitutions: A dict of substitutions for all recipients
:type global_substitutions: dict
:param is_multiple: Create a new personilization for each recipient
... | "Adds a Cc object to the Personalization object\n\n :param to_emails: An Cc object\n :type to_emails: Cc\n :param global_substitutions: A dict of substitutions for all recipients\n :type global_substitutions: dict\n :param is_multiple: Create a new personilization for each recipient\n... | 229 | false | sendgrid/sendgrid-python | add_cc | 36,649 | |
LDU_FT/beregond/jsonmodels/is_ecma_regex | LDU_FT | [
"<BEGIN>\n## `compare_schemas`",
"Compare two structures that represents JSON schemas.",
" For comparison you can't use normal comparison, because in JSON schema\n lists DO NOT keep order (and Python lists do), so this must be taken into\n account during comparison.",
" Note this wont check all co... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_ecma_regex API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_ecma_regex API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | Check if given regex is of type ECMA 262 or not.
:rtype: bool | "Check if given regex is of type ECMA 262 or not.\n\n :rtype: bool" | 32 | false | beregond/jsonmodels | is_ecma_regex | 36,650 | |
LDU_FT/LPgenerator/django-db-mailer/send | LDU_FT | [
"<BEGIN>\n## `send`",
"Site: http://www.pubnub.com/\n API: https://www.mashape.com/pubnub/pubnub-network\n Desc: real-time browser notifications",
" Installation and usage:\n pip install -U pubnub\n Tests for browser notification http://127.0.0.1:8000/browser_notification/\n<END>",
"<BEGIN>\n##... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the send API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted do... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the send API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted do... | Site: https://pushall.ru
API: https://pushall.ru/blog/api
Desc: App for notification to devices/browsers and messaging apps | "Site: https://pushall.ru\n API: https://pushall.ru/blog/api\n Desc: App for notification to devices/browsers and messaging apps" | 39 | false | LPgenerator/django-db-mailer | send | 36,651 | |
LDU_FT/cons3rt/pycons3rt/manage_service | LDU_FT | [
"<BEGIN>\n## `getdict`",
"Returns a standard python Dict with computed values\n from the DynDict\n :param source: (DynDict) input\n :return: (dict) Containing computed values\n<END>",
"<BEGIN>\n## `get_ec2_client`",
"Gets an EC2 client",
" :return: boto3.client object\n :raises: AWSAPIError\n... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the manage_service API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ex... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the manage_service API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ex... | Use to run Linux sysv or systemd service commands
:param service_name (str) name of the service to start
:param service_action (str) action to perform on the service
:param systemd (bool) True if the command should use systemd
:param output (bool) True to print output
:return: None
:raises: OSE... | "Use to run Linux sysv or systemd service commands\n\n :param service_name (str) name of the service to start\n :param service_action (str) action to perform on the service\n :param systemd (bool) True if the command should use systemd\n :param output (bool) True to print output\n :return: None\n :rai... | 386 | false | cons3rt/pycons3rt | manage_service | 36,652 | |
LDU_FT/etcher-be/epab/pep8 | LDU_FT | [
"<BEGIN>\n## `cli`",
"This is a tool that handles all the tasks to build a Python application",
" This tool is installed as a setuptools entry point, which means it should be accessible from your terminal once\n this application is installed in develop mode.\n<END>",
"<BEGIN>\n## `sort`",
"Runs iSort ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the pep8 API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted do... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the pep8 API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted do... | Runs Pyup's Safety tool (https://pyup.io/safety/)
Args:
amend: whether or not to commit results
stage: whether or not to stage changes | "Runs Pyup's Safety tool (https://pyup.io/safety/)\n\n Args:\n amend: whether or not to commit results\n stage: whether or not to stage changes" | 133 | false | etcher-be/epab | pep8 | 36,653 | |
LDU_FT/deepmind/sonnet/_build | LDU_FT | [
"<BEGIN>\n## `generate_code`",
"Generates code samples.",
" Args:\n max_length: int. max literal length.\n max_nest: int. max nesting level.\n ops: CodeOp. set of allowable operations.",
" Returns:\n 1. (str) output value.\n 2. (str) Code operation.\n<END>",
"<BEGIN>\n## `get_tokens`",
"... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _build API.
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 _build API.
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 ... | Connects the _ConvNDTranspose module into the graph.
If this is not the first time the module has been connected to the graph,
the input Tensor provided here must have the same final N dimensions, in
order for the existing variables to be the correct size for the
multiplication. The batch size may diff... | "Connects the _ConvNDTranspose module into the graph.\n\n If this is not the first time the module has been connected to the graph,\n the input Tensor provided here must have the same final N dimensions, in\n order for the existing variables to be the correct size for the\n multiplication. The batch size ma... | 937 | false | deepmind/sonnet | _build | 36,654 | |
LDU_FT/datadesk/python-documentcloud/get_data | LDU_FT | [
"<BEGIN>\n## `_make_request`",
"Configure a HTTP request, fire it off and return the response.\n<END>",
"<BEGIN>\n## `_get_search_page`",
"Retrieve one page of search results from the DocumentCloud API.\n<END>",
"<BEGIN>\n## `search`",
"Retrieve all objects that make a search query.",
" Will loop... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_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 extracte... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_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 extracte... | Fetch the data field if it does not exist. | "Fetch the data field if it does not exist." | 107 | false | datadesk/python-documentcloud | get_data | 36,655 | |
LDU_FT/TissueMAPS/TmDeploy/start_instance | LDU_FT | [
"<BEGIN>\n## `__init_os_api`",
"Initialise client objects for talking to OpenStack API.",
" This is in a separate function so to be called by ``__init__`` and\n ``__setstate__``.\n<END>",
"<BEGIN>\n## `stop_instance`",
"Stops the instance gracefully.",
" :param str instance_id: instan... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the start_instance API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ex... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the start_instance API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ex... | Starts a new instance with the given properties and returns
the instance id.
:param str key_name: name of the ssh key to connect
:param str public_key_path: path to ssh public key
:param str private_key_path: path to ssh private key
:param str security_group: firewall rule defin... | "Starts a new instance with the given properties and returns\n the instance id.\n\n :param str key_name: name of the ssh key to connect\n :param str public_key_path: path to ssh public key\n :param str private_key_path: path to ssh private key\n :param str security_group: firewall rul... | 192 | false | TissueMAPS/TmDeploy | start_instance | 36,656 | |
LDU_FT/thumbor/thumbor/writeGifToFile | LDU_FT | [
"<BEGIN>\n## `instance`",
"Cache threadpool since context is\n recreated for each request\n<END>",
"<BEGIN>\n## `main`",
"Runs thumbor server with the specified arguments.\n<END>",
"<BEGIN>\n## `mime`",
"Retrieves mime metadata if available\n :return:\n<END>",
"<BEGIN>\n## `client`",
"Ca... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the writeGifToFile API.
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 writeGifToFile API.
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... | writeGifToFile(fp, images, durations, loops, xys, disposes)
Given a set of images writes the bytes to the specified stream. | "writeGifToFile(fp, images, durations, loops, xys, disposes)\n\n Given a set of images writes the bytes to the specified stream." | 61 | false | thumbor/thumbor | writeGifToFile | 36,657 | |
LDU_FT/jhshi/wltrace/next | LDU_FT | [
"<BEGIN>\n## `mcs_to_rate`",
"Convert MCS index to rate in Mbps.",
" See http://mcsindex.com/",
" Args:\n mcs (int): MCS index\n bw (int): bandwidth, 20, 40, 80, ...\n long_gi(bool): True if long GI is used.",
" Returns:\n rate (float): bitrate in Mbps",
" >>> mcs_t... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the next API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted do... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the next API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted do... | Iteration function.
Note that it is possible to yield dangling ack packets as well, so user
can detect if the sniffer missed the previous packet. | "Iteration function.\n\n Note that it is possible to yield dangling ack packets as well, so user\n can detect if the sniffer missed the previous packet." | 47 | false | jhshi/wltrace | next | 36,658 | |
LDU_FT/cyface/django-termsandconditions/get_active_terms_list | LDU_FT | [
"<BEGIN>\n## `is_path_protected`",
"returns True if given path is to be protected, otherwise False",
" The path is not to be protected when it appears on:\n TERMS_EXCLUDE_URL_PREFIX_LIST, TERMS_EXCLUDE_URL_LIST, TERMS_EXCLUDE_URL_CONTAINS_LIST or as\n ACCEPT_TERMS_PATH\n<END>",
"<BEGIN>\n## `process_... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_active_terms_list API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_active_terms_list API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | Returns all the latest active terms and conditions | "Returns all the latest active terms and conditions" | 34 | false | cyface/django-termsandconditions | get_active_terms_list | 36,659 | |
LDU_FT/clld/cdstarcat/create | LDU_FT | [
"<BEGIN>\n## `add`",
"Add an existing CDSTAR object to the catalog.",
" :param obj: A pycdstar.resource.Object instance\n<END>",
"<BEGIN>\n## `delete`",
"Delete an object in CDSTAR and remove it from the catalog.",
" :param obj: An object ID or an Object instance.\n<END>",
"<BEGIN>\n## `cr... | 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 ... | Create objects in CDSTAR and register them in the catalog.
Note that we guess the mimetype based on the filename extension, using
`mimetypes.guess_type`. Thus, it is the caller's responsibility to add custom or
otherwise uncommon types to the list of known types using `mimetypes.add_type`.
... | "Create objects in CDSTAR and register them in the catalog.\n\n Note that we guess the mimetype based on the filename extension, using\n `mimetypes.guess_type`. Thus, it is the caller's responsibility to add custom or\n otherwise uncommon types to the list of known types using `mimetypes.add_type`.... | 28 | false | clld/cdstarcat | create | 36,660 | |
LDU_FT/roamanalytics/mittens/fit | LDU_FT | [
"<BEGIN>\n## `_apply_updates`",
"Apply AdaGrad update to parameters.",
" Parameters\n ----------\n gradients",
" Returns\n -------\n<END>",
"<BEGIN>\n## `get_step`",
"Computes the 'step' to take for the next gradient descent update.",
" Returns the step rather t... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the fit API.
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 fit API.
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... | Run GloVe and return the new matrix.
Parameters
----------
X : array-like of shape = [n_words, n_words]
The square count matrix.
vocab : iterable or None (default: None)
Rownames for `X`.
initial_embedding_dict : dict or None (default: None)
... | "Run GloVe and return the new matrix.\n\n Parameters\n ----------\n X : array-like of shape = [n_words, n_words]\n The square count matrix.\n\n vocab : iterable or None (default: None)\n Rownames for `X`.\n\n initial_embedding_dict : dict or None (default: None)\... | 47 | false | roamanalytics/mittens | fit | 36,661 | |
LDU_FT/Trebek/pydealer/insert_list | LDU_FT | [
"<BEGIN>\n## `build`",
"Builds a standard 52 card French deck of Card instances.",
" :arg bool jokers:\n Whether or not to include jokers in the deck.\n :arg int num_jokers:\n The number of jokers to include.\n<END>",
"<BEGIN>\n## `deal`",
"Returns a list of cards, which ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the insert_list API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the insert_list API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | Insert a list of given cards into the stack at a given indice.
:arg list cards:
The list of cards to insert into the stack.
:arg int indice:
Where to insert the given cards. | "Insert a list of given cards into the stack at a given indice.\n\n :arg list cards:\n The list of cards to insert into the stack.\n :arg int indice:\n Where to insert the given cards." | 96 | false | Trebek/pydealer | insert_list | 36,662 | |
LDU_FT/IdentityPython/pysaml2/sign_statement | LDU_FT | [
"<BEGIN>\n## `add_vo_information_about_user`",
"Add information to the knowledge I have about the user. This is\n for Virtual organizations.",
" :param name_id: The subject identifier\n :return: A possibly extended knowledge.\n<END>",
"<BEGIN>\n## `create_authn_request`",
"Creates an au... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the sign_statement API.
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 sign_statement API.
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... | Sign a SAML statement.
:param statement: The statement to be signed
:param node_name: string like 'urn:oasis:names:...:Assertion'
:param key: The key to be used for the signing, either this or
:param key_file: The file where the key can be found
:param node_id:
:param id... | "Sign a SAML statement.\n\n :param statement: The statement to be signed\n :param node_name: string like 'urn:oasis:names:...:Assertion'\n :param key: The key to be used for the signing, either this or\n :param key_file: The file where the key can be found\n :param node_id:\n :... | 738 | false | IdentityPython/pysaml2 | sign_statement | 36,663 | |
LDU_FT/byu-dml/metalearn/_sample_rows | LDU_FT | [
"<BEGIN>\n## `get_canonical_correlations`",
"computes the correlation coefficient between each distinct pairing of columns\n preprocessing note:\n any rows with missing values (in either paired column) are dropped for that pairing\n categorical columns are replaced with one-hot encoded columns\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _sample_rows API.
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 _sample_rows API.
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... | Stratified uniform sampling of rows, according to the classes in Y.
Ensures there are enough samples from each class in Y for cross
validation. | "Stratified uniform sampling of rows, according to the classes in Y.\n Ensures there are enough samples from each class in Y for cross\n validation." | 14 | false | byu-dml/metalearn | _sample_rows | 36,664 | |
LDU_FT/RaRe-Technologies/smart_open/_shortcut_open | LDU_FT | [
"<BEGIN>\n## `extract_kwargs`",
"Extract keyword argument documentation from a function's docstring.",
" Parameters\n ----------\n docstring: str\n The docstring to extract keyword arguments from.",
" Returns\n -------\n list of (str, str, list str)",
" str\n The name of t... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _shortcut_open API.
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 _shortcut_open API.
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... | Try to open the URI using the standard library io.open function.
This can be much faster than the alternative of opening in binary mode and
then decoding.
This is only possible under the following conditions:
1. Opening a local file
2. Ignore extension is set to True
If it is not pos... | "Try to open the URI using the standard library io.open function.\n\n This can be much faster than the alternative of opening in binary mode and\n then decoding.\n\n This is only possible under the following conditions:\n\n 1. Opening a local file\n 2. Ignore extension is set to True\n\n If it... | 150 | false | RaRe-Technologies/smart_open | _shortcut_open | 36,665 | |
LDU_FT/ldomic/lintools/analysis_of_prot_lig_interactions | LDU_FT | [
"<BEGIN>\n## `draw_hydrogen_bonds`",
"For each bond that has been determined to be important, a line gets drawn.\n<END>",
"<BEGIN>\n## `draw_salt_bridges`",
"For each bond that has been determined to be important, a line gets drawn.\n<END>",
"<BEGIN>\n## `change_lines_in_svg`",
"Used to change lines in an... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the analysis_of_prot_lig_interactions API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the analysis_of_prot_lig_interactions API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its ... | The classes and function that deal with protein-ligand interaction analysis. | "The classes and function that deal with protein-ligand interaction analysis." | 117 | false | ldomic/lintools | analysis_of_prot_lig_interactions | 36,666 | |
LDU_FT/basho/riak-python-client/connect | LDU_FT | [
"<BEGIN>\n## `mkpath`",
"Constructs the path & query portion of a URI from path segments\n and a dict.\n<END>",
"<BEGIN>\n## `search_index_path`",
"Builds a Yokozuna search index URL.",
" :param index: optional name of a yz index\n :type index: string\n :param options: optional list ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the connect API.
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 connect API.
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... | Connect to a host on a given (SSL) port using PyOpenSSL. | "Connect to a host on a given (SSL) port using PyOpenSSL." | 620 | false | basho/riak-python-client | connect | 36,667 | |
LDU_FT/sanger-pathogens/ariba/_sam_to_soft_clipped | LDU_FT | [
"<BEGIN>\n## `_update_threads`",
"Update available thread count post-construction.\n To be called any number of times from run() method\n<END>",
"<BEGIN>\n## `_report_completion`",
"Update shared counters to signal that we are done with this cluster.\n Call just before exiting run() method (in a... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _sam_to_soft_clipped 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 _sam_to_soft_clipped 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 tuple of whether or not the left and right end of the mapped read in the sam record is soft-clipped | "Returns tuple of whether or not the left and right end of the mapped read in the sam record is soft-clipped" | 105 | false | sanger-pathogens/ariba | _sam_to_soft_clipped | 36,668 | |
LDU_FT/OpenAgInitiative/openag_python/push_design_documents | LDU_FT | [
"<BEGIN>\n## `create_farm`",
"Create a farm. Creates a farm named FARM_NAME on the currently selected\n cloud server. You can use the `openag cloud select_farm` command to start\n mirroring data into it.\n<END>",
"<BEGIN>\n## `list_farms`",
"List all farms you can manage. If you have selected a farm alr... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the push_design_documents 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 push_design_documents API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | Push the design documents stored in `design_path` to the server | "Push the design documents stored in `design_path` to the server" | 89 | false | OpenAgInitiative/openag_python | push_design_documents | 36,669 | |
LDU_FT/kobinpy/kobin/headerlist | LDU_FT | [
"<BEGIN>\n## `status`",
"The HTTP status line as a string (e.g. ``404 Not Found``).\n<END>",
"<BEGIN>\n## `headerlist`",
"WSGI conform list of (header, value) tuples.\n<END>",
"<BEGIN>\n## `_split_into_mimetype_and_priority`",
"Split an accept header item into mimetype and priority.",
" >>> _split_in... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the headerlist API.
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 headerlist API.
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... | WSGI conform list of (header, value) tuples. | "WSGI conform list of (header, value) tuples." | 32 | false | kobinpy/kobin | headerlist | 36,670 | |
LDU_FT/mikekatz04/BOWIE/txt_read_out | LDU_FT | [
"<BEGIN>\n## `read_noise_curve`",
"Simple auxillary function that can read noise curves in.",
" This function can read in noise curves from a provided file or those that are preinstalled\n with this installation. All pre-installed noise curves are in the form of\n an amplitude spectral density. Informa... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the txt_read_out API.
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 txt_read_out API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extr... | Read out txt file.
Takes the output of :class:`gwsnrcalc.genconutils.genprocess.GenProcess`
and reads it out to a txt file. | "Read out txt file.\n\n Takes the output of :class:`gwsnrcalc.genconutils.genprocess.GenProcess`\n and reads it out to a txt file." | 264 | false | mikekatz04/BOWIE | txt_read_out | 36,671 | |
LDU_FT/nicferrier/md/_get | LDU_FT | [
"<BEGIN>\n## `_list`",
"Do structured list output.",
" Sorts the list by date, possibly reversed, filtered from 'since'.",
" The returned list is: foldername, message key, message object\n<END>",
"<BEGIN>\n## `ls`",
"Do standard text list of the folder to the stream.",
" 'foldername... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted do... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted do... | Yields the message header against each part from the message. | "Yields the message header against each part from the message." | 135 | false | nicferrier/md | _get | 36,672 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.