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/mosdef-hub/foyer/_add_nodes
LDU_FT
[ "<BEGIN>\n## `_find_chordless_cycles`", "Find all chordless cycles (i.e. rings) in the bond graph", " Traverses the bond graph to determine all cycles (i.e. rings) each\n atom is contained within. Algorithm has been adapted from:\n https://stackoverflow.com/questions/4022662/find-all-chordless-cycles-i...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _add_nodes API. 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 _add_nodes API. 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...
Add all atoms in the SMARTS string as nodes in the graph.
"Add all atoms in the SMARTS string as nodes in the graph."
53
false
mosdef-hub/foyer
_add_nodes
141,973
LDU_FT/mjirik/io3d/list_contains
LDU_FT
[ "<BEGIN>\n## `get_or_save_default`", "Get value stored in cache file or store there default value.\n :param key:\n :param default_value:\n :return:\n<END>", "<BEGIN>\n## `__get_segmentation_path`", "Create path with \"_segmentation\" suffix and keep extension.", " :param path:\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the list_contains API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the list_contains API. 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 strings in list which contains substring.
"Get strings in list which contains substring."
182
false
mjirik/io3d
list_contains
141,974
LDU_FT/koriakin/binflakes/read_file
LDU_FT
[ "<BEGIN>\n## `to_sint`", "Converts the word to a BinInt, treating it as a signed number.\n<END>", "<BEGIN>\n## `sar`", "Performs an arithmetic right-shift of a BinWord by the given number\n of bits. Bits shifted out of the word are lost. The word is\n filled on the left with copies of the top ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the read_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 extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the read_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 extract...
This is a generator that yields all top-level S-expression nodes from a given file object.
"This is a generator that yields all top-level S-expression nodes from\n a given file object."
59
false
koriakin/binflakes
read_file
141,975
LDU_FT/Aplopio/django_rip/get_aggregates
LDU_FT
[ "<BEGIN>\n## `_setup_configuration`", "All steps are accepted as classes. Instantiate them with the right\n configuration and set them in a local property.\n<END>", "<BEGIN>\n## `read_detail`", "Implements the Read Detail (read an object)", " maps to GET /api/objects/:id/ in rest semantics\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_aggregates API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_aggregates API. 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...
Implements the Get aggregates (total number of objects filtered) maps to PATCH /api/object_name/get_aggregates/ in rest semantics :param request: rip.Request :return: rip.Response
"Implements the Get aggregates (total number of objects filtered)\n\n maps to PATCH /api/object_name/get_aggregates/ in rest semantics\n :param request: rip.Request\n :return: rip.Response"
35
false
Aplopio/django_rip
get_aggregates
141,976
LDU_FT/campbellr/smashrun-client/create_weight
LDU_FT
[ "<BEGIN>\n## `to_timestamp`", "Convert a datetime object to a unix timestamp.", " Note that unlike a typical unix timestamp, this is seconds since 1970\n *local time*, not UTC.", " If the passed in object is already a timestamp, then that value is\n simply returned unmodified.\n<END>", "<BEGIN>\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_weight API. 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 create_weight API. 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...
Submit a new weight record. :param weight: The weight, in kilograms. :param date: The date the weight was recorded. If not specified, the current date will be used.
"Submit a new weight record.\n\n :param weight: The weight, in kilograms.\n :param date: The date the weight was recorded. If not\n specified, the current date will be used."
41
false
campbellr/smashrun-client
create_weight
141,977
LDU_FT/glue-viz/echo/add_callback
LDU_FT
[ "<BEGIN>\n## `add_callback`", "Attach a callback function to a property in an instance", " Parameters\n ----------\n instance\n The instance to add the callback to\n prop : str\n Name of callback property in `instance`\n callback : func\n The callback function to add\n ech...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_callback API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_callback API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
Add a callback to a specific instance that manages this property Parameters ---------- instance The instance to add the callback to func : func The callback function to add echo_old : bool, optional If `True`, the callback function will be inv...
"Add a callback to a specific instance that manages this property\n\n Parameters\n ----------\n instance\n The instance to add the callback to\n func : func\n The callback function to add\n echo_old : bool, optional\n If `True`, the callback function w...
88
false
glue-viz/echo
add_callback
141,978
LDU_FT/RobinNil/file_read_backwards/read_until_yieldable
LDU_FT
[ "<BEGIN>\n## `_get_next_chunk`", "Return next chunk of data that we would from the file pointer.", " Args:\n fp: file-like object\n previously_read_position: file pointer position that we have read from\n chunk_size: desired read chunk_size", " Returns:\n (bytestring, int): d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the read_until_yieldable 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 read_until_yieldable 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 in additional chunks until it is yieldable.
"Read in additional chunks until it is yieldable."
32
false
RobinNil/file_read_backwards
read_until_yieldable
141,979
LDU_FT/louib/confirm/init
LDU_FT
[ "<BEGIN>\n## `validate`", "Validate a configuration file against a confirm schema.\n<END>", "<BEGIN>\n## `migrate`", "Migrates a configuration file using a confirm schema.\n<END>", "<BEGIN>\n## `document`", "Generate reStructuredText documentation from a confirm schema.\n<END>", "<BEGIN>\n## `generate`"...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the init API. 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 init API. 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...
Initialize a confirm schema from an existing configuration file.
"Initialize a confirm schema from an existing configuration file."
24
false
louib/confirm
init
141,980
LDU_FT/rduplain/jeni-python/class_in_progress
LDU_FT
[ "<BEGIN>\n## `see_doc`", "Copy docstring from existing object to the decorated callable.\n<END>", "<BEGIN>\n## `class_in_progress`", "True if currently inside a class definition, else False.\n<END>", "<BEGIN>\n## `get`", "Get initial yield value, or result of send(name) if name given.\n<END>", "<BEGIN>\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the class_in_progress API. 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 class_in_progress API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
True if currently inside a class definition, else False.
"True if currently inside a class definition, else False."
91
false
rduplain/jeni-python
class_in_progress
141,981
LDU_FT/hotdoc/hotdoc/lexical_parent
LDU_FT
[ "<BEGIN>\n## `connect`", "@slot: The method to be called on signal emission", " Connects to @slot\n<END>", "<BEGIN>\n## `connect_after`", "@slot: The method to be called at last stage of signal emission", " Connects to the signal after the signals has been handled by other\n connect c...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the lexical_parent API. 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 lexical_parent API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
Return the lexical parent for this cursor.
"Return the lexical parent for this cursor."
266
false
hotdoc/hotdoc
lexical_parent
141,982
LDU_FT/respeaker/respeaker_python_library/write
LDU_FT
[ "<BEGIN>\n## `play`", "play wav file or raw audio (string or generator)\n Args:\n wav: wav file path\n data: raw audio data, str or iterator\n rate: sample rate, only for raw audio\n channels: channel number, only for raw data\n width: raw audio data w...
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...
write data on the OUT endpoint associated to the HID interface
"write data on the OUT endpoint associated to the HID interface"
21
false
respeaker/respeaker_python_library
write
141,983
LDU_FT/thumbor/thumbor/get_orientation
LDU_FT
[ "<BEGIN>\n## `instance`", "Cache threadpool since context is\n recreated for each request\n<END>", "<BEGIN>\n## `main`", "Runs thumbor server with the specified arguments.\n<END>", "<BEGIN>\n## `mime`", "Retrieves mime metadata if available\n :return:\n<END>", "<BEGIN>\n## `client`", "Ca...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_orientation API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_orientation API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
Returns the image orientation of the buffer image or None if it is undefined. Gets the original value from the Exif tag. If the buffer has been rotated, then the value is adjusted to 1. :return: Orientation value (1 - 8) :rtype: int or None
"Returns the image orientation of the buffer image or None\n if it is undefined. Gets the original value from the Exif tag.\n If the buffer has been rotated, then the value is adjusted to 1.\n :return: Orientation value (1 - 8)\n :rtype: int or None"
61
false
thumbor/thumbor
get_orientation
141,984
LDU_FT/GuiltyTargets/ppi-network-annotation/get_neighborhood_overlap
LDU_FT
[ "<BEGIN>\n## `get_neighborhood_network`", "Get the neighborhood graph of a node.", " :param str node_name: Node whose neighborhood graph is requested.\n :return Graph: Neighborhood graph\n<END>", "<BEGIN>\n## `get_neighbor_names`", "Get the names of all neighbors of a node, and the node itself...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_neighborhood_overlap API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_neighborhood_overlap API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio...
Get the intersection of two nodes's neighborhoods. Neighborhood is defined by parameter connection_type. :param Vertex node1: First node. :param Vertex node2: Second node. :param Optional[str] connection_type: One of direct or second-degree. Defaults to direct. :return: Overlap ...
"Get the intersection of two nodes's neighborhoods.\n\n Neighborhood is defined by parameter connection_type.\n :param Vertex node1: First node.\n :param Vertex node2: Second node.\n :param Optional[str] connection_type: One of direct or second-degree. Defaults to direct.\n :return: O...
105
false
GuiltyTargets/ppi-network-annotation
get_neighborhood_overlap
141,985
LDU_FT/RedFantom/ttkwidgets/draw_timeline
LDU_FT
[ "<BEGIN>\n## `_grid_widgets`", "Puts the two whole widgets in the correct position depending on compound.\n<END>", "<BEGIN>\n## `_on_click`", "Function bound to event of selection in the Combobox, calls callback if callable", " :param event: Tkinter event\n<END>", "<BEGIN>\n## `left_press`", "Cal...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the draw_timeline API. 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 draw_timeline API. 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...
Draw the contents of the whole TimeLine Canvas
"Draw the contents of the whole TimeLine Canvas"
429
false
RedFantom/ttkwidgets
draw_timeline
141,986
LDU_FT/NiklasRosenstein/myo-python/reset
LDU_FT
[ "<BEGIN>\n## `encode`", "Encodes the number *value* to a MAC address ASCII string in binary form.\n Raises a #ValueError if *value* is a negative number or exceeds the MAC\n address range.\n<END>", "<BEGIN>\n## `decode`", "Decodes an ASCII encoded binary MAC address tring into a number.\n<END>", "<BEGIN>\...
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...
Resets the start time of the interval to now or the specified value.
"Resets the start time of the interval to now or the specified value."
44
false
NiklasRosenstein/myo-python
reset
141,987
LDU_FT/dronekit/dronekit-python/ekf_ok
LDU_FT
[ "<BEGIN>\n## `condition_yaw`", "Send MAV_CMD_CONDITION_YAW message to point vehicle at a specified heading (in degrees).", " This method sets an absolute heading by default, but you can set the `relative` parameter\n to `True` to set yaw relative to the current yaw heading.", " By default the yaw of ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the ekf_ok API. 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 ekf_ok API. 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 ...
``True`` if the EKF status is considered acceptable, ``False`` otherwise (``boolean``).
"``True`` if the EKF status is considered acceptable, ``False`` otherwise (``boolean``)."
290
false
dronekit/dronekit-python
ekf_ok
141,988
LDU_FT/jim-easterbrook/pywws/read_data
LDU_FT
[ "<BEGIN>\n## `read_data`", "Receive data from the device.", " If the read fails for any reason, an :obj:`IOError` exception\n is raised.", " :param size: the number of bytes to read.", " :type size: int", " :return: the data received.", " :rtype: list(int)\n<END...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the read_data API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the read_data API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
Receive data from the device. If the read fails for any reason, an :obj:`IOError` exception is raised. :param size: the number of bytes to read. :type size: int :return: the data received. :rtype: list(int)
"Receive data from the device.\n\n If the read fails for any reason, an :obj:`IOError` exception\n is raised.\n\n :param size: the number of bytes to read.\n\n :type size: int\n\n :return: the data received.\n\n :rtype: list(int)"
210
false
jim-easterbrook/pywws
read_data
141,989
LDU_FT/shaldengeki/python-mal/load
LDU_FT
[ "<BEGIN>\n## `logged_in`", "Checks the logged-in status of the current session. \n Expensive (requests a page), so use sparingly! Best practice is to try a request and catch an UnauthorizedError.", " :rtype: bool\n :return: Whether or not the current session is logged-in.\n<END>", "<BEGIN>\n## `login...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
Fetches the MAL user page and sets the current user's attributes. :rtype: :class:`.User` :return: Current user object.
"Fetches the MAL user page and sets the current user's attributes.\n\n :rtype: :class:`.User`\n :return: Current user object."
152
false
shaldengeki/python-mal
load
141,990
LDU_FT/reanahub/reana-db/build_workspace_path
LDU_FT
[ "<BEGIN>\n## `update_workflow_status`", "Update database workflow status.", " :param workflow_uuid: UUID which represents the workflow.\n :param status: String that represents the workflow status.\n :param new_logs: New logs from workflow execution.\n :param message: Unused.\n<END>",...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the build_workspace_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 build_workspace_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. ...
Build user's workspace relative path. :param user_id: Owner of the workspace. :param workflow_id: Optional parameter, if provided gives the path to the workflow workspace instead of just the path to the user workspace. :return: String that represents the workspace relative path. i.e. users/...
"Build user's workspace relative path.\n\n :param user_id: Owner of the workspace.\n :param workflow_id: Optional parameter, if provided gives the path to the\n workflow workspace instead of just the path to the user workspace.\n :return: String that represents the workspace relative path.\n i.e....
20
false
reanahub/reana-db
build_workspace_path
141,991
LDU_FT/gunthercox/jsondb/set_path
LDU_FT
[ "<BEGIN>\n## `set_path`", "Set the path of the database.\n Create the file if it does not exist.\n<END>", "<BEGIN>\n## `delete`", "Removes the specified key from the database.\n<END>", "<BEGIN>\n## `data`", "If a key is passed in, a corresponding value will be returned.\n If a key-value pair...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_path API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_path API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
Set the path of the database. Create the file if it does not exist.
"Set the path of the database.\n Create the file if it does not exist."
16
false
gunthercox/jsondb
set_path
141,992
LDU_FT/AndrewAnnex/SpiceyPy/dasac
LDU_FT
[ "<BEGIN>\n## `_distribution_info`", "Creates the distribution name and the expected extension for the\n CSPICE package and returns it.", " :return (distribution, extension) tuple where distribution is the best\n guess from the strings available within the platform_urls list\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the dasac API. 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 dasac API. 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...
Add comments from a buffer of character strings to the comment area of a binary DAS file, appending them to any comments which are already present in the file's comment area. http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/dasac_c.html :param handle: DAS handle of a file opened with write acce...
"Add comments from a buffer of character strings to the comment\n area of a binary DAS file, appending them to any comments which\n are already present in the file's comment area.\n\n http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/dasac_c.html\n\n :param handle: DAS handle of a file opened with wri...
2,164
true
AndrewAnnex/SpiceyPy
dasac
141,993
LDU_FT/Valassis-Digital-Media/spylon/with_spark_context
LDU_FT
[ "<BEGIN>\n## `as_iterable`", "Utility for converting an object to an iterable.", " Parameters\n ----------\n iterable_or_scalar : anything", " Returns\n -------\n l : iterable\n If `obj` was None, return the empty tuple.\n If `obj` was not iterable returns a 1-tuple containing ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the with_spark_context 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 with_spark_context 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...
Context manager for a spark context Parameters ---------- application_name : string conf : string, optional Returns ------- sc : SparkContext Examples -------- Used within a context manager >>> with with_spark_context("MyApplication") as sc: ... # Your Code here ...
"Context manager for a spark context\n\n Parameters\n ----------\n application_name : string\n conf : string, optional\n\n Returns\n -------\n sc : SparkContext\n\n Examples\n --------\n Used within a context manager\n >>> with with_spark_context(\"MyApplication\") as sc:\n ... #...
96
false
Valassis-Digital-Media/spylon
with_spark_context
141,994
LDU_FT/MostAwesomeDude/gentleman/FailoverInstance
LDU_FT
[ "<BEGIN>\n## `request`", "Sends an HTTP request.", " This constructs a full URL, encodes and decodes HTTP bodies, and\n handles invalid responses in a pythonic way.", " @type method: string\n @param method: HTTP method to use\n @type path: string\n @param path: HTTP U...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the FailoverInstance API. 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 FailoverInstance API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Does a failover of an instance. @type instance: string @param instance: Instance name @type iallocator: string @param iallocator: Iallocator for deciding the target node for shared-storage instances @type ignore_consistency: bool @param ignore_consistency: Whether to ignore disk consist...
"Does a failover of an instance.\n\n @type instance: string\n @param instance: Instance name\n @type iallocator: string\n @param iallocator: Iallocator for deciding the target node for\n shared-storage instances\n @type ignore_consistency: bool\n @param ignore_consistency: Whether to ignore dis...
173
false
MostAwesomeDude/gentleman
FailoverInstance
141,995
LDU_FT/Julius2342/pyvlx/add
LDU_FT
[ "<BEGIN>\n## `add`", "Add Node, replace existing node if node with node_id is present.\n<END>", "<BEGIN>\n## `load`", "Load nodes from KLF 200, if no node_id is specified all nodes are loaded.\n<END>", "<BEGIN>\n## `handle_frame`", "Handle incoming API frame, return True if this was the expected frame.\n<...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
Add Node, replace existing node if node with node_id is present.
"Add Node, replace existing node if node with node_id is present."
74
false
Julius2342/pyvlx
add
141,996
LDU_FT/lsbardel/python-stdnet/ipop_range
LDU_FT
[ "<BEGIN>\n## `load_iterable`", "Load an ``iterable``.", " By default it returns a generator of data loaded via the\n :meth:`loads` method.", " :param iterable: an iterable over data to load.\n :param session: Optional :class:`stdnet.odm.Session`.\n :return: an iterable over ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the ipop_range API. 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 ipop_range API. 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...
Remove and return a range from the ordered set by rank (index).
"Remove and return a range from the ordered set by rank (index)."
387
false
lsbardel/python-stdnet
ipop_range
141,997
LDU_FT/python-fedex-devs/python-fedex/_assemble_and_send_request
LDU_FT
[ "<BEGIN>\n## `transfer_config_dict`", "This is a utility function used in the certification modules to transfer\n the data dicts above to SOAP objects. This avoids repetition and allows\n us to store all of our variable configuration here rather than in\n each certification script.\n<END>", "<BEGIN>\n#...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _assemble_and_send_request 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 _assemble_and_send_request API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclus...
Fires off the Fedex request. @warning: NEVER CALL THIS METHOD DIRECTLY. CALL send_request(), WHICH RESIDES ON FedexBaseService AND IS INHERITED.
"Fires off the Fedex request.\n \n @warning: NEVER CALL THIS METHOD DIRECTLY. CALL send_request(), \n WHICH RESIDES ON FedexBaseService AND IS INHERITED."
92
false
python-fedex-devs/python-fedex
_assemble_and_send_request
141,998
LDU_FT/dmwm/DBS/execute
LDU_FT
[ "<BEGIN>\n## `inputChecks`", "This is a function to check all the input for GET APIs.\n<END>", "<BEGIN>\n## `validateStringInput`", "To check if a string has the required format. This is only used for POST APIs.\n<END>", "<BEGIN>\n## `execute`", "Lists all primary datasets if pattern is not provided.\n<EN...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the execute API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the execute API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
returns id for a given application This always requires all four variables to be set, because you better have them in blockInsert
"returns id for a given application\n\n This always requires all four variables to be set, because\n you better have them in blockInsert"
352
false
dmwm/DBS
execute
141,999
LDU_FT/CZ-NIC/yangson/orphan_instance
LDU_FT
[ "<BEGIN>\n## `schema_root`", "Return the root node of the receiver's schema.\n<END>", "<BEGIN>\n## `iname`", "Return the instance name corresponding to the receiver.\n<END>", "<BEGIN>\n## `_node_digest`", "Return dictionary of receiver's properties suitable for clients.\n<END>", "<BEGIN>\n## `_iname2qna...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the orphan_instance API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the orphan_instance API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
Return an isolated instance of the receiver. Args: rval: Raw value to be used for the returned instance.
"Return an isolated instance of the receiver.\n\n Args:\n rval: Raw value to be used for the returned instance."
352
false
CZ-NIC/yangson
orphan_instance
142,000
LDU_FT/smdabdoub/kraken-biom/write_biom
LDU_FT
[ "<BEGIN>\n## `tax_fmt`", "Create a string representation of a taxonomic hierarchy (QIIME for now).", " :type tax_lvl: dict\n :param tax_lvl: Keyed on the entries in ranks\n :type end: int\n :param end: The end rank index (0-based indexing). If end == 3\n then the returned string will ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the write_biom API. 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_biom API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
Write the BIOM table to a file. :type biomT: biom.table.Table :param biomT: A BIOM table containing the per-sample OTU counts and metadata to be written out to file. :type output_fp str :param output_fp: Path to the BIOM-format file that will be written. :type fmt: str :param ...
"Write the BIOM table to a file.\n\n :type biomT: biom.table.Table\n :param biomT: A BIOM table containing the per-sample OTU counts and metadata\n to be written out to file.\n :type output_fp str\n :param output_fp: Path to the BIOM-format file that will be written.\n :type fmt: str\n ...
21
false
smdabdoub/kraken-biom
write_biom
142,001
LDU_FT/jendrikseipp/vulture/generic_visit
LDU_FT
[ "<BEGIN>\n## `_get_last_child_with_lineno`", "Return the last direct child of `node` that has a lineno attribute,\n or None if `node` has no such children.", " Almost all node._field lists are sorted by the order in which they\n appear in source code. For some nodes however, we have to skip some\n f...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the generic_visit API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the generic_visit API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
Called if no explicit visitor function exists for a node.
"Called if no explicit visitor function exists for a node."
28
false
jendrikseipp/vulture
generic_visit
142,002
LDU_FT/coleifer/peewee/manual_close
LDU_FT
[ "<BEGIN>\n## `ClosureTable`", "Model factory for the transitive closure extension.\n<END>", "<BEGIN>\n## `bm25`", "Usage:", " # Format string *must* be pcnalx\n # Second parameter to bm25 specifies the index of the column, on\n # the table being queries.\n bm25(matchinfo(document...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the manual_close API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the manual_close API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
Close the underlying connection without returning it to the pool.
"Close the underlying connection without returning it to the pool."
33
false
coleifer/peewee
manual_close
142,003
LDU_FT/olitheolix/qtmacs/qteMoveToEndOfBuffer
LDU_FT
[ "<BEGIN>\n## `qteSaveMacroData`", "Associate arbitrary ``data`` with ``widgetObj``.", " This is a convenience method to easily store applet/widget\n specific information in between calls.", " If ``widgetObj`` is **None** then the calling widget\n ``self.qteWidget`` will be used.", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the qteMoveToEndOfBuffer 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 qteMoveToEndOfBuffer API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Move cursor to the end of the buffer to facilitate auto scrolling. Technically, this is exactly the 'endOfBuffer' macro but to avoid swamping Qtmacs with 'qteRunMacroStarted' messages to no avail it was implemented here natively.
"Move cursor to the end of the buffer to facilitate auto\n scrolling.\n\n Technically, this is exactly the 'endOfBuffer' macro but to\n avoid swamping Qtmacs with 'qteRunMacroStarted' messages to no\n avail it was implemented here natively."
1,108
true
olitheolix/qtmacs
qteMoveToEndOfBuffer
142,004
LDU_FT/linkedin/shiv/write_file_prefix
LDU_FT
[ "<BEGIN>\n## `get_args`", "Overrides easy_install.ScriptWriter.get_args", " This method avoids using pkg_resources to map a named entry_point\n to a callable at invocation time.\n<END>", "<BEGIN>\n## `clean_pip_env`", "A context manager for temporarily removing 'PIP_REQUIRE_VIRTUALENV' from the enviro...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the write_file_prefix API. 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 write_file_prefix API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Write a shebang line. :param f: An open file handle. :param interpreter: A path to a python interpreter.
"Write a shebang line.\n\n :param f: An open file handle.\n :param interpreter: A path to a python interpreter."
40
false
linkedin/shiv
write_file_prefix
142,005
LDU_FT/mjirik/imcut/split_voxels
LDU_FT
[ "<BEGIN>\n## `__msgc_step3_discontinuity_localization`", "Estimate discontinuity in basis of low resolution image segmentation.\n :return: discontinuity in low resolution\n<END>", "<BEGIN>\n## `__multiscale_gc_lo2hi_run`", "Run Graph-Cut segmentation with refinement of low resolution multiscale graph.\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the split_voxels API. 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 split_voxels API. 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...
Second step of algorithm :return:()
"Second step of algorithm\n :return:()"
119
false
mjirik/imcut
split_voxels
142,006
LDU_FT/biolink/biolink-model/cli
LDU_FT
[ "<BEGIN>\n## `cli`", "Generate JSON Schema representation of a biolink model\n<END>", "<BEGIN>\n## `root_representer`", "YAML callback -- used to filter out empty values (None, {}, [] and false)", " @param dumper: data dumper\n @param data: data to be dumped\n @return:\n<END>", "<BEGIN>\n## `cli`...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the 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 extracted doc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the 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 extracted doc...
Generate an OWL representation of a biolink model
"Generate an OWL representation of a biolink model"
119
false
biolink/biolink-model
cli
142,007
LDU_FT/scivision/gridaurora/getN21NG
LDU_FT
[ "<BEGIN>\n## `to_ut1unix`", "converts time inputs to UT1 seconds since Unix epoch\n<END>", "<BEGIN>\n## `chapman_profile`", "Z0: altitude [km] of intensity peak\n zKM: altitude grid [km]\n H: scale height [km]", " example:\n pz = chapman_profile(110,np.arange(90,200,1),20)\n<END>", "<BEGIN>\n#...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the getN21NG API. 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 getN21NG API. 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...
excitation Franck-Condon factors (derived from Vallance Jones, 1974)
"excitation Franck-Condon factors (derived from Vallance Jones, 1974)"
36
false
scivision/gridaurora
getN21NG
142,008
LDU_FT/rameshg87/pyremotevbox/simple_value
LDU_FT
[ "<BEGIN>\n## `_check_typecode_list`", "Check a list of typecodes for compliance with Struct\n requirements.\n<END>", "<BEGIN>\n## `_get_type_or_substitute`", "return typecode or substitute type for wildcard or\n derived type. For serialization only.\n<END>", "<BEGIN>\n## `setDerivedTypeContents`", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the simple_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 extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the simple_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 extr...
Get the value of the simple content of this element. Parameters: elt -- the DOM element being parsed ps -- the ParsedSoap object. mixed -- ignore element content, optional text node
"Get the value of the simple content of this element.\n Parameters:\n elt -- the DOM element being parsed\n ps -- the ParsedSoap object.\n mixed -- ignore element content, optional text node"
529
false
rameshg87/pyremotevbox
simple_value
142,009
LDU_FT/pip-services3-python/pip-services3-commons-python/set_defaults
LDU_FT
[ "<BEGIN>\n## `equals_as`", "Compares this object value to specified specified value.\n When direct comparison gives negative results it converts\n values to type specified by type code and compare them again.", " :param value_type: the Typecode type that defined the type of the result", "...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_defaults API. 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 set_defaults API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
Set default values from specified ConfigParams and returns a new ConfigParams object. :param default_config_params: ConfigMap with default parameter values. :return: a new ConfigParams object.
"Set default values from specified ConfigParams and returns a new ConfigParams object.\n\n :param default_config_params: ConfigMap with default parameter values.\n\n :return: a new ConfigParams object."
811
false
pip-services3-python/pip-services3-commons-python
set_defaults
142,010
LDU_FT/GNS3/gns3-server/start_capture
LDU_FT
[ "<BEGIN>\n## `_asyncio_open_serial_windows`", "Open a windows named pipe", " :returns: An IO like object\n<END>", "<BEGIN>\n## `_asyncio_open_serial_unix`", "Open a unix socket or a windows named pipe", " :returns: An IO like object\n<END>", "<BEGIN>\n## `_choose_capture_side`", "Run capture on ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the start_capture API. 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 start_capture API. 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...
Starts a packet capture. :param adapter_number: adapter number :param output_file: PCAP destination file for the capture
"Starts a packet capture.\n\n :param adapter_number: adapter number\n :param output_file: PCAP destination file for the capture"
1,412
true
GNS3/gns3-server
start_capture
142,011
LDU_FT/dnephin/PyStaticConfiguration/has_duplicate_keys
LDU_FT
[ "<BEGIN>\n## `build_attributes`", "Return an attributes dictionary with ValueTokens replaced by a\n property which returns the config value.\n<END>", "<BEGIN>\n## `cache_as_field`", "Cache a functions return value as the field 'cache_name'.\n<END>", "<BEGIN>\n## `extract_value`", "Given a value pro...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the has_duplicate_keys 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 has_duplicate_keys 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...
Compare two dictionaries for duplicate keys. if raise_error is True then raise on exception, otherwise log return True.
"Compare two dictionaries for duplicate keys. if raise_error is True\n then raise on exception, otherwise log return True."
49
false
dnephin/PyStaticConfiguration
has_duplicate_keys
142,012
LDU_FT/hsolbrig/pyjsg/visitObjectExpr
LDU_FT
[ "<BEGIN>\n## `do_parse`", "Parse the jsg in infilename and save the results in outfilename\n :param infilename: file containing jsg\n :param outfilename: target python file\n :param verbose: verbose output flag\n :return: true if success\n<END>", "<BEGIN>\n## `parse`", "Parse the text in infile an...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the visitObjectExpr API. 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 visitObjectExpr API. 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...
objectExpr: OBRACE membersDef? CBRACE OBRACE (LEXER_ID_REF | ANY)? MAPSTO valueType ebnfSuffix? CBRACE
"objectExpr: OBRACE membersDef? CBRACE \n OBRACE (LEXER_ID_REF | ANY)? MAPSTO valueType ebnfSuffix? CBRACE"
146
false
hsolbrig/pyjsg
visitObjectExpr
142,013
LDU_FT/Bogdanp/dramatiq/get_broker
LDU_FT
[ "<BEGIN>\n## `consume`", "Create a new consumer for a queue.", " Parameters:\n queue_name(str): The queue to consume.\n prefetch(int): The number of messages to prefetch.\n timeout(int): The idle timeout in milliseconds.", " Returns:\n Consumer: A consumer tha...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_broker API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_broker API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
Get the global broker instance. If no global broker is set, this initializes a RabbitmqBroker and returns it. Returns: Broker: The default Broker.
"Get the global broker instance. If no global broker is set,\n this initializes a RabbitmqBroker and returns it.\n\n Returns:\n Broker: The default Broker."
219
false
Bogdanp/dramatiq
get_broker
142,014
LDU_FT/choderalab/pymbar/detectEquilibration_binary_search
LDU_FT
[ "<BEGIN>\n## `read_file`", "Read contents of the specified file.", " Parameters:\n -----------\n filename : str\n The name of the file to be read", " Returns:\n lines : list of str\n The contents of the file, split by line\n<END>", "<BEGIN>\n## `getFreeEnergyDifferences`", "Get the dim...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the detectEquilibration_binary_search API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the detectEquilibration_binary_search API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its ...
Automatically detect equilibrated region of a dataset using a heuristic that maximizes number of effectively uncorrelated samples. Parameters ---------- A_t : np.ndarray timeseries bs_nodes : int > 4 number of geometrically distributed binary search nodes Returns ------- ...
"Automatically detect equilibrated region of a dataset using a heuristic that maximizes number of effectively uncorrelated samples.\n\n Parameters\n ----------\n A_t : np.ndarray \n timeseries\n \n bs_nodes : int > 4\n number of geometrically distributed binary search nodes\n\n Returns\n...
533
false
choderalab/pymbar
detectEquilibration_binary_search
142,015
LDU_FT/willkg/phil/parse_ics
LDU_FT
[ "<BEGIN>\n## `normalize_path`", "Takes a path and a filetype, verifies existence and type, and\n returns absolute path.\n<END>", "<BEGIN>\n## `err`", "Writes output to stderr.", " :arg wrap: If you set ``wrap=False``, then ``err`` won't textwrap\n the output.\n<END>", "<BEGIN>\n## `out`", "...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_ics API. 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 parse_ics API. 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...
Takes an icsfilename, parses it, and returns Events.
"Takes an icsfilename, parses it, and returns Events."
12
false
willkg/phil
parse_ics
142,016
LDU_FT/soynatan/django-easy-audit/get_field_value
LDU_FT
[ "<BEGIN>\n## `prettify_json`", "Given a JSON string, it returns it as a\n safe formatted HTML\n<END>", "<BEGIN>\n## `purge_objects`", "Removes all objects in this table.\n This action first displays a confirmation page;\n next, it deletes all objects and redirects back to the change list.\n<E...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_field_value API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_field_value API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
Gets the value of a given model instance field. :param obj: The model instance. :type obj: Model :param field: The field you want to find the value of. :type field: Any :return: The value of the field as a string. :rtype: str
"Gets the value of a given model instance field.\n :param obj: The model instance.\n :type obj: Model\n :param field: The field you want to find the value of.\n :type field: Any\n :return: The value of the field as a string.\n :rtype: str"
21
false
soynatan/django-easy-audit
get_field_value
142,017
LDU_FT/brentp/toolshed/process_iter
LDU_FT
[ "<BEGIN>\n## `groupby`", "wrapper to itertools.groupby that returns a list of each group, rather\n than a generator and accepts integers or strings as the key and\n automatically converts them to callables with itemgetter(key)", " Arguments:\n iterable: iterable\n key: string, int or call...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the process_iter API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the process_iter API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
helper function to iterate over a process stdout and report error messages when done
"helper function to iterate over a process stdout\n and report error messages when done"
20
false
brentp/toolshed
process_iter
142,018
LDU_FT/tetframework/Tonnikala/merge_text_nodes_on
LDU_FT
[ "<BEGIN>\n## `merge_text_nodes_on`", "Merges all consecutive non-translatable text nodes into one\n<END>", "<BEGIN>\n## `push_state`", "Push a copy of the topmost state on top of the state stack,\n returns the new top.\n<END>", "<BEGIN>\n## `enter_node`", "Enter the given element; keeps track of `c...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the merge_text_nodes_on 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 merge_text_nodes_on 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...
Merges all consecutive non-translatable text nodes into one
"Merges all consecutive non-translatable text nodes into one"
39
false
tetframework/Tonnikala
merge_text_nodes_on
142,019
LDU_FT/buguroo/pyknow/copy
LDU_FT
[ "<BEGIN>\n## `changes`", "Pass the given changes to the root_node.\n<END>", "<BEGIN>\n## `build_alpha_part`", "Given a set of already adapted rules, build the alpha part of\n the RETE network starting at `root_node`.\n<END>", "<BEGIN>\n## `build_beta_part`", "Given a set of already adapted rules, a...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the copy API. 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 copy API. 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...
Make a new instance of this Token. This method makes a copy of the mutable part of the token before making the instance.
"Make a new instance of this Token.\n\n This method makes a copy of the mutable part of the token before\n making the instance."
78
false
buguroo/pyknow
copy
142,020
LDU_FT/linkedin/luminol/_analyze_root_causes
LDU_FT
[ "<BEGIN>\n## `_analyze_root_causes`", "Conduct root cause analysis.\n The first metric of the list is taken as the root cause right now.\n<END>", "<BEGIN>\n## `_load`", "Load time series into a TimeSeries object.\n :param timeseries: a TimeSeries, a dictionary or a path to a csv file(str).\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _analyze_root_causes 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 _analyze_root_causes API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Conduct root cause analysis. The first metric of the list is taken as the root cause right now.
"Conduct root cause analysis.\n The first metric of the list is taken as the root cause right now."
95
false
linkedin/luminol
_analyze_root_causes
142,021
LDU_FT/materialsproject/custodian/setup
LDU_FT
[ "<BEGIN>\n## `from_spec`", "Load a Custodian instance where the jobs are specified from a\n structure and a spec dict. This allows simple\n custom job sequences to be constructed quickly via a YAML file.", " Args:\n spec (dict): A dict specifying job. A sample of the dict in\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the setup API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the setup API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
Performs initial setup for FeffJob, do backing up. Returns:
"Performs initial setup for FeffJob, do backing up.\n Returns:"
90
false
materialsproject/custodian
setup
142,022
LDU_FT/port-zero/mite/patch
LDU_FT
[ "<BEGIN>\n## `request`", "Low-level request interface to mite. Takes a HTTP request scheme (lower\n case!), a URL to request (relative), and optionally data to add to the\n request. Either returns the JSON body of the request or raises a \n HttpException.\n<END>", "<BEGIN>\n## `get`", "Lo...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the patch API. 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 patch API. 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...
Low-level PATCH request interface to mite. Takes a URL to request (relative), and optionally data to add to the request. Either returns the JSON body of the request or raises a HttpException.
"Low-level PATCH request interface to mite. Takes a URL to request\n (relative), and optionally data to add to the request. Either returns\n the JSON body of the request or raises a HttpException."
32
false
port-zero/mite
patch
142,023
LDU_FT/Capitains/MyCapytain/reffs
LDU_FT
[ "<BEGIN>\n## `call`", "Call an endpoint given the parameters", " :param parameters: Dictionary of parameters\n :type parameters: dict\n :rtype: text\n<END>", "<BEGIN>\n## `getValidReff`", "Retrieve valid urn-references for a text", " :param urn: URN identifying the text\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the reffs API. 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 reffs API. 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...
Get all valid reffs for every part of the CtsText :rtype: MyCapytain.resources.texts.tei.XmlCtsCitation
"Get all valid reffs for every part of the CtsText\n\n :rtype: MyCapytain.resources.texts.tei.XmlCtsCitation"
473
false
Capitains/MyCapytain
reffs
142,024
LDU_FT/iclab/centinel/traceroute_batch
LDU_FT
[ "<BEGIN>\n## `parse_out_ips`", "Given a message, parse out the ips in the answer\n<END>", "<BEGIN>\n## `send_chaos_queries`", "Send chaos queries to identify the DNS server and its manufacturer", " Note: we send 2 queries for BIND stuff per RFC 4892 and 1\n query per RFC 6304", " Note...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the traceroute_batch API. 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 traceroute_batch API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
This is a parallel version of the traceroute primitive. :param input_list: the input is a list of domain names :param method: the packet type used for traceroute, UDP by default :param cmd_arguments: the list of arguments that need to be passed to traceroute. :param delay_time: ...
"This is a parallel version of the traceroute primitive.\n\n :param input_list: the input is a list of domain names\n :param method: the packet type used for traceroute, UDP by default\n :param cmd_arguments: the list of arguments that need to be passed\n to traceroute.\n :param delay...
116
false
iclab/centinel
traceroute_batch
142,025
LDU_FT/erikrose/nose-progressive/finalize
LDU_FT
[ "<BEGIN>\n## `format_traceback`", "Return an iterable of formatted Unicode traceback frames.", " Also include a pseudo-frame at the end representing the exception itself.", " Format things more compactly than the stock formatter, and make every\n frame an editor shortcut.\n<END>", "<BEGIN>\n## `ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the finalize API. 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 finalize API. 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...
Put monkeypatches back as we found them.
"Put monkeypatches back as we found them."
65
false
erikrose/nose-progressive
finalize
142,026
LDU_FT/langloisjp/tornado-logging-app/_ensure_request_id_header
LDU_FT
[ "<BEGIN>\n## `run`", "Run on given port. Parse standard options and start the http server.\n<END>", "<BEGIN>\n## `log_request`", "Override base method to log requests to JSON UDP collector and emit\n a metric.\n<END>", "<BEGIN>\n## `write_error`", "Log halt_reason in service log and output error pa...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _ensure_request_id_header 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 _ensure_request_id_header API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi...
Ensure request headers have a request ID. Set one if needed.
"Ensure request headers have a request ID. Set one if needed."
12
false
langloisjp/tornado-logging-app
_ensure_request_id_header
142,027
LDU_FT/cds-astro/mocpy/add_neighbours
LDU_FT
[ "<BEGIN>\n## `max_order`", "Depth of the smallest HEALPix cells found in the MOC instance.\n<END>", "<BEGIN>\n## `intersection`", "Intersection between the MOC instance and other MOCs.", " Parameters\n ----------\n another_moc : `~mocpy.moc.MOC`\n The MOC used for performing ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_neighbours API. 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 add_neighbours API. 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...
Add all the pixels at max order in the neighbourhood of the moc
"Add all the pixels at max order in the neighbourhood of the moc"
210
false
cds-astro/mocpy
add_neighbours
142,028
LDU_FT/PythonRails/rails/render_source
LDU_FT
[ "<BEGIN>\n## `_load_controllers`", "Load all controllers from folder 'controllers'.", " Ignore files with leading underscore (for example: controllers/_blogs.py)\n<END>", "<BEGIN>\n## `get_action_handler`", "Return action of controller as callable.", " If requested controller isn't found - r...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the render_source API. 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 render_source API. 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...
Render a source with the passed variables.
"Render a source with the passed variables."
21
false
PythonRails/rails
render_source
142,029
LDU_FT/WhyNotHugo/django-afip/create_key
LDU_FT
[ "<BEGIN>\n## `catch_errors`", "Catches specific errors in admin actions and shows a friendly error.\n<END>", "<BEGIN>\n## `numbers`", "Returns the barcode's number without the verification digit.", " :return: list(int)\n<END>", "<BEGIN>\n## `verification_digit`", "Returns the verification digit f...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_key API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_key API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
Create a key and save it into ``file_``. Note that ``file`` must be opened in binary mode.
"Create a key and save it into ``file_``.\n\n Note that ``file`` must be opened in binary mode."
96
false
WhyNotHugo/django-afip
create_key
142,030
LDU_FT/keras-rl/keras-rl/select_action
LDU_FT
[ "<BEGIN>\n## `fit`", "Trains the agent on the given environment.", " # Arguments\n env: (`Env` instance): Environment that the agent interacts with. See [Env](#env) for details.\n nb_steps (integer): Number of training steps to be performed.\n action_repetition (integer):...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the select_action API. 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 select_action API. 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...
Choose an action to perform # Returns Action to take (int)
"Choose an action to perform\n\n # Returns\n Action to take (int)"
113
false
keras-rl/keras-rl
select_action
142,031
LDU_FT/LuminosoInsight/python-ftfy/fix_encoding_and_explain
LDU_FT
[ "<BEGIN>\n## `fix_encoding_and_explain`", "Re-decodes text that has been decoded incorrectly, and also return a\n \"plan\" indicating all the steps required to fix it.", " The resulting plan could be used with :func:`ftfy.fixes.apply_plan`\n to fix additional strings that are broken in the same way.\n<...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the fix_encoding_and_explain 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 fix_encoding_and_explain API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio...
Re-decodes text that has been decoded incorrectly, and also return a "plan" indicating all the steps required to fix it. The resulting plan could be used with :func:`ftfy.fixes.apply_plan` to fix additional strings that are broken in the same way.
"Re-decodes text that has been decoded incorrectly, and also return a\n \"plan\" indicating all the steps required to fix it.\n\n The resulting plan could be used with :func:`ftfy.fixes.apply_plan`\n to fix additional strings that are broken in the same way."
123
false
LuminosoInsight/python-ftfy
fix_encoding_and_explain
142,032
LDU_FT/pmelchior/proxmin/pgm
LDU_FT
[ "<BEGIN>\n## `prox_gradf_lim`", "Forward-backward step: gradient, followed by projection\n<END>", "<BEGIN>\n## `prox_lim12`", "if boundary == \"circle\":\n if j == 0:\n xy = np.array([x[0], Xs[1][0]])\n if j == 1:\n xy = np.array([Xs[0][0], x[0]])\n return [prox_circ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the pgm API. 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 pgm API. 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...
Proximal Gradient Method Adapted from Combettes 2009, Algorithm 3.4. The accelerated version is Algorithm 3.6 with modifications from Xu & Yin (2015). Args: X: initial X, will be updated prox_f: proxed function f (the forward-backward step) step_f: step size, < 1/L with L being...
"Proximal Gradient Method\n\n Adapted from Combettes 2009, Algorithm 3.4.\n The accelerated version is Algorithm 3.6 with modifications\n from Xu & Yin (2015).\n\n Args:\n X: initial X, will be updated\n prox_f: proxed function f (the forward-backward step)\n step_f: step size, < 1/L wi...
91
false
pmelchior/proxmin
pgm
142,033
LDU_FT/Azure/azure-python-devtools/create_comment
LDU_FT
[ "<BEGIN>\n## `checkout_create_push_branch`", "Checkout this branch. Create it if necessary, and push it to origin.\n<END>", "<BEGIN>\n## `checkout_with_fetch`", "Fetch the refspec, and checkout FETCH_HEAD.\n Beware that you will ne in detached head mode.\n<END>", "<BEGIN>\n## `clone_to_path`", "Clone t...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_comment API. 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 create_comment API. 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...
Mimic issue API, so we can use it everywhere. Return dashboard comment.
"Mimic issue API, so we can use it everywhere.\n Return dashboard comment."
41
false
Azure/azure-python-devtools
create_comment
142,034
LDU_FT/adamheins/r12/search_for_port
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 search_for_port API. 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 search_for_port API. 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...
Find the serial port the arm is connected to.
"Find the serial port the arm is connected to."
22
false
adamheins/r12
search_for_port
142,035
LDU_FT/blockstack/pybitcoin/get_unspents
LDU_FT
[ "<BEGIN>\n## `random_passphrase_from_wordlist`", "An extremely entropy efficient passphrase generator.", " This function:\n -Pulls entropy from the safer alternative to /dev/urandom: /dev/random\n -Doesn't rely on random.seed (words are selected right from the entropy)\n -Only requir...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_unspents API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_unspents API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
Get the spendable transaction outputs, also known as UTXOs or unspent transaction outputs. NOTE: this will only return unspents if the address provided is present in the bitcoind server. Use the chain, blockchain, or blockcypher API to grab the unspents for arbitrary addresses.
"Get the spendable transaction outputs, also known as UTXOs or\n unspent transaction outputs.\n\n NOTE: this will only return unspents if the address provided is present\n in the bitcoind server. Use the chain, blockchain, or blockcypher API\n to grab the unspents for arbitrary addresses."
79
false
blockstack/pybitcoin
get_unspents
142,036
LDU_FT/LCAV/pylocus/reconstruct_dwmds
LDU_FT
[ "<BEGIN>\n## `optspace`", "Complete and denoise EDM using OptSpace algorithm.", " Uses OptSpace algorithm to complete and denoise EDM. The problem being solved is\n X,S,Y = argmin_(X,S,Y) || W ° (D - XSY') ||_F^2", " :param edm_missing: EDM with 0 where no measurement was taken.\n :param rank: exp...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the reconstruct_dwmds API. 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 reconstruct_dwmds API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Reconstruct point set using d(istributed)w(eighted) MDS. Refer to paper "Distributed Weighted-Multidimensional Scaling for Node Localization in Sensor Networks" for implementation details (doi.org/10.1145/1138127.1138129) :param X0: Nxd matrix of starting points. :param n: Number of points of unknown...
"Reconstruct point set using d(istributed)w(eighted) MDS.\n\n Refer to paper \"Distributed Weighted-Multidimensional Scaling for Node Localization in Sensor Networks\" for \n implementation details (doi.org/10.1145/1138127.1138129)\n\n :param X0: Nxd matrix of starting points.\n :param n: Number of points o...
130
false
LCAV/pylocus
reconstruct_dwmds
142,037
LDU_FT/mcs07/ChemDataExtractor/_tokenize
LDU_FT
[ "<BEGIN>\n## `train_punkt`", "Train Punkt sentence splitter using sentences in input.\n<END>", "<BEGIN>\n## `sentences`", "Read input document, and output sentences.\n<END>", "<BEGIN>\n## `_in_stoplist`", "Return True if the entity is in the stoplist.\n<END>", "<BEGIN>\n## `tag`", "Run individual chem...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _tokenize API. 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 _tokenize API. 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...
Split name on spaces, unless inside curly brackets or quotes.
"Split name on spaces, unless inside curly brackets or quotes."
243
false
mcs07/ChemDataExtractor
_tokenize
142,038
LDU_FT/Netflix-Skunkworks/historical/handler
LDU_FT
[ "<BEGIN>\n## `handler`", "Historical security group event differ.", " Listens to the Historical current table and determines if there are differences that need to be persisted in the\n historical record.\n<END>", "<BEGIN>\n## `serialize`", "Serializes the JSON for the Polling Event Model.", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the handler API. 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 handler API. 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...
Historical {{cookiecutter.technology_name}} event collector. This collector is responsible for processing Cloudwatch events and polling events.
"Historical {{cookiecutter.technology_name}} event collector.\n This collector is responsible for processing Cloudwatch events and polling events."
146
false
Netflix-Skunkworks/historical
handler
142,039
LDU_FT/dhylands/rshell/do_boards
LDU_FT
[ "<BEGIN>\n## `add_device`", "Adds a device to the list of devices we know about.\n<END>", "<BEGIN>\n## `is_micropython_usb_device`", "Checks a USB device to see if it looks like a MicroPython device.\n<END>", "<BEGIN>\n## `is_micropython_usb_port`", "Checks to see if the indicated portname is a MicroPytho...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the do_boards API. 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 do_boards API. 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...
boards Lists the boards that rshell is currently connected to.
"boards\n\n Lists the boards that rshell is currently connected to."
159
false
dhylands/rshell
do_boards
142,040
LDU_FT/xflr6/gsheets/group_dict
LDU_FT
[ "<BEGIN>\n## `write_csv`", "Dump rows to ``fileobj`` with the given ``encoding`` and CSV ``dialect``.\n<END>", "<BEGIN>\n## `write_dataframe`", "Dump ``rows`` to string buffer and load with ``pandas.read_csv()`` using ``kwargs``.\n<END>", "<BEGIN>\n## `from_string`", "Return a new SheetUrl instance from p...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the group_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 extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the group_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 extrac...
Return a list defaultdict with ``items`` grouped by ``keyfunc``. >>> sorted(group_dict('eggs', lambda x: x).items()) [('e', ['e']), ('g', ['g', 'g']), ('s', ['s'])]
"Return a list defaultdict with ``items`` grouped by ``keyfunc``.\n\n >>> sorted(group_dict('eggs', lambda x: x).items())\n [('e', ['e']), ('g', ['g', 'g']), ('s', ['s'])]"
93
false
xflr6/gsheets
group_dict
142,041
LDU_FT/project-rig/rig/_read_results
LDU_FT
[ "<BEGIN>\n## `minimise`", "Remove from the routing table any entries which could be replaced by\n default routing.", " Parameters\n ----------\n routing_table : [:py:class:`~rig.routing_table.RoutingTableEntry`, ...]\n Routing table from which to remove entries which could be handled by\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _read_results API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _read_results API. 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...
Read back the probed results. Returns ------- str A string of "0"s and "1"s, one for each millisecond of simulation.
"Read back the probed results.\n\n Returns\n -------\n str\n A string of \"0\"s and \"1\"s, one for each millisecond of simulation."
983
false
project-rig/rig
_read_results
142,042
LDU_FT/jesford/cluster-lensing/calc_delta_c
LDU_FT
[ "<BEGIN>\n## `calc_delta_c`", "Calculate characteristic overdensity from concentration.", " Parameters\n ----------\n c200 : ndarray or float\n Cluster concentration parameter.", " Returns\n ----------\n ndarray or float\n Cluster characteristic overdensity, of same type as c20...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the calc_delta_c API. 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 calc_delta_c API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
Calculate characteristic overdensity from concentration. Parameters ---------- c200 : ndarray or float Cluster concentration parameter. Returns ---------- ndarray or float Cluster characteristic overdensity, of same type as c200.
"Calculate characteristic overdensity from concentration.\n\n Parameters\n ----------\n c200 : ndarray or float\n Cluster concentration parameter.\n\n Returns\n ----------\n ndarray or float\n Cluster characteristic overdensity, of same type as c200."
55
false
jesford/cluster-lensing
calc_delta_c
142,043
LDU_FT/jopohl/urh/refresh_selection_area
LDU_FT
[ "<BEGIN>\n## `bootstrap_modulator`", "Set initial parameters for default modulator if it was not edited by user previously\n :return:\n<END>", "<BEGIN>\n## `modulate_data`", ":param buffer: Buffer in which the modulated data shall be written, initialized with zeros\n :return:\n<END>", "<BEGIN>...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the refresh_selection_area 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 refresh_selection_area API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
Refresh selection area in case scene was resized/scaled. This happens e.g. when switching from Signal View to Quad Demod view :return:
"Refresh selection area in case scene was resized/scaled.\n This happens e.g. when switching from Signal View to Quad Demod view\n :return:"
149
false
jopohl/urh
refresh_selection_area
142,044
LDU_FT/langloisjp/tstore/create
LDU_FT
[ "<BEGIN>\n## `get`", "Return record of given type with key `rid`", " >>> s = teststore()\n >>> s.create('tstoretest', {'id': '1', 'name': 'Toto'})\n >>> r = s.get('tstoretest', '1')\n >>> r['name']\n 'Toto'\n >>> s.get('badcls', '1')\n Traceback (most recent call...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Persist new record >>> s = teststore() >>> s.create('tstoretest', {'id': '1', 'name': 'Toto'}) >>> s.create('tstoretest', {'id': '2', 'name': 'Tata'}, user='jane') >>> r = s.get('tstoretest', '2') >>> r[CREATOR] 'jane' >>> s.create('badcls', {'id': '1', 'name': '...
"Persist new record\n\n >>> s = teststore()\n >>> s.create('tstoretest', {'id': '1', 'name': 'Toto'})\n >>> s.create('tstoretest', {'id': '2', 'name': 'Tata'}, user='jane')\n >>> r = s.get('tstoretest', '2')\n >>> r[CREATOR]\n 'jane'\n >>> s.create('badcls', {'id': '1', ...
61
false
langloisjp/tstore
create
142,045
LDU_FT/tehmaze/natural/modified
LDU_FT
[ "<BEGIN>\n## `ordinal`", "Converts a number to its ordinal representation.", " :param value: number", " >>> print(ordinal(1))\n 1st\n >>> print(ordinal(11))\n 11th\n >>> print(ordinal(101))\n 101st\n >>> print(ordinal(104))\n 104th\n >>> print(ordinal(113))\n 113th\n >>> pr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the modified API. 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 modified API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
Retrieve how long ago a file has been modified. :param filename: name of the file >>> print modified('/') # doctest: +SKIP 3 days ago
"Retrieve how long ago a file has been modified.\n\n :param filename: name of the file\n\n >>> print modified('/') # doctest: +SKIP\n 3 days ago"
153
false
tehmaze/natural
modified
142,046
LDU_FT/tilezen/mapbox-vector-tile/make_it_valid
LDU_FT
[ "<BEGIN>\n## `_coords`", "Return a list of lists of coordinates of the polygon. The list consists\n firstly of the list of exterior coordinates followed by zero or more lists\n of any interior coordinates.\n<END>", "<BEGIN>\n## `_drop_degenerate_inners`", "Drop degenerate (zero-size) inners from the pol...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the make_it_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 ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the make_it_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 ext...
Attempt to make any polygon or multipolygon valid.
"Attempt to make any polygon or multipolygon valid."
32
false
tilezen/mapbox-vector-tile
make_it_valid
142,047
LDU_FT/tdsmith/eleven/expression_nf
LDU_FT
[ "<BEGIN>\n## `average_cq`", "Given a set of Cq values, return the Cq value that represents the\n average expression level of the input.", " The intent is to average the expression levels of the samples,\n since the average of Cq values is not biologically meaningful.", " :param iterable seq: A seq...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the expression_nf API. 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 expression_nf API. 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...
Calculates expression of samples in a sample data frame relative to pre-computed normalization factors. ref_sample should be defined for all targets or the result will contain many NaNs. :param DataFrame sample_frame: A sample data frame. :param Series nf_n: A Series of normalization factors index...
"Calculates expression of samples in a sample data frame relative to\n pre-computed normalization factors.\n\n ref_sample should be defined for all targets or the result will contain\n many NaNs.\n\n :param DataFrame sample_frame: A sample data frame.\n :param Series nf_n: A Series of normalization facto...
35
false
tdsmith/eleven
expression_nf
142,048
LDU_FT/SwoopSearch/pyaddress/guess_unmatched
LDU_FT
[ "<BEGIN>\n## `post_multipart`", "Post fields and files to an http host as multipart/form-data.\n fields is a sequence of (name, value) elements for regular form fields.\n files is a sequence of (name, filename, value) elements for data to be uploaded as files\n Return the server's response page.\n<END>",...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the guess_unmatched API. 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 guess_unmatched API. 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...
When we find something that doesn't match, we can make an educated guess and log it as such.
"When we find something that doesn't match, we can make an educated guess and log it as such."
45
false
SwoopSearch/pyaddress
guess_unmatched
142,049
LDU_FT/brentp/cruzdb/distance
LDU_FT
[ "<BEGIN>\n## `relate`", "Produce a relationship between this mapped table and another\n one. ", " This makes usage of SQLAlchemy's :func:`sqlalchemy.orm.relationship`\n construct.\n<END>", "<BEGIN>\n## `execute`", "Execute a SQL statement.", " The statement may be a string SQL ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the distance API. 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 distance API. 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 the distance between this an another interval Parameters ---------- other_or_start : Interval or int either an integer or an Interval with a start attribute indicating the start of the interval end : int if `other_or_start` is an integer, this ...
"check the distance between this an another interval\n Parameters\n ----------\n\n other_or_start : Interval or int\n either an integer or an Interval with a start attribute indicating\n the start of the interval\n\n end : int\n if `other_or_start` is an inte...
169
false
brentp/cruzdb
distance
142,050
LDU_FT/gmr/helper/run
LDU_FT
[ "<BEGIN>\n## `operating_system`", "Return a string identifying the operating system the application\n is running on.", " :rtype: str\n<END>", "<BEGIN>\n## `start`", "Daemonize if the process is not already running.\n<END>", "<BEGIN>\n## `gid`", "Return the group id that the daemon will run with", ...
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...
The core method for starting the application. Will setup logging, toggle the runtime state flag, block on loop, then call shutdown. Redefine this method if you intend to use an IO Loop or some other long running process.
"The core method for starting the application. Will setup logging,\n toggle the runtime state flag, block on loop, then call shutdown.\n\n Redefine this method if you intend to use an IO Loop or some other\n long running process."
77
false
gmr/helper
run
142,051
LDU_FT/python-xlib/python-xlib/set_screen_config
LDU_FT
[ "<BEGIN>\n## `query_int_attribute`", "Return the value of an integer attribute\n<END>", "<BEGIN>\n## `create_resource_object`", "Create a resource object of type for the integer id. type\n should be one of the following strings:", " resource\n drawable\n window\n pixmap\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_screen_config API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_screen_config API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Sets the screen to the specified size, rate, rotation and reflection. rate can be 0 to have the server select an appropriate rate.
"Sets the screen to the specified size, rate, rotation and reflection.\n\n rate can be 0 to have the server select an appropriate rate."
232
false
python-xlib/python-xlib
set_screen_config
142,052
LDU_FT/johnbywater/eventsourcing/event_from_item
LDU_FT
[ "<BEGIN>\n## `register_new_suffix_tree`", "Factory method, returns new suffix tree object.\n<END>", "<BEGIN>\n## `find_substring`", "Returns the index if substring in tree, otherwise -1.\n<END>", "<BEGIN>\n## `_canonize_suffix`", "This canonizes the suffix, walking along its suffix string until it\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the event_from_item API. 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 event_from_item API. 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...
Reconstructs domain event from stored event topic and event attrs. Used in the event store when getting domain events.
"Reconstructs domain event from stored event topic and\n event attrs. Used in the event store when getting domain events."
161
false
johnbywater/eventsourcing
event_from_item
142,053
LDU_FT/databricks/spark-sklearn/_toSKLGLM
LDU_FT
[ "<BEGIN>\n## `gapply`", "Applies the function ``func`` to data grouped by key. In particular, given a dataframe\n grouped by some set of key columns key1, key2, ..., keyn, this method groups all the values\n for each row with the same key columns into a single Pandas dataframe and by default invokes\n ``...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _toSKLGLM API. 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 _toSKLGLM API. 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...
Private method for converting a GLM to a scikit-learn model TODO: Add model parameters as well.
"Private method for converting a GLM to a scikit-learn model\n TODO: Add model parameters as well."
41
false
databricks/spark-sklearn
_toSKLGLM
142,054
LDU_FT/ebroecker/canmatrix/git_pieces_from_vcs
LDU_FT
[ "<BEGIN>\n## `unpack_bitstring`", "returns a value calculated from bits\n :param length: length of signal in bits\n :param is_float: value is float\n :param bits: value as bits (array/iterable)\n :param is_signed: value is signed\n :return:\n<END>", "<BEGIN>\n## `pack_bitstring`", "returns a va...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the git_pieces_from_vcs 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 git_pieces_from_vcs 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 version from 'git describe' in the root of the source tree. This only gets called if the git-archive 'subst' keywords were *not* expanded, and _version.py hasn't already been rewritten with a short version string, meaning we're inside a checked out source tree.
"Get version from 'git describe' in the root of the source tree.\n\n This only gets called if the git-archive 'subst' keywords were *not*\n expanded, and _version.py hasn't already been rewritten with a short\n version string, meaning we're inside a checked out source tree."
51
false
ebroecker/canmatrix
git_pieces_from_vcs
142,055
LDU_FT/dcwatson/django-pgcrypto/armor
LDU_FT
[ "<BEGIN>\n## `armor`", "Returns a string in ASCII Armor format, for the given binary data. The\n output of this is compatiple with pgcrypto's armor/dearmor functions.\n<END>", "<BEGIN>\n## `dearmor`", "Given a string in ASCII Armor format, returns the decoded binary data.\n If verify=True (the default),...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the armor API. 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 armor API. 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 string in ASCII Armor format, for the given binary data. The output of this is compatiple with pgcrypto's armor/dearmor functions.
"Returns a string in ASCII Armor format, for the given binary data. The\n output of this is compatiple with pgcrypto's armor/dearmor functions."
14
false
dcwatson/django-pgcrypto
armor
142,056
LDU_FT/seleniumbase/SeleniumBase/hide_elements
LDU_FT
[ "<BEGIN>\n## `generate_application_string`", "Generate an application string based on some of the given information\n that can be pulled from the test object: app_env, start_time.\n<END>", "<BEGIN>\n## `_filter_xpath_grouping`", "This method removes the outer parentheses for xpath grouping.\n Th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the hide_elements API. 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 hide_elements API. 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...
Hide all elements on the page that match the selector.
"Hide all elements on the page that match the selector."
362
false
seleniumbase/SeleniumBase
hide_elements
142,057
LDU_FT/riga/law/remove_cmdline_arg
LDU_FT
[ "<BEGIN>\n## `full_parser`", "Returns the full *ArgumentParser* used by the luigi ``CmdlineParser``. The returned instance is\n cached.\n<END>", "<BEGIN>\n## `root_task_parser`", "Returns a new *ArgumentParser* instance that only contains paremeter actions of the root task.\n The returned instance is ca...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the remove_cmdline_arg 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 remove_cmdline_arg 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...
Removes the command line argument *args* from a list of arguments *args*, e.g. as returned from :py:func:`global_cmdline_args`. When *n* is 1 or less, only the argument is removed. Otherwise, the following *n-1* values are removed. Example: .. code-block:: python args = global_cmdline_values() ...
"Removes the command line argument *args* from a list of arguments *args*, e.g. as returned from\n :py:func:`global_cmdline_args`. When *n* is 1 or less, only the argument is removed. Otherwise,\n the following *n-1* values are removed. Example:\n\n .. code-block:: python\n\n args = global_cmdline_value...
279
false
riga/law
remove_cmdline_arg
142,058
LDU_FT/CodyKochmann/strict_functions/default_profiler
LDU_FT
[ "<BEGIN>\n## `has_args`", "returns true if the decorator invocation\n had arguments passed to it before being\n sent a function to decorate\n<END>", "<BEGIN>\n## `identify`", "returns a tuple that is used to match\n functions to their neighbors in their\n resident n...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the default_profiler API. 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 default_profiler API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
inspects an input frame and pretty prints the following: <src-path>:<src-line> -> <function-name> <source-code> <local-variables> ----------------------------------------
"inspects an input frame and pretty prints the following:\n\n <src-path>:<src-line> -> <function-name>\n <source-code>\n <local-variables>\n ----------------------------------------"
48
false
CodyKochmann/strict_functions
default_profiler
142,059
LDU_FT/Pixelapse/pyglass/is_valid_preview
LDU_FT
[ "<BEGIN>\n## `embedded_preview`", "Returns path to temporary copy of embedded QuickLook preview, if it exists\n<END>", "<BEGIN>\n## `thumbnail_preview`", "Returns the path to small thumbnail preview.\n<END>", "<BEGIN>\n## `export_cmd`", "Executes a `sketchtool export` command and returns formatted output"...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_valid_preview API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_valid_preview API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Verifies that the preview is a valid filetype
"Verifies that the preview is a valid filetype"
33
false
Pixelapse/pyglass
is_valid_preview
142,060
LDU_FT/protream/iquery/pretty_print
LDU_FT
[ "<BEGIN>\n## `pretty_print`", "Use `PrettyTable` to perform formatted outprint.\n<END>", "<BEGIN>\n## `_parse_date`", "Parse from the user input `date`.", " e.g. current year 2016:\n input 6-26, 626, ... return 2016626\n input 2016-6-26, 2016/6/26, ... retrun 2016626", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the pretty_print API. 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 pretty_print API. 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...
Use `PrettyTable` to perform formatted outprint.
"Use `PrettyTable` to perform formatted outprint."
31
false
protream/iquery
pretty_print
142,061
LDU_FT/ponty/confduino/move_examples
LDU_FT
[ "<BEGIN>\n## `upgrade_many`", "upgrade many libs.", " source: http://arduino.cc/playground/Main/LibraryList", " you can set your arduino path if it is not default\n os.environ['ARDUINO_HOME'] = '/home/...'\n<END>", "<BEGIN>\n## `install_hwpack`", "install hwpackrary from web or local files system...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the move_examples API. 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 move_examples API. 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...
find examples not under lib dir, and move into ``examples``
"find examples not under lib dir, and move into ``examples``"
61
false
ponty/confduino
move_examples
142,062
LDU_FT/schneiderfelipe/pyrrole/draw_diagram
LDU_FT
[ "<BEGIN>\n## `_parse_chemical_equation`", "Parse the chemical equation mini-language.", " See the docstring of `ChemicalEquation` for more.", " Parameters\n ----------\n value : `str`\n A string in chemical equation mini-language.", " Returns\n -------\n mapping\n A mappin...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the draw_diagram API. 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 draw_diagram API. 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...
Draw a diagram for graph using Matplotlib. Draw graph as a simple energy diagram with Matplotlib with options for node positions, labeling, titles, and many other drawing features. See examples below. Parameters ---------- graph : `networkx.Graph` A NetworkX graph. pos : mapping, o...
"Draw a diagram for graph using Matplotlib.\n\n Draw graph as a simple energy diagram with Matplotlib with options for node\n positions, labeling, titles, and many other drawing features. See examples\n below.\n\n Parameters\n ----------\n graph : `networkx.Graph`\n A NetworkX graph.\n pos :...
153
false
schneiderfelipe/pyrrole
draw_diagram
142,063
LDU_FT/aburrell/apexpy/getsinIm
LDU_FT
[ "<BEGIN>\n## `checklat`", "Makes sure the latitude is inside [-90, 90], clipping close values\n (tolerance 1e-4).", " Parameters\n ==========\n lat : array_like\n latitude\n name : str, optional\n parameter name to use in the exception message", " Returns\n =======\n lat ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the getsinIm API. 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 getsinIm API. 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...
Computes sinIm from modified apex latitude. Parameters ========== alat : array_like Modified apex latitude Returns ======= sinIm : ndarray or float
"Computes sinIm from modified apex latitude.\n\n Parameters\n ==========\n alat : array_like\n Modified apex latitude\n\n Returns\n =======\n sinIm : ndarray or float"
120
false
aburrell/apexpy
getsinIm
142,064
LDU_FT/skyfielders/python-skyfield/dms
LDU_FT
[ "<BEGIN>\n## `add_deflection`", "Update `position` for how solar system masses will deflect its light.", " Given the ICRS `position` [x,y,z] of an object (au) that is being\n viewed from the `observer` also expressed as [x,y,z], and given an\n ephemeris that can be used to determine solar system body p...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the dms API. 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 dms API. 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...
Convert to a tuple (degrees, minutes, seconds). All three quantities will have the same sign as the angle itself.
"Convert to a tuple (degrees, minutes, seconds).\n\n All three quantities will have the same sign as the angle itself."
392
false
skyfielders/python-skyfield
dms
142,065
LDU_FT/spookylukey/django-paypal/init
LDU_FT
[ "<BEGIN>\n## `render_payment_form`", "Display the DirectPayment for entering payment information.\n<END>", "<BEGIN>\n## `validate_payment_form`", "Try to validate and then process the DirectPayment form.\n<END>", "<BEGIN>\n## `redirect_to_express`", "First step of ExpressCheckout. Redirect the request to ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the init API. 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 init API. 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...
Initialize a PayPalNVP instance from a HttpRequest.
"Initialize a PayPalNVP instance from a HttpRequest."
65
false
spookylukey/django-paypal
init
142,066
LDU_FT/SpheMakh/Stimela/addSPI
LDU_FT
[ "<BEGIN>\n## `python_job`", "Run python function", " function : Python callable to execute\n name : Name of function (if not given, will used function.__name__)\n parameters : Parameters to parse to function\n label : Function label; for logging purposes\n<EN...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the addSPI API. 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 addSPI API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Add spectral index to a tigger lsm from a spectral index map (fits format) takes in a spectral index map, input lsm and output lsm name.
"Add spectral index to a tigger lsm from a spectral index map (fits format)\n takes in a spectral index map, input lsm and output lsm name."
28
false
SpheMakh/Stimela
addSPI
142,067
LDU_FT/colab/colab/find_window
LDU_FT
[ "<BEGIN>\n## `delete`", "Remove an email address, validated or not.\n<END>", "<BEGIN>\n## `update`", "Set an email address as primary address.\n<END>", "<BEGIN>\n## `is_logged`", "Check if a logged user is trying to access the register page.\n If so, redirect him/her to his/her profile\n<END>", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_window API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_window API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
Getting the HIGHLIGHT_NUM_CHARS_BEFORE_MATCH setting to find how many characters before the first word found should be removed from the window
"Getting the HIGHLIGHT_NUM_CHARS_BEFORE_MATCH setting\n to find how many characters before the first word found should\n be removed from the window"
19
false
colab/colab
find_window
142,068
LDU_FT/yt-project/unyt/_em_conversion
LDU_FT
[ "<BEGIN>\n## `uconcatenate`", "Concatenate a sequence of arrays.", " This wrapper around numpy.concatenate preserves units. All input arrays\n must have the same units. See the documentation of numpy.concatenate for\n full details.", " Examples\n --------\n >>> from unyt import cm\n >>> ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _em_conversion API. 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 _em_conversion API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
Convert between E&M & MKS base units. If orig_units is a CGS (or MKS) E&M unit, conv_data contains the corresponding MKS (or CGS) unit and scale factor converting between them. This must be done by replacing the expression of the original unit with the new one in the unit expression and multiplying by ...
"Convert between E&M & MKS base units.\n\n If orig_units is a CGS (or MKS) E&M unit, conv_data contains the\n corresponding MKS (or CGS) unit and scale factor converting between them.\n This must be done by replacing the expression of the original unit\n with the new one in the unit expression and multiplyi...
236
false
yt-project/unyt
_em_conversion
142,069
LDU_FT/infothrill/python-dyndnsc/sync
LDU_FT
[ "<BEGIN>\n## `getDynDnsClientForConfig`", "Instantiate and return a complete and working dyndns client.", " :param config: a dictionary with configuration keys\n :param plugins: an object that implements PluginManager\n<END>", "<BEGIN>\n## `sync`", "Synchronize the registered IP with the detected IP (...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the sync API. 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 sync API. 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...
Synchronize the registered IP with the detected IP (if needed). This can be expensive, mostly depending on the detector, but also because updating the dynamic ip in itself is costly. Therefore, this method should usually only be called on startup or when the state changes.
"Synchronize the registered IP with the detected IP (if needed).\n\n This can be expensive, mostly depending on the detector, but also\n because updating the dynamic ip in itself is costly. Therefore, this\n method should usually only be called on startup or when the state changes."
127
false
infothrill/python-dyndnsc
sync
142,070
LDU_FT/pavoni/pyvera/set_cache_value
LDU_FT
[ "<BEGIN>\n## `init_controller`", "Initialize a controller.", " Provides a single global controller for applications that can't do this\n themselves\n<END>", "<BEGIN>\n## `data_request`", "Perform a data_request and return the result.\n<END>", "<BEGIN>\n## `get_device_by_name`", "Search the list of...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_cache_value API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_cache_value API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
Set a variable in the local state dictionary. This does not change the physical device. Useful if you want the device state to refect a new value which has not yet updated drom Vera.
"Set a variable in the local state dictionary.\n\n This does not change the physical device. Useful if you want the\n device state to refect a new value which has not yet updated drom\n Vera."
94
false
pavoni/pyvera
set_cache_value
142,071
LDU_FT/kpn-digital/py-timeexecution/write
LDU_FT
[ "<BEGIN>\n## `write`", "Write the metric to elasticsearch", " Args:\n name (str): The name of the metric to write\n data (dict): Additional data to store with the metric\n<END>", "<BEGIN>\n## `bulk_write`", "Write multiple metrics to elasticsearch in one request", " Arg...
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...
Write the metric to elasticsearch Args: name (str): The name of the metric to write data (dict): Additional data to store with the metric
"Write the metric to elasticsearch\n\n Args:\n name (str): The name of the metric to write\n data (dict): Additional data to store with the metric"
18
false
kpn-digital/py-timeexecution
write
142,072