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/croscon/fleaker/validate_event_type | LDU_FT | [
"<BEGIN>\n## `install`",
"Install Fleaker.",
" In a function so we can protect this file so it's only run when we\n explicitly invoke it and not, say, when py.test collects all Python\n modules.\n<END>",
"<BEGIN>\n## `python_value`",
"Return the JSON in the database as a ``dict``.",
" Retu... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the validate_event_type API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
T... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the validate_event_type API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
T... | Verify that the Event's code is a valid one. | "Verify that the Event's code is a valid one." | 259 | false | croscon/fleaker | validate_event_type | 6,673 | |
LDU_FT/UDST/osmnet/ways_in_bbox | LDU_FT | [
"<BEGIN>\n## `format_check`",
"Check the format of a osmnet_config object.",
" Parameters\n ----------\n settings : dict\n osmnet_config as a dictionary\n Returns\n -------\n Nothing\n<END>",
"<BEGIN>\n## `to_dict`",
"Return a dict representation of an osmnet osmnet_config instance.... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the ways_in_bbox API.
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 ways_in_bbox API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extr... | Get DataFrames of OSM data in a bounding box.
Parameters
----------
lat_min : float
southern latitude of bounding box
lng_min : float
eastern longitude of bounding box
lat_max : float
northern latitude of bounding box
lng_max : float
western longitude of bounding... | "Get DataFrames of OSM data in a bounding box.\n\n Parameters\n ----------\n lat_min : float\n southern latitude of bounding box\n lng_min : float\n eastern longitude of bounding box\n lat_max : float\n northern latitude of bounding box\n lng_max : float\n western longitude... | 69 | false | UDST/osmnet | ways_in_bbox | 6,674 | |
LDU_FT/azavea/python-sld/create_rule | LDU_FT | [
"<BEGIN>\n## `makeproperty`",
"Make a property on an instance of an SLDNode. If cls is omitted, the\n property is assumed to be a text node, with no corresponding class\n object. If name is omitted, the property is assumed to be a complex\n node, with a corresponding class wrapper.",
" ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_rule API.
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 create_rule API.
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... | Create a L{Rule} object on this style. A rule requires a title and
symbolizer. If no symbolizer is specified, a PointSymbolizer will be
assigned to the rule.
@type title: string
@param title: The name of the new L{Rule}.
@type symbolizer: L{Symbolizer} I{class}
... | "Create a L{Rule} object on this style. A rule requires a title and\n symbolizer. If no symbolizer is specified, a PointSymbolizer will be\n assigned to the rule.\n\n @type title: string\n @param title: The name of the new L{Rule}.\n @type symbolizer: L{Symbolizer} I{class... | 29 | false | azavea/python-sld | create_rule | 6,675 | |
LDU_FT/wecatch/app-turbo/_init_file_logger | LDU_FT | [
"<BEGIN>\n## `convert_to_record`",
"Wrap mongodb record to a dict record with default value None\n<END>",
"<BEGIN>\n## `instance`",
"Instantiate a model class according to import path\n args:\n name: class import path like `user.User`\n return:\n model instance\n<END>",
"... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _init_file_logger API.
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 _init_file_logger API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | one logger only have one level RotatingFileHandler | "one logger only have one level RotatingFileHandler" | 43 | false | wecatch/app-turbo | _init_file_logger | 6,676 | |
LDU_FT/Syndace/python-omemo/__encryptKeyTransportMessage | LDU_FT | [
"<BEGIN>\n## `coroutine`",
"Implementation of a coroutine.",
" Use as a decorator:\n @coroutine\n def foo():\n result = yield somePromise",
" The function passed should be a generator yielding instances of the Promise class\n (or compatible).\n The coroutine waits for the Promise to r... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the __encryptKeyTransportMessage API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its concl... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the __encryptKeyTransportMessage API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its concl... | bare_jids: iterable<string>
encryption_callback: A function which is called using an instance of cryptography.hazmat.primitives.ciphers.CipherContext, which you can use to encrypt any sort of data. You don't have to return anything.
bundles: { [bare_jid: string] => { [device_id: int] => ExtendedPublicBu... | "bare_jids: iterable<string>\n encryption_callback: A function which is called using an instance of cryptography.hazmat.primitives.ciphers.CipherContext, which you can use to encrypt any sort of data. You don't have to return anything.\n bundles: { [bare_jid: string] => { [device_id: int] => ExtendedPubli... | 45 | false | Syndace/python-omemo | __encryptKeyTransportMessage | 6,677 | |
LDU_FT/sanger-pathogens/circlator/_break_reads | LDU_FT | [
"<BEGIN>\n## `run_spades`",
"Runs spades on all kmers. Each a separate run because SPAdes dies if any kmer does\n not work. Chooses the 'best' assembly to be the one with the biggest N50\n<END>",
"<BEGIN>\n## `aligned_read_to_read`",
"Returns Fasta or Fastq sequence from pysam aligned read\n<END>",
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _break_reads API.
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 _break_reads API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extr... | Get all reads from contig, but breaks them all at given position (0-based) in the reference. Writes to fout. Currently pproximate where it breaks (ignores indels in the alignment) | "Get all reads from contig, but breaks them all at given position (0-based) in the reference. Writes to fout. Currently pproximate where it breaks (ignores indels in the alignment)" | 102 | false | sanger-pathogens/circlator | _break_reads | 6,678 | |
LDU_FT/sixty-north/cosmic-ray/handle_dump | LDU_FT | [
"<BEGIN>\n## `handle_new_config`",
"usage: cosmic-ray new-config <config-file>",
" Create a new config file.\n<END>",
"<BEGIN>\n## `handle_init`",
"usage: cosmic-ray init <config-file> <session-file>",
" Initialize a mutation testing session from a configuration. This\n primarily creates a sessio... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the handle_dump API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the handle_dump API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | usage: cosmic-ray dump <session-file>
JSON dump of session data. This output is typically run through other
programs to produce reports.
Each line of output is a list with two elements: a WorkItem and a
WorkResult, both JSON-serialized. The WorkResult can be null, indicating a
WorkItem with no res... | "usage: cosmic-ray dump <session-file>\n\n JSON dump of session data. This output is typically run through other\n programs to produce reports.\n\n Each line of output is a list with two elements: a WorkItem and a\n WorkResult, both JSON-serialized. The WorkResult can be null, indicating a\n WorkItem wit... | 213 | false | sixty-north/cosmic-ray | handle_dump | 6,679 | |
LDU_FT/ajdavis/mongo-mockup-db/bind_domain_socket | LDU_FT | [
"<BEGIN>\n## `go`",
"Launch an operation on a thread and get a handle to its future result.",
" >>> from time import sleep\n >>> def print_sleep_print(duration):\n ... sleep(duration)\n ... print('hello from background thread')\n ... sleep(duration)\n ... print('goodbye from ba... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the bind_domain_socket 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 bind_domain_socket 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... | Takes (socket path, 0) and returns (socket_object, (path, 0)). | "Takes (socket path, 0) and returns (socket_object, (path, 0))." | 129 | false | ajdavis/mongo-mockup-db | bind_domain_socket | 6,680 | |
LDU_FT/julienr/meshcut/_walk_polyline | LDU_FT | [
"<BEGIN>\n## `load_ply`",
"Same as load_ply, but takes a file-like object\n<END>",
"<BEGIN>\n## `orthogonal_vector`",
"Return an arbitrary vector that is orthogonal to v\n<END>",
"<BEGIN>\n## `show_plane`",
"Show the plane with the given origin and normal. scale give its size\n<END>",
"<BEGIN>\n## `slic... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _walk_polyline API.
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 _walk_polyline API.
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... | Given an intersection, walk through the mesh triangles, computing
intersection with the cut plane for each visited triangle and adding
those intersection to a polyline. | "Given an intersection, walk through the mesh triangles, computing\n intersection with the cut plane for each visited triangle and adding\n those intersection to a polyline." | 34 | false | julienr/meshcut | _walk_polyline | 6,681 | |
LDU_FT/hanguokai/youku/subscribe_get | LDU_FT | [
"<BEGIN>\n## `check_error`",
"Youku error should return in json form, like:\n HTTP 400\n {\n \"error\":{\n \"code\":120010223,\n \"type\":\"UploadsException\",\n \"description\":\"Expired upload token\"\n }\n }",
" But error also maybe in response url p... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the subscribe_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 ext... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the subscribe_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 ext... | doc: http://open.youku.com/docs/doc?id=30 | "doc: http://open.youku.com/docs/doc?id=30" | 120 | false | hanguokai/youku | subscribe_get | 6,682 | |
LDU_FT/MrMinimal64/timezonefinder/inside_polygon | LDU_FT | [
"<BEGIN>\n## `set_version`",
"Set package version as listed in `__version__` in `__init__.py`.\n<END>",
"<BEGIN>\n## `get_geometry`",
":param tz_name: one of the names in timezone_names\n :param tz_id: the id of the timezone (=index in timezone_names)\n :param use_id: determines whether id or na... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the inside_polygon API.
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 inside_polygon API.
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... | Implementing the ray casting point in polygon test algorithm
cf. https://en.wikipedia.org/wiki/Point_in_polygon#Ray_casting_algorithm
:param x:
:param y:
:param coordinates: a polygon represented by a list containing two lists (x and y coordinates):
[ [x1,x2,x3...], [y1,y2,y3...]]
those ... | "Implementing the ray casting point in polygon test algorithm\n cf. https://en.wikipedia.org/wiki/Point_in_polygon#Ray_casting_algorithm\n :param x:\n :param y:\n :param coordinates: a polygon represented by a list containing two lists (x and y coordinates):\n [ [x1,x2,x3...], [y1,y2,y3...]]\n ... | 35 | false | MrMinimal64/timezonefinder | inside_polygon | 6,683 | |
LDU_FT/Chilipp/funcargparse/get_param_doc | LDU_FT | [
"<BEGIN>\n## `get_param_doc`",
"Get the documentation and datatype for a parameter",
" This function returns the documentation and the argument for a\n napoleon like structured docstring `doc`",
" Parameters\n ----------\n doc: str\n The base docstring to use\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_param_doc API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_param_doc API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | Get the documentation and datatype for a parameter
This function returns the documentation and the argument for a
napoleon like structured docstring `doc`
Parameters
----------
doc: str
The base docstring to use
param: str
The argument to use
... | "Get the documentation and datatype for a parameter\n\n This function returns the documentation and the argument for a\n napoleon like structured docstring `doc`\n\n Parameters\n ----------\n doc: str\n The base docstring to use\n param: str\n The argument... | 105 | false | Chilipp/funcargparse | get_param_doc | 6,684 | |
LDU_FT/jslang/responsys/delete_profile_extension_members | LDU_FT | [
"<BEGIN>\n## `call`",
"Calls the service method defined with the arguments provided\n<END>",
"<BEGIN>\n## `connect`",
"Connects to the Responsys soap service",
" Uses the credentials passed to the client init to login and setup the session id returned.\n Returns True on successful connection, ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the delete_profile_extension_members 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 delete_profile_extension_members API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its c... | Responsys.deleteProfileExtensionRecords call
Accepts:
InteractObject profile_extension
list field_list
list ids_to_retrieve
string query_column
default: 'RIID'
Returns list of DeleteResults | "Responsys.deleteProfileExtensionRecords call\n\n Accepts:\n InteractObject profile_extension\n list field_list\n list ids_to_retrieve\n string query_column\n default: 'RIID'\n\n Returns list of DeleteResults" | 74 | false | jslang/responsys | delete_profile_extension_members | 6,685 | |
LDU_FT/rtlee9/serveit/validator | LDU_FT | [
"<BEGIN>\n## `loader`",
"Load image from URL, and preprocess for Resnet.\n<END>",
"<BEGIN>\n## `json_numpy_loader`",
"Load data from JSON request and convert to numpy array.\n<END>",
"<BEGIN>\n## `get_bytes_to_image_callback`",
"Return a callback to process image bytes for ImageNet.\n<END>",
"<BEGIN>\n#... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the validator API.
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 validator API.
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... | Simple model input validator.
Validator ensures the input data array is
- two dimensional
- has the correct number of features. | "Simple model input validator.\n\n Validator ensures the input data array is\n - two dimensional\n - has the correct number of features." | 20 | false | rtlee9/serveit | validator | 6,686 | |
LDU_FT/rosshamish/catanlog/logpath | LDU_FT | [
"<BEGIN>\n## `logpath`",
"Return the logfile path and filename as a string.",
" The file with name self.logpath() is written to on flush().",
" The filename contains the log's timestamp and the names of players in the game.\n The logpath changes when reset() or _set_players() are called, ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the logpath API.
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 logpath API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted... | Return the logfile path and filename as a string.
The file with name self.logpath() is written to on flush().
The filename contains the log's timestamp and the names of players in the game.
The logpath changes when reset() or _set_players() are called, as they change the
timestamp and ... | "Return the logfile path and filename as a string.\n\n The file with name self.logpath() is written to on flush().\n\n The filename contains the log's timestamp and the names of players in the game.\n The logpath changes when reset() or _set_players() are called, as they change the\n timesta... | 47 | false | rosshamish/catanlog | logpath | 6,687 | |
LDU_FT/LogicalDash/LiSE/new_digraph | LDU_FT | [
"<BEGIN>\n## `on_touch_down`",
"If hit, record my starting position, that I may return to it in\n ``on_touch_up`` after creating a real :class:`board.Spot` or\n :class:`board.Pawn` instance.\n<END>",
"<BEGIN>\n## `on_touch_up`",
"Return to ``pos_start``, but first, save my current ``pos`` into\n... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the new_digraph API.
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 new_digraph API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | Return a new instance of type DiGraph, initialized with the given
data if provided.
:arg name: a name for the graph
:arg data: dictionary or NetworkX graph object providing initial state | "Return a new instance of type DiGraph, initialized with the given\n data if provided.\n\n :arg name: a name for the graph\n :arg data: dictionary or NetworkX graph object providing initial state" | 660 | false | LogicalDash/LiSE | new_digraph | 6,688 | |
LDU_FT/C4ptainCrunch/ics.py/end | LDU_FT | [
"<BEGIN>\n## `arrow_get`",
"this function exists because ICS uses ISO 8601 without dashes or\n colons, i.e. not ISO 8601 at all.\n<END>",
"<BEGIN>\n## `parse_duration`",
"Return a timedelta object from a string in the DURATION property format\n<END>",
"<BEGIN>\n## `timedelta_to_duration`",
"Return a st... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the end API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted doc... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the end API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted doc... | Get or set the end of the event.
| Will return an :class:`Arrow` object.
| May be set to anything that :func:`Arrow.get` understands.
| If set to a non null value, removes any already
existing duration.
| Setting to None will have unexpected behavior if
begin... | "Get or set the end of the event.\n\n | Will return an :class:`Arrow` object.\n | May be set to anything that :func:`Arrow.get` understands.\n | If set to a non null value, removes any already\n existing duration.\n | Setting to None will have unexpected behavior if\n ... | 50 | false | C4ptainCrunch/ics.py | end | 6,689 | |
LDU_FT/openstack/networking-cisco/find_objects | LDU_FT | [
"<BEGIN>\n## `assign_hosting_device_to_cfg_agent`",
"Make config agent handle an (unassigned) hosting device.\n<END>",
"<BEGIN>\n## `unassign_hosting_device_from_cfg_agent`",
"Make config agent handle an (unassigned) hosting device.\n<END>",
"<BEGIN>\n## `update_subports`",
"Set port attributes for trunk ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_objects API.
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 find_objects API.
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... | Find lines that match the linespec regex.
:param linespec: regular expression of line to match
:return: list of LineItem objects | "Find lines that match the linespec regex.\n\n :param linespec: regular expression of line to match\n :return: list of LineItem objects" | 1,517 | true | openstack/networking-cisco | find_objects | 6,690 | |
LDU_FT/maxcountryman/atomos/get_and_set | LDU_FT | [
"<BEGIN>\n## `synchronized`",
"A decorator which acquires a lock before attempting to execute its wrapped\n function. Releases the lock in a finally clause.",
" :param fn: The function to wrap.\n<END>",
"<BEGIN>\n## `set`",
"Atomically sets the value to `value`.",
" :param value: The value to... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_and_set API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_and_set API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | Atomically sets the value to `value` and returns the old value.
:param value: The value to set. | "Atomically sets the value to `value` and returns the old value.\n\n :param value: The value to set." | 57 | false | maxcountryman/atomos | get_and_set | 6,691 | |
LDU_FT/maikelboogerd/eventcore/register_producer | LDU_FT | [
"<BEGIN>\n## `event_subscriber`",
"Register a method, which gets called when this event triggers.\n :param event: the event to register the decorator method on.\n<END>",
"<BEGIN>\n## `dispatch_event`",
"Dispatch an event when the decorated method is called.\n :param event: the event class to instantiate... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the register_producer API.
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 register_producer API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | Register a default producer for events to use.
:param producer: the default producer to to dispatch events on. | "Register a default producer for events to use.\n :param producer: the default producer to to dispatch events on." | 12 | false | maikelboogerd/eventcore | register_producer | 6,692 | |
LDU_FT/photo/openphoto-python/delete | LDU_FT | [
"<BEGIN>\n## `list`",
"Endpoint: /albums/list.json",
" Returns a list of Album objects.\n<END>",
"<BEGIN>\n## `cover_update`",
"Endpoint: /album/<album_id>/cover/<photo_id>/update.json",
" Update the cover photo of an album.\n Returns the updated album object.\n<END>",
"<BEGIN>\n## ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the 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.
The extracted ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the 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.
The extracted ... | Endpoint: /tag/<id>/delete.json
Deletes this tag.
Returns True if successful.
Raises a TroveboxError if not. | "Endpoint: /tag/<id>/delete.json\n\n Deletes this tag.\n Returns True if successful.\n Raises a TroveboxError if not." | 174 | false | photo/openphoto-python | delete | 6,693 | |
LDU_FT/wesyoung/pyzyre/putf | LDU_FT | [
"<BEGIN>\n## `set_header`",
"Set node header; these are provided to other nodes during discovery\nand come in each ENTER message.\n<END>",
"<BEGIN>\n## `set_endpoint`",
"By default, Zyre binds to an ephemeral TCP port and broadcasts the local\nhost name using UDP beaconing. When you call this method, Zyre wil... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the putf API.
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 putf API.
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... | Equivalent to zconfig_put, accepting a format specifier and variable
argument list, instead of a single string value. | "Equivalent to zconfig_put, accepting a format specifier and variable\nargument list, instead of a single string value." | 192 | false | wesyoung/pyzyre | putf | 6,694 | |
LDU_FT/googlefonts/fontbakery/com_google_fonts_check_font_version | LDU_FT | [
"<BEGIN>\n## `get_module_profile`",
"Get or create a profile from a module and return it.",
" If the name `module.profile` is present the value of that is returned.\n Otherwise, if the name `module.profile_factory` is present, a new profile\n is created using `module.profile_factory` and then `profile.auto_r... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the com_google_fonts_check_font_version API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates it... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the com_google_fonts_check_font_version API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates it... | Checking font version fields (head and name table). | "Checking font version fields (head and name table)." | 381 | false | googlefonts/fontbakery | com_google_fonts_check_font_version | 6,695 | |
LDU_FT/HubbleHQ/heroku-kafka/prefix_topic | LDU_FT | [
"<BEGIN>\n## `get_config`",
"Sets up the basic config from the variables passed in\n all of these are from what Heroku gives you.\n<END>",
"<BEGIN>\n## `get_brokers`",
"Parses the KAKFA_URL and returns a list of hostname:port pairs in the format\n that kafka-python expects.\n<END>",
"<BEGIN>\n... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the prefix_topic API.
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 prefix_topic API.
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... | Adds the topic_prefix to topic(s) supplied | "Adds the topic_prefix to topic(s) supplied" | 10 | false | HubbleHQ/heroku-kafka | prefix_topic | 6,696 | |
LDU_FT/AnalogJ/lexicon/all_record_sets | LDU_FT | [
"<BEGIN>\n## `_authenticate`",
"Authenticate with netcup server. Must be called first.\n<END>",
"<BEGIN>\n## `_create_record`",
"Create record. If it already exists, do nothing.\n<END>",
"<BEGIN>\n## `_list_records`",
"List all records. Return an empty list if no records found.\n ``rtype``, ``name`... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the all_record_sets API.
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 all_record_sets API.
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... | Generator to loop through current record set.
Call next page if it exists. | "Generator to loop through current record set.\n\n Call next page if it exists." | 218 | false | AnalogJ/lexicon | all_record_sets | 6,697 | |
LDU_FT/thespacedoctor/fundamentals/_add_dictlist_to_database_via_load_in_file | LDU_FT | [
"<BEGIN>\n## `main`",
"The main function used when ``yaml_to_database.py`` when installed as a cl tool\n<END>",
"<BEGIN>\n## `ingest`",
"*ingest the contents of the directory of yaml files into a database*",
" **Return:**\n - None",
" **Usage:**",
" To import an entir... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _add_dictlist_to_database_via_load_in_file API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indic... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _add_dictlist_to_database_via_load_in_file API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indic... | *load a list of dictionaries into a database table with load data infile*
**Key Arguments:**
- ``masterListIndex`` -- the index of the sharedList of dictionary lists to process
- ``dbTablename`` -- the name of the database table to add the list to
- ``dbSettings`` -- the dictionary of data... | "*load a list of dictionaries into a database table with load data infile*\n\n **Key Arguments:**\n\n - ``masterListIndex`` -- the index of the sharedList of dictionary lists to process\n - ``dbTablename`` -- the name of the database table to add the list to\n - ``dbSettings`` -- the dictionary ... | 306 | false | thespacedoctor/fundamentals | _add_dictlist_to_database_via_load_in_file | 6,698 | |
LDU_FT/t-makaro/animatplot/timeline_slider | LDU_FT | [
"<BEGIN>\n## `parametric_line`",
"Parameters\n ----------\n x : 1D numpy array\n y : 1D numpy array\n<END>",
"<BEGIN>\n## `demeshgrid`",
"Turns an ndarray created by a meshgrid back into a 1D array",
" Parameters\n ----------\n arr : array of dimension > 1\n This array should have b... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the timeline_slider API.
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 timeline_slider API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The e... | Creates a timeline slider.
Parameters
----------
text : str, optional
The text to display for the slider. Defaults to 'Time'
ax : matplotlib.axes.Axes, optional
The matplotlib axes to attach the slider to.
valfmt : str, optional
a format speci... | "Creates a timeline slider.\n\n Parameters\n ----------\n text : str, optional\n The text to display for the slider. Defaults to 'Time'\n ax : matplotlib.axes.Axes, optional\n The matplotlib axes to attach the slider to.\n valfmt : str, optional\n a fo... | 36 | false | t-makaro/animatplot | timeline_slider | 6,699 | |
LDU_FT/LuminosoInsight/wordfreq/get_language_info | LDU_FT | [
"<BEGIN>\n## `simple_tokenize`",
"Tokenize the given text using a straightforward, Unicode-aware token\n expression.",
" The expression mostly implements the rules of Unicode Annex #29 that\n are contained in the `regex` module's word boundary matching, including\n the refinement that splits words b... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_language_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... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_language_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... | Looks up the things we need to know about how to handle text in a given
language. This will return a dictionary with the following fields:
'script': a BCP 47 script code such as 'Latn', 'Cyrl', 'Hans'...
Indicates the script that tokens in this language should be in,
_after_ our preprocessing.... | "Looks up the things we need to know about how to handle text in a given\n language. This will return a dictionary with the following fields:\n\n 'script': a BCP 47 script code such as 'Latn', 'Cyrl', 'Hans'...\n\n Indicates the script that tokens in this language should be in,\n _after_ our preproc... | 139 | false | LuminosoInsight/wordfreq | get_language_info | 6,700 | |
LDU_FT/sbg/sevenbridges-python/_verify_part_number | LDU_FT | [
"<BEGIN>\n## `query`",
"Query (List) tasks. Date parameters may be both strings and python date\n objects.\n :param project: Target project. optional.\n :param status: Task status.\n :param batch: Only batch tasks.\n :param parent: Parent batch task identifier.\n :param e... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _verify_part_number 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 _verify_part_number 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... | Verifies that the total number of parts is smaller then 10^5 which
is the maximum number of parts. | "Verifies that the total number of parts is smaller then 10^5 which\n is the maximum number of parts." | 292 | false | sbg/sevenbridges-python | _verify_part_number | 6,701 | |
LDU_FT/opengisch/pum/__run_pre_all | LDU_FT | [
"<BEGIN>\n## `pg_backup`",
"Call the pg_dump command to create a db backup",
" Parameters\n ----------\n pg_dump_exe: str\n the pg_dump command path\n exclude_schema: str[]\n list of schemas to be skipped\n<END>",
"<BEGIN>\n## `pg_restore`",
"Call the pg_res... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the __run_pre_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 ext... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the __run_pre_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 ext... | Execute the pre-all.py and pre-all.sql files if they exist | "Execute the pre-all.py and pre-all.sql files if they exist" | 71 | false | opengisch/pum | __run_pre_all | 6,702 | |
LDU_FT/sveetch/boussole/get_backend_engine | LDU_FT | [
"<BEGIN>\n## `clean`",
"Filter given settings to keep only key names available in\n ``DEFAULT_SETTINGS``.",
" Args:\n settings (dict): Loaded settings.",
" Returns:\n dict: Settings object filtered.\n<END>",
"<BEGIN>\n## `set_settings`",
"Set every given settings... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_backend_engine API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
Th... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_backend_engine API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
Th... | Get backend engine from given name.
Args:
(string): Path to validate.
Raises:
boussole.exceptions.SettingsBackendError: If given backend name
does not match any available engine.
Returns:
object: Instance of selected backend engine. | "Get backend engine from given name.\n\n Args:\n (string): Path to validate.\n\n Raises:\n boussole.exceptions.SettingsBackendError: If given backend name\n does not match any available engine.\n\n Returns:\n object: Instance of selected backend engin... | 289 | false | sveetch/boussole | get_backend_engine | 6,703 | |
LDU_FT/twidi/django-adv-cache-tag/get_templatetag_module | LDU_FT | [
"<BEGIN>\n## `prepare_params`",
"Prepare the parameters passed to the templatetag\n<END>",
"<BEGIN>\n## `get_expire_time`",
"Return the expire time passed to the templatetag.\n Must be None or an integer.\n<END>",
"<BEGIN>\n## `get_version`",
"Return the stringified version passed to the templateta... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_templatetag_module API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_templatetag_module API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.... | Return the templatetags module name for which the current class is used.
It's used to render the nocache blocks by loading the correct module | "Return the templatetags module name for which the current class is used.\n It's used to render the nocache blocks by loading the correct module" | 34 | false | twidi/django-adv-cache-tag | get_templatetag_module | 6,704 | |
LDU_FT/tensorflow/tensor2tensor/get | LDU_FT | [
"<BEGIN>\n## `paracrawl_v3_pairs`",
"Generates raw (English, other) pairs from a ParaCrawl V3.0 data file.",
" Args:\n paracrawl_file: A ParaCrawl V3.0 en-.. data file.\n Yields:\n Pairs of (sentence_en, sentence_xx), as Unicode strings.\n Raises:\n StopIteration: If the file ends while this method ... | 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... | Getter for loading from strings; returns value if can't load. | "Getter for loading from strings; returns value if can't load." | 4,769 | true | tensorflow/tensor2tensor | get | 6,705 | |
LDU_FT/SUNCAT-Center/CatHub/get_site_dict | LDU_FT | [
"<BEGIN>\n## `molecules2symbols`",
"Take a list of molecules and return just a list of atomic\n symbols, possibly adding hydrogen\n<END>",
"<BEGIN>\n## `construct_reference_system`",
"Take a list of symbols and construct gas phase\n references system, when possible avoiding O2.\n Candidates can be re... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_site_dict API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_site_dict API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | Get dictionary with high symmetry sites close to adsorbate
position.
Top sites: Optained from the atomic positions of
the top layer of the slab.
Bridge sites: The average position of atomic pairs
Hollow sites: Optained as the Voronoi vertices
4-fold sites: As... | "Get dictionary with high symmetry sites close to adsorbate\n position. \n Top sites: Optained from the atomic positions of\n the top layer of the slab. \n Bridge sites: The average position of atomic pairs\n Hollow sites: Optained as the Voronoi vertices\n 4-fold si... | 178 | false | SUNCAT-Center/CatHub | get_site_dict | 6,706 | |
LDU_FT/openid/JWTConnect-Python-CryptoJWT/find | LDU_FT | [
"<BEGIN>\n## `encrypt`",
"Encrypts and authenticates the data provided as well as authenticating\n the associated_data.",
" :param msg: The message to be encrypted\n :param iv: MUST be present, at least 96-bit long\n :param auth_data: Associated data\n :return: The cipher text... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted do... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted do... | Find a key bundle based on the source of the keys
:param source: A source url
:param issuer: The issuer of keys
:return: A :py:class:`oidcmsg.key_bundle.KeyBundle` instance or None | "Find a key bundle based on the source of the keys\n\n :param source: A source url\n :param issuer: The issuer of keys\n :return: A :py:class:`oidcmsg.key_bundle.KeyBundle` instance or None" | 399 | false | openid/JWTConnect-Python-CryptoJWT | find | 6,707 | |
LDU_FT/laf/russound/create_send_message | LDU_FT | [
"<BEGIN>\n## `connect`",
"Connect to the tcp gateway\n Allow for this function to be keypad agnostic\n If keypad value is omitted, then set it to the hex value of 70 which is the recommended value for an external\n device controlling the system (top of pg 3 of cav6.6_rnet_protocol_v1.01.00.pd... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_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.
T... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_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.
T... | Creates a message from a string, substituting the necessary parameters,
that is ready to send to the socket | "Creates a message from a string, substituting the necessary parameters,\n that is ready to send to the socket" | 24 | false | laf/russound | create_send_message | 6,708 | |
LDU_FT/davidfokkema/artist/set_xtick_suffix | LDU_FT | [
"<BEGIN>\n## `render`",
"Render the plot using a template.",
" Once the plot is complete, it needs to be rendered. Artist uses\n the Jinja2 templating engine. The default template results in a\n LaTeX file which can be included in your document.",
" :param template: a user-suppli... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_xtick_suffix API.
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 set_xtick_suffix API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | Set the suffix for the ticks of the x-axis.
:param suffix: string added after each tick. If the value is
`degree` or `precent` the corresponding symbols
will be added. | "Set the suffix for the ticks of the x-axis.\n\n :param suffix: string added after each tick. If the value is\n `degree` or `precent` the corresponding symbols\n will be added." | 278 | false | davidfokkema/artist | set_xtick_suffix | 6,709 | |
LDU_FT/adafruit/Adafruit_CircuitPython_BME280/_read24 | LDU_FT | [
"<BEGIN>\n## `_write_ctrl_meas`",
"Write the values to the ctrl_meas and ctrl_hum registers in the device\n ctrl_meas sets the pressure and temperature data acquistion options\n ctrl_hum sets the humidty oversampling and must be written to first\n<END>",
"<BEGIN>\n## `_write_config`",
"Write the... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _read24 API.
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 _read24 API.
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... | Read an unsigned 24-bit value as a floating point and return it. | "Read an unsigned 24-bit value as a floating point and return it." | 20 | false | adafruit/Adafruit_CircuitPython_BME280 | _read24 | 6,710 | |
LDU_FT/rueckstiess/mtools/get_line_str | LDU_FT | [
"<BEGIN>\n## `wait_for_host`",
"Ping server and wait for response.",
" Ping a mongod or mongos every `interval` seconds until it responds, or\n `timeout` seconds have passed. If `to_start` is set to False, will wait for\n the node to shut down instead. This function can be called as a separate\n thr... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_line_str API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extr... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_line_str API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extr... | Return line_str depending on source, logfile or system.profile. | "Return line_str depending on source, logfile or system.profile." | 260 | false | rueckstiess/mtools | get_line_str | 6,711 | |
LDU_FT/InspectorMustache/base16-builder-python/_get_temp | LDU_FT | [
"<BEGIN>\n## `get_parent_dir`",
"Get the directory $level levels above $base_dir.\n<END>",
"<BEGIN>\n## `get_pystache_parsed`",
"Return a ParsedTemplate instance based on the contents of\n $mustache_file.\n<END>",
"<BEGIN>\n## `get_template_dirs`",
"Return a set of all template directories.\n<END>",
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_temp API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extract... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_temp API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extract... | Get the string that points to a specific base16 scheme. | "Get the string that points to a specific base16 scheme." | 50 | false | InspectorMustache/base16-builder-python | _get_temp | 6,712 | |
LDU_FT/idlesign/django-sitecats/register_lists | LDU_FT | [
"<BEGIN>\n## `get_category_lists`",
"Returns a list of CategoryList objects, associated with\n this model instance.",
" :param dict|None init_kwargs:\n :param list|None additional_parents_aliases:\n :rtype: list|CategoryRequestHandler\n :return:\n<END>",
"<BEGIN>\n## `enable... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the register_lists API.
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 register_lists API.
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... | Registers CategoryList objects to handle their requests.
:param list category_lists: CategoryList objects
:param dict lists_init_kwargs: Attributes to apply to each of CategoryList objects | "Registers CategoryList objects to handle their requests.\n\n :param list category_lists: CategoryList objects\n :param dict lists_init_kwargs: Attributes to apply to each of CategoryList objects" | 73 | false | idlesign/django-sitecats | register_lists | 6,713 | |
LDU_FT/SoCo/SoCo/reference | LDU_FT | [
"<BEGIN>\n## `_post`",
"Try 3 times to request the content.",
" :param headers: The HTTP headers\n :type headers: dict\n :param body: The body of the HTTP post\n :type body: str\n :param retries: The number of times to retry before giving up\n :type retries: int\n :param timeout: The time t... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the reference API.
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 reference API.
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... | The Didl object this favorite refers to. | "The Didl object this favorite refers to." | 663 | false | SoCo/SoCo | reference | 6,714 | |
LDU_FT/Workiva/furious/_parse_yaml_config | LDU_FT | [
"<BEGIN>\n## `_handle_task`",
"Pass request info to the async framework.\n<END>",
"<BEGIN>\n## `_init`",
"Initialize the furious context and registry.",
" NOTE: Do not directly run this method.\n<END>",
"<BEGIN>\n## `run_job`",
"Takes an async object and executes its job.\n<END>",
"<BEGIN>\n## `_ha... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _parse_yaml_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.
Th... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _parse_yaml_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.
Th... | Gets the configuration from the found furious.yaml
file and parses the data.
Returns:
a dictionary parsed from the yaml file | "Gets the configuration from the found furious.yaml\n file and parses the data.\n Returns:\n a dictionary parsed from the yaml file" | 211 | false | Workiva/furious | _parse_yaml_config | 6,715 | |
LDU_FT/LeKono/pyhgnc/ena | LDU_FT | [
"<BEGIN>\n## `get_many2many_table`",
"Creates a many-to-many table that links the given tables table1 and table2.",
" :param str table1: Tablename of left hand table without TABLE_PREFIX.\n :param str table2: Tablename of right hand table without TABLE_PREFIX.\n :return:\n<END>",
"<BEGIN>\n## `_limit... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the ena API.
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 ena API.
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... | Method to query :class:`.models.ENA` objects in database
:param enaid: European Nucleotide Archive (ENA) identifier(s)
:type enaid: str or tuple(str) or None
:param hgnc_symbol: HGNC symbol(s)
:type hgnc_symbol: str or tuple(str) or None
:param hgnc_identifier: identifiers(s) ... | "Method to query :class:`.models.ENA` objects in database\n\n :param enaid: European Nucleotide Archive (ENA) identifier(s)\n :type enaid: str or tuple(str) or None\n\n :param hgnc_symbol: HGNC symbol(s)\n :type hgnc_symbol: str or tuple(str) or None\n\n :param hgnc_identifier: identi... | 248 | false | LeKono/pyhgnc | ena | 6,716 | |
LDU_FT/antoniobotelho/py-business-calendar/_workdaycount | LDU_FT | [
"<BEGIN>\n## `isworkday`",
"Check if a given date is a work date, ignoring holidays.\r",
" Args:\r\n date (date, datetime or str): Date to be checked.\r",
" Returns:\r\n bool: True if the date is a work date, False otherwise.\n<END>",
"<BEGIN>\n## `isholiday`",
"Check i... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _workdaycount API.
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 _workdaycount API.
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... | (PRIVATE) Count work days between two dates, ignoring holidays. | "(PRIVATE) Count work days between two dates, ignoring holidays." | 47 | false | antoniobotelho/py-business-calendar | _workdaycount | 6,717 | |
LDU_FT/matthiask/django-cte-forest/prepare_delete | LDU_FT | [
"<BEGIN>\n## `_ensure_parameters`",
"Attempts to load and verify the CTE node parameters. Will use\n default values for all missing parameters, and raise an exception if\n a parameter's value cannot be verified. This method will only\n perform these actions once, and set the :attr... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the prepare_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.
The ex... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the prepare_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.
The ex... | Prepares a given :class:`CTENode` `node` for deletion, by executing
the required deletion semantics (Pharaoh, Grandmother, or Monarchy).
The `method` argument can be one of the valid
:const:`DELETE_METHODS` choices. If it is
:const:`DELETE_METHOD_NONE` or ``None``, then ... | "Prepares a given :class:`CTENode` `node` for deletion, by executing\n the required deletion semantics (Pharaoh, Grandmother, or Monarchy).\n\n The `method` argument can be one of the valid\n :const:`DELETE_METHODS` choices. If it is\n :const:`DELETE_METHOD_NONE` or ``None``,... | 153 | false | matthiask/django-cte-forest | prepare_delete | 6,718 | |
LDU_FT/nchopin/particles/distinct_seeds | LDU_FT | [
"<BEGIN>\n## `all_distinct`",
"Returns the list [l[i] for i in idx] \n When needed, objects l[i] are replaced by a copy, to make sure that\n the elements of the list are all distinct",
" Parameters\n ---------\n l: iterable\n idx: iterable that generates ints (e.g. ndarray of ints)",
" Re... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the distinct_seeds API.
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 distinct_seeds API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ex... | returns k distinct seeds for random number generation | "returns k distinct seeds for random number generation" | 249 | false | nchopin/particles | distinct_seeds | 6,719 | |
LDU_FT/aloetesting/aloe_django/run_from_argv | LDU_FT | [
"<BEGIN>\n## `run_from_argv`",
"Set the default Gherkin test runner for its options to be parsed.\n<END>",
"<BEGIN>\n## `django_url`",
"The URL for a page from the test server.",
" :param step: A Gherkin step\n :param url: If specified, the relative URL to append.\n<END>",
"<BEGIN>\n## `_models_gene... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the run_from_argv API.
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 run_from_argv API.
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... | Set the default Gherkin test runner for its options to be parsed. | "Set the default Gherkin test runner for its options to be parsed." | 58 | false | aloetesting/aloe_django | run_from_argv | 6,720 | |
LDU_FT/lemieuxl/pyplink/iter_geno_marker | LDU_FT | [
"<BEGIN>\n## `next`",
"Returns the next marker.",
" Returns:\n tuple: The marker name as a string and its genotypes as a\n :py:class:`numpy.ndarray`.\n<END>",
"<BEGIN>\n## `_read_current_marker`",
"Reads the current marker and returns its genotypes.\n<END>",
"<BEGIN>\n## `seek... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the iter_geno_marker API.
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 iter_geno_marker API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | Iterates over genotypes for a list of markers.
Args:
markers (list): The list of markers to iterate onto.
return_index (bool): Wether to return the marker's index or not.
Returns:
tuple: The name of the marker as a string, and its genotypes as a
:py:clas... | "Iterates over genotypes for a list of markers.\n\n Args:\n markers (list): The list of markers to iterate onto.\n return_index (bool): Wether to return the marker's index or not.\n\n Returns:\n tuple: The name of the marker as a string, and its genotypes as a\n ... | 34 | false | lemieuxl/pyplink | iter_geno_marker | 6,721 | |
LDU_FT/255BITS/hyperchamber/resize_image_with_crop_or_pad | LDU_FT | [
"<BEGIN>\n## `conv_cond_concat`",
"Concatenate conditioning vector on feature map axis.\n<END>",
"<BEGIN>\n## `avg_grads`",
"Calculate the average gradient for each shared variable across all towers.",
" Note that this function provides a synchronization point across all towers.",
" Args:\n tower_gra... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the resize_image_with_crop_or_pad 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 resize_image_with_crop_or_pad API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conc... | Crops and/or pads an image to a target width and height.
Resizes an image to a target width and height by either centrally
cropping the image or padding it evenly with zeros.
If `width` or `height` is greater than the specified `target_width` or
`target_height` respectively, this op centrally crops along that... | "Crops and/or pads an image to a target width and height.\n\n Resizes an image to a target width and height by either centrally\n cropping the image or padding it evenly with zeros.\n\n If `width` or `height` is greater than the specified `target_width` or\n `target_height` respectively, this op centrally crops alo... | 61 | false | 255BITS/hyperchamber | resize_image_with_crop_or_pad | 6,722 | |
LDU_FT/Locu/chronology/_send_with_auth | LDU_FT | [
"<BEGIN>\n## `is_remote_allowed`",
"Check if `remote` is allowed to make a CORS request.\n<END>",
"<BEGIN>\n## `endpoint`",
"Returns a decorator which when applied a function, causes that function to\n serve `url` and only allows the HTTP methods in `methods`\n<END>",
"<BEGIN>\n## `get_seconds`",
"Conver... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _send_with_auth API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The e... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _send_with_auth API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The e... | Send dictionary of JSON serializable `values` as a POST body to `url`
along with `auth_token` that's generated from `secret_key` and `values`
scheduler.auth.create_token expects a JSON serializable payload, so we send
a dictionary. On the receiving end of the POST request, the Flask view will
have access to... | "Send dictionary of JSON serializable `values` as a POST body to `url`\n along with `auth_token` that's generated from `secret_key` and `values`\n\n scheduler.auth.create_token expects a JSON serializable payload, so we send\n a dictionary. On the receiving end of the POST request, the Flask view will\n have acc... | 156 | false | Locu/chronology | _send_with_auth | 6,723 | |
LDU_FT/ManiacalLabs/PixelWeb/add | LDU_FT | [
"<BEGIN>\n## `_re_flatten`",
"Turn all capturing groups in a regular expression pattern into\n non-capturing groups.\n<END>",
"<BEGIN>\n## `redirect`",
"Aborts execution and causes a 303 or 302 redirect, depending on\n the HTTP protocol version.\n<END>",
"<BEGIN>\n## `_file_iter_range`",
"Yi... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted doc... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted doc... | Add a new rule or replace the target for an existing rule. | "Add a new rule or replace the target for an existing rule." | 100 | false | ManiacalLabs/PixelWeb | add | 6,724 | |
LDU_FT/raghakot/keras-vis/get_identifier | LDU_FT | [
"<BEGIN>\n## `visualize_activation_with_losses`",
"Generates the `input_tensor` that minimizes the weighted `losses`. This function is intended for advanced\n use cases where a custom loss is desired.",
" Args:\n input_tensor: An input tensor of shape: `(samples, channels, image_dims...)` if `image... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_identifier API.
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 get_identifier API.
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... | Helper utility to retrieve the callable function associated with a string identifier.
Args:
identifier: The identifier. Could be a string or function.
module_globals: The global objects of the module.
module_name: The module name
Returns:
The callable associated with the identi... | "Helper utility to retrieve the callable function associated with a string identifier.\n\n Args:\n identifier: The identifier. Could be a string or function.\n module_globals: The global objects of the module.\n module_name: The module name\n\n Returns:\n The callable associated with t... | 138 | false | raghakot/keras-vis | get_identifier | 6,725 | |
LDU_FT/Neurosim-lab/netpyne/createSimulate | LDU_FT | [
"<BEGIN>\n## `add_scalebar`",
"Add scalebars to axes\n Adds a set of scale bars to *ax*, matching the size to the ticks of the plot\n and optionally hiding the x and y axes\n - ax : the axis to attach ticks to\n - matchx,matchy : if True, set size of scale bars to spacing between ticks\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the createSimulate API.
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 createSimulate API.
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... | Sequence of commands create, simulate and analyse network | "Sequence of commands create, simulate and analyse network" | 234 | false | Neurosim-lab/netpyne | createSimulate | 6,726 | |
LDU_FT/Vagrants/blackbird/build_items | LDU_FT | [
"<BEGIN>\n## `helper_import`",
"Return class or module object.\n if the argument is only a module name and return a module object.\n if the argument is a module and class name, and return a class object.\n<END>",
"<BEGIN>\n## `global_import`",
"This function search sys.path[1:], return specified module.... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the build_items API.
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 build_items API.
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... | u"""This method called by Executer.
/proc/net/tcp -> {host:host, key:key, value:value, clock:clock} | "u\"\"\"This method called by Executer.\n /proc/net/tcp -> {host:host, key:key, value:value, clock:clock}" | 106 | false | Vagrants/blackbird | build_items | 6,727 | |
LDU_FT/pgjones/quart/should_set_cookie | LDU_FT | [
"<BEGIN>\n## `get_command`",
"Return the relevant command given the context and name.",
" .. warning::",
" This differs substaintially from Flask in that it allows\n for the inbuilt commands to be overridden.\n<END>",
"<BEGIN>\n## `render_template`",
"Render the template with ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the should_set_cookie API.
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 should_set_cookie API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | Helper method to return if the Set Cookie header should be present.
This triggers if the session is marked as modified or the app
is configured to always refresh the cookie. | "Helper method to return if the Set Cookie header should be present.\n\n This triggers if the session is marked as modified or the app\n is configured to always refresh the cookie." | 611 | false | pgjones/quart | should_set_cookie | 6,728 | |
LDU_FT/slaveofcode/pycrawler/extract_css_links | LDU_FT | [
"<BEGIN>\n## `extract_favicon`",
"Extracting favicon url from BeautifulSoup object",
" :param bs4: `BeautifulSoup`\n :return: `list` List of favicon urls\n<END>",
"<BEGIN>\n## `extract_metas`",
"Extracting meta tags from BeautifulSoup object",
" :param bs4: `BeautifulSoup`\n :return: `list` Li... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the extract_css_links API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the extract_css_links API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | Extracting css links from BeautifulSoup object
:param bs4: `BeautifulSoup`
:return: `list` List of links | "Extracting css links from BeautifulSoup object\n\n :param bs4: `BeautifulSoup`\n :return: `list` List of links" | 33 | false | slaveofcode/pycrawler | extract_css_links | 6,729 | |
LDU_FT/hovren/crisp/calibrate | LDU_FT | [
"<BEGIN>\n## `sync_camera_gyro`",
"Get time offset that aligns image timestamps with gyro timestamps.",
" Given an image sequence, and gyroscope data, with their respective timestamps,\n calculate the offset that aligns the image data with the gyro data.\n The timestamps must only differ by an offset, ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the calibrate API.
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 calibrate API.
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... | Perform calibration
Parameters
----------------------
max_eval : int
Maximum number of function evaluations
Returns
---------------------
dict
Optimization result
Raises
-----------------------
CalibrationError
... | "Perform calibration\n\n Parameters\n ----------------------\n max_eval : int\n Maximum number of function evaluations\n\n Returns\n ---------------------\n dict\n Optimization result\n\n Raises\n -----------------------\n CalibrationE... | 252 | false | hovren/crisp | calibrate | 6,730 | |
LDU_FT/simpleai-team/simpleai/learn | LDU_FT | [
"<BEGIN>\n## `_all_expander`",
"Expander that expands all nodes on the fringe.\n<END>",
"<BEGIN>\n## `beam`",
"Beam search.",
" beam_size is the size of the beam.\n If iterations_limit is specified, the algorithm will end after that\n number of iterations. Else, it will continue until it can't find... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the learn API.
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 learn API.
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... | A decision tree learner that *strictly* follows the pseudocode given in
AIMA. In 3rd edition, see Figure 18.5, page 702. | "A decision tree learner that *strictly* follows the pseudocode given in\n AIMA. In 3rd edition, see Figure 18.5, page 702." | 130 | false | simpleai-team/simpleai | learn | 6,731 | |
LDU_FT/limodou/ido/execute | LDU_FT | [
"<BEGIN>\n## `get_input`",
"If option_value is not None, then return it. Otherwise get the result from \n input.\n<END>",
"<BEGIN>\n## `run_from_argv`",
"Set up any environment changes requested, then run this command.\n<END>",
"<BEGIN>\n## `print_help_info`",
"Returns the script's main help text, as a... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the execute API.
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 execute API.
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... | Given the command-line arguments, this figures out which subcommand is
being run, creates a parser appropriate to that command, and runs it. | "Given the command-line arguments, this figures out which subcommand is\n being run, creates a parser appropriate to that command, and runs it." | 14 | false | limodou/ido | execute | 6,732 | |
LDU_FT/antonagestam/collectfast/get_cache_key | LDU_FT | [
"<BEGIN>\n## `get_cache_key`",
"Create a cache key by concatenating the prefix with a hash of the path.\n<END>",
"<BEGIN>\n## `get_remote_etag`",
"Get etag of path from S3 using boto or boto3.\n<END>",
"<BEGIN>\n## `get_etag`",
"Get etag of path from cache or S3 - in that order.\n<END>",
"<BEGIN>\n## `h... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_cache_key API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_cache_key API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | Create a cache key by concatenating the prefix with a hash of the path. | "Create a cache key by concatenating the prefix with a hash of the path." | 20 | false | antonagestam/collectfast | get_cache_key | 6,733 | |
LDU_FT/openpermissions/chub/_request | LDU_FT | [
"<BEGIN>\n## `prepare_request`",
"creates a full featured HTTPRequest objects\n<END>",
"<BEGIN>\n## `_request`",
"retrieve the caller frame, extract the parameters from\n the caller function, find the matching function,\n and fire the request\n<END>",
"<BEGIN>\n## `login`",
"login using emai... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _request API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracte... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _request API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracte... | retrieve the caller frame, extract the parameters from
the caller function, find the matching function,
and fire the request | "retrieve the caller frame, extract the parameters from\n the caller function, find the matching function,\n and fire the request" | 22 | false | openpermissions/chub | _request | 6,734 | |
LDU_FT/mithro/python-datetime-tz/asdatetime | LDU_FT | [
"<BEGIN>\n## `_tzinfome`",
"Gets a tzinfo object from a string.",
" Args:\n tzinfo: A string (or string like) object, or a datetime.tzinfo object.",
" Returns:\n An datetime.tzinfo object.",
" Raises:\n UnknownTimeZoneError: If the timezone given can't be decoded.\n<END>",
"<BEGIN>\n## `locali... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the asdatetime API.
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 asdatetime API.
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... | Return this datetime_tz as a datetime object.
Args:
naive: Return *without* any tz info.
Returns:
This datetime_tz as a datetime object. | "Return this datetime_tz as a datetime object.\n\n Args:\n naive: Return *without* any tz info.\n\n Returns:\n This datetime_tz as a datetime object." | 89 | false | mithro/python-datetime-tz | asdatetime | 6,735 | |
LDU_FT/newville/wxmplot/set_float | LDU_FT | [
"<BEGIN>\n## `display`",
"generic display, using imshow (default) or contour\n<END>",
"<BEGIN>\n## `update_image`",
"update image on panel, as quickly as possible\n<END>",
"<BEGIN>\n## `add_highlight_area`",
"add a highlighted area -- outline an arbitrarily shape --\n as if drawn from a Lasso event... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_float API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extract... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_float API.
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... | utility to set a floating value,
useful for converting from strings | "utility to set a floating value,\n useful for converting from strings" | 169 | false | newville/wxmplot | set_float | 6,736 | |
LDU_FT/alaudet/hcsr04sensor/main | LDU_FT | [
"<BEGIN>\n## `basic_distance`",
"Return an unformatted distance in cm's as read directly from\n RPi.GPIO.\n<END>",
"<BEGIN>\n## `raw_distance`",
"Return an error corrected unrounded distance, in cm, of an object \n adjusted for temperature in Celcius. The distance calculated\n is the median ... | 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... | Main function to run the sensor with passed arguments | "Main function to run the sensor with passed arguments" | 20 | false | alaudet/hcsr04sensor | main | 6,737 | |
LDU_FT/bslatkin/dpxdt/view_run | LDU_FT | [
"<BEGIN>\n## `add`",
"Adds a work item to a queue.",
" Args:\n queue_name: Name of the queue to add the work item to.\n payload: Optional. Payload that describes the work to do as a string.\n If not a string and content_type is not provided, then this\n function assumes th... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the view_run API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracte... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the view_run API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracte... | Page for viewing before/after for a specific test run. | "Page for viewing before/after for a specific test run." | 180 | false | bslatkin/dpxdt | view_run | 6,738 | |
LDU_FT/airspeed-velocity/asv/write_atom | LDU_FT | [
"<BEGIN>\n## `get_graph_data`",
"Iterator over graph data sets",
" Yields\n ------\n param_idx\n Flat index to parameter permutations for parameterized benchmarks.\n None if benchmark is not parameterized.\n entry_name\n Name for the data set. If benc... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the write_atom API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extrac... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the write_atom API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extrac... | Write an atom feed to a file.
Parameters
----------
dest : str
Destination file path, or a file-like object
entries : list of FeedEntry
Feed entries.
author : str
Author of the feed.
title : str
Title for the feed.
address : str
Address (domain name o... | "Write an atom feed to a file.\n\n Parameters\n ----------\n dest : str\n Destination file path, or a file-like object\n entries : list of FeedEntry\n Feed entries.\n author : str\n Author of the feed.\n title : str\n Title for the feed.\n address : str\n Address ... | 256 | false | airspeed-velocity/asv | write_atom | 6,739 | |
LDU_FT/DistrictDataLabs/yellowbrick/fit | LDU_FT | [
"<BEGIN>\n## `download`",
"Download the dataset from the hosted Yellowbrick data store and save\n it to the location specified by ``get_data_home``. The downloader\n verifies the download completed successfully and safely by comparing\n the expected signature with the SHA 256 signature of the... | 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... | Pretend to be a sklearn estimator, fit is called on creation | "Pretend to be a sklearn estimator, fit is called on creation" | 1,283 | true | DistrictDataLabs/yellowbrick | fit | 6,740 | |
LDU_FT/ulf1/oxyba/linreg_ols_svd | LDU_FT | [
"<BEGIN>\n## `clean_german_number`",
"Convert a string with a German number into a Decimal",
" Parameters\n ----------\n x : str, list, tuple, numpy.ndarray, pandas.DataFrame\n A string with a number with German formatting,\n or an array of these strings, e.g. list, ndarray, df.",
" ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the linreg_ols_svd API.
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 linreg_ols_svd API.
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... | Linear Regression, OLS, inv by SVD
Properties
----------
* Numpy's lstsq is based on LAPACK's _gelsd what applies SVD
* SVD inverse might be slow (complex Landau O)
* speed might decline during forward selection
* no overhead or other computations
Example:
--------
beta = lin_o... | "Linear Regression, OLS, inv by SVD\n\n Properties\n ----------\n * Numpy's lstsq is based on LAPACK's _gelsd what applies SVD\n * SVD inverse might be slow (complex Landau O)\n * speed might decline during forward selection\n * no overhead or other computations\n\n Example:\n --------\n ... | 218 | false | ulf1/oxyba | linreg_ols_svd | 6,741 | |
LDU_FT/quora/qcore/assert_in_with_tolerance | LDU_FT | [
"<BEGIN>\n## `lazy_constant`",
"Decorator to make a function that takes no arguments use the LazyConstant class.\n<END>",
"<BEGIN>\n## `lru_cache`",
"Decorator that adds an LRU cache of size maxsize to the decorated function.",
" maxsize is the number of different keys cache can accomodate.\n key_fn i... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the assert_in_with_tolerance 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 assert_in_with_tolerance API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio... | Raises an AssertionError if obj is not in seq using assert_eq cmp. | "Raises an AssertionError if obj is not in seq using assert_eq cmp." | 167 | false | quora/qcore | assert_in_with_tolerance | 6,742 | |
LDU_FT/wndhydrnt/python-oauth2/save_token | LDU_FT | [
"<BEGIN>\n## `fetch_by_code`",
"Returns data belonging to an authorization code from redis or\n ``None`` if no data was found.",
" See :class:`oauth2.store.AuthCodeStore`.\n<END>",
"<BEGIN>\n## `save_code`",
"Stores the data belonging to an authorization code token in redis.",
" See :... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the save_token API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extrac... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the save_token API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extrac... | Creates a new entry for an access token in the database.
:param access_token: An instance of
:class:`oauth2.datatype.AccessToken`.
:return: `True`. | "Creates a new entry for an access token in the database.\n\n :param access_token: An instance of\n :class:`oauth2.datatype.AccessToken`.\n\n :return: `True`." | 165 | false | wndhydrnt/python-oauth2 | save_token | 6,743 | |
LDU_FT/pyvisa/pyvisa/register_subclass | LDU_FT | [
"<BEGIN>\n## `pass_control`",
"Tell the GPIB device at the specified address to become controller in charge (CIC).",
" Corresponds to viGpibPassControl function of the VISA library.",
" :param primary_address: Primary address of the GPIB device to which you want to pass control.\n :param ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the register_subclass API.
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 register_subclass API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | Register a subclass for a given interface type and resource class. | "Register a subclass for a given interface type and resource class." | 529 | false | pyvisa/pyvisa | register_subclass | 6,744 | |
LDU_FT/draperjames/qtpandas/search | LDU_FT | [
"<BEGIN>\n## `startDrag`",
"start a drag operation with a PandasCellPayload on defined index.",
" Args:\n index (QModelIndex): model index you want to start the drag operation.\n<END>",
"<BEGIN>\n## `initUi`",
"Initalizes the Uuser Interface with all sub widgets.\n<END>",
"<BEGIN>\n## `e... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the search API.
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 search API.
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 ... | Applies the filter to the stored dataframe.
A safe environment dictionary will be created, which stores all allowed
functions and attributes, which may be used for the filter.
If any object in the given `filterString` could not be found in the
dictionary, the filter does not apply and r... | "Applies the filter to the stored dataframe.\n\n A safe environment dictionary will be created, which stores all allowed\n functions and attributes, which may be used for the filter.\n If any object in the given `filterString` could not be found in the\n dictionary, the filter does not apply... | 420 | false | draperjames/qtpandas | search | 6,745 | |
LDU_FT/vmware/pyvmomi/_ConvertParamType | LDU_FT | [
"<BEGIN>\n## `_AddType`",
"Note: Must be holding the _lazyLock, or in main init path\n<END>",
"<BEGIN>\n## `GetServiceVersions`",
"Get all the versions for the service with specified namespace (partially) ordered\n by compatibility (i.e. any version in the list that is compatible with some version\n v in ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _ConvertParamType API.
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 _ConvertParamType API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | Convert vmodl.reflect.DynamicTypeManager.ParamTypeInfo to pyVmomi param
definition | "Convert vmodl.reflect.DynamicTypeManager.ParamTypeInfo to pyVmomi param\n definition" | 128 | false | vmware/pyvmomi | _ConvertParamType | 6,746 | |
LDU_FT/Hrabal/TemPy/from_string | LDU_FT | [
"<BEGIN>\n## `render_attrs`",
"Renders the tag's attributes using the formats and performing special attributes name substitution.\n<END>",
"<BEGIN>\n## `toggle_class`",
"Same as jQuery's toggleClass function. It toggles the css class on this element.\n<END>",
"<BEGIN>\n## `remove_class`",
"Removes the gi... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the from_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 extra... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the from_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 extra... | Parses an html string and returns a list of Tempy trees. | "Parses an html string and returns a list of Tempy trees." | 80 | false | Hrabal/TemPy | from_string | 6,747 | |
LDU_FT/ucfopen/canvasapi/get_course | LDU_FT | [
"<BEGIN>\n## `request`",
"Make a request to the Canvas API and return the response.",
" :param method: The HTTP method for the request.\n :type method: str\n :param endpoint: The endpoint to call.\n :type endpoint: str\n :param headers: Optional HTTP headers to be sent with th... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_course API.
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_course API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extrac... | Retrieve a course by its ID.
:calls: `GET /api/v1/courses/:id \
<https://canvas.instructure.com/doc/api/courses.html#method.courses.show>`_
:param course: The object or ID of the course to retrieve.
:type course: int, str or :class:`canvasapi.course.Course`
:param use_sis_id: W... | "Retrieve a course by its ID.\n\n :calls: `GET /api/v1/courses/:id \\\n <https://canvas.instructure.com/doc/api/courses.html#method.courses.show>`_\n\n :param course: The object or ID of the course to retrieve.\n :type course: int, str or :class:`canvasapi.course.Course`\n :param use_... | 219 | false | ucfopen/canvasapi | get_course | 6,748 | |
LDU_FT/gunthercox/ChatterBot/import_module | LDU_FT | [
"<BEGIN>\n## `get_response`",
"Return the bot's response based on the input.",
" :param statement: An statement object or string.\n :returns: A response to the input.\n :rtype: Statement",
" :param additional_response_selection_parameters: Parameters to pass to the\n cha... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the import_module API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the import_module API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | Imports the specified module based on the
dot notated import path for the module. | "Imports the specified module based on the\n dot notated import path for the module." | 158 | false | gunthercox/ChatterBot | import_module | 6,749 | |
LDU_FT/exosite-labs/pyonep/get_data_source_bulk_request | LDU_FT | [
"<BEGIN>\n## `request`",
"Wraps HTTPConnection.request. On exception it calls exception_fn\n with the exception object. If exception_fn is None, it re-raises the\n exception. If notimeout is True, create a new connection (regardless of\n self.reuseconnection setting) that uses the global defa... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_data_source_bulk_request API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its concl... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_data_source_bulk_request API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its concl... | This grabs each datasource and its multiple datapoints for a particular device. | "This grabs each datasource and its multiple datapoints for a particular device." | 199 | false | exosite-labs/pyonep | get_data_source_bulk_request | 6,750 | |
LDU_FT/pyparsing/pyparsing/newline_text | LDU_FT | [
"<BEGIN>\n## `parse`",
"Accepts an input string containing an LA equation, e.g.,\r\n \"M3_mymatrix = M3_anothermatrix^-1\" returns C code function\r\n calls that implement the expression.\n<END>",
"<BEGIN>\n## `fprocess`",
"Scans an input file for LA equations between double square brackets,\r\n e.g. ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the newline_text API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extr... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the newline_text API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extr... | Inserts a newline and text, optionally with indentation (helper function) | "Inserts a newline and text, optionally with indentation (helper function)" | 132 | false | pyparsing/pyparsing | newline_text | 6,751 | |
LDU_FT/bitlabstudio/django-development-fabfile/run_export_db | LDU_FT | [
"<BEGIN>\n## `require_server`",
"Checks if the user has called the task with a server name.",
" Fabric tasks decorated with this decorator must be called like so::",
" fab <server name> <task name>",
" If no server name is given, the task will not be executed.\n<END>",
"<BEGIN>\n## `run_deplo... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the run_export_db API.
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 run_export_db API.
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... | Exports the database on the server.
Usage::
fab prod run_export_db
fab prod run_export_db:filename=foobar.dump | "Exports the database on the server.\n\n Usage::\n\n fab prod run_export_db\n fab prod run_export_db:filename=foobar.dump" | 77 | false | bitlabstudio/django-development-fabfile | run_export_db | 6,752 | |
LDU_FT/pavlin-policar/openTSNE/query | LDU_FT | [
"<BEGIN>\n## `has_c_library`",
"Check whether a C/C++ library is available on the system to the compiler.",
" Parameters\n ----------\n library: str\n The library we want to check for e.g. if we are interested in FFTW3, we\n want to check for `fftw3.h`, so this parameter will be `fftw3`.\... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the query API.
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 query API.
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... | Query the training data for the k nearest neighbors
Parameters
----------
query_data: array-like, last dimension self.dim
An array of points to query
k: integer (default = 10)
The number of nearest neighbors to return
queue_size: float (default 5.0)
... | "Query the training data for the k nearest neighbors\n\n Parameters\n ----------\n query_data: array-like, last dimension self.dim\n An array of points to query\n\n k: integer (default = 10)\n The number of nearest neighbors to return\n\n queue_size: float (defau... | 181 | false | pavlin-policar/openTSNE | query | 6,753 | |
LDU_FT/JenkinsDev/pelican-readtime/pluralize | LDU_FT | [
"<BEGIN>\n## `_set_supported_content_type`",
"Checks and sets the supported content types configuration value.\n<END>",
"<BEGIN>\n## `_set_lang_settings`",
"Checks and sets the per language WPM, singular and plural values.\n<END>",
"<BEGIN>\n## `initialize_settings`",
"Initializes ReadTimeParser with conf... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the pluralize API.
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 pluralize API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extract... | Returns a string that contains the measure (amount) and its plural
or singular form depending on the amount.
Parameters:
:param measure: Amount, value, always a numerical value
:param singular: The singular form of the chosen word
:param plural: The plural form of th... | "Returns a string that contains the measure (amount) and its plural\n or singular form depending on the amount.\n\n Parameters:\n :param measure: Amount, value, always a numerical value\n :param singular: The singular form of the chosen word\n :param plural: The plural for... | 14 | false | JenkinsDev/pelican-readtime | pluralize | 6,754 | |
LDU_FT/lreis2415/PyGeoC/areadinf | LDU_FT | [
"<BEGIN>\n## `get_cell_length`",
"Get flow direction induced cell length dict.\n Args:\n flow_model: Currently, \"TauDEM\", \"ArcGIS\", and \"Whitebox\" are supported.\n<END>",
"<BEGIN>\n## `get_cell_shift`",
"Get flow direction induced cell shift dict.\n Args:\n flow_model... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the areadinf API.
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 areadinf API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracte... | Run Accumulate area according to Dinf flow direction | "Run Accumulate area according to Dinf flow direction" | 259 | false | lreis2415/PyGeoC | areadinf | 6,755 | |
LDU_FT/wishtack/pysynthetic/setNamingConvention | LDU_FT | [
"<BEGIN>\n## `syntheticMemberDecorator`",
":type memberName: str\n :type readOnly: bool\n :type privateMemberName: str|None\n :type memberDelegate: IMemberDelegate\n<END>",
"<BEGIN>\n## `namingConventionDecorator`",
":type namingConvention:INamingConvention\n<END>",
"<BEGIN>\n## `makeConstructor`",... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the setNamingConvention 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 setNamingConvention 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... | :type namingConvention: INamingConvention | ":type namingConvention: INamingConvention" | 66 | false | wishtack/pysynthetic | setNamingConvention | 6,756 | |
LDU_FT/fedora-infra/fmn.rules/anitya_by_upstream_project | LDU_FT | [
"<BEGIN>\n## `pagure_specific_project_filter`",
"Particular pagure projects",
" Adding this rule allows you to get notifications for one or more\n `pagure.io <https://pagure.io>`_ projects. Specify multiple\n projects by separating them with a comma ','.\n<END>",
"<BEGIN>\n## `pagure_specific_proj... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the anitya_by_upstream_project API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclus... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the anitya_by_upstream_project API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclus... | Anything regarding a particular "upstream project"
Adding this rule will let through *any* anitya notification that pertains
to a particular "upstream project". Note that the "project" name is often
different from the distro "package" name. For instance, the package
python-requests in Fedora will hav... | "Anything regarding a particular \"upstream project\"\n\n Adding this rule will let through *any* anitya notification that pertains\n to a particular \"upstream project\". Note that the \"project\" name is often\n different from the distro \"package\" name. For instance, the package\n python-requests in F... | 95 | false | fedora-infra/fmn.rules | anitya_by_upstream_project | 6,757 | |
LDU_FT/chaimleib/intervaltree/search_point | LDU_FT | [
"<BEGIN>\n## `refresh_balance`",
"Recalculate self.balance and self.depth based on child node values.\n<END>",
"<BEGIN>\n## `compute_depth`",
"Recursively computes true depth of the subtree. Should only\n be needed for debugging. Unless something is wrong, the\n depth field should reflect the co... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the search_point API.
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 search_point API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extr... | Returns all intervals that contain point. | "Returns all intervals that contain point." | 139 | false | chaimleib/intervaltree | search_point | 6,758 | |
LDU_FT/michaelliao/sinaweibopy/_encode_params | LDU_FT | [
"<BEGIN>\n## `_parse_json`",
"Parse json string into JsonDict.",
" >>> r = _parse_json(r'{\"name\":\"Michael\",\"score\":95}')\n >>> r.name\n u'Michael'\n >>> r['score']\n 95\n<END>",
"<BEGIN>\n## `_encode_params`",
"Do url-encode parameters",
" >>> _encode_params(a=1, b='R&D')\n 'a=1... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _encode_params API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ex... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _encode_params API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ex... | Do url-encode parameters
>>> _encode_params(a=1, b='R&D')
'a=1&b=R%26D'
>>> _encode_params(a=u'\u4e2d\u6587', b=['A', 'B', 123])
'a=%E4%B8%AD%E6%96%87&b=A&b=B&b=123' | "Do url-encode parameters\n\n >>> _encode_params(a=1, b='R&D')\n 'a=1&b=R%26D'\n >>> _encode_params(a=u'\\u4e2d\\u6587', b=['A', 'B', 123])\n 'a=%E4%B8%AD%E6%96%87&b=A&b=B&b=123'" | 37 | false | michaelliao/sinaweibopy | _encode_params | 6,759 | |
LDU_FT/nicodv/kmodes/_labels_cost | LDU_FT | [
"<BEGIN>\n## `init_huang`",
"Initialize centroids according to method by Huang [1997].\n<END>",
"<BEGIN>\n## `init_cao`",
"Initialize centroids according to method by Cao et al. [2009].",
" Note: O(N * attr * n_clusters**2), so watch out with large n_clusters\n<END>",
"<BEGIN>\n## `move_point_cat`",
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _labels_cost API.
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 _labels_cost API.
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... | Calculate labels and cost function given a matrix of points and
a list of centroids for the k-modes algorithm. | "Calculate labels and cost function given a matrix of points and\n a list of centroids for the k-modes algorithm." | 52 | false | nicodv/kmodes | _labels_cost | 6,760 | |
LDU_FT/jazzband/django-authority/_user_perm_cache | LDU_FT | [
"<BEGIN>\n## `permission_required`",
"Decorator for views that checks whether a user has a particular permission\n enabled, redirecting to the log-in page if necessary.\n<END>",
"<BEGIN>\n## `permission_required_or_403`",
"Decorator that wraps the permission_required decorator and returns a\n permission... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _user_perm_cache API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _user_perm_cache API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | cached_permissions will generate the cache in a lazy fashion. | "cached_permissions will generate the cache in a lazy fashion." | 67 | false | jazzband/django-authority | _user_perm_cache | 6,761 | |
LDU_FT/GNS3/gns3-server/_import_images | LDU_FT | [
"<BEGIN>\n## `_asyncio_open_serial_windows`",
"Open a windows named pipe",
" :returns: An IO like object\n<END>",
"<BEGIN>\n## `_asyncio_open_serial_unix`",
"Open a unix socket or a windows named pipe",
" :returns: An IO like object\n<END>",
"<BEGIN>\n## `_choose_capture_side`",
"Run capture on ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _import_images API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ex... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _import_images API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ex... | Copy images to the images directory or delete them if they
already exists. | "Copy images to the images directory or delete them if they\n already exists." | 1,412 | true | GNS3/gns3-server | _import_images | 6,762 | |
LDU_FT/jayclassless/basicserial/from_yaml | LDU_FT | [
"<BEGIN>\n## `to_json`",
"Serializes the given value to JSON.",
" :param value: the value to serialize\n :param pretty:\n whether or not to format the output in a more human-readable way; if\n not specified, defaults to ``False``\n :type pretty: bool\n :rtype: str\n<END>",
"<BEGIN>\n... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the from_yaml API.
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 from_yaml API.
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... | Deserializes the given value from YAML.
:param value: the value to deserialize
:type value: str
:param native_datetimes:
whether or not strings that look like dates/times should be
automatically cast to the native objects, or left as strings; if not
specified, defaults to ``True``
... | "Deserializes the given value from YAML.\n\n :param value: the value to deserialize\n :type value: str\n :param native_datetimes:\n whether or not strings that look like dates/times should be\n automatically cast to the native objects, or left as strings; if not\n specified, defaults to ``... | 18 | false | jayclassless/basicserial | from_yaml | 6,763 | |
LDU_FT/veltzer/pytconf/create_list_int | LDU_FT | [
"<BEGIN>\n## `array_indented`",
"return an array indented according to indent level\n :param level:\n :param l:\n :param quote_char:\n :param comma_after:\n :return:\n<END>",
"<BEGIN>\n## `config_arg_parse_and_launch`",
"backwards compatibility function\n :return:\n<END>",
"<BEGIN>\n## `re... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_list_int API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The e... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_list_int API.
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... | Create a List[int] parameter
:param help_string:
:param default:
:return: | "Create a List[int] parameter\n :param help_string:\n :param default:\n :return:" | 32 | false | veltzer/pytconf | create_list_int | 6,764 | |
LDU_FT/AguaClara/aguaclara/headloss_exp_rect | LDU_FT | [
"<BEGIN>\n## `density_water`",
"Return the density of water at a given temperature.",
" If given units, the function will automatically convert to Kelvin.\n If not given units, the function will assume Kelvin.\n<END>",
"<BEGIN>\n## `viscosity_kinematic`",
"Return the kinematic viscosity of water at a ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the headloss_exp_rect API.
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 headloss_exp_rect API.
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 the minor head loss due to expansion in a rectangular channel.
This equation applies to both laminar and turbulent flows. | "Return the minor head loss due to expansion in a rectangular channel.\n\n This equation applies to both laminar and turbulent flows." | 554 | false | AguaClara/aguaclara | headloss_exp_rect | 6,765 | |
LDU_FT/PeerAssets/pypeerassets/card_bundler | LDU_FT | [
"<BEGIN>\n## `parse_vote_info`",
"decode vote init tx op_return protobuf message and validate it.\n<END>",
"<BEGIN>\n## `vote_init`",
"initialize vote transaction, must be signed by the deck_issuer privkey\n<END>",
"<BEGIN>\n## `find_vote_casts`",
"find and verify vote_casts on this vote_choice_address\n<... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the card_bundler API.
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 card_bundler API.
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... | each blockchain transaction can contain multiple cards,
wrapped in bundles. This method finds and returns those bundles. | "each blockchain transaction can contain multiple cards,\n wrapped in bundles. This method finds and returns those bundles." | 86 | false | PeerAssets/pypeerassets | card_bundler | 6,766 | |
LDU_FT/vpelletier/python-libusb1/getISOSetupList | LDU_FT | [
"<BEGIN>\n## `newStruct`",
"Create a ctype structure class based on USB standard field naming\n (type-prefixed).\n<END>",
"<BEGIN>\n## `get_iso_packet_buffer_list`",
"Python-specific helper extracting a list of iso packet buffers.\n<END>",
"<BEGIN>\n## `get_extra`",
"Python-specific helper to access \"... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the getISOSetupList API.
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 getISOSetupList API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The e... | Get individual ISO transfer's setup.
Returns a list of dicts, each containing an individual ISO transfer
parameters:
- length
- actual_length
- status
(see libusb1's API documentation for their signification)
Returned list is consistent with getISOBufferList retur... | "Get individual ISO transfer's setup.\n Returns a list of dicts, each containing an individual ISO transfer\n parameters:\n - length\n - actual_length\n - status\n (see libusb1's API documentation for their signification)\n Returned list is consistent with getISOBufferLi... | 136 | false | vpelletier/python-libusb1 | getISOSetupList | 6,767 | |
LDU_FT/LIVVkit/LIVVkit/setup_output | LDU_FT | [
"<BEGIN>\n## `run_suite`",
"Run the full suite of verification tests\n<END>",
"<BEGIN>\n## `_analyze_case`",
"Runs all of the verification checks on a particular case\n<END>",
"<BEGIN>\n## `_summarize_result`",
"Trim out some data to return for the index page\n<END>",
"<BEGIN>\n## `bit_for_bit`",
"Che... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the setup_output API.
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 setup_output API.
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... | Set up the directory structure for the output. Copies old run
data into a timestamped directory and sets up the new directory | "Set up the directory structure for the output. Copies old run\n data into a timestamped directory and sets up the new directory" | 107 | false | LIVVkit/LIVVkit | setup_output | 6,768 | |
LDU_FT/genialis/resolwe-runtime-utils/checkrc | LDU_FT | [
"<BEGIN>\n## `_get_json`",
"Convert the given value to a JSON object.\n<END>",
"<BEGIN>\n## `save_list`",
"Convert the given list of parameters to a JSON object.",
" JSON object is of the form:\n { key: [values[0], values[1], ... ] },\n where values represent the given list of parameters.\n<END>",
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the checkrc API.
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 checkrc API.
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... | Check if ``rc`` (return code) meets requirements.
Check if ``rc`` is 0 or is in ``args`` list that contains
acceptable return codes.
Last argument of ``args`` can optionally be error message that
is printed if ``rc`` doesn't meet requirements.
Output is JSON of the form:
{"proc.rc": <rc>,... | "Check if ``rc`` (return code) meets requirements.\n\n Check if ``rc`` is 0 or is in ``args`` list that contains\n acceptable return codes.\n Last argument of ``args`` can optionally be error message that\n is printed if ``rc`` doesn't meet requirements.\n\n Output is JSON of the form:\n\n {\"proc... | 34 | false | genialis/resolwe-runtime-utils | checkrc | 6,769 | |
LDU_FT/hobson/pug-invest/hist | LDU_FT | [
"<BEGIN>\n## `log_loss`",
"Log of the loss (error) summed over all entries",
" The negative of the logarithm of the frequency (probability) of the predicted\n label given the true binary label for a category.",
" Arguments:\n predicted (np.array of float): 2-D table of probabilities for each\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the hist API.
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 hist API.
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... | Plot discrete PDFs
>>> df = pd.DataFrame(pd.np.random.randn(99,3), columns=list('ABC'))
>>> df['Class'] = pd.np.array((pd.np.matrix([1,1,1])*pd.np.matrix(df).T).T > 0)
>>> len(hist(df, verbosity=0, class_column='Class'))
3 | "Plot discrete PDFs\n\n >>> df = pd.DataFrame(pd.np.random.randn(99,3), columns=list('ABC'))\n >>> df['Class'] = pd.np.array((pd.np.matrix([1,1,1])*pd.np.matrix(df).T).T > 0)\n >>> len(hist(df, verbosity=0, class_column='Class'))\n 3" | 205 | false | hobson/pug-invest | hist | 6,770 | |
LDU_FT/Oneiroe/PySimpleAutomata/nfa_word_acceptance | LDU_FT | [
"<BEGIN>\n## `dfa_word_acceptance`",
"Checks if a given **word** is accepted by a DFA,\n returning True/false.",
" The word w is accepted by a DFA if DFA has an accepting run\n on w. Since A is deterministic,\n :math:`w ∈ L(A)` if and only if :math:`ρ(s_0 , w) ∈ F` .",
" :param dict dfa: input ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the nfa_word_acceptance 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 nfa_word_acceptance API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
T... | Checks if a given word is accepted by a NFA.
The word w is accepted by a NFA if exists at least an
accepting run on w.
:param dict nfa: input NFA;
:param list word: list of symbols ∈ nfa['alphabet'];
:return: *(bool)*, True if the word is accepted, False otherwise. | "Checks if a given word is accepted by a NFA.\n\n The word w is accepted by a NFA if exists at least an\n accepting run on w.\n\n :param dict nfa: input NFA;\n :param list word: list of symbols ∈ nfa['alphabet'];\n :return: *(bool)*, True if the word is accepted, False otherwise." | 208 | false | Oneiroe/PySimpleAutomata | nfa_word_acceptance | 6,771 | |
LDU_FT/faxir/faxir-python/update_member_details | LDU_FT | [
"<BEGIN>\n## `get_number`",
"Get number information # noqa: E501",
" Get info of a single number # noqa: E501\n This method makes a synchronous HTTP request by default. To make an\n asynchronous HTTP request, please pass async=True\n >>> thread = api.get_number(number, async=True)\... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update_member_details API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update_member_details API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | Modify member details # noqa: E501
One of the paramters below is needed to modify member information # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async=True
>>> thread = api.update_member_details(member_id, pay... | "Modify member details # noqa: E501\n\n One of the paramters below is needed to modify member information # noqa: E501\n This method makes a synchronous HTTP request by default. To make an\n asynchronous HTTP request, please pass async=True\n >>> thread = api.update_member_details(member_i... | 80 | false | faxir/faxir-python | update_member_details | 6,772 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.