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/steveYeah/PyBomb/search
LDU_FT
[ "<BEGIN>\n## `search`", "Full search of games resource, supporting all search fields\n available in API\n http://www.giantbomb.com/api/documentation#toc-0-17", " :param filter_by: dict\n :param return_fields: tuple\n :param sort_by: string\n :param desc: bool\n :...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the search API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the search API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Full search of games resource, supporting all search fields available in API http://www.giantbomb.com/api/documentation#toc-0-17 :param filter_by: dict :param return_fields: tuple :param sort_by: string :param desc: bool :param limit: int :param offset: i...
"Full search of games resource, supporting all search fields\n available in API\n http://www.giantbomb.com/api/documentation#toc-0-17\n\n :param filter_by: dict\n :param return_fields: tuple\n :param sort_by: string\n :param desc: bool\n :param limit: int\n :param...
25
false
steveYeah/PyBomb
search
23,873
LDU_FT/sci-bots/svg-model/get_adjacency_matrix
LDU_FT
[ "<BEGIN>\n## `auto_detect_adjacent_shapes`", "Attempt to automatically find \"adjacent\" shapes in a SVG layer.", " In a layer within a new SVG document, draw each detected connection between\n the center points of the corresponding shapes.", " Parameters\n ----------\n svg_source : str\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_adjacency_matrix API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_adjacency_matrix API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Return matrix where $a_{i,j} = 1$ indicates polygon $i$ is connected to polygon $j$. Also, return mapping (and reverse mapping) from original keys in `df_connected` to zero-based integer index used for matrix rows and columns.
"Return matrix where $a_{i,j} = 1$ indicates polygon $i$ is connected to\n polygon $j$.\n\n Also, return mapping (and reverse mapping) from original keys in\n `df_connected` to zero-based integer index used for matrix rows and\n columns."
181
false
sci-bots/svg-model
get_adjacency_matrix
23,874
LDU_FT/gwastro/pycbc-glue/dayOfWeek
LDU_FT
[ "<BEGIN>\n## `component_offsetvectors`", "Given an iterable of offset vectors, return the shortest list of\n\tthe unique n-instrument offset vectors from which all the vectors\n\tin the input iterable can be constructed. This can be used to\n\tdetermine the minimal set of n-instrument coincs required to\n\tconst...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the dayOfWeek API. 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 dayOfWeek API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
returns day of week: 0=Sun, 1=Mon, .., 6=Sat
"returns day of week: 0=Sun, 1=Mon, .., 6=Sat"
1,048
true
gwastro/pycbc-glue
dayOfWeek
23,875
LDU_FT/SUNCAT-Center/CatHub/get_atomic_stoichiometry
LDU_FT
[ "<BEGIN>\n## `molecules2symbols`", "Take a list of molecules and return just a list of atomic\n symbols, possibly adding hydrogen\n<END>", "<BEGIN>\n## `construct_reference_system`", "Take a list of symbols and construct gas phase\n references system, when possible avoiding O2.\n Candidates can be re...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_atomic_stoichiometry API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_atomic_stoichiometry API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio...
Given a list of references (tuples of (symbol, molecule)) return stoichiometry matrix that connects atomic symbols to its molecular references.
"Given a list of references (tuples of (symbol, molecule))\n return stoichiometry matrix that connects atomic symbols\n to its molecular references."
178
false
SUNCAT-Center/CatHub
get_atomic_stoichiometry
23,876
LDU_FT/satellogic/telluric/mask
LDU_FT
[ "<BEGIN>\n## `join`", "This method takes a list of rasters and returns a raster that is constructed of all of them\n<END>", "<BEGIN>\n## `merge_all`", "Merge a list of rasters, cropping by a region of interest.\n There are cases that the roi is not precise enough for this cases one can use,\n the ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the mask API. 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 mask API. 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...
Set pixels outside vector as nodata. :param vector: GeoVector, GeoFeature, FeatureCollection :param mask_shape_nodata: if True - pixels inside shape are set nodata, if False - outside shape is nodata :return: GeoRaster2
"Set pixels outside vector as nodata.\n\n :param vector: GeoVector, GeoFeature, FeatureCollection\n :param mask_shape_nodata: if True - pixels inside shape are set nodata, if False - outside shape is nodata\n :return: GeoRaster2"
261
false
satellogic/telluric
mask
23,877
LDU_FT/libtcod/python-tcod/pending_deprecate
LDU_FT
[ "<BEGIN>\n## `_int`", "return an integer where a single character string may be expected\n<END>", "<BEGIN>\n## `_describe_bitmask`", "Returns a bitmask in human readable form.", " This is a private function, used internally.", " Args:\n bits (int): The bitmask to be represented.\n tabl...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the pending_deprecate API. 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 pending_deprecate API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Like deprecate, but the default parameters are filled out for a generic pending deprecation warning.
"Like deprecate, but the default parameters are filled out for a generic\n pending deprecation warning."
1,050
true
libtcod/python-tcod
pending_deprecate
23,878
LDU_FT/quantmind/dynts/named_series
LDU_FT
[ "<BEGIN>\n## `jstimestamp_slow`", "Convert a date or datetime object into a javsacript timestamp\n<END>", "<BEGIN>\n## `jstimestamp`", "Convert a date or datetime object into a javsacript timestamp.\n<END>", "<BEGIN>\n## `rolling`", "Fast rolling operation with O(log n) updates where n is the\n win...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the named_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 extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the named_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 extr...
Generator of tuples with name and serie data.
"Generator of tuples with name and serie data."
159
false
quantmind/dynts
named_series
23,879
LDU_FT/IntelPython/mkl_fft/ihfft
LDU_FT
[ "<BEGIN>\n## `fft`", "Compute the one-dimensional discrete Fourier Transform.", " This function computes the one-dimensional *n*-point discrete Fourier\n Transform (DFT) with the efficient Fast Fourier Transform (FFT)\n algorithm [CT].", " Parameters\n ----------\n a : array_like\n In...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the ihfft API. 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 ihfft API. 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...
Compute the inverse FFT of a signal which has Hermitian symmetry. Parameters ---------- a : array_like Input array. n : int, optional Length of the inverse FFT. Number of points along transformation axis in the input to use. If `n` is smaller than the length of the input...
"Compute the inverse FFT of a signal which has Hermitian symmetry.\n\n Parameters\n ----------\n a : array_like\n Input array.\n n : int, optional\n Length of the inverse FFT.\n Number of points along transformation axis in the input to use.\n If `n` is smaller than the length of...
156
false
IntelPython/mkl_fft
ihfft
23,880
LDU_FT/websauna/pyramid_notebook/get_context_file_name
LDU_FT
[ "<BEGIN>\n## `handshake_headers`", "List of headers appropriate for the upgrade\n handshake.\n<END>", "<BEGIN>\n## `run`", "Combine async uwsgi message loop with ws4py message loop.", " TODO: This could do some serious optimizations and behave asynchronously correct instead of just sleep().\n<...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_context_file_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. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_context_file_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. ...
When the daemon is started write out the information which port it was using.
"When the daemon is started write out the information which port it was using."
78
false
websauna/pyramid_notebook
get_context_file_name
23,881
LDU_FT/onelogin/python-saml/validate_metadata
LDU_FT
[ "<BEGIN>\n## `is_valid`", "Validates the response object.", " :param request_data: Request Data\n :type request_data: dict", " :param request_id: Optional argument. The ID of the AuthNRequest sent by this SP to the IdP\n :type request_id: string", " :param raise_exceptions...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the validate_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. The...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the validate_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. The...
Validates an XML SP Metadata. :param xml: Metadata's XML that will be validate :type xml: string :returns: The list of found errors :rtype: list
"Validates an XML SP Metadata.\n\n :param xml: Metadata's XML that will be validate\n :type xml: string\n\n :returns: The list of found errors\n :rtype: list"
229
false
onelogin/python-saml
validate_metadata
23,882
LDU_FT/JelteF/PyLaTeX/generate_tex
LDU_FT
[ "<BEGIN>\n## `fill_document`", "Add a section, a subsection and some text to the document.", " :param doc: the document\n :type doc: :class:`pylatex.document.Document` instance\n<END>", "<BEGIN>\n## `dumps_content`", "r\"\"\"Represent the container as a string in LaTeX syntax.", " Args\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the generate_tex API. 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 generate_tex API. 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...
Generate a .tex file. Args ---- filepath: str The name of the file (without .tex)
"Generate a .tex file.\n\n Args\n ----\n filepath: str\n The name of the file (without .tex)"
183
false
JelteF/PyLaTeX
generate_tex
23,883
LDU_FT/xhtml2pdf/xhtml2pdf/getColor
LDU_FT
[ "<BEGIN>\n## `pisaParser`", "- Parse HTML and get miniDOM\n - Extract CSS informations, add default CSS, parse CSS\n - Handle the document DOM itself and build reportlab story\n - Return Context object\n<END>", "<BEGIN>\n## `splitIntoLines`", "Split text into lines and calculate X positions. If we ne...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the getColor API. 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 getColor API. 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...
Convert to color value. This returns a Color object instance from a text bit.
"Convert to color value.\n This returns a Color object instance from a text bit."
134
false
xhtml2pdf/xhtml2pdf
getColor
23,884
LDU_FT/HdrHistogram/HdrHistogram_py/decode
LDU_FT
[ "<BEGIN>\n## `init_counts`", "Called after instantiating with a compressed payload\n Params:\n counts_len counts size to use based on decoded settings in the header\n<END>", "<BEGIN>\n## `_decompress`", "Decompress a compressed payload into this payload wrapper.\n Note that the decomp...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the decode API. 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 decode API. 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 ...
Decode a wire histogram encoding into a read-only Hdr Payload instance Args: encoded_histogram a string containing the wire encoding of a histogram such as one returned from encode() Returns: an hdr_payload instance with all the decoded/uncompressed ...
"Decode a wire histogram encoding into a read-only Hdr Payload instance\n Args:\n encoded_histogram a string containing the wire encoding of a histogram\n such as one returned from encode()\n Returns:\n an hdr_payload instance with all the decoded/uncompr...
71
false
HdrHistogram/HdrHistogram_py
decode
23,885
LDU_FT/vxgmichel/aiostream/map
LDU_FT
[ "<BEGIN>\n## `base_combine`", "Base operator for managing an asynchronous sequence of sequences.", " The sequences are awaited concurrently, although it's possible to limit\n the amount of running sequences using the `task_limit` argument.", " The ``switch`` argument enables the switch mecanism, whic...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the 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 extracted doc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the 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 extracted doc...
Apply a given function to the elements of one or several asynchronous sequences. Each element is used as a positional argument, using the same order as their respective sources. The generation continues until the shortest sequence is exhausted. The function can either be synchronous or asynchronous...
"Apply a given function to the elements of one or several\n asynchronous sequences.\n\n Each element is used as a positional argument, using the same order as\n their respective sources. The generation continues until the shortest\n sequence is exhausted. The function can either be synchronous or\n async...
154
false
vxgmichel/aiostream
map
23,886
LDU_FT/tempodb/tempodb-python/list_series
LDU_FT
[ "<BEGIN>\n## `from_json`", "Deserialize a JSON object into this object. This method will\n check that the JSON object has the required keys and will set each\n of the keys in that JSON object as an instance attribute of this\n object.", " :param json_text: the JSON text or object to...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the list_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 extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the list_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 extra...
Get a list of all series matching the given criteria. **Note:** for the key argument, the filter will return the *union* of those values. For the tag and attr arguments, the filter will return the *intersection* of those values. :param keys: filter by one or more series keys :...
"Get a list of all series matching the given criteria.\n\n **Note:** for the key argument, the filter will return the *union* of\n those values. For the tag and attr arguments, the filter will return\n the *intersection* of those values.\n\n :param keys: filter by one or more series keys\n ...
99
false
tempodb/tempodb-python
list_series
23,887
LDU_FT/ethereum/py-trie/set
LDU_FT
[ "<BEGIN>\n## `calc_root`", "Obtain the merkle root of a given key/value/branch set.\n Can be used to validate a merkle proof or compute it's value from data.", " :param key: the keypath to decide the ordering of the sibling nodes in the branch\n :param value: the value (or leaf) that starts the merkle ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the 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 extracted doc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the 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 extracted doc...
Sets the value at the given keypath from the given node Key will be encoded into binary array format first.
"Sets the value at the given keypath from the given node\n\n Key will be encoded into binary array format first."
61
false
ethereum/py-trie
set
23,888
LDU_FT/williamjameshandley/fgivenx/_check_args
LDU_FT
[ "<BEGIN>\n## `plot`", "r\"\"\"\n Plot iso-probability mass function, converted to sigmas.", " Parameters\n ----------\n x, y, z : numpy arrays\n Same as arguments to :func:`matplotlib.pyplot.contour`", " ax: axes object, optional\n :class:`matplotlib.axes._subplots.AxesSubplot` to...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _check_args API. 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 _check_args API. 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...
Sanity-check the arguments for :func:`fgivenx.drivers.compute_samples`. Parameters ---------- f, x, samples, weights: see arguments for :func:`fgivenx.drivers.compute_samples`
"Sanity-check the arguments for :func:`fgivenx.drivers.compute_samples`.\n\n Parameters\n ----------\n f, x, samples, weights:\n see arguments for :func:`fgivenx.drivers.compute_samples`"
191
false
williamjameshandley/fgivenx
_check_args
23,889
LDU_FT/tchellomello/python-arlo/set_camera_enabled
LDU_FT
[ "<BEGIN>\n## `query`", "Return a JSON object or raw session.", " :param url: Arlo API URL\n :param method: Specify the method GET, POST or PUT. Default is GET.\n :param extra_params: Dictionary to be appended on request.body\n :param extra_headers: Dictionary to be apppended on requ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_camera_enabled 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 set_camera_enabled 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...
Turn Arlo camera On/Off. :param mode: True, False
"Turn Arlo camera On/Off.\n\n :param mode: True, False"
69
false
tchellomello/python-arlo
set_camera_enabled
23,890
LDU_FT/posativ/isso/host
LDU_FT
[ "<BEGIN>\n## `anonymize`", "Anonymize IPv4 and IPv6 :param remote_addr: to /24 (zero'd)\n and /48 (zero'd).\n<END>", "<BEGIN>\n## `thread`", "Extract <h1> title from web page. The title is *probably* the text node,\n which is the nearest H1 node in context to an element with the `isso-thread` id.\n<END>...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the host API. 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 host API. 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...
Reconstruct host from environment. A modified version of http://www.python.org/dev/peps/pep-0333/#url-reconstruction
"Reconstruct host from environment. A modified version\n of http://www.python.org/dev/peps/pep-0333/#url-reconstruction"
61
false
posativ/isso
host
23,891
LDU_FT/wdm0006/git-pandas/_repo_name
LDU_FT
[ "<BEGIN>\n## `repo_name`", "Returns a DataFrame of the repo names present in this project directory", " :return: DataFrame\n<END>", "<BEGIN>\n## `coverage`", "Will return a DataFrame with coverage information (if available) for each repo in the project).", " If there is a .coverage file avai...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _repo_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 extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _repo_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 extrac...
Returns the name of the repository, using the local directory name. :returns: str
"Returns the name of the repository, using the local directory name.\n\n :returns: str"
123
false
wdm0006/git-pandas
_repo_name
23,892
LDU_FT/useblocks/sphinxcontrib-needs/_analyze_func_string
LDU_FT
[ "<BEGIN>\n## `row_col_maker`", "Creates and returns a column.", " :param app: current sphinx app\n :param fromdocname: current document\n :param all_needs: Dictionary of all need objects\n :param need_info: need_info object, which stores all related need data\n :param need_key: The key to access ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _analyze_func_string API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _analyze_func_string API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Analyze given functiion string an extract: * function name * function arguments * function keyword arguments All given arguments must by of type string, int/float or list. :param func_string: string of the function :return: function name, arguments, keyword arguments
"Analyze given functiion string an extract:\n\n * function name\n * function arguments\n * function keyword arguments\n\n All given arguments must by of type string, int/float or list.\n\n :param func_string: string of the function\n :return: function name, arguments, keyword arguments"
155
false
useblocks/sphinxcontrib-needs
_analyze_func_string
23,893
LDU_FT/Genida/django-meerkat/ip_geoloc
LDU_FT
[ "<BEGIN>\n## `ip_geoloc`", "Get IP geolocation.", " Args:\n ip (str): IP address to use if no data provided.\n hit_api (bool): whether to hit api if info not found.", " Returns:\n str: latitude and longitude, comma-separated.\n<END>", "<BEGIN>\n## `google_maps_geoloc_link`", "Ge...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the ip_geoloc API. 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 ip_geoloc API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
Get IP geolocation. Args: ip (str): IP address to use if no data provided. hit_api (bool): whether to hit api if info not found. Returns: str: latitude and longitude, comma-separated.
"Get IP geolocation.\n\n Args:\n ip (str): IP address to use if no data provided.\n hit_api (bool): whether to hit api if info not found.\n\n Returns:\n str: latitude and longitude, comma-separated."
71
false
Genida/django-meerkat
ip_geoloc
23,894
LDU_FT/stephan-mclean/KickassTorrentsAPI/popular
LDU_FT
[ "<BEGIN>\n## `_get_soup`", "Return BeautifulSoup object for given page\n<END>", "<BEGIN>\n## `search`", "Return a search result for term in category. Can also be\n\t\tsorted and span multiple pages.\n<END>", "<BEGIN>\n## `popular`", "Return a search result containing torrents appearing\n\t\ton the KAT hom...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the popular API. 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 popular API. 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 search result containing torrents appearing on the KAT home page. Can be categorized. Cannot be sorted or contain multiple pages
"Return a search result containing torrents appearing\n\t\ton the KAT home page. Can be categorized. Cannot be\n\t\tsorted or contain multiple pages"
16
false
stephan-mclean/KickassTorrentsAPI
popular
23,895
LDU_FT/log2timeline/dfvfs/_Open
LDU_FT
[ "<BEGIN>\n## `comparable`", "str: comparable representation of the path specification.\n<END>", "<BEGIN>\n## `GetFormatSpecification`", "Retrieves the format specification.", " Returns:\n FormatSpecification: format specification or None if the format cannot\n be defined by a specification ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _Open API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _Open API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
Opens the file system object defined by path specification. Args: path_spec (PathSpec): path specification. mode (Optional[str]): file access mode. The default is 'rb' which represents read-only binary. Raises: AccessError: if the access to open the file was denied. IOError: ...
"Opens the file system object defined by path specification.\n\n Args:\n path_spec (PathSpec): path specification.\n mode (Optional[str]): file access mode. The default is 'rb' which\n represents read-only binary.\n\n Raises:\n AccessError: if the access to open the file was denied.\n ...
1,933
true
log2timeline/dfvfs
_Open
23,896
LDU_FT/avirshup/DockerMake/stage
LDU_FT
[ "<BEGIN>\n## `write_dockerfile`", "Used only to write a Dockerfile that will NOT be built by docker-make\n<END>", "<BEGIN>\n## `build`", "Drives the build of the final image - get the list of steps and execute them.", " Args:\n client (docker.Client): docker client object that will build t...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the stage API. 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 stage API. 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...
Copies the file from source to target Args: startimage (str): name of the image to stage these files into newimage (str): name of the created image
"Copies the file from source to target\n\n Args:\n startimage (str): name of the image to stage these files into\n newimage (str): name of the created image"
36
false
avirshup/DockerMake
stage
23,897
LDU_FT/wheerd/multiset/union
LDU_FT
[ "<BEGIN>\n## `isdisjoint`", "r\"\"\"Return True if the set has no elements in common with other.", " Sets are disjoint iff their intersection is the empty set.", " >>> ms = Multiset('aab')\n >>> ms.isdisjoint('bc')\n False\n >>> ms.isdisjoint(Multiset('ccd'))\n True",...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the union API. 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 union API. 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...
r"""Return a new multiset with all elements from the multiset and the others with maximal multiplicities. >>> ms = Multiset('aab') >>> sorted(ms.union('bc')) ['a', 'a', 'b', 'c'] You can also use the ``|`` operator for the same effect. However, the operator version will only ac...
"r\"\"\"Return a new multiset with all elements from the multiset and the others with maximal multiplicities.\n\n >>> ms = Multiset('aab')\n >>> sorted(ms.union('bc'))\n ['a', 'a', 'b', 'c']\n\n You can also use the ``|`` operator for the same effect. However, the operator version\n w...
117
false
wheerd/multiset
union
23,898
LDU_FT/tensorflow/tensorboard/experiment_pb
LDU_FT
[ "<BEGIN>\n## `add_event`", "Adds an event to the event file.", " Args:\n event: An `Event` protocol buffer.\n<END>", "<BEGIN>\n## `write`", "Enqueue the given bytes to be written asychronously\n<END>", "<BEGIN>\n## `flush`", "Write all the enqueued bytestring before this flush call to di...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the experiment_pb API. 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 experiment_pb API. 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...
Creates a summary that defines a hyperparameter-tuning experiment. Args: hparam_infos: Array of api_pb2.HParamInfo messages. Describes the hyperparameters used in the experiment. metric_infos: Array of api_pb2.MetricInfo messages. Describes the metrics used in the experiment. See the document...
"Creates a summary that defines a hyperparameter-tuning experiment.\n\n Args:\n hparam_infos: Array of api_pb2.HParamInfo messages. Describes the\n hyperparameters used in the experiment.\n metric_infos: Array of api_pb2.MetricInfo messages. Describes the metrics\n used in the experiment. See the d...
1,768
true
tensorflow/tensorboard
experiment_pb
23,899
LDU_FT/TAPPGuild/sqlalchemy-models/setup_database
LDU_FT
[ "<BEGIN>\n## `load_commodities`", "Load the commodities for Amounts in this object.\n<END>", "<BEGIN>\n## `load_commodities`", "Load the commodities for Amounts in this object.\n<END>", "<BEGIN>\n## `load_commodities`", "Load the commodities for Amounts in this object.\n<END>", "<BEGIN>\n## `create_user...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the setup_database API. 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 setup_database API. 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...
Set up databases using create_all(). :param eng: The sqlalchemy engine to use. :param list modules: A list of modules with models inside. :param list models: A list of models to setup.
"Set up databases using create_all().\n\n :param eng: The sqlalchemy engine to use.\n :param list modules: A list of modules with models inside.\n :param list models: A list of models to setup."
30
false
TAPPGuild/sqlalchemy-models
setup_database
23,900
LDU_FT/mardix/pylot/sign_s3_upload
LDU_FT
[ "<BEGIN>\n## `read_pkginfo`", "Help us read the pkginfo without accessing __init__\n<END>", "<BEGIN>\n## `with_user_roles`", "with_user_roles(roles)", " It allows to check if a user has access to a view by adding the decorator\n with_user_roles([])", " Requires flask-login", " In your model,...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the sign_s3_upload API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the sign_s3_upload API. 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...
Allow to create Signed object to upload to S3 via JS
"Allow to create Signed object to upload to S3 via JS"
66
false
mardix/pylot
sign_s3_upload
23,901
LDU_FT/dstufft/crust/filter
LDU_FT
[ "<BEGIN>\n## `subclass_exception`", "Create exception subclass.", " If 'attached_to' is supplied, the exception will be created in a way that\n allows it to be pickled, assuming the returned exception class will be added\n as an attribute to the 'attached_to' class.\n<END>", "<BEGIN>\n## `save`", "...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the filter API. 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 filter API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Returns a new QuerySet instance with the args ANDed to the existing set.
"Returns a new QuerySet instance with the args ANDed to the existing\n set."
38
false
dstufft/crust
filter
23,902
LDU_FT/shawnsilva/steamwebapi/retrieve_request
LDU_FT
[ "<BEGIN>\n## `create_request_url`", "Create the URL to submit to the Steam Web API", " interface: Steam Web API interface containing methods.\n method: The method to call.\n version: The version of the method.\n paramters: Parameters to supply to the method.\n<END>", "<BEGIN>\n## `...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the retrieve_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 ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the retrieve_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 ...
Open the given url and decode and return the response url: The url to open.
"Open the given url and decode and return the response\n\n url: The url to open."
64
false
shawnsilva/steamwebapi
retrieve_request
23,903
LDU_FT/dslackw/slpkg/package_name
LDU_FT
[ "<BEGIN>\n## `repos`", "View or enabled or disabled repositories\n<END>", "<BEGIN>\n## `reset`", "Reset slpkg.conf file with default values\n<END>", "<BEGIN>\n## `case_sensitive`", "Create dictionary from list with key in lower case\n and value with default\n<END>", "<BEGIN>\n## `package_name`", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the package_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 extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the package_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 extr...
Returns list with all the names of packages repository
"Returns list with all the names of packages repository"
168
false
dslackw/slpkg
package_name
23,904
LDU_FT/johnbywater/eventsourcing/resolve_attr
LDU_FT
[ "<BEGIN>\n## `register_new_suffix_tree`", "Factory method, returns new suffix tree object.\n<END>", "<BEGIN>\n## `find_substring`", "Returns the index if substring in tree, otherwise -1.\n<END>", "<BEGIN>\n## `_canonize_suffix`", "This canonizes the suffix, walking along its suffix string until it\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the resolve_attr API. 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 resolve_attr API. 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...
A recursive version of getattr for navigating dotted paths. Args: obj: An object for which we want to retrieve a nested attribute. path: A dot separated string containing zero or more attribute names. Returns: The attribute referred to by obj.a1.a2.a3... Raises: AttributeE...
"A recursive version of getattr for navigating dotted paths.\n\n Args:\n obj: An object for which we want to retrieve a nested attribute.\n path: A dot separated string containing zero or more attribute names.\n\n Returns:\n The attribute referred to by obj.a1.a2.a3...\n\n Raises:\n ...
161
false
johnbywater/eventsourcing
resolve_attr
23,905
LDU_FT/ttinies/sc2gameLobby/requestJoinDetails
LDU_FT
[ "<BEGIN>\n## `addNew`", "Add a new version record to the database to be tracked\n VERSION RECORD EXAMPLE:\n \"base-version\": 55505, \n \"data-hash\": \"60718A7CA50D0DF42987A30CF87BCB80\", \n \"fixed-hash\": \"0189B2804E2F6BA4C4591222089E63B2\", \n \"label\": \"3.16\", \n \"r...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the requestJoinDetails 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 requestJoinDetails 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...
add configuration information to the SC2 protocol join request REQUIREMENTS FOR SUCCESSFUL LAUNCH: server game_port must match between all join requests to client (represents the host's port to sync game clients) server base_port client game_port must be unique between each client (represents ???) c...
"add configuration information to the SC2 protocol join request\n REQUIREMENTS FOR SUCCESSFUL LAUNCH:\n server game_port must match between all join requests to client (represents the host's port to sync game clients)\n server base_port\n client game_port must be unique between each client (represents ???)\...
76
false
ttinies/sc2gameLobby
requestJoinDetails
23,906
LDU_FT/rigetti/grove/diagonal_basis_commutes
LDU_FT
[ "<BEGIN>\n## `_prepare_c_jk_m`", "Prepare the coefficient matrix for state tomography. This function uses sparse matrices\n for much greater efficiency.\n The coefficient matrix is defined as:", " .. math::", " C_{(jk)m} = \\tr{\\Pi_{s_j} \\Lambda_k(P_m)} = \\sum_{r}\\pi_{jr}(\\mathcal{R}_...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the diagonal_basis_commutes 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 diagonal_basis_commutes API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion...
Test if `pauli_a` and `pauli_b` share a diagonal basis Example: Check if [A, B] with the constraint that A & B must share a one-qubit diagonalizing basis. If the inputs were [sZ(0), sZ(0) * sZ(1)] then this function would return True. If the inputs were [sX(5), sZ(4)] this functio...
"Test if `pauli_a` and `pauli_b` share a diagonal basis\n\n Example:\n\n Check if [A, B] with the constraint that A & B must share a one-qubit\n diagonalizing basis. If the inputs were [sZ(0), sZ(0) * sZ(1)] then this\n function would return True. If the inputs were [sX(5), sZ(4)] this\n ...
428
false
rigetti/grove
diagonal_basis_commutes
23,907
LDU_FT/cstatz/maui/add
LDU_FT
[ "<BEGIN>\n## `slice_local_to_global`", "Calculate start and stop index for mapping sliced index", " :param index_slice: sliced index?\n :param axis: current axis to calculate\n :return: slice object as calculated\n<END>", "<BEGIN>\n## `local_to_global`", "Calculate local index from glob...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
Function to add 3D View with vector or 2D array (type = numpy.ndarray or 2D Field or 2D View) or 2D View with vector (type = numpy.ndarray) :param x: array(1D, 2D) or field (2D) or View(2D) :param axis: specifies axis, eg. axis = (1,2) plane lies in yz-plane, axis=0 vector along x axis :return: ...
"Function to add 3D View with vector or 2D array (type = numpy.ndarray or 2D Field or 2D View) or 2D View with vector (type = numpy.ndarray)\n :param x: array(1D, 2D) or field (2D) or View(2D)\n :param axis: specifies axis, eg. axis = (1,2) plane lies in yz-plane, axis=0 vector along x axis\n :retu...
54
false
cstatz/maui
add
23,908
LDU_FT/python-hyper/wsproto/net_recv
LDU_FT
[ "<BEGIN>\n## `validate`", "Incrementally validate a chunk of bytes provided as string.\n Will return a quad ``(valid?, endsOnCodePoint?, currentIndex, totalIndex)``.\n As soon as an octet is encountered which renders the octet sequence\n invalid, a quad with ``valid? == False`` is returned. `...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the net_recv API. 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 net_recv API. 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 pending data from network into websocket.
"Read pending data from network into websocket."
34
false
python-hyper/wsproto
net_recv
23,909
LDU_FT/ethereum/eth-abi/is_base_tuple
LDU_FT
[ "<BEGIN>\n## `abbr`", "Converts a value into its string representation and abbreviates that\n representation based on the given length `limit` if necessary.\n<END>", "<BEGIN>\n## `invalidate_value`", "Throws a standard exception for when a value is not encodable by an\n encoder.\n<END>", "<BEGIN>\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_base_tuple API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_base_tuple API. 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...
A predicate that matches a tuple type with no array dimension list.
"A predicate that matches a tuple type with no array dimension list."
57
false
ethereum/eth-abi
is_base_tuple
23,910
LDU_FT/MycroftAI/adapt/tagger
LDU_FT
[ "<BEGIN>\n## `lookup`", "TODO: Implement trie lookup with edit distance", " Args:\n iterable(list?): key used to find what is requested this could\n be a generator.\n index(int): index of what is requested\n gather(bool): of weather to gather or not\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the tagger API. 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 tagger API. 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 ...
A property to link into IntentEngine's intent_parsers. Warning: this is only for backwards compatiblility and should not be used if you intend on using domains. Return: the domains intent_parsers from its IntentEngine
"A property to link into IntentEngine's intent_parsers.\n\n Warning: this is only for backwards compatiblility and should not be used if you\n intend on using domains.\n\n Return: the domains intent_parsers from its IntentEngine"
178
false
MycroftAI/adapt
tagger
23,911
LDU_FT/kevin-brown/drf-json-api/wrap_generic_error
LDU_FT
[ "<BEGIN>\n## `camelcase`", "Return a string in lowerCamelCase", " Examples:\n \"people\" -> \"people\"\n \"profile images\" -> \"profileImages\"\n<END>", "<BEGIN>\n## `render`", "Convert native data to JSON API", " Tries each of the methods in `wrappers`, using the first successful\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the wrap_generic_error 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 wrap_generic_error 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...
Convert generic error native data using the JSON API Error format See the note about the JSON API Error format on `wrap_error`. The native format for errors that are not bad requests, such as authentication issues or missing content, is a dictionary with a 'detail' key and a string val...
"Convert generic error native data using the JSON API Error format\n\n See the note about the JSON API Error format on `wrap_error`.\n\n The native format for errors that are not bad requests, such as\n authentication issues or missing content, is a dictionary with a\n 'detail' key and a str...
34
false
kevin-brown/drf-json-api
wrap_generic_error
23,912
LDU_FT/jay-johnson/network-pipeline/process_arp_frame
LDU_FT
[ "<BEGIN>\n## `publish_processed_network_packets`", "# Redis/RabbitMQ/SQS messaging endpoints for pub-sub\n routing_key = ev(\"PUBLISH_EXCHANGE\",\n \"reporting.accounts\")\n queue_name = ev(\"PUBLISH_QUEUE\",\n \"reporting.accounts\")\n auth_url = ev(\"PUB_BROKER_UR...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the process_arp_frame API. 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 process_arp_frame API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
process_arp_frame Convert a complex nested json dictionary to a flattened dictionary and capture all unique keys for table construction :param id: key for this msg :param msg: arp frame for packet
"process_arp_frame\n\n Convert a complex nested json dictionary\n to a flattened dictionary and capture\n all unique keys for table construction\n\n :param id: key for this msg\n :param msg: arp frame for packet"
140
false
jay-johnson/network-pipeline
process_arp_frame
23,913
LDU_FT/iron-io/iron_mq_python/touch
LDU_FT
[ "<BEGIN>\n## `info`", "Execute an HTTP request to get details on a queue, and\n return it.\n<END>", "<BEGIN>\n## `clear`", "Executes an HTTP request to clear all contents of a queue.\n<END>", "<BEGIN>\n## `delete`", "Execute an HTTP request to delete a message from queue.", " Arguments:\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the touch API. 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 touch API. 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...
Touching a reserved message extends its timeout to the duration specified when the message was created. Arguments: message_id -- The ID of the message. reservation_id -- Reservation Id of the message. timeout -- Optional. The timeout in seconds after which new reservation will expire.
"Touching a reserved message extends its timeout to the duration specified when the message was created.\n\n Arguments:\n message_id -- The ID of the message.\n reservation_id -- Reservation Id of the message.\n timeout -- Optional. The timeout in seconds after which new reservation will exp...
28
false
iron-io/iron_mq_python
touch
23,914
LDU_FT/holtjma/msbwt/constructFMIndex
LDU_FT
[ "<BEGIN>\n## `extendSeed`", "This function is intended to be an interactive technique for constructing transcripts, probably to be released\n in a future version of msbwt\n @param bwtFN - the filename of the BWT to load\n @param seedKmer - the seed sequence to use for construction\n @p...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the constructFMIndex API. 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 constructFMIndex API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
This function iterates through the BWT and counts the letters as it goes to create the FM index. For example, the string 'ACC$' would have BWT 'C$CA'. The FM index would iterate over this and count the occurence of the letter it found so you'd end up with this: BWT FM-index C 0 0 0...
"This function iterates through the BWT and counts the letters as it goes to create the FM index. For example, the string 'ACC$' would have BWT\n 'C$CA'. The FM index would iterate over this and count the occurence of the letter it found so you'd end up with this:\n BWT FM-index\n C 0 0 ...
84
false
holtjma/msbwt
constructFMIndex
23,915
LDU_FT/csparpa/pyowm/parse_JSON
LDU_FT
[ "<BEGIN>\n## `parse_JSON`", "Parses a *StationHistory* instance out of raw JSON data. Only certain\n properties of the data are used: if these properties are not found or\n cannot be parsed, an error is issued.", " :param JSON_string: a raw JSON string\n :type JSON_string: str\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_JSON API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_JSON API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
Parses a `pyowm.alertapi30.alert.Alert` instance out of raw JSON data. :param JSON_string: a raw JSON string :type JSON_string: str :return: a `pyowm.alertapi30.alert.Alert` instance or ``None`` if no data is available :raises: *ParseResponseError* if it is impossible to fin...
"Parses a `pyowm.alertapi30.alert.Alert` instance out of raw JSON data.\n\n :param JSON_string: a raw JSON string\n :type JSON_string: str\n :return: a `pyowm.alertapi30.alert.Alert` instance or ``None``\n if no data is available\n :raises: *ParseResponseError* if it is impossible...
612
false
csparpa/pyowm
parse_JSON
23,916
LDU_FT/kkroening/ffmpeg-python/get_args
LDU_FT
[ "<BEGIN>\n## `get_args`", "Build command-line arguments to be passed to ffmpeg.\n<END>", "<BEGIN>\n## `compile`", "Build command-line for invoking ffmpeg.", " The :meth:`run` function uses this to build the commnad line\n arguments and should work in most cases, but calling this function\n directly...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_args API. 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_args API. 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...
Build command-line arguments to be passed to ffmpeg.
"Build command-line arguments to be passed to ffmpeg."
149
false
kkroening/ffmpeg-python
get_args
23,917
LDU_FT/delfick/harpoon/shared_volume_containers
LDU_FT
[ "<BEGIN>\n## `a_temp_file`", "Yield the name of a temporary file and ensure it's removed after use\n<END>", "<BEGIN>\n## `run_container`", "Run this image and all dependency images\n<END>", "<BEGIN>\n## `run_deps`", "Start containers for all our dependencies\n<END>", "<BEGIN>\n## `stop_deps`", "Stop t...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the shared_volume_containers API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the shared_volume_containers API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio...
All the harpoon containers in volumes.share_with for this container
"All the harpoon containers in volumes.share_with for this container"
149
false
delfick/harpoon
shared_volume_containers
23,918
LDU_FT/outini/python-pylls/get
LDU_FT
[ "<BEGIN>\n## `request`", "Handle requests to API", " :param str path: API endpoint's path to request\n :param str method: HTTP method to use\n :param dict data: Data to send (optional)\n :return: Parsed json response as :class:`dict`", " Additional named argument may be pass...
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 metrics :param int metric_id: Metric ID :return: Metrics data (:class:`dict`) Additional named arguments may be passed and are directly transmitted to API. It is useful to use the API search features. .. seealso:: https://docs.cachethq.io/reference#get-metrics .. s...
"Get metrics\n\n :param int metric_id: Metric ID\n :return: Metrics data (:class:`dict`)\n\n Additional named arguments may be passed and are directly transmitted\n to API. It is useful to use the API search features.\n\n .. seealso:: https://docs.cachethq.io/reference#get-metrics\n ...
71
false
outini/python-pylls
get
23,919
LDU_FT/cimm-kzn/CGRtools/compose
LDU_FT
[ "<BEGIN>\n## `reset_query_marks`", "set or reset hyb and neighbors marks to atoms.\n<END>", "<BEGIN>\n## `implicify_hydrogens`", "remove explicit hydrogen if possible", " :return: number of removed hydrogens\n<END>", "<BEGIN>\n## `explicify_hydrogens`", "add explicit hydrogens to atoms", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the compose API. 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 compose API. 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...
condense reaction container to CGR. see init for details about cgr_type :param data: ReactionContainer :return: CGRContainer
"condense reaction container to CGR. see init for details about cgr_type\n\n :param data: ReactionContainer\n :return: CGRContainer"
122
false
cimm-kzn/CGRtools
compose
23,920
LDU_FT/lrq3000/pyFileFixity/update
LDU_FT
[ "<BEGIN>\n## `discard`", "Remove the first occurrence of *val*.", " If *val* is not a member, does nothing.\n<END>", "<BEGIN>\n## `remove`", "Remove first occurrence of *val*.", " Raises ValueError if *val* is not present.\n<END>", "<BEGIN>\n## `_delete`", "Delete the item at the given (...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the 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 extracted ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the 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 extracted ...
Manually update the progress bar, useful for streams such as reading files (set init(total=filesize) and then in the reading loop, use update(len(current_buffer)) ) Parameters ---------- n : int Increment to add to the internal counter of iterations.
"Manually update the progress bar, useful for streams such as reading files (set init(total=filesize) and then in the reading loop, use update(len(current_buffer)) )\n\n Parameters\n ----------\n n : int\n Increment to add to the internal counter of iterations."
1,045
true
lrq3000/pyFileFixity
update
23,921
LDU_FT/bashu/django-watermark/_val
LDU_FT
[ "<BEGIN>\n## `watermark`", "Returns the URL to a watermarked copy of the image specified.\n<END>", "<BEGIN>\n## `_get_filesystem_path`", "Makes a filesystem path from the specified URL path\n<END>", "<BEGIN>\n## `generate_filename`", "Comes up with a good filename for the watermarked image\n<END>", "<BE...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _val API. 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 _val API. 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...
Tries to determine the appropriate value of a particular variable that is passed in. If the value is supposed to be a percentage, a whole integer will be sought after and then turned into a floating point number between 0 and 1. If the value is supposed to be an integer, the variable is cast into an i...
"Tries to determine the appropriate value of a particular variable that is\n passed in. If the value is supposed to be a percentage, a whole integer\n will be sought after and then turned into a floating point number between\n 0 and 1. If the value is supposed to be an integer, the variable is cast\n into...
18
false
bashu/django-watermark
_val
23,922
LDU_FT/cmheisel/basecampreporting/message
LDU_FT
[ "<BEGIN>\n## `people`", "Dictionary of people on the project, keyed by id\n<END>", "<BEGIN>\n## `comments`", "Looks through the last 3 messages and returns those comments.\n<END>", "<BEGIN>\n## `people_per_project`", "This will return all of the people in the given company that can\n access the giv...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the message API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the message API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
This will return information about the referenced message. If the id is given as a comma-delimited list, one record will be returned for each id. In this way you can query a set of messages in a single request. Note that you can only give up to 25 ids per request--more than that will ret...
"This will return information about the referenced message. If the id\n is given as a comma-delimited list, one record will be returned for\n each id. In this way you can query a set of messages in a single\n request. Note that you can only give up to 25 ids per request--more\n than that wil...
44
false
cmheisel/basecampreporting
message
23,923
LDU_FT/kata198/QueryableList/getFiltersFromArgs
LDU_FT
[ "<BEGIN>\n## `getFiltersFromArgs`", "getFiltersFromArgs - Returns a dictionary of each filter type, and the corrosponding field/value", " @param kwargs <dict> - Dictionary of filter arguments", " @return - Dictionary of each filter type (minus the ones that are optimized into others), each conta...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the getFiltersFromArgs 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 getFiltersFromArgs 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...
getFiltersFromArgs - Returns a dictionary of each filter type, and the corrosponding field/value @param kwargs <dict> - Dictionary of filter arguments @return - Dictionary of each filter type (minus the ones that are optimized into others), each containing a list of tuples, (fieldName, matchingValue)
"getFiltersFromArgs - Returns a dictionary of each filter type, and the corrosponding field/value\n\n @param kwargs <dict> - Dictionary of filter arguments\n\n\n @return - Dictionary of each filter type (minus the ones that are optimized into others), each containing a list of tuples, (fieldName, matching...
45
false
kata198/QueryableList
getFiltersFromArgs
23,924
LDU_FT/Tinche/cattrs/make_dict_unstructure_fn
LDU_FT
[ "<BEGIN>\n## `make_dict_unstructure_fn`", "Generate a specialized dict unstructuring function for a class.\n<END>", "<BEGIN>\n## `unstruct_strat`", "The default way of unstructuring ``attrs`` classes.\n<END>", "<BEGIN>\n## `register_structure_hook`", "Register a primitive-to-class converter function for a...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the make_dict_unstructure_fn API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the make_dict_unstructure_fn API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio...
Generate a specialized dict unstructuring function for a class.
"Generate a specialized dict unstructuring function for a class."
43
false
Tinche/cattrs
make_dict_unstructure_fn
23,925
LDU_FT/python-useful-helpers/threaded/asynciotask
LDU_FT
[ "<BEGIN>\n## `build_extension`", "build_extension.", " :raises BuildFailed: cythonize impossible\n<END>", "<BEGIN>\n## `_func`", "Get wrapped function.", " :rtype: typing.Optional[typing.Callable[..., typing.Union[typing.Awaitable, typing.Any]]]\n<END>", "<BEGIN>\n## `_get_function_wrapper...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the asynciotask API. 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 asynciotask API. 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...
Wrap function in future and return. :param func: Function to wrap :type func: typing.Optional[typing.Callable[..., typing.Awaitable]] :param loop_getter: Method to get event loop, if wrap in asyncio task :type loop_getter: typing.Union[ typing.Callable[..., asyncio.AbstractEv...
"Wrap function in future and return.\n\n :param func: Function to wrap\n :type func: typing.Optional[typing.Callable[..., typing.Awaitable]]\n :param loop_getter: Method to get event loop, if wrap in asyncio task\n :type loop_getter: typing.Union[\n typing.Callable[..., asyncio.Abs...
42
false
python-useful-helpers/threaded
asynciotask
23,926
LDU_FT/ggaughan/pipe2py/pipe_truncate
LDU_FT
[ "<BEGIN>\n## `repr_args`", "formats a list of function arguments prettily but as working code", " (kwargs are tuples (argname, argvalue)\n<END>", "<BEGIN>\n## `repr_arg`", "formats a function argument prettily but as working code", " unicode encodable as ascii is formatted as str\n<END>", "<BEGIN>...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the pipe_truncate API. 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 pipe_truncate API. 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...
An operator that returns a specified number of items from the top of a feed. Not loopable. Parameters ---------- context : pipe2py.Context object _INPUT : pipe2py.modules pipe like object (iterable of items) kwargs -- terminal, if the truncation value is wired in conf : { 'start': {...
"An operator that returns a specified number of items from the top of a\n feed. Not loopable.\n\n Parameters\n ----------\n context : pipe2py.Context object\n _INPUT : pipe2py.modules pipe like object (iterable of items)\n kwargs -- terminal, if the truncation value is wired in\n conf : {\n ...
257
false
ggaughan/pipe2py
pipe_truncate
23,927
LDU_FT/roclark/sportsreference/_get_team_details
LDU_FT
[ "<BEGIN>\n## `dataframe`", "Returns a ``pandas DataFrame`` containing all other relevant class\n properties and values for the specified game.\n<END>", "<BEGIN>\n## `_extract_player_stats`", "Combine all player stats into a single object.", " Since each player generally has a couple of rows wo...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_team_details API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_team_details API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Find the names and abbreviations for both teams in a game. Using the HTML contents in a boxscore, find the name and abbreviation for both teams. Parameters ---------- game : PyQuery object A PyQuery object of a single boxscore containing information about ...
"Find the names and abbreviations for both teams in a game.\n\n Using the HTML contents in a boxscore, find the name and abbreviation\n for both teams.\n\n Parameters\n ----------\n game : PyQuery object\n A PyQuery object of a single boxscore containing information about\n...
588
false
roclark/sportsreference
_get_team_details
23,928
LDU_FT/flashashen/flange/unflatten
LDU_FT
[ "<BEGIN>\n## `search`", "find matches for the given path expression in the data", " :param path_expression: path tuple or string\n :return:\n<END>", "<BEGIN>\n## `split_iter`", "Splits an iterable based on a separator, *sep*, a max of\n *maxsplit* times (no max by default). *sep* can be:", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the unflatten API. 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 unflatten API. 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...
Expand all compound keys (at any depth) into nested dicts In [13]: d = {'test.test2': {'k1.k2': 'val'}} In [14]: flange.expand(d) Out[14]: {'test.test2': {'k1': {'k2': 'val'}}} :param data: input dict :param separator: separator in compound keys :param replace: if true, remove the...
"Expand all compound keys (at any depth) into nested dicts\n\n In [13]: d = {'test.test2': {'k1.k2': 'val'}}\n In [14]: flange.expand(d)\n Out[14]: {'test.test2': {'k1': {'k2': 'val'}}}\n\n :param data: input dict\n :param separator: separator in compound keys\n :param replace: if true, r...
132
false
flashashen/flange
unflatten
23,929
LDU_FT/ska-sa/purr/renderLink
LDU_FT
[ "<BEGIN>\n## `rotate`", "Rotate a coordinate around point (0,0).\n - x and y specify the coordinate.\n - degree is a number from 0 to 360.\n Returns a new coordinate.\n<END>", "<BEGIN>\n## `_compute_bounding_box`", "Given the list of coordinates (x,y), this procedure computes\n the smallest rectan...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the renderLink API. 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 renderLink API. 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...
renderLink() is called to render a link to the DP
"renderLink() is called to render a link to the DP"
265
false
ska-sa/purr
renderLink
23,930
LDU_FT/fbcotter/py3nvml/get_num_procs
LDU_FT
[ "<BEGIN>\n## `grab_gpus`", "Checks for gpu availability and sets CUDA_VISIBLE_DEVICES as such.", " Note that this function does not do anything to 'reserve' gpus, it only\n limits what GPUS your program can see by altering the CUDA_VISIBLE_DEVICES\n variable. Other programs can still come along and sna...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_num_procs API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_num_procs API. 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...
Gets the number of processes running on each gpu Returns ------- num_procs : list(int) Number of processes running on each gpu Note ---- If function can't query the driver will return an empty list rather than raise an Exception. Note ---- If function can't get the inf...
"Gets the number of processes running on each gpu\n\n Returns\n -------\n num_procs : list(int)\n Number of processes running on each gpu\n\n Note\n ----\n If function can't query the driver will return an empty list rather than raise an\n Exception.\n\n Note\n ----\n If function ca...
336
false
fbcotter/py3nvml
get_num_procs
23,931
LDU_FT/zeth/inputs/emulate_rel
LDU_FT
[ "<BEGIN>\n## `chunks`", "Yield successive EVENT_SIZE sized chunks from raw.\n<END>", "<BEGIN>\n## `quartz_mouse_process`", "Single subprocess for reading mouse events on Mac using newer Quartz.\n<END>", "<BEGIN>\n## `appkit_mouse_process`", "Single subprocess for reading mouse events on Mac using older Ap...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the emulate_rel API. 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 emulate_rel API. 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...
Emulate the relative changes of the mouse cursor.
"Emulate the relative changes of the mouse cursor."
109
false
zeth/inputs
emulate_rel
23,932
LDU_FT/theonion/django-bulbs/get
LDU_FT
[ "<BEGIN>\n## `save`", "Kicks off celery task to re-save associated special coverages to percolator", " :param args: inline arguments (optional)\n :param kwargs: keyword arguments\n :return: `bulbs.campaigns.Campaign`\n<END>", "<BEGIN>\n## `get_field_info`", "This method is basically a m...
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 all the operations for a given pzone.
"Get all the operations for a given pzone."
277
false
theonion/django-bulbs
get
23,933
LDU_FT/goldsmith/Wikipedia/search
LDU_FT
[ "<BEGIN>\n## `set_lang`", "Change the language of the API being requested.\n Set `prefix` to one of the two letter prefixes found on the `list of all Wikipedias <http://meta.wikimedia.org/wiki/List_of_Wikipedias>`_.", " After setting the language, the cache for ``search``, ``suggest``, and ``summary`` will be...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the search API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the search API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Do a Wikipedia search for `query`. Keyword arguments: * results - the maxmimum number of results returned * suggestion - if True, return results and suggestion (if any) in a tuple
"Do a Wikipedia search for `query`.\n\n Keyword arguments:\n\n * results - the maxmimum number of results returned\n * suggestion - if True, return results and suggestion (if any) in a tuple"
62
false
goldsmith/Wikipedia
search
23,934
LDU_FT/evolbioinfo/pastml/choose_ancestral_states_mppa
LDU_FT
[ "<BEGIN>\n## `reconstruct_ancestral_states`", "Reconstructs ancestral states for the given character on the given tree.", " :param character: character whose ancestral states are to be reconstructed.\n :type character: str\n :param tree: tree whose ancestral state are to be reconstructed,\n anno...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the choose_ancestral_states_mppa 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 choose_ancestral_states_mppa API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its concl...
Chooses node ancestral states based on their marginal probabilities using MPPA method. :param force_joint: make sure that Joint state is chosen even if it has a low probability. :type force_joint: bool :param tree: tree of interest :type tree: ete3.Tree :param feature: character for which the ances...
"Chooses node ancestral states based on their marginal probabilities using MPPA method.\n\n :param force_joint: make sure that Joint state is chosen even if it has a low probability.\n :type force_joint: bool\n :param tree: tree of interest\n :type tree: ete3.Tree\n :param feature: character for which th...
150
false
evolbioinfo/pastml
choose_ancestral_states_mppa
23,935
LDU_FT/flowersteam/explauto/nn
LDU_FT
[ "<BEGIN>\n## `predict_y`", "Provide an prediction of xq in the output space", " @param xq an array of float of length dim_x\n @return predicted y as np.array of float\n<END>", "<BEGIN>\n## `predict_given_context`", "Provide a prediction of x with context c on dimensions c_dims in the outpu...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the nn API. 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 docu...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the nn API. 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 docu...
Find the k nearest neighbors of x in the observed input data :arg x: center :arg k: the number of nearest neighbors to return (default: 1) :arg eps: approximate nearest neighbors. the k-th returned value is guaranteed to be no further than (...
"Find the k nearest neighbors of x in the observed input data\n :arg x: center\n :arg k: the number of nearest neighbors to return (default: 1)\n :arg eps: approximate nearest neighbors.\n the k-th returned value is guaranteed to be no further than\n ...
685
false
flowersteam/explauto
nn
23,936
LDU_FT/justquick/python-varnish/help
LDU_FT
[ "<BEGIN>\n## `http_purge_url`", "Do an HTTP PURGE of the given asset.\n The URL is run through urlparse and must point to the varnish instance not the varnishadm\n<END>", "<BEGIN>\n## `run`", "Non-threaded batch command runner returning output results\n<END>", "<BEGIN>\n## `fetch`", "Run a command on t...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the help API. 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 help API. 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...
help [command] Display a list of available commands. If the command is specified, display help for this command.
"help [command]\n Display a list of available commands.\n If the command is specified, display help for this command."
14
false
justquick/python-varnish
help
23,937
LDU_FT/20c/xbahn/receive
LDU_FT
[ "<BEGIN>\n## `disconnect`", "Close all connections that are set on this wire\n<END>", "<BEGIN>\n## `send_and_wait`", "Send a message and block until a response is received. Return response message\n<END>", "<BEGIN>\n## `wire`", "Wires the link to a connection. Can be called multiple\n times to set ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the receive API. 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 receive API. 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 and return a message from data, also triggers the **receive** event Returns: - Message: message object
"Create and return a message from data, also triggers the\n **receive** event\n\n Returns:\n\n - Message: message object"
119
false
20c/xbahn
receive
23,938
LDU_FT/pedrotgn/pyactor/set_exception
LDU_FT
[ "<BEGIN>\n## `set_context`", "This function initializes the context of execution deciding which\n type of threads are being used: classic python threads or green\n threads, provided by Gevent.", " This should be called first of all in every execution, otherwise,\n the library would not work.", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_exception API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_exception API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
Sets the result of the future as being the given exception. Only called internally.
"Sets the result of the future as being the given exception.\n Only called internally."
102
false
pedrotgn/pyactor
set_exception
23,939
LDU_FT/05bit/peewee-async/insert
LDU_FT
[ "<BEGIN>\n## `execute`", "Execute *SELECT*, *INSERT*, *UPDATE* or *DELETE* query asyncronously.", " :param query: peewee query instance created with ``Model.select()``,\n ``Model.update()`` etc.\n :return: result depends on query type, it's the same as for sync\n ``query.execute()`...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the insert API. 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 insert API. 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 ...
Perform INSERT query asynchronously. Returns last insert ID. This function is called by object.create for single objects only.
"Perform INSERT query asynchronously. Returns last insert ID.\n This function is called by object.create for single objects only."
92
false
05bit/peewee-async
insert
23,940
LDU_FT/lsst-sqre/documenteer/build
LDU_FT
[ "<BEGIN>\n## `run`", "Main entrypoint method.", " Returns\n -------\n new_nodes : `list`\n Nodes to add to the doctree.\n<END>", "<BEGIN>\n## `main`", "stack-docs is a CLI for building LSST Stack documentation, such as\n pipelines.lsst.io.", " This command should be r...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the build API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the build API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
Build documentation as HTML. The build HTML site is located in the ``doc/_build/html`` directory of the package.
"Build documentation as HTML.\n\n The build HTML site is located in the ``doc/_build/html`` directory\n of the package."
430
false
lsst-sqre/documenteer
build
23,941
LDU_FT/gunthercox/ChatterBot/count
LDU_FT
[ "<BEGIN>\n## `get_response`", "Return the bot's response based on the input.", " :param statement: An statement object or string.\n :returns: A response to the input.\n :rtype: Statement", " :param additional_response_selection_parameters: Parameters to pass to the\n cha...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the count API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the count API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
Return the number of entries in the database.
"Return the number of entries in the database."
158
false
gunthercox/ChatterBot
count
23,942
LDU_FT/ngmarchant/oasis/_update_cov_model
LDU_FT
[ "<BEGIN>\n## `update`", "Update the posterior and estimates after a label is sampled", " Parameters\n ----------\n ell : int\n sampled label: 0 or 1", " k : int\n index of stratum where label was sampled\n<END>", "<BEGIN>\n## `_sample_item`", "Sample an it...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _update_cov_model API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _update_cov_model API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
strata_to_update : array-like or 'all' array containing stratum indices to update
"strata_to_update : array-like or 'all'\n array containing stratum indices to update"
115
false
ngmarchant/oasis
_update_cov_model
23,943
LDU_FT/ethereum/pyethereum/decode_function_result
LDU_FT
[ "<BEGIN>\n## `_canonical_type`", "Replace aliases to the corresponding type to compute the ids.\n<END>", "<BEGIN>\n## `method_id`", "Return the unique method id.", " The signature is defined as the canonical expression of the basic\n prototype, i.e. the function name with the parenthesised list of par...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the decode_function_result 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 decode_function_result API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
Return the function call result decoded. Args: function_name (str): One of the existing functions described in the contract interface. data (bin): The encoded result from calling `function_name`. Return: List[object]: The values returned by the call ...
"Return the function call result decoded.\n\n Args:\n function_name (str): One of the existing functions described in the\n contract interface.\n data (bin): The encoded result from calling `function_name`.\n\n Return:\n List[object]: The values returned by ...
138
false
ethereum/pyethereum
decode_function_result
23,944
LDU_FT/edx/edx-django-utils/_check_middleware_dependencies
LDU_FT
[ "<BEGIN>\n## `accumulate_metric`", "Accumulate a custom metric (name and value) in the metrics cache.\n<END>", "<BEGIN>\n## `_batch_report`", "Report the collected custom metrics to New Relic.\n<END>", "<BEGIN>\n## `process_response`", "Logs memory data after processing response.\n<END>", "<BEGIN>\n## `...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _check_middleware_dependencies 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 _check_middleware_dependencies API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its con...
Check required middleware dependencies exist and in the correct order. Args: concerned_object (object): The object for which the required middleware is being checked. This is used for error messages only. required_middleware (list of String): An ordered list representing the ...
"Check required middleware dependencies exist and in the correct order.\n\n Args:\n concerned_object (object): The object for which the required\n middleware is being checked. This is used for error messages only.\n required_middleware (list of String): An ordered list representing the\n ...
55
false
edx/edx-django-utils
_check_middleware_dependencies
23,945
LDU_FT/toomore/grs/moving_average_value
LDU_FT
[ "<BEGIN>\n## `real`", "Real time data", " :rtype: dict\n :returns:", " :name: 股票名稱 Unicode\n :no: 股票代碼\n :range: 漲跌價\n :ranges: 漲跌判斷 True, False\n :time: 取得時間\n :max: 漲停價\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the moving_average_value API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the moving_average_value API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
計算 n 日成交股數均量與持續天數 :param int date: n 日 :rtype: tuple (序列 舊→新, 持續天數)
"計算 n 日成交股數均量與持續天數\n\n :param int date: n 日\n :rtype: tuple (序列 舊→新, 持續天數)"
88
false
toomore/grs
moving_average_value
23,946
LDU_FT/joowani/binarytree/_build_tree_string
LDU_FT
[ "<BEGIN>\n## `_is_balanced`", "Return the height if the binary tree is balanced, -1 otherwise.", " :param root: Root node of the binary tree.\n :type root: binarytree.Node | None\n :return: Height if the binary tree is balanced, -1 otherwise.\n :rtype: int\n<END>", "<BEGIN>\n## `_is_bst`", "Chec...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _build_tree_string API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _build_tree_string API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
Recursively walk down the binary tree and build a pretty-print string. In each recursive call, a "box" of characters visually representing the current (sub)tree is constructed line by line. Each line is padded with whitespaces to ensure all lines in the box have the same length. Then the box, its width...
"Recursively walk down the binary tree and build a pretty-print string.\n\n In each recursive call, a \"box\" of characters visually representing the\n current (sub)tree is constructed line by line. Each line is padded with\n whitespaces to ensure all lines in the box have the same length. Then the\n box, i...
132
false
joowani/binarytree
_build_tree_string
23,947
LDU_FT/rodluger/everest/InjectionStatus
LDU_FT
[ "<BEGIN>\n## `Download`", "Submits a cluster job to the build queue to download all TPFs for a given\n campaign.", " :param int campaign: The `K2` campaign to run\n :param str queue: The name of the queue to submit to. Default `build`\n :param str email: The email to send job status notifications to...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the InjectionStatus API. 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 InjectionStatus API. 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...
Shows the progress of the injection de-trending runs for the specified campaign(s).
"Shows the progress of the injection de-trending runs for\n the specified campaign(s)."
364
false
rodluger/everest
InjectionStatus
23,948
LDU_FT/Gorialis/jishaku/jsk_vc_stop
LDU_FT
[ "<BEGIN>\n## `get_var_dict_from_ctx`", "Returns the dict to be used in REPL for a given Context.\n<END>", "<BEGIN>\n## `background_reader`", "Reads a stream and forwards each line to an async callback.\n<END>", "<BEGIN>\n## `make_reader_task`", "Create a reader executor task for a stream.\n<END>", "<BEG...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the jsk_vc_stop API. 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 jsk_vc_stop API. 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...
Stops running an audio source, if there is one.
"Stops running an audio source, if there is one."
161
false
Gorialis/jishaku
jsk_vc_stop
23,949
LDU_FT/sergiocorreia/panflute/load
LDU_FT
[ "<BEGIN>\n## `gabc`", "Handle gabc file inclusion and gabc code block.\n<END>", "<BEGIN>\n## `load`", "Load JSON-encoded document and return a :class:`.Doc` element.", " The JSON input will be read from :data:`sys.stdin` unless an alternative\n text stream is given (a file handle).", " To load fr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
Load JSON-encoded document and return a :class:`.Doc` element. The JSON input will be read from :data:`sys.stdin` unless an alternative text stream is given (a file handle). To load from a file, you can do: >>> import panflute as pf >>> with open('some-document.json', encoding='utf-8') as...
"Load JSON-encoded document and return a :class:`.Doc` element.\n\n The JSON input will be read from :data:`sys.stdin` unless an alternative\n text stream is given (a file handle).\n\n To load from a file, you can do:\n\n >>> import panflute as pf\n >>> with open('some-document.json', encoding='u...
120
false
sergiocorreia/panflute
load
23,950
LDU_FT/Shinichi-Nakagawa/pitchpx/_get_game_type_des
LDU_FT
[ "<BEGIN>\n## `row`", "Game Dataset(Row)\n :return: {\n 'retro_game_id': Retrosheet Game id\n 'game_type': Game Type(S/R/F/D/L/W)\n 'game_type_des': Game Type Description\n (Spring Training or Regular Season or Wild-card Game or Divisional Series or LCS or World S...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_game_type_des 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_game_type_des 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 game type description :param game_type: game type :return: game type description
"get game type description\n :param game_type: game type\n :return: game type description"
102
false
Shinichi-Nakagawa/pitchpx
_get_game_type_des
23,951
LDU_FT/Karaage-Cluster/karaage/get_person_usage
LDU_FT
[ "<BEGIN>\n## `_gen_project_trend_graph`", "Generates a bar graph for a project", " Keyword arguments:\n project -- Project\n start -- start date\n end -- end date\n<END>", "<BEGIN>\n## `synchronise`", "If task already queued, running, or finished, don't restart.\n<END>", "<BEGIN>\n## `send_bou...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_person_usage API. 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_person_usage API. 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 tuple of cpu hours and number of jobs for a person in a specific project Keyword arguments: person -- project -- The project the usage is from start -- start date end -- end date
"Return a tuple of cpu hours and number of jobs for a person in a\n specific project\n\n Keyword arguments:\n person --\n project -- The project the usage is from\n start -- start date\n end -- end date"
214
false
Karaage-Cluster/karaage
get_person_usage
23,952
LDU_FT/TurboGears/gearbox/_turn_sigterm_into_systemexit
LDU_FT
[ "<BEGIN>\n## `live_pidfile`", "(pidfile:str) -> int | None\n Returns an int found in the named file, if there is one,\n and if there is a running process with that process id.\n Return None if no such process exists.\n<END>", "<BEGIN>\n## `_turn_sigterm_into_systemexit`", "Attempts to turn a SIGTERM ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _turn_sigterm_into_systemexit API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _turn_sigterm_into_systemexit API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conc...
Attempts to turn a SIGTERM exception into a SystemExit exception.
"Attempts to turn a SIGTERM exception into a SystemExit exception."
66
false
TurboGears/gearbox
_turn_sigterm_into_systemexit
23,953
LDU_FT/contentful/contentful-management.py/entries
LDU_FT
[ "<BEGIN>\n## `create`", "Creates an entry with a given ID (optional) and attributes.\n<END>", "<BEGIN>\n## `create`", "Creates a webhook with given attributes.\n<END>", "<BEGIN>\n## `camel_case`", "Returns a camel-cased version of a string.", " :param a_string: any :class:`str` object.", " Usage...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the entries API. 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 entries API. 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...
Provides access to entry management methods. API reference: https://www.contentful.com/developers/docs/references/content-management-api/#/reference/entries :return: :class:`EnvironmentEntriesProxy <contentful_management.environment_entries_proxy.EnvironmentEntriesProxy>` object. :rtype: conte...
"Provides access to entry management methods.\n\n API reference: https://www.contentful.com/developers/docs/references/content-management-api/#/reference/entries\n\n :return: :class:`EnvironmentEntriesProxy <contentful_management.environment_entries_proxy.EnvironmentEntriesProxy>` object.\n :rtype:...
161
false
contentful/contentful-management.py
entries
23,954
LDU_FT/raiden-network/raiden/_expiration_generator
LDU_FT
[ "<BEGIN>\n## `events_for_onchain_secretreveal`", "Emits the event for revealing the secret on-chain if the transfer\n can not be settled off-chain.\n<END>", "<BEGIN>\n## `handle_inittarget`", "Handles an ActionInitTarget state change.\n<END>", "<BEGIN>\n## `handle_offchain_secretreveal`", "Validates an...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _expiration_generator 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 _expiration_generator API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Stateful generator that yields True if more than timeout has passed since previous True, False otherwise. Helper method to tell when a message needs to be retried (more than timeout seconds passed since last time it was sent). timeout is iteratively fetched from timeout_generator ...
"Stateful generator that yields True if more than timeout has passed since previous True,\n False otherwise.\n\n Helper method to tell when a message needs to be retried (more than timeout seconds\n passed since last time it was sent).\n timeout is iteratively fetched from timeout_generator\...
1,120
true
raiden-network/raiden
_expiration_generator
23,955
LDU_FT/jongracecox/anybadge/badge_width
LDU_FT
[ "<BEGIN>\n## `main`", "Generate a badge based on command line arguments.\n<END>", "<BEGIN>\n## `value_is_int`", "Identify whether the value text is an int.\n<END>", "<BEGIN>\n## `color_split_position`", "The SVG x position where the color split should occur.\n<END>", "<BEGIN>\n## `badge_width`", "The ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the badge_width API. 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 badge_width API. 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...
The total width of badge. >>> badge = Badge('pylint', '5', font_name='DejaVu Sans,Verdana,Geneva,sans-serif', ... font_size=11) >>> badge.badge_width 91
"The total width of badge.\n\n >>> badge = Badge('pylint', '5', font_name='DejaVu Sans,Verdana,Geneva,sans-serif',\n ... font_size=11)\n >>> badge.badge_width\n 91"
15
false
jongracecox/anybadge
badge_width
23,956
LDU_FT/dustin/twitty-twister/friends
LDU_FT
[ "<BEGIN>\n## `__downloadPage`", "Start a HTTP download, returning a HTTPDownloader object\n<END>", "<BEGIN>\n## `__encodeMultipart`", "fields is a sequence of (name, value) elements for regular form fields.\n files is a sequence of (name, filename, value) elements for data to be uploaded as files\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the friends API. 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 friends API. 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 updates from friends. Calls the delgate once for each status object received.
"Get updates from friends.\n\n Calls the delgate once for each status object received."
93
false
dustin/twitty-twister
friends
23,957
LDU_FT/soravux/scoop/run
LDU_FT
[ "<BEGIN>\n## `_ensureAtomicity`", "Ensure atomicity of passed elements on the whole worker pool\n<END>", "<BEGIN>\n## `setConst`", "setConst(**kwargs)\n Set a constant that will be shared to every workers.", " :param **kwargs: One or more combination(s) key=value. Key being the\n variable name ...
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...
Launch the broker(s) and worker(s) assigned on every hosts.
"Launch the broker(s) and worker(s) assigned on every hosts."
251
false
soravux/scoop
run
23,958
LDU_FT/hammerlab/stanity/gpinv
LDU_FT
[ "<BEGIN>\n## `psisloo`", "r\"\"\"PSIS leave-one-out log predictive densities.", " Computes the log predictive densities given posterior samples of the log\n likelihood terms :math:`p(y_i|\\theta^s)` in input parameter `log_lik`.\n Returns a sum of the leave-one-out log predictive densities `loo`,\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the gpinv API. 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 gpinv API. 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...
Inverse Generalised Pareto distribution function.
"Inverse Generalised Pareto distribution function."
46
false
hammerlab/stanity
gpinv
23,959
LDU_FT/lsbardel/python-stdnet/add
LDU_FT
[ "<BEGIN>\n## `load_iterable`", "Load an ``iterable``.", " By default it returns a generator of data loaded via the\n :meth:`loads` method.", " :param iterable: an iterable over data to load.\n :param session: Optional :class:`stdnet.odm.Session`.\n :return: an iterable over ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
Add a new instance to this :class:`SessionModel`. :param modified: Optional flag indicating if the ``instance`` has been modified. By default its value is ``True``. :param force_update: if ``instance`` is persistent, it forces an update of the data rather than a full replacement. This is used by the ...
"Add a new instance to this :class:`SessionModel`.\r\n\r\n:param modified: Optional flag indicating if the ``instance`` has been\r\n modified. By default its value is ``True``.\r\n:param force_update: if ``instance`` is persistent, it forces an update of the\r\n data rather than a full replacement. This is used b...
387
false
lsbardel/python-stdnet
add
23,960
LDU_FT/PyPSA/PyPSA/apply_transformer_types
LDU_FT
[ "<BEGIN>\n## `generate_dummy_graph`", "Generate a dummy graph to feed to the FIAS libraries.\n It adds the \"pos\" attribute and removes the 380 kV duplicate\n buses when the buses have been split, so that all load and generation\n is attached to the 220kV bus.\n<END>", "<BEGIN>\n## `voronoi_partition`...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the apply_transformer_types 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 apply_transformer_types API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion...
Calculate transformer electrical parameters x, r, b, g from standard types.
"Calculate transformer electrical parameters x, r, b, g from\n standard types."
291
false
PyPSA/PyPSA
apply_transformer_types
23,961
LDU_FT/esheldon/fitsio/_record2card
LDU_FT
[ "<BEGIN>\n## `is_little_endian`", "Return True if array is little endian, False otherwise.", " Parameters\n ----------\n array: numpy array\n A numerical python array.", " Returns\n -------\n Truth value:\n True for little-endian", " Notes\n -----\n Strings are neith...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _record2card API. 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 _record2card API. 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...
when we add new records they don't have a card, this sort of fakes it up similar to what cfitsio does, just for display purposes. e.g. DBL = 23.299843 LNG = 3423432 KEYSNC = 'hello ' KEYSC = 'hello ' / a c...
"when we add new records they don't have a card,\n this sort of fakes it up similar to what cfitsio\n does, just for display purposes. e.g.\n\n DBL = 23.299843\n LNG = 3423432\n KEYSNC = 'hello '\n KEYSC = 'hello ' ...
294
false
esheldon/fitsio
_record2card
23,962
LDU_FT/AgeOfLearning/coeus-unity-python-framework/query_scene_loaded
LDU_FT
[ "<BEGIN>\n## `await_transform_exists`", "Waits for a single transform to exist based on does_exist.\n :param cli:\n :param transform_path:\n :param does_exist: Whether or not to await for exist state (True | False)\n :param timeout_seconds: How long until this returns with failure\n :return: bool\n...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the query_scene_loaded 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 query_scene_loaded 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...
Requests status on whether a scene is loaded or not. :param cli: :param scene_name: :return: bool
"Requests status on whether a scene is loaded or not.\n :param cli:\n :param scene_name:\n :return: bool"
38
false
AgeOfLearning/coeus-unity-python-framework
query_scene_loaded
23,963
LDU_FT/SUSE-Enceladus/ipa/extract_archive
LDU_FT
[ "<BEGIN>\n## `_get_instance_state`", "Attempt to retrieve the state of the instance.\n Raises:\n EC2CloudException: If the instance cannot be found.\n<END>", "<BEGIN>\n## `_get_user_data`", "Return formatted bash script string.", " The public ssh key is added by cloud init to the i...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the extract_archive API. 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 extract_archive API. 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...
Extract the archive in current path using the provided client. If extract_path is provided extract the archive there.
"Extract the archive in current path using the provided client.\n\n If extract_path is provided extract the archive there."
143
false
SUSE-Enceladus/ipa
extract_archive
23,964
LDU_FT/kennethreitz/requests-html/pq
LDU_FT
[ "<BEGIN>\n## `user_agent`", "Returns an apparently legit user-agent, if not requested one of a specific\n style. Defaults to a Chrome-style User-Agent.\n<END>", "<BEGIN>\n## `raw_html`", "Bytes representation of the HTML content.\n (`learn more <http://www.diveintopython3.net/strings.html>`_).\n<END...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the pq API. 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 docu...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the pq API. 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 docu...
`PyQuery <https://pythonhosted.org/pyquery/>`_ representation of the :class:`Element <Element>` or :class:`HTML <HTML>`.
"`PyQuery <https://pythonhosted.org/pyquery/>`_ representation\n of the :class:`Element <Element>` or :class:`HTML <HTML>`."
58
false
kennethreitz/requests-html
pq
23,965
LDU_FT/offu/WeRoBot/download_permanent_media
LDU_FT
[ "<BEGIN>\n## `make_view`", "为一个 BaseRoBot 生成 Flask view。", " Usage ::", " from werobot import WeRoBot", " robot = WeRoBot(token='token')", " @robot.handler\n def hello(message):\n return 'Hello World!'", " from flask import Flask\n from werobot.con...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the download_permanent_media API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the download_permanent_media API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio...
获取永久素材。 :param media_id: 媒体文件 ID :return: requests 的 Response 实例
"获取永久素材。\n\n :param media_id: 媒体文件 ID\n :return: requests 的 Response 实例"
223
false
offu/WeRoBot
download_permanent_media
23,966
LDU_FT/jlmadurga/permabots/get
LDU_FT
[ "<BEGIN>\n## `process`", "Render value_template of the parameter using context.", " :param context: Processing context\n<END>", "<BEGIN>\n## `post`", "Process Telegram webhook.\n 1. Serialize Telegram message\n 2. Get an enabled Telegram bot\n 3. Create :class:`Update...
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 list of Telegram bots --- serializer: TelegramBotSerializer responseMessages: - code: 401 message: Not authenticated
"Get list of Telegram bots\n ---\n serializer: TelegramBotSerializer\n responseMessages:\n - code: 401\n message: Not authenticated"
152
false
jlmadurga/permabots
get
23,967
LDU_FT/HazyResearch/fonduer/_check_opts
LDU_FT
[ "<BEGIN>\n## `construct_stable_id`", "Contruct a stable ID for a Context given its parent and its character\n offsets relative to the parent.\n<END>", "<BEGIN>\n## `split_stable_id`", "Split stable id, returning:", " * Document (root) stable ID\n * Context polymorphic type\n * Charac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _check_opts API. 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 _check_opts API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
Checks for unsupported opts, throws error if found NOTE: Must be called _after_ init()
"Checks for unsupported opts, throws error if found\n NOTE: Must be called _after_ init()"
540
false
HazyResearch/fonduer
_check_opts
23,968
LDU_FT/frostming/atoml/load
LDU_FT
[ "<BEGIN>\n## `dump`", "Write dict object into file", " :param obj: the object to be dumped into toml\n :param f: the file object\n :param preserve: optional flag to preserve the inline table in result\n<END>", "<BEGIN>\n## `dumps`", "Stringifies a dict as toml", " :param obj: the object to be ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
Load and parse toml from a file object An additional argument `dict_` is used to specify the output type
"Load and parse toml from a file object\n An additional argument `dict_` is used to specify the output type"
18
false
frostming/atoml
load
23,969
LDU_FT/openid/JWTConnect-Python-OidcService/construct
LDU_FT
[ "<BEGIN>\n## `request_object_encryption`", "Created an encrypted JSON Web token with *msg* as body.", " :param msg: The mesaqg\n :param service_context:\n :param kwargs:\n :return:\n<END>", "<BEGIN>\n## `construct_request_uri`", "Constructs a special redirect_uri to be used when communicating wi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the construct API. 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 construct API. 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...
Constructs a client assertion and signs it with a key. The request is modified as a side effect. :param request: The request :param service: A :py:class:`oidcservice.service.Service` instance :param http_args: HTTP arguments :param kwargs: Extra arguments :return: Constr...
"Constructs a client assertion and signs it with a key.\n The request is modified as a side effect.\n\n :param request: The request\n :param service: A :py:class:`oidcservice.service.Service` instance\n :param http_args: HTTP arguments\n :param kwargs: Extra arguments\n :return...
159
false
openid/JWTConnect-Python-OidcService
construct
23,970
LDU_FT/HdrHistogram/HdrHistogram_py/output_start_time
LDU_FT
[ "<BEGIN>\n## `init_counts`", "Called after instantiating with a compressed payload\n Params:\n counts_len counts size to use based on decoded settings in the header\n<END>", "<BEGIN>\n## `_decompress`", "Decompress a compressed payload into this payload wrapper.\n Note that the decomp...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the output_start_time API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the output_start_time API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Log a start time in the log. Params: start_time_msec time (in milliseconds) since the absolute start time (the epoch)
"Log a start time in the log.\n Params:\n start_time_msec time (in milliseconds) since the absolute start time (the epoch)"
71
false
HdrHistogram/HdrHistogram_py
output_start_time
23,971
LDU_FT/dwavesystems/dwave-cloud-client/get_solvers
LDU_FT
[ "<BEGIN>\n## `ls`", "List configuration files detected (and/or examined paths).\n<END>", "<BEGIN>\n## `create`", "Create and/or update cloud client configuration file.\n<END>", "<BEGIN>\n## `_ping`", "Helper method for the ping command that uses `output()` for info output\n and raises `CLIError()` on h...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_solvers API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_solvers API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
Return a filtered list of solvers handled by this client. Args: refresh (bool, default=False): Force refresh of cached list of solvers/properties. order_by (callable/str/None, default='avg_load'): Solver sorting key function (or :class:`Solver` attribute...
"Return a filtered list of solvers handled by this client.\n\n Args:\n refresh (bool, default=False):\n Force refresh of cached list of solvers/properties.\n\n order_by (callable/str/None, default='avg_load'):\n Solver sorting key function (or :class:`Solver` a...
339
false
dwavesystems/dwave-cloud-client
get_solvers
23,972