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/SHTOOLS/SHTOOLS/to_array
LDU_FT
[ "<BEGIN>\n## `example`", "Plot random phase and Gaussian random variable spectra.\n<END>", "<BEGIN>\n## `plot_rad`", "Plot the radial component of the gravity field.", " Usage\n -----\n x.plot_rad([tick_interval, xlabel, ylabel, ax, colorbar,\n cb_orientation, cb_labe...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the to_array API. 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 to_array API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
Return the spherical harmonic coefficients of taper i as a numpy array. Usage ----- coeffs = x.to_array(itaper, [normalization, csphase]) Returns ------- coeffs : ndarray, shape (2, lwin+1, lwin+11) 3-D numpy ndarray of the spherical harmonic coeffic...
"Return the spherical harmonic coefficients of taper i as a numpy\n array.\n\n Usage\n -----\n coeffs = x.to_array(itaper, [normalization, csphase])\n\n Returns\n -------\n coeffs : ndarray, shape (2, lwin+1, lwin+11)\n 3-D numpy ndarray of the spherical harmo...
779
false
SHTOOLS/SHTOOLS
to_array
34,873
LDU_FT/carter-j-h/iterable-python-wrapper/get_user_by_email
LDU_FT
[ "<BEGIN>\n## `api_call`", "This is our generic api call function. We will route all calls except\n\t\trequests that do not return JSON ('Export' and 'Experiment Metrics' are\n\t\texamples where this is the case). This is beneficial because:\n\t\t\t1. Allows for easier debugging if a request fails\n\t\t\t2. Curr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_user_by_email API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_user_by_email API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
This function gets a user's data field and info
"This function gets a user's data field and info"
25
false
carter-j-h/iterable-python-wrapper
get_user_by_email
34,874
LDU_FT/Trax-air/swagger-parser/build_definitions_example
LDU_FT
[ "<BEGIN>\n## `_validate_post_body`", "returns a tuple (boolean, msg)\n to indicate whether the validation passed\n if False then msg contains the reason\n if True then msg is empty\n<END>", "<BEGIN>\n## `build_definitions_example`", "Parse all definitions in the swagger specification.\n<E...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the build_definitions_example 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 build_definitions_example API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi...
Parse all definitions in the swagger specification.
"Parse all definitions in the swagger specification."
100
false
Trax-air/swagger-parser
build_definitions_example
34,875
LDU_FT/Toilal/rebulk/regex
LDU_FT
[ "<BEGIN>\n## `formatters`", "Chain formatter functions.\n :param chained_formatters:\n :type chained_formatters:\n :return:\n :rtype:\n<END>", "<BEGIN>\n## `_default_conflict_solver`", "Default conflict solver for matches, shorter matches if they conflicts with longer ones", " :param conflict...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the regex API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the regex API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
Add re pattern :param pattern: :type pattern: :return: self :rtype: Rebulk
"Add re pattern\n\n :param pattern:\n :type pattern:\n :return: self\n :rtype: Rebulk"
174
false
Toilal/rebulk
regex
34,876
LDU_FT/bdastur/rex/get_match_value
LDU_FT
[ "<BEGIN>\n## `reformat_pattern`", "Apply the filters on user pattern to generate a new regular expression\n pattern.\n A user provided variable, should start with an alphabet, can be\n alphanumeric and can have _.\n<END>", "<BEGIN>\n## `populate_resobj`", "Popuate the result object and append it to t...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_match_value API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_match_value API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
Return a matched value for the key for a specific match from the results.
"Return a matched value for the key for a specific match from the\n results."
15
false
bdastur/rex
get_match_value
34,877
LDU_FT/opendatateam/udata/notify_badge_added_certified
LDU_FT
[ "<BEGIN>\n## `save`", "PeriodicTask is dynamic and save behavior changed\n See: https://github.com/zakird/celerybeat-mongo/commit/dfbbd20edde91134b57f5406d0ce4eac59d6899b\n<END>", "<BEGIN>\n## `has_manifest`", "Verify the existance of a JSON assets manifest\n<END>", "<BEGIN>\n## `from_manifest`", "...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the notify_badge_added_certified API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its concl...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the notify_badge_added_certified API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its concl...
Send an email when a `CERTIFIED` badge is added to an `Organization` Parameters ---------- sender The object that emitted the event. kind: str The kind of `Badge` object awarded.
"Send an email when a `CERTIFIED` badge is added to an `Organization`\n\n Parameters\n ----------\n sender\n The object that emitted the event.\n kind: str\n The kind of `Badge` object awarded."
476
false
opendatateam/udata
notify_badge_added_certified
34,878
LDU_FT/mozilla/mozdownload/path_regex
LDU_FT
[ "<BEGIN>\n## `parse_arguments`", "Setup argument parser for command line arguments.\n<END>", "<BEGIN>\n## `query_builds_by_revision`", "Retrieve build folders for a given revision with the help of Treeherder.", " :param revision: Revision of the build to download.\n :param job_type_name: Name ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the path_regex API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the path_regex API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
Return the regex for the path to the build folder.
"Return the regex for the path to the build folder."
43
false
mozilla/mozdownload
path_regex
34,879
LDU_FT/plandes/actioncli/load
LDU_FT
[ "<BEGIN>\n## `populate`", "Set attributes in ``obj`` with ``setattr`` from the all values in\n ``section``.\n<END>", "<BEGIN>\n## `_get_calling_module`", "Get the last module in the call stack that is not this module or ``None`` if\n the call originated from this module.\n<END>", "<BEGIN>\n## ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
Load the instance of the object from the stash.
"Load the instance of the object from the stash."
67
false
plandes/actioncli
load
34,880
LDU_FT/coderholic/pyradio/_check_config_file
LDU_FT
[ "<BEGIN>\n## `toggleTransparency`", "Toggles theme trasparency.", " force_value will set trasparency if True or False,\n or toggle trasparency if None\n<END>", "<BEGIN>\n## `keypress`", "returns theme_id, save_theme\n return_id\n 0-.. : id in self._theme\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _check_config_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. Th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _check_config_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. Th...
Make sure a config file exists in the config dir
"Make sure a config file exists in the config dir"
65
false
coderholic/pyradio
_check_config_file
34,881
LDU_FT/v1k45/django-notify-x/render
LDU_FT
[ "<BEGIN>\n## `include_notify_js_variables`", "Inclusion template tag to include all JS variables required by the\n notify.js file on the HTML page around <script> tags.", " Example::\n {% include_notify_js_variables %}", " :return: Prepares context for rendering in the inclusion file.\n<END>",...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the 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 extracted ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the 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 extracted ...
Render method of the template tag, returns generated html content to the parent template where it was called. :param context: Template context. :return: Generated HTML content using notification queryset object.
"Render method of the template tag, returns generated html content to\n the parent template where it was called.\n :param context: Template context.\n :return: Generated HTML content using notification queryset object."
92
false
v1k45/django-notify-x
render
34,882
LDU_FT/okfn/ofs/revert
LDU_FT
[ "<BEGIN>\n## `revert`", "Revert the state to the version stored on disc.\n<END>", "<BEGIN>\n## `sync`", "Synchronise and update the stored state to the in-memory state.\n<END>", "<BEGIN>\n## `del_stream`", "Will fail if the bucket or label don't exist\n<END>", "<BEGIN>\n## `authenticate_request`", "Au...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the revert API. Each 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 revert API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Revert the state to the version stored on disc.
"Revert the state to the version stored on disc."
53
false
okfn/ofs
revert
34,883
LDU_FT/kobinpy/kobin/accept_best_match
LDU_FT
[ "<BEGIN>\n## `status`", "The HTTP status line as a string (e.g. ``404 Not Found``).\n<END>", "<BEGIN>\n## `headerlist`", "WSGI conform list of (header, value) tuples.\n<END>", "<BEGIN>\n## `_split_into_mimetype_and_priority`", "Split an accept header item into mimetype and priority.", " >>> _split_in...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the accept_best_match API. 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 accept_best_match API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Return a mimetype best matched the accept headers. >>> accept_best_match('application/json, text/html', ['application/json', 'text/plain']) 'application/json' >>> accept_best_match('application/json;q=0.5, text/*', ['application/json', 'text/plain']) 'text/plain'
"Return a mimetype best matched the accept headers.\n\n >>> accept_best_match('application/json, text/html', ['application/json', 'text/plain'])\n 'application/json'\n\n >>> accept_best_match('application/json;q=0.5, text/*', ['application/json', 'text/plain'])\n 'text/plain'"
32
false
kobinpy/kobin
accept_best_match
34,884
LDU_FT/ClimateImpactLab/DataFS/upload
LDU_FT
[ "<BEGIN>\n## `_generate_manager`", "Generate a manager from a manager_config dictionary", " Parameters\n ----------", " manager_config : dict\n Configuration with keys class, args, and kwargs\n used to generate a new datafs.manager object", " Returns\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the upload API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the upload API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
"Upload" a file to a service This copies a file from the local filesystem into the ``DataService``'s filesystem. If ``remove==True``, the file is moved rather than copied. If ``filepath`` and ``service_path`` paths are the same, ``upload`` deletes the file if ``remove==True`` and retur...
"\"Upload\" a file to a service\n\n This copies a file from the local filesystem into the ``DataService``'s\n filesystem. If ``remove==True``, the file is moved rather than copied.\n\n If ``filepath`` and ``service_path`` paths are the same, ``upload``\n deletes the file if ``remove==True`` ...
318
false
ClimateImpactLab/DataFS
upload
34,885
LDU_FT/thefab/tornadis/get_connected_client
LDU_FT
[ "<BEGIN>\n## `pubsub_pop_message`", "Pops a message for a subscribed client.", " Args:\n deadline (int): max number of seconds to wait (None => no timeout)", " Returns:\n Future with the popped message as result (or None if timeout\n or ConnectionError object...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_connected_client API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_connected_client API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Gets a connected Client object. If max_size is reached, this method will block until a new client object is available. Returns: A Future object with connected Client instance as a result (or ClientError if there was a connection problem)
"Gets a connected Client object.\n\n If max_size is reached, this method will block until a new client\n object is available.\n\n Returns:\n A Future object with connected Client instance as a result\n (or ClientError if there was a connection problem)"
89
false
thefab/tornadis
get_connected_client
34,886
LDU_FT/cimm-kzn/CGRtools/tell
LDU_FT
[ "<BEGIN>\n## `reset_query_marks`", "set or reset hyb and neighbors marks to atoms.\n<END>", "<BEGIN>\n## `implicify_hydrogens`", "remove explicit hydrogen if possible", " :return: number of removed hydrogens\n<END>", "<BEGIN>\n## `explicify_hydrogens`", "add explicit hydrogens to atoms", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the tell API. Each 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 tell API. Each 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...
:return: number of records processed from the original file
":return: number of records processed from the original file"
122
false
cimm-kzn/CGRtools
tell
34,887
LDU_FT/dragnet-org/dragnet/_predict_one
LDU_FT
[ "<BEGIN>\n## `fit`", "Fit :class`Extractor` features and model to a training dataset.", " Args:\n blocks (List[Block])\n labels (``np.ndarray``)\n weights (``np.ndarray``)", " Returns:\n :class`Extractor`\n<END>", "<BEGIN>\n## `get_html_labels_weight...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _predict_one API. 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 _predict_one API. 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...
Predict class (content=1 or not-content=0) of each block in an HTML document. Args: documents (str): HTML document Returns: ``np.ndarray``: array of binary predictions for content (1) or not-content (0).
"Predict class (content=1 or not-content=0) of each block in an HTML\n document.\n\n Args:\n documents (str): HTML document\n\n Returns:\n ``np.ndarray``: array of binary predictions for content (1) or\n not-content (0)."
134
false
dragnet-org/dragnet
_predict_one
34,888
LDU_FT/thautwarm/Redy/data
LDU_FT
[ "<BEGIN>\n## `map_by`", "when pycharm supports type hinting for any implementation of currying,\n map_with and map_on would be deprecated.\n >>> from Redy.Collections import Traversal, Flow\n >>> def double(x: int) -> int: return x * 2\n >>> lst: Iterable[int] = [1, 2, 3]\n >>> x = Flow(lst)[Traver...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the data API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the data API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
>>> from Redy.ADT.Core import data >>> from Redy.Magic.Classic import cast >>> from Redy.ADT.traits import ConsInd, Discrete >>> @data >>> class S(ConsInd): # ConsInd class makes it available to index from this data as from a tuple. >>> a: '1' >>> b: lambda x: x >>> c: lambda x, y ...
">>> from Redy.ADT.Core import data\n >>> from Redy.Magic.Classic import cast\n >>> from Redy.ADT.traits import ConsInd, Discrete\n >>> @data\n >>> class S(ConsInd): # ConsInd class makes it available to index from this data as from a tuple.\n >>> a: '1'\n >>> b: lambda x: x\n >>> c: lamb...
83
false
thautwarm/Redy
data
34,889
LDU_FT/ebu/PlugIt/build_parameters
LDU_FT
[ "<BEGIN>\n## `doQuery`", "Send a request to the server and return the result\n<END>", "<BEGIN>\n## `ping`", "Return true if the server successfully pinged\n<END>", "<BEGIN>\n## `checkVersion`", "Check if the server use the same version of our protocol\n<END>", "<BEGIN>\n## `getMedia`", "Return a tuple...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the build_parameters API. 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 build_parameters API. 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 list of get, post and file parameters to send
"Return the list of get, post and file parameters to send"
75
false
ebu/PlugIt
build_parameters
34,890
LDU_FT/bwesterb/mirte/_get_a
LDU_FT
[ "<BEGIN>\n## `get_a_manager`", "On first call, creates and returns a @mirte.core.Manager. On\n subsequent calls, returns the previously created instance.", " If it is the first call, it will initialize the threadPool\n with @threadPool_settings.\n<END>", "<BEGIN>\n## `parse_cmdLine_instr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_a API. Each 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 _get_a API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Gets an instance implementing type <_type>
"Gets an instance implementing type <_type>"
37
false
bwesterb/mirte
_get_a
34,891
LDU_FT/adafruit/Adafruit_Python_DHT/pi_revision
LDU_FT
[ "<BEGIN>\n## `get_platform`", "Return a DHT platform interface for the currently detected platform.\n<END>", "<BEGIN>\n## `read`", "Read DHT sensor of specified sensor type (DHT11, DHT22, or AM2302) on\n specified pin and return a tuple of humidity (as a floating point value\n in percent) and temperatur...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the pi_revision API. 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 pi_revision API. 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...
Detect the revision number of a Raspberry Pi, useful for changing functionality like default I2C bus based on revision.
"Detect the revision number of a Raspberry Pi, useful for changing\n functionality like default I2C bus based on revision."
13
false
adafruit/Adafruit_Python_DHT
pi_revision
34,892
LDU_FT/slaveofcode/pycrawler/extract_favicon
LDU_FT
[ "<BEGIN>\n## `extract_favicon`", "Extracting favicon url from BeautifulSoup object", " :param bs4: `BeautifulSoup`\n :return: `list` List of favicon urls\n<END>", "<BEGIN>\n## `extract_metas`", "Extracting meta tags from BeautifulSoup object", " :param bs4: `BeautifulSoup`\n :return: `list` Li...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the extract_favicon API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the extract_favicon API. 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...
Extracting favicon url from BeautifulSoup object :param bs4: `BeautifulSoup` :return: `list` List of favicon urls
"Extracting favicon url from BeautifulSoup object\n\n :param bs4: `BeautifulSoup`\n :return: `list` List of favicon urls"
33
false
slaveofcode/pycrawler
extract_favicon
34,893
LDU_FT/jut-io/jut-python-tools/debug
LDU_FT
[ "<BEGIN>\n## `_print_jobs`", "internal method to print the provided jobs array in a nice tabular\n format\n<END>", "<BEGIN>\n## `debug`", "debug output goes to stderr so you can still redirect the stdout to a file\n or another program. Controlled by the JUT_DEBUG environment variable being\n present\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the debug API. Each 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 debug API. Each 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...
debug output goes to stderr so you can still redirect the stdout to a file or another program. Controlled by the JUT_DEBUG environment variable being present
"debug output goes to stderr so you can still redirect the stdout to a file\n or another program. Controlled by the JUT_DEBUG environment variable being\n present"
72
false
jut-io/jut-python-tools
debug
34,894
LDU_FT/OCR-D/core/add_agent
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 add_agent API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_agent API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
Add an `OcrdAgent </../../ocrd_models/ocrd_models.ocrd_agent.html>`_ to the list of agents in the metsHdr.
"Add an `OcrdAgent </../../ocrd_models/ocrd_models.ocrd_agent.html>`_ to the list of agents in the metsHdr."
176
false
OCR-D/core
add_agent
34,895
LDU_FT/jjgomera/iapws/_Bound_TP
LDU_FT
[ "<BEGIN>\n## `_Tb`", "Procedure to calculate the boiling temperature of seawater", " Parameters\n ----------\n P : float\n Pressure, [MPa]\n S : float\n Salinity, [kg/kg]", " Returns\n -------\n Tb : float\n Boiling temperature, [K]", " References\n ----------...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _Bound_TP API. 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 _Bound_TP API. 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...
Region definition for input T and P Parameters ---------- T : float Temperature, [K] P : float Pressure, [MPa] Returns ------- region : float IAPWS-97 region code References ---------- Wagner, W; Kretzschmar, H-J: International Steam Tables: Properties ...
"Region definition for input T and P\n\n Parameters\n ----------\n T : float\n Temperature, [K]\n P : float\n Pressure, [MPa]\n\n Returns\n -------\n region : float\n IAPWS-97 region code\n\n References\n ----------\n Wagner, W; Kretzschmar, H-J: International Steam Ta...
574
false
jjgomera/iapws
_Bound_TP
34,896
LDU_FT/mrallen1/pygett/get_shares_list
LDU_FT
[ "<BEGIN>\n## `get`", "**get**", " Make a GET call to a remote endpoint", " Input:\n * An endpoint relative to the ``base_url``", " Output:\n * A :py:mod:`pygett.request.GettResponse` object\n<END>", "<BEGIN>\n## `post`", "**post**", " Make a POST call ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_shares_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. The e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_shares_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. The e...
Gets *all* shares. Input: * ``skip`` the number of shares to skip (optional) * ``limit`` the maximum number of shares to return (optional) Output: * a list of :py:mod:`pygett.shares.GettShare` objects Example:: shares_list = client.get_shares_l...
"Gets *all* shares.\n\n Input:\n * ``skip`` the number of shares to skip (optional)\n * ``limit`` the maximum number of shares to return (optional)\n\n Output:\n * a list of :py:mod:`pygett.shares.GettShare` objects\n\n Example::\n\n shares_list = client....
117
false
mrallen1/pygett
get_shares_list
34,897
LDU_FT/borntyping/python-riemann-client/query
LDU_FT
[ "<BEGIN>\n## `socket_recvall`", "A helper method to read of bytes from a socket to a maximum length\n<END>", "<BEGIN>\n## `send`", "Sends a message, but does not return a response", " :returns: None - can't receive a response over UDP\n<END>", "<BEGIN>\n## `send`", "Sends a message to a Riemann s...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the query API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the query API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
Sends a query to the Riemann server >>> client.query('true') :returns: A list of event dictionaries taken from the response :raises Exception: if used with a :py:class:`.UDPTransport`
"Sends a query to the Riemann server\n\n >>> client.query('true')\n\n :returns: A list of event dictionaries taken from the response\n :raises Exception: if used with a :py:class:`.UDPTransport`"
43
false
borntyping/python-riemann-client
query
34,898
LDU_FT/cltl/KafNafParserPy/remove_this_clink
LDU_FT
[ "<BEGIN>\n## `set_id`", "Set the property identifier\n @type pid: string\n @param pid: property identifier\n<END>", "<BEGIN>\n## `add_property`", "Adds a new property to the property layer\n @type pid: string\n @param pid: property identifier\n @type label: string\n @...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the remove_this_clink API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the remove_this_clink API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Removes the clink for the given clink identifier @type clink_id: string @param clink_id: the clink identifier to be removed
"Removes the clink for the given clink identifier\n @type clink_id: string\n @param clink_id: the clink identifier to be removed"
270
false
cltl/KafNafParserPy
remove_this_clink
34,899
LDU_FT/kodexlab/reliure/add_field
LDU_FT
[ "<BEGIN>\n## `add_field`", "Add a named field to the schema.", " .. Warning:: the field name should not contains spaces and should not\n start with an underscore.", " :param name: name of the new field\n :type name: str\n :param field: type instance for the field \n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_field API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_field API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
Add a named field to the schema. .. Warning:: the field name should not contains spaces and should not start with an underscore. :param name: name of the new field :type name: str :param field: type instance for the field :type field: subclass of :c...
"Add a named field to the schema.\n \n .. Warning:: the field name should not contains spaces and should not\n start with an underscore.\n \n :param name: name of the new field\n :type name: str\n :param field: type instance for the field \n :type field: subcl...
243
false
kodexlab/reliure
add_field
34,900
LDU_FT/ryan-roemer/django-cloud-browser/is_prefix
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 is_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 extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_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 extract...
Return ``True`` if result is a prefix object. .. note:: Boto uses the S3 Prefix object for GS prefixes.
"Return ``True`` if result is a prefix object.\n\n .. note::\n Boto uses the S3 Prefix object for GS prefixes."
96
false
ryan-roemer/django-cloud-browser
is_prefix
34,901
LDU_FT/fiesta/fiesta-python/add_member
LDU_FT
[ "<BEGIN>\n## `request`", "Core \"worker\" for making requests and parsing JSON responses.", " If `is_json` is ``True``, `data` should be a dictionary which\n will be JSON-encoded.\n<END>", "<BEGIN>\n## `_make_request`", "Does the magic of actually sending the request and parsing the response\n...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_member API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_member API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
Add a member to a group. All Fiesta membership options can be passed in as keyword arguments. Some valid options include: - `group_name`: Since each member can access a group using their own name, you can override the `group_name` in this method. By default, the group will ...
"Add a member to a group.\n\n All Fiesta membership options can be passed in as keyword\n arguments. Some valid options include:\n\n - `group_name`: Since each member can access a group using\n their own name, you can override the `group_name` in this\n method. By default, the gro...
27
false
fiesta/fiesta-python
add_member
34,902
LDU_FT/Microsoft/knack/_determine_verbose_level
LDU_FT
[ "<BEGIN>\n## `ensure_new_style_deprecation`", "Helper method to make the previous string-based deprecate_info kwarg\n work with the new style.\n<END>", "<BEGIN>\n## `prompt_choice_list`", "Prompt user to select from a list of possible choices.", " :param msg:A message displayed to the user bef...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _determine_verbose_level API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _determine_verbose_level API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio...
Get verbose level by reading the arguments.
"Get verbose level by reading the arguments."
88
false
Microsoft/knack
_determine_verbose_level
34,903
LDU_FT/flatangle/flatlib/aspectBenefics
LDU_FT
[ "<BEGIN>\n## `_roundSlist`", "Rounds a signed list over the last element and removes it.\n<END>", "<BEGIN>\n## `toFloat`", "Converts string or signed list to float.\n<END>", "<BEGIN>\n## `inDignities`", "Returns the dignities of A which belong to B.\n<END>", "<BEGIN>\n## `receives`", "Returns the dign...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the aspectBenefics API. 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 aspectBenefics API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
Returns a list with the good aspects the object makes to the benefics.
"Returns a list with the good aspects the object \n makes to the benefics."
248
false
flatangle/flatlib
aspectBenefics
34,904
LDU_FT/loli/medpy/sum_filter
LDU_FT
[ "<BEGIN>\n## `sls`", "r\"\"\"\n Computes the signed local similarity between two images.", " Compares a patch around each voxel of the minuend array to a number of patches\n centered at the points of a search neighbourhood in the subtrahend. Thus, creates\n a multi-dimensional measure of patch simil...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the sum_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 extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the sum_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 extrac...
r""" Calculates a multi-dimensional sum filter. Parameters ---------- input : array-like input array to filter size : scalar or tuple, optional See footprint, below footprint : array, optional Either `size` or `footprint` must be defined. `size` gives the shape t...
"r\"\"\"\n Calculates a multi-dimensional sum filter.\n\n Parameters\n ----------\n input : array-like\n input array to filter\n size : scalar or tuple, optional\n See footprint, below\n footprint : array, optional\n Either `size` or `footprint` must be defined. `size` gives\n ...
1,313
true
loli/medpy
sum_filter
34,905
LDU_FT/cogeotiff/rio-tiler/zoom_for_pixelsize
LDU_FT
[ "<BEGIN>\n## `_meters_per_pixel`", "Return the pixel resolution for a given mercator tile zoom and lattitude.", " Parameters\n ----------\n zoom: int\n Mercator zoom level\n lat: float, optional\n Latitude in decimal degree (default: 0)\n tilesize: int, optional\n Mercator ti...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the zoom_for_pixelsize 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 zoom_for_pixelsize API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
Get mercator zoom level corresponding to a pixel resolution. Freely adapted from https://github.com/OSGeo/gdal/blob/b0dfc591929ebdbccd8a0557510c5efdb893b852/gdal/swig/python/scripts/gdal2tiles.py#L294 Parameters ---------- pixel_size: float Pixel size max_z: int, optional (default: 24)...
"Get mercator zoom level corresponding to a pixel resolution.\n\n Freely adapted from\n https://github.com/OSGeo/gdal/blob/b0dfc591929ebdbccd8a0557510c5efdb893b852/gdal/swig/python/scripts/gdal2tiles.py#L294\n\n Parameters\n ----------\n pixel_size: float\n Pixel size\n max_z: int, optional (de...
137
false
cogeotiff/rio-tiler
zoom_for_pixelsize
34,906
LDU_FT/Open-ET/openet-core-beta/daily
LDU_FT
[ "<BEGIN>\n## `getinfo`", "Make an exponential back off getInfo call on an Earth Engine object\n<END>", "<BEGIN>\n## `constant_image_value`", "Extract the output value from a calculation done with constant images\n<END>", "<BEGIN>\n## `point_image_value`", "Extract the output value from a calculation at a ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the daily API. Each 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 daily API. Each 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...
Generate daily ETa collection from ETo and ETf collections Parameters ---------- target_coll : ee.ImageCollection Source images will be interpolated to each target image time_start. Target images should have a daily time step. This will typically be the reference ET (ETr) collectio...
"Generate daily ETa collection from ETo and ETf collections\n\n Parameters\n ----------\n target_coll : ee.ImageCollection\n Source images will be interpolated to each target image time_start.\n Target images should have a daily time step. This will typically be\n the reference ET (ETr) c...
62
false
Open-ET/openet-core-beta
daily
34,907
LDU_FT/xolox/python-qpass/fuzzy_search
LDU_FT
[ "<BEGIN>\n## `get_requirements`", "Get requirements from pip requirement files.\n<END>", "<BEGIN>\n## `create_fuzzy_pattern`", "Convert a string into a fuzzy regular expression pattern.", " :param pattern: The input pattern (a string).\n :returns: A compiled regular expression object.", " This fu...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the fuzzy_search API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the fuzzy_search API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
Perform a "fuzzy" search that matches the given characters in the given order. :param filters: The pattern(s) to search for. :returns: The matched password names (a list of strings).
"Perform a \"fuzzy\" search that matches the given characters in the given order.\n\n :param filters: The pattern(s) to search for.\n :returns: The matched password names (a list of strings)."
48
false
xolox/python-qpass
fuzzy_search
34,908
LDU_FT/mikeywaites/flask-arrested/handle_get_request
LDU_FT
[ "<BEGIN>\n## `process`", "Process the provided data and invoke :meth:`Handler.handle` method for this\n Handler class.", " :params data: The data being processed.\n :returns: self\n :rtype: :class:`Handler`", " .. code-block:: python", " def post(self, *args, **...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the handle_get_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. Th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the handle_get_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. Th...
Handle incoming GET request to an Endpoint and return an array of results by calling :meth:`.GetListMixin.get_objects`. .. seealso:: :meth:`GetListMixin.get_objects` :meth:`Endpoint.get`
"Handle incoming GET request to an Endpoint and return an\n array of results by calling :meth:`.GetListMixin.get_objects`.\n\n .. seealso::\n :meth:`GetListMixin.get_objects`\n :meth:`Endpoint.get`"
99
false
mikeywaites/flask-arrested
handle_get_request
34,909
LDU_FT/chimpler/pyhocon/to_yaml
LDU_FT
[ "<BEGIN>\n## `to_json`", "Convert HOCON input into a JSON output", " :return: JSON string representation\n :type return: basestring\n<END>", "<BEGIN>\n## `to_hocon`", "Convert HOCON input into a HOCON output", " :return: JSON string representation\n :type return: basestring\n<E...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the to_yaml API. Each 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 to_yaml API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
Convert HOCON input into a YAML output :return: YAML string representation :type return: basestring
"Convert HOCON input into a YAML output\n\n :return: YAML string representation\n :type return: basestring"
80
false
chimpler/pyhocon
to_yaml
34,910
LDU_FT/koriakin/binflakes/to_sint
LDU_FT
[ "<BEGIN>\n## `to_sint`", "Converts the word to a BinInt, treating it as a signed number.\n<END>", "<BEGIN>\n## `sar`", "Performs an arithmetic right-shift of a BinWord by the given number\n of bits. Bits shifted out of the word are lost. The word is\n filled on the left with copies of the top ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the to_sint API. Each 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 to_sint API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
Converts the word to a BinInt, treating it as a signed number.
"Converts the word to a BinInt, treating it as a signed number."
59
false
koriakin/binflakes
to_sint
34,911
LDU_FT/quantopian/zipline/_lookup_symbol_strict
LDU_FT
[ "<BEGIN>\n## `unwrap`", "Get the cached value.", " Returns\n -------\n value : object\n The cached value.", " Raises\n ------\n Expired\n Raised when `dt` is greater than self.expires.\n<END>", "<BEGIN>\n## `get`", "Get the value of a cached ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _lookup_symbol_strict 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 _lookup_symbol_strict API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Resolve a symbol to an asset object without fuzzy matching. Parameters ---------- ownership_map : dict[(str, str), list[OwnershipPeriod]] The mapping from split symbols to ownership periods. multi_country : bool Does this mapping span multiple countries? ...
"Resolve a symbol to an asset object without fuzzy matching.\n\n Parameters\n ----------\n ownership_map : dict[(str, str), list[OwnershipPeriod]]\n The mapping from split symbols to ownership periods.\n multi_country : bool\n Does this mapping span multiple countries?\...
2,011
true
quantopian/zipline
_lookup_symbol_strict
34,912
LDU_FT/rstoneback/pysat/load
LDU_FT
[ "<BEGIN>\n## `list_files`", "Return a Pandas Series of every file for chosen satellite data.", " This routine is intended to be used by pysat instrument modules supporting\n a particular NASA CDAWeb dataset.", " Parameters\n -----------\n tag : (string or NoneType)\n Denotes type of file...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
Load the SuperMAG files Parameters ----------- fnames : (list) List of filenames tag : (str or NoneType) Denotes type of file to load. Accepted types are 'indices', 'all', 'stations', and '' (for just magnetometer measurements). (default='') sat_id : (str or NoneType) ...
"Load the SuperMAG files\n\n Parameters\n -----------\n fnames : (list)\n List of filenames\n tag : (str or NoneType)\n Denotes type of file to load. Accepted types are 'indices', 'all',\n 'stations', and '' (for just magnetometer measurements). (default='')\n sat_id : (str or NoneT...
525
false
rstoneback/pysat
load
34,913
LDU_FT/PyCQA/pylint-django/is_model_view_subclass_method_shouldnt_be_function
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_view_subclass_method_shouldnt_be_function API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <EN...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_model_view_subclass_method_shouldnt_be_function API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <EN...
Checks that node is get or post method of the View class.
"Checks that node is get or post method of the View class."
32
false
PyCQA/pylint-django
is_model_view_subclass_method_shouldnt_be_function
34,914
LDU_FT/astroduff/commah/formationz
LDU_FT
[ "<BEGIN>\n## `plotcommand`", "Example ways to interrogate the dataset and plot the commah output\n<END>", "<BEGIN>\n## `_izip`", "Iterate through multiple lists or arrays of equal size\n<END>", "<BEGIN>\n## `_checkinput`", "Check and convert any input scalar or array to numpy array\n<END>", "<BEGIN>\n##...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the formationz API. 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 formationz API. 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...
Rearrange eqn 18 from Correa et al (2015c) to return formation redshift for a concentration at a given redshift Parameters ---------- c : float / numpy array Concentration of halo z : float / numpy array Redshift of halo with concentration c Ascaling : float Cosmolog...
"Rearrange eqn 18 from Correa et al (2015c) to return\n formation redshift for a concentration at a given redshift\n\n Parameters\n ----------\n c : float / numpy array\n Concentration of halo\n z : float / numpy array\n Redshift of halo with concentration c\n Ascaling : float\n ...
81
false
astroduff/commah
formationz
34,915
LDU_FT/pysal/spglm/deriv
LDU_FT
[ "<BEGIN>\n## `fit`", "Method that fits a model with a particular estimation routine.", " Parameters\n ----------", " ini_betas : array\n k*1, initial coefficient values, including constant.\n Default is None, which calculates initial value...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the deriv API. Each 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 deriv API. Each 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...
Derivative of the power transform Parameters ---------- p : array-like Mean parameters Returns -------- g'(p) : array Derivative of power transform of `p` Notes ----- g'(`p`) = `power` * `p`**(`power` - 1)
"Derivative of the power transform\n\n Parameters\n ----------\n p : array-like\n Mean parameters\n\n Returns\n --------\n g'(p) : array\n Derivative of power transform of `p`\n\n Notes\n -----\n g'(`p`) = `power` * `p`**(`power` - 1)"
161
false
pysal/spglm
deriv
34,916
LDU_FT/src-d/modelforge/load
LDU_FT
[ "<BEGIN>\n## `initialize_registry`", "Initialize the registry and the index.", " :param args: :class:`argparse.Namespace` with \"backend\", \"args\", \"force\" and \"log_level\".\n :param backend: Backend which is responsible for working with model files.\n :param log: Logger supplied by supply_backend...
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...
Build a new Model instance. :param source: UUID, file system path, file object or an URL; None means auto. :param cache_dir: The directory where to store the downloaded model. :param backend: Remote storage backend to use if ``source`` is a UUID or a URL. :param lazy: Do not really load...
"Build a new Model instance.\n\n :param source: UUID, file system path, file object or an URL; None means auto.\n :param cache_dir: The directory where to store the downloaded model.\n :param backend: Remote storage backend to use if ``source`` is a UUID or a URL.\n :param lazy: Do not reall...
118
false
src-d/modelforge
load
34,917
LDU_FT/rodynnz/xccdf/update_xml_element
LDU_FT
[ "<BEGIN>\n## `update_xml_element`", "Updates the xml element contents to matches the instance contents.", " :returns: Updated XML element.\n :rtype: lxml.etree._Element\n<END>", "<BEGIN>\n## `to_xml_string`", "Exports the element in XML format.", " :returns: element in XML format.\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update_xml_element 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 update_xml_element 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...
Updates the xml element contents to matches the instance contents. :returns: Updated XML element. :rtype: lxml.etree._Element
"Updates the xml element contents to matches the instance contents.\n\n :returns: Updated XML element.\n :rtype: lxml.etree._Element"
77
false
rodynnz/xccdf
update_xml_element
34,918
LDU_FT/yjzhang/uncurl_python/mds
LDU_FT
[ "<BEGIN>\n## `_create_m_objective`", "Creates an objective function and its derivative for M, given W and X", " Args:\n w (array): clusters x cells\n X (array): genes x cells\n<END>", "<BEGIN>\n## `initialize_from_assignments`", "Creates a weight initialization matrix from Poisson clusterin...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the mds API. Each 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 mds API. Each 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...
Dimensionality reduction using MDS. Args: means (array): genes x clusters weights (array): clusters x cells d (int): desired dimensionality Returns: W_reduced (array): array of shape (d, cells)
"Dimensionality reduction using MDS.\n\n Args:\n means (array): genes x clusters\n weights (array): clusters x cells\n d (int): desired dimensionality\n\n Returns:\n W_reduced (array): array of shape (d, cells)"
265
false
yjzhang/uncurl_python
mds
34,919
LDU_FT/kwikteam/phy/get_waveform_amplitude
LDU_FT
[ "<BEGIN>\n## `set_state`", "Set the view state.", " The passed object is the persisted `self.state` bunch.", " May be overriden.\n<END>", "<BEGIN>\n## `_fullname`", "Return the fully-qualified name of a function.\n<END>", "<BEGIN>\n## `_get_default_grid`", "In the grid specification, 0 c...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_waveform_amplitude API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_waveform_amplitude API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
Return the amplitude of the waveforms on all channels.
"Return the amplitude of the waveforms on all channels."
346
false
kwikteam/phy
get_waveform_amplitude
34,920
LDU_FT/RaRe-Technologies/gensim-simserver/index_documents
LDU_FT
[ "<BEGIN>\n## `merge_sims`", "Merge two precomputed similarity lists, truncating the result to `clip` most similar items.\n<END>", "<BEGIN>\n## `terminate`", "Delete all files created by this index, invalidating `self`. Use with care.\n<END>", "<BEGIN>\n## `index_documents`", "Update fresh index with new d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the index_documents API. 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 index_documents API. 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...
Update fresh index with new documents (potentially replacing old ones with the same id). `fresh_docs` is a dictionary-like object (=dict, sqlitedict, shelve etc) that maps document_id->document.
"Update fresh index with new documents (potentially replacing old ones with\n the same id). `fresh_docs` is a dictionary-like object (=dict, sqlitedict, shelve etc)\n that maps document_id->document."
74
false
RaRe-Technologies/gensim-simserver
index_documents
34,921
LDU_FT/RPi-Distro/python-sense-hat/_init_imu
LDU_FT
[ "<BEGIN>\n## `_load_text_assets`", "Internal. Builds a character indexed dictionary of pixels used by the\n show_message function below\n<END>", "<BEGIN>\n## `_trim_whitespace`", "Internal. Trims white space pixels from the front and back of loaded\n text characters\n<END>", "<BEGIN>\n## `_get...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _init_imu API. 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 _init_imu API. 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...
Internal. Initialises the IMU sensor via RTIMU
"Internal. Initialises the IMU sensor via RTIMU"
75
false
RPi-Distro/python-sense-hat
_init_imu
34,922
LDU_FT/snare/voltron/validate
LDU_FT
[ "<BEGIN>\n## `cancel_queue`", "Cancel all requests in the queue so we can exit.\n<END>", "<BEGIN>\n## `dispatch_queue`", "Dispatch any queued requests.", " Called by the debugger when it stops.\n<END>", "<BEGIN>\n## `send_request`", "Send a request to the server.", " `request` is an APIR...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the validate API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the validate API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
Validate the message. Ensure all the required fields are present and not None.
"Validate the message.\n\n Ensure all the required fields are present and not None."
80
false
snare/voltron
validate
34,923
LDU_FT/grantmcconnaughey/Lintly/post_pr_comment
LDU_FT
[ "<BEGIN>\n## `changed_lines`", "A list of dicts in the format:\n {\n 'file_name': str,\n 'content': str,\n 'line_number': int,\n 'position': int\n }\n<END>", "<BEGIN>\n## `build_pr_comment`", "Creates a Markdown representation o...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the post_pr_comment API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the post_pr_comment API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
Posts a comment to the GitHub PR if the diff results have issues.
"Posts a comment to the GitHub PR if the diff results have issues."
24
false
grantmcconnaughey/Lintly
post_pr_comment
34,924
LDU_FT/asciimoo/drawille/forward
LDU_FT
[ "<BEGIN>\n## `rotateX`", "Rotates the point around the X axis by the given angle in degrees.\n<END>", "<BEGIN>\n## `line`", "Returns the coords of the line between (x1, y1), (x2, y2)", " :param x1: x coordinate of the startpoint\n :param y1: y coordinate of the startpoint\n :param x2: x coordinate ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the forward API. Each 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 forward API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
Move the turtle forward. :param step: Integer. Distance to move forward.
"Move the turtle forward.\n\n :param step: Integer. Distance to move forward."
32
false
asciimoo/drawille
forward
34,925
LDU_FT/michaelaye/pyciss/download_results
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 download_results API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the download_results API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Download the previously found and stored Opus obsids. Parameters ========== savedir: str or pathlib.Path, optional If the database root folder as defined by the config.ini should not be used, provide a different savedir here. It will be handed to PathManager.
"Download the previously found and stored Opus obsids.\n\n Parameters\n ==========\n savedir: str or pathlib.Path, optional\n If the database root folder as defined by the config.ini should not be used,\n provide a different savedir here. It will be handed to PathManager."
83
false
michaelaye/pyciss
download_results
34,926
LDU_FT/xav/Grapefruit/ryb_to_rgb
LDU_FT
[ "<BEGIN>\n## `rgb_to_hsl`", "Convert the color from RGB coordinates to HSL.", " Parameters:\n :r:\n The Red component value [0...1]\n :g:\n The Green component value [0...1]\n :b:\n The Blue component value [0...1]", " Returns:\n The color as an (h, s, l) tuple in the range:\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the ryb_to_rgb API. 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 ryb_to_rgb API. 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...
Maps a hue on Itten's RYB color wheel to the standard RGB wheel. Parameters: :hue: The hue on Itten's RYB color wheel [0...360] Returns: An approximation of the corresponding hue on the standard RGB wheel. >>> ryb_to_rgb(15) 8.0
"Maps a hue on Itten's RYB color wheel to the standard RGB wheel.\n\n Parameters:\n :hue:\n The hue on Itten's RYB color wheel [0...360]\n\n Returns:\n An approximation of the corresponding hue on the standard RGB wheel.\n\n >>> ryb_to_rgb(15)\n 8.0"
234
false
xav/Grapefruit
ryb_to_rgb
34,927
LDU_FT/pyros-dev/pyros-common/transient_change_detect
LDU_FT
[ "<BEGIN>\n## `start`", "Startup of the node.\n :param join: optionally wait for the process to end (default : True)\n :return: None\n<END>", "<BEGIN>\n## `setup`", "Dynamically reset the interface to expose the services / topics / params whose names are passed as args\n The interface clas...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the transient_change_detect 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 transient_change_detect API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion...
This should be called when we want to detect a change in the status of the system regarding the transient list This function also applies changes due to regex_set updates if needed _transient_change_detect -> _transient_change_diff -> _update_transients
"This should be called when we want to detect a change in the status of the system regarding the transient list\n This function also applies changes due to regex_set updates if needed\n _transient_change_detect -> _transient_change_diff -> _update_transients"
34
false
pyros-dev/pyros-common
transient_change_detect
34,928
LDU_FT/expfactory/expfactory/validate_token
LDU_FT
[ "<BEGIN>\n## `get_experiments`", "get_experiments will return loaded json for all valid experiments from an experiment folder\n :param base: full path to the base folder with experiments inside\n :param load: if True, returns a list of loaded config.json objects. If False (default) returns the paths to the ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the validate_token API. 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 validate_token API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
retrieve a subject based on a token. Valid means we return a participant invalid means we return None
"retrieve a subject based on a token. Valid means we return a participant\n invalid means we return None"
128
false
expfactory/expfactory
validate_token
34,929
LDU_FT/jxtech/wechatpy/parse_message
LDU_FT
[ "<BEGIN>\n## `add_articles`", "新增永久图文素材\n 详情请参考\n https://mp.weixin.qq.com/wiki?id=mp1494572718_WzHIY", " :param articles: 图文素材数组\n :type articles: list[dict]\n :return: 返回的 JSON 数据包\n<END>", "<BEGIN>\n## `add`", "新增其它类型永久素材\n 详情请参考\n http://mp.weixin.qq.com/...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_message API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_message API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
处理 wechat server 推送消息 :params msg: 加密内容 :params msg_signature: 消息签名 :params timestamp: 时间戳 :params nonce: 随机数
"处理 wechat server 推送消息\n\n :params msg: 加密内容\n :params msg_signature: 消息签名\n :params timestamp: 时间戳\n :params nonce: 随机数"
813
false
jxtech/wechatpy
parse_message
34,930
LDU_FT/aouyar/PyMunin/_parseFreePBXconf
LDU_FT
[ "<BEGIN>\n## `parse_value`", "Parse input string and return int, float or str depending on format.", " @param val: Input string.\n @param parsebool: If True parse yes / no, on / off as boolean.\n @return: Value of type int, float or str.\n<END>", "<BEGIN>\n## `socket_read`", "Buffere...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _parseFreePBXconf API. 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 _parseFreePBXconf API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Parses FreePBX configuration file /etc/amportal for user and password for Asterisk Manager Interface. @return: True if configuration file is found and parsed successfully.
"Parses FreePBX configuration file /etc/amportal for user and password\n for Asterisk Manager Interface.\n \n @return: True if configuration file is found and parsed successfully."
491
false
aouyar/PyMunin
_parseFreePBXconf
34,931
LDU_FT/jeremymcrae/denovonear/load_de_novos
LDU_FT
[ "<BEGIN>\n## `get_cached_data`", "get cached data for a url if stored in the cache and not outdated", " Args:\n url: URL for the Ensembl REST service", " Returns:\n data if data in cache, else None\n<END>", "<BEGIN>\n## `cache_url_data`", "cache the data retrieved from ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load_de_novos API. 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 load_de_novos API. 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...
load mutations into dict indexed by HGNC ID. Args: path: path to file containing de novo data. This should have five tab- separated columns e.g. hgnc chr pos consequence var_type CTC1 17 8139190 missense_variant snv CTC1 17 813919...
"load mutations into dict indexed by HGNC ID.\n \n Args:\n path: path to file containing de novo data. This should have five tab-\n separated columns e.g.\n hgnc chr pos consequence var_type\n CTC1 17 8139190 missense_variant snv\n CTC1 17 ...
112
false
jeremymcrae/denovonear
load_de_novos
34,932
LDU_FT/camptocamp/marabunta/_get_version_mode
LDU_FT
[ "<BEGIN>\n## `perform`", "Perform the version upgrade on the database.\n<END>", "<BEGIN>\n## `_perform_version`", "Inner method for version upgrade.", " Not intended for standalone use. This method performs the actual\n version upgrade with all the pre, post operations and addons upgrades.", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_version_mode API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_version_mode API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Return a VersionMode for a mode name. When the mode is None, we are working with the 'base' mode.
"Return a VersionMode for a mode name.\n\n When the mode is None, we are working with the 'base' mode."
48
false
camptocamp/marabunta
_get_version_mode
34,933
LDU_FT/uw-it-aca/uw-restclients-libraries/get_default_subject_guide
LDU_FT
[ "<BEGIN>\n## `get_account`", "The Libraries object has a method for getting information\n about a user's library account\n<END>", "<BEGIN>\n## `get_subject_guide_for_section_params`", "Returns a SubjectGuide model for the passed section params:", " year: year for the section term (4-digits)\n quart...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_default_subject_guide API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_default_subject_guide API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi...
Returns a default SubjectGuide model for the passed campus: seattle, bothell, tacoma
"Returns a default SubjectGuide model for the passed campus:\n seattle, bothell, tacoma"
11
false
uw-it-aca/uw-restclients-libraries
get_default_subject_guide
34,934
LDU_FT/pytroll/satpy/precompute
LDU_FT
[ "<BEGIN>\n## `_get_coarse_dataset`", "Get the coarse dataset refered to by `key` from the XML data.\n<END>", "<BEGIN>\n## `get_dataset`", "Get output data and metadata of specified dataset.\n<END>", "<BEGIN>\n## `find_coefficient_index`", "Return index in to coefficient arrays for this band's wavelength."...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the precompute API. 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 precompute API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
Create bilinear coefficients and store them for later use. Note: The `mask` keyword should be provided if geolocation may be valid where data points are invalid. This defaults to the `mask` attribute of the `data` numpy masked array passed to the `resample` method.
"Create bilinear coefficients and store them for later use.\n\n Note: The `mask` keyword should be provided if geolocation may be valid\n where data points are invalid. This defaults to the `mask` attribute of\n the `data` numpy masked array passed to the `resample` method."
924
false
pytroll/satpy
precompute
34,935
LDU_FT/yougov/pmxbot/_get_wrapper
LDU_FT
[ "<BEGIN>\n## `attach`", "Given a function and a namespace of possible parameters,\n\tbind any params matching the signature of the function\n\tto that function.\n<END>", "<BEGIN>\n## `init_config`", "Install the config dict as pmxbot.config, setting overrides,\n\tand return the result.\n<END>", "<BEGIN>\n##...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_wrapper API. 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_wrapper API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
Get a socket wrapper based on SSL config.
"Get a socket wrapper based on SSL config."
128
false
yougov/pmxbot
_get_wrapper
34,936
LDU_FT/grycap/cpyutils/p_statement_notexpr
LDU_FT
[ "<BEGIN>\n## `set_paths`", "Sets the paths where the configuration files will be searched", " * You can have multiple configuration files (e.g. in the /etc/default folder\n and in /etc/appfolder/)\n<END>", "<BEGIN>\n## `config_filename`", "Obtains the first filename found that is included in o...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the p_statement_notexpr API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the p_statement_notexpr API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
expression : NOT expression | '!' expression
"expression : NOT expression\n | '!' expression"
39
false
grycap/cpyutils
p_statement_notexpr
34,937
LDU_FT/RealTimeWeb/datasets/_add_to_cache
LDU_FT
[ "<BEGIN>\n## `_parse_int`", "Attempt to cast *value* into an integer, returning *default* if it fails.\n<END>", "<BEGIN>\n## `_parse_float`", "Attempt to cast *value* into a float, returning *default* if it fails.\n<END>", "<BEGIN>\n## `_parse_type`", "Attempt to cast *value* into *type_func*, returning *...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _add_to_cache API. 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 _add_to_cache API. 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...
Internal method to add a new key-value to the local cache. :param str key: The new url to add to the cache :param str value: The HTTP response for this key. :returns: void
"Internal method to add a new key-value to the local cache.\n :param str key: The new url to add to the cache\n :param str value: The HTTP response for this key.\n :returns: void"
76
false
RealTimeWeb/datasets
_add_to_cache
34,938
LDU_FT/mthh/smoomapy/quick_stewart
LDU_FT
[ "<BEGIN>\n## `quick_idw`", "Function acting as a one-shot wrapper around SmoothIdw object.\n Read a file of point values and optionnaly a mask file,\n return the smoothed representation as GeoJSON or GeoDataFrame.", " Parameters\n ----------\n input_geojson_points : str\n Path to file to u...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the quick_stewart API. 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 quick_stewart API. 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...
Function acting as a one-shot wrapper around SmoothStewart object. Read a file of point values and optionnaly a mask file, return the smoothed representation as GeoJSON or GeoDataFrame. Parameters ---------- input_geojson_points : str Path to file to use as input (Points/Polygons) or GeoDat...
"Function acting as a one-shot wrapper around SmoothStewart object.\n Read a file of point values and optionnaly a mask file,\n return the smoothed representation as GeoJSON or GeoDataFrame.\n\n Parameters\n ----------\n input_geojson_points : str\n Path to file to use as input (Points/Polygons) o...
44
false
mthh/smoomapy
quick_stewart
34,939
LDU_FT/EliotBerriot/lifter/setup_fields
LDU_FT
[ "<BEGIN>\n## `_execute`", "We have to override this because in some situation\n (such as with Filebackend, or any dummy backend)\n we have to parse / adapt results *before* when can execute the query\n<END>", "<BEGIN>\n## `get`", "Get the given key from the cache, if present.\n A default ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the setup_fields API. 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 setup_fields API. 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...
Collect all fields declared on the class and remove them from attrs
"Collect all fields declared on the class and remove them from attrs"
29
false
EliotBerriot/lifter
setup_fields
34,940
LDU_FT/Crunch-io/crunch-cube/is_univariate_ca
LDU_FT
[ "<BEGIN>\n## `column_mask`", "ndarray, True where column margin <= min_base_size, same shape as slice.\n<END>", "<BEGIN>\n## `table_mask`", "ndarray, True where table margin <= min_base_size, same shape as slice.\n<END>", "<BEGIN>\n## `values`", "list of _ColumnPairwiseSignificance tests.", " Res...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_univariate_ca API. 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_univariate_ca API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
True if cube only contains a CA dimension-pair, in either order.
"True if cube only contains a CA dimension-pair, in either order."
334
false
Crunch-io/crunch-cube
is_univariate_ca
34,941
LDU_FT/dahlia/wikidata/set
LDU_FT
[ "<BEGIN>\n## `page_url`", "(:class:`str`) The canonical url of the page.\n<END>", "<BEGIN>\n## `image_url`", "r\"\"\"(:class:`~typing.Optional`\\ [:class:`str`]) The image url.\n It may be :const:`None` if it's not an image.\n<END>", "<BEGIN>\n## `image_resolution`", "r\"\"\"(:class:`~typing.Option...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
r"""Create or update a cache. :param key: A key string to create or update. :type key: :const:`CacheKey` :param value: A value to cache. :const:`None` to remove cache. :type value: :class:`~typing.Optional`\ [:const:`CacheValue`]
"r\"\"\"Create or update a cache.\n\n :param key: A key string to create or update.\n :type key: :const:`CacheKey`\n :param value: A value to cache. :const:`None` to remove cache.\n :type value: :class:`~typing.Optional`\\ [:const:`CacheValue`]"
33
false
dahlia/wikidata
set
34,942
LDU_FT/mapmyfitness/jtime/get_issue
LDU_FT
[ "<BEGIN>\n## `get_input`", "Get input from the user given an input function and an input string\n<END>", "<BEGIN>\n## `working_cycletime`", "Get the working time between a beginning and an end point subtracting out non-office time\n<END>", "<BEGIN>\n## `status`", "Gets the worklog status for the current b...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_issue API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_issue API. 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...
Gets the JIRA issue associated with the branch name. Returns None if no issue with this branch name.
"Gets the JIRA issue associated with the branch name.\n\n Returns None if no issue with this branch name."
36
false
mapmyfitness/jtime
get_issue
34,943
LDU_FT/yakupadakli/python-unsplash/collections
LDU_FT
[ "<BEGIN>\n## `all`", "Get a single page from the list of all photos.", " :param page [integer]: Page number to retrieve. (Optional; default: 1)\n :param per_page [integer]: Number of items per page. (Optional; default: 10)\n :param order_by [string]: How to sort the photos. Optional.\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the collections API. 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 collections API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
Get a list of collections created by the user. :param username [string]: The user’s username. Required. :param page [integer]: Page number to retrieve. (Optional; default: 1) :param per_page [integer]: Number of items per page. (Optional; default: 10) :return: [Array]: A single page of ...
"Get a list of collections created by the user.\n\n :param username [string]: The user’s username. Required.\n :param page [integer]: Page number to retrieve. (Optional; default: 1)\n :param per_page [integer]: Number of items per page. (Optional; default: 10)\n :return: [Array]: A single pa...
107
false
yakupadakli/python-unsplash
collections
34,944
LDU_FT/Clarify/clarify_python/_get_simple_model
LDU_FT
[ "<BEGIN>\n## `process_embed`", "Returns an embed field value based on the parameters.\n<END>", "<BEGIN>\n## `process_embed_override`", "Returns an embed field value based on the parameters.\n<END>", "<BEGIN>\n## `get_embedded_items`", "Given a result_collection (returned by a previous API call that\n r...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_simple_model API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_simple_model API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Get a model 'href' the relative href to the model. May not be None. Returns a data structure equivalent to the JSON returned by the API. If the response status is not 2xx, throws an APIException. If the JSON to python data struct conversion fails, throws an APIDataExce...
"Get a model\n\n 'href' the relative href to the model. May not be None.\n\n Returns a data structure equivalent to the JSON returned by the\n API.\n\n If the response status is not 2xx, throws an APIException.\n If the JSON to python data struct conversion fails, throws an\n A...
137
false
Clarify/clarify_python
_get_simple_model
34,945
LDU_FT/Synerty/peek-plugin-base/run
LDU_FT
[ "<BEGIN>\n## `addServerResource`", "Add Server Resource", " Add a cusotom implementation of a served http resource.", " :param pluginSubPath: The resource path where you want to serve this resource.\n :param resource: The resource to serve.\n :return: None\n<END>", "<BEGIN>\n## `...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the run API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the run API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
Run migrations in 'online' mode. In this scenario we need to create an Engine and associate a connection with the context.
"Run migrations in 'online' mode.\n \n In this scenario we need to create an Engine\n and associate a connection with the context."
66
false
Synerty/peek-plugin-base
run
34,946
LDU_FT/mitsei/dlkit/_assign_as_root
LDU_FT
[ "<BEGIN>\n## `get_osid_temporal_mdata`", "Return default mdata map for OsidTemporal\n<END>", "<BEGIN>\n## `get_osid_containable_mdata`", "Return default mdata map for OsidContainable\n<END>", "<BEGIN>\n## `get_osid_sourceable_mdata`", "Return default mdata map for OsidSourceable\n<END>", "<BEGIN>\n## `g...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _assign_as_root API. 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 _assign_as_root API. 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...
Assign an id_ a root object in the hierarchy
"Assign an id_ a root object in the hierarchy"
6,502
true
mitsei/dlkit
_assign_as_root
34,947
LDU_FT/HacKanCuBa/passphrase-py/password_length_needed
LDU_FT
[ "<BEGIN>\n## `entropy_bits`", "Calculate the number of entropy bits in a list or tuple of elements.\n<END>", "<BEGIN>\n## `entropy_bits_nrange`", "Calculate the number of entropy bits in a range of numbers.\n<END>", "<BEGIN>\n## `password_length_needed`", "Calculate the length of a password for a given en...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the password_length_needed 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 password_length_needed API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
Calculate the needed password length to satisfy the entropy number. This is for the given character set.
"Calculate the needed password length to satisfy the entropy number.\n\n This is for the given character set."
77
false
HacKanCuBa/passphrase-py
password_length_needed
34,948
LDU_FT/gtaylor/paypal-python/get_recurring_payments_profile_details
LDU_FT
[ "<BEGIN>\n## `_check_required`", "Checks kwargs for the values specified in 'requires', which is a tuple\n of strings. These strings are the NVP names of the required values.\n<END>", "<BEGIN>\n## `_call`", "Wrapper method for executing all API commands over HTTP. This method is\n further used t...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_recurring_payments_profile_details API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_recurring_payments_profile_details API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates...
Shortcut for the GetRecurringPaymentsProfile method. This returns details for a recurring payment plan. The ``profileid`` is a value included in the response retrieved by the function ``create_recurring_payments_profile``. The profile details include the data provided when the profile w...
"Shortcut for the GetRecurringPaymentsProfile method.\n\n This returns details for a recurring payment plan. The ``profileid`` is\n a value included in the response retrieved by the function\n ``create_recurring_payments_profile``. The profile details include the\n data provided when the pro...
78
false
gtaylor/paypal-python
get_recurring_payments_profile_details
34,949
LDU_FT/jwodder/javaproperties/loads_xml
LDU_FT
[ "<BEGIN>\n## `load_xml`", "r\"\"\"\n Parse the contents of the file-like object ``fp`` as an XML properties file\n and return a `dict` of the key-value pairs.", " Beyond basic XML well-formedness, `load_xml` only checks that the root\n element is named \"``properties``\" and that all of its ``<entry...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the loads_xml API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the loads_xml API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
r""" Parse the contents of the string ``s`` as an XML properties document and return a `dict` of the key-value pairs. Beyond basic XML well-formedness, `loads_xml` only checks that the root element is named "``properties``" and that all of its ``<entry>`` children have ``key`` attributes. No furth...
"r\"\"\"\n Parse the contents of the string ``s`` as an XML properties document and\n return a `dict` of the key-value pairs.\n\n Beyond basic XML well-formedness, `loads_xml` only checks that the root\n element is named \"``properties``\" and that all of its ``<entry>`` children\n have ``key`` attribute...
115
false
jwodder/javaproperties
loads_xml
34,950
LDU_FT/probcomp/crosscat/row_structural_typicality
LDU_FT
[ "<BEGIN>\n## `find`", "Find current canonical representative equivalent to node.", " Adjust the parent pointer of each node along the way to the root\n to point directly at the root for inverse-Ackerman-fast access.\n<END>", "<BEGIN>\n## `union`", "Assert equality of two nodes a and b so find(a) is fi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the row_structural_typicality 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 row_structural_typicality API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi...
Returns how typical the row is (opposite of how anomalous).
"Returns how typical the row is (opposite of how anomalous)."
92
false
probcomp/crosscat
row_structural_typicality
34,951
LDU_FT/Chilipp/docrep/keep_params_s
LDU_FT
[ "<BEGIN>\n## `safe_modulo`", "Safe version of the modulo operation (%) of strings", " Parameters\n ----------\n s: str\n string to apply the modulo operation with\n meta: dict or tuple\n meta informations to insert (usually via ``s % meta``)\n checked: {'KEY', 'VALUE'}, optional\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the keep_params_s API. 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 keep_params_s API. 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...
Keep the given parameters from a string Same as :meth:`keep_params` but does not use the :attr:`params` dictionary Parameters ---------- s: str The string of the parameters like section params: list of str The parameter names to keep Ret...
"Keep the given parameters from a string\n\n Same as :meth:`keep_params` but does not use the :attr:`params`\n dictionary\n\n Parameters\n ----------\n s: str\n The string of the parameters like section\n params: list of str\n The parameter names to keep\n...
136
false
Chilipp/docrep
keep_params_s
34,952
LDU_FT/nfcpy/nfcpy/add_carrier
LDU_FT
[ "<BEGIN>\n## `reset_mode`", "Send a Reset command to set the operation mode to 0.\n<END>", "<BEGIN>\n## `sense_tta`", "Activate the RF field and probe for a Type A Target.", " The RC-S956 can discover all Type A Targets (Type 1 Tag, Type\n 2 Tag, and Type 4A Tag) at 106 kbps. Due to firmware\n...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_carrier API. 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 add_carrier API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
Add a new carrier to the handover request message. :param carrier_record: a record providing carrier information :param power_state: a string describing the carrier power state :param aux_data_records: list of auxiliary data records :type carrier_record: :class:`nfc.ndef.Record` ...
"Add a new carrier to the handover request message.\n\n :param carrier_record: a record providing carrier information\n :param power_state: a string describing the carrier power state\n :param aux_data_records: list of auxiliary data records\n :type carrier_record: :class:`nfc.ndef.Record`\n...
452
false
nfcpy/nfcpy
add_carrier
34,953
LDU_FT/emirozer/bowshock/__getDummyDateList
LDU_FT
[ "<BEGIN>\n## `search_target_obj`", "Query for a specific target:", " http://asterank.com/api/skymorph/search?<params>\n target\tTarget object (lookup in MPC).\n<END>", "<BEGIN>\n## `search_orbit`", "Query based on orbital elements:", " http://asterank.com/api/skymorph/search_orbit?<params>\n e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the __getDummyDateList 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 __getDummyDateList API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
Generate a dummy date list for testing without hitting the server
"Generate a dummy date list for testing without \n\thitting the server"
90
false
emirozer/bowshock
__getDummyDateList
34,954
LDU_FT/guyskk/flask-restaction/abort
LDU_FT
[ "<BEGIN>\n## `resp_json`", "Get JSON from response if success, raise requests.HTTPError otherwise.", " Args:\n resp: requests.Response or flask.Response\n Retuens:\n JSON value\n<END>", "<BEGIN>\n## `res_to_url`", "Convert resource.action to (url, HTTP_METHOD)\n<END>", "<BEGIN>\n## `_r...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the abort API. Each 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 abort API. Each 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...
Abort with suitable error response Args: code (int): status code error (str): error symbol or flask.Response message (str): error message
"Abort with suitable error response\n\n Args:\n code (int): status code\n error (str): error symbol or flask.Response\n message (str): error message"
58
false
guyskk/flask-restaction
abort
34,955
LDU_FT/dhylands/rshell/unescape
LDU_FT
[ "<BEGIN>\n## `add_device`", "Adds a device to the list of devices we know about.\n<END>", "<BEGIN>\n## `is_micropython_usb_device`", "Checks a USB device to see if it looks like a MicroPython device.\n<END>", "<BEGIN>\n## `is_micropython_usb_port`", "Checks to see if the indicated portname is a MicroPytho...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the unescape API. 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 unescape API. 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...
Undoes the effects of the escape() function.
"Undoes the effects of the escape() function."
159
false
dhylands/rshell
unescape
34,956
LDU_FT/totalgood/pugnlp/dataframe_tptnfpfn
LDU_FT
[ "<BEGIN>\n## `make_datetime`", "Coerce a datetime or string into datetime.datetime object", " Arguments:\n dt (str or datetime.datetime or atetime.time or numpy.Timestamp): time or date\n to be coerced into a `datetime.date` object", " Returns:\n datetime.time: Time of day portion of a ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the dataframe_tptnfpfn 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 dataframe_tptnfpfn 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...
Count the True Pos, True Neg, False Pos, False Neg samples within a confusions matrx (potentiall larger than 2x2) >>> matrix = [[5, 3, 0], [2, 3, 1], [0, 2, 11]] >>> columns=['Cat', 'Dog', 'Rabbit'] >>> x = np.array([[tc, pc] for (tc, row) in enumerate(matrix) for (pc, n) in enumerate(row) for i in range(n)...
"Count the True Pos, True Neg, False Pos, False Neg samples within a confusions matrx (potentiall larger than 2x2)\n >>> matrix = [[5, 3, 0], [2, 3, 1], [0, 2, 11]]\n >>> columns=['Cat', 'Dog', 'Rabbit']\n >>> x = np.array([[tc, pc] for (tc, row) in enumerate(matrix) for (pc, n) in enumerate(row) for i in rang...
433
false
totalgood/pugnlp
dataframe_tptnfpfn
34,957
LDU_FT/apple/turicreate/depends
LDU_FT
[ "<BEGIN>\n## `ReadTag`", "Read a tag from the buffer, and return a (tag_bytes, new_pos) tuple.", " We return the raw bytes of the tag rather than decoding them. The raw\n bytes can then be used to look up the proper decoder. This effectively allows\n us to trade some work that would be done in pure-python ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the depends API. Each 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 depends API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
Adds additional instances of 'VirtualTarget' that this one depends on.
"Adds additional instances of 'VirtualTarget' that this\n one depends on."
7,340
true
apple/turicreate
depends
34,958
LDU_FT/uktrade/directory-validators/case_study_social_link_twitter
LDU_FT
[ "<BEGIN>\n## `keywords_special_characters`", "Confirms that the keywords don't contain special characters", " Args:\n keywords (str)", " Raises:\n django.forms.ValidationError\n<END>", "<BEGIN>\n## `image_format`", "Confirms that the uploaded image is of supported format.", " Args...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the case_study_social_link_twitter API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its con...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the case_study_social_link_twitter API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its con...
Confirms that the social media url is pointed at the correct domain. Args: value (string): The url to check. Raises: django.forms.ValidationError
"Confirms that the social media url is pointed at the correct domain.\n\n Args:\n value (string): The url to check.\n\n Raises:\n django.forms.ValidationError"
30
false
uktrade/directory-validators
case_study_social_link_twitter
34,959
LDU_FT/Saledddar/pyunet/find_modules_with_decorators
LDU_FT
[ "<BEGIN>\n## `add_to_path`", "Adds a path to python paths and removes it after the 'with' block ends\n<END>", "<BEGIN>\n## `find_file_regex`", "Finds all the files with the specified root directory with the name matching the regex expression.\n Args :\n root_dir : The root ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_modules_with_decorators API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its concl...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_modules_with_decorators API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its concl...
Finds all the modules decorated with the specified decorator in the path, file or module specified. Args : path : All modules in the directory and its sub-directories will be scanned. decorator_module : Then full name of the module defining the decorator. decorator...
"Finds all the modules decorated with the specified decorator in the path, file or module specified.\n Args :\n path : All modules in the directory and its sub-directories will be scanned.\n decorator_module : Then full name of the module defining the decorator.\n deco...
18
false
Saledddar/pyunet
find_modules_with_decorators
34,960
LDU_FT/adrn/gala/combine
LDU_FT
[ "<BEGIN>\n## `w`", "This returns a single array containing the phase-space positions.", " Parameters\n ----------\n units : `~gala.units.UnitSystem` (optional)\n The unit system to represent the position and velocity in\n before combining into the full array.", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the combine API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the combine API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
Combine the specified `~gala.dynamics.PhaseSpacePosition` or `~gala.dynamics.Orbit` objects. Parameters ---------- objs : iterable An iterable of either `~gala.dynamics.PhaseSpacePosition` or `~gala.dynamics.Orbit` objects.
"Combine the specified `~gala.dynamics.PhaseSpacePosition` or\n `~gala.dynamics.Orbit` objects.\n\n Parameters\n ----------\n objs : iterable\n An iterable of either `~gala.dynamics.PhaseSpacePosition` or\n `~gala.dynamics.Orbit` objects."
465
false
adrn/gala
combine
34,961
LDU_FT/bububa/pyTOP/get
LDU_FT
[ "<BEGIN>\n## `ordersku_update`", "taobao.trade.ordersku.update 更新交易订单的销售属性", " 需要商家或以上权限才可调用此接口,可重复调用本接口更新交易备注,本接口同时具有添加备注的功能\n<END>", "<BEGIN>\n## `get`", "taobao.topats.result.get 获取异步任务结果", " 使用指南:http://open.taobao.com/doc/detail.htm?id=30 ", " - 1.此接口用于获取异步任务处理的结果,传入的task_id必需属...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
taobao.taobaoke.report.get 淘宝客报表查询 淘宝客报表查询
"taobao.taobaoke.report.get 淘宝客报表查询\n \n 淘宝客报表查询"
619
false
bububa/pyTOP
get
34,962
LDU_FT/jaredLunde/vital-tools/get_class_that_defined_method
LDU_FT
[ "<BEGIN>\n## `line`", "Prints a line separator the full width of the terminal.", " @separator: the #str chars to create the line from\n @color: line color from :mod:vital.debug.colors\n @padding: adds extra lines to either the top, bottom or both\n of the line via :func:padd\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_class_that_defined_method 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 get_class_that_defined_method API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conc...
Gets the class object which defined a given method @meth: a class method -> owner class object
"Gets the class object which defined a given method\n\n @meth: a class method\n\n -> owner class object"
396
false
jaredLunde/vital-tools
get_class_that_defined_method
34,963
LDU_FT/timothycrosley/deprecated.frosted/NAME
LDU_FT
[ "<BEGIN>\n## `node_name`", "Convenience function: Returns node.id, or node.name, or None\n<END>", "<BEGIN>\n## `names`", "Return a list of the names referenced by this binding.\n<END>", "<BEGIN>\n## `unusedAssignments`", "Return a generator for the assignments which have not been used.\n<END>", "<BEGIN>...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the NAME API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the NAME API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
Handle occurrence of Name (which can be a load/store/delete access.)
"Handle occurrence of Name (which can be a load/store/delete\n access.)"
41
false
timothycrosley/deprecated.frosted
NAME
34,964
LDU_FT/ryanpetrello/python-zombie/create_elements
LDU_FT
[ "<BEGIN>\n## `_send`", "Establishes a socket connection to the zombie.js server and sends\n Javascript instructions.", " :param js: the Javascript string to execute\n<END>", "<BEGIN>\n## `wait`", "Call a method on the zombie.js Browser instance and wait on a callback.", " :param metho...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_elements API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_elements API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
Execute a browser method that will return a list of elements. Returns a list of the element indexes
"Execute a browser method that will return a list of elements.\n\n Returns a list of the element indexes"
33
false
ryanpetrello/python-zombie
create_elements
34,965
LDU_FT/avalente/appmetrics/pstdev
LDU_FT
[ "<BEGIN>\n## `notify`", "Increment or decrement the value, according to the given value's sign", " The value should be an integer, an attempt to cast it to integer will be made\n<END>", "<BEGIN>\n## `new_metric`", "Create a new metric of the given class.", " Raise DuplicateMetricError if the giv...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the pstdev API. Each 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 pstdev API. Each 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 the square root of the population variance. See ``pvariance`` for arguments and other details.
"Return the square root of the population variance.\n\n See ``pvariance`` for arguments and other details."
120
false
avalente/appmetrics
pstdev
34,966
LDU_FT/totalgood/nlpia/clean_column_values
LDU_FT
[ "<BEGIN>\n## `main`", "Train an LSTM encoder-decoder squence-to-sequence model on Anki flashcards for international translation", " >>> model = main('spa', n=400, epochs=3, batch_size=128, num_neurons=32)\n Train on 360 samples, validate on 40 samples\n Epoch 1/3\n ...\n >>> len(model.get_weights...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the clean_column_values API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the clean_column_values API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
r""" Convert dollar value strings, numbers with commas, and percents into floating point values >>> df = get_data('us_gov_deficits_raw') >>> df2 = clean_column_values(df, inplace=False) >>> df2.iloc[0] Fiscal year 10/2017-3/2018 Presiden...
"r\"\"\" Convert dollar value strings, numbers with commas, and percents into floating point values\n\n >>> df = get_data('us_gov_deficits_raw')\n >>> df2 = clean_column_values(df, inplace=False)\n >>> df2.iloc[0]\n Fiscal year 10/2017-3/2018\n ...
471
false
totalgood/nlpia
clean_column_values
34,967
LDU_FT/SHTOOLS/SHTOOLS/_to_array
LDU_FT
[ "<BEGIN>\n## `example`", "Plot random phase and Gaussian random variable spectra.\n<END>", "<BEGIN>\n## `plot_rad`", "Plot the radial component of the gravity field.", " Usage\n -----\n x.plot_rad([tick_interval, xlabel, ylabel, ax, colorbar,\n cb_orientation, cb_labe...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _to_array API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _to_array API. 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 the spherical harmonic coefficients of Slepian function i as an array, where i=0 is the best concentrated function.
"Return the spherical harmonic coefficients of Slepian function i as an\n array, where i=0 is the best concentrated function."
779
false
SHTOOLS/SHTOOLS
_to_array
34,968
LDU_FT/saulpw/visidata/iterline
LDU_FT
[ "<BEGIN>\n## `expand_cols_deep`", "expand all visible columns of containers to the given depth (0=fully)\n<END>", "<BEGIN>\n## `load_pyobj`", "Return Sheet object of appropriate type for given sources in `args`.\n<END>", "<BEGIN>\n## `getPublicAttrs`", "Return all public attributes (not methods or `_`-pre...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the iterline API. 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 iterline API. 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...
Yields (x, y) coords of line from (x1, y1) to (x2, y2)
"Yields (x, y) coords of line from (x1, y1) to (x2, y2)"
249
false
saulpw/visidata
iterline
34,969
LDU_FT/KieranWynn/pyquaternion/transformation_matrix
LDU_FT
[ "<BEGIN>\n## `_validate_number_sequence`", "Validate a sequence to be of a certain length and ensure it's a numpy array of floats.", " Raises:\n ValueError: Invalid length or non-numeric value\n<END>", "<BEGIN>\n## `_from_matrix`", "Initialise from matrix representation", " Create...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the transformation_matrix API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the transformation_matrix API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Get the 4x4 homogeneous transformation matrix equivalent of the quaternion rotation. Returns: A 4x4 homogeneous transformation matrix as a 4x4 Numpy array Note: This feature only makes sense when referring to a unit quaternion. Calling this method will implicitly normalise the ...
"Get the 4x4 homogeneous transformation matrix equivalent of the quaternion rotation.\n\n Returns:\n A 4x4 homogeneous transformation matrix as a 4x4 Numpy array\n\n Note:\n This feature only makes sense when referring to a unit quaternion. Calling this method will implicitly normali...
129
false
KieranWynn/pyquaternion
transformation_matrix
34,970
LDU_FT/jashort/SmartFileSorter/add_action_rules
LDU_FT
[ "<BEGIN>\n## `do_action`", ":param target: Full path and filename\n :param dry_run: True - don't actually perform action. False: perform action. No effect for this rule.\n :return: filename: Full path and filename after action completes\n<END>", "<BEGIN>\n## `add_match_rule`", "Adds the given ma...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_action_rules API. 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 add_action_rules API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Add the given action rules to the ruleset. Handles single rules or a list of rules. :param action_rules: Object representing YAML section from config file :return: Example action_rules object: ['print-file-info', {'move-to': '/tmp'}, 'stop-processing']
"Add the given action rules to the ruleset. Handles single rules or a list of rules.\n :param action_rules: Object representing YAML section from config file\n :return:\n\n Example action_rules object:\n ['print-file-info', {'move-to': '/tmp'}, 'stop-processing']"
38
false
jashort/SmartFileSorter
add_action_rules
34,971
LDU_FT/napalm-automation/napalm-logs/check_whitelist_blacklist
LDU_FT
[ "<BEGIN>\n## `_setup_ipc`", "Setup the IPC pub and sub.\n Subscript to the listener IPC\n and publish to the device specific IPC.\n<END>", "<BEGIN>\n## `_compile_prefixes`", "Create a dict of all OS prefixes and their compiled regexs\n<END>", "<BEGIN>\n## `_identify_prefix`", "Check the mess...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the check_whitelist_blacklist API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the check_whitelist_blacklist API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi...
Check a whitelist and/or blacklist to see if the value matches it. value The item to check the whitelist and/or blacklist against. whitelist The list of items that are white-listed. If ``value`` is found in the whitelist, then the function returns ``True``. Otherwise, it return...
"Check a whitelist and/or blacklist to see if the value matches it.\n\n value\n The item to check the whitelist and/or blacklist against.\n\n whitelist\n The list of items that are white-listed. If ``value`` is found\n in the whitelist, then the function returns ``True``. Otherwise,\n ...
82
false
napalm-automation/napalm-logs
check_whitelist_blacklist
34,972