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/genialis/django-rest-framework-reactive/notify_observers | LDU_FT | [
"<BEGIN>\n## `observe_id`",
"Unique identifier that identifies the observer.\n<END>",
"<BEGIN>\n## `post`",
"Handle a query observer unsubscription request.\n<END>",
"<BEGIN>\n## `notify_observers`",
"Transmit ORM table change notification.",
" :param table: Name of the table that has changed\n :p... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the notify_observers API.
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 notify_observers API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | Transmit ORM table change notification.
:param table: Name of the table that has changed
:param kind: Change type
:param primary_key: Primary key of the affected instance | "Transmit ORM table change notification.\n\n :param table: Name of the table that has changed\n :param kind: Change type\n :param primary_key: Primary key of the affected instance" | 44 | false | genialis/django-rest-framework-reactive | notify_observers | 142,373 | |
LDU_FT/aparo/pyes/get_diff | LDU_FT | [
"<BEGIN>\n## `serialize`",
"Serialize the search to a structure as passed for a search body.\n<END>",
"<BEGIN>\n## `symbol_by_name`",
"Get symbol by qualified name.",
" The name should be the full dot-separated path to the class::",
" modulename.ClassName",
" Example::",
" celery.c... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_diff API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracte... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_diff API.
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... | Given two mapping it extracts a schema evolution mapping. Returns None if no evolutions are required
:param new_mapping: the new mapping
:return: a new evolution mapping or None | "Given two mapping it extracts a schema evolution mapping. Returns None if no evolutions are required\n :param new_mapping: the new mapping\n :return: a new evolution mapping or None" | 350 | false | aparo/pyes | get_diff | 142,374 | |
LDU_FT/rande/python-simple-ioc/post_build | LDU_FT | [
"<BEGIN>\n## `post_build`",
"Register filter and global in jinja environment instance",
" IoC tags are:\n - jinja2.filter to register filter, the tag must contain\n a name and a method options\n - jinja2.global to add new global, here globals are functions. \n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the post_build API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extrac... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the post_build API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extrac... | Register filter and global in jinja environment instance
IoC tags are:
- jinja2.filter to register filter, the tag must contain
a name and a method options
- jinja2.global to add new global, here globals are functions.
The tag must contain a name and a method op... | "Register filter and global in jinja environment instance\n\n IoC tags are:\n - jinja2.filter to register filter, the tag must contain\n a name and a method options\n - jinja2.global to add new global, here globals are functions. \n The tag must contain a name and a me... | 14 | false | rande/python-simple-ioc | post_build | 142,375 | |
LDU_FT/emilydolson/avida-spatial-tools/color_array_by_value | LDU_FT | [
"<BEGIN>\n## `gen_gradient`",
"Returns a line of text to add to an environment file, initializing a\n gradient resource with the specified\n name (string), inflow(int), radius(int), and location (tuple of ints)\n<END>",
"<BEGIN>\n## `gen_res`",
"Returns a line of text to add to an environment file, init... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the color_array_by_value API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the color_array_by_value API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | Figure out the appropriate RGB or RGBA color for the given numerical
value based on the palette, denom, and whether zeros should be masked. | "Figure out the appropriate RGB or RGBA color for the given numerical\n value based on the palette, denom, and whether zeros should be masked." | 189 | false | emilydolson/avida-spatial-tools | color_array_by_value | 142,376 | |
LDU_FT/ironfroggy/django-better-cache/proxy | LDU_FT | [
"<BEGIN>\n## `process_request`",
"Checks whether the page is already cached and returns the cached\n version if available.\n<END>",
"<BEGIN>\n## `process_response`",
"Sets the cache and deals with caching headers if needed\n<END>",
"<BEGIN>\n## `keys`",
"Create an ordered dict of the names and valu... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the proxy API.
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 proxy API.
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... | Pass an HTTP request on to another server. | "Pass an HTTP request on to another server." | 51 | false | ironfroggy/django-better-cache | proxy | 142,377 | |
LDU_FT/PeerAssets/pypeerassets/find_parent_outputs | 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 find_parent_outputs API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
T... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_parent_outputs API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
T... | due to design of the btcpy library, TxIn object must be converted to TxOut object before signing | "due to design of the btcpy library, TxIn object must be converted to TxOut object before signing" | 86 | false | PeerAssets/pypeerassets | find_parent_outputs | 142,378 | |
LDU_FT/tonybaloney/wily/metric_parts | LDU_FT | [
"<BEGIN>\n## `revisions`",
"Get the list of revisions.",
" :param path: the path to target.\n :type path: ``str``",
" :param max_revisions: the maximum number of revisions.\n :type max_revisions: ``int``",
" :return: A list of revisions.\n :rtype: ``list`` of :cla... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the metric_parts API.
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 metric_parts API.
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... | Convert a metric name into the operator and metric names. | "Convert a metric name into the operator and metric names." | 174 | false | tonybaloney/wily | metric_parts | 142,379 | |
LDU_FT/jjgomera/iapws/_Ice | LDU_FT | [
"<BEGIN>\n## `_Tb`",
"Procedure to calculate the boiling temperature of seawater",
" Parameters\n ----------\n P : float\n Pressure, [MPa]\n S : float\n Salinity, [kg/kg]",
" Returns\n -------\n Tb : float\n Boiling temperature, [K]",
" References\n ----------... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _Ice API.
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 _Ice API.
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... | Basic state equation for Ice Ih
Parameters
----------
T : float
Temperature, [K]
P : float
Pressure, [MPa]
Returns
-------
prop : dict
Dict with calculated properties of ice. The available properties are:
* rho: Density, [kg/m³]
* h: Specifi... | "Basic state equation for Ice Ih\n\n Parameters\n ----------\n T : float\n Temperature, [K]\n P : float\n Pressure, [MPa]\n\n Returns\n -------\n prop : dict\n Dict with calculated properties of ice. The available properties are:\n\n * rho: Density, [kg/m³]\n ... | 574 | false | jjgomera/iapws | _Ice | 142,380 | |
LDU_FT/axialmarket/fsq/vsenqueue | LDU_FT | [
"<BEGIN>\n## `barf`",
"Exit with a log message (usually a fatal error)\n<END>",
"<BEGIN>\n## `done_item`",
"Succeed or fail an item based on the return code of a program\n<END>",
"<BEGIN>\n## `setenv`",
"Set environment, based on item. Usually done in a baby fork\n<END>",
"<BEGIN>\n## `shout`",
"Log ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the vsenqueue API.
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 vsenqueue API.
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... | Enqueue a string, or string-like object to queue with arbitrary
arguments, vsenqueue is to venqueue what vsprintf is to vprintf,
vsenqueue is to senqueue what vsprintf is to sprintf. | "Enqueue a string, or string-like object to queue with arbitrary\n arguments, vsenqueue is to venqueue what vsprintf is to vprintf,\n vsenqueue is to senqueue what vsprintf is to sprintf." | 99 | false | axialmarket/fsq | vsenqueue | 142,381 | |
LDU_FT/aalireza/SimpleAudioIndexer/_is_subsequence_of | LDU_FT | [
"<BEGIN>\n## `set_username_ibm`",
"Parameters\n ----------\n username_ibm : str",
" Raises\n ------\n Exception\n If mode is not `ibm`\n<END>",
"<BEGIN>\n## `set_password_ibm`",
"Parameters\n ----------\n password_ibm : str",
" Raises\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _is_subsequence_of 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 _is_subsequence_of 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... | Parameters
----------
sub : str
sup : str
Returns
-------
bool | "Parameters\n ----------\n sub : str\n sup : str\n\n Returns\n -------\n bool" | 159 | false | aalireza/SimpleAudioIndexer | _is_subsequence_of | 142,382 | |
LDU_FT/fronzbot/blinkpy/image_to_file | LDU_FT | [
"<BEGIN>\n## `refresh`",
"Get all blink cameras and pulls their most recent status.\n<END>",
"<BEGIN>\n## `attributes`",
"Return dictionary of all camera attributes.\n<END>",
"<BEGIN>\n## `snap_picture`",
"Take a picture with camera to create a new thumbnail.\n<END>",
"<BEGIN>\n## `image_to_file`",
"W... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the image_to_file API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the image_to_file API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | Write image to file.
:param path: Path to write file | "Write image to file.\n\n :param path: Path to write file" | 71 | false | fronzbot/blinkpy | image_to_file | 142,383 | |
LDU_FT/ceph/ceph-deploy/make | LDU_FT | [
"<BEGIN>\n## `ceph_is_installed`",
"A helper callback to be executed after the connection is made to ensure\n that Ceph is installed.\n<END>",
"<BEGIN>\n## `_get_version_output`",
"Ignoring errors, call `ceph --version` and return only the version\n portion of the output. For example, output like::"... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the make API.
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 make API.
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... | Gather authentication keys for provisioning new nodes. | "Gather authentication keys for provisioning new nodes." | 236 | false | ceph/ceph-deploy | make | 142,384 | |
LDU_FT/wallento/riscv-python-model/set_from_bits | LDU_FT | [
"<BEGIN>\n## `max`",
"Get the maximum value this immediate can have",
" :return: Maximum value of this immediate\n<END>",
"<BEGIN>\n## `set`",
"Set the immediate to a value. This function checks if the value is valid and will raise an\n :class:`InvalidImmediateException` if it doesn't.",
" ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_from_bits API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_from_bits API.
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 immediate value from machine code bits. Those are not sign extended, so it will take care of the
proper handling.
:param value: Value to set the immediate to
:type value: int | "Set the immediate value from machine code bits. Those are not sign extended, so it will take care of the\n proper handling.\n\n :param value: Value to set the immediate to\n :type value: int" | 21 | false | wallento/riscv-python-model | set_from_bits | 142,385 | |
LDU_FT/toomore/grs/__calculate_moving_average | LDU_FT | [
"<BEGIN>\n## `real`",
"Real time data",
" :rtype: dict\n :returns:",
" :name: 股票名稱 Unicode\n :no: 股票代碼\n :range: 漲跌價\n :ranges: 漲跌判斷 True, False\n :time: 取得時間\n :max: 漲停價\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the __calculate_moving_average 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 __calculate_moving_average API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclus... | 計算移動平均數
:param int row: 收盤價(6)、成交股數(1)
:rtype: tuple (序列 舊→新, 持續天數) | "計算移動平均數\n\n :param int row: 收盤價(6)、成交股數(1)\n :rtype: tuple (序列 舊→新, 持續天數)" | 88 | false | toomore/grs | __calculate_moving_average | 142,386 | |
LDU_FT/HazardDede/dictmentor/bind | LDU_FT | [
"<BEGIN>\n## `instance_of`",
"Tests if the given key-value pairs (items) are instances of the given ``target_type``.\n Per default this function yields whether ``True`` or ``False`` depending on the fact if all\n items withstand the validation or not. Per default the validation / evaluation is\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the bind API.
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 bind API.
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... | Add any predefined or custom extension.
Args:
extension: Extension to add to the processor.
Returns:
The DictMentor itself for chaining. | "Add any predefined or custom extension.\n\n Args:\n extension: Extension to add to the processor.\n\n Returns:\n The DictMentor itself for chaining." | 91 | false | HazardDede/dictmentor | bind | 142,387 | |
LDU_FT/C4ptainCrunch/ics.py/duration | 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 duration API.
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 duration API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracte... | Get or set the duration of the event.
| Will return a timedelta object.
| May be set to anything that timedelta() understands.
| May be set with a dict ({"days":2, "hours":6}).
| If set to a non null value, removes any already
existing end time. | "Get or set the duration of the event.\n\n | Will return a timedelta object.\n | May be set to anything that timedelta() understands.\n | May be set with a dict ({\"days\":2, \"hours\":6}).\n | If set to a non null value, removes any already\n existing end time." | 50 | false | C4ptainCrunch/ics.py | duration | 142,388 | |
LDU_FT/foxx/python-helpful/import_recursive | LDU_FT | [
"<BEGIN>\n## `unique_iter`",
"See http://www.peterbe.com/plog/uniqifiers-benchmark\n Originally f8 written by Dave Kirby\n<END>",
"<BEGIN>\n## `ensure_subclass`",
"Ensure value is a subclass of types",
" >>> class Hello(object): pass\n >>> ensure_subclass(Hello, Hello)\n >>> ensure_subclass(obje... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the import_recursive API.
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 import_recursive API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | Recursively import all modules and packages
Thanks http://stackoverflow.com/a/25562415/1267398
XXX: Needs UT
:attr path: Path to package/module | "Recursively import all modules and packages\n Thanks http://stackoverflow.com/a/25562415/1267398\n XXX: Needs UT\n\n :attr path: Path to package/module" | 57 | false | foxx/python-helpful | import_recursive | 142,389 | |
LDU_FT/ikalnytskyi/dooku/_is_dst | LDU_FT | [
"<BEGIN>\n## `to_iso8601`",
"Returns an ISO-8601 representation of a given datetime instance.",
" >>> to_iso8601(datetime.datetime.now())\n '2014-10-01T23:21:33.718508Z'",
" :param dt: a :class:`~datetime.datetime` instance\n :param tz: a :class:`~datetime.tzinfo` to use; if None - use a d... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _is_dst API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _is_dst API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted... | Returns True if a given datetime object represents a time with
DST shift. | "Returns True if a given datetime object represents a time with\n DST shift." | 36 | false | ikalnytskyi/dooku | _is_dst | 142,390 | |
LDU_FT/epfl-lts2/pygsp/grad | LDU_FT | [
"<BEGIN>\n## `compute_avg_adj_deg`",
"r\"\"\"\n Compute the average adjacency degree for each node.",
" The average adjacency degree is the average of the degrees of a node and\n its neighbors.",
" Parameters\n ----------\n G: Graph\n Graph on which the statistic is extracted\n<END>",... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the grad API.
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 grad API.
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... | r"""Compute the gradient of a signal defined on the vertices.
The gradient :math:`y` of a signal :math:`x` is defined as
.. math:: y = \nabla_\mathcal{G} x = D^\top x,
where :math:`D` is the differential operator :attr:`D`.
The value of the gradient on the edge :math:`e_k = (v_i, v_j... | "r\"\"\"Compute the gradient of a signal defined on the vertices.\n\n The gradient :math:`y` of a signal :math:`x` is defined as\n\n .. math:: y = \\nabla_\\mathcal{G} x = D^\\top x,\n\n where :math:`D` is the differential operator :attr:`D`.\n\n The value of the gradient on the edge :math:`... | 617 | false | epfl-lts2/pygsp | grad | 142,391 | |
LDU_FT/luismsgomes/stringology/align | LDU_FT | [
"<BEGIN>\n## `llcs`",
"length of the longest common sequence",
" This implementation takes O(len(s1) * len(s2)) time and\n O(min(len(s1), len(s2))) space.",
" Use only with short strings.",
" >>> llcs('a.b.cd','!a!b!c!!!d!')\n 4\n<END>",
"<BEGIN>\n## `lcsr`",
"longest common sequence rati... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the align API.
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 align API.
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... | aligns two strings
>>> print(*align('pharmacy', 'farmácia', gap='_'), sep='\\n')
pharmac_y
_farmácia
>>> print(*align('advantage', 'vantagem', gap='_'), sep='\\n')
advantage_
__vantagem | "aligns two strings\n\n >>> print(*align('pharmacy', 'farmácia', gap='_'), sep='\\\\n')\n pharmac_y\n _farmácia\n\n >>> print(*align('advantage', 'vantagem', gap='_'), sep='\\\\n')\n advantage_\n __vantagem" | 29 | false | luismsgomes/stringology | align | 142,392 | |
LDU_FT/DinoTools/python-overpy/from_json | LDU_FT | [
"<BEGIN>\n## `_handle_remark_msg`",
"Try to parse the message provided with the remark tag or element.",
" :param str msg: The message\n :raises overpy.exception.OverpassRuntimeError: If message starts with 'runtime error:'\n :raises overpy.exception.OverpassRuntimeRemark: If message starts... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the from_json API.
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_json API.
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... | Create new Node element from JSON data
:param data: Element data from JSON
:type data: Dict
:param result: The result this element belongs to
:type result: overpy.Result
:return: New instance of Node
:rtype: overpy.Node
:raises overpy.exception.ElementDataWrongTy... | "Create new Node element from JSON data\n\n :param data: Element data from JSON\n :type data: Dict\n :param result: The result this element belongs to\n :type result: overpy.Result\n :return: New instance of Node\n :rtype: overpy.Node\n :raises overpy.exception.ElementDa... | 119 | false | DinoTools/python-overpy | from_json | 142,393 | |
LDU_FT/josuebrunel/myql/get_historical_info | LDU_FT | [
"<BEGIN>\n## `get_current_info`",
"get_current_info() uses the yahoo.finance.quotes datatable to get all of the stock information presented in the main table on a typical stock page \n and a bunch of data from the key statistics page.\n<END>",
"<BEGIN>\n## `get_news_feed`",
"get_news_feed() uses the rs... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_historical_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.
T... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_historical_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.
T... | get_historical_info() uses the csv datatable to retrieve all available historical data on a typical historical prices page | "get_historical_info() uses the csv datatable to retrieve all available historical data on a typical historical prices page" | 44 | false | josuebrunel/myql | get_historical_info | 142,394 | |
LDU_FT/icometrix/dicom2nifti/_singleframe_to_nifti | LDU_FT | [
"<BEGIN>\n## `_get_gdcmconv`",
"Get the full path to gdcmconv.\n If not found raise error\n<END>",
"<BEGIN>\n## `compress_directory`",
"This function can be used to convert a folder of jpeg compressed images to an uncompressed ones",
" :param dicom_directory: directory of dicom files to compress\n<END... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _singleframe_to_nifti 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 _singleframe_to_nifti API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | This function will convert a philips singleframe series to a nifti | "This function will convert a philips singleframe series to a nifti" | 243 | false | icometrix/dicom2nifti | _singleframe_to_nifti | 142,395 | |
LDU_FT/jdoda/sdl2hl/draw_rect | LDU_FT | [
"<BEGIN>\n## `was_init`",
"This function returns the subsystems which have previously been initialized.",
" Returns:\n Set[InitFlag]: Flags indicating which subsystems have been initialized.\n<END>",
"<BEGIN>\n## `load_bmp`",
"Load a surface from a file.",
" Args:\n path (str):... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the draw_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 extract... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the draw_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 extract... | Draw a rectangle on the current rendering target.
Args:
rect (Rect): The destination rectangle, or None to outline the entire rendering target.
Raises:
SDLError: If an error is encountered. | "Draw a rectangle on the current rendering target.\n\n Args:\n rect (Rect): The destination rectangle, or None to outline the entire rendering target.\n\n Raises:\n SDLError: If an error is encountered." | 134 | false | jdoda/sdl2hl | draw_rect | 142,396 | |
LDU_FT/inveniosoftware-contrib/invenio-classifier/pdftotext_conversion_is_bad | LDU_FT | [
"<BEGIN>\n## `get_acronyms`",
"Find acronyms and expansions from the fulltext.",
" If needed, acronyms can already contain a dictionary of previously found\n acronyms that will be merged with the current results.\n<END>",
"<BEGIN>\n## `_add_expansion_to_acronym_dict`",
"Add an acronym to the dictiona... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the pdftotext_conversion_is_bad API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclu... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the pdftotext_conversion_is_bad API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclu... | Check if conversion after pdftotext is bad.
Sometimes pdftotext performs a bad conversion which consists of many
spaces and garbage characters.
This method takes a list of strings obtained from a pdftotext conversion
and examines them to see if they are likely to be the result of a bad
conversion.... | "Check if conversion after pdftotext is bad.\n\n Sometimes pdftotext performs a bad conversion which consists of many\n spaces and garbage characters.\n\n This method takes a list of strings obtained from a pdftotext conversion\n and examines them to see if they are likely to be the result of a bad\n con... | 178 | false | inveniosoftware-contrib/invenio-classifier | pdftotext_conversion_is_bad | 142,397 | |
LDU_FT/blockstack-packages/blockstack-gpg/gpg_encrypt | LDU_FT | [
"<BEGIN>\n## `make_gpg_home`",
"Make GPG keyring dir for a particular application.\n Return the path.\n<END>",
"<BEGIN>\n## `get_gpg_home`",
"Get the GPG keyring directory for a particular application.\n Return the path.\n<END>",
"<BEGIN>\n## `make_gpg_tmphome`",
"Make a temporary directory to hold ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the gpg_encrypt API.
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 gpg_encrypt API.
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... | Encrypt a stream of data for a set of keys.
@sender_key_info should be a dict with
{
'key_id': ...
'key_data': ...
'app_name'; ...
}
Return {'status': True} on success
Return {'error': ...} on error | "Encrypt a stream of data for a set of keys.\n @sender_key_info should be a dict with\n {\n 'key_id': ...\n 'key_data': ...\n 'app_name'; ...\n }\n Return {'status': True} on success\n Return {'error': ...} on error" | 54 | false | blockstack-packages/blockstack-gpg | gpg_encrypt | 142,398 | |
LDU_FT/iterative/dvc/apply_diff | LDU_FT | [
"<BEGIN>\n## `_get_remote`",
"The config file is stored in a way that allows you to have a\n cache for each remote.",
" This is needed when specifying external outputs\n (as they require you to have an external cache location).",
" Imagine a config file like the following:",
" ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the apply_diff API.
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 apply_diff API.
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... | Recursively apply changes from src to dest.
Preserves dest type and hidden info in dest structure,
like ruamel.yaml leaves when parses files. This includes comments,
ordering and line foldings.
Used in Stage load/dump cycle to preserve comments and custom formatting. | "Recursively apply changes from src to dest.\n\n Preserves dest type and hidden info in dest structure,\n like ruamel.yaml leaves when parses files. This includes comments,\n ordering and line foldings.\n\n Used in Stage load/dump cycle to preserve comments and custom formatting." | 269 | false | iterative/dvc | apply_diff | 142,399 | |
LDU_FT/peterbrittain/asciimatics/_add_step | LDU_FT | [
"<BEGIN>\n## `reset`",
"Reset the scene ready for playing.",
" :param old_scene: The previous version of this Scene that was running before the\n application reset - e.g. due to a screen resize.\n :param screen: New screen to use if old_scene is not None.\n<END>",
"<BEGIN>\n## `add_ef... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _add_step API.
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 _add_step API.
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... | Add a step to the end of the current recorded path.
:param pos: The position tuple (x, y) to add to the list. | "Add a step to the end of the current recorded path.\n\n :param pos: The position tuple (x, y) to add to the list." | 355 | false | peterbrittain/asciimatics | _add_step | 142,400 | |
LDU_FT/berkerpeksag/astor/parse_file | LDU_FT | [
"<BEGIN>\n## `convert`",
"Walk the srctree, and convert/copy all python files\n into the dsttree\n<END>",
"<BEGIN>\n## `split_lines`",
"Split inputs according to lines.\n If a line is short enough, just yield it.\n Otherwise, fix it.\n<END>",
"<BEGIN>\n## `wrap_line`",
"We have a line that ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_file API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extrac... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_file API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extrac... | Parse a python file into an AST.
This is a very thin wrapper around ast.parse
TODO: Handle encodings other than the default for Python 2
(issue #26) | "Parse a python file into an AST.\n\n This is a very thin wrapper around ast.parse\n\n TODO: Handle encodings other than the default for Python 2\n (issue #26)" | 63 | false | berkerpeksag/astor | parse_file | 142,401 | |
LDU_FT/ailionx/cloudflare-ddns/update_record | LDU_FT | [
"<BEGIN>\n## `request`",
"The requester shortcut to submit a http request to CloutFlare\n :param url:\n :param method:\n :param data:\n :return:\n<END>",
"<BEGIN>\n## `setup_zone`",
"Setup zone for current domain.\n It will also setup the dns records of the zone\n :re... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update_record API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update_record API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | Update dns record
:param dns_type:
:param name:
:param content:
:param kwargs:
:return: | "Update dns record\n :param dns_type:\n :param name:\n :param content:\n :param kwargs:\n :return:" | 16 | false | ailionx/cloudflare-ddns | update_record | 142,402 | |
LDU_FT/django-haystack/pysolr/more_like_this | LDU_FT | [
"<BEGIN>\n## `force_unicode`",
"Forces a bytestring to become a Unicode string.\n<END>",
"<BEGIN>\n## `force_bytes`",
"Forces a Unicode string to become a bytestring.\n<END>",
"<BEGIN>\n## `unescape_html`",
"Removes HTML or XML character references and entities from a text string.",
" @param text The... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the more_like_this API.
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 more_like_this API.
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... | Finds and returns results similar to the provided query.
Returns ``self.results_cls`` class object (defaults to
``pysolr.Results``)
Requires Solr 1.3+.
Usage::
similar = solr.more_like_this('id:doc_234', 'text') | "Finds and returns results similar to the provided query.\n\n Returns ``self.results_cls`` class object (defaults to\n ``pysolr.Results``)\n\n Requires Solr 1.3+.\n\n Usage::\n\n similar = solr.more_like_this('id:doc_234', 'text')" | 102 | false | django-haystack/pysolr | more_like_this | 142,403 | |
LDU_FT/reiinakano/xcessiv/import_object_from_path | LDU_FT | [
"<BEGIN>\n## `return_func_to_optimize`",
"Creates the function to be optimized by Bayes Optimization.",
" The function automatically handles the case of already existing base learners, and if\n no base learner for the hyperparameters exists yet, creates one and updates it in the\n usual way.",
" A... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the import_object_from_path API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the import_object_from_path API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion... | Used to import an object from an absolute path.
This function takes an absolute path and imports it as a Python module.
It then returns the object with name `object` from the imported module.
Args:
path (string): Absolute file path of .py file to import
object (string): Name of object to ... | "Used to import an object from an absolute path.\n\n This function takes an absolute path and imports it as a Python module.\n It then returns the object with name `object` from the imported module.\n\n Args:\n path (string): Absolute file path of .py file to import\n\n object (string): Name of o... | 150 | false | reiinakano/xcessiv | import_object_from_path | 142,404 | |
LDU_FT/standage/tag/parse_fasta | LDU_FT | [
"<BEGIN>\n## `accession`",
"Parse accession number from commonly supported formats.",
" If the defline does not match one of the following formats, the entire\n description (sans leading caret) will be returned.",
" * >gi|572257426|ref|XP_006607122.1|\n * >gnl|Tcas|XP_008191512.1\n... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_fasta API.
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 parse_fasta API.
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... | Load sequences in Fasta format.
This generator function yields a Sequence object for each sequence record
in a GFF3 file. Implementation stolen shamelessly from
http://stackoverflow.com/a/7655072/459780. | "Load sequences in Fasta format.\n\n This generator function yields a Sequence object for each sequence record\n in a GFF3 file. Implementation stolen shamelessly from\n http://stackoverflow.com/a/7655072/459780." | 114 | false | standage/tag | parse_fasta | 142,405 | |
LDU_FT/amreuland/PyVDF/formatData | LDU_FT | [
"<BEGIN>\n## `read`",
"Parse a String and return the data",
" :param f: The file to read\n :type f: file/str\n :returns: A dictionary object containing the parsed data from f\n :raises: SyntaxError - An error occured reading the data.\n<END>",
"<BEGIN>\n## `reads`",
"Parse a String and return th... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the formatData API.
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 formatData API.
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... | Format a dictionary object to look like a VDF file
:param data: Data
:type data: :py:obj:`dict`
:returns: A vdf string representation of data | "Format a dictionary object to look like a VDF file\n\n :param data: Data\n :type data: :py:obj:`dict`\n\n :returns: A vdf string representation of data" | 19 | false | amreuland/PyVDF | formatData | 142,406 | |
LDU_FT/cfobel/webcam-recorder/reset | LDU_FT | [
"<BEGIN>\n## `reset`",
"Reset the points for the specified index position. If no index is\n specified, reset points for all point handlers.\n<END>",
"<BEGIN>\n## `refresh_config`",
"__NB__ This *must* be called from a *different* thread than the GUI/Gtk thread.\n<END>",
"<BEGIN>\n## `record_path`",
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the reset API.
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 reset API.
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... | Reset the points for the specified index position. If no index is
specified, reset points for all point handlers. | "Reset the points for the specified index position. If no index is\n specified, reset points for all point handlers." | 10 | false | cfobel/webcam-recorder | reset | 142,407 | |
LDU_FT/miguelgrinberg/python-socketio/_get_logger | LDU_FT | [
"<BEGIN>\n## `get_participants`",
"Return an iterable with the active participants in a room.\n<END>",
"<BEGIN>\n## `connect`",
"Register a client connection to a namespace.\n<END>",
"<BEGIN>\n## `pre_disconnect`",
"Put the client in the to-be-disconnected list.",
" This allows the client data st... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_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 extra... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_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 extra... | Get the appropriate logger
Prevents uninitialized servers in write-only mode from failing. | "Get the appropriate logger\n\n Prevents uninitialized servers in write-only mode from failing." | 172 | false | miguelgrinberg/python-socketio | _get_logger | 142,408 | |
LDU_FT/adamheins/r12/preloop | LDU_FT | [
"<BEGIN>\n## `search_for_port`",
"Find the serial port the arm is connected to.\n<END>",
"<BEGIN>\n## `read`",
"Read data from the arm. Data is returned as a latin_1 encoded\n string, or raw bytes if 'raw' is True.\n<END>",
"<BEGIN>\n## `dump`",
"Dump all output currently in the arm's output qu... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the preloop API.
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 preloop API.
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... | Executed before the command loop starts. | "Executed before the command loop starts." | 22 | false | adamheins/r12 | preloop | 142,409 | |
LDU_FT/BlueBrain/nat/run_ocrmypdf | LDU_FT | [
"<BEGIN>\n## `check_ocrmypdf`",
"Run ocrmypdf and confirmed that a valid file was created\n<END>",
"<BEGIN>\n## `run_ocrmypdf`",
"Run ocrmypdf and let caller deal with results\n<END>",
"<BEGIN>\n## `getParamValues`",
"Return the rows of sampleDF that are associated to the parameter\n specified in p... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the run_ocrmypdf API.
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 run_ocrmypdf API.
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... | Run ocrmypdf and let caller deal with results | "Run ocrmypdf and let caller deal with results" | 56 | false | BlueBrain/nat | run_ocrmypdf | 142,410 | |
LDU_FT/bwhite/hadoopy/_listeq_to_dict | LDU_FT | [
"<BEGIN>\n## `__add_options`",
"Add the `Makespec` options to a option-parser instance or a\n option group.\n<END>",
"<BEGIN>\n## `exec_python`",
"Wrap running python script in a subprocess.",
" Return stdout of the invoked command.\n<END>",
"<BEGIN>\n## `exec_python_rc`",
"Wrap running python scr... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _listeq_to_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 e... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _listeq_to_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 e... | Convert iterators of 'key=val' into a dictionary with later values taking priority. | "Convert iterators of 'key=val' into a dictionary with later values taking priority." | 610 | false | bwhite/hadoopy | _listeq_to_dict | 142,411 | |
LDU_FT/dancsalo/TensorBase/conv2d | LDU_FT | [
"<BEGIN>\n## `compute_samples`",
"Sample from a Normal distribution with inferred mu and std\n<END>",
"<BEGIN>\n## `neg_log_likelihood`",
"Calculate Log Likelihood with particular mean and std\n x must be 2D. [batch_size * eqsamples* iwsamples, num_latent]\n<END>",
"<BEGIN>\n## `compute_samples`",
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the conv2d API.
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 conv2d API.
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 ... | 2D Convolutional Layer.
:param filter_size: int. assumes square filter
:param output_channels: int
:param stride: int
:param padding: 'VALID' or 'SAME'
:param activation_fn: tf.nn function
:param b_value: float
:param s_value: float | "2D Convolutional Layer.\n :param filter_size: int. assumes square filter\n :param output_channels: int\n :param stride: int\n :param padding: 'VALID' or 'SAME'\n :param activation_fn: tf.nn function\n :param b_value: float\n :param s_value: float" | 94 | false | dancsalo/TensorBase | conv2d | 142,412 | |
LDU_FT/jd/tenacity/wraps | LDU_FT | [
"<BEGIN>\n## `after_log`",
"After call strategy that logs to some logger the finished attempt.\n<END>",
"<BEGIN>\n## `retry`",
"Wrap a function with a new `Retrying` object.",
" :param dargs: positional arguments passed to Retrying object\n :param dkw: keyword arguments passed to the Retrying object\n... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the wraps API.
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 wraps API.
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... | Wrap a function for retrying.
:param f: A function to wraps for retrying. | "Wrap a function for retrying.\n\n :param f: A function to wraps for retrying." | 44 | false | jd/tenacity | wraps | 142,413 | |
LDU_FT/petrjasek/eve-elastic/bulk | LDU_FT | [
"<BEGIN>\n## `get_dates`",
"Return list of datetime fields for given schema.\n<END>",
"<BEGIN>\n## `set_filters`",
"Put together all filters we have and set them as 'and' filter\n within filtered query.",
" :param query: elastic query being constructed\n :param base_filters: all filters set outside... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the bulk API.
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 bulk API.
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... | Helper for the :meth:`~elasticsearch.Elasticsearch.bulk` api that provides
a more human friendly interface - it consumes an iterator of actions and
sends them to elasticsearch in chunks. It returns a tuple with summary
information - number of successfully executed actions and either list of
errors or nu... | "Helper for the :meth:`~elasticsearch.Elasticsearch.bulk` api that provides\n a more human friendly interface - it consumes an iterator of actions and\n sends them to elasticsearch in chunks. It returns a tuple with summary\n information - number of successfully executed actions and either list of\n errors ... | 106 | false | petrjasek/eve-elastic | bulk | 142,414 | |
LDU_FT/ociu/sphinx-traceability-extension/purge_items | LDU_FT | [
"<BEGIN>\n## `purge_items`",
"Clean, if existing, ``item`` entries in ``traceability_all_items``\n environment variable, for all the source docs being purged.",
" This function should be triggered upon ``env-purge-doc`` event.\n<END>",
"<BEGIN>\n## `process_item_nodes`",
"This function should be trigg... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the purge_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 purge_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... | Clean, if existing, ``item`` entries in ``traceability_all_items``
environment variable, for all the source docs being purged.
This function should be triggered upon ``env-purge-doc`` event. | "Clean, if existing, ``item`` entries in ``traceability_all_items``\n environment variable, for all the source docs being purged.\n\n This function should be triggered upon ``env-purge-doc`` event." | 17 | false | ociu/sphinx-traceability-extension | purge_items | 142,415 | |
LDU_FT/pepkit/peppy/parse_ftype | LDU_FT | [
"<BEGIN>\n## `merge_sample`",
"Use merge table (subannotation) data to augment/modify Sample.",
" :param Sample sample: sample to modify via merge table data\n :param sample_subann: data with which to alter Sample\n :param Mapping data_sources: collection of named paths to data locations,\n opti... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_ftype API.
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 parse_ftype API.
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... | Checks determine filetype from extension.
:param str input_file: String to check.
:return str: filetype (extension without dot prefix)
:raises TypeError: if file does not appear of a supported type | "Checks determine filetype from extension.\n\n :param str input_file: String to check.\n :return str: filetype (extension without dot prefix)\n :raises TypeError: if file does not appear of a supported type" | 53 | false | pepkit/peppy | parse_ftype | 142,416 | |
LDU_FT/t-makaro/animatplot/save_gif | 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 save_gif API.
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 save_gif API.
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... | Saves the animation to a gif
A convience function. Provided to let the user avoid dealing
with writers.
Parameters
----------
filename : str
the name of the file to be created without the file extension | "Saves the animation to a gif\n\n A convience function. Provided to let the user avoid dealing\n with writers.\n\n Parameters\n ----------\n filename : str\n the name of the file to be created without the file extension" | 36 | false | t-makaro/animatplot | save_gif | 142,417 | |
LDU_FT/sci-bots/pygtkhelpers/proxy_for | LDU_FT | [
"<BEGIN>\n## `gcall`",
"Calls a function, with the given arguments inside Gtk's main loop.\n Example::\n gcall(lbl.set_text, \"foo\")",
" If this call would be made in a thread there could be problems, using\n it inside Gtk's main loop makes it thread safe.\n<END>",
"<BEGIN>\n## `invoke_in_mai... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the proxy_for API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extract... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the proxy_for API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extract... | Create a proxy for a Widget
:param widget: A gtk.Widget to proxy
This will raise a KeyError if there is no proxy type registered for the
widget type. | "Create a proxy for a Widget\n\n :param widget: A gtk.Widget to proxy\n\n This will raise a KeyError if there is no proxy type registered for the\n widget type." | 240 | false | sci-bots/pygtkhelpers | proxy_for | 142,418 | |
LDU_FT/mbodenhamer/syn/_check_search_kwarg_types | LDU_FT | [
"<BEGIN>\n## `assign`",
"Assigns B to A.attr, yields, and then assigns A.attr back to its\n original value.\n<END>",
"<BEGIN>\n## `nearest_base`",
"Returns the closest ancestor to cls in bases.\n<END>",
"<BEGIN>\n## `get_typename`",
"Returns the name of the type of x, if x is an object. Otherwise, ret... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _check_search_kwarg_types API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _check_search_kwarg_types API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi... | Checks that every element of kwargs is a valid type in this tree. | "Checks that every element of kwargs is a valid type in this tree." | 71 | false | mbodenhamer/syn | _check_search_kwarg_types | 142,419 | |
LDU_FT/mardix/Mocha/_build_response | LDU_FT | [
"<BEGIN>\n## `_normalize_response_tuple`",
"Helper function to normalize view return values .\n It always returns (dict, status, headers). Missing values will be None.\n For example in such cases when tuple_ is\n (dict, status), (dict, headers), (dict, status, headers),\n (dict, headers, status)",... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _build_response API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The e... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _build_response API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The e... | Build a response using the renderer from the data
:return: | "Build a response using the renderer from the data\n :return:" | 276 | false | mardix/Mocha | _build_response | 142,420 | |
LDU_FT/drj11/pypng/writeHeader | LDU_FT | [
"<BEGIN>\n## `adam7_generate`",
"Generate the coordinates for the reduced scanlines\n of an Adam7 interlaced image\n of size `width` by `height` pixels.",
" Yields a generator for each pass,\n and each pass generator yields a series of (x, y, xstep) triples,\n each one identifying a reduced scanl... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the writeHeader API.
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 writeHeader API.
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... | Add default values to the instance's `d` dictionary, then
write a header out onto the file stream. The size of the
profile must be specified using the `size` argument. | "Add default values to the instance's `d` dictionary, then\n write a header out onto the file stream. The size of the\n profile must be specified using the `size` argument." | 153 | false | drj11/pypng | writeHeader | 142,421 | |
LDU_FT/django-fluent/django-fluent-contents/can_use_cached_output | LDU_FT | [
"<BEGIN>\n## `type_id`",
"Shortcut to retrieving the ContentType id of the model.\n<END>",
"<BEGIN>\n## `get_output_cache_key`",
".. versionadded:: 0.9\n Return the default cache key which is used to store a rendered item.\n By default, this function generates the cache key using :func:`ge... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the can_use_cached_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.
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the can_use_cached_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.
... | Read the cached output - only when search needs it. | "Read the cached output - only when search needs it." | 227 | false | django-fluent/django-fluent-contents | can_use_cached_output | 142,422 | |
LDU_FT/scikit-tda/kepler-mapper/transform_single | LDU_FT | [
"<BEGIN>\n## `project`",
"Creates the projection/lens from a dataset. Input the data set. Specify a projection/lens type. Output the projected data/lens.",
" Parameters\n ----------",
" X : Numpy Array\n The data to fit a projection/lens to.",
" projection :\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the transform_single API.
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 transform_single API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | Compute entries of `data` in hypercube centered at `center`
Parameters
===========
data: array-like
Data to find in entries in cube. Warning: first column must be index column.
center: array-like
Center points for the cube. Cube is found as all data in `[center-... | "Compute entries of `data` in hypercube centered at `center`\n\n Parameters\n ===========\n\n data: array-like\n Data to find in entries in cube. Warning: first column must be index column.\n center: array-like\n Center points for the cube. Cube is found as all data in ... | 169 | false | scikit-tda/kepler-mapper | transform_single | 142,423 | |
LDU_FT/openbermuda/ripl/hash_count | LDU_FT | [
"<BEGIN>\n## `interpret`",
"Try and find the image file ",
" some magic here would be good.",
" FIXME move elsewhere and make so everyone can use.",
" interpreter that finds things?\n<END>",
"<BEGIN>\n## `horizontal_layout`",
"Augment slide with horizontal layout info\n<END>",
"<B... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the hash_count API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extrac... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the hash_count API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extrac... | Count hashes (or other run of chars) at start of line
>>> x = Mark2Slide()
>>> x.hash_count('### hello')
3
>>> x = Mark2Slide()
>>> x.hash_count(' hello', ' ')
1 | "Count hashes (or other run of chars) at start of line\n\n >>> x = Mark2Slide()\n >>> x.hash_count('### hello')\n 3\n\n >>> x = Mark2Slide()\n >>> x.hash_count(' hello', ' ')\n 1" | 33 | false | openbermuda/ripl | hash_count | 142,424 | |
LDU_FT/openearth/mmi-python/create_bmi_model | LDU_FT | [
"<BEGIN>\n## `key_occurrence`",
"Return a dict containing the value of the provided key and its uuid as\n value.\n<END>",
"<BEGIN>\n## `zmq_address`",
"Return a ZeroMQ address to the module with the provided key.\n<END>",
"<BEGIN>\n## `send_array`",
"send a numpy array with metadata over zmq",
" ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_bmi_model API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_bmi_model API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | initialize a bmi mode using an optional class | "initialize a bmi mode using an optional class" | 30 | false | openearth/mmi-python | create_bmi_model | 142,425 | |
LDU_FT/dedupeio/dedupe/threshold | LDU_FT | [
"<BEGIN>\n## `getCentroid`",
"Takes in a list of attribute values for a field,\n evaluates the centroid using the comparator,\n & returns the centroid (i.e. the 'best' value for the field)\n<END>",
"<BEGIN>\n## `getCanonicalRep`",
"Given a list of records within a duplicate cluster, constructs a\n ca... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the threshold API.
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 threshold API.
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 the threshold that maximizes the expected F score,
a weighted average of precision and recall for a sample of
data.
Arguments:
data -- Dictionary of records, where the keys are record_ids
and the values are dictionaries with the keys being
... | "Returns the threshold that maximizes the expected F score,\n a weighted average of precision and recall for a sample of\n data.\n\n Arguments:\n data -- Dictionary of records, where the keys are record_ids\n and the values are dictionaries with the keys bein... | 136 | false | dedupeio/dedupe | threshold | 142,426 | |
LDU_FT/mathiasertl/xmpp-backends/parse_connection_string | LDU_FT | [
"<BEGIN>\n## `rpc`",
"Generic helper function to call an RPC method.\n<END>",
"<BEGIN>\n## `message_user`",
"Currently use send_message_chat and discard subject, because headline messages are not\n stored by mod_offline.\n<END>",
"<BEGIN>\n## `module`",
"The module specified by the ``library`` attr... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_connection_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... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_connection_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... | Parse string as returned by the ``connected_users_info`` or ``user_sessions_info`` API calls.
>>> EjabberdBackendBase().parse_connection_string('c2s_tls')
(0, True, False)
>>> EjabberdBackendBase().parse_connection_string('c2s_compressed_tls')
(0, True, True)
>>> EjabberdBackend... | "Parse string as returned by the ``connected_users_info`` or ``user_sessions_info`` API calls.\n\n >>> EjabberdBackendBase().parse_connection_string('c2s_tls')\n (0, True, False)\n >>> EjabberdBackendBase().parse_connection_string('c2s_compressed_tls')\n (0, True, True)\n >>> Ejabberd... | 63 | false | mathiasertl/xmpp-backends | parse_connection_string | 142,427 | |
LDU_FT/daler/trackhub/leaves | LDU_FT | [
"<BEGIN>\n## `default_hub`",
"Returns a fully-connected set of hub components using default filenames.",
" Parameters\n ----------",
" hub_name : str\n Name of the hub",
" genome : str\n Assembly name (hg38, dm6, etc)",
" email : str\n Email to include with hub.",
" ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the leaves API.
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 leaves API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted ... | Returns an iterator of the HubComponent leaves that are of class `cls`.
If `intermediate` is True, then return any intermediate classes as
well. | "Returns an iterator of the HubComponent leaves that are of class `cls`.\n\n If `intermediate` is True, then return any intermediate classes as\n well." | 111 | false | daler/trackhub | leaves | 142,428 | |
LDU_FT/echonest/pyechonest/write_xspf | LDU_FT | [
"<BEGIN>\n## `write_xspf`",
"send me a list of (artist,title,mp3_url)\n<END>",
"<BEGIN>\n## `callm`",
"Call the api! \n Param_dict is a *regular* *python* *dictionary* so if you want to have multi-valued params\n put them in a list.",
" ** note, if we require 2.6, we can get rid of this timeout mun... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the write_xspf API.
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_xspf API.
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... | send me a list of (artist,title,mp3_url) | "send me a list of (artist,title,mp3_url)" | 438 | false | echonest/pyechonest | write_xspf | 142,429 | |
LDU_FT/rfosterslo/wagtailplus/confirm_page_reversion | LDU_FT | [
"<BEGIN>\n## `add_panel_to_edit_handler`",
"Adds specified panel class to model class.",
" :param model: the model class.\n :param panel_cls: the panel class.\n :param heading: the panel heading.\n :param index: the index position to insert at.\n<END>",
"<BEGIN>\n## `get_context_data`",
"Returns... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the confirm_page_reversion 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 confirm_page_reversion API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.... | Handles page reversion process (GET and POST).
:param request: the request instance.
:param revision_id: the page revision ID.
:param template_name: the template name.
:rtype: django.http.HttpResponse. | "Handles page reversion process (GET and POST).\n\n :param request: the request instance.\n :param revision_id: the page revision ID.\n :param template_name: the template name.\n :rtype: django.http.HttpResponse." | 128 | false | rfosterslo/wagtailplus | confirm_page_reversion | 142,430 | |
LDU_FT/ouroboroscoding/format-oc-python/special | LDU_FT | [
"<BEGIN>\n## `default`",
"Default",
"\t\tCalled when the regular Encoder can't figure out what to do with the type",
"\t\tArgs:\n\t\t\tself (CEncoder): A pointer to the current instance\n\t\t\tobj (mixed): An unknown object that needs to be encoded",
"\t\tReturns:\n\t\t\tstr: A valid JSON string representin... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the special API.
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 special API.
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... | Special
Getter/Setter method for special values associated with nodes that are
not fields
To retrieve a value or values, pass only the name or names, to set a
single special value, pass a name and value
Args:
name (str): The name of the value to either set or get
value (mixed): The value to set
M... | "Special\n\n\t\tGetter/Setter method for special values associated with nodes that are\n\t\tnot fields\n\n\t\tTo retrieve a value or values, pass only the name or names, to set a\n\t\tsingle special value, pass a name and value\n\n\t\tArgs:\n\t\t\tname (str): The name of the value to either set or get\n\t\t\tvalue (mix... | 155 | false | ouroboroscoding/format-oc-python | special | 142,431 | |
LDU_FT/Locu/chronology/_loop | 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 _loop API.
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 _loop API.
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... | Main execution loop of the scheduler.
The loop runs every second. Between iterations, the loop listens for
schedule or cancel requests coming from Flask via over the gipc pipe
(reader) and modifies the queue accordingly.
When a task completes, it is rescheduled | "Main execution loop of the scheduler.\n\n The loop runs every second. Between iterations, the loop listens for\n schedule or cancel requests coming from Flask via over the gipc pipe\n (reader) and modifies the queue accordingly.\n\n When a task completes, it is rescheduled" | 156 | false | Locu/chronology | _loop | 142,432 | |
LDU_FT/mdickinson/refcycle/from_edge_pairs | LDU_FT | [
"<BEGIN>\n## `restore_gc_state`",
"Restore the garbage collector state on leaving the with block.\n<END>",
"<BEGIN>\n## `children`",
"Return the list of immediate children of the given vertex.\n<END>",
"<BEGIN>\n## `parents`",
"Return the list of immediate parents of this vertex.\n<END>",
"<BEGIN>\n## `... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the from_edge_pairs API.
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 from_edge_pairs API.
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 DirectedGraph from a collection of vertices
and a collection of pairs giving links between the vertices. | "Create a DirectedGraph from a collection of vertices\n and a collection of pairs giving links between the vertices." | 98 | false | mdickinson/refcycle | from_edge_pairs | 142,433 | |
LDU_FT/wbond/certvalidator/_validate_unarmor | LDU_FT | [
"<BEGIN>\n## `fetch`",
"Fetches an OCSP response for a certificate",
" :param cert:\n An asn1cyrpto.x509.Certificate object to get an OCSP reponse for",
" :param issuer:\n An asn1crypto.x509.Certificate object that is the issuer of cert",
" :param hash_algo:\n A unicode string ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _validate_unarmor API.
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 _validate_unarmor API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | Takes a list of byte strings or asn1crypto.x509.Certificates objects,
validates and loads them while unarmoring any PEM-encoded contents
:param certs:
A list of byte strings or asn1crypto.x509.Certificate objects
:param var_name:
A unicode variable name to use in any Ty... | "Takes a list of byte strings or asn1crypto.x509.Certificates objects,\n validates and loads them while unarmoring any PEM-encoded contents\n\n :param certs:\n A list of byte strings or asn1crypto.x509.Certificate objects\n\n :param var_name:\n A unicode variable name to use i... | 202 | false | wbond/certvalidator | _validate_unarmor | 142,434 | |
LDU_FT/konstantint/matplotlib-venn/circle_line_intersection | LDU_FT | [
"<BEGIN>\n## `point_in_circle`",
"Returns true if a given point is located inside (or on the border) of a circle.",
" >>> point_in_circle((0, 0), (0, 0), 1)\n True\n >>> point_in_circle((1, 0), (0, 0), 1)\n True\n >>> point_in_circle((1, 1), (0, 0), 1)\n False\n<END>",
"<BEGIN>\n## `circle_i... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the circle_line_intersection 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 circle_line_intersection API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio... | Computes two intersection points between the circle centered at <center> and radius <r> and a line given by two points a and b.
If no intersection exists, or if a==b, None is returned. If one intersection exists, it is repeated in the answer.
>>> circle_line_intersection(np.array([0.0, 0.0]), 1, np.array([-1.0... | "Computes two intersection points between the circle centered at <center> and radius <r> and a line given by two points a and b.\n If no intersection exists, or if a==b, None is returned. If one intersection exists, it is repeated in the answer.\n\n >>> circle_line_intersection(np.array([0.0, 0.0]), 1, np.array([... | 166 | false | konstantint/matplotlib-venn | circle_line_intersection | 142,435 | |
LDU_FT/lra/mackup/create_mackup_home | LDU_FT | [
"<BEGIN>\n## `getFilepaths`",
"Get home and mackup filepaths for given file",
" Args:\n filename (str)",
" Returns:\n home_filepath, mackup_filepath (str, str)\n<END>",
"<BEGIN>\n## `backup`",
"Backup the application config files.",
" Algorithm:\n if... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_mackup_home 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 create_mackup_home 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... | If the Mackup home folder does not exist, create it. | "If the Mackup home folder does not exist, create it." | 116 | false | lra/mackup | create_mackup_home | 142,436 | |
LDU_FT/6809/dragonlib/get_destinations | LDU_FT | [
"<BEGIN>\n## `bin2hexline`",
"Format binary data to a Hex-Editor like format...",
" >>> data = bytearray([i for i in range(256)])\n >>> print('\\\\n'.join(bin2hexline(data, width=16)))\n 0000 00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f ................\n 0016 10 11 12 13 14 15 16 17 18 19 1a 1b ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_destinations API.
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_destinations API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | returns all line numbers that are used in a jump. | "returns all line numbers that are used in a jump." | 63 | false | 6809/dragonlib | get_destinations | 142,437 | |
LDU_FT/praekelt/panya/modify_class | LDU_FT | [
"<BEGIN>\n## `smart_query_string`",
"Outputs current GET query string with additions appended.\n Additions are provided in token pairs.\n<END>",
"<BEGIN>\n## `_resolve_view_params`",
"Resolves view params with least ammount of resistance.\n Firstly check for params on urls passed args, then on class... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the modify_class API.
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 modify_class API.
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 class methods from modifier_class to original_class.
If override is True existing methods in original_class are overriden by those provided by modifier_class. | "Adds class methods from modifier_class to original_class.\n If override is True existing methods in original_class are overriden by those provided by modifier_class." | 22 | false | praekelt/panya | modify_class | 142,438 | |
LDU_FT/f3at/feat/write | LDU_FT | [
"<BEGIN>\n## `parse_incoming_query`",
"Effect factory parsing the query value from params and merging in\n the static_conditions specified.",
" @param factory: IQueryView\n @param static_conditions: effect to be called to build up static\n conditions of the query\n @par... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the write API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted d... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the write API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted d... | Returns a Deferred that fire the factory result
that should be the document. | "Returns a Deferred that fire the factory result\n that should be the document." | 658 | false | f3at/feat | write | 142,439 | |
LDU_FT/skulumani/kinematics/rand | LDU_FT | [
"<BEGIN>\n## `rand`",
"Random vector from the n-Sphere",
" This function will return a random vector which is an element of the n-Sphere.\n The n-Sphere is defined as a vector in R^n+1 with a norm of one. ",
" Basically, we'll find a random vector in R^n+1 and normalize it. \n This uses the method... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the rand API.
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 rand API.
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... | Random vector from the n-Sphere
This function will return a random vector which is an element of the n-Sphere.
The n-Sphere is defined as a vector in R^n+1 with a norm of one.
Basically, we'll find a random vector in R^n+1 and normalize it.
This uses the method of Marsaglia 1972.
Parameters
... | "Random vector from the n-Sphere\n\n This function will return a random vector which is an element of the n-Sphere.\n The n-Sphere is defined as a vector in R^n+1 with a norm of one. \n\n Basically, we'll find a random vector in R^n+1 and normalize it. \n This uses the method of Marsaglia 1972.\n\n Param... | 59 | false | skulumani/kinematics | rand | 142,440 | |
LDU_FT/by46/simplekit/make_dynamic_class | LDU_FT | [
"<BEGIN>\n## `_bin_update_items`",
"Subclassed from omdict._bin_update_items() to make update() and\n updateall() process lists of values as multiple values.",
" <replacements and <leftovers> are modified directly, ala pass by\n reference.\n<END>",
"<BEGIN>\n## `import_string`",
"Import... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the make_dynamic_class 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 make_dynamic_class 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... | a factory function to create type dynamically
The factory function is used by :func:`objson.load` and :func:`objson.loads`.
Creating the object deserialize from json string. The inspiration come from
:func:`collections.namedtuple`. the difference is that I don't your the class
template to define a dyna... | "a factory function to create type dynamically\n\n The factory function is used by :func:`objson.load` and :func:`objson.loads`.\n Creating the object deserialize from json string. The inspiration come from\n :func:`collections.namedtuple`. the difference is that I don't your the class\n template to define ... | 73 | false | by46/simplekit | make_dynamic_class | 142,441 | |
LDU_FT/lreis2415/PyGeoC/run | 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 run API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted doc... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the run API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted doc... | Run TauDEM function.
- 1. The command will not execute if any input file does not exist.
- 2. An error will be detected after running the TauDEM command if
any output file does not exist;
Args:
function_name (str): Full path of TauDEM function.
in_files ... | "Run TauDEM function.\n\n - 1. The command will not execute if any input file does not exist.\n - 2. An error will be detected after running the TauDEM command if\n any output file does not exist;\n\n Args:\n function_name (str): Full path of TauDEM function.\n ... | 259 | false | lreis2415/PyGeoC | run | 142,442 | |
LDU_FT/jjkester/django-auditlog/get_for_model | LDU_FT | [
"<BEGIN>\n## `process_request`",
"Gets the current user from the request and prepares and connects a signal receiver with the user already\n attached to it.\n<END>",
"<BEGIN>\n## `process_response`",
"Disconnects the signal receiver to prevent it from staying active.\n<END>",
"<BEGIN>\n## `process_ex... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_for_model API.
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_for_model API.
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 log entries for all objects of a specified type.
:param model: The model to get log entries for.
:type model: class
:return: QuerySet of log entries for the given model.
:rtype: QuerySet | "Get log entries for all objects of a specified type.\n\n :param model: The model to get log entries for.\n :type model: class\n :return: QuerySet of log entries for the given model.\n :rtype: QuerySet" | 51 | false | jjkester/django-auditlog | get_for_model | 142,443 | |
LDU_FT/frmdstryr/enamlx/mouseMoveEvent | LDU_FT | [
"<BEGIN>\n## `_prefetch_items`",
"When the current_row in the model changes (whether from scrolling) or\n set by the application. Make sure the results are loaded!\n<END>",
"<BEGIN>\n## `refresh_items`",
"Refresh the items of the pattern.",
" This method destroys the old items and creates and ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the mouseMoveEvent API.
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 mouseMoveEvent API.
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... | Handle the mouse move event for a drag operation. | "Handle the mouse move event for a drag operation." | 133 | false | frmdstryr/enamlx | mouseMoveEvent | 142,444 | |
LDU_FT/earwig/mwparserfromhell/parse | LDU_FT | [
"<BEGIN>\n## `normalize`",
"Return the unicode character represented by the HTML entity.\n<END>",
"<BEGIN>\n## `inheritdoc`",
"Set __doc__ of *method* to __doc__ of *method* in its parent class.",
" Since this is used on :class:`.SmartList`, the \"parent class\" used is\n ``list``. This function can b... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted d... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted d... | Parse *text*, returning a :class:`.Wikicode` object tree.
If given, *context* will be passed as a starting context to the parser.
This is helpful when this function is used inside node attribute
setters. For example, :class:`.ExternalLink`\\ 's
:attr:`~.ExternalLink.url` setter sets *co... | "Parse *text*, returning a :class:`.Wikicode` object tree.\n\n If given, *context* will be passed as a starting context to the parser.\n This is helpful when this function is used inside node attribute\n setters. For example, :class:`.ExternalLink`\\\\ 's\n :attr:`~.ExternalLink.url` setter ... | 291 | false | earwig/mwparserfromhell | parse | 142,445 | |
LDU_FT/TorkamaniLab/metapipe/ready | LDU_FT | [
"<BEGIN>\n## `consume`",
"Converts the lexer tokens into valid statements. This process\n also checks command syntax.\n<END>",
"<BEGIN>\n## `_get`",
"Given a type and a dict of parser results, return\n the items as a list.\n<END>",
"<BEGIN>\n## `_parse`",
"Given a type and a list, parse it u... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the ready API.
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 ready API.
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... | Determines if the job is ready to be sumitted to the
queue. It checks if the job depends on any currently
running or queued operations. | "Determines if the job is ready to be sumitted to the\n queue. It checks if the job depends on any currently\n running or queued operations." | 84 | false | TorkamaniLab/metapipe | ready | 142,446 | |
LDU_FT/ergoithz/browsepy/nearest | LDU_FT | [
"<BEGIN>\n## `defaultsnamedtuple`",
"Generate namedtuple with default values.",
" :param name: name\n :param fields: iterable with field names\n :param defaults: iterable or mapping with field defaults\n :returns: defaultdict with given fields and given defaults\n :rtype: collections.defaultdict\... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the nearest API.
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 nearest API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted... | Get the next state jump.
The next jump is calculated looking at :attr:`current` state
and its possible :attr:`jumps` to find the nearest and bigger
option in :attr:`pending` data.
If none is found, the returned next state label will be None.
:returns: tuple with index, substri... | "Get the next state jump.\n\n The next jump is calculated looking at :attr:`current` state\n and its possible :attr:`jumps` to find the nearest and bigger\n option in :attr:`pending` data.\n\n If none is found, the returned next state label will be None.\n\n :returns: tuple with index... | 207 | false | ergoithz/browsepy | nearest | 142,447 | |
LDU_FT/mardix/Mocha/_setup_db | LDU_FT | [
"<BEGIN>\n## `_normalize_response_tuple`",
"Helper function to normalize view return values .\n It always returns (dict, status, headers). Missing values will be None.\n For example in such cases when tuple_ is\n (dict, status), (dict, headers), (dict, status, headers),\n (dict, headers, status)",... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _setup_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 extract... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _setup_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 extract... | Setup the DB connection if DB_URL is set | "Setup the DB connection if DB_URL is set" | 276 | false | mardix/Mocha | _setup_db | 142,448 | |
LDU_FT/ulfalizer/Kconfiglib/set_value | LDU_FT | [
"<BEGIN>\n## `oldconfig`",
"Prompts the user for a value if node.item is a visible symbol/choice with\n no user value.\n<END>",
"<BEGIN>\n## `all_arch_srcarch_pairs`",
"Generates all valid (ARCH, SRCARCH) tuples for the kernel, corresponding to\n different architectures. SRCARCH holds the arch/ subdirec... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_value API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extract... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_value API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extract... | Sets the user value of the symbol.
Equal in effect to assigning the value to the symbol within a .config
file. For bool and tristate symbols, use the 'assignable' attribute to
check which values can currently be assigned. Setting values outside
'assignable' will cause Symbol.user_value ... | "Sets the user value of the symbol.\n\n Equal in effect to assigning the value to the symbol within a .config\n file. For bool and tristate symbols, use the 'assignable' attribute to\n check which values can currently be assigned. Setting values outside\n 'assignable' will cause Symbol.user_... | 139 | false | ulfalizer/Kconfiglib | set_value | 142,449 | |
LDU_FT/CodyKochmann/graphdb/list_relations | LDU_FT | [
"<BEGIN>\n## `graph_hash`",
"this hashes all types to a hash without colissions. python's hashing algorithms are not cross type compatable but hashing tuples with the type as the first element seems to do the trick\n<END>",
"<BEGIN>\n## `store_item`",
"use this function to store a python object in the databas... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the list_relations API.
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 list_relations API.
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... | list every relation in the database as (src, relation, dst) | "list every relation in the database as (src, relation, dst)" | 44 | false | CodyKochmann/graphdb | list_relations | 142,450 | |
LDU_FT/mdsol/rwslib/last_update_time | LDU_FT | [
"<BEGIN>\n## `format_date_argument`",
"Take a date as either a datetime.date/datetime or a string and return it as a iso8601 formatted value\n :param Union[datetime.date, datetime.datetime] date_element: passed argument\n :rtype str\n :return:\n<END>",
"<BEGIN>\n## `dataset`",
"Qualify the dataset_na... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the last_update_time API.
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 last_update_time API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | Setter for the last_update_time attribute
:param datetime.datetime value: value to set for the element | "Setter for the last_update_time attribute\n\n :param datetime.datetime value: value to set for the element" | 120 | false | mdsol/rwslib | last_update_time | 142,451 | |
LDU_FT/hozn/stravalib/marshal | LDU_FT | [
"<BEGIN>\n## `logged_in`",
"Method called by Strava (redirect) that includes parameters.\n - state\n - code\n - error\n<END>",
"<BEGIN>\n## `unmarshal`",
"Convert the value from parsed JSON structure to native python representation.",
" By default this will leave the value as-is since the JS... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the marshal API.
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 marshal API.
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... | Turn a list of entities into a list of dictionaries.
:param values: The entities to serialize.
:type values: List[stravalib.model.BaseEntity]
:return: List of dictionaries of attributes
:rtype: List[Dict[str, Any]] | "Turn a list of entities into a list of dictionaries.\n\n :param values: The entities to serialize.\n :type values: List[stravalib.model.BaseEntity]\n :return: List of dictionaries of attributes\n :rtype: List[Dict[str, Any]]" | 367 | false | hozn/stravalib | marshal | 142,452 | |
LDU_FT/SUNCAT-Center/CatHub/read | 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 read API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted do... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the read API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted do... | Get reactions from folders.
Parameters
----------
skip: list of str
list of folders not to read
goto_reaction: str
Skip ahead to this metal
goto_reaction:
Skip ahead to this reacion | "Get reactions from folders.\n\n Parameters\n ----------\n skip: list of str\n list of folders not to read\n goto_reaction: str\n Skip ahead to this metal\n goto_reaction:\n Skip ahead to this reacion" | 178 | false | SUNCAT-Center/CatHub | read | 142,453 | |
LDU_FT/hyperledger/indy-node/transform_txn_for_ledger | LDU_FT | [
"<BEGIN>\n## `init_domain_ledger`",
"This is usually an implementation of Ledger\n<END>",
"<BEGIN>\n## `update_txn_with_extra_data`",
"All the data of the transaction might not be stored in ledger so the\n extra data that is omitted from ledger needs to be fetched from the\n appropriate data sto... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the transform_txn_for_ledger 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 transform_txn_for_ledger API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio... | Some transactions need to be transformed before they can be stored in the
ledger, eg. storing certain payload in another data store and only its
hash in the ledger | "Some transactions need to be transformed before they can be stored in the\n ledger, eg. storing certain payload in another data store and only its\n hash in the ledger" | 109 | false | hyperledger/indy-node | transform_txn_for_ledger | 142,454 | |
LDU_FT/abarker/pdfCropMargins/get_canonical_absolute_expanded_path | LDU_FT | [
"<BEGIN>\n## `get_bounding_box_list`",
"Calculate a bounding box for each page in the document. The first\n argument is the filename of the document's original PDF file, the second is\n the PdfFileReader for the document. The argument full_page_box_list is a list\n of the full-page-size boxes (which is... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_canonical_absolute_expanded_path API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates i... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_canonical_absolute_expanded_path API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates i... | Get the canonical form of the absolute path from a possibly relative path
(which may have symlinks, etc.) | "Get the canonical form of the absolute path from a possibly relative path\n (which may have symlinks, etc.)" | 71 | false | abarker/pdfCropMargins | get_canonical_absolute_expanded_path | 142,455 | |
LDU_FT/jsvine/markovify/make_sentence | LDU_FT | [
"<BEGIN>\n## `to_dict`",
"Returns the underlying data as a Python dict.\n<END>",
"<BEGIN>\n## `generate_corpus`",
"Given a text string, returns a list of lists; that is, a list of\n \"sentences,\" each of which is a list of words. Before splitting into\n words, the sentences are filtered through... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the make_sentence API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the make_sentence API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | Attempts `tries` (default: 10) times to generate a valid sentence,
based on the model and `test_sentence_output`. Passes `max_overlap_ratio`
and `max_overlap_total` to `test_sentence_output`.
If successful, returns the sentence as a string. If not, returns None.
If `init_state` (a tupl... | "Attempts `tries` (default: 10) times to generate a valid sentence,\n based on the model and `test_sentence_output`. Passes `max_overlap_ratio`\n and `max_overlap_total` to `test_sentence_output`.\n\n If successful, returns the sentence as a string. If not, returns None.\n\n If `init_state` ... | 31 | false | jsvine/markovify | make_sentence | 142,456 | |
LDU_FT/cjdrake/pyeda/ripple_carry_add | LDU_FT | [
"<BEGIN>\n## `ripple_carry_add`",
"Return symbolic logic for an N-bit ripple carry adder.\n<END>",
"<BEGIN>\n## `kogge_stone_add`",
"Return symbolic logic for an N-bit Kogge-Stone adder.\n<END>",
"<BEGIN>\n## `brent_kung_add`",
"Return symbolic logic for an N-bit Brent-Kung adder.\n<END>",
"<BEGIN>\n## ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the ripple_carry_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 ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the ripple_carry_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 ... | Return symbolic logic for an N-bit ripple carry adder. | "Return symbolic logic for an N-bit ripple carry adder." | 410 | false | cjdrake/pyeda | ripple_carry_add | 142,457 | |
LDU_FT/darkfeline/animanager/to_ts | LDU_FT | [
"<BEGIN>\n## `_clean_fields`",
"Clean lookup fields and check for errors.\n<END>",
"<BEGIN>\n## `select`",
"Perform an arbitrary SQL SELECT WHERE on the anime table.",
" By nature of \"arbitrary query\", this is vulnerable to injection, use only\n trusted values for `where_query`.",
" This will \... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the to_ts API.
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 to_ts API.
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... | Convert date to timestamp.
>>> to_ts(datetime.date(2001, 1, 2))
978393600.0 | "Convert date to timestamp.\n\n >>> to_ts(datetime.date(2001, 1, 2))\n 978393600.0" | 69 | false | darkfeline/animanager | to_ts | 142,458 | |
LDU_FT/tanwanirahul/django-batch-requests/pre_process_method_headers | LDU_FT | [
"<BEGIN>\n## `import_class`",
"Imports the class for the given class name.\n<END>",
"<BEGIN>\n## `_executor`",
"Creating an ExecutorPool is a costly operation. Executor needs to be instantiated only once.\n<END>",
"<BEGIN>\n## `pre_process_method_headers`",
"Returns the lowered method.\n Capitalize... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the pre_process_method_headers 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 pre_process_method_headers API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclus... | Returns the lowered method.
Capitalize headers, prepend HTTP_ and change - to _. | "Returns the lowered method.\n Capitalize headers, prepend HTTP_ and change - to _." | 22 | false | tanwanirahul/django-batch-requests | pre_process_method_headers | 142,459 | |
LDU_FT/jeffknupp/sandman/_collection_json_response | LDU_FT | [
"<BEGIN>\n## `endpoint`",
"Return the :class:`sandman.model.Model`'s endpoint.",
" :rtype: string\n<END>",
"<BEGIN>\n## `resource_uri`",
"Return the URI at which the resource can be found.",
" :rtype: string\n<END>",
"<BEGIN>\n## `primary_key`",
"Return the name of the table's primary ke... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _collection_json_response API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _collection_json_response API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi... | Return the JSON representation of the collection *resources*.
:param list resources: list of :class:`sandman.model.Model`s to render
:rtype: :class:`flask.Response` | "Return the JSON representation of the collection *resources*.\n\n :param list resources: list of :class:`sandman.model.Model`s to render\n :rtype: :class:`flask.Response`" | 126 | false | jeffknupp/sandman | _collection_json_response | 142,460 | |
LDU_FT/django-parler/django-parler/get_formset | LDU_FT | [
"<BEGIN>\n## `objectlanguage`",
"Template tag to switch an object language\n Example::",
" {% objectlanguage object \"en\" %}\n {{ object.title }}\n {% endobjectlanguage %}",
" A TranslatedObject is not affected by the ``{% language .. %}`` tag\n as it maintains it's own state.... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_formset API.
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_formset API.
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 the formset, and provide the language information to the formset. | "Return the formset, and provide the language information to the formset." | 163 | false | django-parler/django-parler | get_formset | 142,461 | |
LDU_FT/thoth-station/solver/pypi | LDU_FT | [
"<BEGIN>\n## `compare_version`",
"Compare two version strings.",
" :param a: str\n :param b: str\n :return: -1 / 0 / 1\n<END>",
"<BEGIN>\n## `get_ecosystem_solver`",
"Get Solver subclass instance for particular ecosystem.",
" :param ecosystem_name: name of ecosystem for which solver should be ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the pypi API.
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 pypi API.
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... | Manipulate with dependency requirements using PyPI. | "Manipulate with dependency requirements using PyPI." | 41 | false | thoth-station/solver | pypi | 142,462 | |
LDU_FT/LudovicRousseau/pyscard/doTransmit | LDU_FT | [
"<BEGIN>\n## `translateprotocolmask`",
"Translate CardConnection protocol mask into PCSC protocol mask.\n<END>",
"<BEGIN>\n## `translateprotocolheader`",
"Translate protocol into PCSC protocol header.\n<END>",
"<BEGIN>\n## `connect`",
"Connect to the card.",
" If protocol is not specified, connec... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the doTransmit API.
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 doTransmit API.
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... | Transmit an apdu to the card and return response apdu.
@param bytes: command apdu to transmit (list of bytes)
@param protocol: the transmission protocol, from
CardConnection.T0_protocol, CardConnection.T1_protocol, or
CardConnection.RAW_protocol
@return: a tuple... | "Transmit an apdu to the card and return response apdu.\n\n @param bytes: command apdu to transmit (list of bytes)\n\n @param protocol: the transmission protocol, from\n CardConnection.T0_protocol, CardConnection.T1_protocol, or\n CardConnection.RAW_protocol\n\n @return: ... | 164 | false | LudovicRousseau/pyscard | doTransmit | 142,463 | |
LDU_FT/brettcannon/caniusepython3/projects_from_cli | LDU_FT | [
"<BEGIN>\n## `_manual_overrides`",
"Read the overrides file.",
" An attempt is made to read the file as it currently stands on GitHub, and\n then only if that fails is the included file used.\n<END>",
"<BEGIN>\n## `supports_py3`",
"Check with PyPI if a project supports Python 3.\n<END>",
"<BEGIN>\n#... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the projects_from_cli API.
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 projects_from_cli API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | Take arguments through the CLI can create a list of specified projects. | "Take arguments through the CLI can create a list of specified projects." | 25 | false | brettcannon/caniusepython3 | projects_from_cli | 142,464 | |
LDU_FT/chrippa/ds4drv/find_device | LDU_FT | [
"<BEGIN>\n## `setup`",
"Check if the bluetooth controller is available.\n<END>",
"<BEGIN>\n## `find_device`",
"Scan for bluetooth devices and return a DS4 device if found.\n<END>",
"<BEGIN>\n## `start`",
"Starts the timer.",
" If the callback returns True the timer will be restarted.\n<END>",
"... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_device API.
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 find_device API.
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... | Scan for bluetooth devices and return a DS4 device if found. | "Scan for bluetooth devices and return a DS4 device if found." | 29 | false | chrippa/ds4drv | find_device | 142,465 | |
LDU_FT/mistio/mist.client/rename | LDU_FT | [
"<BEGIN>\n## `request`",
"The main purpose of this is to be a wrapper-like function to pass the api_token and all the other params to the\n requests that are being made",
" :returns: An instance of RequestsHandler\n<END>",
"<BEGIN>\n## `delete`",
"Delete the cloud from the list of added clouds... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the rename API.
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 rename API.
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 ... | Rename a key
:param new_name: New name for the key (will also serve as the key's id)
:returns: An updated list of added keys | "Rename a key\n\n :param new_name: New name for the key (will also serve as the key's id)\n :returns: An updated list of added keys" | 106 | false | mistio/mist.client | rename | 142,466 | |
LDU_FT/slightlynybbled/tk_tools/clear | LDU_FT | [
"<BEGIN>\n## `to_absolute`",
"Converts coordinates provided with reference to the center \\\n of the canvas (0, 0) to absolute coordinates which are used \\\n by the canvas object in which (0, 0) is located in the top \\\n left of the object.",
" :param x: x value in pixels\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the clear API.
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 clear API.
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... | Clear out the multi-frame
:return: | "Clear out the multi-frame\n :return:" | 106 | false | slightlynybbled/tk_tools | clear | 142,467 | |
LDU_FT/spencerahill/aospy/_permute_aux_specs | LDU_FT | [
"<BEGIN>\n## `_preprocess_and_rename_grid_attrs`",
"Call a custom preprocessing method first then rename grid attrs.",
" This wrapper is needed to generate a single function to pass to the\n ``preprocesss`` of xr.open_mfdataset. It makes sure that the\n user-specified preprocess function is called on ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _permute_aux_specs 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 _permute_aux_specs 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... | Generate all permutations of the non-core specifications. | "Generate all permutations of the non-core specifications." | 323 | false | spencerahill/aospy | _permute_aux_specs | 142,468 | |
LDU_FT/Phyks/libbmc/is_valid | LDU_FT | [
"<BEGIN>\n## `is_valid`",
"Check that a given HAL id is a valid one.",
" :param hal_id: The HAL id to be checked.\n :returns: Boolean indicating whether the HAL id is valid or not.",
" >>> is_valid(\"hal-01258754, version 1\")\n True",
" >>> is_valid(\"hal-01258754\")\n True",
" >>> i... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_valid API.
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 is_valid API.
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... | Check that a given HAL id is a valid one.
:param hal_id: The HAL id to be checked.
:returns: Boolean indicating whether the HAL id is valid or not.
>>> is_valid("hal-01258754, version 1")
True
>>> is_valid("hal-01258754")
True
>>> is_valid("hal-01258754v2")
True
>>> is_valid("fo... | "Check that a given HAL id is a valid one.\n\n :param hal_id: The HAL id to be checked.\n :returns: Boolean indicating whether the HAL id is valid or not.\n\n >>> is_valid(\"hal-01258754, version 1\")\n True\n\n >>> is_valid(\"hal-01258754\")\n True\n\n >>> is_valid(\"hal-01258754v2\")\n True\n\... | 271 | false | Phyks/libbmc | is_valid | 142,469 | |
LDU_FT/mdickinson/refcycle/export_json | LDU_FT | [
"<BEGIN>\n## `restore_gc_state`",
"Restore the garbage collector state on leaving the with block.\n<END>",
"<BEGIN>\n## `children`",
"Return the list of immediate children of the given vertex.\n<END>",
"<BEGIN>\n## `parents`",
"Return the list of immediate parents of this vertex.\n<END>",
"<BEGIN>\n## `... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the export_json API.
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 export_json API.
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... | Export graph in JSON form to the given file. | "Export graph in JSON form to the given file." | 98 | false | mdickinson/refcycle | export_json | 142,470 | |
LDU_FT/cedricbonhomme/Stegano/open_image | LDU_FT | [
"<BEGIN>\n## `a2bits`",
"Converts a string to its bits representation as a string of 0's and 1's.",
" >>> a2bits(\"Hello World!\")\n '010010000110010101101100011011000110111100100000010101110110111101110010011011000110010000100001'\n<END>",
"<BEGIN>\n## `a2bits_list`",
"Convert a string to its bits re... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the open_image API.
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 open_image API.
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... | Opens a Image and returns it.
:param fname_or_instance: Can either be the location of the image as a
string or the Image.Image instance itself. | "Opens a Image and returns it.\n\n :param fname_or_instance: Can either be the location of the image as a\n string or the Image.Image instance itself." | 38 | false | cedricbonhomme/Stegano | open_image | 142,471 | |
LDU_FT/cloudsigma/cgroupspy/group_tasks | LDU_FT | [
"<BEGIN>\n## `_build_tree`",
"Build a full or a partial tree, depending on the groups/sub-groups specified.\n<END>",
"<BEGIN>\n## `_init_sub_groups`",
"Initialise sub-groups, and create any that do not already exist.\n<END>",
"<BEGIN>\n## `_init_children`",
"Initialise each node's children - essentially b... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the group_tasks API.
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 group_tasks API.
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... | All tasks in the hierarchy, affected by this group. | "All tasks in the hierarchy, affected by this group." | 20 | false | cloudsigma/cgroupspy | group_tasks | 142,472 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.