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/mcs07/PubChemPy/download
LDU_FT
[ "<BEGIN>\n## `request`", "Construct API request from parameters and return the response.", " Full specification at http://pubchem.ncbi.nlm.nih.gov/pug_rest/PUG_REST.html\n<END>", "<BEGIN>\n## `get`", "Request wrapper that automatically handles async requests.\n<END>", "<BEGIN>\n## `get_json`", "Reque...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the download API. 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 download API. 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...
Format can be XML, ASNT/B, JSON, SDF, CSV, PNG, TXT.
"Format can be XML, ASNT/B, JSON, SDF, CSV, PNG, TXT."
83
false
mcs07/PubChemPy
download
33,273
LDU_FT/pytroll/pyorbital/_checksum
LDU_FT
[ "<BEGIN>\n## `gmst`", "Greenwich mean sidereal utc_time, in radians.", " As defined in the AIAA 2006 implementation:\n http://www.celestrak.com/publications/AIAA/2006-6753/\n<END>", "<BEGIN>\n## `sun_ecliptic_longitude`", "Ecliptic longitude of the sun at *utc_time*.\n<END>", "<BEGIN>\n## `sun_ra_de...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _checksum API. 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 _checksum API. 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...
Performs the checksum for the current TLE.
"Performs the checksum for the current TLE."
83
false
pytroll/pyorbital
_checksum
33,274
LDU_FT/mabuchilab/QNET/move_drive_to_H
LDU_FT
[ "<BEGIN>\n## `isdisjoint`", "Check whether two Hilbert spaces are disjoint (do not have any\n common local factors). Note that `FullSpace` is *not* disjoint with any\n other Hilbert space, while `TrivialSpace` *is* disjoint with any other\n HilbertSpace (even itself)\n<END>", "<BEGIN>\n## `...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the move_drive_to_H API. 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 move_drive_to_H API. 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...
r'''Move coherent drives from the Lindblad operators to the Hamiltonian. For the given SLH model, move inhomogeneities in the Lindblad operators (resulting from the presence of a coherent drive, see :class:`CoherentDriveCC`) to the Hamiltonian. This exploits the invariance of the Lindblad master equat...
"r'''Move coherent drives from the Lindblad operators to the Hamiltonian.\n\n For the given SLH model, move inhomogeneities in the Lindblad operators (resulting\n from the presence of a coherent drive, see :class:`CoherentDriveCC`) to the\n Hamiltonian.\n\n This exploits the invariance of the Lindblad maste...
1,017
false
mabuchilab/QNET
move_drive_to_H
33,275
LDU_FT/ethereum/eth-abi/decode_abi
LDU_FT
[ "<BEGIN>\n## `abbr`", "Converts a value into its string representation and abbreviates that\n representation based on the given length `limit` if necessary.\n<END>", "<BEGIN>\n## `invalidate_value`", "Throws a standard exception for when a value is not encodable by an\n encoder.\n<END>", "<BEGIN>\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the decode_abi API. 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 decode_abi API. 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...
Decodes the binary value ``data`` as a sequence of values of the ABI types in ``types`` via the head-tail mechanism into a tuple of equivalent python values. :param types: An iterable of string representations of the ABI types that will be used for decoding e.g. ``('uint256', 'bytes...
"Decodes the binary value ``data`` as a sequence of values of the ABI types\n in ``types`` via the head-tail mechanism into a tuple of equivalent python\n values.\n\n :param types: An iterable of string representations of the ABI types that\n will be used for decoding e.g. ``('uint256', ...
57
false
ethereum/eth-abi
decode_abi
33,276
LDU_FT/flying-sheep/bcode/main
LDU_FT
[ "<BEGIN>\n## `_readuntil`", "Helper function to read bytes until a certain end byte is hit\n<END>", "<BEGIN>\n## `_decode_buffer`", "String types are normal (byte)strings\n\tstarting with an integer followed by ':'\n\twhich designates the string’s length.", "\tSince there’s no way to specify the byte type\n...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the main API. Each 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 main API. Each 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...
Decodes bencoded files to python syntax (like JSON, but with bytes support)
"Decodes bencoded files to python syntax (like JSON, but with bytes support)"
17
false
flying-sheep/bcode
main
33,277
LDU_FT/KennethWilke/PingdomLib/getCheck
LDU_FT
[ "<BEGIN>\n## `_serializeBooleans`", "Convert all booleans to lowercase strings\n<END>", "<BEGIN>\n## `actions`", "Returns a list of actions (alerts) that have been generated for\n your account.", " Optional Parameters:", " * from -- Only include actions generated later than th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the getCheck API. 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 getCheck API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
Returns a detailed description of a specified check.
"Returns a detailed description of a specified check."
177
false
KennethWilke/PingdomLib
getCheck
33,278
LDU_FT/redhat-cip/python-dciclient/show
LDU_FT
[ "<BEGIN>\n## `list`", "list(context, verbose)", " List all tags.", " >>> dcictl tag-list", " :param boolean verbose: Display verbose output\n<END>", "<BEGIN>\n## `create`", "create(context, name)", " Create a tag.", " >>> dcictl tag-create [OPTIONS]", " :param string name: Name o...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the show API. Each 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 show API. Each 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...
show(context, id) Show a Feeder. >>> dcictl feeder-show [OPTIONS] :param string id: ID of the feeder to show [required]
"show(context, id)\n\n Show a Feeder.\n\n >>> dcictl feeder-show [OPTIONS]\n\n :param string id: ID of the feeder to show [required]"
310
false
redhat-cip/python-dciclient
show
33,279
LDU_FT/qacafe/cdrouter.py/stage_import_from_filesystem
LDU_FT
[ "<BEGIN>\n## `list`", "Get a list of configs.", " :param filter: (optional) Filters to apply as a string list.\n :param type: (optional) `union` or `inter` as string.\n :param sort: (optional) Sort fields to apply as string list.\n :param limit: (optional) Limit returned list length....
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the stage_import_from_filesystem 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 stage_import_from_filesystem API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its concl...
Stage an import from a filesystem path. :param filepath: Local filesystem path as string. :return: :class:`imports.Import <imports.Import>` object
"Stage an import from a filesystem path.\n\n :param filepath: Local filesystem path as string.\n :return: :class:`imports.Import <imports.Import>` object"
282
false
qacafe/cdrouter.py
stage_import_from_filesystem
33,280
LDU_FT/gitenberg-dev/gitberg/arc
LDU_FT
[ "<BEGIN>\n## `remote_path`", "turns an ebook_id into a path on PG's server(s)\n 4443 -> 4/4/4/4443/\n<END>", "<BEGIN>\n## `make`", "turn fetched files into a local repo, make auxiliary files\n<END>", "<BEGIN>\n## `push`", "create a github repo and push the local repo into it\n<END>", "<BEGIN...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the arc API. Each 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 arc API. Each 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...
This is different than the Processing function arc(): https://processing.org/reference/arc_.html Use the Cairo arc() function to draw an arc with a given line thickness.
"This is different than the Processing function arc():\n https://processing.org/reference/arc_.html\n\n Use the Cairo arc() function to draw an arc with a given line thickness."
51
false
gitenberg-dev/gitberg
arc
33,281
LDU_FT/trevisanj/f311/load_spectrum
LDU_FT
[ "<BEGIN>\n## `save_as`", "Dumps object contents into file on disk.", " Args:\n filename (optional): defaults to self.filename. If passed, self.filename\n will be updated to filename.\n<END>", "<BEGIN>\n## `load`", "Loads file and registers filename as attribute.\n<END>", "<BEGIN...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load_spectrum API. 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_spectrum API. 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...
Attempts to load spectrum as one of the supported types. Returns: a Spectrum, or None
"Attempts to load spectrum as one of the supported types.\n\n Returns:\n a Spectrum, or None"
204
false
trevisanj/f311
load_spectrum
33,282
LDU_FT/openstack/hacking/hacking_docstring_start_space
LDU_FT
[ "<BEGIN>\n## `hacking_todo_format`", "Check for 'TODO()'.", " OpenStack HACKING guide recommendation for TODO:\n Include your name with TODOs as in \"# TODO(termie)\"", " Okay: # TODO(sdague)\n H101: # TODO fail\n H101: # TODO\n H101: # TODO (jogo) fail\n Okay: TODO = 5\n<END>", "<BEGIN...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the hacking_docstring_start_space 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 hacking_docstring_start_space API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conc...
r"""Check for docstring not starting with space. OpenStack HACKING guide recommendation for docstring: Docstring should not start with space Okay: def foo():\n '''This is good.''' Okay: def foo():\n r'''This is good.''' Okay: def foo():\n a = ''' This is not a docstring.''' Okay: def ...
"r\"\"\"Check for docstring not starting with space.\n\n OpenStack HACKING guide recommendation for docstring:\n Docstring should not start with space\n\n Okay: def foo():\\n '''This is good.'''\n Okay: def foo():\\n r'''This is good.'''\n Okay: def foo():\\n a = ''' This is not a docstring.'''\...
114
false
openstack/hacking
hacking_docstring_start_space
33,283
LDU_FT/linode/linode_api4-python/clone
LDU_FT
[ "<BEGIN>\n## `nodes`", "This is a special derived_class relationship because NodeBalancerNode is the\n only api object that requires two parent_ids\n<END>", "<BEGIN>\n## `load_ssl_data`", "A convenience method that loads a cert and a key from files and sets them\n on this object. This can make ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the clone API. Each 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 clone API. Each 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...
Clones this linode into a new linode or into a new linode in the given region
"Clones this linode into a new linode or into a new linode in the given region"
232
false
linode/linode_api4-python
clone
33,284
LDU_FT/push-things/django-th/_set_meta
LDU_FT
[ "<BEGIN>\n## `available_services`", "get the available services to be activated", " read the models dir to find the services installed\n to be added to the system by the administrator\n<END>", "<BEGIN>\n## `handle`", "get all the triggers that need to be handled\n<END>", "<BEGIN>\n## `read_d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _set_meta API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _set_meta API. 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...
the header :param title: the title of the post :param published: the date when the data has been published by the provider :param category: category of this data :param tags: the tags :type title: string :type published: string ...
"the header\n\n :param title: the title of the post\n :param published: the date when the data\n has been published by the provider\n :param category: category of this data\n :param tags: the tags\n :type title: string\n :type published: strin...
277
false
push-things/django-th
_set_meta
33,285
LDU_FT/addisonlynch/iexfinance/get_stats_daily
LDU_FT
[ "<BEGIN>\n## `_sanitize_dates`", "Return (datetime_start, datetime_end) tuple\r\n if start is None - default is 2015/01/01\r\n if end is None - default is today\n<END>", "<BEGIN>\n## `get_social_sentiment`", "Social Sentiment", " .. warning:: Unstable endpoint. May return unexpected results.", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_stats_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 e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_stats_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 e...
Stats Historical Daily This call will return daily stats for a given month or day. .. warning:: This endpoint is marked as "in development" by the provider. Reference: https://iexcloud.io/docs/api/#stats-historical-daily-in-dev Data Weighting: ``Free`` Parameters ---------- start: dateti...
"Stats Historical Daily\n\n This call will return daily stats for a given month or day.\n\n .. warning:: This endpoint is marked as \"in development\" by the provider.\n\n Reference: https://iexcloud.io/docs/api/#stats-historical-daily-in-dev\n Data Weighting: ``Free``\n\n Parameters\n ----------\n ...
129
false
addisonlynch/iexfinance
get_stats_daily
33,286
LDU_FT/opennode/waldur-core/apply_signature
LDU_FT
[ "<BEGIN>\n## `subfield_get`", "Verbatim copy from:\n https://github.com/django/django/blob/1.9.13/django/db/models/fields/subclassing.py#L38\n<END>", "<BEGIN>\n## `_preprocess_kwargs`", "Replace generic key related attribute with filters by object_id and content_type fields\n<END>", "<BEGIN>\n## `list`",...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the apply_signature API. 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 apply_signature API. 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...
Serialize input data and apply signature
"Serialize input data and apply signature"
526
false
opennode/waldur-core
apply_signature
33,287
LDU_FT/tyiannak/pyAudioAnalysis/visualizeFeaturesFolder
LDU_FT
[ "<BEGIN>\n## `recordAnalyzeAudio`", "recordAnalyzeAudio(duration, outputWavFile, midTermBufferSizeSec, modelName, modelType)", "\tThis function is used to record and analyze audio segments, in a fix window basis.", "\tARGUMENTS: \n\t- duration\t\t\ttotal recording duration\n\t- outputWavFile\t\t\tpath of the ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the visualizeFeaturesFolder 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 visualizeFeaturesFolder 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 function generates a chordial visualization for the recordings of the provided path. ARGUMENTS: - folder: path of the folder that contains the WAV files to be processed - dimReductionMethod: method used to reduce the dimension of the initial feature space before computing the similari...
"This function generates a chordial visualization for the recordings of the provided path.\n ARGUMENTS:\n - folder: path of the folder that contains the WAV files to be processed\n - dimReductionMethod: method used to reduce the dimension of the initial feature space before computing the simi...
99
false
tyiannak/pyAudioAnalysis
visualizeFeaturesFolder
33,288
LDU_FT/siemens/django-dingos/create_marking_iobject
LDU_FT
[ "<BEGIN>\n## `set_dict`", "set_dict takes a dictionary, the value to\n enter into the dictionary, a command of what\n to do with the value, and a sequence of keys.", " d = {}", " set_dict(d,1,'append','level 1','level 2')", " -> d['level 1']['level 2'] = [1]", " set_dict(d,2,'append','le...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_marking_iobject 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 create_marking_iobject API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
A specialized version of create_iobject with defaults set such that a default marking object is created.
"A specialized version of create_iobject with defaults set such that a default marking object is created."
139
false
siemens/django-dingos
create_marking_iobject
33,289
LDU_FT/geopy/geopy/reverse
LDU_FT
[ "<BEGIN>\n## `_construct_url`", "Construct geocoding request url. Overridden.", " :param str base_api: Geocoding function base address - self.api\n or self.reverse_api.", " :param dict params: Geocoding params.", " :return: string URL.\n<END>", "<BEGIN>\n## `geocode`", "R...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the reverse API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the reverse API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
Return an address by location point. :param query: The coordinates for which you wish to obtain the closest human-readable addresses. :type query: :class:`geopy.point.Point`, list or tuple of ``(latitude, longitude)``, or string as ``"%(latitude)s, %(longitude)s"``. :pa...
"Return an address by location point.\n\n :param query: The coordinates for which you wish to obtain the\n closest human-readable addresses.\n :type query: :class:`geopy.point.Point`, list or tuple of ``(latitude,\n longitude)``, or string as ``\"%(latitude)s, %(longitude)s\"``.\n\n ...
405
false
geopy/geopy
reverse
33,290
LDU_FT/ratcave/ratcave/bind
LDU_FT
[ "<BEGIN>\n## `add_child`", "Adds an object as a child in the scene graph.\n<END>", "<BEGIN>\n## `add_children`", "Conveniience function: Adds objects as children in the scene graph.\n<END>", "<BEGIN>\n## `match_aspect_to_viewport`", "Updates Camera.aspect to match the viewport's aspect ratio.\n<END>", "...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the bind API. Each 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 bind API. Each 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...
Activate this Shader, making it the currently-bound program. Any Mesh.draw() calls after bind() will have their data processed by this Shader. To unbind, call Shader.unbind(). Example:: shader.bind() mesh.draw() shader.unbind() .. note:: Shader.bind() and Sh...
"Activate this Shader, making it the currently-bound program.\n\n Any Mesh.draw() calls after bind() will have their data processed by this Shader. To unbind, call Shader.unbind().\n\n Example::\n\n shader.bind()\n mesh.draw()\n shader.unbind()\n\n .. note:: Shader.bi...
79
false
ratcave/ratcave
bind
33,291
LDU_FT/picklepete/pyicloud/status
LDU_FT
[ "<BEGIN>\n## `refresh_client`", "Refreshes the FindMyiPhoneService endpoint,", " This ensures that the location data is up-to-date.\n<END>", "<BEGIN>\n## `status`", "Returns status information for device.", " This returns only a subset of possible properties.\n<END>", "<BEGIN>\n## `play_so...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the status API. Each 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 status API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Returns status information for device. This returns only a subset of possible properties.
"Returns status information for device.\n\n This returns only a subset of possible properties."
32
false
picklepete/pyicloud
status
33,292
LDU_FT/underworldcode/stripy/nearest_vertex
LDU_FT
[ "<BEGIN>\n## `install_documentation`", "Install the example notebooks for litho1pt0 in the given location", " WARNING: If the path exists, the Notebook files will be written into the path\n and will overwrite any existing files with which they collide. The default\n path (\"./Litho1pt0-Notebooks\") is ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the nearest_vertex API. 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 nearest_vertex API. 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...
Locate the index of the nearest vertex to points (lons,lats) and return the squared great circle distance between (lons,lats) and each nearest neighbour. Parameters ---------- lons : float / array of floats, shape (l,) longitudinal coordinate(s) on the sphere ...
"Locate the index of the nearest vertex to points (lons,lats)\n and return the squared great circle distance between (lons,lats) and\n each nearest neighbour.\n\n Parameters\n ----------\n lons : float / array of floats, shape (l,)\n longitudinal coordinate(s) on the spher...
224
false
underworldcode/stripy
nearest_vertex
33,293
LDU_FT/rackerlabs/silverberg/hacked_pep257
LDU_FT
[ "<BEGIN>\n## `describe_version`", "Query the Cassandra server for the version.", " :returns: string -- the version tag\n<END>", "<BEGIN>\n## `execute`", "Execute a CQL query against the server.", " :param query: The CQL query to execute\n :type query: str.", " :param args: Th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the hacked_pep257 API. 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 hacked_pep257 API. 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...
Check for the presence of docstrings, but ignore some of the options
"Check for the presence of docstrings, but ignore some of the options"
48
false
rackerlabs/silverberg
hacked_pep257
33,294
LDU_FT/wavefrontHQ/python-client/get_notificant
LDU_FT
[ "<BEGIN>\n## `display`", "Sets the display of this Message.", " The form of display for this message # noqa: E501", " :param display: The display of this Message. # noqa: E501\n :type: str\n<END>", "<BEGIN>\n## `scope`", "Sets the scope of this Message.", " The audience sco...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_notificant API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_notificant API. 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...
Get a specific notification target # noqa: E501 # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_notificant(id, async_req=True) >>> result = thread.get() :param...
"Get a specific notification target # noqa: E501\n\n # noqa: E501\n This method makes a synchronous HTTP request by default. To make an\n asynchronous HTTP request, please pass async_req=True\n >>> thread = api.get_notificant(id, async_req=True)\n >>> result = thread.get()\n\n ...
954
false
wavefrontHQ/python-client
get_notificant
33,295
LDU_FT/HttpRunner/HttpRunner/request
LDU_FT
[ "<BEGIN>\n## `setup_logger`", "setup root logger with ColoredFormatter.\n<END>", "<BEGIN>\n## `_handle_skip_feature`", "handle skip feature for test\n - skip: skip current test unconditionally\n - skipIf: skip current test if condition is true\n - skipUnless: skip current test...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the request API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the request API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
Constructs and sends a :py:class:`requests.Request`. Returns :py:class:`requests.Response` object. :param method: method for the new :class:`Request` object. :param url: URL for the new :class:`Request` object. :param name: (optional) Placeholder, mak...
"Constructs and sends a :py:class:`requests.Request`.\n Returns :py:class:`requests.Response` object.\n\n :param method:\n method for the new :class:`Request` object.\n :param url:\n URL for the new :class:`Request` object.\n :param name: (optional)\n Placeho...
267
false
HttpRunner/HttpRunner
request
33,296
LDU_FT/adamcharnock/swiftwind/_is_ready
LDU_FT
[ "<BEGIN>\n## `get_amount_normal`", "Get the amount due on the given billing cycle", " For regular recurring costs this is simply `fixed_amount`. For\n one-off costs this is the portion of `fixed_amount` for the given\n billing_cycle.\n<END>", "<BEGIN>\n## `get_amount_arrears_balance`", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _is_ready API. 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_ready API. 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...
Is the RecurringCost ready to be enacted as of the date `as_of` This determines if `as_of` precedes the start of `initial_billing_cycle`. If so, we should not be enacting this RecurringCost yet. Args: as_of (Date):
"Is the RecurringCost ready to be enacted as of the date `as_of`\n\n This determines if `as_of` precedes the start of `initial_billing_cycle`. If so,\n we should not be enacting this RecurringCost yet.\n\n Args:\n as_of (Date):"
49
false
adamcharnock/swiftwind
_is_ready
33,297
LDU_FT/rstoneback/pysat/list_files
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 list_files API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the list_files API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
Return a Pandas Series of every file for chosen SuperMAG data Parameters ----------- tag : (string or NoneType) Denotes type of file to load. Accepted types are 'indices', 'all', 'stations', and '' (for just magnetometer measurements). (default='') sat_id : (string or NoneType) ...
"Return a Pandas Series of every file for chosen SuperMAG data\n\n Parameters\n -----------\n tag : (string 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 : (string or NoneType)...
525
false
rstoneback/pysat
list_files
33,298
LDU_FT/amoffat/sh/get_rc_exc
LDU_FT
[ "<BEGIN>\n## `encode_to_py3bytes_or_py2str`", "takes anything and attempts to return a py2 string or py3 bytes. this\n is typically used when creating command + arguments to be executed via\n os.exec*\n<END>", "<BEGIN>\n## `get_exc_from_name`", "takes an exception name, like:", " ErrorReturnCo...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_rc_exc API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_rc_exc API. 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...
takes a exit code or negative signal number and produces an exception that corresponds to that return code. positive return codes yield ErrorReturnCode exception, negative return codes yield SignalException we also cache the generated exception so that only one signal of that type exists, preserving i...
"takes a exit code or negative signal number and produces an exception\n that corresponds to that return code. positive return codes yield\n ErrorReturnCode exception, negative return codes yield SignalException\n\n we also cache the generated exception so that only one signal of that type\n exists, preser...
83
false
amoffat/sh
get_rc_exc
33,299
LDU_FT/edx/pa11ycrawler/ignore_rule_matches_result
LDU_FT
[ "<BEGIN>\n## `make_parser`", "Returns an argparse instance for this script.\n<END>", "<BEGIN>\n## `main`", "Validates script arguments and calls the render_html() function with them.\n<END>", "<BEGIN>\n## `wcag_refs`", "Given a `code` from pa11y, return a list of the WCAG references.\n These references...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the ignore_rule_matches_result API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclus...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the ignore_rule_matches_result API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclus...
Returns a boolean result of whether the given ignore rule matches the given pa11y result. The rule only matches the result if *all* attributes of the rule match.
"Returns a boolean result of whether the given ignore rule matches\n the given pa11y result. The rule only matches the result if *all*\n attributes of the rule match."
56
false
edx/pa11ycrawler
ignore_rule_matches_result
33,300
LDU_FT/jreese/dotlink/deploy_dotfiles
LDU_FT
[ "<BEGIN>\n## `parse_mapping`", "Do a simple parse of the dotfile mapping, using semicolons to\n separate source file name from the target file paths.\n<END>", "<BEGIN>\n## `sh`", "Run a shell command with the given arguments.\n<END>", "<BEGIN>\n## `ssh`", "Run an ssh command using the configured us...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the deploy_dotfiles API. 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 deploy_dotfiles API. 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...
Deploy dotfiles using the appropriate method.
"Deploy dotfiles using the appropriate method."
16
false
jreese/dotlink
deploy_dotfiles
33,301
LDU_FT/eddiejessup/spatious/cdist_sq_periodic
LDU_FT
[ "<BEGIN>\n## `R_rot_2d`", "Return a 2-dimensional rotation matrix.", " Parameters\n ----------\n th: array, shape (n, 1)\n Angles about which to rotate.", " Returns\n -------\n R: array, shape (n, 2, 2)\n<END>", "<BEGIN>\n## `R_rot_3d`", "Return a 3-dimensional rotation matrix.", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the cdist_sq_periodic API. 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 cdist_sq_periodic API. 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 squared distance between each point in on set, and every point in a second set, in periodic space. Parameters ---------- ra, rb: float array-like, shape (n, d) and (m, d) in d dimensions. Two sets of points. L: float array, shape (d,) System lengths. Returns ----...
"Return the squared distance between each point in on set,\n and every point in a second set, in periodic space.\n\n Parameters\n ----------\n ra, rb: float array-like, shape (n, d) and (m, d) in d dimensions.\n Two sets of points.\n L: float array, shape (d,)\n System lengths.\n\n Retur...
112
false
eddiejessup/spatious
cdist_sq_periodic
33,302
LDU_FT/JoseAntFer/pyny3d/get_domain
LDU_FT
[ "<BEGIN>\n## `run`", "Run the shadowing computation with the values stored in \r\n ``self.arg_``. Precomputed information is stored in:\r", " * **.diff_t** (*ndarray*): ``np.diff(t)``\r\n * **.integral** (*ndarray*): Trapezoidal data integration \r\n over time.\r", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_domain API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_domain API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
:returns: opposite vertices of the bounding prism for this object. :rtype: ndarray([min], [max])
":returns: opposite vertices of the bounding prism for this \r\n object.\r\n :rtype: ndarray([min], [max])"
298
false
JoseAntFer/pyny3d
get_domain
33,303
LDU_FT/aaronn/django-rest-framework-passwordless/send_sms_with_callback_token
LDU_FT
[ "<BEGIN>\n## `validate_token_age`", "Returns True if a given token is within the age expiration limit.\n<END>", "<BEGIN>\n## `verify_user_alias`", "Marks a user's contact point as verified depending on accepted token type.\n<END>", "<BEGIN>\n## `send_email_with_callback_token`", "Sends a Email to user.ema...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the send_sms_with_callback_token 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 send_sms_with_callback_token API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its concl...
Sends a SMS to user.mobile via Twilio. Passes silently without sending in test environment.
"Sends a SMS to user.mobile via Twilio.\n\n Passes silently without sending in test environment."
16
false
aaronn/django-rest-framework-passwordless
send_sms_with_callback_token
33,304
LDU_FT/nccgroup/opinel/write_creds_to_aws_credentials_file
LDU_FT
[ "<BEGIN>\n## `read_default_args`", "Read default argument values for a given tool", " :param tool_name: Name of the script to read the default arguments for\n :return: Dictionary of default arguments (shared + tool-specific)\n<END>", "<BEGIN>\n## `prompt`", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the write_creds_to_aws_credentials_file API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates it...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the write_creds_to_aws_credentials_file API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates it...
Write credentials to AWS config file :param profile_name: :param credentials: :param credentials_file: :return:
"Write credentials to AWS config file\n\n :param profile_name:\n :param credentials:\n :param credentials_file:\n :return:"
132
false
nccgroup/opinel
write_creds_to_aws_credentials_file
33,305
LDU_FT/cebel/pyuniprot/other_gene_name
LDU_FT
[ "<BEGIN>\n## `get_args`", "Check allowed argument names and return is as dictionary\n<END>", "<BEGIN>\n## `query_disease`", "Returns list of diseases by query parameters\n ---", " tags:", " - Query functions", " parameters:", " - name: identifier\n in: query\n type: st...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the other_gene_name API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the other_gene_name API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
Method to query :class:`.models.OtherGeneName` objects in database :param type_: type(s) of gene name e.g. *synonym* :type type_: str or tuple(str) or None :param name: other gene name(s) :type name: str or tuple(str) or None :param entry_name: name(s) in :class:`.models.Entry...
"Method to query :class:`.models.OtherGeneName` objects in database\n\n :param type_: type(s) of gene name e.g. *synonym*\n :type type_: str or tuple(str) or None\n\n :param name: other gene name(s)\n :type name: str or tuple(str) or None\n\n :param entry_name: name(s) in :class:`.mod...
416
false
cebel/pyuniprot
other_gene_name
33,306
LDU_FT/abhishek-ram/pyas2-lib/parse
LDU_FT
[ "<BEGIN>\n## `quote_as2name`", "Function converts as2 name from unquoted to quoted format\n :param unquoted_name: the as2 name in unquoted format\n :return: the as2 name in unquoted format\n<END>", "<BEGIN>\n## `mime_to_bytes`", "Function to convert and email Message to flat string format\n :param ms...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
Function parses the RAW AS2 message; decrypts, verifies and decompresses it and extracts the payload. :param raw_content: A byte string of the received HTTP headers followed by the body. :param find_org_cb: A callback the returns an Organization object if exists. The ...
"Function parses the RAW AS2 message; decrypts, verifies and\n decompresses it and extracts the payload.\n\n :param raw_content:\n A byte string of the received HTTP headers followed by the body.\n\n :param find_org_cb:\n A callback the returns an Organization object if exists...
81
false
abhishek-ram/pyas2-lib
parse
33,307
LDU_FT/pybluez/pybluez/to_full_uuid
LDU_FT
[ "<BEGIN>\n## `btaddrtochars`", "Takes a bluetooth address and returns a tuple with the corresponding\n char values. This can then be used to construct a\n IOBluetoothDevice object, providing the signature of the withAddress:\n selector has been set (as in _setpyobjcsignatures() in this module).", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the to_full_uuid API. 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 to_full_uuid API. 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...
converts a short 16-bit or 32-bit reserved UUID to a full 128-bit Bluetooth UUID.
"converts a short 16-bit or 32-bit reserved UUID to a full 128-bit Bluetooth\n UUID."
80
false
pybluez/pybluez
to_full_uuid
33,308
LDU_FT/MrYsLab/pymata-aio/get_pin_state
LDU_FT
[ "<BEGIN>\n## `start`", "This method opens an IP connection on the IP device", " :return: None\n<END>", "<BEGIN>\n## `write`", "This method writes sends data to the IP device\n :param data:", " :return: None\n<END>", "<BEGIN>\n## `loop`", "Function that gets called again as soon as...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_pin_state API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_pin_state API. 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...
This method retrieves a pin state report for the specified pin :param pin: Pin of interest :param cb: optional callback reference :returns: pin state report
"This method retrieves a pin state report for the specified pin\n\n :param pin: Pin of interest\n\n :param cb: optional callback reference\n\n :returns: pin state report"
561
false
MrYsLab/pymata-aio
get_pin_state
33,309
LDU_FT/rene-aguirre/pywinusb/open
LDU_FT
[ "<BEGIN>\n## `hid_device_path_exists`", "Test if required device_path is still valid\r\n (HID device connected to host)\n<END>", "<BEGIN>\n## `find_all_hid_devices`", "Finds all HID devices connected to the system\n<END>", "<BEGIN>\n## `show_hids`", "Check all HID devices conected to PC hosts.\n<END>",...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the open API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the open API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
Calls SetupDiGetClassDevs to obtain a handle to an opaque device information set that describes the device interfaces supported by all the USB collections currently installed in the system. The application should specify DIGCF.PRESENT and DIGCF.INTERFACEDEVICE in the Flags parameter ...
"Calls SetupDiGetClassDevs to obtain a handle to an opaque device\r\n information set that describes the device interfaces supported by all\r\n the USB collections currently installed in the system. The\r\n application should specify DIGCF.PRESENT and DIGCF.INTERFACEDEVICE\r\n in the Flags p...
61
false
rene-aguirre/pywinusb
open
33,310
LDU_FT/EventRegistry/event-registry-python/addSourceGroup
LDU_FT
[ "<BEGIN>\n## `compute`", "compute the list of most similar events for the given text\n<END>", "<BEGIN>\n## `getUpdates`", "Get the latest new or updated events from Event Registry\n NOTE: call this method exactly once per minute - calling it more frequently will return the same results multiple times,\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the addSourceGroup API. 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 addSourceGroup API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
add a list of relevant sources by specifying a whole source group to the topic page @param sourceGroupUri: uri of the source group to add @param weight: importance of the provided list of sources (typically in range 1 - 50)
"add a list of relevant sources by specifying a whole source group to the topic page\n @param sourceGroupUri: uri of the source group to add\n @param weight: importance of the provided list of sources (typically in range 1 - 50)"
89
false
EventRegistry/event-registry-python
addSourceGroup
33,311
LDU_FT/redodo/formats/register_meta
LDU_FT
[ "<BEGIN>\n## `register`", "Registers a parser and composer of a format.", " You can use this method to overwrite existing formats.", " :param type: The unique name of the format\n :param parser: The method to parse data as the format\n :param composer: The method to compose data as the format\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the register_meta API. 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 register_meta API. 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...
Registers extra _meta_ information about a format. :param type: The unique name of the format :param meta: The extra information associated with the format
"Registers extra _meta_ information about a format.\n\n :param type: The unique name of the format\n :param meta: The extra information associated with the format"
59
false
redodo/formats
register_meta
33,312
LDU_FT/SpockBotMC/SpockBot/_make_window
LDU_FT
[ "<BEGIN>\n## `clean_var`", "Turn text into a valid python classname or variable\n<END>", "<BEGIN>\n## `full_tasktrace`", "List of all failed tasks caused by this and all previous errors.", " Returns:\n List[Task]\n<END>", "<BEGIN>\n## `yaw_pitch`", "Calculate the yaw and pitch of this ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _make_window API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _make_window API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
Creates a new class for that window and registers it at this module.
"Creates a new class for that window and registers it at this module."
62
false
SpockBotMC/SpockBot
_make_window
33,313
LDU_FT/Crypto-toolbox/bitex/_raise_error
LDU_FT
[ "<BEGIN>\n## `_restart_thread`", "Restarts subscription threads if their connection drops.\n :return:\n<END>", "<BEGIN>\n## `_subscription_thread`", "Thread Method, running the connection for each endpoint.\n :param endpoint:\n :return:\n<END>", "<BEGIN>\n## `start`", "Starts threads....
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _raise_error API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _raise_error API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
Raises the proper exception for passed error code. These must then be handled by the layer calling _raise_error()
"Raises the proper exception for passed error code. These must then be\n handled by the layer calling _raise_error()"
79
false
Crypto-toolbox/bitex
_raise_error
33,314
LDU_FT/linkedin/Zopkio/string_to_level
LDU_FT
[ "<BEGIN>\n## `make_machine_mapping`", "Convert the machine list argument from a list of names into a mapping of logical names to\n physical hosts. This is similar to the _parse_configs function but separated to provide the\n opportunity for extension and additional checking of machine access\n<END>", "<BEGIN>...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the string_to_level API. 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 string_to_level API. 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...
Converts a string to the corresponding log level
"Converts a string to the corresponding log level"
85
false
linkedin/Zopkio
string_to_level
33,315
LDU_FT/ScienceLogic/ovfexporter/get_vm_obj
LDU_FT
[ "<BEGIN>\n## `parse_args`", "Argument parser and validator\n :return: args\n<END>", "<BEGIN>\n## `validate_args`", "Call all required validation functions\n :param args:\n :return:\n<END>", "<BEGIN>\n## `convert`", "Download VM disks, and OVF from vCenter\n :param args:\n :return: created v...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_vm_obj API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_vm_obj API. 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...
Search for vm in vcenter, return the object if found :return:
"Search for vm in vcenter, return the object if found\n :return:"
24
false
ScienceLogic/ovfexporter
get_vm_obj
33,316
LDU_FT/lobocv/anonymoususage/check_table_exists
LDU_FT
[ "<BEGIN>\n## `get_average`", "Return the statistic's count divided by the number of rows in the table. If it cannot be calculated return\n `default`.\n :return: The average count value (count / table rows) or `default` if it cannot be calculated.\n<END>", "<BEGIN>\n## `elapsed_time_s`", "Return ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the check_table_exists API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the check_table_exists API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
Check if a table exists in the database. :param dbcon: database connection :param tablename: table name :return: Boolean
"Check if a table exists in the database.\n :param dbcon: database connection\n :param tablename: table name\n :return: Boolean"
60
false
lobocv/anonymoususage
check_table_exists
33,317
LDU_FT/codeinn/vcs/get_mimetype
LDU_FT
[ "<BEGIN>\n## `make_ui`", "A funcion that will read python rc files and make an ui from read options", " :param path: path to mercurial config file\n<END>", "<BEGIN>\n## `status`", "Returns modified, added, removed, deleted files for current changeset\n<END>", "<BEGIN>\n## `_fix_path`", "Paths are sto...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_mimetype API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_mimetype API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
Mimetype is calculated based on the file's content. If ``_mimetype`` attribute is available, it will be returned (backends which store mimetypes or can easily recognize them, should set this private attribute to indicate that type should *NOT* be calculated).
"Mimetype is calculated based on the file's content. If ``_mimetype``\n attribute is available, it will be returned (backends which store\n mimetypes or can easily recognize them, should set this private\n attribute to indicate that type should *NOT* be calculated)."
326
false
codeinn/vcs
get_mimetype
33,318
LDU_FT/lvjiyong/configreset/load
LDU_FT
[ "<BEGIN>\n## `reset`", "重置设置\n :param target:\n :param settings:\n :return:\n<END>", "<BEGIN>\n## `load_package`", "从目录中载入配置文件\n :param package_dir:\n :param package:\n :param exclude:\n :param default_section:\n :return:\n<END>", "<BEGIN>\n## `load`", "从混合类型组中读取配置\n :param defa...
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...
从混合类型组中读取配置 :param default_section: :param items: :return:
"从混合类型组中读取配置\n :param default_section:\n :param items:\n :return:"
26
false
lvjiyong/configreset
load
33,319
LDU_FT/Skype4Py/Skype4Py/SendMessage
LDU_FT
[ "<BEGIN>\n## `AsyncSearchUsers`", "Asynchronously searches for Skype users.", " :Parameters:\n Target : unicode\n Search target (name or email address).", " :return: A search identifier. It will be passed along with the results to the\n `SkypeEvents.AsyncSearc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the SendMessage API. 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 SendMessage API. 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...
Sends a chat message. :Parameters: MessageText : unicode Message text :return: Message object :rtype: `ChatMessage`
"Sends a chat message.\n\n :Parameters:\n MessageText : unicode\n Message text\n\n :return: Message object\n :rtype: `ChatMessage`"
213
false
Skype4Py/Skype4Py
SendMessage
33,320
LDU_FT/opereto/pyopereto/verify_environment_scheme
LDU_FT
[ "<BEGIN>\n## `get_service_version`", "get_service_version(self, service_id, mode='production', version='default')", " | Get a specific version details of a given service. Opereto will try to fetch the requested service version. If not found, it will return the default production version. The \"actual_ver...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the verify_environment_scheme 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 verify_environment_scheme API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi...
verify_environment_scheme(self, environment_type, environment_topology) Verifies json scheme of an environment :Parameters: * *environment_type* (`string`) -- Topology identifier * *environment_topology* (`object`) -- Environment json to validate :return: Success or errors in...
"verify_environment_scheme(self, environment_type, environment_topology)\n\n Verifies json scheme of an environment\n\n :Parameters:\n\n * *environment_type* (`string`) -- Topology identifier\n * *environment_topology* (`object`) -- Environment json to validate\n\n :return: Success or...
220
false
opereto/pyopereto
verify_environment_scheme
33,321
LDU_FT/etcher-be/elib_miz/radio_presets
LDU_FT
[ "<BEGIN>\n## `reorder`", "Re-orders a miz file into a folder (flattened)", " Args:\n miz_file_path: source miz file\n target_dir: folder to flatten the content into\n skip_options_file: do not re-order option file\n<END>", "<BEGIN>\n## `decode`", "Decodes the mission ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the radio_presets API. 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 radio_presets API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
Returns: generator over unit radio presets
"Returns: generator over unit radio presets"
100
false
etcher-be/elib_miz
radio_presets
33,322
LDU_FT/opengisch/pum/check_rules
LDU_FT
[ "<BEGIN>\n## `pg_backup`", "Call the pg_dump command to create a db backup", " Parameters\n ----------\n pg_dump_exe: str\n the pg_dump command path\n exclude_schema: str[]\n list of schemas to be skipped\n<END>", "<BEGIN>\n## `pg_restore`", "Call the pg_res...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the check_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 extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the check_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 extra...
Check if the rules are equals. Returns ------- bool True if the rules are the same False otherwise list A list with the differences
"Check if the rules are equals.\n\n Returns\n -------\n bool\n True if the rules are the same\n False otherwise\n list\n A list with the differences"
71
false
opengisch/pum
check_rules
33,323
LDU_FT/xolox/python-rotate-backups/main
LDU_FT
[ "<BEGIN>\n## `main`", "Command line interface for the ``rotate-backups`` program.\n<END>", "<BEGIN>\n## `coerce_location`", "Coerce a string to a :class:`Location` object.", " :param value: The value to coerce (a string or :class:`Location` object).\n :param options: Any keyword arguments are passed o...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the main API. Each 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 main API. Each 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...
Command line interface for the ``rotate-backups`` program.
"Command line interface for the ``rotate-backups`` program."
55
false
xolox/python-rotate-backups
main
33,324
LDU_FT/gisgroup/statbank-python/raw
LDU_FT
[ "<BEGIN>\n## `data`", "Pulls data from a table and generates rows.", " Variables is a dictionary mapping variable codes to values.", " Streaming:\n Values must be chosen for all variables when streaming\n<END>", "<BEGIN>\n## `subjects`", "List subjects from the subject hierarchy.", " If subj...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the raw API. Each 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 raw API. Each 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...
Make request to url and return the raw response object.
"Make request to url and return the raw response object."
21
false
gisgroup/statbank-python
raw
33,325
LDU_FT/aws/chalice/load_project_config
LDU_FT
[ "<BEGIN>\n## `create_from_lambda_arn`", "Create a LogRetriever from a client and lambda arn.", " :type client: botocore.client.Logs\n :param client: A ``logs`` client.", " :type lambda_arn: str\n :param lambda_arn: The ARN of the lambda function.", " :return: An instance o...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load_project_config API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load_project_config API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
Load the chalice config file from the project directory. :raise: OSError/IOError if unable to load the config file.
"Load the chalice config file from the project directory.\n\n :raise: OSError/IOError if unable to load the config file."
96
false
aws/chalice
load_project_config
33,326
LDU_FT/neithere/monk/opt_key
LDU_FT
[ "<BEGIN>\n## `_insert_defaults`", "Inserts default values from :attr:`StructuredDictMixin.structure`\n to `self` by merging the two structures\n (see :func:`monk.manipulation.merge_defaults`).\n<END>", "<BEGIN>\n## `opt_key`", "Returns a validator which allows the value to be missing.\n Simil...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the opt_key API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the opt_key API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
Returns a validator which allows the value to be missing. Similar to :func:`optional` but wraps a string in :class:`~monk.validators.Equals` instead of :class:`~monk.validators.IsA`. Intended for dictionary keys. :: >>> opt_key(str) == IsA(str) | ~Exists() True >>> opt_key('foo...
"Returns a validator which allows the value to be missing.\n Similar to :func:`optional` but wraps a string in\n :class:`~monk.validators.Equals` instead of :class:`~monk.validators.IsA`.\n Intended for dictionary keys.\n\n ::\n\n >>> opt_key(str) == IsA(str) | ~Exists()\n True\n >>> op...
64
false
neithere/monk
opt_key
33,327
LDU_FT/CyberReboot/vent/on_get
LDU_FT
[ "<BEGIN>\n## `gpu_queue`", "Queued up containers waiting for GPU resources\n<END>", "<BEGIN>\n## `file_queue`", "Processes files that have been added from the rq-worker, starts plugins\n that match the mime type for the new file.\n<END>", "<BEGIN>\n## `inventory`", "Return a dictionary of the inventory...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the on_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 ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the on_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 ...
Send a GET request to get the list of all of the filter containers
"Send a GET request to get the list of all of the filter containers"
141
false
CyberReboot/vent
on_get
33,328
LDU_FT/lambdamusic/Ontospy/__getFormat
LDU_FT
[ "<BEGIN>\n## `main_cli`", "Ontospy allows to extract and visualise ontology information included in RDF data. Use one of the commands listed below to find out more, or visit http://lambdamusic.github.io/ontospy\n<END>", "<BEGIN>\n## `scan`", "SCAN: get ontology data from RDF source and print out a report.\n<E...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the __getFormat API. 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 __getFormat API. 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...
Defaults to JSON [ps: 'RDF' is the native rdflib representation]
"Defaults to JSON [ps: 'RDF' is the native rdflib representation]"
360
false
lambdamusic/Ontospy
__getFormat
33,329
LDU_FT/jrspruitt/ubi_reader/read_block
LDU_FT
[ "<BEGIN>\n## `read_block`", "Read complete PEB data from file.", " Argument:\n Obj:block -- Block data is desired for.\n<END>", "<BEGIN>\n## `read_block_data`", "Read LEB data from file", " Argument:\n Obj:block -- Block data is desired for.\n<END>", "<BEGIN>\n## `extract_blo...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the read_block API. 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 read_block API. 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...
Read complete PEB data from file. Argument: Obj:block -- Block data is desired for.
"Read complete PEB data from file.\n \n Argument:\n Obj:block -- Block data is desired for."
67
false
jrspruitt/ubi_reader
read_block
33,330
LDU_FT/jmbhughes/suvi-trainer/plot_counts
LDU_FT
[ "<BEGIN>\n## `process_file`", "Open a single labeled image at path and get needed information, return as a dictionary\n<END>", "<BEGIN>\n## `plot_counts`", "plot the counts of a given theme from a created database over time\n<END>", "<BEGIN>\n## `query_hek`", "requests hek responses for a given time\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the plot_counts API. 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 plot_counts API. 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...
plot the counts of a given theme from a created database over time
"plot the counts of a given theme from a created database over time"
90
false
jmbhughes/suvi-trainer
plot_counts
33,331
LDU_FT/PyFilesystem/pyfilesystem2/match
LDU_FT
[ "<BEGIN>\n## `install`", "Install an opener.", " Arguments:\n opener (`Opener`): an `Opener` instance, or a callable that\n returns an opener instance.", " Note:\n May be used as a class decorator. For example::\n registry = Registry()\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the 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 extracted d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the 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 extracted d...
Compare a glob pattern with a path (case sensitive). Arguments: pattern (str): A glob pattern. path (str): A path. Returns: bool: ``True`` if the path matches the pattern. Example: >>> from fs.glob import match >>> match("**/*.py", "/fs/glob.py") True
"Compare a glob pattern with a path (case sensitive).\n\n Arguments:\n pattern (str): A glob pattern.\n path (str): A path.\n\n Returns:\n bool: ``True`` if the path matches the pattern.\n\n Example:\n\n >>> from fs.glob import match\n >>> match(\"**/*.py\", \"/fs/glob.py\")\...
320
false
PyFilesystem/pyfilesystem2
match
33,332
LDU_FT/ask/carrot/iterconsume
LDU_FT
[ "<BEGIN>\n## `establish_connection`", "Establish connection to the AMQP broker.\n<END>", "<BEGIN>\n## `queue_exists`", "Check if a queue has been declared.", " :rtype bool:\n<END>", "<BEGIN>\n## `queue_bind`", "Bind queue to an exchange using a routing key.\n<END>", "<BEGIN>\n## `get`", "Rece...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the iterconsume API. 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 iterconsume API. 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...
Cycle between all consumers in consume mode. See :meth:`Consumer.iterconsume`.
"Cycle between all consumers in consume mode.\n\n See :meth:`Consumer.iterconsume`."
162
false
ask/carrot
iterconsume
33,333
LDU_FT/scnerd/miniutils/progbar
LDU_FT
[ "<BEGIN>\n## `magic_contract`", "Drop-in replacement for ``pycontracts.contract`` decorator, except that it supports locally-visible types", " :param args: Arguments to pass to the ``contract`` decorator\n :param kwargs: Keyword arguments to pass to the ``contract`` decorator\n :return: The contracted ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the progbar API. Each 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 progbar API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
Prints a progress bar as the iterable is iterated over :param iterable: The iterator to iterate over :param a: Arguments to get passed to tqdm (or tqdm_notebook, if in a Jupyter notebook) :param verbose: Whether or not to print the progress bar at all :param kw: Keyword arguments to get passed to tqdm ...
"Prints a progress bar as the iterable is iterated over\n\n :param iterable: The iterator to iterate over\n :param a: Arguments to get passed to tqdm (or tqdm_notebook, if in a Jupyter notebook)\n :param verbose: Whether or not to print the progress bar at all\n :param kw: Keyword arguments to get passed to...
23
false
scnerd/miniutils
progbar
33,334
LDU_FT/PSPC-SPAC-buyandsell/von_anchor/open
LDU_FT
[ "<BEGIN>\n## `least_role`", "Return the TRUSTEE indy-sdk role for an anchor acting in an AnchorSmith capacity.", " :return: TRUSTEE role\n<END>", "<BEGIN>\n## `send_nym`", "Send input anchor's cryptonym (including DID, verification key, plus optional alias and role)\n to the distributed ledger...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the open API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the open API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
Explicit entry. Open wallet as configured, for later closure via close(). For use when keeping wallet open across multiple calls. Raise any IndyError causing failure to open wallet, WalletState if wallet already open, or AbsentWallet on attempt to enter wallet not yet created. :return:...
"Explicit entry. Open wallet as configured, for later closure via close().\n For use when keeping wallet open across multiple calls.\n\n Raise any IndyError causing failure to open wallet, WalletState if wallet already open,\n or AbsentWallet on attempt to enter wallet not yet created.\n\n :...
734
false
PSPC-SPAC-buyandsell/von_anchor
open
33,335
LDU_FT/clld/clldutils/data_url
LDU_FT
[ "<BEGIN>\n## `parse`", "Convert iso formatted timestamps found as values in the dict d to datetime objects.", " :return: A shallow copy of d with converted timestamps.\n<END>", "<BEGIN>\n## `dump`", "Python 2 + 3 compatible version of json.dump.", " :param obj: The object to be dumped.\n :param p...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the data_url API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the data_url API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
Returns content encoded as base64 Data URI. :param content: bytes or str or Path :param mimetype: mimetype for :return: str object (consisting only of ASCII, though) .. seealso:: https://en.wikipedia.org/wiki/Data_URI_scheme
"Returns content encoded as base64 Data URI.\n\n :param content: bytes or str or Path\n :param mimetype: mimetype for\n :return: str object (consisting only of ASCII, though)\n\n .. seealso:: https://en.wikipedia.org/wiki/Data_URI_scheme"
70
false
clld/clldutils
data_url
33,336
LDU_FT/dpkp/kafka-python/size_of_varint_2
LDU_FT
[ "<BEGIN>\n## `send_fetches`", "Send FetchRequests for all assigned partitions that do not already have\n an in-flight fetch or pending fetch data.", " Returns:\n List of Futures: each future resolves to a FetchResponse\n<END>", "<BEGIN>\n## `reset_offsets_if_needed`", "Lookup and se...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the size_of_varint_2 API. 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 size_of_varint_2 API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Number of bytes needed to encode an integer in variable-length format.
"Number of bytes needed to encode an integer in variable-length format."
787
false
dpkp/kafka-python
size_of_varint_2
33,337
LDU_FT/dschien/PyExcelModelingHelper/generate_values
LDU_FT
[ "<BEGIN>\n## `growth_coefficients`", "Build a matrix of growth factors according to the CAGR formula y'=y0 (1+a)^(t'-t0).", " a growth rate alpha\n t0 start date\n t' end date\n y' output\n y0 start value\n<END>", "<BEGIN>\n## `get_mean`", "Get the mean value for a distribution.\n If ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the generate_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. The e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the generate_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. The e...
Instantiate a random variable and apply annual growth factors. :return:
"Instantiate a random variable and apply annual growth factors.\n\n :return:"
39
false
dschien/PyExcelModelingHelper
generate_values
33,338
LDU_FT/commandprompt/Simpycity/cursor
LDU_FT
[ "<BEGIN>\n## `dsn`", "Return a libpq connection string using the variables defined in this file.\n<END>", "<BEGIN>\n## `form_query`", ":param str columns: literal sql string for list of columns\n :param dict options: dict supporting a single key \"direct\" as in the constructor\n :return: sql st...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the cursor API. Each 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 cursor API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
:param cursor_factory: Override default Cursor :return: psycopg2 cursor
":param cursor_factory: Override default Cursor\n :return: psycopg2 cursor"
19
false
commandprompt/Simpycity
cursor
33,339
LDU_FT/horejsek/python-webdriverwrapper/expected_error_messages
LDU_FT
[ "<BEGIN>\n## `expected_error_page`", "Decorator expecting defined error page at the end of test method. As param\n use what :py:meth:`~.WebdriverWrapperErrorMixin.get_error_page`\n returns.", " .. versionadded:: 2.0\n Before this decorator was called ``ShouldBeErrorPage``.\n<END>", "<BEGIN>\n#...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the expected_error_messages 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 expected_error_messages API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion...
Decorator expecting defined error messages at the end of test method. As param use what :py:meth:`~.WebdriverWrapperErrorMixin.get_error_messages` returns. .. versionadded:: 2.0 Before this decorator was called ``ShouldBeError``.
"Decorator expecting defined error messages at the end of test method. As\n param use what\n :py:meth:`~.WebdriverWrapperErrorMixin.get_error_messages`\n returns.\n\n .. versionadded:: 2.0\n Before this decorator was called ``ShouldBeError``."
120
false
horejsek/python-webdriverwrapper
expected_error_messages
33,340
LDU_FT/cloudnull/cloudlib/head
LDU_FT
[ "<BEGIN>\n## `getLogger`", "Return a logger from a given name.", " If the name does not have a log handler, this will create one for it based\n on the module name which will log everything to a log file in a location\n the executing user will have access to.", " :param name: ``str``\n :return: ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the head API. Each 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 head API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
Make a HEAD request. To make a HEAD request pass, ``url`` :param url: ``str`` :param headers: ``dict`` :param kwargs: ``dict``
"Make a HEAD request.\n\n To make a HEAD request pass, ``url``\n\n :param url: ``str``\n :param headers: ``dict``\n :param kwargs: ``dict``"
136
false
cloudnull/cloudlib
head
33,341
LDU_FT/TC01/calcpkg/getComplexFileData
LDU_FT
[ "<BEGIN>\n## `structureOutput`", "Formats the output of a list of packages\n<END>", "<BEGIN>\n## `count`", "Counts the number of ticalc.org files containing some search term, doesn't return them\n<END>", "<BEGIN>\n## `searchHierarchy`", "Core function to search directory structure for child files and fold...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the getComplexFileData 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 getComplexFileData API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
Function to initialize the slightly more complicated data for file info
"Function to initialize the slightly more complicated data for file info"
62
false
TC01/calcpkg
getComplexFileData
33,342
LDU_FT/gem/oq-engine/read
LDU_FT
[ "<BEGIN>\n## `_compute_term_3`", "Compute term 3 in equation 2 page 462.\n Distances are clipped at 15 km (as per Ezio Faccioli's personal\n communication.)\n<END>", "<BEGIN>\n## `_compute_site_term`", "Compute site term as a function of vs30: 4th, 5th and 6th terms in\n equation 2 page 4...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the read API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the read API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
:param calc_id: a calculation ID :param username: if given, restrict the search to the user's calculations :returns: the associated DataStore instance
":param calc_id: a calculation ID\n :param username: if given, restrict the search to the user's calculations\n :returns: the associated DataStore instance"
4,544
true
gem/oq-engine
read
33,343
LDU_FT/JonathanRaiman/pytreebank/download_sst
LDU_FT
[ "<BEGIN>\n## `uproot`", "Take a subranch of a tree and deep-copy the children\n of this subbranch into a new LabeledTree\n<END>", "<BEGIN>\n## `lowercase`", "Lowercase all strings in this tree.\n Works recursively and in-place.\n<END>", "<BEGIN>\n## `to_dict`", "Dict format for use in Javasc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the download_sst API. 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 download_sst API. 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...
Download from `url` the zip file corresponding to the Stanford Sentiment Treebank and expand the resulting files into the directory `path` (Note: if the files are already present, the download is not actually run). Arguments --------- path : str, directory to save the train, test, and dev f...
"Download from `url` the zip file corresponding to the\n Stanford Sentiment Treebank and expand the resulting\n files into the directory `path` (Note: if the files are\n already present, the download is not actually run).\n\n Arguments\n ---------\n path : str, directory to save the train, test, a...
46
false
JonathanRaiman/pytreebank
download_sst
33,344
LDU_FT/JIC-CSB/jicimagelib/parse_manifest
LDU_FT
[ "<BEGIN>\n## `transformation`", "Function decorator to turn another function into a transformation.\n<END>", "<BEGIN>\n## `smooth_gaussian`", "Returns Gaussian smoothed image.", " :param image: numpy array or :class:`jicimagelib.image.Image`\n :param sigma: standard deviation\n :returns: :class:`ji...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_manifest API. 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 parse_manifest API. 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...
Parse manifest file to build up the collection of images. :param fpath: path to the manifest file
"Parse manifest file to build up the collection of images.\n \n :param fpath: path to the manifest file"
91
false
JIC-CSB/jicimagelib
parse_manifest
33,345
LDU_FT/sammchardy/python-binance/add_bid
LDU_FT
[ "<BEGIN>\n## `add_bid`", "Add a bid to the cache", " :param bid:\n :return:\n<END>", "<BEGIN>\n## `add_ask`", "Add an ask to the cache", " :param ask:\n :return:\n<END>", "<BEGIN>\n## `_init_cache`", "Initialise the depth cache calling REST endpoint", " :return:\n<...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_bid API. Each 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 add_bid API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
Add a bid to the cache :param bid: :return:
"Add a bid to the cache\n\n :param bid:\n :return:"
233
false
sammchardy/python-binance
add_bid
33,346
LDU_FT/rocky/python-uncompyle6/make_function2
LDU_FT
[ "<BEGIN>\n## `code_deparse`", "ingests and deparses a given code block 'co'. If version is None,\n we will use the current Python interpreter version.\n<END>", "<BEGIN>\n## `deparse_code2str`", "Return the deparsed text for a Python code object. `out` is where any intermediate\n output for assembly or t...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the make_function2 API. 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 make_function2 API. 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...
Dump function defintion, doc string, and function body. This code is specialied for Python 2.
"Dump function defintion, doc string, and function body.\n This code is specialied for Python 2."
205
false
rocky/python-uncompyle6
make_function2
33,347
LDU_FT/mozilla-b2g/fxos-certsuite/devices
LDU_FT
[ "<BEGIN>\n## `to_ints`", "Turn version string into a numeric representation for easy comparison.\n Undeclared point versions are assumed to be 0.\n :param version: a NSS version string\n :return: array of [major, minor, point, pointpoint, tag value]\n<END>", "<BEGIN>\n## `first_older_than_s...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the devices API. Each 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 devices API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
Executes adb devices -l and returns a list of objects describing attached devices. :param timeout: optional integer specifying the maximum time in seconds for any spawned adb process to complete before throwing an ADBTimeoutError. This timeout is per adb call. The total tim...
"Executes adb devices -l and returns a list of objects describing attached devices.\n\n :param timeout: optional integer specifying the maximum time in\n seconds for any spawned adb process to complete before\n throwing an ADBTimeoutError. This timeout is per adb call. The\n tot...
58
false
mozilla-b2g/fxos-certsuite
devices
33,348
LDU_FT/mapbox/mapbox-sdk-py/_get_credentials
LDU_FT
[ "<BEGIN>\n## `_geom_points`", "GeoJSON geometry to a sequence of point tuples\n<END>", "<BEGIN>\n## `read_points`", "Iterable of features to a sequence of point tuples\n Where \"features\" can be either GeoJSON mappings\n or objects implementing the geo_interface\n<END>", "<BEGIN>\n## `encode_waypoint...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_credentials API. 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_credentials API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Gets temporary S3 credentials to stage user-uploaded files
"Gets temporary S3 credentials to stage user-uploaded files"
212
false
mapbox/mapbox-sdk-py
_get_credentials
33,349
LDU_FT/oseledets/ttpy/min_func
LDU_FT
[ "<BEGIN>\n## `kron`", "Kronecker product of two TT-matrices or two TT-vectors\n<END>", "<BEGIN>\n## `dot`", "Dot product of two TT-matrices or two TT-vectors\n<END>", "<BEGIN>\n## `zkron`", "Do kronecker product between cores of two matrices ttA and ttB.\n Look about kronecker at: https://en.wikipedia....
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the min_func API. 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 min_func API. 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...
Find (approximate) minimal value of the function on a d-dimensional grid.
"Find (approximate) minimal value of the function on a d-dimensional grid."
196
false
oseledets/ttpy
min_func
33,350
LDU_FT/scidash/sciunit/method_cache
LDU_FT
[ "<BEGIN>\n## `mean`", "Compute a total score for each model over all the tests.", " Uses the `norm_score` attribute, since otherwise direct comparison\n across different kinds of scores would not be possible.\n<END>", "<BEGIN>\n## `to_html`", "Extend Pandas built in `to_html` method for render...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the method_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 extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the method_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 extr...
A decorator used on any model method which calls the model's 'method' method if that latter method has not been called using the current arguments or simply sets model attributes to match the run results if it has.
"A decorator used on any model method which calls the model's 'method'\n method if that latter method has not been called using the current\n arguments or simply sets model attributes to match the run results if\n it has."
128
false
scidash/sciunit
method_cache
33,351
LDU_FT/dwwkelly/note/Handle_Search
LDU_FT
[ "<BEGIN>\n## `check_auth`", "This function is called to check if a username /\n password combination is valid.\n<END>", "<BEGIN>\n## `scrubID`", ":param ID: An ID that can be of various types, this is very kludgy\n :returns: An integer ID\n<END>", "<BEGIN>\n## `which`", ":param bin_name: the nam...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the Handle_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 ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the Handle_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 ext...
Handle a search. :param msg: the received search :type msg: dict :returns: The message to reply with :rtype: str
"Handle a search.\n\n :param msg: the received search\n :type msg: dict\n :returns: The message to reply with\n :rtype: str"
46
false
dwwkelly/note
Handle_Search
33,352
LDU_FT/intiocean/pyinter/copy
LDU_FT
[ "<BEGIN>\n## `_add`", "Add a interval to the underlying IntervalSet data store. This does not perform any tests as we assume that\n any requirements have already been checked and that this function is being called by an internal function such\n as union(), intersection() or add().\n :param ot...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the copy API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the copy API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
Returns a new :class:`~pyinter.Interval` object with the same bounds and values.
"Returns a new :class:`~pyinter.Interval` object with the same bounds and values."
41
false
intiocean/pyinter
copy
33,353
LDU_FT/ElementAI/greensim/stop
LDU_FT
[ "<BEGIN>\n## `pause`", "Pauses the current process indefinitely -- it will require another process to `resume()` it. When this resumption\n happens, the process returns from this function.\n<END>", "<BEGIN>\n## `advance`", "Pauses the current process for the given delay (in simulated time). The process wil...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the stop API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the stop API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
Stops the running simulation once the current event is done executing.
"Stops the running simulation once the current event is done executing."
83
false
ElementAI/greensim
stop
33,354
LDU_FT/standage/tag/type
LDU_FT
[ "<BEGIN>\n## `accession`", "Parse accession number from commonly supported formats.", " If the defline does not match one of the following formats, the entire\n description (sans leading caret) will be returned.", " * >gi|572257426|ref|XP_006607122.1|\n * >gnl|Tcas|XP_008191512.1\n...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the type API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the type API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
If the feature is a multifeature, update all entries.
"If the feature is a multifeature, update all entries."
114
false
standage/tag
type
33,355
LDU_FT/mk-fg/txboxdotnet/resolve_path
LDU_FT
[ "<BEGIN>\n## `listdir`", "Get Box object, representing list of objects in a folder.\n<END>", "<BEGIN>\n## `get`", "Download and return an file (object) or a specified byte_range from it.\n\t\t\tVersion keyword is API-specific, see \"etag\" file info key:\n\t\t\t\thttp://developers.box.com/docs/#files-file-obj...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the resolve_path API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the resolve_path API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
Return id (or metadata) of an object, specified by chain (iterable or fs-style path string) of "name" attributes of it's ancestors, or raises DoesNotExists error. Requires a lot of calls to resolve each name in path, so use with care. root_id parameter allows to specify path relative to some folder_i...
"Return id (or metadata) of an object, specified by chain\n\t\t\t\t(iterable or fs-style path string) of \"name\" attributes of it's ancestors,\n\t\t\t\tor raises DoesNotExists error.\n\t\t\tRequires a lot of calls to resolve each name in path, so use with care.\n\t\t\troot_id parameter allows to specify path\n\t\t\t\t...
18
false
mk-fg/txboxdotnet
resolve_path
33,356
LDU_FT/perrygeo/simanneal/balance
LDU_FT
[ "<BEGIN>\n## `distance`", "Calculates distance between two latitude-longitude coordinates.\n<END>", "<BEGIN>\n## `round_figures`", "Returns x rounded to n significant figures.\n<END>", "<BEGIN>\n## `set_schedule`", "Takes the output from `auto` and sets the attributes\n<END>", "<BEGIN>\n## `copy_state`"...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the balance API. Each 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 balance API. Each 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 a corresponding empty attribute or null geometry record depending on which type of record was created to make sure all three files are in synch.
"Adds a corresponding empty attribute or null geometry record depending\r\n on which type of record was created to make sure all three files\r\n are in synch."
67
false
perrygeo/simanneal
balance
33,357
LDU_FT/SuperCowPowers/chains/_readable_flags
LDU_FT
[ "<BEGIN>\n## `packet_meta_data`", "Pull out the metadata about each packet from the input_stream\n Args:\n None\n Returns:\n generator (dictionary): a generator that contains packet meta data in the form of a dictionary\n<END>", "<BEGIN>\n## `pull`", "Print out ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _readable_flags API. 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 _readable_flags API. 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...
Method that turns bit flags into a human readable list Args: transport (dict): transport info, specifically needs a 'flags' key with bit_flags Returns: list: a list of human readable flags (e.g. ['syn_ack', 'fin', 'rst', ...]
"Method that turns bit flags into a human readable list\n\n Args:\n transport (dict): transport info, specifically needs a 'flags' key with bit_flags\n Returns:\n list: a list of human readable flags (e.g. ['syn_ack', 'fin', 'rst', ...]"
41
false
SuperCowPowers/chains
_readable_flags
33,358
LDU_FT/cebel/pyctd/set_mysql_connection
LDU_FT
[ "<BEGIN>\n## `set_mysql`", "Set the SQLAlchemy connection string with MySQL settings\n<END>", "<BEGIN>\n## `_limit_and_df`", "adds a limit (limit==None := no limit) to any query and allow a return as pandas.DataFrame", " :param bool as_df: if is set to True results return as pandas.DataFrame\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_mysql_connection 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 set_mysql_connection API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Sets the connection using MySQL Parameters
"Sets the connection using MySQL Parameters"
126
false
cebel/pyctd
set_mysql_connection
33,359
LDU_FT/foxx/python-helpful/subclass
LDU_FT
[ "<BEGIN>\n## `unique_iter`", "See http://www.peterbe.com/plog/uniqifiers-benchmark\n Originally f8 written by Dave Kirby\n<END>", "<BEGIN>\n## `ensure_subclass`", "Ensure value is a subclass of types", " >>> class Hello(object): pass\n >>> ensure_subclass(Hello, Hello)\n >>> ensure_subclass(obje...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the subclass API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the subclass API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
Add bases to class (late subclassing) Annoyingly we cannot yet modify __bases__ of an existing class, instead we must create another subclass, see here; http://bugs.python.org/issue672115 >>> class A(object): pass >>> class B(object): pass >>> class C(object): pass >>> issubclass(B, A) ...
"Add bases to class (late subclassing)\n\n Annoyingly we cannot yet modify __bases__ of an existing\n class, instead we must create another subclass, see here;\n http://bugs.python.org/issue672115\n\n >>> class A(object): pass\n >>> class B(object): pass\n >>> class C(object): pass\n >>> issubclass...
57
false
foxx/python-helpful
subclass
33,360
LDU_FT/NeuralEnsemble/lazyarray/_build_ufunc
LDU_FT
[ "<BEGIN>\n## `check_shape`", "Decorator for larray magic methods, to ensure that the operand has\n the same shape as the array.\n<END>", "<BEGIN>\n## `partial_shape`", "Calculate the size of the sub-array represented by `addr`\n<END>", "<BEGIN>\n## `reverse`", "Given a function f(a, b), returns f(b, a)...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _build_ufunc API. 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 _build_ufunc API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
Return a ufunc that works with lazy arrays
"Return a ufunc that works with lazy arrays"
15
false
NeuralEnsemble/lazyarray
_build_ufunc
33,361
LDU_FT/google/openhtf/emit
LDU_FT
[ "<BEGIN>\n## `short_repr`", "Returns a short, term-friendly string representation of the object.", " Args:\n obj: An object for which to return a string representation.\n max_len: Maximum length of the returned string. Longer reprs will be turned\n into a brief descriptive string giving the type a...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the emit API. Each 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 emit API. Each 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...
Save a logging.LogRecord to our test record. Logs carry useful metadata such as the logger name and level information. We capture this in a structured format in the test record to enable filtering by client applications. Args: record: A logging.LogRecord to record.
"Save a logging.LogRecord to our test record.\n\n Logs carry useful metadata such as the logger name and level information.\n We capture this in a structured format in the test record to enable\n filtering by client applications.\n\n Args:\n record: A logging.LogRecord to record."
700
false
google/openhtf
emit
33,362
LDU_FT/Qiskit/qiskit-api-py/_check_backend
LDU_FT
[ "<BEGIN>\n## `handle_407`", "Takes the given response and tries digest-auth, if needed.\n<END>", "<BEGIN>\n## `obtain_token`", "Obtain the token to access to QX Platform.", " Raises:\n CredentialsError: when token is invalid or the user has not\n accepted the license.\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _check_backend API. 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 _check_backend API. 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...
Check if the name of a backend is valid to run in QX Platform
"Check if the name of a backend is valid to run in QX Platform"
30
false
Qiskit/qiskit-api-py
_check_backend
33,363
LDU_FT/pyvisa/pyvisa-sim/get_attribute
LDU_FT
[ "<BEGIN>\n## `_get_triplet`", "Return a triplet from a dialogue dictionary.", " :param dd: Dialogue dictionary.\n :type dd: Dict[str, str]\n :return: (query, response, error response)\n :rtype: (str, str | NoResponse, str | NoResponse)\n<END>", "<BEGIN>\n## `_load`", "YAML Parse a file or str an...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_attribute API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_attribute API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
Get an attribute from the session. :param attribute: :return: attribute value, status code :rtype: object, constants.StatusCode
"Get an attribute from the session.\n\n :param attribute:\n :return: attribute value, status code\n :rtype: object, constants.StatusCode"
85
false
pyvisa/pyvisa-sim
get_attribute
33,364
LDU_FT/jgorset/facepy/_query
LDU_FT
[ "<BEGIN>\n## `parse`", "Parse a signed request, returning a dictionary describing its payload.\n<END>", "<BEGIN>\n## `generate`", "Generate a signed request from this instance.\n<END>", "<BEGIN>\n## `for_application`", "Initialize GraphAPI with an OAuth access token for an application.", " :param...
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 ...
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 ...
Fetch an object from the Graph API and parse the output, returning a tuple where the first item is the object yielded by the Graph API and the second is the URL for the next page of results, or ``None`` if results have been exhausted. :param method: A string describing the HTTP method. ...
"Fetch an object from the Graph API and parse the output, returning a tuple where the first item\n is the object yielded by the Graph API and the second is the URL for the next page of results, or\n ``None`` if results have been exhausted.\n\n :param method: A string describing the HTTP method.\n ...
40
false
jgorset/facepy
_query
33,365
LDU_FT/keans/lmnotify/save_devices
LDU_FT
[ "<BEGIN>\n## `_exec`", "execute a command at the device using the RESTful API", " :param str cmd: one of the REST commands, e.g. GET or POST\n :param str url: URL of the REST API the command should be applied to\n :param dict json_data: json data that should be attached to the command\n<END...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the save_devices API. 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 save_devices API. 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...
save devices that have been obtained from LaMetric cloud to a local file
"save devices that have been obtained from LaMetric cloud\n to a local file"
69
false
keans/lmnotify
save_devices
33,366
LDU_FT/GuiltyTargets/ppi-network-annotation/parse_disease_associations
LDU_FT
[ "<BEGIN>\n## `get_neighborhood_network`", "Get the neighborhood graph of a node.", " :param str node_name: Node whose neighborhood graph is requested.\n :return Graph: Neighborhood graph\n<END>", "<BEGIN>\n## `get_neighbor_names`", "Get the names of all neighbors of a node, and the node itself...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_disease_associations API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclus...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_disease_associations API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclus...
Parse the disease-drug target associations file. :param str path: Path to the disease-drug target associations file. :param list excluded_disease_ids: Identifiers of the disease for which drug targets are being predicted. :return: Dictionary of drug target-disease mappings.
"Parse the disease-drug target associations file.\n\n :param str path: Path to the disease-drug target associations file.\n :param list excluded_disease_ids: Identifiers of the disease for which drug targets are being predicted.\n :return: Dictionary of drug target-disease mappings."
105
false
GuiltyTargets/ppi-network-annotation
parse_disease_associations
33,367
LDU_FT/BD2KOnFHIR/i2b2model/process_parsed_args
LDU_FT
[ "<BEGIN>\n## `change_column_length`", "Change the column length in the supplied table\n<END>", "<BEGIN>\n## `_db_urls`", "Return the crc and ontology db urls\n :param opts: options\n :return: Tuple w/ crc and ontology url\n<END>", "<BEGIN>\n## `_tables`", "Return a list of all known tables a...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the process_parsed_args API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the process_parsed_args API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
Set the defaults for the crc and ontology schemas :param opts: parsed arguments :param error_fun: Function to call if error :param connect: actually connect. (For debugging) :return: namespace with additional elements added
"Set the defaults for the crc and ontology schemas\n :param opts: parsed arguments\n :param error_fun: Function to call if error\n :param connect: actually connect. (For debugging)\n :return: namespace with additional elements added"
64
false
BD2KOnFHIR/i2b2model
process_parsed_args
33,368
LDU_FT/nwilming/ocupy/_calc_xy
LDU_FT
[ "<BEGIN>\n## `path`", "Constructs the path to categories, images and features.", " This path function assumes that the following storage scheme is used on\n the hard disk to access categories, images and features:\n - categories: /impath/category\n - images: /impath/categ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _calc_xy API. 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 _calc_xy API. 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...
Calculates the coordinates after a specific saccade was made. Parameters: (x,y) : tuple of floats or ints The coordinates before the saccade was made angle : float or int The angle that the next saccade encloses with the horizonta...
"Calculates the coordinates after a specific saccade was made.\n \n Parameters:\n (x,y) : tuple of floats or ints\n The coordinates before the saccade was made\n angle : float or int\n The angle that the next saccade encloses with the \n h...
310
false
nwilming/ocupy
_calc_xy
33,369
LDU_FT/tonysimpson/nanomsg-python/configure
LDU_FT
[ "<BEGIN>\n## `nn_symbols`", "query the names and values of nanomsg symbols\n<END>", "<BEGIN>\n## `nn_setsockopt`", "set a socket option", " socket - socket number\n level - option level\n option - option\n value - a readable byte buffer (not a Unicode string) containing the value\n returns - ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the configure API. 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 configure API. 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...
Configure socket's addresses with nanoconfig
"Configure socket's addresses with nanoconfig"
14
false
tonysimpson/nanomsg-python
configure
33,370
LDU_FT/nfcpy/nfcpy/protect
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 protect API. Each 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 protect API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
In addtion to :meth:`nfc.tag.tt1.Type1Tag.protect` this method tries to set the lock bits to irreversibly protect the tag memory. However, it appears that tags sold have the lock bytes write protected, so this additional effort most likely doesn't have any effect.
"In addtion to :meth:`nfc.tag.tt1.Type1Tag.protect` this method\n tries to set the lock bits to irreversibly protect the tag\n memory. However, it appears that tags sold have the lock bytes\n write protected, so this additional effort most likely doesn't\n have any effect."
452
false
nfcpy/nfcpy
protect
33,371
LDU_FT/jim-easterbrook/pyctools/connect
LDU_FT
[ "<BEGIN>\n## `connect`", "Connect an output to any callable object.", " :param str output_name: the output to connect. Must be one of\n the ``'self'`` outputs in the ``linkages`` parameter.", " :param callable input_method: the thread-safe callable to invoke\n when :py:meth...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the connect API. Each 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 connect API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
Connect an output to any callable object. :param str output_name: the output to connect. Must be one of the ``'self'`` outputs in the ``linkages`` parameter. :param callable input_method: the thread-safe callable to invoke when :py:meth:`send` is called.
"Connect an output to any callable object.\n\n :param str output_name: the output to connect. Must be one of\n the ``'self'`` outputs in the ``linkages`` parameter.\n\n :param callable input_method: the thread-safe callable to invoke\n when :py:meth:`send` is called."
158
false
jim-easterbrook/pyctools
connect
33,372