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/gregreen/dustmaps/deserialize_skycoord
LDU_FT
[ "<BEGIN>\n## `ascii2h5`", "Converts from the original ASCII format of the Chen+ (2014) 3D dust map to\n the HDF5 format.", " Args:\n dat_fname (:obj:`str`): Filename of the original ASCII .dat file.\n h5_fname (:obj:`str`): Output filename to write the resulting HDF5 file to.\n<END>", "<BE...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the deserialize_skycoord 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 deserialize_skycoord API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Deserializes a JSONified :obj:`astropy.coordinates.SkyCoord`. Args: d (:obj:`dict`): A dictionary representation of a :obj:`SkyCoord` object. Returns: A :obj:`SkyCoord` object.
"Deserializes a JSONified :obj:`astropy.coordinates.SkyCoord`.\n\n Args:\n d (:obj:`dict`): A dictionary representation of a :obj:`SkyCoord` object.\n\n Returns:\n A :obj:`SkyCoord` object."
220
false
gregreen/dustmaps
deserialize_skycoord
140,473
LDU_FT/Shizmob/pydle/is_same_channel
LDU_FT
[ "<BEGIN>\n## `on_ctcp_version`", "Built-in CTCP version as some networks seem to require it.\n<END>", "<BEGIN>\n## `on_raw_privmsg`", "Modify PRIVMSG to redirect CTCP messages.\n<END>", "<BEGIN>\n## `on_raw_notice`", "Modify NOTICE to redirect CTCP messages.\n<END>", "<BEGIN>\n## `_register`", "Hijack...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_same_channel API. 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 is_same_channel API. 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...
Check if given nicknames are equal in the server's case mapping.
"Check if given nicknames are equal in the server's case mapping."
96
false
Shizmob/pydle
is_same_channel
140,474
LDU_FT/nepalicalendar/nepalicalendar-py/check_valid_bs_range
LDU_FT
[ "<BEGIN>\n## `weekday`", "Returns the weekday of the date. 0 = aaitabar\n<END>", "<BEGIN>\n## `itermonthdates`", "Returns an iterator for the month in a year\n This iterator will return all days (as NepDate objects) for the month\n and all days before the start of the month or after the end of t...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the check_valid_bs_range API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the check_valid_bs_range API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Checks if the nepali date is in valid range for conversion
"Checks if the nepali date is in valid range for conversion"
22
false
nepalicalendar/nepalicalendar-py
check_valid_bs_range
140,475
LDU_FT/Naresh1318/crystal/get_projects
LDU_FT
[ "<BEGIN>\n## `adapt_array`", "http://stackoverflow.com/a/31312102/190597 (SoulNibbler)\n<END>", "<BEGIN>\n## `open_data_base_connection`", "Creates a connections to the crystal database.\n :param skip_dir_check: bool, True -> Skips checking database file and creates a new one if not present.\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_projects API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_projects API. 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...
Send a dictionary of projects that are available on the database. Usage description: This function is usually called to get and display the list of projects available in the database. :return: JSON, {<int_keys>: <project_name>}
"Send a dictionary of projects that are available on the database.\n\n Usage description:\n This function is usually called to get and display the list of projects available in the database.\n\n :return: JSON, {<int_keys>: <project_name>}"
52
false
Naresh1318/crystal
get_projects
140,476
LDU_FT/kmadac/bitstamp-python-client/_request
LDU_FT
[ "<BEGIN>\n## `_construct_url`", "Adds the orderbook to the url if base and quote are specified.\n<END>", "<BEGIN>\n## `_request`", "Make a generic request, adding in any proxy defined by the instance.", " Raises a ``requests.HTTPError`` if the response status isn't 200, and\n raises a :class:`...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _request API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _request API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
Make a generic request, adding in any proxy defined by the instance. Raises a ``requests.HTTPError`` if the response status isn't 200, and raises a :class:`BitstampError` if the response contains a json encoded error message.
"Make a generic request, adding in any proxy defined by the instance.\n\n Raises a ``requests.HTTPError`` if the response status isn't 200, and\n raises a :class:`BitstampError` if the response contains a json encoded\n error message."
47
false
kmadac/bitstamp-python-client
_request
140,477
LDU_FT/sharibarboza/py_zap/fetch_result
LDU_FT
[ "<BEGIN>\n## `get_title`", "Title is either the chart header for a cable ratings page or above\n the opening description for a broadcast ratings page.\n<END>", "<BEGIN>\n## `get_json`", "Serialize ratings object as JSON-formatted string\n<END>", "<BEGIN>\n## `_get_url_params`", "Returns a list of e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the fetch_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. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the fetch_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. The extr...
Return a list of urls for each search result.
"Return a list of urls for each search result."
59
false
sharibarboza/py_zap
fetch_result
140,478
LDU_FT/mozilla/popcoder/trim
LDU_FT
[ "<BEGIN>\n## `preprocess`", "Processes popcorn JSON and builds a sane data model out of it\n @param data : The popcorn editor project json blob\n<END>", "<BEGIN>\n## `parse_duration`", "Corrects for any offsets that may have been created by loop and skip\n events\n<END>", "<BEGIN>\n## `trim`",...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the trim API. 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 trim API. 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...
Trims a clip to be duration starting at start @param video_name : name of the input video @param out : name of the output video @param start : starting position after the trim @param duration : duration of video after start
"Trims a clip to be duration starting at start\n @param video_name : name of the input video\n @param out : name of the output video\n @param start : starting position after the trim\n @param duration : duration of video after start"
16
false
mozilla/popcoder
trim
140,479
LDU_FT/Parsl/libsubmit/cancel
LDU_FT
[ "<BEGIN>\n## `_status`", "Internal: Do not call. Returns the status list for a list of job_ids", " Args:\n self", " Returns:\n [status...] : Status list of all jobs\n<END>", "<BEGIN>\n## `submit`", "Submits the command onto an Local Resource Manager job of blocksize...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the cancel API. 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 cancel API. 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 ...
Cancel jobs specified by a list of job ids. Parameters ---------- list of str List of identifiers of jobs which should be canceled. Returns ------- list of bool For each entry, True if the cancel operation is successful, otherwise False.
"Cancel jobs specified by a list of job ids.\n\n Parameters\n ----------\n list of str\n List of identifiers of jobs which should be canceled.\n\n Returns\n -------\n list of bool\n For each entry, True if the cancel operation is successful, otherwise Fals...
99
false
Parsl/libsubmit
cancel
140,480
LDU_FT/cnschema/cdata/json_dict_copy
LDU_FT
[ "<BEGIN>\n## `wikidata_get`", "https://www.wikidata.org/wiki/Special:EntityData/P248.json\n<END>", "<BEGIN>\n## `wikidata_search`", "wikification: search wikipedia pages for the given query\n https://www.wikidata.org/w/api.php?action=help&modules=wbsearchentities", " result format\n {\n...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the json_dict_copy API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the json_dict_copy API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
property_list = [ { "name":"name", "alternateName": ["name","title"]}, { "name":"birthDate", "alternateName": ["dob","dateOfBirth"] }, { "name":"description" } ]
"property_list = [\n { \"name\":\"name\", \"alternateName\": [\"name\",\"title\"]},\n { \"name\":\"birthDate\", \"alternateName\": [\"dob\",\"dateOfBirth\"] },\n { \"name\":\"description\" }\n ]"
29
false
cnschema/cdata
json_dict_copy
140,481
LDU_FT/michaelaye/pyciss/create_request_with_query
LDU_FT
[ "<BEGIN>\n## `get_config`", "Read the configfile and return config dict.", " Returns\n -------\n dict\n Dictionary with the content of the configpath file.\n<END>", "<BEGIN>\n## `set_database_path`", "Use to write the database path into the config.", " Parameters\n ----------\n db...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_request_with_query API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_request_with_query API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi...
api/data.[fmt], api/images/[size].[fmt] api/files.[fmt] kind = ['data', 'images', 'files']
"api/data.[fmt], api/images/[size].[fmt] api/files.[fmt]\n\n kind = ['data', 'images', 'files']"
83
false
michaelaye/pyciss
create_request_with_query
140,482
LDU_FT/nyrkovalex/httpsrv/on
LDU_FT
[ "<BEGIN>\n## `status`", "Respond with given status and no content", " :type status: int\n :param status: status code to return", " :type headers: dict\n :param headers: dictionary of headers to add to response", " :returns: itself\n :rtype: Rule\n<END>", "<BEGIN>\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the on API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted docu...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the on API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted docu...
Sends response to matching parameters one time and removes it from list of expectations :type method: str :param method: request method: ``'GET'``, ``'POST'``, etc. can be some custom string :type path: str :param path: request path including query parameters :type headers: di...
"Sends response to matching parameters one time and removes it from list of expectations\n\n :type method: str\n :param method: request method: ``'GET'``, ``'POST'``, etc. can be some custom string\n\n :type path: str\n :param path: request path including query parameters\n\n :type he...
49
false
nyrkovalex/httpsrv
on
140,483
LDU_FT/mandiant/ioc_writer/make_processitem_username
LDU_FT
[ "<BEGIN>\n## `get_embedded_yara`", "Extract YARA signatures embedded in Yara/Yara indicatorItem nodes.\n This is done regardless of logic structure in the OpenIOC.\n<END>", "<BEGIN>\n## `get_yara_condition_string`", "get_yara_condition_string", " input\n indicator_node: this is the ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the make_processitem_username API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the make_processitem_username API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi...
Create a node for ProcessItem/Username :return: A IndicatorItem represented as an Element node
"Create a node for ProcessItem/Username\n \n :return: A IndicatorItem represented as an Element node"
320
false
mandiant/ioc_writer
make_processitem_username
140,484
LDU_FT/amanusk/s-tui/get_label_scale
LDU_FT
[ "<BEGIN>\n## `get_label_scale`", "Dynamically change the scale of the graph (y lable)\n<END>", "<BEGIN>\n## `calculate_bar_widths`", "Return a list of bar widths, one for each bar in data.", " If self.bar_width is None this implementation will stretch\n the bars across the available space spec...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_label_scale API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_label_scale API. 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...
Dynamically change the scale of the graph (y lable)
"Dynamically change the scale of the graph (y lable)"
70
false
amanusk/s-tui
get_label_scale
140,485
LDU_FT/MacHu-GWU/pymongo_mate-project/_str2datetime
LDU_FT
[ "<BEGIN>\n## `read_csv_arg_preprocess`", "Automatically decide if we need to use iterator mode to read a csv file.", " :param abspath: csv file absolute path.\n :param memory_usage: max memory will be used for pandas.read_csv().\n<END>", "<BEGIN>\n## `smart_insert`", "An optimized Insert strategy.", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _str2datetime API. 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 _str2datetime API. 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...
Parse datetime from string. If no template matches this string, raise Error. Please go https://github.com/MacHu-GWU/rolex-project/issues submit your datetime string. I 'll update templates asap. This method is faster than :meth:`dateutil.parser.parse`. :param datetimestr: a str...
"Parse datetime from string. If no template matches this string,\n raise Error. Please go\n https://github.com/MacHu-GWU/rolex-project/issues\n submit your datetime string. I 'll update templates asap.\n\n This method is faster than :meth:`dateutil.parser.parse`.\n\n :param datetimest...
188
false
MacHu-GWU/pymongo_mate-project
_str2datetime
140,486
LDU_FT/conchoecia/gloTK/_check_errors
LDU_FT
[ "<BEGIN>\n## `meraculous_runner`", "Check to make sure that the allAssembliesDir has been created, if not,\n make it. This will only execute for the first time an assembly has been\n run in this directory.", " Run the directory from allAssembliesDir. The self.callString instance\n at...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _check_errors API. 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 _check_errors API. 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...
Call this function after parsing the args to see if there are any errors in the way things are input. Specifically for glotk-sweep, make sure that all of the parameters for sweep have arguemnts if at least one does.
"Call this function after parsing the args to see if there are any\n errors in the way things are input. Specifically for glotk-sweep, make\n sure that all of the parameters for sweep have arguemnts if at least one\n does."
73
false
conchoecia/gloTK
_check_errors
140,487
LDU_FT/crossbario/txaio-etcd/lease
LDU_FT
[ "<BEGIN>\n## `status`", "Get etcd status.", " :param timeout: Request timeout in seconds.\n :type timeout: int", " :returns: The current etcd cluster status.\n :rtype: instance of :class:`txaioetcd.Status`\n<END>", "<BEGIN>\n## `set`", "Set the value for the key in the key-valu...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the lease API. 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 lease API. 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...
Creates a lease which expires if the server does not receive a keep alive within a given time to live period. All keys attached to the lease will be expired and deleted if the lease expires. Each expired key generates a delete event in the event history. :param time_to_live: T...
"Creates a lease which expires if the server does not\n receive a keep alive within a given time to live period.\n\n All keys attached to the lease will be expired and deleted if\n the lease expires.\n\n Each expired key generates a delete event in the event history.\n\n :param time_t...
110
false
crossbario/txaio-etcd
lease
140,488
LDU_FT/jkitzes/macroeco/_decdeg_distance
LDU_FT
[ "<BEGIN>\n## `get_theme_dir`", "Returns path to directory containing this package's theme.", " This is designed to be used when setting the ``html_theme_path``\n option within Sphinx's ``conf.py`` file.\n<END>", "<BEGIN>\n## `_geom_solve_p_from_mu`", "For the geom_uptrunc, given mu and b, return p.\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _decdeg_distance API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _decdeg_distance API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Earth surface distance (in km) between decimal latlong points using Haversine approximation. http://stackoverflow.com/questions/15736995/ how-can-i-quickly-estimate-the-distance-between-two-latitude-longitude- points
"Earth surface distance (in km) between decimal latlong points using\n Haversine approximation.\n\n http://stackoverflow.com/questions/15736995/\n how-can-i-quickly-estimate-the-distance-between-two-latitude-longitude-\n points"
337
false
jkitzes/macroeco
_decdeg_distance
140,489
LDU_FT/deep-compute/deeputil/FunctionTimer
LDU_FT
[ "<BEGIN>\n## `FunctionTimer`", "To check execution time of a function\n borrowed from https://medium.com/pythonhive/python-decorator-to-measure-the-execution-time-of-methods-fa04cb6bb36d", " >>> def logger(details, args, kwargs): #some function that uses the time output\n ... print(details)\n .....
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the FunctionTimer API. 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 FunctionTimer API. 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...
To check execution time of a function borrowed from https://medium.com/pythonhive/python-decorator-to-measure-the-execution-time-of-methods-fa04cb6bb36d >>> def logger(details, args, kwargs): #some function that uses the time output ... print(details) ... >>> @FunctionTimer(on_done= logger) ...
"To check execution time of a function\n borrowed from https://medium.com/pythonhive/python-decorator-to-measure-the-execution-time-of-methods-fa04cb6bb36d\n\n >>> def logger(details, args, kwargs): #some function that uses the time output\n ... print(details)\n ...\n >>> @FunctionTimer(on_done= logg...
68
false
deep-compute/deeputil
FunctionTimer
140,490
LDU_FT/OnroerendErfgoed/crabpy_pyramid/item_wegobject_adapter
LDU_FT
[ "<BEGIN>\n## `range_return`", "Determine what range of objects to return.", " Will check fot both `Range` and `X-Range` headers in the request and\n set both `Content-Range` and 'X-Content-Range' headers.", " :rtype: list\n<END>", "<BEGIN>\n## `set_http_caching`", "Set an HTTP Cache Control heade...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the item_wegobject_adapter 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 item_wegobject_adapter API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
Adapter for rendering a list of :class:`crabpy.gateway.Wegobject` to json.
"Adapter for rendering a list of\n :class:`crabpy.gateway.Wegobject` to json."
72
false
OnroerendErfgoed/crabpy_pyramid
item_wegobject_adapter
140,491
LDU_FT/bookieio/breadability/is_unlikely_node
LDU_FT
[ "<BEGIN>\n## `check_node_attributes`", "Searches match in attributes against given pattern and if\n finds the match against any of them returns True.\n<END>", "<BEGIN>\n## `generate_hash_id`", "Generates a hash_id for the node in question.", " :param node: lxml etree node\n<END>", "<BEGIN>\n## `get_...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_unlikely_node API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_unlikely_node API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Short helper for checking unlikely status. If the class or id are in the unlikely list, and there's not also a class/id in the likely list then it might need to be removed.
"Short helper for checking unlikely status.\n\n If the class or id are in the unlikely list, and there's not also a\n class/id in the likely list then it might need to be removed."
48
false
bookieio/breadability
is_unlikely_node
140,492
LDU_FT/twisted/epsilon/record
LDU_FT
[ "<BEGIN>\n## `main`", "Create a private key and a certificate and write them to a file.\n<END>", "<BEGIN>\n## `setTimeout`", "Change the timeout period", " @type period: C{int} or C{NoneType}\n @param period: The period, in seconds, to change the timeout to, or\n C{None} to disable the ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the record API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the record API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Are you tired of typing class declarations that look like this:: class StuffInfo: def __init__(self, a=None, b=None, c=None, d=None, e=None, f=None, g=None, h=None, i=None, j=None): self.a = a self.b = b self.c = c ...
"Are you tired of typing class declarations that look like this::\n\n class StuffInfo:\n def __init__(self, a=None, b=None, c=None, d=None, e=None,\n f=None, g=None, h=None, i=None, j=None):\n self.a = a\n self.b = b\n self.c = c\n ...
217
false
twisted/epsilon
record
140,493
LDU_FT/nschloe/colorio/spectrum_to_xyz100
LDU_FT
[ "<BEGIN>\n## `build_grad_matrices`", "Build the sparse m-by-n matrices that map a coefficient set for a function in V\n to the values of dx and dy at a number m of points.\n<END>", "<BEGIN>\n## `apply_M`", "Linear operator that converts ax, ay to abcd.\n<END>", "<BEGIN>\n## `cost_min2`", "Residual form...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the spectrum_to_xyz100 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 spectrum_to_xyz100 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...
Computes the tristimulus values XYZ from a given spectrum for a given observer via X_i = int_lambda spectrum_i(lambda) * observer_i(lambda) dlambda. In section 7, the technical report CIE Standard Illuminants for Colorimetry, 1999, gives a recommendation on how to perform the computation.
"Computes the tristimulus values XYZ from a given spectrum for a given\n observer via\n\n X_i = int_lambda spectrum_i(lambda) * observer_i(lambda) dlambda.\n\n In section 7, the technical report CIE Standard Illuminants for\n Colorimetry, 1999, gives a recommendation on how to perform the\n computation."
35
false
nschloe/colorio
spectrum_to_xyz100
140,494
LDU_FT/mbarakaja/braulio/bump_option_validator
LDU_FT
[ "<BEGIN>\n## `commit_analyzer`", "Analyzes a list of :class:`~braulio.git.Commit` objects searching for\n messages that match a given message convention and extract metadata from\n them.", " A message convention is determined by ``label_pattern``, which is not a\n regular expression pattern. Instead...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the bump_option_validator API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the bump_option_validator API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
In case a value is provided checks that it is a valid version string. If is not thrown :class:`click.UsageError`. Return a :class:`~braulio.version.Version` object or **None**.
"In case a value is provided checks that it is a valid version string. If\n is not thrown :class:`click.UsageError`.\n\n Return a :class:`~braulio.version.Version` object or **None**."
35
false
mbarakaja/braulio
bump_option_validator
140,495
LDU_FT/ThePlasmaRailgun/py-rolldice/roll_group
LDU_FT
[ "<BEGIN>\n## `safe_power`", "Same power of a ^ b\n :param a: Number a\n :param b: Number b\n :return: a ^ b\n<END>", "<BEGIN>\n## `rabin_miller`", "Performs a rabin-miller primality test", " :param p: Number to test\n :return: Bool of whether num is prime\n<END>", "<BEGIN>\n## `zero_width_s...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the roll_group API. 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 roll_group API. 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...
Rolls a group of dice in 2d6, 3d10, d12, etc. format :param group: String of dice group :return: Array of results
"Rolls a group of dice in 2d6, 3d10, d12, etc. format\n\n :param group: String of dice group\n :return: Array of results"
41
false
ThePlasmaRailgun/py-rolldice
roll_group
140,496
LDU_FT/dwwkelly/note/getByTime
LDU_FT
[ "<BEGIN>\n## `check_auth`", "This function is called to check if a username /\n password combination is valid.\n<END>", "<BEGIN>\n## `scrubID`", ":param ID: An ID that can be of various types, this is very kludgy\n :returns: An integer ID\n<END>", "<BEGIN>\n## `which`", ":param bin_name: the nam...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the getByTime API. 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 getByTime API. 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...
:desc: Get all the notes in the given time window :param int startTime: The begining of the window :param int endTime: The end of the window :returns: A list of IDs :ravl: list
":desc: Get all the notes in the given time window\n :param int startTime: The begining of the window\n :param int endTime: The end of the window\n :returns: A list of IDs\n :ravl: list"
46
false
dwwkelly/note
getByTime
140,497
LDU_FT/openstax/cnx-archive/utf8
LDU_FT
[ "<BEGIN>\n## `redirect_legacy_content`", "Redirect from legacy /content/id/version to new /contents/uuid@version.", " Handles collection context (book) as well.\n<END>", "<BEGIN>\n## `robots`", "Return a simple \"don't index me\" robots.txt file.\n<END>", "<BEGIN>\n## `_get_sql`", "Returns the conten...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the utf8 API. 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 utf8 API. 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...
Change all python2 str/bytes instances to unicode/python3 str.
"Change all python2 str/bytes instances to unicode/python3 str."
208
false
openstax/cnx-archive
utf8
140,498
LDU_FT/utiasSTARS/pykitti/load_oxts_packets_and_poses
LDU_FT
[ "<BEGIN>\n## `to_array_list`", "Converts a dataframe to a list of arrays, with one array for every unique index entry.\n Index is assumed to be 0-based contiguous. If there is a missing index entry, an empty\n numpy array is returned for it.\n Elements in the arrays are sorted by their id.\n :param df...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load_oxts_packets_and_poses API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclu...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load_oxts_packets_and_poses API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclu...
Generator to read OXTS ground truth data. Poses are given in an East-North-Up coordinate system whose origin is the first GPS position.
"Generator to read OXTS ground truth data.\n\n Poses are given in an East-North-Up coordinate system \n whose origin is the first GPS position."
25
false
utiasSTARS/pykitti
load_oxts_packets_and_poses
140,499
LDU_FT/google/flatbuffers/PrependUOffsetTRelativeSlot
LDU_FT
[ "<BEGIN>\n## `compare_version`", "Compare two version number strings of the form W.X.Y.Z.", " The numbers are compared most-significant to least-significant.\n For example, 12.345.67.89 > 2.987.88.99.", " Args:\n a: First version number string to compare\n b: Second version number string to compare",...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the PrependUOffsetTRelativeSlot API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclu...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the PrependUOffsetTRelativeSlot API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclu...
PrependUOffsetTRelativeSlot prepends an UOffsetT onto the object at vtable slot `o`. If value `x` equals default `d`, then the slot will be set to zero and no other data will be written.
"PrependUOffsetTRelativeSlot prepends an UOffsetT onto the object at\n vtable slot `o`. If value `x` equals default `d`, then the slot will\n be set to zero and no other data will be written."
83
false
google/flatbuffers
PrependUOffsetTRelativeSlot
140,500
LDU_FT/pmacosta/ptrie/_search_tree
LDU_FT
[ "<BEGIN>\n## `_create_intermediate_nodes`", "Create intermediate nodes if hierarchy does not exist.\n<END>", "<BEGIN>\n## `_delete_subtree`", "Delete subtree private method.", " No argument validation and usage of getter/setter private methods is\n used for speed\n<END>", "<BEGIN>\n## `_prt`...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _search_tree API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _search_tree API. 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...
Search_tree for nodes that contain a specific hierarchy name.
"Search_tree for nodes that contain a specific hierarchy name."
166
false
pmacosta/ptrie
_search_tree
140,501
LDU_FT/Naught0/lolrune/_get
LDU_FT
[ "<BEGIN>\n## `parse_rune_links`", "A function which parses the main Runeforge website into dict format.", " Parameters\n ----------\n html : str\n The string representation of the html obtained via a GET request.", " Returns\n -------\n dict\n The nested rune_links champ rune p...
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 do...
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 do...
A small wrapper method which makes a quick GET request Parameters ---------- url : str The URL to get. Returns ------- str The raw html of the requested page. Raises ------ RuneConnectionError If the GET respo...
"A small wrapper method which makes a quick GET request\n\n Parameters\n ----------\n url : str\n The URL to get.\n\n Returns\n -------\n str\n The raw html of the requested page.\n\n Raises\n ------\n RuneConnectionError\n ...
34
false
Naught0/lolrune
_get
140,502
LDU_FT/6809/dragonlib/pformat_program_dump
LDU_FT
[ "<BEGIN>\n## `bin2hexline`", "Format binary data to a Hex-Editor like format...", " >>> data = bytearray([i for i in range(256)])\n >>> print('\\\\n'.join(bin2hexline(data, width=16)))\n 0000 00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f ................\n 0016 10 11 12 13 14 15 16 17 18 19 1a 1b ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the pformat_program_dump API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the pformat_program_dump API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
format a BASIC program dump. Useful for debugging. returns a list of formated string lines.
"format a BASIC program dump. Useful for debugging.\n returns a list of formated string lines."
63
false
6809/dragonlib
pformat_program_dump
140,503
LDU_FT/ARMmbed/mbed-connector-api-python/getResourceValue
LDU_FT
[ "<BEGIN>\n## `getConnectorVersion`", "GET the current Connector version.", "\t\t:returns: asyncResult object, populates error and result fields\n\t\t:rtype: asyncResult\n<END>", "<BEGIN>\n## `getEndpoints`", "Get list of all endpoints on the domain.", "\t\t:param str typeOfEndpoint: Optional filter endpo...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the getResourceValue API. 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 getResourceValue API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Get value of a specific resource on a specific endpoint. :param str ep: name of endpoint :param str res: name of resource :param fnptr cbfn: Optional - callback function to be called on completion :param bool noResp: Optional - specify no response necessary from endpoint :param bool cacheOnly: Optional - g...
"Get value of a specific resource on a specific endpoint.\n\t\t\n\t\t:param str ep: name of endpoint\n\t\t:param str res: name of resource\n\t\t:param fnptr cbfn: Optional - callback function to be called on completion\n\t\t:param bool noResp: Optional - specify no response necessary from endpoint\n\t\t:param bool cach...
56
false
ARMmbed/mbed-connector-api-python
getResourceValue
140,504
LDU_FT/bwengals/ccsnmultivar/run_encoder
LDU_FT
[ "<BEGIN>\n## `_inner_product`", "Compute inner product between two time domain waveforms, weighted by noisecurve.\n<END>", "<BEGIN>\n## `_overlap`", "returns the detector noise weighted inner product\n<END>", "<BEGIN>\n## `_run_arguement_object_fits`", "This function fits objects passed to Multivar, guara...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the run_encoder API. 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 run_encoder API. 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...
run the encoder on a supplied param_dict
"run the encoder on a supplied param_dict"
82
false
bwengals/ccsnmultivar
run_encoder
140,505
LDU_FT/postlund/pyatv/read_variant
LDU_FT
[ "<BEGIN>\n## `lookup_tag`", "Look up a tag based on its key. Returns a DmapTag.\n<END>", "<BEGIN>\n## `scan_for_apple_tvs`", "Scan for Apple TVs using zeroconf (bonjour) and returns them.\n<END>", "<BEGIN>\n## `add_service`", "Handle callback from zeroconf when a service has been discovered.\n<END>", "<...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the read_variant API. 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 read_variant API. 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...
Read and parse a binary protobuf variant value.
"Read and parse a binary protobuf variant value."
146
false
postlund/pyatv
read_variant
140,506
LDU_FT/ArchiveTeam/wpull/cookie_length
LDU_FT
[ "<BEGIN>\n## `_update_exit_code_from_stats`", "Set the current exit code based on the Statistics.\n<END>", "<BEGIN>\n## `is_response`", "Return whether the document is likely to be a Sitemap.\n<END>", "<BEGIN>\n## `is_file`", "Return whether the file is likely a Sitemap.\n<END>", "<BEGIN>\n## `parse_url...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the cookie_length API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the cookie_length API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
Return approximate length of all cookie key-values for a domain.
"Return approximate length of all cookie key-values for a domain."
896
false
ArchiveTeam/wpull
cookie_length
140,507
LDU_FT/MonashBI/arcana/run
LDU_FT
[ "<BEGIN>\n## `satisfy`", "Checks whether the given requirements are satisfiable within the given\n execution context", " Parameter\n ---------\n requirements : list(Requirement)\n List of requirements to check whether they are satisfiable\n<END>", "<BEGIN>\n## `connect`"...
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...
Connects all pipelines to that study's repository and runs them in the same NiPype workflow Parameters ---------- pipeline(s) : Pipeline, ... The pipeline to connect to repository required_outputs : list[set[str]] A set of required outputs for each pipeli...
"Connects all pipelines to that study's repository and runs them\n in the same NiPype workflow\n\n Parameters\n ----------\n pipeline(s) : Pipeline, ...\n The pipeline to connect to repository\n required_outputs : list[set[str]]\n A set of required outputs for ea...
275
false
MonashBI/arcana
run
140,508
LDU_FT/chop-dbhi/varify-data-warehouse/record_is_valid
LDU_FT
[ "<BEGIN>\n## `read`", "Reads up to size bytes, but always completes the last line.\n<END>", "<BEGIN>\n## `readline`", "The size is ignored since a complete line must be read.\n<END>", "<BEGIN>\n## `process_line`", "Process a single record. This assumes only a single sample output.\n<END>", "<BEGIN>\n## ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the record_is_valid API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the record_is_valid API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
Checks if a record is valid for processing.
"Checks if a record is valid for processing."
53
false
chop-dbhi/varify-data-warehouse
record_is_valid
140,509
LDU_FT/metric-learn/metric-learn/transform
LDU_FT
[ "<BEGIN>\n## `fit`", "Create constraints from labels and learn the LSML model.", " Parameters\n ----------\n X : (n x d) matrix\n Input data, where each row corresponds to a single instance.", " y : (n) array-like\n Data labels.", " random_state : numpy.random.RandomState, optio...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the transform API. 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 transform API. 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...
Embeds data points in the learned linear embedding space. Transforms samples in ``X`` into ``X_embedded``, samples inside a new embedding space such that: ``X_embedded = X.dot(L.T)``, where ``L`` is the learned linear transformation (See :class:`MahalanobisMixin`). Parameters ---------- X : `n...
"Embeds data points in the learned linear embedding space.\n\n Transforms samples in ``X`` into ``X_embedded``, samples inside a new\n embedding space such that: ``X_embedded = X.dot(L.T)``, where ``L`` is\n the learned linear transformation (See :class:`MahalanobisMixin`).\n\n Parameters\n ----------\n ...
132
false
metric-learn/metric-learn
transform
140,510
LDU_FT/rraadd88/rohan/get_go_info
LDU_FT
[ "<BEGIN>\n## `dqueries2queriessam`", "Aligns queries to genome and gets SAM file\n step#1", " :param cfg: configuration dict\n :param dqueries: dataframe of queries\n<END>", "<BEGIN>\n## `queriessam2dalignbed`", "Processes SAM file to get the genomic coordinates in BED format\n step#2", " :...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_go_info API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_go_info API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
quickgo result: 'name','definition','synonyms' {'numberOfHits': 1, 'results': [{'id': 'GO:0000006', 'isObsolete': False, 'name': 'high-affinity zinc transmembrane transporter activity', 'definition': {'text': 'Enables the transfer of zinc ions (Zn2+) from one side of a membrane to the other, prob...
"quickgo\n result: 'name','definition','synonyms'\n \n {'numberOfHits': 1,\n 'results': [{'id': 'GO:0000006',\n 'isObsolete': False,\n 'name': 'high-affinity zinc transmembrane transporter activity',\n 'definition': {'text': 'Enables the transfer of zinc ions (Zn2+) from one side of a membrane to the oth...
124
false
rraadd88/rohan
get_go_info
140,511
LDU_FT/thomwiggers/httpserver/_write_response
LDU_FT
[ "<BEGIN>\n## `_get_response`", "Get a template response", " Use kwargs to add things to the dictionary\n<END>", "<BEGIN>\n## `_write_transport`", "Convenience function to write to the transport\n<END>", "<BEGIN>\n## `_write_response`", "Write the response back to the client", " Arguments:\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _write_response API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _write_response API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
Write the response back to the client Arguments: response -- the dictionary containing the response.
"Write the response back to the client\n\n Arguments:\n response -- the dictionary containing the response."
25
false
thomwiggers/httpserver
_write_response
140,512
LDU_FT/aio-libs/multidict/getall
LDU_FT
[ "<BEGIN>\n## `getall`", "Return a list of all values matching the key.\n<END>", "<BEGIN>\n## `extend`", "Extend current MultiDict with more values.", " This method must be used instead of update.\n<END>", "<BEGIN>\n## `setdefault`", "Return value for key, set value to default if key is not presen...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the getall API. 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 getall API. 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 list of all values matching the key.
"Return a list of all values matching the key."
17
false
aio-libs/multidict
getall
140,513
LDU_FT/OCR-D/core/parseString
LDU_FT
[ "<BEGIN>\n## `xmllint_format`", "Pretty-print XML like ``xmllint`` does.", " Arguments:\n xml (string): Serialized XML\n<END>", "<BEGIN>\n## `download_to_directory`", "Download a file to the workspace.", " Early Shortcut: If url is a file://-URL and that file is already in the directory, ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parseString API. 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 parseString API. 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...
Parse a string, create the object tree, and export it. Arguments: - inString -- A string. This XML fragment should not start with an XML declaration containing an encoding. - silence -- A boolean. If False, export the object. Returns -- The root object in the tree.
"Parse a string, create the object tree, and export it.\n\n Arguments:\n - inString -- A string. This XML fragment should not start\n with an XML declaration containing an encoding.\n - silence -- A boolean. If False, export the object.\n Returns -- The root object in the tree."
176
false
OCR-D/core
parseString
140,514
LDU_FT/ghukill/pyfc4/_handle_object
LDU_FT
[ "<BEGIN>\n## `_post_create`", "resource.create() hook", "\t\tFor PCDM Collections, post creation, also create\n<END>", "<BEGIN>\n## `get_related`", "get ore:aggregates for this resource, optionally retrieving resource payload", "\t\tArgs:\n\t\t\tretrieve (bool): if True, issue .refresh() on resource there...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _handle_object API. 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 _handle_object API. 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...
Method to handle possible values passed for adding, removing, modifying triples. Detects type of input and sets appropriate http://www.w3.org/2001/XMLSchema# datatype Args: object_input (str,int,datetime,): many possible inputs Returns: (rdflib.term.Literal): with appropriate datatype attribute
"Method to handle possible values passed for adding, removing, modifying triples.\n\t\tDetects type of input and sets appropriate http://www.w3.org/2001/XMLSchema# datatype\n\n\t\tArgs:\n\t\t\tobject_input (str,int,datetime,): many possible inputs\n\n\t\tReturns:\n\t\t\t(rdflib.term.Literal): with appropriate datatype ...
203
false
ghukill/pyfc4
_handle_object
140,515
LDU_FT/adamcharnock/django-hordak/account_balance_before
LDU_FT
[ "<BEGIN>\n## `ratio_split`", "Split in_value according to the ratios specified in `ratios`", " This is special in that it ensures the returned values always sum to\n in_value (i.e. we avoid losses or gains due to rounding errors). As a\n result, this method returns a list of `Decimal` values with lengt...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the account_balance_before 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 account_balance_before API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
Get the balance of the account associated with this leg before the transaction
"Get the balance of the account associated with this leg before the transaction"
84
false
adamcharnock/django-hordak
account_balance_before
140,516
LDU_FT/digidotcom/python-wvalib/clear
LDU_FT
[ "<BEGIN>\n## `emit_event`", "Emit the specified event (notify listeners)\n<END>", "<BEGIN>\n## `enable`", "Enable the stream thread", " This operation will ensure that the thread that is responsible\n for connecting to the WVA and triggering event callbacks is started.\n This thread wil...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the clear API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the clear API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
Remove all registered subscriptions Example: \b $ wva subscriptions clear Deleting engineload... Done Deleting fuelrate... Done Deleting throttle... Done Deleting rpm... Done Deleting speedy... Done To remove a specific subscription, use 'wva subscription remove <name>' instead.
"Remove all registered subscriptions\n\nExample:\n\n\\b\n $ wva subscriptions clear\n Deleting engineload... Done\n Deleting fuelrate... Done\n Deleting throttle... Done\n Deleting rpm... Done\n Deleting speedy... Done\n\nTo remove a specific subscription, use 'wva subscription remove <name>' instead....
103
false
digidotcom/python-wvalib
clear
140,517
LDU_FT/observermedia/django-wordpress-rest/process_posts_response
LDU_FT
[ "<BEGIN>\n## `load_post_webhook`", "Webhook to insert/update a WordPress.com post on the local Django site.\n Call this after making changes to the post in WP Admin.\n The post is processed asynchronously so that a response can be returned to WordPress.com immediately.", " :param request: Should contai...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the process_posts_response API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the process_posts_response API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
Insert / update all posts in a posts list response, in batches. :param response: a response that contains a list of posts from the WP API :param path: the path we're using to get the list of posts (for subsquent pages) :param params: the path we're using to get the list of posts (for subsquent ...
"Insert / update all posts in a posts list response, in batches.\n\n :param response: a response that contains a list of posts from the WP API\n :param path: the path we're using to get the list of posts (for subsquent pages)\n :param params: the path we're using to get the list of posts (for subsq...
100
false
observermedia/django-wordpress-rest
process_posts_response
140,518
LDU_FT/Yelp/kafka-utils/merge_partition_offsets
LDU_FT
[ "<BEGIN>\n## `get_assignment`", "Parse the given json plan in dict format.\n<END>", "<BEGIN>\n## `_send_consumer_aware_request`", "Send a list of requests to the consumer coordinator for the group\n specified using the supplied encode/decode functions. As the payloads\n that use consumer-aware r...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the merge_partition_offsets 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 merge_partition_offsets API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion...
Merge the partition offsets of a single topic from multiple responses. :param partition_offsets: list of dict partition: offset :returns: dict partition: offset
"Merge the partition offsets of a single topic from multiple responses.\n\n :param partition_offsets: list of dict partition: offset\n :returns: dict partition: offset"
538
false
Yelp/kafka-utils
merge_partition_offsets
140,519
LDU_FT/benhoff/vexbot/_name_helper
LDU_FT
[ "<BEGIN>\n## `main`", "`kwargs`:", " `configuration_filepath`: filepath for the `ini` configuration\n<END>", "<BEGIN>\n## `get_addresses`", "parses a raw list from zmq to get back the components that are the address\n messages are broken by the addresses in the beginning and then the\n message,...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _name_helper API. 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 _name_helper API. 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...
default to returning a name with `.service`
"default to returning a name with `.service`"
68
false
benhoff/vexbot
_name_helper
140,520
LDU_FT/wummel/linkchecker/timed
LDU_FT
[ "<BEGIN>\n## `start_output`", "Write start of checking info as gml comment.\n<END>", "<BEGIN>\n## `getaddresses`", "Return list of email addresses from given field value.\n<END>", "<BEGIN>\n## `build_url`", "Call super.build_url(), extract list of mail addresses from URL,\n and check their syntax.\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the timed API. 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 timed API. 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...
Decorator to run a function with timing info.
"Decorator to run a function with timing info."
1,377
true
wummel/linkchecker
timed
140,521
LDU_FT/sqreen/PyMiniRacer/is_unicode
LDU_FT
[ "<BEGIN>\n## `ensure_v8_src`", "Ensure that v8 src are presents and up-to-date\n<END>", "<BEGIN>\n## `is_unicode`", "Check if a value is a valid unicode string, compatible with python 2 and python 3", " >>> is_unicode(u'foo')\n True\n >>> is_unicode(u'✌')\n True\n >>> is_unicode(b'foo')\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_unicode API. 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 is_unicode API. 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...
Check if a value is a valid unicode string, compatible with python 2 and python 3 >>> is_unicode(u'foo') True >>> is_unicode(u'✌') True >>> is_unicode(b'foo') False >>> is_unicode(42) False >>> is_unicode(('abc',)) False
"Check if a value is a valid unicode string, compatible with python 2 and python 3\n\n >>> is_unicode(u'foo')\n True\n >>> is_unicode(u'✌')\n True\n >>> is_unicode(b'foo')\n False\n >>> is_unicode(42)\n False\n >>> is_unicode(('abc',))\n False"
15
false
sqreen/PyMiniRacer
is_unicode
140,522
LDU_FT/fchauvel/MAD/p_queue
LDU_FT
[ "<BEGIN>\n## `_execute`", "This method is ASSIGNED during the evaluation to control how to resume it once it has been paused\n<END>", "<BEGIN>\n## `of_think`", "Simulate the worker processing the task for the specified amount of time.\n The worker is not released and the task is not paused.\n<END>", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the p_queue API. 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 p_queue API. 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...
queue : QUEUE COLON LIFO | QUEUE COLON FIFO
"queue : QUEUE COLON LIFO\n | QUEUE COLON FIFO"
34
false
fchauvel/MAD
p_queue
140,523
LDU_FT/kylejusticemagnuson/pyti/percent_bandwidth
LDU_FT
[ "<BEGIN>\n## `band_width`", "Bandwidth.", " Formula:\n BW = SMA(H - L)\n<END>", "<BEGIN>\n## `center_band`", "Center Band.", " Formula:\n CB = SMA(TP)\n<END>", "<BEGIN>\n## `upper_band`", "Upper Band.", " Formula:\n UB = CB + BW\n<END>", "<BEGIN>\n## `lower_band`", "Lower Band....
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the percent_bandwidth API. 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 percent_bandwidth API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Percent Bandwidth. Formula: %_bw = data() - l_bb() / bb_range()
"Percent Bandwidth.\n\n Formula:\n %_bw = data() - l_bb() / bb_range()"
204
false
kylejusticemagnuson/pyti
percent_bandwidth
140,524
LDU_FT/peterldowns/djoauth2/user_info
LDU_FT
[ "<BEGIN>\n## `update_parameters`", "Updates a URL's existing GET parameters.", " :param url: a base URL to which to add additional parameters.\n :param parameters: a dictionary of parameters, any mix of\n unicode and string objects as the parameters and the values.\n :parameter encoding: the byte encoding...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the user_info API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the user_info API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
Return basic information about a user. Limited to OAuth clients that have receieved authorization to the 'user_info' scope.
"Return basic information about a user.\n\n Limited to OAuth clients that have receieved authorization to the 'user_info'\n scope."
70
false
peterldowns/djoauth2
user_info
140,525
LDU_FT/ryan-roemer/django-cloud-browser/from_settings
LDU_FT
[ "<BEGIN>\n## `is_key`", "Return ``True`` if result is a key object.\n<END>", "<BEGIN>\n## `parse_bool`", "Convert ``string`` or ``bool`` to ``bool``.\n<END>", "<BEGIN>\n## `container_permitted`", "Return whether or not a container is permitted.", " :param name: Container name.\n :return: `...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the from_settings API. 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 from_settings API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
Create configuration from Django settings or environment.
"Create configuration from Django settings or environment."
96
false
ryan-roemer/django-cloud-browser
from_settings
140,526
LDU_FT/chrisspen/dtree/entropy
LDU_FT
[ "<BEGIN>\n## `normalize`", "Scales each number in the sequence so that the sum of all numbers equals 1.\n<END>", "<BEGIN>\n## `normcdf`", "Describes the probability that a real-valued random variable X with a given\n probability distribution will be found at a value less than or equal to X\n in a normal...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the entropy API. 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 entropy API. 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...
Calculates the entropy of the attribute attr in given data set data. Parameters: data<dict|list> := if dict, treated as value counts of the given attribute name if list, treated as a raw list from which the value counts will be generated attr<string> := the name of the class attribute
"Calculates the entropy of the attribute attr in given data set data.\n \n Parameters:\n data<dict|list> :=\n if dict, treated as value counts of the given attribute name\n if list, treated as a raw list from which the value counts will be generated\n attr<string> := the name of the class attr...
100
false
chrisspen/dtree
entropy
140,527
LDU_FT/hermanschaaf/mafan/split_text
LDU_FT
[ "<BEGIN>\n## `decode`", "Converts text in the numbering format of pinyin (\"ni3hao3\") to text with the \n appropriate tone marks (\"nǐhǎo\").\n<END>", "<BEGIN>\n## `convert`", "Convert file with crappy encoding to a new proper encoding (or vice versa if you wish).", " filename -- the name, partial pa...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the split_text API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the split_text API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
u""" Split Chinese text at word boundaries. include_pos: also returns the Part Of Speech for each of the words. Some of the different parts of speech are: r: pronoun v: verb ns: proper noun etc... This all gets returned as a tuple: index 0: the split word ...
"u\"\"\"\n Split Chinese text at word boundaries.\n\n include_pos: also returns the Part Of Speech for each of the words.\n Some of the different parts of speech are:\n r: pronoun\n v: verb\n ns: proper noun\n etc...\n\n This all gets returned as a tuple:\n index 0: the sp...
21
false
hermanschaaf/mafan
split_text
140,528
LDU_FT/roclark/sportsreference/datetime
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 datetime API. 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 datetime API. 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...
Returns a datetime object of the month, day, year, and time the game was played. If the game doesn't include a time, the default value of '00:00' will be used.
"Returns a datetime object of the month, day, year, and time the game\n was played. If the game doesn't include a time, the default value of\n '00:00' will be used."
588
false
roclark/sportsreference
datetime
140,529
LDU_FT/Mic92/kshape/_sbd
LDU_FT
[ "<BEGIN>\n## `_ncc_c`", ">>> _ncc_c([1,2,3,4], [1,2,3,4])\n array([ 0.13333333, 0.36666667, 0.66666667, 1. , 0.66666667,\n 0.36666667, 0.13333333])\n >>> _ncc_c([1,1,1], [1,1,1])\n array([ 0.33333333, 0.66666667, 1. , 0.66666667, 0.33333333])\n >>> _ncc_c([1,2,3], [-1...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _sbd API. 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 _sbd API. 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...
>>> _sbd([1,1,1], [1,1,1]) (-2.2204460492503131e-16, array([1, 1, 1])) >>> _sbd([0,1,2], [1,2,3]) (0.043817112532485103, array([1, 2, 3])) >>> _sbd([1,2,3], [0,1,2]) (0.043817112532485103, array([0, 1, 2]))
">>> _sbd([1,1,1], [1,1,1])\n (-2.2204460492503131e-16, array([1, 1, 1]))\n >>> _sbd([0,1,2], [1,2,3])\n (0.043817112532485103, array([1, 2, 3]))\n >>> _sbd([1,2,3], [0,1,2])\n (0.043817112532485103, array([0, 1, 2]))"
14
false
Mic92/kshape
_sbd
140,530
LDU_FT/postmanlabs/httpbin/set_cookie
LDU_FT
[ "<BEGIN>\n## `json_safe`", "Returns JSON-safe version of `string`.", " If `string` is a Unicode string or a valid UTF-8, it is returned unmodified,\n as it can safely be encoded to JSON string.", " If `string` contains raw/binary data, it is Base64-encoded, formatted and\n returned according to \"...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_cookie API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_cookie API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
Sets a cookie and redirects to cookie list. --- tags: - Cookies parameters: - in: path name: name type: string - in: path name: value type: string produces: - text/plain responses: 200: description: Set cookies and redirects to co...
"Sets a cookie and redirects to cookie list.\n ---\n tags:\n - Cookies\n parameters:\n - in: path\n name: name\n type: string\n - in: path\n name: value\n type: string\n produces:\n - text/plain\n responses:\n 200:\n description: Set cookies and...
86
false
postmanlabs/httpbin
set_cookie
140,531
LDU_FT/cyrus-/cypy/is_float_like
LDU_FT
[ "<BEGIN>\n## `packed`", "each row is placed side-by-side with the length of the row interlaced\n the head of the packed matrix contains offsets to this length\n e.g. [[11, 22, 33], [44, 55], []] => [3, 7, 10, 3, 11, 22, 33, 2, 44, 55, 0]\n<END>", "<BEGIN>\n## `reversed`", "Create a connectivity ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_float_like API. 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_float_like API. 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...
Returns whether the value acts like a standard float. >>> is_float_like(4.0) True >>> is_float_like(numpy.float32(4.0)) True >>> is_float_like(numpy.int32(4.0)) False >>> is_float_like(4) False
"Returns whether the value acts like a standard float.\n\n >>> is_float_like(4.0)\n True\n >>> is_float_like(numpy.float32(4.0))\n True\n >>> is_float_like(numpy.int32(4.0))\n False\n >>> is_float_like(4)\n False"
209
false
cyrus-/cypy
is_float_like
140,532
LDU_FT/mila/pyoo/_col_name
LDU_FT
[ "<BEGIN>\n## `str_repr`", "Implements string conversion methods for the given class.", " The given class must implement the __str__ method. This decorat\n will add __repr__ and __unicode__ (for Python 2).\n<END>", "<BEGIN>\n## `_clean_slice`", "Validates and normalizes a cell range slice.", " >>>...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _col_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 extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _col_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 extract...
Converts a column index to a column name. >>> _col_name(0) 'A' >>> _col_name(26) 'AA'
"Converts a column index to a column name.\n\n >>> _col_name(0)\n 'A'\n >>> _col_name(26)\n 'AA'"
70
false
mila/pyoo
_col_name
140,533
LDU_FT/getfleety/coralillo/fill
LDU_FT
[ "<BEGIN>\n## `snake_case`", "Takes a string that represents for example a class name and returns\n the snake case version of it. It is used for model-to-key conversion\n<END>", "<BEGIN>\n## `value_or_default`", "Returns the given value or the specified default value for this\n field\n<END>", "<BEG...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the fill API. 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 fill API. 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...
Loads the relationships into this model. They are not loaded by default
"Loads the relationships into this model. They are not loaded by\n default"
62
false
getfleety/coralillo
fill
140,534
LDU_FT/EventRegistry/event-registry-python/saveTopicPageDefinitionToFile
LDU_FT
[ "<BEGIN>\n## `compute`", "compute the list of most similar events for the given text\n<END>", "<BEGIN>\n## `getUpdates`", "Get the latest new or updated events from Event Registry\n NOTE: call this method exactly once per minute - calling it more frequently will return the same results multiple times,\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the saveTopicPageDefinitionToFile 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 saveTopicPageDefinitionToFile API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conc...
save the topic page definition to a file
"save the topic page definition to a file"
89
false
EventRegistry/event-registry-python
saveTopicPageDefinitionToFile
140,535
LDU_FT/PyCQA/pylint-django/is_model_admin_subclass
LDU_FT
[ "<BEGIN>\n## `register`", "Required method to auto register this checker.\n<END>", "<BEGIN>\n## `ignore_import_warnings_for_related_fields`", "Replaces the leave_module method on the VariablesChecker class to\n prevent unused-import warnings which are caused by the ForeignKey\n and OneToOneField transfo...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_model_admin_subclass API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_model_admin_subclass API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion...
Checks that node is derivative of ModelAdmin class.
"Checks that node is derivative of ModelAdmin class."
32
false
PyCQA/pylint-django
is_model_admin_subclass
140,536
LDU_FT/tonybaloney/wily/list_archivers
LDU_FT
[ "<BEGIN>\n## `revisions`", "Get the list of revisions.", " :param path: the path to target.\n :type path: ``str``", " :param max_revisions: the maximum number of revisions.\n :type max_revisions: ``int``", " :return: A list of revisions.\n :rtype: ``list`` of :cla...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the list_archivers API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the list_archivers API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
List the names of archivers with data. :param config: The configuration :type config: :class:`wily.config.WilyConfig` :return: A list of archiver names :rtype: ``list`` of ``str``
"List the names of archivers with data.\n\n :param config: The configuration\n :type config: :class:`wily.config.WilyConfig`\n\n :return: A list of archiver names\n :rtype: ``list`` of ``str``"
174
false
tonybaloney/wily
list_archivers
140,537
LDU_FT/gvanderheide/discreteMarkovChain/getStateCode
LDU_FT
[ "<BEGIN>\n## `uniqueStates`", "Returns unique states and sums up the corresponding rates.\n States should be a 2d numpy array with on each row a state, and rates a 1d numpy array with length equal to the number of rows in states. ", " This may be helpful in the transition function for summing up the ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the getStateCode API. 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 getStateCode API. 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...
Calculates the state code for a specific state or set of states. We transform the states so that they are nonnegative and take an inner product. The resulting number is unique because we use numeral system with a large enough base.
"Calculates the state code for a specific state or set of states.\n We transform the states so that they are nonnegative and take an inner product.\n The resulting number is unique because we use numeral system with a large enough base."
68
false
gvanderheide/discreteMarkovChain
getStateCode
140,538
LDU_FT/eReuse/utils/pop_prefix
LDU_FT
[ "<BEGIN>\n## `get_nested_dicts_with_key_value`", "Return all nested dictionaries that contain a key with a specific value. A sub-case of NestedLookup.\n<END>", "<BEGIN>\n## `get_nested_dicts_with_key_containing_value`", "Return all nested dictionaries that contain a key with a specific value. A sub-case of Ne...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the pop_prefix API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the pop_prefix API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
Erases the prefix and returns it. :throws IndexError: There is no prefix. :return A set with two elements: 1- the prefix, 2- the type without it.
"Erases the prefix and returns it.\n :throws IndexError: There is no prefix.\n :return A set with two elements: 1- the prefix, 2- the type without it."
29
false
eReuse/utils
pop_prefix
140,539
LDU_FT/corpusops/pdbclone/do_until
LDU_FT
[ "<BEGIN>\n## `parse_gdb_version`", "r\"\"\"Parse the gdb version from the gdb header.", " From GNU coding standards: the version starts after the last space of the\n first line.", " >>> DOCTEST_GDB_VERSIONS = [\n ... r'~\"GNU gdb (GDB) 7.5.1\\n\"',\n ... r'~\"GNU gdb (Sourcery CodeBench Lite 20...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the do_until API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the do_until API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
unt(il) [lineno] Without argument, continue execution until the line with a number greater than the current one is reached. With a line number, continue execution until a line with a number greater or equal to that is reached. In both cases, also stop when the current frame ret...
"unt(il) [lineno]\n Without argument, continue execution until the line with a\n number greater than the current one is reached. With a line\n number, continue execution until a line with a number greater\n or equal to that is reached. In both cases, also stop when\n the current fra...
129
false
corpusops/pdbclone
do_until
140,540
LDU_FT/bsolomon1124/pyfinance/excess_ret
LDU_FT
[ "<BEGIN>\n## `value`", "Compute option value according to BSM model.\n<END>", "<BEGIN>\n## `implied_vol`", "Get implied vol at the specified price using an iterative approach.\r", " There is no closed-form inverse of BSM-value as a function of sigma,\r\n so start at an anchoring volatility lev...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the excess_ret API. 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 excess_ret API. 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...
Excess return. Parameters ---------- benchmark : {pd.Series, TSeries, 1d np.ndarray} The benchmark security to which `self` is compared. method : {{'arith', 'arithmetic'}, {'geo', 'geometric'}} The methodology used. An arithmetic excess return is a s...
"Excess return.\n\n Parameters\n ----------\n benchmark : {pd.Series, TSeries, 1d np.ndarray}\n The benchmark security to which `self` is compared.\n method : {{'arith', 'arithmetic'}, {'geo', 'geometric'}}\n The methodology used. An arithmetic excess return is a\n ...
372
false
bsolomon1124/pyfinance
excess_ret
140,541
LDU_FT/xtrementl/focus/stop
LDU_FT
[ "<BEGIN>\n## `_new_token`", "Appends new token to token stream.", " `chars`\n List of token characters. Defaults to current token list.\n `line_no`\n Line number for token. Defaults to current line number.\n<END>", "<BEGIN>\n## `_process_string`", "Process...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the 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 extracted do...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the 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 extracted do...
Stops the current task and cleans up, including removing active task config file. * Raises ``NoActiveTask`` exception if no active task found.
"Stops the current task and cleans up, including removing active\n task config file.\n\n * Raises ``NoActiveTask`` exception if no active task found."
413
false
xtrementl/focus
stop
140,542
LDU_FT/satellogic/telluric/_raster_opener
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 _raster_opener API. 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 _raster_opener API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
Return handler to open rasters (rasterio.open).
"Return handler to open rasters (rasterio.open)."
261
false
satellogic/telluric
_raster_opener
140,543
LDU_FT/linkhub-sdk/popbill.py/getAccessURL
LDU_FT
[ "<BEGIN>\n## `getSenderNumberMgtURL`", "팩스 전송내역 팝업 URL\n args\n CorpNum : 회원 사업자번호\n UserID : 회원 팝빌아이디\n return\n 30초 보안 토큰을 포함한 url\n raise\n PopbillException\n<END>", "<BEGIN>\n## `getUnitCost`", "팩스 전송 단가 확인\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the getAccessURL API. 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 getAccessURL API. 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...
팝빌 로그인 URL args CorpNum : 회원 사업자번호 UserID : 회원 팝빌아이디 return 30초 보안 토큰을 포함한 url raise PopbillException
"팝빌 로그인 URL\n args\n CorpNum : 회원 사업자번호\n UserID : 회원 팝빌아이디\n return\n 30초 보안 토큰을 포함한 url\n raise\n PopbillException"
216
false
linkhub-sdk/popbill.py
getAccessURL
140,544
LDU_FT/h2non/paco/compose
LDU_FT
[ "<BEGIN>\n## `observe`", "Arguments:\n event (str): event to subscribe.\n fn (function|coroutinefunction): function to trigger.", " Raises:\n TypeError: if fn argument is not valid\n<END>", "<BEGIN>\n## `remove`", "Remove all the registered observers for the given eve...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the 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...
Creates a coroutine function based on the composition of the passed coroutine functions. Each function consumes the yielded result of the coroutine that follows. Composing coroutine functions f(), g(), and h() would produce the result of f(g(h())). Arguments: *coros (coroutinefunction): v...
"Creates a coroutine function based on the composition of the passed\n coroutine functions.\n\n Each function consumes the yielded result of the coroutine that follows.\n\n Composing coroutine functions f(), g(), and h() would produce\n the result of f(g(h())).\n\n Arguments:\n *coros (coroutinefu...
394
false
h2non/paco
compose
140,545
LDU_FT/prompt-toolkit/ptpython/embed
LDU_FT
[ "<BEGIN>\n## `tab_should_insert_whitespace`", "When the 'tab' key is pressed with only whitespace character before the\n cursor, do autocompletion. Otherwise, insert indentation.", " Except for the first character at the first line. Then always do a\n completion. It doesn't make sense to start the firs...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the embed API. 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 embed API. 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...
Call this to embed Python shell at the current point in your program. It's similar to `IPython.embed` and `bpython.embed`. :: from prompt_toolkit.contrib.repl import embed embed(globals(), locals()) :param vi_mode: Boolean. Use Vi instead of Emacs key bindings. :param configure: Callable ...
"Call this to embed Python shell at the current point in your program.\n It's similar to `IPython.embed` and `bpython.embed`. ::\n\n from prompt_toolkit.contrib.repl import embed\n embed(globals(), locals())\n\n :param vi_mode: Boolean. Use Vi instead of Emacs key bindings.\n :param configure: C...
81
false
prompt-toolkit/ptpython
embed
140,546
LDU_FT/cnschema/cdata/stat_jsonld
LDU_FT
[ "<BEGIN>\n## `wikidata_get`", "https://www.wikidata.org/wiki/Special:EntityData/P248.json\n<END>", "<BEGIN>\n## `wikidata_search`", "wikification: search wikipedia pages for the given query\n https://www.wikidata.org/w/api.php?action=help&modules=wbsearchentities", " result format\n {\n...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the stat_jsonld API. 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 stat_jsonld API. 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...
provide statistics for jsonld, right now only count triples see also https://json-ld.org/playground/ note: attributes @id @context do not contribute any triple
"provide statistics for jsonld, right now only count triples\n see also https://json-ld.org/playground/\n note: attributes @id @context do not contribute any triple"
29
false
cnschema/cdata
stat_jsonld
140,547
LDU_FT/stephenmcd/django-socketio/unsubscribe
LDU_FT
[ "<BEGIN>\n## `socketio`", "Socket.IO handler - maintains the lifecycle of a Socket.IO\n request, sending the each of the events. Also handles\n adding/removing request/socket pairs to the CLIENTS dict\n which is used for sending on_finish events when the server\n stops.\n<END>", "<BEGIN>\n## `client...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the unsubscribe API. 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 unsubscribe API. 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...
Remove the channel from this socket's channels, and from the list of subscribed session IDs for the channel. Return False if not subscribed, otherwise True.
"Remove the channel from this socket's channels, and from the\n list of subscribed session IDs for the channel. Return False\n if not subscribed, otherwise True."
33
false
stephenmcd/django-socketio
unsubscribe
140,548
LDU_FT/openfisca/openfisca-france-indirect-taxation/collapse
LDU_FT
[ "<BEGIN>\n## `calcul_ratios_calage`", "Fonction qui calcule les ratios de calage (bdf sur cn pour année de données) et de vieillissement\n à partir des masses de comptabilité nationale et des masses de consommation de bdf.\n<END>", "<BEGIN>\n## `get_bdf_data_frames`", "Récupère les dépenses de budget des f...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the collapse API. 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 collapse API. 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...
Pour une variable, fonction qui calcule la moyenne pondérée au sein de chaque groupe.
"Pour une variable, fonction qui calcule la moyenne pondérée au sein de chaque groupe."
36
false
openfisca/openfisca-france-indirect-taxation
collapse
140,549
LDU_FT/Cologler/fsoopify-python/create_file
LDU_FT
[ "<BEGIN>\n## `from_caller_file`", "return a `Path` from the path of caller file\n<END>", "<BEGIN>\n## `from_caller_module_root`", "return a `Path` from module root which include the caller\n<END>", "<BEGIN>\n## `get_parent`", "get parent dir as a `DirectoryInfo`.", " return `None` if self is top....
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_file API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_file API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
create a `FileInfo` for a new file. if the file was exists, and `generate_unique_name` if `False`, raise `FileExistsError`. the op does mean the file is created on disk.
"create a `FileInfo` for a new file.\n\n if the file was exists, and `generate_unique_name` if `False`, raise `FileExistsError`.\n\n the op does mean the file is created on disk."
39
false
Cologler/fsoopify-python
create_file
140,550
LDU_FT/zeroSteiner/smoke-zephyr/job_count_enabled
LDU_FT
[ "<BEGIN>\n## `normalize_job_id`", "Convert a value to a job id.", "\t:param job_id: Value to convert.\n\t:type job_id: int, str\n\t:return: The job id.\n\t:rtype: :py:class:`uuid.UUID`\n<END>", "<BEGIN>\n## `now`", "Return a :py:class:`datetime.datetime` instance representing the current time.", "\t\t:rty...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the job_count_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. The...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the job_count_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. The...
Return the number of enabled jobs. :return: The number of jobs that are enabled. :rtype: int
"Return the number of enabled jobs.\n\n\t\t:return: The number of jobs that are enabled.\n\t\t:rtype: int"
116
false
zeroSteiner/smoke-zephyr
job_count_enabled
140,551
LDU_FT/axialmarket/fsq/_delay
LDU_FT
[ "<BEGIN>\n## `barf`", "Exit with a log message (usually a fatal error)\n<END>", "<BEGIN>\n## `done_item`", "Succeed or fail an item based on the return code of a program\n<END>", "<BEGIN>\n## `setenv`", "Set environment, based on item. Usually done in a baby fork\n<END>", "<BEGIN>\n## `shout`", "Log ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _delay API. 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 _delay API. 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 ...
Delay for between zero and self.interval time units
"Delay for between zero and self.interval time units"
99
false
axialmarket/fsq
_delay
140,552
LDU_FT/grundic/yagocd/versions
LDU_FT
[ "<BEGIN>\n## `urljoin`", "Joins given arguments into a url. Trailing but not leading slashes are\n stripped for each argument.\n<END>", "<BEGIN>\n## `server_version`", "Special method for getting server version.", " Because of different behaviour on different versions of\n server, we ha...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the versions API. 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 versions API. 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...
Property for accessing :class:`VersionManager` instance, which is used to get server info. :rtype: yagocd.resources.version.VersionManager
"Property for accessing :class:`VersionManager` instance, which is used to get server info.\n\n :rtype: yagocd.resources.version.VersionManager"
164
false
grundic/yagocd
versions
140,553
LDU_FT/nickmckay/LiPD-utilities/idx_num_to_name
LDU_FT
[ "<BEGIN>\n## `update_dois`", "Get DOI publication info for a batch of DOIs. This is LiPD-independent and only requires a CSV file with all DOIs\n listed in a single column. The output is LiPD-formatted publication data for each entry.", " :param str csv_source: Local path to CSV file\n :param bool writ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the idx_num_to_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 e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the idx_num_to_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 e...
Switch from index-by-number to index-by-name. :param dict L: Metadata :return dict L: Metadata
"Switch from index-by-number to index-by-name.\n\n :param dict L: Metadata\n :return dict L: Metadata"
796
false
nickmckay/LiPD-utilities
idx_num_to_name
140,554
LDU_FT/trailofbits/protofuzz/_module_to_generators
LDU_FT
[ "<BEGIN>\n## `find_protoc`", "Traverse a path ($PATH by default) to find the protoc compiler\n<END>", "<BEGIN>\n## `from_string`", "Produce a Protobuf module from a string description.\r", " Return the module if successfully compiled, otherwise raise a BadProtobuf\r\n exception.\n<END>", "<BEGIN>\n#...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _module_to_generators 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 _module_to_generators API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Convert a protobuf module to a dict of generators. This is typically used with modules that contain multiple type definitions.
"Convert a protobuf module to a dict of generators.\n\n This is typically used with modules that contain multiple type definitions."
52
false
trailofbits/protofuzz
_module_to_generators
140,555
LDU_FT/tk0miya/tk.phpautodoc/p_lexical_var_list
LDU_FT
[ "<BEGIN>\n## `p_top_statement_namespace`", "top_statement : NAMESPACE namespace_name SEMI\n | NAMESPACE LBRACE top_statement_list RBRACE\n | NAMESPACE namespace_name LBRACE top_statement_list RBRACE\n<END>", "<BEGIN>\n## `p_use_declaration`", "use_declaration : namespac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the p_lexical_var_list 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 p_lexical_var_list 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...
lexical_var_list : lexical_var_list COMMA AND VARIABLE | lexical_var_list COMMA VARIABLE | AND VARIABLE | VARIABLE
"lexical_var_list : lexical_var_list COMMA AND VARIABLE\n | lexical_var_list COMMA VARIABLE\n | AND VARIABLE\n | VARIABLE"
152
false
tk0miya/tk.phpautodoc
p_lexical_var_list
140,556
LDU_FT/markovmodel/PyEMMA/feature_TIC_correlation
LDU_FT
[ "<BEGIN>\n## `filenames`", "list of file names the data is originally being read from.", " Returns\n -------\n names : list of str\n list of file names at the beginning of the input chain.\n<END>", "<BEGIN>\n## `_data_flow_chain`", "Get a list of all elements in the data flow...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the feature_TIC_correlation 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 feature_TIC_correlation API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion...
r"""Instantaneous correlation matrix between mean-free input features and TICs Denoting the input features as :math:`X_i` and the TICs as :math:`\theta_j`, the instantaneous, linear correlation between them can be written as .. math:: \mathbf{Corr}(X_i - \mu_i, \mathbf{\theta}_j) ...
"r\"\"\"Instantaneous correlation matrix between mean-free input features and TICs\n\n Denoting the input features as :math:`X_i` and the TICs as :math:`\\theta_j`, the instantaneous, linear correlation\n between them can be written as\n\n .. math::\n\n \\mathbf{Corr}(X_i - \\mu_i, \\mat...
1,924
true
markovmodel/PyEMMA
feature_TIC_correlation
140,557
LDU_FT/JenkinsDev/pelican-readtime/read_time
LDU_FT
[ "<BEGIN>\n## `_set_supported_content_type`", "Checks and sets the supported content types configuration value.\n<END>", "<BEGIN>\n## `_set_lang_settings`", "Checks and sets the per language WPM, singular and plural values.\n<END>", "<BEGIN>\n## `initialize_settings`", "Initializes ReadTimeParser with conf...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the read_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 extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the read_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 extract...
Core function used to generate the read_time for content. Parameters: :param content: Instance of pelican.content.Content Returns: None
"Core function used to generate the read_time for content.\n\n Parameters:\n :param content: Instance of pelican.content.Content\n\n Returns:\n None"
14
false
JenkinsDev/pelican-readtime
read_time
140,558
LDU_FT/Shapeways/coyote_framework/has_class
LDU_FT
[ "<BEGIN>\n## `get_login_form_component`", "Initializes and returns the login form component", " @rtype: LoginForm\n @return: Initialized component\n<END>", "<BEGIN>\n## `objectify`", "Converts a dictionary into a named tuple (shallow)\n<END>", "<BEGIN>\n## `create_directory`", "Creates a d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the has_class API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the has_class API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
Test if an element has a specific classname @type classname: str @param classname: Classname to test for; cannot contain spaces @rtype: bool @return: True if classname exists; false otherwise
"Test if an element has a specific classname\n\n @type classname: str\n @param classname: Classname to test for; cannot contain spaces\n @rtype: bool\n @return: True if classname exists; false otherwise"
370
false
Shapeways/coyote_framework
has_class
140,559
LDU_FT/fedora-infra/fmn.rules/not_user_filter
LDU_FT
[ "<BEGIN>\n## `pagure_specific_project_filter`", "Particular pagure projects", " Adding this rule allows you to get notifications for one or more\n `pagure.io <https://pagure.io>`_ projects. Specify multiple\n projects by separating them with a comma ','.\n<END>", "<BEGIN>\n## `pagure_specific_proj...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the not_user_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 e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the not_user_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 e...
Everything except a particular user Use this rule to exclude messages that are associated with one or more users. Specify several users by separating them with a comma ','.
"Everything except a particular user\n\n Use this rule to exclude messages that are associated with one or more\n users. Specify several users by separating them with a comma ','."
95
false
fedora-infra/fmn.rules
not_user_filter
140,560
LDU_FT/rdussurget/py-altimetry/create_Dim
LDU_FT
[ "<BEGIN>\n## `bilinear_interpolation`", "Interpolate (x,y) from values associated with four points.\r", " The four points are a list of four triplets: (x, y, value).\r\n The four points can be in any order. They should form a rectangle.\r", " >>> bilinear_interpolation(12, 5.5,\r\n ... ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_Dim API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_Dim API. 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...
Adds a dimension to class. :parameter name: dimension name :parameter value: dimension value
"Adds a dimension to class.\r\n \r\n :parameter name: dimension name\r\n :parameter value: dimension value"
320
false
rdussurget/py-altimetry
create_Dim
140,561
LDU_FT/carlospalol/money/loads
LDU_FT
[ "<BEGIN>\n## `install`", "Install an exchange rates backend using a python path string\n<END>", "<BEGIN>\n## `rate`", "Return quotation between the base and another currency\n<END>", "<BEGIN>\n## `quotation`", "Return quotation between two currencies (origin, target)\n<END>", "<BEGIN>\n## `to`", "Retu...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the loads API. 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 loads API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
Parse from a string representation (repr)
"Parse from a string representation (repr)"
16
false
carlospalol/money
loads
140,562
LDU_FT/robinagist/ezo/load
LDU_FT
[ "<BEGIN>\n## `get_topic_sha3`", "takes an event block and returns a signature for sha3 hashing\n :param event_block:\n :return:\n<END>", "<BEGIN>\n## `info`", "Since this will always respond with height=0, Tendermint\n will resync this app from the begining\n<END>", "<BEGIN>\n## `check_tx`", ...
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...
loads a contract file :param filepath: (string) - contract filename :return: source, err
"loads a contract file\n\n :param filepath: (string) - contract filename\n :return: source, err"
45
false
robinagist/ezo
load
140,563
LDU_FT/pydanny-archive/django-uni-form/get_render
LDU_FT
[ "<BEGIN>\n## `as_uni_form`", "The original and still very useful way to generate a uni-form form/formset::", " {% load uni_form_tags %}", " <form class=\"uniForm\" action=\"post\">\n {% csrf_token %}\n {{ myform|as_uni_form }}\n </form>\n<END>", "<BEGIN>\n## `as_un...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_render API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_render API. 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 a `Context` object with all the necesarry stuff for rendering the form :param context: `django.template.Context` variable holding the context for the node `self.form` and `self.helper` are resolved into real Python objects resolving them from the `context`. The `actual_form` can be a f...
"Returns a `Context` object with all the necesarry stuff for rendering the form\n\n :param context: `django.template.Context` variable holding the context for the node\n\n `self.form` and `self.helper` are resolved into real Python objects resolving them\n from the `context`. The `actual_form` can ...
36
false
pydanny-archive/django-uni-form
get_render
140,564
LDU_FT/crossbario/txaio-etcd/delete
LDU_FT
[ "<BEGIN>\n## `status`", "Get etcd status.", " :param timeout: Request timeout in seconds.\n :type timeout: int", " :returns: The current etcd cluster status.\n :rtype: instance of :class:`txaioetcd.Status`\n<END>", "<BEGIN>\n## `set`", "Set the value for the key in the key-valu...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the delete API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the delete API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Delete value(s) from etcd. :param key: key is the first key to delete in the range. :type key: bytes or instance of :class:`txaioetcd.KeySet` :param return_previous: If enabled, return the deleted key-value pairs :type return_previous: bool or None :param timeout: Request time...
"Delete value(s) from etcd.\n\n :param key: key is the first key to delete in the range.\n :type key: bytes or instance of :class:`txaioetcd.KeySet`\n\n :param return_previous: If enabled, return the deleted key-value pairs\n :type return_previous: bool or None\n\n :param timeout: Req...
110
false
crossbario/txaio-etcd
delete
140,565
LDU_FT/rduplain/jeni-python/set_annotations
LDU_FT
[ "<BEGIN>\n## `see_doc`", "Copy docstring from existing object to the decorated callable.\n<END>", "<BEGIN>\n## `class_in_progress`", "True if currently inside a class definition, else False.\n<END>", "<BEGIN>\n## `get`", "Get initial yield value, or result of send(name) if name given.\n<END>", "<BEGIN>\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_annotations API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_annotations API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
Set the annotations on the given callable.
"Set the annotations on the given callable."
91
false
rduplain/jeni-python
set_annotations
140,566
LDU_FT/msmbuilder/msmbuilder/predict
LDU_FT
[ "<BEGIN>\n## `fraction_visited`", "Calculate the fraction of times a walker on `tprob` going from `sources`\n to `sinks` will travel through the set of states `waypoints` en route.", " Computes the conditional committors q^{ABC^+} and uses them to find the\n fraction of paths mentioned above.", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the predict API. 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 predict API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
Get the index of the grid cell containing each sample in X Parameters ---------- X : array-like, shape = [n_samples, n_features] New data Returns ------- y : array, shape = [n_samples,] Index of the grid cell containing each sample
"Get the index of the grid cell containing each sample in X\n\n Parameters\n ----------\n X : array-like, shape = [n_samples, n_features]\n New data\n\n Returns\n -------\n y : array, shape = [n_samples,]\n Index of the grid cell containing each sample"
721
false
msmbuilder/msmbuilder
predict
140,567
LDU_FT/tansey/gfl/solve_gamlasso
LDU_FT
[ "<BEGIN>\n## `solve_gfl`", "A very easy-to-use version of GFL solver that just requires the data and\n the edges.\n<END>", "<BEGIN>\n## `sample_gtf`", "Generate samples from the generalized graph trend filtering distribution via a modified Swendsen-Wang slice sampling algorithm.\n Options for likelihood...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the solve_gamlasso API. 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 solve_gamlasso API. 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...
Solves the Graph-fused gamma lasso via POSE (Taddy, 2013)
"Solves the Graph-fused gamma lasso via POSE (Taddy, 2013)"
50
false
tansey/gfl
solve_gamlasso
140,568
LDU_FT/yt-project/unyt/list_same_dimensions
LDU_FT
[ "<BEGIN>\n## `uconcatenate`", "Concatenate a sequence of arrays.", " This wrapper around numpy.concatenate preserves units. All input arrays\n must have the same units. See the documentation of numpy.concatenate for\n full details.", " Examples\n --------\n >>> from unyt import cm\n >>> ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the list_same_dimensions 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 list_same_dimensions 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 a list of base unit names that this registry knows about that are of equivalent dimensions to *unit_object*.
"Return a list of base unit names that this registry knows about that\n are of equivalent dimensions to *unit_object*."
236
false
yt-project/unyt
list_same_dimensions
140,569
LDU_FT/kragniz/python-etcd3/put_if_not_exists
LDU_FT
[ "<BEGIN>\n## `new_event`", "Wrap a raw gRPC event in a friendlier containing class.", " This picks the appropriate class from one of PutEvent or DeleteEvent and\n returns a new instance.\n<END>", "<BEGIN>\n## `acquire`", "Acquire the lock.", " :params timeout: Maximum time to wait before retu...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the put_if_not_exists API. 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 put_if_not_exists API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Atomically puts a value only if the key previously had no value. This is the etcdv3 equivalent to setting a key with the etcdv2 parameter prevExist=false. :param key: key in etcd to put :param value: value to be written to key :type value: bytes :param lease: Lease to a...
"Atomically puts a value only if the key previously had no value.\n\n This is the etcdv3 equivalent to setting a key with the etcdv2\n parameter prevExist=false.\n\n :param key: key in etcd to put\n :param value: value to be written to key\n :type value: bytes\n :param lease: L...
113
false
kragniz/python-etcd3
put_if_not_exists
140,570
LDU_FT/qubole/qds-sdk-py/create
LDU_FT
[ "<BEGIN>\n## `_parse_list`", "Parse command line arguments to construct a dictionary of cluster\n parameters that can be used to determine which clusters to list.", " Args:\n `args`: sequence of arguments", " Returns:\n Dictionary that can be used to determine which ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Create a command object by issuing a POST request to the /command endpoint Note - this does not wait for the command to complete Args: `**kwargs`: keyword arguments specific to command type Returns: Command object
"Create a command object by issuing a POST request to the /command endpoint\n Note - this does not wait for the command to complete\n\n Args:\n `**kwargs`: keyword arguments specific to command type\n\n Returns:\n Command object"
316
false
qubole/qds-sdk-py
create
140,571
LDU_FT/ranaroussi/qtpylib/rolling_vwap
LDU_FT
[ "<BEGIN>\n## `load_cli_args`", "Parse command line arguments and return only the non-default ones", " :Retruns: dict\n a dict of any non-default args passed on the command-line.\n<END>", "<BEGIN>\n## `run`", "Starts the reporting module", " Makes the dashboard web app available vi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the rolling_vwap API. 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 rolling_vwap API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
calculate vwap using moving window (input can be pandas series or numpy array) bars are usually mid [ (h+l)/2 ] or typical [ (h+l+c)/3 ]
"calculate vwap using moving window\n (input can be pandas series or numpy array)\n bars are usually mid [ (h+l)/2 ] or typical [ (h+l+c)/3 ]"
155
false
ranaroussi/qtpylib
rolling_vwap
140,572