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/libnano/primer3-py/calcHairpin
LDU_FT
[ "<BEGIN>\n## `_parse_ntthal`", "Helper method that uses regex to parse ntthal output.\n<END>", "<BEGIN>\n## `calcThermo`", "Main subprocess wrapper for calls to the ntthal executable.", " Returns a named tuple with tm, ds, dh, and dg values or None if no\n structure / complex could be computed.\n<END>...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the calcHairpin API. 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 calcHairpin API. 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...
Calculate the hairpin formation thermodynamics of a DNA sequence. **Note that the maximum length of `seq` is 60 bp.** This is a cap suggested by the Primer3 team as the longest reasonable sequence length for which a two-state NN model produces reliable results (see primer3/src/libnano/thal.h:50). Args...
"Calculate the hairpin formation thermodynamics of a DNA sequence.\n\n **Note that the maximum length of `seq` is 60 bp.** This is a cap suggested\n by the Primer3 team as the longest reasonable sequence length for which\n a two-state NN model produces reliable results (see primer3/src/libnano/thal.h:50).\n\n ...
43
false
libnano/primer3-py
calcHairpin
15,173
LDU_FT/nesaro/pydsl/load_python_file
LDU_FT
[ "<BEGIN>\n## `check`", "Checks if the input follows the definition\n<END>", "<BEGIN>\n## `formatchecker_factory`", "Converts a dictionary of strings:checkers into a formatchecker object\n<END>", "<BEGIN>\n## `item_set_goto`", "returns an itemset\n locate inside itemset every element with inputsymbol fo...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load_python_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 ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load_python_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 ...
Try to create an indexable instance from a module
"Try to create an indexable instance from a module"
32
false
nesaro/pydsl
load_python_file
15,174
LDU_FT/planetlabs/planet-client-python/_patch_stats_request
LDU_FT
[ "<BEGIN>\n## `get_body`", "Get the response Body", " :returns Body: A Body object containing the response.\n<END>", "<BEGIN>\n## `last_modified`", "Read the last-modified header as a datetime, if present.\n<END>", "<BEGIN>\n## `write`", "Write the contents of the body to the optionally provided f...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _patch_stats_request API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _patch_stats_request API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
If the request has no filter config, add one that should do what is expected (include all items) see: PE-11813
"If the request has no filter config, add one that should do what is\n expected (include all items)\n see: PE-11813"
129
false
planetlabs/planet-client-python
_patch_stats_request
15,175
LDU_FT/deshima-dev/decode/plot_tcoords
LDU_FT
[ "<BEGIN>\n## `xarrayfunc`", "Make a function compatible with xarray.DataArray.", " This function is intended to be used as a decorator like::", " >>> @dc.xarrayfunc\n >>> def func(array):\n ... # do something\n ... return newarray\n >>>\n >>> result = func(...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the plot_tcoords API. 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 plot_tcoords API. 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...
Plot coordinates related to the time axis. Args: array (xarray.DataArray): Array which the coodinate information is included. coords (list): Name of x axis and y axis. scantypes (list): Scantypes. If None, all scantypes are used. ax (matplotlib.axes): Axis you want to plot on. ...
"Plot coordinates related to the time axis.\n\n Args:\n array (xarray.DataArray): Array which the coodinate information is included.\n coords (list): Name of x axis and y axis.\n scantypes (list): Scantypes. If None, all scantypes are used.\n ax (matplotlib.axes): Axis you want to plot on...
137
false
deshima-dev/decode
plot_tcoords
15,176
LDU_FT/webrecorder/warcio/remove_header
LDU_FT
[ "<BEGIN>\n## `_raise_invalid_gzip_err`", "A gzip file with multiple ARC/WARC records, non-chunked\n has been detected. This is not valid for replay, so notify user\n<END>", "<BEGIN>\n## `_consume_blanklines`", "Consume blank lines that are between records\n - For warcs, there are usually 2\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the remove_header API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the remove_header API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
Remove header (case-insensitive) return True if header removed, False otherwise
"Remove header (case-insensitive)\n return True if header removed, False otherwise"
91
false
webrecorder/warcio
remove_header
15,177
LDU_FT/akx/lepo/get_urls
LDU_FT
[ "<BEGIN>\n## `resolve_reference`", "Resolve a JSON Pointer object reference to the object itself.", " :param ref: Reference string (`#/foo/bar`, for instance)\n :return: The object, if found\n :raises jsonschema.exceptions.RefResolutionError: if there is trouble resolving the reference\n<EN...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_urls API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_urls API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
Get the router's URLs, ready to be installed in `urlpatterns` (directly or via `include`). :param root_view_name: The optional url name for an API root view. This may be useful for projects that do not explicitly know where the router is mounted; th...
"Get the router's URLs, ready to be installed in `urlpatterns` (directly or via `include`).\n\n :param root_view_name: The optional url name for an API root view.\n This may be useful for projects that do not explicitly know where the\n router is mounte...
36
false
akx/lepo
get_urls
15,178
LDU_FT/williballenthin/python-evtx/evtx_file_xml_view
LDU_FT
[ "<BEGIN>\n## `xml_records`", "If the second return value is not None, then it is an\n Exception encountered during parsing. The first return value\n will be the XML string.", " @type filename str\n @rtype: generator of (etree.Element or str), (None or Exception)\n<END>", "<BEGIN>\n## `templat...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the evtx_file_xml_view 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 evtx_file_xml_view API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
Generate XML representations of the records in an EVTX file. Does not include the XML <?xml... header. Records are ordered by file_header.chunks(), and then by chunk.records() Args: chunk (Evtx.FileHeader): the file header to render. Yields: tuple[str, Evtx.Record]: the rendered XML docum...
"Generate XML representations of the records in an EVTX file.\n\n Does not include the XML <?xml... header.\n Records are ordered by file_header.chunks(), and then by chunk.records()\n\n Args:\n chunk (Evtx.FileHeader): the file header to render.\n\n Yields:\n tuple[str, Evtx.Record]: the rendered...
73
false
williballenthin/python-evtx
evtx_file_xml_view
15,179
LDU_FT/kobejohn/PQHelper/versus_summaries
LDU_FT
[ "<BEGIN>\n## `_create_board_image_cv`", "Return a cv image of the board or empty board if not provided.\n<END>", "<BEGIN>\n## `_draw_swap_cv`", "Add a white tile border to indicate the swap.\n<END>", "<BEGIN>\n## `_convert_cv_to_tk`", "Convert an OpenCV image to a tkinter PhotoImage\n<END>", "<BEGIN>\n#...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the versus_summaries API. 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 versus_summaries API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Return summaries of the likely resutls of each available action.. Arguments: - turns: how many turns to simulate. - in 2013, 1 is fast (seconds), 2 is slow (seconds), 3 who knows - sims_to_average: how many times to run the simulation to get more representative average results of each actio...
"Return summaries of the likely resutls of each available action..\n\n Arguments:\n - turns: how many turns to simulate.\n - in 2013, 1 is fast (seconds), 2 is slow (seconds), 3 who knows\n - sims_to_average: how many times to run the simulation\n to get more representative average results of eac...
114
false
kobejohn/PQHelper
versus_summaries
15,180
LDU_FT/jeongyoonlee/Kaggler/read_sps
LDU_FT
[ "<BEGIN>\n## `fit`", "Train a network with the quasi-Newton method.", " Args:\n X (np.array of float): feature matrix for training\n y (np.array of float): target values for training\n X_val (np.array of float): feature matrix for validation\n y_val (np.array o...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the read_sps API. 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 read_sps API. 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...
Read a LibSVM file line-by-line. Args: path (str): A path to the LibSVM file to read. Yields: data (list) and target (int).
"Read a LibSVM file line-by-line.\n\n Args:\n path (str): A path to the LibSVM file to read.\n\n Yields:\n data (list) and target (int)."
114
false
jeongyoonlee/Kaggler
read_sps
15,181
LDU_FT/pudo/typecast/_is_null
LDU_FT
[ "<BEGIN>\n## `name`", "Get the string title for a particular type.", " Given a value, get an appropriate string title for the type that can\n be used to re-cast the value later.\n<END>", "<BEGIN>\n## `converter`", "Get a given converter by name, or raise an exception.\n<END>", "<BEGIN>\n## `cast`", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _is_null API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _is_null API. 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 if an incoming value is ``None`` or the empty string.
"Check if an incoming value is ``None`` or the empty string."
23
false
pudo/typecast
_is_null
15,182
LDU_FT/esterhui/pypu/lookupfile
LDU_FT
[ "<BEGIN>\n## `_connectToWP`", "Establish the actual TCP connection to Flickr\n<END>", "<BEGIN>\n## `_readMetaAndContent`", "Reads meta data and content from file into WordPressPost() class.\n Returns the class", " If error, returns None\n<END>", "<BEGIN>\n## `GetStatus`", "Scans through al...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the lookupfile API. 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 lookupfile API. 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...
Returns dictionary of file content as well as google reverse GEO data
"Returns dictionary of file content as well \n as google reverse GEO data"
113
false
esterhui/pypu
lookupfile
15,183
LDU_FT/mayfield/shellish/parse_nargs
LDU_FT
[ "<BEGIN>\n## `hone_cache`", "A caching decorator that follows after the style of lru_cache. Calls\n that are sharper than previous requests are returned from the cache after\n honing in on the requested results using the `refineby` technique.", " The `refineby` technique can be `startswith`, `container...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_nargs API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_nargs API. 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...
Nargs is essentially a multi-type encoding. We have to parse it to understand how many values this action may consume.
"Nargs is essentially a multi-type encoding. We have to parse it\n to understand how many values this action may consume."
172
false
mayfield/shellish
parse_nargs
15,184
LDU_FT/ome/omego/run
LDU_FT
[ "<BEGIN>\n## `entry_point`", "External entry point which calls main() and\n if Stop is raised, calls sys.exit()\n<END>", "<BEGIN>\n## `open_url`", "Open a URL using an opener that will simulate a browser user-agent\n url: The URL\n httpuser, httppassword: HTTP authentication credentials (either both ...
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...
Runs a command as if from the command-line without the need for using popen or subprocess
"Runs a command as if from the command-line\n without the need for using popen or subprocess"
72
false
ome/omego
run
15,185
LDU_FT/mk-fg/feedjack/get_extra_context
LDU_FT
[ "<BEGIN>\n## `getsteps`", "Returns a list with the max number of posts per \"tagcloud level\"\n<END>", "<BEGIN>\n## `build`", "Returns the tag cloud for a list of tags.\n<END>", "<BEGIN>\n## `cloudata`", "Returns a dictionary with all the tag clouds related to a site.\n<END>", "<BEGIN>\n## `getcloud`", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_extra_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. The...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_extra_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. The...
Returns extra data useful to the templates.
"Returns extra data useful to the templates."
62
false
mk-fg/feedjack
get_extra_context
15,186
LDU_FT/kata198/func_timeout/func_set_timeout
LDU_FT
[ "<BEGIN>\n## `getMsg`", "getMsg - Generate a default message based on parameters to FunctionTimedOut exception'", " @return <str> - Message\n<END>", "<BEGIN>\n## `retry`", "retry - Retry the timed-out function with same arguments.", " @param timeout <float/RETRY_SAME_TIMEOUT/None> De...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the func_set_timeout API. 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 func_set_timeout API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
func_set_timeout - Decorator to run a function with a given/calculated timeout (max execution time). Optionally (if #allowOverride is True), adds a paramater, "forceTimeout", to the function which, if provided, will override the default timeout for that invocation. If #timeout is pr...
"func_set_timeout - Decorator to run a function with a given/calculated timeout (max execution time).\n Optionally (if #allowOverride is True), adds a paramater, \"forceTimeout\", to the\n function which, if provided, will override the default timeout for that invocation.\n\n If #timeou...
37
false
kata198/func_timeout
func_set_timeout
15,187
LDU_FT/azavea/python-omgeo/_settings_checker
LDU_FT
[ "<BEGIN>\n## `_geocode`", ":arg PlaceQuery pq: PlaceQuery object to use for geocoding\n :returns: list of location Candidates\n<END>", "<BEGIN>\n## `_street_addr_from_response`", "Construct a street address (no city, region, etc.) from a geocoder response.", " :param attributes: A dict of addr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _settings_checker API. 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 _settings_checker API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Take a list of required _settings dictionary keys and make sure they are set. This can be added to a custom constructor in a subclass and tested to see if it returns ``True``. :arg list required_settings: A list of required keys to look for. :arg bool accept_none: Boolean set to True if...
"Take a list of required _settings dictionary keys\n and make sure they are set. This can be added to a custom\n constructor in a subclass and tested to see if it returns ``True``.\n\n :arg list required_settings: A list of required keys to look for.\n :arg bool accept_none: Boolean set to T...
78
false
azavea/python-omgeo
_settings_checker
15,188
LDU_FT/globality-corp/microcosm-logging/make_stream_handler
LDU_FT
[ "<BEGIN>\n## `enable_loggly`", "Enable loggly if it is configured and not debug/testing.\n<END>", "<BEGIN>\n## `make_dict_config`", "Build a dictionary configuration from conventions and configuration.\n<END>", "<BEGIN>\n## `make_stream_handler`", "Create the stream handler. Used for console/debug output....
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the make_stream_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. T...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the make_stream_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. T...
Create the stream handler. Used for console/debug output.
"Create the stream handler. Used for console/debug output."
15
false
globality-corp/microcosm-logging
make_stream_handler
15,189
LDU_FT/Clarify/clarify_brightcove_sync/_load_bundle_map
LDU_FT
[ "<BEGIN>\n## `_load_secret`", "read the oauth secrets and account ID from a credentials configuration file\n<END>", "<BEGIN>\n## `get_video_count`", "Return the number of videos in the account\n<END>", "<BEGIN>\n## `get_all_videos`", "Gets all the videos in an account by automatically paginating through g...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _load_bundle_map API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _load_bundle_map API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Return a map of all bundles in the Clarify app that have an external_id set for them. The bundles with external_ids set are assumed to be the ones we have inserted from Brightcove. The external_id contains the Brightcove video id.
"Return a map of all bundles in the Clarify app that have an external_id set for them.\n The bundles with external_ids set are assumed to be the ones we have inserted from Brightcove.\n The external_id contains the Brightcove video id."
18
false
Clarify/clarify_brightcove_sync
_load_bundle_map
15,190
LDU_FT/jilljenn/tryalgo/reverse
LDU_FT
[ "<BEGIN>\n## `three_partition`", "partition a set of integers in 3 parts of same total value", " :param x: table of non negative values\n :returns: triplet of the integers encoding the sets, or None otherwise\n :complexity: :math:`O(2^{2n})`\n<END>", "<BEGIN>\n## `freivalds`", "Tests matrix product...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the reverse API. 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 reverse API. 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...
replace all arcs (u, v) by arcs (v, u) in a graph
"replace all arcs (u, v) by arcs (v, u) in a graph"
423
false
jilljenn/tryalgo
reverse
15,191
LDU_FT/inasafe/inasafe/action_checklist_report_extractor
LDU_FT
[ "<BEGIN>\n## `dict`", "dictionary representation of the metadata.", " :return: dictionary representation of the metadata\n :rtype: dict\n<END>", "<BEGIN>\n## `xml`", "xml representation of the metadata.", " :return: xml representation of the metadata\n :rtype: ElementTree.Eleme...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the action_checklist_report_extractor 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 action_checklist_report_extractor API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its ...
Extracting action checklist of the impact layer to its own report. :param impact_report: the impact report that acts as a proxy to fetch all the data that extractor needed :type impact_report: safe.report.impact_report.ImpactReport :param component_metadata: the component metadata. Used to obtain ...
"Extracting action checklist of the impact layer to its own report.\n\n :param impact_report: the impact report that acts as a proxy to fetch\n all the data that extractor needed\n :type impact_report: safe.report.impact_report.ImpactReport\n\n :param component_metadata: the component metadata. Used to ...
4,163
true
inasafe/inasafe
action_checklist_report_extractor
15,192
LDU_FT/azogue/dataweb/append_delta_index
LDU_FT
[ "<BEGIN>\n## `request_data_url`", "Realiza sucesivos intentos de request a una url dada, intentándolo hasta que recibe un status 200 (OK)\n y el texto recibido es mayor que MIN_LEN_REQUEST (=10).\n Resulta útil cuando se están realizando múltiples requests al mismo servidor (por velocidad), y no siempre\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the append_delta_index API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the append_delta_index API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
Append columns with ∆T between rows to data.
"Append columns with ∆T between rows to data."
26
false
azogue/dataweb
append_delta_index
15,193
LDU_FT/UAVCAN/pyuavcan/enum_mark_last
LDU_FT
[ "<BEGIN>\n## `enum_mark_last`", "Returns a generator over iterable that tells whether the current item is the last one.\n Usage:\n >>> iterable = range(10)\n >>> for index, is_last, item in enum_mark_last(iterable):\n >>> print(index, item, end='\\n' if is_last else ', ')\n<END>", "<...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the enum_mark_last API. 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 enum_mark_last API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
Returns a generator over iterable that tells whether the current item is the last one. Usage: >>> iterable = range(10) >>> for index, is_last, item in enum_mark_last(iterable): >>> print(index, item, end='\n' if is_last else ', ')
"Returns a generator over iterable that tells whether the current item is the last one.\n Usage:\n >>> iterable = range(10)\n >>> for index, is_last, item in enum_mark_last(iterable):\n >>> print(index, item, end='\\n' if is_last else ', ')"
65
false
UAVCAN/pyuavcan
enum_mark_last
15,194
LDU_FT/Peter-Slump/django-dynamic-fixtures/get_fixture_node
LDU_FT
[ "<BEGIN>\n## `progress_callback`", "Callback to report progress", " :param str action:\n :param list node: app, module\n :param int | None elapsed_time:\n<END>", "<BEGIN>\n## `init_graph`", "Initialize graph\n Load all nodes and set dependencies.", " To avoid errors abou...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_fixture_node API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_fixture_node API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Get all fixtures in given app with given prefix. :param str app_label: App label :param str fixture_prefix: first part of the fixture name :return: list of found fixtures.
"Get all fixtures in given app with given prefix.\n :param str app_label: App label\n :param str fixture_prefix: first part of the fixture name\n :return: list of found fixtures."
22
false
Peter-Slump/django-dynamic-fixtures
get_fixture_node
15,195
LDU_FT/SpotlightData/preprocessing/remove_time_words
LDU_FT
[ "<BEGIN>\n## `correct_word`", "Finds all valid one and two letter corrections for word_string, returning the word\n with the highest relative probability as type str.\n<END>", "<BEGIN>\n## `find_candidates`", "Finds all potential words word_string could have intended to mean. If a word is not incorrectly\n...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the remove_time_words API. 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 remove_time_words API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Removes any word associated to time (day, week, month, etc.) within text_string and returns the new string as type str. Keyword argument: - text_string: string instance Exceptions raised: - InputError: occurs should a non-string argument be passed
"Removes any word associated to time (day, week, month, etc.) within text_string and returns the\n new string as type str.\n\n Keyword argument:\n\n - text_string: string instance\n\n Exceptions raised:\n\n - InputError: occurs should a non-string argument be passed"
106
false
SpotlightData/preprocessing
remove_time_words
15,196
LDU_FT/fudge-py/fudge/remember_order
LDU_FT
[ "<BEGIN>\n## `fmt_val`", "Format a value for inclusion in an \n informative text string.\n<END>", "<BEGIN>\n## `fmt_dict_vals`", "Returns list of key=val pairs formatted\n for inclusion in an informative text string.\n<END>", "<BEGIN>\n## `with_patched_object`", "Decorator that patches an object bef...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the remember_order API. 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 remember_order API. 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...
Verify that subsequent :func:`fudge.Fake.expects` are called in the right order. For example:: >>> import fudge >>> db = fudge.Fake('db').remember_order().expects('insert').expects('update') >>> db.update() Traceback (most recent call last): ... ...
"Verify that subsequent :func:`fudge.Fake.expects` are called in the right order.\n\n For example::\n\n >>> import fudge\n >>> db = fudge.Fake('db').remember_order().expects('insert').expects('update')\n >>> db.update()\n Traceback (most recent call last):\n ...
155
false
fudge-py/fudge
remember_order
15,197
LDU_FT/GiulioRossetti/dynetx/out_interactions_iter
LDU_FT
[ "<BEGIN>\n## `node_link_data`", "Return data in node-link format that is suitable for JSON serialization\n and use in Javascript documents.", " Parameters\n ----------\n G : DyNetx graph", " attrs : dict\n A dictionary that contains three keys 'id', 'source' and 'target'.\n The c...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the out_interactions_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. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the out_interactions_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. ...
Return an iterator over the out interactions present in a given snapshot. Edges are returned as tuples in the order (node, neighbor). Parameters ---------- nbunch : iterable container, optional (default= all nodes) A container of nodes. The container will be iterat...
"Return an iterator over the out interactions present in a given snapshot.\n\n Edges are returned as tuples\n in the order (node, neighbor).\n\n Parameters\n ----------\n nbunch : iterable container, optional (default= all nodes)\n A container of nodes. The container will ...
349
false
GiulioRossetti/dynetx
out_interactions_iter
15,198
LDU_FT/deathbeds/importnb/get_data
LDU_FT
[ "<BEGIN>\n## `get_data`", "Needs to return the string source for the module.\n<END>", "<BEGIN>\n## `loader`", "Create a lazy loader source file loader.\n<END>", "<BEGIN>\n## `load`", "Import a notebook as a module from a filename.", " dir: The directory to load the file from.\n main: Load ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_data API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_data API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
Needs to return the string source for the module.
"Needs to return the string source for the module."
16
false
deathbeds/importnb
get_data
15,199
LDU_FT/sprockets/sprockets-dynamodb/set_instrumentation_callback
LDU_FT
[ "<BEGIN>\n## `_on_dynamodb_exception`", "Dynamically handle DynamoDB exceptions, returning HTTP error\n responses.", " :param exceptions.DynamoDBException error:\n<END>", "<BEGIN>\n## `marshall`", "Marshall a `dict` into something DynamoDB likes.", " :param dict values: The values to mars...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_instrumentation_callback API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its concl...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_instrumentation_callback API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its concl...
Assign a method to invoke when a request has completed gathering measurements. :param method callback: The method to invoke
"Assign a method to invoke when a request has completed gathering\n measurements.\n\n :param method callback: The method to invoke"
86
false
sprockets/sprockets-dynamodb
set_instrumentation_callback
15,200
LDU_FT/CityOfZion/neo-python/ChangePassword
LDU_FT
[ "<BEGIN>\n## `Clone`", "Clone self.", " Returns:\n AccountState:\n<END>", "<BEGIN>\n## `FromReplica`", "Get AccountState object from a replica.\n Args:\n replica (obj): must have ScriptHash, IsFrozen, Votes and Balances members.", " Returns:\n AccountS...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the ChangePassword API. 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 ChangePassword API. 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...
Change the password used to protect the private key. Args: password_old (str): the current password used to encrypt the private key. password_new (str): the new to be used password to encrypt the private key. Returns: bool: whether the password has been changed
"Change the password used to protect the private key.\n\n Args:\n password_old (str): the current password used to encrypt the private key.\n password_new (str): the new to be used password to encrypt the private key.\n\n Returns:\n bool: whether the password has been chan...
962
false
CityOfZion/neo-python
ChangePassword
15,201
LDU_FT/tanghaibao/jcvi/index
LDU_FT
[ "<BEGIN>\n## `patience_sort`", "Patience sort an iterable, xs.", " This function generates a series of pairs (x, pile), where \"pile\"\n is the 0-based index of the pile \"x\" should be placed on top of.\n Elements of \"xs\" must be less-than comparable.\n<END>", "<BEGIN>\n## `longest_monotonic_subse...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the index API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the index API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
%prog index database.fasta ` Wrapper for `gmap_build`. Same interface.
"%prog index database.fasta\n`\n Wrapper for `gmap_build`. Same interface."
3,304
true
tanghaibao/jcvi
index
15,202
LDU_FT/honeynet/beeswarm/time_in_range
LDU_FT
[ "<BEGIN>\n## `setup_db`", "Sets up the database schema and adds defaults.\n :param connection_string: Database URL. e.g: sqlite:///filename.db\n This is usually taken from the config file.\n<END>", "<BEGIN>\n## `start_pty_request`", "Start a PTY - intended to run it a (green)th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the time_in_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 ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the time_in_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 ext...
Return true if current time is in the active range
"Return true if current time is in the active range"
112
false
honeynet/beeswarm
time_in_range
15,203
LDU_FT/fhs/pyhdf/read
LDU_FT
[ "<BEGIN>\n## `end`", "Close the V interface.", " Args::", " No argument", " Returns::", " None", " C library equivalent : Vend\n<END>", "<BEGIN>\n## `attach`", "Open an existing vgroup given its name or its reference\n number, or create a new vgroup, ret...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the read API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the read API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
Retrieve the values of a number of records, starting at the current record position. The current record position is advanced by the number of records read. Current position is 0 after "opening" the vdata with the attach() method. Args:: nRec number of records to read ...
"Retrieve the values of a number of records, starting\n at the current record position. The current record position\n is advanced by the number of records read. Current position\n is 0 after \"opening\" the vdata with the attach() method.\n\n Args::\n\n nRec number of records to ...
605
false
fhs/pyhdf
read
15,204
LDU_FT/aroberge/experimental/create_for
LDU_FT
[ "<BEGIN>\n## `start_console`", "Starts a console; modified from code.interact\n<END>", "<BEGIN>\n## `push`", "Transform and push a line to the interpreter.", " The line should not have a trailing newline; it may have\n internal newlines. The line is appended to a buffer and the\n inter...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_for API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_for API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
Create a new "for loop" line as a replacement for the original code.
"Create a new \"for loop\" line as a replacement for the original code."
54
false
aroberge/experimental
create_for
15,205
LDU_FT/joestump/python-oauth2/sign_request
LDU_FT
[ "<BEGIN>\n## `get_oauth_request`", "Return an OAuth Request object for the current request.\n<END>", "<BEGIN>\n## `get_client`", "Return the client from the OAuth parameters.\n<END>", "<BEGIN>\n## `is_valid`", "Returns a Client object if this is a valid OAuth request.\n<END>", "<BEGIN>\n## `build_xoauth...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the sign_request API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the sign_request API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
Set the signature parameter to the result of sign.
"Set the signature parameter to the result of sign."
35
false
joestump/python-oauth2
sign_request
15,206
LDU_FT/h2non/paco/series
LDU_FT
[ "<BEGIN>\n## `observe`", "Arguments:\n event (str): event to subscribe.\n fn (function|coroutinefunction): function to trigger.", " Raises:\n TypeError: if fn argument is not valid\n<END>", "<BEGIN>\n## `remove`", "Remove all the registered observers for the given eve...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the series API. 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 series API. 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 ...
Run the given coroutine functions in series, each one running once the previous execution has completed. If any coroutines raises an exception, no more coroutines are executed. Otherwise, the coroutines returned values will be returned as `list`. ``timeout`` can be used to control the maximum numb...
"Run the given coroutine functions in series, each one\n running once the previous execution has completed.\n\n If any coroutines raises an exception, no more\n coroutines are executed. Otherwise, the coroutines returned values\n will be returned as `list`.\n\n ``timeout`` can be used to control the maxi...
394
false
h2non/paco
series
15,207
LDU_FT/aws/chalice/remove_stage_from_deployed_values
LDU_FT
[ "<BEGIN>\n## `create_from_lambda_arn`", "Create a LogRetriever from a client and lambda arn.", " :type client: botocore.client.Logs\n :param client: A ``logs`` client.", " :type lambda_arn: str\n :param lambda_arn: The ARN of the lambda function.", " :return: An instance o...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the remove_stage_from_deployed_values 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 remove_stage_from_deployed_values API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its ...
Delete a top level key from the deployed JSON file.
"Delete a top level key from the deployed JSON file."
96
false
aws/chalice
remove_stage_from_deployed_values
15,208
LDU_FT/playpauseandstop/Flask-And-Redis/init_app
LDU_FT
[ "<BEGIN>\n## `get_app`", "Get current app from Flast stack to use.", " This will allow to ensure which Redis connection to be used when\n accessing Redis connection public methods via plugin.\n<END>", "<BEGIN>\n## `init_app`", "Actual method to read redis settings from app configuration, initi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the init_app API. 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 init_app API. 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...
Actual method to read redis settings from app configuration, initialize Redis connection and copy all public connection methods to current instance. :param app: :class:`flask.Flask` application instance. :param config_prefix: Config prefix to use. By default: ``REDIS``
"Actual method to read redis settings from app configuration, initialize\n Redis connection and copy all public connection methods to current\n instance.\n\n :param app: :class:`flask.Flask` application instance.\n :param config_prefix: Config prefix to use. By default: ``REDIS``"
14
false
playpauseandstop/Flask-And-Redis
init_app
15,209
LDU_FT/kytos/python-openflow/_update_length
LDU_FT
[ "<BEGIN>\n## `in_port`", "Retrieve the 'in_port' that generated the PacketIn.", " This method will look for the OXM_TLV with type OFPXMT_OFB_IN_PORT on\n the `oxm_match_fields` field from `match` field and return its value,\n if the OXM exists.", " Returns:\n The integer...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _update_length API. 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 _update_length API. 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...
Update length field. Update the oxm_length field with the packed payload length.
"Update length field.\n\n Update the oxm_length field with the packed payload length."
348
false
kytos/python-openflow
_update_length
15,210
LDU_FT/brendonh/pyth/format
LDU_FT
[ "<BEGIN>\n## `cleanParagraph`", "Compress text runs, remove whitespace at start and end,\n skip empty blocks, etc\n<END>", "<BEGIN>\n## `parse_css`", "Parse a css style sheet into the CSS object.", " For the moment this will only work for very simple css\n documents. It works by using ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the format API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the format API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
format a BeautifulSoup document This will transform the block elements content from multi-lines text into single line. This allow us to avoid having to deal with further text rendering once this step has been done.
"format a BeautifulSoup document\n\n This will transform the block elements content from\n multi-lines text into single line.\n\n This allow us to avoid having to deal with further text\n rendering once this step has been done."
34
false
brendonh/pyth
format
15,211
LDU_FT/zyga/libpci/lookup_subsystem_device_name
LDU_FT
[ "<BEGIN>\n## `Function`", "Decorator factory for creating callables for native functions.", " Decorator factory for constructing relatively-nicely-looking callables that\n call into existing native functions exposed from a dynamically-linkable\n library.", " :param library:\n The library to...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the lookup_subsystem_device_name API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its concl...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the lookup_subsystem_device_name API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its concl...
Lookup the name of a given subsystem device. :param vendor_id: PCI vendor identifier :ptype vendor_id: int :param device_id: PCI device identifier :ptype device_id: int :param subvendor_id: PCI subvendor identifier ...
"Lookup the name of a given subsystem device.\n\n :param vendor_id:\n PCI vendor identifier\n :ptype vendor_id:\n int\n :param device_id:\n PCI device identifier\n :ptype device_id:\n int\n :param subvendor_id:\n PCI subvendor ide...
29
false
zyga/libpci
lookup_subsystem_device_name
15,212
LDU_FT/Jahaja/psdash/_read
LDU_FT
[ "<BEGIN>\n## `_read`", "Reads and returns a buffer reversely from current file-pointer position.", " :rtype : str\n<END>", "<BEGIN>\n## `find`", "Returns the position of the first occurence of needle.\n If the needle was not found, -1 is returned.", " :rtype : int\n<END>", "<BEGIN>\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _read API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _read API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
Reads and returns a buffer reversely from current file-pointer position. :rtype : str
"Reads and returns a buffer reversely from current file-pointer position.\n\n :rtype : str"
14
false
Jahaja/psdash
_read
15,213
LDU_FT/lobocv/pyperform/validate
LDU_FT
[ "<BEGIN>\n## `validate`", "Execute the code once to get it's results (to be used in function validation). Compare the result to the\n first function in the group.\n<END>", "<BEGIN>\n## `summarize`", "Tabulate and write the results of ComparisonBenchmarks to a file or standard out.\n :param str g...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the validate API. 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 validate API. 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...
Execute the code once to get it's results (to be used in function validation). Compare the result to the first function in the group. :param benchmarks: list of benchmarks to validate.
"Execute the code once to get it's results (to be used in function validation). Compare the result to the\n first function in the group.\n :param benchmarks: list of benchmarks to validate."
30
false
lobocv/pyperform
validate
15,214
LDU_FT/hobson/pug-dj/try_convert
LDU_FT
[ "<BEGIN>\n## `instance`", "Creates an EC2 instance from an Ubuntu AMI and configures it as a Django server\n with nginx + gunicorn\n<END>", "<BEGIN>\n## `_run_task`", "Tasks a task from tasks.py and runs through the commands on the server\n<END>", "<BEGIN>\n## `_put_template`", "Same as _put() but it l...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the try_convert API. 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 try_convert API. 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...
Convert a str into more useful python type (datetime, float, int, bool), if possible Some precision may be lost (e.g. Decimal converted to a float) >>> try_convert('false') False >>> try_convert('123456789.123456') 123456789.123456 >>> try_convert('1234') 1234 >>> try_convert(1234) ...
"Convert a str into more useful python type (datetime, float, int, bool), if possible\n\n Some precision may be lost (e.g. Decimal converted to a float)\n\n >>> try_convert('false')\n False\n >>> try_convert('123456789.123456')\n 123456789.123456\n >>> try_convert('1234')\n 1234\n >>> try_conver...
300
false
hobson/pug-dj
try_convert
15,215
LDU_FT/TadLeonard/tfatool/config
LDU_FT
[ "<BEGIN>\n## `up_down_by_arrival`", "Monitors a local directory and a remote FlashAir directory and\n generates sets of new files to be uploaded or downloaded.\n Sets to upload are generated in a tuple\n like (Direction.up, {...}), while download sets to download\n are generated in a tuple like (Direc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the 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 extracted ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the 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 extracted ...
Takes a dictionary of {Config.key: value} and returns a dictionary of processed keys and values to be used in the construction of a POST request to FlashAir's config.cgi
"Takes a dictionary of {Config.key: value} and\n returns a dictionary of processed keys and values to be used in the\n construction of a POST request to FlashAir's config.cgi"
34
false
TadLeonard/tfatool
config
15,216
LDU_FT/PMBio/limix-backup/predictPhenos
LDU_FT
[ "<BEGIN>\n## `PCA`", "run PCA, retrieving the first (components) principle components\n\treturn [s0, eig, w0]\n\ts0: factors\n\tw0: weights\n<END>", "<BEGIN>\n## `PC_varExplained`", "Run PCA and calculate the cumulative fraction of variance\n Args:\n Y: phenotype values\n standardize: if True...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the predictPhenos API. 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 predictPhenos API. 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...
predict the conditional mean (BLUP) Args: use_fixed: list of fixed effect indeces to use for predictions use_random: list of random effect indeces to use for predictions Returns: predictions (BLUP)
"predict the conditional mean (BLUP)\n\n Args:\n use_fixed: list of fixed effect indeces to use for predictions\n use_random: list of random effect indeces to use for predictions\n Returns:\n predictions (BLUP)"
428
false
PMBio/limix-backup
predictPhenos
15,217
LDU_FT/polyledger/lattice/to_affine
LDU_FT
[ "<BEGIN>\n## `inverse`", "Returns the modular inverse of an integer with respect to the field\n characteristic, P.", " Use the Extended Euclidean Algorithm:\n https://en.wikipedia.org/wiki/Extended_Euclidean_algorithm\n<END>", "<BEGIN>\n## `is_on_curve`", "Checks whether a point is on t...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the to_affine API. 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 to_affine API. 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...
Converts this point to an affine representation. Returns: AffinePoint: The affine reprsentation.
"Converts this point to an affine representation.\n\n Returns:\n AffinePoint: The affine reprsentation."
44
false
polyledger/lattice
to_affine
15,218
LDU_FT/mardiros/pyshop/by_name
LDU_FT
[ "<BEGIN>\n## `update_model`", "trivial implementation for simple data in the form,\n using the model prefix.\n<END>", "<BEGIN>\n## `locale_negotiator`", "Locale negotiator base on the `Accept-Language` header\n<END>", "<BEGIN>\n## `main`", "Get a PyShop WSGI application configured with settings.\n<...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the by_name API. 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 by_name API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
Get a package from a given name. :param session: SQLAlchemy session :type session: :class:`sqlalchemy.Session` :param name: name of the package :type name: `unicode :return: package instance :rtype: :class:`pyshop.models.Package`
"Get a package from a given name.\n\n :param session: SQLAlchemy session\n :type session: :class:`sqlalchemy.Session`\n\n :param name: name of the package\n :type name: `unicode\n\n :return: package instance\n :rtype: :class:`pyshop.models.Package`"
135
false
mardiros/pyshop
by_name
15,219
LDU_FT/inspirehep/inspire-schemas/set_uid
LDU_FT
[ "<BEGIN>\n## `filter_empty_parameters`", "Decorator that is filtering empty parameters.", " :param func: function that you want wrapping\n :type func: function\n<END>", "<BEGIN>\n## `author_id_normalize_and_schema`", "Detect and normalize an author UID schema.", " Args:\n uid (string): a U...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_uid API. 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 set_uid API. 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...
Set a unique ID. If a UID of a given schema already exists in a record it will be overwritten, otherwise it will be appended to the record. Args: uid (string): unique identifier. schema (Optional[string]): schema of the unique identifier. If ``None``, th...
"Set a unique ID.\n\n If a UID of a given schema already exists in a record it will\n be overwritten, otherwise it will be appended to the record.\n\n Args:\n uid (string): unique identifier.\n schema (Optional[string]): schema of the unique identifier. If\n ``N...
290
false
inspirehep/inspire-schemas
set_uid
15,220
LDU_FT/hubo1016/aiogrpc/future
LDU_FT
[ "<BEGIN>\n## `channel_ready_future`", "Creates a Future that tracks when a Channel is ready.", " Cancelling the Future does not affect the channel's state machine.\n It merely decouples the Future from channel state machine.", " Args:\n channel: A Channel object.", " Returns:\n A Future object tha...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the future API. 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 future API. 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 ...
Asynchronously invokes the underlying RPC. Args: request: The request value for the RPC. timeout: An optional duration of time in seconds to allow for the RPC. metadata: Optional :term:`metadata` to be transmitted to the service-side of the RPC. credentials: An optional CallCredenti...
"Asynchronously invokes the underlying RPC.\n\n Args:\n request: The request value for the RPC.\n timeout: An optional duration of time in seconds to allow for the RPC.\n metadata: Optional :term:`metadata` to be transmitted to the\n service-side of the RPC.\n credentials: An optional Call...
31
false
hubo1016/aiogrpc
future
15,221
LDU_FT/ReFirmLabs/binwalk/_generate_regex
LDU_FT
[ "<BEGIN>\n## `process_kwargs`", "Convenience wrapper around binwalk.core.module.Modules.kwargs.", " @obj - The class object (an instance of a sub-class of binwalk.core.module.Module).\n @kwargs - The kwargs provided to the object's __init__ method.", " Returns None.\n<END>", "<BEGIN>\n## `show_h...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _generate_regex API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _generate_regex API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
Generates a regular expression from the magic bytes of a signature. The regex is used by Magic._analyze. @line - The first SignatureLine object of the signature. Returns a compile regular expression.
"Generates a regular expression from the magic bytes of a signature.\n The regex is used by Magic._analyze.\n\n @line - The first SignatureLine object of the signature.\n\n Returns a compile regular expression."
211
false
ReFirmLabs/binwalk
_generate_regex
15,222
LDU_FT/ramses-tech/nefertari/_get_create_update_kwargs
LDU_FT
[ "<BEGIN>\n## `_import_public_names`", "Import public names from module into this module, like import *\n<END>", "<BEGIN>\n## `encrypt_password`", "Crypt :new_value: if it's not crypted yet.\n<END>", "<BEGIN>\n## `create_apikey_model`", "Generate ApiKey model class and connect it with :user_model:.", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_create_update_kwargs 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 _get_create_update_kwargs API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi...
Get kwargs common to create, update, replace.
"Get kwargs common to create, update, replace."
226
false
ramses-tech/nefertari
_get_create_update_kwargs
15,223
LDU_FT/steinitzu/giveme/register
LDU_FT
[ "<BEGIN>\n## `cache`", "Store an instance of dependency in the cache.\n Does nothing if dependency is NOT a threadlocal\n or a singleton. ", " :param dependency: The ``Dependency`` to cache\n :param value: The value to cache for dependency", " :type dependency: Dependency\n...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the register API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the register API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
Add an object to the injector's registry. Can be used as a decorator like so: >>> @injector.register ... def my_dependency(): ... or a plain function call by passing in a callable injector.register(my_dependency) :param function: The function or callable to ad...
"Add an object to the injector's registry.\n\n Can be used as a decorator like so:\n \n >>> @injector.register\n ... def my_dependency(): ...\n\n or a plain function call by passing in a callable\n injector.register(my_dependency)\n\n :param function: The function or cal...
42
false
steinitzu/giveme
register
15,224
LDU_FT/RealTimeWeb/datasets/getrdfdata
LDU_FT
[ "<BEGIN>\n## `_parse_int`", "Attempt to cast *value* into an integer, returning *default* if it fails.\n<END>", "<BEGIN>\n## `_parse_float`", "Attempt to cast *value* into a float, returning *default* if it fails.\n<END>", "<BEGIN>\n## `_parse_type`", "Attempt to cast *value* into *type_func*, returning *...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the getrdfdata API. 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 getrdfdata API. 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...
Downloads Project Gutenberg RDF catalog. Yields: xml.etree.ElementTree.Element: An etext meta-data definition.
"Downloads Project Gutenberg RDF catalog.\n\tYields:\n\t\txml.etree.ElementTree.Element: An etext meta-data definition."
76
false
RealTimeWeb/datasets
getrdfdata
15,225
LDU_FT/mattjj/pybasicbayes/BIC
LDU_FT
[ "<BEGIN>\n## `nice_indices`", "takes an array like [1,1,5,5,5,999,1,1]\n and maps to something like [0,0,1,1,1,2,0,0]\n modifies original in place as well as returns a ref\n<END>", "<BEGIN>\n## `principal_angle`", "Find the principal angle between two subspaces\n spanned by columns of A and B\n<END>"...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the BIC API. 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 BIC API. 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...
BIC on the passed data. If passed data is None (default), calculates BIC on the model's assigned data.
"BIC on the passed data.\n If passed data is None (default), calculates BIC on the model's assigned data."
16
false
mattjj/pybasicbayes
BIC
15,226
LDU_FT/DinoTools/python-overpy/from_xml
LDU_FT
[ "<BEGIN>\n## `_handle_remark_msg`", "Try to parse the message provided with the remark tag or element.", " :param str msg: The message\n :raises overpy.exception.OverpassRuntimeError: If message starts with 'runtime error:'\n :raises overpy.exception.OverpassRuntimeRemark: If message starts...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the from_xml API. 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 from_xml API. 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...
Create a new instance and load data from xml data or object. .. note:: If parser is set to None, the functions tries to find the best parse. By default the SAX parser is chosen if a string is provided as data. The parser is set to DOM if an xml.etree.ElementTree.Elem...
"Create a new instance and load data from xml data or object.\n \n .. note::\n If parser is set to None, the functions tries to find the best parse.\n By default the SAX parser is chosen if a string is provided as data.\n The parser is set to DOM if an xml.etree.ElementTre...
119
false
DinoTools/python-overpy
from_xml
15,227
LDU_FT/HPCC-Cloud-Computing/CAL/get
LDU_FT
[ "<BEGIN>\n## `delete`", "This is bad delete function\n because one vpc can have more than one subnet.\n It is Ok if user only use CAL for manage cloud resource\n We will update ASAP.\n<END>", "<BEGIN>\n## `create_container`", "Create container", " :param container(string): contai...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
Get info of a network Get info of a specific netowrk with id on special cloud with: :Param req :Type object Request
"Get info of a network\n Get info of a specific netowrk with id on special cloud\n with:\n :Param req\n :Type object Request"
68
false
HPCC-Cloud-Computing/CAL
get
15,228
LDU_FT/carta/ldap_tools/create
LDU_FT
[ "<BEGIN>\n## `create`", "Create an LDAP Group.", " Raises:\n ldap3.core.exceptions.LDAPNoSuchObjectResult:\n an object involved with the request is missing", " ldap3.core.exceptions.LDAPEntryAlreadyExistsResult:\n the entity being created already exis...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Create an LDAP Group. Raises: ldap3.core.exceptions.LDAPNoSuchObjectResult: an object involved with the request is missing ldap3.core.exceptions.LDAPEntryAlreadyExistsResult: the entity being created already exists
"Create an LDAP Group.\n\n Raises:\n ldap3.core.exceptions.LDAPNoSuchObjectResult:\n an object involved with the request is missing\n\n ldap3.core.exceptions.LDAPEntryAlreadyExistsResult:\n the entity being created already exists"
65
false
carta/ldap_tools
create
15,229
LDU_FT/mozilla/elasticutils/_combine
LDU_FT
[ "<BEGIN>\n## `chunked`", "Returns chunks of n length of iterable", " If len(iterable) % n != 0, then the last chunk will have length\n less than n.", " Example:", " >>> chunked([1, 2, 3, 4, 5], 2)\n [(1, 2), (3, 4), (5,)]\n<END>", "<BEGIN>\n## `format_explanation`", "Return explanation in...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _combine API. 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 _combine API. 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...
OR and AND will create a new F, with the filters from both F objects combined with the connector `conn`.
"OR and AND will create a new F, with the filters from both F\n objects combined with the connector `conn`."
208
false
mozilla/elasticutils
_combine
15,230
LDU_FT/pri22296/beautifultable/get_column
LDU_FT
[ "<BEGIN>\n## `wrap`", "Returns a partition of the string based on `width`\n<END>", "<BEGIN>\n## `max_table_width`", "get/set the maximum width of the table.", " The width of the table is guaranteed to not exceed this value. If it\n is not possible to print a given table with the width provided...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_column API. 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_column API. 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 an iterator to a column. Parameters ---------- key : int, str index of the column, or the header of the column. If index is specified, then normal list rules apply. Raises ------ TypeError: If key is not of type `int`, or `str`...
"Return an iterator to a column.\n\n Parameters\n ----------\n key : int, str\n index of the column, or the header of the column.\n If index is specified, then normal list rules apply.\n\n Raises\n ------\n TypeError:\n If key is not of type `in...
96
false
pri22296/beautifultable
get_column
15,231
LDU_FT/OnroerendErfgoed/oe_utils/get_for_update
LDU_FT
[ "<BEGIN>\n## `after_commit_listener`", "Processing the changes.\n All new or changed items are now indexed. All deleted items are now removed from the index.\n<END>", "<BEGIN>\n## `_queue_job`", "creates a new job on the queue\n :param redis: redis\n :param delegate: method to be ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_for_update API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_for_update API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
Retrieve an object by its object_id Does a select for update on the row, results in row level lock for the duration of the transaction :param: object_id: the objects id. :param: cls: the objects class, if None use the default class from the datamanager :return: the requested object or N...
"Retrieve an object by its object_id\n Does a select for update on the row, results in row level lock for the duration of the transaction\n\n :param: object_id: the objects id.\n :param: cls: the objects class, if None use the default class from the datamanager\n :return: the requested objec...
100
false
OnroerendErfgoed/oe_utils
get_for_update
15,232
LDU_FT/maweigert/gputools/_tv2
LDU_FT
[ "<BEGIN>\n## `gaussian_filter`", "blurs data with a gaussian kernel of given sigmas", " Parameters\n ----------\n data: ndarray\n 2 or 3 dimensional array \n sigma: scalar or tuple\n the sigma of the gaussian \n truncate: float \n truncate the kernel after truncate*sigma \n...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _tv2 API. 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 _tv2 API. 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...
chambolles tv regularized denoising weight should be around 2+1.5*noise_sigma
"chambolles tv regularized denoising\n\n weight should be around 2+1.5*noise_sigma"
199
false
maweigert/gputools
_tv2
15,233
LDU_FT/haikuginger/beekeeper/mimetype
LDU_FT
[ "<BEGIN>\n## `merge`", "Take two copies of a variable and reconcile them. var1 is assumed\n to be the higher-level variable, and so will be overridden by var2\n where such becomes necessary.\n<END>", "<BEGIN>\n## `has_value_of_type`", "Does the variable both have the given type and\n have a varia...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the mimetype API. 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 mimetype API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
Get the Content-Type header from the response. Strip the ";charset=xxxxx" portion if necessary. If we can't find it, use the predefined format.
"Get the Content-Type header from the response. Strip\n the \";charset=xxxxx\" portion if necessary. If we can't\n find it, use the predefined format."
66
false
haikuginger/beekeeper
mimetype
15,234
LDU_FT/CygnusNetworks/pypureomapi/consume
LDU_FT
[ "<BEGIN>\n## `parse_chain`", "Creates a new parser that executes the passed parsers (args) with the\n\tprevious results and yields a tuple of the results.", "\t>>> list(parse_chain(lambda: (None, 1), lambda one: (None, 2)))\n\t[None, None, (1, 2)]", "\t@param args: parsers\n\t@returns: parser\n<END>", "<BEG...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the consume API. 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 consume API. 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...
>>> OutBuffer().add(b"spam").consume(2).getvalue() == b"am" True @type length: int @returns: self
">>> OutBuffer().add(b\"spam\").consume(2).getvalue() == b\"am\"\n\t\tTrue\n\n\t\t@type length: int\n\t\t@returns: self"
114
false
CygnusNetworks/pypureomapi
consume
15,235
LDU_FT/mozillazg/python-pinyin/train
LDU_FT
[ "<BEGIN>\n## `convert_zero_consonant`", "零声母转换,还原原始的韵母", " i行的韵母,前面没有声母的时候,写成yi(衣),ya(呀),ye(耶),yao(腰),\n you(忧),yan(烟),yin(因),yang(央),ying(英),yong(雍)。", " u行的韵母,前面没有声母的时候,写成wu(乌),wa(蛙),wo(窝),wai(歪),\n wei(威),wan(弯),wen(温),wang(汪),weng(翁)。", " ü行的韵母,前面没有声母的时候,写成yu(迂),yue(约),yuan(冤),\n yun(晕...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the train API. 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 train API. 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...
更新 prefix set :param word_s: 词语库列表 :type word_s: iterable :return: None
"更新 prefix set\n\n :param word_s: 词语库列表\n :type word_s: iterable\n :return: None"
75
false
mozillazg/python-pinyin
train
15,236
LDU_FT/CS207-Final-Project-Group-10/cs207-FinalProject/_forward_mode
LDU_FT
[ "<BEGIN>\n## `configuration_ES`", "Get the positions and velocities of the earth and sun from date t0 to t1.\n Returned as a tuple q, v\n q: Nx3 array of positions (x, y, z) in the J2000.0 coordinate frame.\n<END>", "<BEGIN>\n## `plot_ES`", "Plot the earth-sun orbits.\n q is a Tx6 array. T indexes t...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _forward_mode API. 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 _forward_mode API. 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...
Forward mode differentiation for a constant
"Forward mode differentiation for a constant"
92
false
CS207-Final-Project-Group-10/cs207-FinalProject
_forward_mode
15,237
LDU_FT/andycasey/ads/bibtex
LDU_FT
[ "<BEGIN>\n## `execute`", "Execute the http request to the export service\n :return ads-classic formatted export string\n<END>", "<BEGIN>\n## `_get_field`", "Queries the api for a single field for the record by `id`.\n This method should only be called indirectly by cached properties.\n :p...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the bibtex API. 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 bibtex API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Return a BiBTeX entry for the current article.
"Return a BiBTeX entry for the current article."
30
false
andycasey/ads
bibtex
15,238
LDU_FT/pyroscope/auvyon/spectrogram_image
LDU_FT
[ "<BEGIN>\n## `extract_wav`", "Get LPCM 16bit audio stream from mediafile.", " If `target` is a directory, create a .wav with the same basename as the input.\n If target is empty, write to the directory of the source file. Otherwise, use it \n directly as the target filename.\n<END>", "<BE...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the spectrogram_image API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the spectrogram_image API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Create spectrogram image from audio data. Return path to created image file.
"Create spectrogram image from audio data.\n Return path to created image file."
11
false
pyroscope/auvyon
spectrogram_image
15,239
LDU_FT/BernardFW/bernard/_rank_text
LDU_FT
[ "<BEGIN>\n## `_build_stack`", "Generates the stack of functions to call. It looks at the ordered list\n of all middlewares and only keeps those which have the method we're\n trying to call.\n<END>", "<BEGIN>\n## `instance`", "Creates, initializes and returns a unique MiddlewareManager instance.\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _rank_text API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _rank_text API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
Try to match the TextLayer with choice's intents.
"Try to match the TextLayer with choice's intents."
427
false
BernardFW/bernard
_rank_text
15,240
LDU_FT/mikusjelly/apkutils/_section_from_spec
LDU_FT
[ "<BEGIN>\n## `skipNullPadding`", "不断地寻找 CHUNK_STRINGPOOL_TYPE,目前暂时没有遇到这种样本。\n<END>", "<BEGIN>\n## `is_zipfile`", "Quickly see if a file is a ZIP file by checking the magic number.", " The filename argument may be a file or file-like object too.\n<END>", "<BEGIN>\n## `readline`", "Read and return a li...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _section_from_spec 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 _section_from_spec 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...
Retrieve a section given a "spec" (either number or name). Return None if no such section exists in the file.
"Retrieve a section given a \"spec\" (either number or name).\r\n Return None if no such section exists in the file."
48
false
mikusjelly/apkutils
_section_from_spec
15,241
LDU_FT/srsudar/eg/get_formatted_contents
LDU_FT
[ "<BEGIN>\n## `inform_if_paths_invalid`", "If egrc_path, examples_dir, or custom_dir is truthy and debug is True,\n informs the user that a path is not set.", " This should be used to verify input arguments from the command line.\n<END>", "<BEGIN>\n## `get_egrc_config`", "Return a Config namedtuple bas...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_formatted_contents API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_formatted_contents API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
Apply formatting to raw_contents and return the result. Formatting is applied in the order: color, squeeze, subs.
"Apply formatting to raw_contents and return the result. Formatting is\n applied in the order: color, squeeze, subs."
77
false
srsudar/eg
get_formatted_contents
15,242
LDU_FT/wikimedia/ores/calculate_statistics
LDU_FT
[ "<BEGIN>\n## `redis_from_url`", "Converts a redis URL used by celery into a `redis.Redis` object.\n<END>", "<BEGIN>\n## `process_model_scores`", "Generates a score map for a set of models based on a `root_cache`.\n This method performs no substantial IO, but may incur substantial CPU\n usage.", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the calculate_statistics 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 calculate_statistics API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Jam some data through to generate statistics
"Jam some data through to generate statistics"
52
false
wikimedia/ores
calculate_statistics
15,243
LDU_FT/thespacedoctor/frankenstein/_populate_dynamic_placeholders
LDU_FT
[ "<BEGIN>\n## `_copy_folder_and_get_directory_listings`", "*copy template folder to /tmp and get directory listings*\n<END>", "<BEGIN>\n## `_collect_placeholders_required`", "*collect placeholders required from filename etc*\n<END>", "<BEGIN>\n## `_join_all_filenames_and_text`", "*join all file names, drie...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _populate_dynamic_placeholders API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its con...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _populate_dynamic_placeholders API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its con...
*populate dynamic placeholders - times etc*
"*populate dynamic placeholders - times etc*"
20
false
thespacedoctor/frankenstein
_populate_dynamic_placeholders
15,244
LDU_FT/metachris/RPIO/_threaded_callback
LDU_FT
[ "<BEGIN>\n## `add_tcp_callback`", "Adds a unix socket server callback, which will be invoked when values\n arrive from a connected socket client. The callback must accept two\n parameters, eg. ``def callback(socket, msg)``.\n<END>", "<BEGIN>\n## `add_interrupt_callback`", "Add a callback to be executed ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _threaded_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. Th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _threaded_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. Th...
Internal wrapper to start a callback in threaded mode. Using the daemon mode to not block the main thread from exiting.
"Internal wrapper to start a callback in threaded mode. Using the\n daemon mode to not block the main thread from exiting."
38
false
metachris/RPIO
_threaded_callback
15,245
LDU_FT/alecthomas/voluptuous/_compile_set
LDU_FT
[ "<BEGIN>\n## `truth`", "Convenience decorator to convert truth functions into validators.", " >>> @truth\n ... def isdir(v):\n ... return os.path.isdir(v)\n >>> validate = Schema(isdir)\n >>> validate('/')\n '/'\n >>> with raises(MultipleInvalid, 'not a valid v...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _compile_set API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _compile_set API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
Validate a set. A set is an unordered collection of unique elements. >>> validator = Schema({int}) >>> validator(set([42])) == set([42]) True >>> with raises(er.Invalid, 'expected a set'): ... validator(42) >>> with raises(er.MultipleInvalid, 'invalid value in...
"Validate a set.\n\n A set is an unordered collection of unique elements.\n\n >>> validator = Schema({int})\n >>> validator(set([42])) == set([42])\n True\n >>> with raises(er.Invalid, 'expected a set'):\n ... validator(42)\n >>> with raises(er.MultipleInvalid, 'invali...
98
false
alecthomas/voluptuous
_compile_set
15,246
LDU_FT/SteveMcGrath/pySecurityCenter/asset_update
LDU_FT
[ "<BEGIN>\n## `gen_csv`", "csv SecurityCenterObj, AssetListName, CSVFields, EmailAddress\n<END>", "<BEGIN>\n## `login`", "Logs the user into SecurityCenter and stores the needed token and cookies.\n<END>", "<BEGIN>\n## `analysis`", "Analysis\n A thin wrapper to handle vuln/event/mobile/log analysis ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the asset_update API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the asset_update API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
asset_update asset_id, [name], [description], [visibility], [group], [users], [ips], [rules], [dns] The Asset Update function will update the Asset ID defined with the values that have been specified. Only those specified will be updated as a query is first made to pre-p...
"asset_update asset_id, [name], [description], [visibility], [group],\n [users], [ips], [rules], [dns]\n The Asset Update function will update the Asset ID defined with the\n values that have been specified. Only those specified will be updated\n as a query is first made to ...
120
false
SteveMcGrath/pySecurityCenter
asset_update
15,247
LDU_FT/ND-CSE-30151/tock/has_stack
LDU_FT
[ "<BEGIN>\n## `match`", "Returns true iff self (as a pattern) matches other (as a\n configuration). Note that this is asymmetric: other is allowed\n to have symbols that aren't found in self.\n<END>", "<BEGIN>\n## `has_cell`", "Tests whether store `s` is a cell, that is, it uses exactly one\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the has_stack API. 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 has_stack API. 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...
Tests whether store `s` is a stack, that is, it never moves from position 0.
"Tests whether store `s` is a stack, that is, it never moves from\n position 0."
38
false
ND-CSE-30151/tock
has_stack
15,248
LDU_FT/zimeon/iiif/file_type
LDU_FT
[ "<BEGIN>\n## `do_first`", "Load generator, set size.", " We take the generator module name from self.srcfile so that\n this manipulator will work with different generators in a\n similar way to how the ordinary generators work with\n different images\n<END>", "<BEGIN>\n## `main`", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the file_type API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the file_type API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
Use python-magic to determine file type. Returns 'png' or 'jpg' on success, nothing on failure.
"Use python-magic to determine file type.\n\n Returns 'png' or 'jpg' on success, nothing on failure."
333
false
zimeon/iiif
file_type
15,249
LDU_FT/nlppln/nlppln/get_files
LDU_FT
[ "<BEGIN>\n## `parse_frog`", "Interpret the output of the frog parser.\n Input should be an iterable of lines (i.e. the output of call_frog)\n Result is a sequence of dicts representing the tokens\n<END>", "<BEGIN>\n## `frog_to_saf`", "Convert frog tokens into a new SAF document\n<END>", "<BEGIN>\n## `...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_files API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_files API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
Return a list of all files in the directory.
"Return a list of all files in the directory."
23
false
nlppln/nlppln
get_files
15,250
LDU_FT/mar10/pyftpsync/get_credentials_for_url
LDU_FT
[ "<BEGIN>\n## `match_path`", "Return True if `path` matches `match` and `exclude` options.\n<END>", "<BEGIN>\n## `_compare_file`", "Byte compare two files (early out on first difference).\n<END>", "<BEGIN>\n## `_tick`", "Write progress info and move cursor to beginning of line.\n<END>", "<BEGIN>\n## `_sy...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_credentials_for_url API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_credentials_for_url API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion...
Lookup credentials for a given target in keyring and .netrc. Optionally prompts for credentials if not found. Returns: 2-tuple (username, password) or None
"Lookup credentials for a given target in keyring and .netrc.\n\n Optionally prompts for credentials if not found.\n\n Returns:\n 2-tuple (username, password) or None"
122
false
mar10/pyftpsync
get_credentials_for_url
15,251
LDU_FT/klingtnet/sblgntparser/find
LDU_FT
[ "<BEGIN>\n## `filelist`", "Returns a list of all the files contained in the folder specified by `folderpath`.\n To filter the files by extension simply add a list containing all the extension with `.` as the second argument.\n If `flat` is False, then the Path objects are returned.\n<END>", "<BEGIN>\n## `...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
Returns a word instance for the hit if the "sought" word is found in the text. Per default the "lemma" view of the words is compared. You can specify the desired view with the optional "view" option.
"Returns a word instance for the hit if the \"sought\" word is found in the text.\n Per default the \"lemma\" view of the words is compared.\n You can specify the desired view with the optional \"view\" option."
16
false
klingtnet/sblgntparser
find
15,252
LDU_FT/matthieugouel/gibica/statement
LDU_FT
[ "<BEGIN>\n## `append_scope`", "Create a new scope in the current frame.\n<END>", "<BEGIN>\n## `pop_scope`", "Delete the current scope in the current scope.\n<END>", "<BEGIN>\n## `visit`", "Visit the right method of the child class according to the node.\n<END>", "<BEGIN>\n## `peek`", "Get the next cha...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the statement API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the statement API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
statement: function_declaration | variable_declaration | expression_statement | if_statement | while_statement | jump_statement
"statement: function_declaration\n | variable_declaration\n | expression_statement\n | if_statement\n | while_statement\n | jump_statement"
56
false
matthieugouel/gibica
statement
15,253
LDU_FT/alfred82santa/dirty-models/reset_attr_by_path
LDU_FT
[ "<BEGIN>\n## `recover_model_from_data`", "Function to reconstruct a model from DirtyModel basic information: original data, the modified and deleted\n fields.\n Necessary for pickle an object\n<END>", "<BEGIN>\n## `recover_dynamic_model_from_data`", "Function to reconstruct a model from DirtyModel basic...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the reset_attr_by_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. Th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the reset_attr_by_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. Th...
Function for restoring a field specifying the path in the whole model as described in :func:`dirty:models.models.BaseModel.perform_function_by_path`
"Function for restoring a field specifying the path in the whole model as described\n in :func:`dirty:models.models.BaseModel.perform_function_by_path`"
86
false
alfred82santa/dirty-models
reset_attr_by_path
15,254
LDU_FT/adafruit/Adafruit_Python_LED_Backpack/print_float
LDU_FT
[ "<BEGIN>\n## `set_pixel`", "Set pixel at position x, y to the given value. X and Y should be values\n of 0 to 8. Value should be OFF, GREEN, RED, or YELLOW.\n<END>", "<BEGIN>\n## `set_image`", "Set display buffer to Python Image Library image. Red pixels (r=255,\n g=0, b=0) will map to red LE...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the print_float API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the print_float API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
Print a numeric value to the display. If value is negative it will be printed with a leading minus sign. Decimal digits is the desired number of digits after the decimal point.
"Print a numeric value to the display. If value is negative\n it will be printed with a leading minus sign. Decimal digits is the\n desired number of digits after the decimal point."
57
false
adafruit/Adafruit_Python_LED_Backpack
print_float
15,255
LDU_FT/coveralls-clients/coveralls-python/debug_bad_encoding
LDU_FT
[ "<BEGIN>\n## `report`", "Generate a part of json report for coveralls", " `morfs` is a list of modules or filenames.\n `outfile` is a file object to write the json to.\n<END>", "<BEGIN>\n## `get_arcs`", "Hit stats for each branch.", " Returns a flat list where every four values repres...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the debug_bad_encoding 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 debug_bad_encoding 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...
Let's try to help user figure out what is at fault.
"Let's try to help user figure out what is at fault."
16
false
coveralls-clients/coveralls-python
debug_bad_encoding
15,256
LDU_FT/uber/rides-python-sdk/_extract_query
LDU_FT
[ "<BEGIN>\n## `connect`", "Connect controller to handle token exchange and query Uber API.\n<END>", "<BEGIN>\n## `_adapt_response`", "Convert error responses to standardized ErrorDetails.\n<END>", "<BEGIN>\n## `_adapt_response`", "Convert various error responses to standardized ErrorDetails.\n<END>", "<B...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _extract_query API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _extract_query API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
Extract query parameters from a url. Parameters redirect_url (str) The full URL that the Uber server redirected to after the user authorized your app. Returns (dict) A dictionary of query parameters.
"Extract query parameters from a url.\n\n Parameters\n redirect_url (str)\n The full URL that the Uber server redirected to after\n the user authorized your app.\n\n Returns\n (dict)\n A dictionary of query parameters."
194
false
uber/rides-python-sdk
_extract_query
15,257
LDU_FT/pneff/wsgiservice/raise_501
LDU_FT
[ "<BEGIN>\n## `raise_201`", "Abort the current request with a 201 (Created) response code. Sets the\n Location header correctly. If the location does not start with a slash,\n the path of the current request is prepended.", " :param instance: Resource instance (used to access the response)\n :type in...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the raise_501 API. 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 raise_501 API. 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...
Abort the current request with a 501 (Not Implemented) response code. Sets the ``Allow`` response header to the return value of the :func:`Resource.get_allowed_methods` function. :param instance: Resource instance (used to access the response) :type instance: :class:`webob.resource.Resource` :raise...
"Abort the current request with a 501 (Not Implemented) response code.\n Sets the ``Allow`` response header to the return value of the\n :func:`Resource.get_allowed_methods` function.\n\n :param instance: Resource instance (used to access the response)\n :type instance: :class:`webob.resource.Resource`\n ...
156
false
pneff/wsgiservice
raise_501
15,258
LDU_FT/corpusops/pdbclone/set_until
LDU_FT
[ "<BEGIN>\n## `parse_gdb_version`", "r\"\"\"Parse the gdb version from the gdb header.", " From GNU coding standards: the version starts after the last space of the\n first line.", " >>> DOCTEST_GDB_VERSIONS = [\n ... r'~\"GNU gdb (GDB) 7.5.1\\n\"',\n ... r'~\"GNU gdb (Sourcery CodeBench Lite 20...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_until API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_until API. 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...
Stop when the current line number in frame is greater than lineno or when returning from frame.
"Stop when the current line number in frame is greater than lineno or\n when returning from frame."
129
false
corpusops/pdbclone
set_until
15,259
LDU_FT/polyaxon/hestia/extract_datetime_hour
LDU_FT
[ "<BEGIN>\n## `format_date`", "Creates a string representing the date information provided by the\n given `timestamp` object.\n<END>", "<BEGIN>\n## `format_datetime`", "Creates a string representing the date and time information provided by\n the given `timestamp` object.\n<END>", "<BEGIN>\n## ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the extract_datetime_hour API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the extract_datetime_hour API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Tries to extract a `datetime` object from the given string, including only hours. Raises `DateTimeFormatterException` if the extraction fails.
"Tries to extract a `datetime` object from the given string, including only hours.\n\n Raises `DateTimeFormatterException` if the extraction fails."
42
false
polyaxon/hestia
extract_datetime_hour
15,260
LDU_FT/omederos/pyspinner/_choices
LDU_FT
[ "<BEGIN>\n## `override_params`", "Override some character settings", " @type opening_char: str\n @param opening_char: Opening character. Default: '{'\n @type closing_char: str\n @param closing_char: Closing character. Default: '}'\n @type separator_char: str\n @param separator_char: Separator ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _choices API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _choices API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
Return all the possible choices from the following format: {a|b|c} @type text: str @param text: Text written used spin syntax @type randomized: bool @param text: Specifies if the choices will be given in random order or not. @return: A generator that yields all the possible choices
"Return all the possible choices from the following format: {a|b|c}\n\n @type text: str\n @param text: Text written used spin syntax\n\n @type randomized: bool\n @param text: Specifies if the choices will be given in random order or not.\n\n @return: A generator that yields all the possible choices"
20
false
omederos/pyspinner
_choices
15,261
LDU_FT/slackapi/python-slackclient/chat_getPermalink
LDU_FT
[ "<BEGIN>\n## `run_on`", "A decorator to store and link a callback to an event.\n<END>", "<BEGIN>\n## `on`", "Stores and links the callback(s) to the event.", " Args:\n event (str): A string that specifies a Slack or websocket event.\n e.g. 'channel_joined' or 'open'\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the chat_getPermalink API. 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 chat_getPermalink API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Retrieve a permalink URL for a specific extant message Args: channel (str): The channel id. e.g. 'C1234567890' message_ts (str): The timestamp. e.g. '1234567890.123456'
"Retrieve a permalink URL for a specific extant message\n\n Args:\n channel (str): The channel id. e.g. 'C1234567890'\n message_ts (str): The timestamp. e.g. '1234567890.123456'"
222
false
slackapi/python-slackclient
chat_getPermalink
15,262
LDU_FT/SuperCowPowers/chains/packet_meta_data
LDU_FT
[ "<BEGIN>\n## `packet_meta_data`", "Pull out the metadata about each packet from the input_stream\n Args:\n None\n Returns:\n generator (dictionary): a generator that contains packet meta data in the form of a dictionary\n<END>", "<BEGIN>\n## `pull`", "Print out ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the packet_meta_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 ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the packet_meta_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 ...
Pull out the metadata about each packet from the input_stream Args: None Returns: generator (dictionary): a generator that contains packet meta data in the form of a dictionary
"Pull out the metadata about each packet from the input_stream\n Args:\n None\n Returns:\n generator (dictionary): a generator that contains packet meta data in the form of a dictionary"
41
false
SuperCowPowers/chains
packet_meta_data
15,263
LDU_FT/peepall/FancyLogger/throw
LDU_FT
[ "<BEGIN>\n## `set_configuration`", "Defines the current configuration of the logger. Can be used at any moment during runtime to modify the logger\n behavior.\n :param command: The command object that holds all the necessary information from the remote process.\n<END>", "<BEGIN>\n## `run`", "The...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the throw API. 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 throw API. 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...
Sends an exception to the logger so it can display it as a special message. Prevents console refresh cycles from hiding exceptions that could be thrown by processes. :param stacktrace: Stacktrace string as returned by 'traceback.format_exc()' in an 'except' block. :param process_title: [O...
"Sends an exception to the logger so it can display it as a special message. Prevents console refresh cycles from\n hiding exceptions that could be thrown by processes.\n :param stacktrace: Stacktrace string as returned by 'traceback.format_exc()' in an 'except' block.\n :param process_title: ...
61
false
peepall/FancyLogger
throw
15,264
LDU_FT/astroML/gatspy/_construct_X_M
LDU_FT
[ "<BEGIN>\n## `mode_in_range`", "Find the mode of values to within a certain range\n<END>", "<BEGIN>\n## `scores`", "Compute the scores under the various models", " Parameters\n ----------\n periods : array_like\n array of periods at which to compute scores", " Return...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _construct_X_M API. 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 _construct_X_M API. 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...
Construct the weighted normal matrix of the problem
"Construct the weighted normal matrix of the problem"
123
false
astroML/gatspy
_construct_X_M
15,265
LDU_FT/panosl/django-currencies/get_ratetimestamp
LDU_FT
[ "<BEGIN>\n## `get_imports`", "See if we have been passed a set of currencies or a setting variable\n or look for settings CURRENCIES or SHOP_CURRENCIES.\n<END>", "<BEGIN>\n## `log`", "Both prints to stdout/stderr and the django.currencies logger\n<END>", "<BEGIN>\n## `check_rates`", "Local helper f...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_ratetimestamp API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_ratetimestamp API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Return rate timestamp as a datetime/date or None
"Return rate timestamp as a datetime/date or None"
57
false
panosl/django-currencies
get_ratetimestamp
15,266
LDU_FT/ocslegna/auto_py_torrent/get_parser
LDU_FT
[ "<BEGIN>\n## `get_parser`", "Load parser for command line arguments.", " It parses argv/input into args variable.\n<END>", "<BEGIN>\n## `insert`", "Insert args values into instance variables.\n<END>", "<BEGIN>\n## `run_it`", "Search and download torrents until the user says it so.\n<END>", "<BEGIN>...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_parser API. 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_parser API. 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...
Load parser for command line arguments. It parses argv/input into args variable.
"Load parser for command line arguments.\n\n It parses argv/input into args variable."
21
false
ocslegna/auto_py_torrent
get_parser
15,267
LDU_FT/euske/pdfminer/pick
LDU_FT
[ "<BEGIN>\n## `nextline`", "Fetches a next line that ends either with \\\\r or \\\\n.\n<END>", "<BEGIN>\n## `revreadlines`", "Fetches a next line backward.", " This is used to locate the trailers at the end of a file.\n<END>", "<BEGIN>\n## `nextobject`", "Yields a list of objects.", " Ret...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the pick API. 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 pick API. 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...
Picks the object obj where func(obj) has the highest value.
"Picks the object obj where func(obj) has the highest value."
45
false
euske/pdfminer
pick
15,268
LDU_FT/newville/asteval/parse
LDU_FT
[ "<BEGIN>\n## `remove_nodehandler`", "remove support for a node\n returns current node handler, so that it\n might be re-added with add_nodehandler()\n<END>", "<BEGIN>\n## `user_defined_symbols`", "Return a set of symbols that have been added to symtable after\n construction.", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
Parse statement/expression to Ast representation.
"Parse statement/expression to Ast representation."
31
false
newville/asteval
parse
15,269
LDU_FT/thespacedoctor/picaxe/get_photo_metadata
LDU_FT
[ "<BEGIN>\n## `main`", "*The main function used when ``cl_utils.py`` is run as a single script from the cl, or when installed as a cl command*\n<END>", "<BEGIN>\n## `authenticate`", "*setup a Flickr API key to access a Flickr user account so picaxe can work on private images*", " **Return:**\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_photo_metadata API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_photo_metadata API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
*get useful image metadata for the image found at a give Flickr share URL* **Key Arguments:** - ``url`` -- the share URL for the flickr image (or just the unique photoid) **Return:** - ``images`` -- a dictionary of the various image sizes that can be accessed (key is the width ...
"*get useful image metadata for the image found at a give Flickr share URL*\n\n **Key Arguments:**\n - ``url`` -- the share URL for the flickr image (or just the unique photoid)\n\n **Return:**\n - ``images`` -- a dictionary of the various image sizes that can be accessed (key is the...
54
false
thespacedoctor/picaxe
get_photo_metadata
15,270
LDU_FT/rfverbruggen/rachiopy/get
LDU_FT
[ "<BEGIN>\n## `seasonalAdjustment`", "Seasonal adjustment for a schedule rule (watering time).", " This adjustment amount will be applied to the overall run time of the\n selected schedule while overriding any current adjustments.\n<END>", "<BEGIN>\n## `get`", "Retrieve the information for a sc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
Retrieve the information for a device entity.
"Retrieve the information for a device entity."
24
false
rfverbruggen/rachiopy
get
15,271
LDU_FT/openp2pdesign/makerlabs/get_multiple_data
LDU_FT
[ "<BEGIN>\n## `get_lab_text`", "Gets text description in English or Italian from a single lab from makeinitaly.foundation.\n<END>", "<BEGIN>\n## `get_single_lab`", "Gets data from a single lab from makeinitaly.foundation.\n<END>", "<BEGIN>\n## `get_labs`", "Gets data from all labs from makeinitaly.foundati...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_multiple_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...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_multiple_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...
Get data from all the platforms listed in makerlabs.
"Get data from all the platforms listed in makerlabs."
20
false
openp2pdesign/makerlabs
get_multiple_data
15,272