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/rndusr/torf/filepaths
LDU_FT
[ "<BEGIN>\n## `files`", "Yield relative file paths specified in :attr:`metainfo`", " Each paths starts with :attr:`name`.", " Note that the paths may not exist. See :attr:`filepaths` for existing\n files.\n<END>", "<BEGIN>\n## `filepaths`", "Yield absolute paths to existing files in :a...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the filepaths API. 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 filepaths API. 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...
Yield absolute paths to existing files in :attr:`path` Any files that match patterns in :attr:`exclude` as well as hidden and empty files are not included.
"Yield absolute paths to existing files in :attr:`path`\n\n Any files that match patterns in :attr:`exclude` as well as hidden and\n empty files are not included."
89
false
rndusr/torf
filepaths
29,473
LDU_FT/davidblaisonneau-orange/foreman/updateAfterDecorator
LDU_FT
[ "<BEGIN>\n## `importPuppetClasses`", "Function importPuppetClasses\n Force the reload of puppet classes", " @param smartProxyId: smartProxy Id\n @return RETURN: the API result\n<END>", "<BEGIN>\n## `enhance`", "Function enhance\n Enhance the object with new item or enhanced items...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the updateAfterDecorator 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 updateAfterDecorator API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Function updateAfterDecorator Decorator to ensure local dict is sync with remote foreman
"Function updateAfterDecorator\n Decorator to ensure local dict is sync with remote foreman"
118
false
davidblaisonneau-orange/foreman
updateAfterDecorator
29,474
LDU_FT/ibm-watson-data-lab/ibmseti/complex_to_fourier
LDU_FT
[ "<BEGIN>\n## `header`", "This returns the first header in the data file\n<END>", "<BEGIN>\n## `headers`", "This returns all headers in the data file. There should be one for each\n half_frame in the file (typically 129).\n<END>", "<BEGIN>\n## `_packed_data`", "Returns the bit-packed data extracted from...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the complex_to_fourier 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 complex_to_fourier 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...
cdata: 3D complex data (shaped by subbands and half_frames, as returned from Compamp.complex_data()) over_sampling: The fraction of oversampling across subbands (typically 0.25) norm: None or "ortho" -- see Numpy FFT Normalization documentation. Default is None. returns the signal in complex fourier space. The o...
"cdata: 3D complex data (shaped by subbands and half_frames, as returned from Compamp.complex_data())\n over_sampling: The fraction of oversampling across subbands (typically 0.25)\n norm: None or \"ortho\" -- see Numpy FFT Normalization documentation. Default is None.\n\n returns the signal in complex fourier space...
138
false
ibm-watson-data-lab/ibmseti
complex_to_fourier
29,475
LDU_FT/blockchain/api-v1-client-python/callback_log
LDU_FT
[ "<BEGIN>\n## `get_ticker`", "Call the 'ticker' method and return a dictionary\n of :class:`Currency` objects.", " :param str api_code: Blockchain.info API code (optional)\n :return: a dictionary in the format of ccy_symbol(str):currency(:class:`Currency`)\n<END>", "<BEGIN>\n## `to_btc`", "Call the ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the callback_log API. 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 callback_log API. 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...
Call the 'v2/receive/callback_log' endpoint and returns the callback log for a given callback URI with parameters. :param callback: callback URI :param api_key: Blockchain.info API V2 key :return: a list of :class:`LogEntry` objects
"Call the 'v2/receive/callback_log' endpoint and returns the callback log\n for a given callback URI with parameters.\n\n :param callback: callback URI\n :param api_key: Blockchain.info API V2 key\n :return: a list of :class:`LogEntry` objects"
78
false
blockchain/api-v1-client-python
callback_log
29,476
LDU_FT/sci-bots/svg-model/get_shape_areas
LDU_FT
[ "<BEGIN>\n## `auto_detect_adjacent_shapes`", "Attempt to automatically find \"adjacent\" shapes in a SVG layer.", " In a layer within a new SVG document, draw each detected connection between\n the center points of the corresponding shapes.", " Parameters\n ----------\n svg_source : str\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_shape_areas API. 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_shape_areas API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
Return a `pandas.Series` indexed by `shape_i_columns` (i.e., each entry corresponds to a single shape/polygon), containing the following columns the area of each shape. If `signed=True`, a positive area value corresponds to a clockwise loop, whereas a negative area value corresponds to a counter-clockw...
"Return a `pandas.Series` indexed by `shape_i_columns` (i.e., each entry\n corresponds to a single shape/polygon), containing the following columns\n the area of each shape.\n\n If `signed=True`, a positive area value corresponds to a clockwise loop,\n whereas a negative area value corresponds to a counter-...
181
false
sci-bots/svg-model
get_shape_areas
29,477
LDU_FT/LISE-B26/pylabcontrol/show_info
LDU_FT
[ "<BEGIN>\n## `instantiate_probes`", "Creates instances of the probes inputed;", " Args:\n probes: probes is a nested dictionary with\n (key, sub_dict ) = (name of the probe, {'probe_name': value_probe, 'instrument_name': value_inst}),\n where value_probe is a valid name of a pr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the show_info API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the show_info API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
displays the doc string of the selected element
"displays the doc string of the selected element"
301
false
LISE-B26/pylabcontrol
show_info
29,478
LDU_FT/hawkular/hawkular-client-python/set_group_member_unorphan
LDU_FT
[ "<BEGIN>\n## `create_datapoint`", "Creates a single datapoint dict with a value, timestamp and tags.", " :param value: Value of the datapoint. Type depends on the id's MetricType\n :param timestamp: Optional timestamp of the datapoint. Uses client current time if not set. Millisecond accuracy. Can be date...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_group_member_unorphan 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 set_group_member_unorphan API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi...
Make an orphan member trigger into an group trigger. :param member_id: Orphan Member Trigger id to be assigned into a group trigger :param unorphan_info: Only context and dataIdMap are used when changing back to a non-orphan. :type unorphan_info: UnorphanMemberInfo :return: Trigger for ...
"Make an orphan member trigger into an group trigger.\n\n :param member_id: Orphan Member Trigger id to be assigned into a group trigger\n :param unorphan_info: Only context and dataIdMap are used when changing back to a non-orphan.\n :type unorphan_info: UnorphanMemberInfo\n :return: Trigge...
116
false
hawkular/hawkular-client-python
set_group_member_unorphan
29,479
LDU_FT/IndicoDataSolutions/IndicoIo-python/people
LDU_FT
[ "<BEGIN>\n## `analyze_image`", "Given input image, returns the results of specified image apis. Possible apis\r\n include: ['fer', 'facial_features', 'image_features']\r", " Example usage:\r", " .. code-block:: python\r", " >>> import indicoio\r\n >>> import numpy as np\r\n >>> fa...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the people API. Each 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 people API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Given input text, returns references to specific persons found in the text Example usage: .. code-block:: python >>> text = "London Underground's boss Mike Brown warned that the strike ..." >>> entities = indicoio.people(text) [ { u'text': "Mike Brown", ...
"Given input text, returns references to specific persons found in the text\r\n\r\n Example usage:\r\n\r\n .. code-block:: python\r\n\r\n >>> text = \"London Underground's boss Mike Brown warned that the strike ...\"\r\n >>> entities = indicoio.people(text)\r\n [\r\n {\r\n u...
148
false
IndicoDataSolutions/IndicoIo-python
people
29,480
LDU_FT/andrewramsay/sk8-drivers/accel_calibration
LDU_FT
[ "<BEGIN>\n## `update`", "Update the device name and/or RSSI.", " During an ongoing scan, multiple records from the same device can be \n received during the scan. Each time that happens this method is \n called to update the :attr:`name` and/or :attr:`rssi` attributes.\n<END>", "<BEGIN>\n...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the accel_calibration API. 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 accel_calibration API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Perform accelerometer calibration for current IMU.
"Perform accelerometer calibration for current IMU."
193
false
andrewramsay/sk8-drivers
accel_calibration
29,481
LDU_FT/niemasd/TreeSwift/contract
LDU_FT
[ "<BEGIN>\n## `plot_ltt`", "Plot the Lineages Through Time (LTT) curve of a given tree", " Args:\n ``lineages`` (``dict``): The ``lineages`` dictionary returned by a ``Tree`` object's ``lineages_through_time()`` function call", " ``show_plot`` (``bool``): ``True`` to show the plot, otherwise `...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the contract API. 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 contract API. 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...
Contract this ``Node`` by directly connecting its children to its parent
"Contract this ``Node`` by directly connecting its children to its parent"
280
false
niemasd/TreeSwift
contract
29,482
LDU_FT/materialsproject/pymatgen-db/total_size
LDU_FT
[ "<BEGIN>\n## `contains_vasp_input`", "Checks if a directory contains valid VASP input.", " Args:\n dir_name:\n Directory name to check.", " Returns:\n True if directory contains all four VASP input files (INCAR, POSCAR,\n KPOINTS and POTCAR).\n<END>", "<BEGIN>\n## `get_...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the total_size API. 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 total_size API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
Returns the approximate memory footprint an object and all of its contents. Automatically finds the contents of the following builtin containers and their subclasses: tuple, list, deque, dict, set and frozenset. To search other containers, add handlers to iterate over their contents: handlers = {...
"Returns the approximate memory footprint an object and all of its contents.\n\n Automatically finds the contents of the following builtin containers and\n their subclasses: tuple, list, deque, dict, set and frozenset.\n To search other containers, add handlers to iterate over their contents:\n\n handl...
262
false
materialsproject/pymatgen-db
total_size
29,483
LDU_FT/observermedia/django-wordpress-rest/load_media
LDU_FT
[ "<BEGIN>\n## `load_post_webhook`", "Webhook to insert/update a WordPress.com post on the local Django site.\n Call this after making changes to the post in WP Admin.\n The post is processed asynchronously so that a response can be returned to WordPress.com immediately.", " :param request: Should contai...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load_media API. 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 load_media API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
Load all WordPress media from the given site. :param max_pages: kill counter to avoid infinite looping :return: None
"Load all WordPress media from the given site.\n\n :param max_pages: kill counter to avoid infinite looping\n :return: None"
100
false
observermedia/django-wordpress-rest
load_media
29,484
LDU_FT/pavlov99/jsonapi/get_model_name
LDU_FT
[ "<BEGIN>\n## `default`", "Encode JSON.", " :return str: A JSON encoded string\n<END>", "<BEGIN>\n## `dump_document`", "Get document for model_instance.", " redefine dump rule for field x: def dump_document_x", " :param django.db.models.Model instance: model instance\n :param ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_model_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 ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_model_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 ex...
Get model name for the field. Django 1.5 uses module_name, does not support model_name Django 1.6 uses module_name and model_name DJango 1.7 uses model_name, module_name raises RemovedInDjango18Warning
"Get model name for the field.\n\n Django 1.5 uses module_name, does not support model_name\n Django 1.6 uses module_name and model_name\n DJango 1.7 uses model_name, module_name raises RemovedInDjango18Warning"
63
false
pavlov99/jsonapi
get_model_name
29,485
LDU_FT/mixcloud/django-experiments/points_with_surrounding_gaps
LDU_FT
[ "<BEGIN>\n## `points_with_surrounding_gaps`", "This function makes sure that any gaps in the sequence provided have stopper points at their beginning\n and end so a graph will be drawn with correct 0 ranges. This is more efficient than filling in all points\n up to the maximum value. For example:", " i...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the points_with_surrounding_gaps 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 points_with_surrounding_gaps API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its concl...
This function makes sure that any gaps in the sequence provided have stopper points at their beginning and end so a graph will be drawn with correct 0 ranges. This is more efficient than filling in all points up to the maximum value. For example: input: [1,2,3,10,11,13] output [1,2,3,4,9,10,11,12,13]
"This function makes sure that any gaps in the sequence provided have stopper points at their beginning\n and end so a graph will be drawn with correct 0 ranges. This is more efficient than filling in all points\n up to the maximum value. For example:\n\n input: [1,2,3,10,11,13]\n output [1,2,3,4,9,10,11,12...
40
false
mixcloud/django-experiments
points_with_surrounding_gaps
29,486
LDU_FT/jwplayer/jwplatform-py/run_upload
LDU_FT
[ "<BEGIN>\n## `insert_into_channel`", "Function which inserts video into a channel/playlist.", " :param api_key: <string> JWPlatform api-key\n :param api_secret: <string> JWPlatform shared-secret\n :param channel_key: <string> Key of the channel to which add a video.\n :param video_key: <string> Key ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the run_upload API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the run_upload API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
Configures all of the needed upload_parameters and sets up all information pertinent to the video to be uploaded. :param video_file_path: <str> the absolute path to the video file
"Configures all of the needed upload_parameters and sets up all information pertinent\n to the video to be uploaded.\n\n :param video_file_path: <str> the absolute path to the video file"
35
false
jwplayer/jwplatform-py
run_upload
29,487
LDU_FT/Ezhil-Language-Foundation/open-tamil/num2tamilstr_american
LDU_FT
[ "<BEGIN>\n## `unicode2encode`", "charmap : dictionary which has both encode as key, unicode as value\n<END>", "<BEGIN>\n## `unicode2auto`", "This function will convert unicode (first argument) text into other\r\n encodes by auto find the encode (from available encodes) by using sample\r\n encode text in...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the num2tamilstr_american 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 num2tamilstr_american API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
work till 1000 trillion - 1 - i.e = 1e12*1e3 - 1. turn number into a numeral, American style. Fractions upto 1e-30.
"work till 1000 trillion - 1 - i.e = 1e12*1e3 - 1.\n turn number into a numeral, American style. Fractions upto 1e-30."
90
false
Ezhil-Language-Foundation/open-tamil
num2tamilstr_american
29,488
LDU_FT/pyblish/pyblish-qml/resolve_fragment
LDU_FT
[ "<BEGIN>\n## `process`", "Given JSON objects from client, perform actual processing", " Arguments:\n plugin (dict): JSON representation of plug-in to process\n instance (dict, optional): JSON representation of Instance to\n be processed.\n action (str, opti...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the resolve_fragment API. 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 resolve_fragment API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Resolve a ``fragment`` within the referenced ``document``. :argument document: the referrant document :argument str fragment: a URI fragment to resolve within it
"Resolve a ``fragment`` within the referenced ``document``.\n\n :argument document: the referrant document\n :argument str fragment: a URI fragment to resolve within it"
272
false
pyblish/pyblish-qml
resolve_fragment
29,489
LDU_FT/redcanari/canari3/set_canari_mode
LDU_FT
[ "<BEGIN>\n## `icon_resource`", "Returns the absolute URI path to an image. If a package is not explicitly specified then the calling package name is\n used.", " :param name: path relative to package path of the image resource.\n :param package: package name in dotted format.\n :return: the file URI ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_canari_mode API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_canari_mode API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
Sets the global operating mode for Canari. This is used to alter the behaviour of dangerous classes like the CanariConfigParser. :param mode: the numeric Canari operating mode (CanariMode.Local, CanariMode.Remote, etc.). :return: previous operating mode.
"Sets the global operating mode for Canari. This is used to alter the behaviour of dangerous classes like the\n CanariConfigParser.\n\n :param mode: the numeric Canari operating mode (CanariMode.Local, CanariMode.Remote, etc.).\n :return: previous operating mode."
126
false
redcanari/canari3
set_canari_mode
29,490
LDU_FT/adamziel/python_translate/set_fallback_locales
LDU_FT
[ "<BEGIN>\n## `load_messages`", "Loads translation found in a directory.", " @type directory: string\n @param directory: The directory to search", " @type catalogue: MessageCatalogue\n @param catalogue: The message catalogue to dump", " @raises: ValueError\n<END>", "<BEGI...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_fallback_locales 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_fallback_locales 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 fallback locales. @type locales: list[str] @param locales: The falback locales @raises: ValueError: If a locale contains invalid characters
"Sets the fallback locales.\n\n @type locales: list[str]\n @param locales: The falback locales\n\n @raises: ValueError: If a locale contains invalid characters"
136
false
adamziel/python_translate
set_fallback_locales
29,491
LDU_FT/davidblaisonneau-orange/foreman/get_id_by_name
LDU_FT
[ "<BEGIN>\n## `importPuppetClasses`", "Function importPuppetClasses\n Force the reload of puppet classes", " @param smartProxyId: smartProxy Id\n @return RETURN: the API result\n<END>", "<BEGIN>\n## `enhance`", "Function enhance\n Enhance the object with new item or enhanced items...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_id_by_name API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_id_by_name API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
Function get_id_by_name Get the id of an object @param obj: object name ('hosts', 'puppetclasses'...) @param id: the id of the object (name or id) @return RETURN: the targeted object
"Function get_id_by_name\n Get the id of an object\n\n @param obj: object name ('hosts', 'puppetclasses'...)\n @param id: the id of the object (name or id)\n @return RETURN: the targeted object"
118
false
davidblaisonneau-orange/foreman
get_id_by_name
29,492
LDU_FT/django-auth-ldap/django-auth-ldap/get_group_names
LDU_FT
[ "<BEGIN>\n## `get_or_build_user`", "This must return a (User, built) 2-tuple for the given LDAP user.", " username is the Django-friendly username of the user. ldap_user.dn is\n the user's DN and ldap_user.attrs contains all of their LDAP\n attributes.", " The returned User object ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_group_names API. 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_group_names API. 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...
Returns the set of Django group names that this user belongs to by virtue of LDAP group memberships.
"Returns the set of Django group names that this user belongs to by\n virtue of LDAP group memberships."
65
false
django-auth-ldap/django-auth-ldap
get_group_names
29,493
LDU_FT/cloudify-cosmo/wagon/repair
LDU_FT
[ "<BEGIN>\n## `install_package`", "Install a Python package.", " Can specify a specific version.\n Can specify a prerelease.\n Can specify a venv to install in.\n Can specify a list of paths or urls to requirement txt files.\n Can specify a local wheels_path to use for offline installation.\n C...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the repair API. Each 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 repair API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Use auditwheel (https://github.com/pypa/auditwheel) to attempt and repair all wheels in a wagon. The repair process will: 1. Extract the wagon and its metadata 2. Repair all wheels 3. Update the metadata with the new wheel names and platform 4. Repack the wagon
"Use auditwheel (https://github.com/pypa/auditwheel)\n to attempt and repair all wheels in a wagon.\n\n The repair process will:\n\n 1. Extract the wagon and its metadata\n 2. Repair all wheels\n 3. Update the metadata with the new wheel names and platform\n 4. Repack the wagon"
51
false
cloudify-cosmo/wagon
repair
29,494
LDU_FT/ronaldguillen/wave/get_content_negotiator
LDU_FT
[ "<BEGIN>\n## `template_render`", "Passing Context or RequestContext to Template.render is deprecated in 1.9+,\n see https://github.com/django/django/pull/3883 and\n https://github.com/django/django/blob/1.9rc1/django/template/backends/django.py#L82-L84", " :param template: Template instance\n :param...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_content_negotiator API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_content_negotiator API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
Instantiate and return the content negotiation class to use.
"Instantiate and return the content negotiation class to use."
296
false
ronaldguillen/wave
get_content_negotiator
29,495
LDU_FT/sk-/git-lint/parse_yaml_config
LDU_FT
[ "<BEGIN>\n## `find_invalid_filenames`", "Find files that does not exist, are not in the repo or are directories.", " Args:\n filenames: list of filenames to check\n repository_root: the absolute path of the repository's root.", " Returns: A list of errors.\n<END>", "<BEGIN>\n## `get_config`"...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_yaml_config API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_yaml_config API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Converts a dictionary (parsed Yaml) to the internal representation.
"Converts a dictionary (parsed Yaml) to the internal representation."
68
false
sk-/git-lint
parse_yaml_config
29,496
LDU_FT/base4sistemas/pyescpos/qrcode
LDU_FT
[ "<BEGIN>\n## `ean8`", "Render given ``data`` as **JAN-8/EAN-8** barcode symbology.\n<END>", "<BEGIN>\n## `ean13`", "Render given ``data`` as **JAN-13/EAN-13** barcode symbology.\n<END>", "<BEGIN>\n## `code128`", "Renders given ``data`` as **Code 128** barcode symbology.", " :param str codeset: Op...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the qrcode API. Each 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 qrcode API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Render given ``data`` as `QRCode <http://www.qrcode.com/en/>`_.
"Render given ``data`` as `QRCode <http://www.qrcode.com/en/>`_."
83
false
base4sistemas/pyescpos
qrcode
29,497
LDU_FT/prompt-toolkit/pyvim/current_editor_buffer
LDU_FT
[ "<BEGIN>\n## `_try_char`", "Return `character` if it can be encoded using sys.stdout, else return the\n backup character.\n<END>", "<BEGIN>\n## `_bufferlist_overlay_visible`", "True when the buffer list overlay should be displayed.\n (This is when someone starts typing ':b' or ':buffer' in the command l...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the current_editor_buffer 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 current_editor_buffer API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Return the `EditorBuffer` that is currently active.
"Return the `EditorBuffer` that is currently active."
76
false
prompt-toolkit/pyvim
current_editor_buffer
29,498
LDU_FT/mbodenhamer/syn/defer_reduce
LDU_FT
[ "<BEGIN>\n## `assign`", "Assigns B to A.attr, yields, and then assigns A.attr back to its\n original value.\n<END>", "<BEGIN>\n## `nearest_base`", "Returns the closest ancestor to cls in bases.\n<END>", "<BEGIN>\n## `get_typename`", "Returns the name of the type of x, if x is an object. Otherwise, ret...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the defer_reduce API. 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 defer_reduce API. 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...
Recursively reduce items by func, but only the items that do not cause test(items, accum) to return False. Returns the reduced list (accum) and the list of remaining deferred items.
"Recursively reduce items by func, but only the items that do not cause test(items, accum) to return False. Returns the reduced list (accum) and the list of remaining deferred items."
71
false
mbodenhamer/syn
defer_reduce
29,499
LDU_FT/dancsalo/TensorBase/check_str
LDU_FT
[ "<BEGIN>\n## `compute_samples`", "Sample from a Normal distribution with inferred mu and std\n<END>", "<BEGIN>\n## `neg_log_likelihood`", "Calculate Log Likelihood with particular mean and std\n x must be 2D. [batch_size * eqsamples* iwsamples, num_latent]\n<END>", "<BEGIN>\n## `compute_samples`", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the check_str API. 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 check_str API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
Returns a string for various input types
"Returns a string for various input types"
94
false
dancsalo/TensorBase
check_str
29,500
LDU_FT/MechanicalSoup/MechanicalSoup/new_control
LDU_FT
[ "<BEGIN>\n## `new_control`", "Call :func:`Form.new_control` on the currently selected form.\n<END>", "<BEGIN>\n## `open`", "Open the URL and store the Browser's state in this object.\n All arguments are forwarded to :func:`Browser.get`.", " :return: Forwarded from :func:`Browser.get`.\n<END>",...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the new_control API. 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 new_control API. 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...
Call :func:`Form.new_control` on the currently selected form.
"Call :func:`Form.new_control` on the currently selected form."
119
false
MechanicalSoup/MechanicalSoup
new_control
29,501
LDU_FT/zalando/patroni/run_bootstrap_post_init
LDU_FT
[ "<BEGIN>\n## `create_connection`", "This method is trying to establish connection with one of the zookeeper nodes.\n Somehow strategy \"fail earlier and retry more often\" works way better comparing to\n the original strategy \"try to connect with specified timeout\".\n Since we want...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the run_bootstrap_post_init 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 run_bootstrap_post_init API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion...
runs a script after initdb or custom bootstrap script is called and waits until completion.
"runs a script after initdb or custom bootstrap script is called and waits until completion."
228
false
zalando/patroni
run_bootstrap_post_init
29,502
LDU_FT/ronaldguillen/wave/get_breadcrumbs
LDU_FT
[ "<BEGIN>\n## `template_render`", "Passing Context or RequestContext to Template.render is deprecated in 1.9+,\n see https://github.com/django/django/pull/3883 and\n https://github.com/django/django/blob/1.9rc1/django/template/backends/django.py#L82-L84", " :param template: Template instance\n :param...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_breadcrumbs API. 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_breadcrumbs API. 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...
Given a url returns a list of breadcrumbs, which are each a tuple of (name, url).
"Given a url returns a list of breadcrumbs, which are each a\n tuple of (name, url)."
296
false
ronaldguillen/wave
get_breadcrumbs
29,503
LDU_FT/ParthKolekar/parthsql/store_contents
LDU_FT
[ "<BEGIN>\n## `load_contents`", "Loads contents of the tables into database.\n<END>", "<BEGIN>\n## `store_contents`", "Stores the contents of tables into file.\n<END>", "<BEGIN>\n## `get_table`", "Returns the table whoose name is tablename.\n<END>", "<BEGIN>\n## `invert_delete_row`", "Inverts delete_ro...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the store_contents API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the store_contents API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
Stores contests of the Database into a filename database.csv.
"Stores contests of the Database into a filename database.csv."
16
false
ParthKolekar/parthsql
store_contents
29,504
LDU_FT/portfoliome/postpy/make_delete_table
LDU_FT
[ "<BEGIN>\n## `check_extension`", "Check to see if an extension is installed.\n<END>", "<BEGIN>\n## `generate_numeric_range`", "Generate postgresql numeric range and label for insertion.", " Parameters\n ----------\n items: iterable labels for ranges.\n lower_bound: numeric lower bound\n upper...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the make_delete_table API. 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 make_delete_table API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Table referencing a delete from using primary key join.
"Table referencing a delete from using primary key join."
50
false
portfoliome/postpy
make_delete_table
29,505
LDU_FT/Zimbra-Community/python-zimbra/dom_to_dict
LDU_FT
[ "<BEGIN>\n## `set_context_params`", "Set header context parameters. Refer to the top of <Zimbra\n Server-Root>/docs/soap.txt about specifics.", " The <format>-Parameter cannot be changed, because it is set by the\n implementing class.", " Should be called by implementing method to ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the dom_to_dict API. 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 dom_to_dict API. 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...
Serializes the given node to the dictionary Serializes the given node to the documented dictionary format. :param root_node: Node to serialize :returns: The dictionary :rtype: dict
"Serializes the given node to the dictionary\n\n Serializes the given node to the documented dictionary format.\n\n :param root_node: Node to serialize\n :returns: The dictionary\n :rtype: dict"
48
false
Zimbra-Community/python-zimbra
dom_to_dict
29,506
LDU_FT/bsmurphy/PyKrige/_make_variogram_parameter_list
LDU_FT
[ "<BEGIN>\n## `make_benchark`", "Compute the benchmarks for Ordianry Kriging ", " Parameters\n ----------\n n_train : int\n number of points in the training set\n n_test : int\n number of points in the test set\n n_dim : int\n number of dimensions (default=2)", " Returns\n -...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _make_variogram_parameter_list API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its con...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _make_variogram_parameter_list API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its con...
Converts the user input for the variogram model parameters into the format expected in the rest of the code. Makes a list of variogram model parameters in the expected order if the user has provided the model parameters. If not, returns None, which will ensure that the automatic variogram estimation ro...
"Converts the user input for the variogram model parameters into the\n format expected in the rest of the code.\n\n Makes a list of variogram model parameters in the expected order if the\n user has provided the model parameters. If not, returns None, which\n will ensure that the automatic variogram estimat...
150
false
bsmurphy/PyKrige
_make_variogram_parameter_list
29,507
LDU_FT/inveniosoftware-attic/invenio-utils/safe_mkstemp
LDU_FT
[ "<BEGIN>\n## `get_callable_signature_as_string`", "Return a string representing a callable.", " It is executed as if it would have been declared on the prompt.", " >>> def foo(arg1, arg2, arg3='val1', arg4='val2', *args, **argd):\n ... pass\n >>> get_callable_signature_as_string(foo)\n def ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the safe_mkstemp API. 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 safe_mkstemp API. 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...
Create a temporary filename that don't have any '.' inside a part from the suffix.
"Create a temporary filename that don't have any '.' inside a part\n from the suffix."
424
false
inveniosoftware-attic/invenio-utils
safe_mkstemp
29,508
LDU_FT/xlzd/xtls/producer
LDU_FT
[ "<BEGIN>\n## `_build_str_from_expression`", "根据解析出的时间表达式的关键字计算对应的表达式值\n :return: 表达式对应时间的标准时间格式字符串表示形式\n<END>", "<BEGIN>\n## `_build_str_from_time_items`", "根据解析出的时间字符串关键字计算标准时间表示格式的字符串\n :return: 标准时间格式字符串表示形式\n<END>", "<BEGIN>\n## `parse_time`", "解析出一个字符串中包含的(第一个)时间,并转换为时间对象或者字符串表现形式\n :param t...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the producer API. 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 producer API. 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...
分布式爬虫的任务端(将任务加入Queue) 注意: 被包装的函数需要返回一个可迭代的对象 :param cfg_uri: 读取任务的路径 :param queue: Queue的名字 :param logger: 日志记录工具
"分布式爬虫的任务端(将任务加入Queue)\n\n 注意:\n 被包装的函数需要返回一个可迭代的对象\n\n :param cfg_uri: 读取任务的路径\n :param queue: Queue的名字\n :param logger: 日志记录工具"
19
false
xlzd/xtls
producer
29,509
LDU_FT/KelSolaar/Umbra/activate_component
LDU_FT
[ "<BEGIN>\n## `restore_geometry_on_layout_change`", "Setter for **self.__restore_geometry_on_layout_change** attribute.", " :param value: Attribute value.\n :type value: bool\n<END>", "<BEGIN>\n## `get`", "Returns given layout value.", " :param layout: Layout name.\n :type layou...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the activate_component 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 activate_component 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...
Activates given Component. :param name: Component name. :type name: unicode :return: Method success. :rtype: bool
"Activates given Component.\n\n :param name: Component name.\n :type name: unicode\n :return: Method success.\n :rtype: bool"
1,432
true
KelSolaar/Umbra
activate_component
29,510
LDU_FT/dcaune/perseus-lib-python-common/from_json
LDU_FT
[ "<BEGIN>\n## `convert_image_to_rgb_mode`", "Convert the specified image instance to RGB mode.", " @param image: a Python Library Image (PIL) instance to convert its\n pixel format to RGB, discarding the alpha channel.", " @param fill_color: color to be used to fill transparent pixels when\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the from_json API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the from_json API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
Build a ``Place`` instance from the specified JSON object. @param payload: JSON representation of a place:: { "area_id": string, "address": { component_type: string, ... } \ [ { ...
"Build a ``Place`` instance from the specified JSON object.\n\n\n @param payload: JSON representation of a place::\n\n {\n \"area_id\": string,\n \"address\": {\n component_type: string,\n ...\n } \\ [\n ...
498
false
dcaune/perseus-lib-python-common
from_json
29,511
LDU_FT/kivy/python-for-android/distributions
LDU_FT
[ "<BEGIN>\n## `dist_dir`", "The dist dir at which to place the finished distribution.\n<END>", "<BEGIN>\n## `check_recipe_choices`", "Checks what recipes are being built to see which of the alternative\n and optional dependencies are being used,\n and returns a list of these.\n<END>", "<BEGIN>\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the distributions API. 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 distributions API. 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...
Lists all distributions currently available (i.e. that have already been built).
"Lists all distributions currently available (i.e. that have already\n been built)."
404
false
kivy/python-for-android
distributions
29,512
LDU_FT/casouri/launchdman/printMe
LDU_FT
[ "<BEGIN>\n## `flatten`", "Flatten a multi-deminision list and return a iterable", " Note that dict and str will not be expanded, instead, they will be kept as a single element.", " Args:\n l (list): The list needs to be flattened", " Returns:\n A iterable of flattened list. To have a ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the printMe API. Each 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 printMe API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
Parse the single and its value and return the parsed str. Args: selfTag (str): The tag. Normally just ``self.tag`` selfValue (list): a list of value elements(single, subclasses, str, int). Normally just ``self.value`` Returns: str: A parsed text
"Parse the single and its value and return the parsed str.\n\n Args:\n selfTag (str): The tag. Normally just ``self.tag``\n selfValue (list): a list of value elements(single, subclasses, str, int). Normally just ``self.value``\n\n Returns:\n str: A parsed text"
90
false
casouri/launchdman
printMe
29,513
LDU_FT/LordDarkula/chess_py/shift_down_right
LDU_FT
[ "<BEGIN>\n## `_get_piece`", "Returns Piece subclass given index of piece.", " :type: index: int\n :type: loc Location", " :raise: KeyError\n<END>", "<BEGIN>\n## `incomplete_alg`", "Converts a string written in short algebraic form into an incomplete move.\n These incomplete moves do not have t...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the shift_down_right API. 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 shift_down_right API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Finds Location shifted down right by 1 :rtype: Location
"Finds Location shifted down right by 1\n\n :rtype: Location"
173
false
LordDarkula/chess_py
shift_down_right
29,514
LDU_FT/ioos/wicken/_validate_teaching
LDU_FT
[ "<BEGIN>\n## `_create_path`", "Started to write an xpath parser to create the specified path but there are many\n ways to specify a path in xpath - it is too expressive. This is not a sensible\n thing to do from inside a property function. Let it return an error unless the\n path exists and a...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _validate_teaching 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 _validate_teaching 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 to make sure the teaching object which will be used as a dictionary key is hashable
"Check to make sure the teaching object which will be used as a dictionary key is hashable"
13
false
ioos/wicken
_validate_teaching
29,515
LDU_FT/ceph/ceph-deploy/get_default_repo
LDU_FT
[ "<BEGIN>\n## `ceph_is_installed`", "A helper callback to be executed after the connection is made to ensure\n that Ceph is installed.\n<END>", "<BEGIN>\n## `_get_version_output`", "Ignoring errors, call `ceph --version` and return only the version\n portion of the output. For example, output like::"...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_default_repo API. 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_default_repo API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Go through all the repositories defined in the config file and search for a truthy value for the ``default`` key. If there isn't any return None.
"Go through all the repositories defined in the config file and search\n for a truthy value for the ``default`` key. If there isn't any return\n None."
236
false
ceph/ceph-deploy
get_default_repo
29,516
LDU_FT/jamescooke/flake8-aaa/load_act_node
LDU_FT
[ "<BEGIN>\n## `do_command_line`", "Currently a small stub to create an instance of Checker for the passed\n ``infile`` and run its test functions through linting.", " Args:\n infile", " Returns:\n int: Number of flake8 errors raised.\n<END>", "<BEGIN>\n## `run`", "Yields:\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load_act_node API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load_act_node API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
Raises: ValidationError: AAA01 when no act block is found and AAA02 when multiple act blocks are found.
"Raises:\n ValidationError: AAA01 when no act block is found and AAA02 when\n multiple act blocks are found."
66
false
jamescooke/flake8-aaa
load_act_node
29,517
LDU_FT/OLC-Bioinformatics/ConFindr/kwargs_to_string
LDU_FT
[ "<BEGIN>\n## `bbduk_trim`", "Wrapper for using bbduk to quality trim reads. Contains arguments used in OLC Assembly Pipeline, but these can\n be overwritten by using keyword parameters.\n :param forward_in: Forward reads you want to quality trim.\n :param returncmd: If set to true, function will return t...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the kwargs_to_string API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the kwargs_to_string API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Given a set of kwargs, turns them into a string which can then be passed to a command. :param kwargs: kwargs from a function call. :return: outstr: A string, which is '' if no kwargs were given, and the kwargs in string format otherwise.
"Given a set of kwargs, turns them into a string which can then be passed to a command.\n :param kwargs: kwargs from a function call.\n :return: outstr: A string, which is '' if no kwargs were given, and the kwargs in string format otherwise."
56
false
OLC-Bioinformatics/ConFindr
kwargs_to_string
29,518
LDU_FT/peterldowns/lggr/_find_caller
LDU_FT
[ "<BEGIN>\n## `FilePrinter`", "Opens the given file and returns a printer to it.\n<END>", "<BEGIN>\n## `Emailer`", "Sends messages as emails to the given list\n of recipients.\n<END>", "<BEGIN>\n## `GMailer`", "Sends messages as emails to the given list\n of recipients, from a GMail account.\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _find_caller API. 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 _find_caller API. 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...
Find the stack frame of the caller so that we can note the source file name, line number, and function name.
"Find the stack frame of the caller so that we can note the source file\n name, line number, and function name."
28
false
peterldowns/lggr
_find_caller
29,519
LDU_FT/nugget/python-insteonplm/add_x10_device
LDU_FT
[ "<BEGIN>\n## `data_received`", "Receive data from the protocol.", " Called when asyncio.Protocol detects received data from network.\n<END>", "<BEGIN>\n## `connection_lost`", "Reestablish the connection to the transport.", " Called when asyncio.Protocol loses the network connection.\n<END>",...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_x10_device API. 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 add_x10_device API. 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 an X10 device based on a feature description. Current features are: - OnOff - Dimmable - Sensor - AllUnitsOff - AllLightsOn - AllLightsOff
"Add an X10 device based on a feature description.\n\n Current features are:\n - OnOff\n - Dimmable\n - Sensor\n - AllUnitsOff\n - AllLightsOn\n - AllLightsOff"
375
false
nugget/python-insteonplm
add_x10_device
29,520
LDU_FT/filestack/filestack-python/to_filelink
LDU_FT
[ "<BEGIN>\n## `to_filelink`", "Checks is the status of the conversion is complete and, if so, converts to a Filelink", " *returns* [Filestack.Filelink]", " ```python\n filelink = av_convert.to_filelink()\n ```\n<END>", "<BEGIN>\n## `url`", "Returns the URL for the instance, whic...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the to_filelink API. 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 to_filelink API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
Checks is the status of the conversion is complete and, if so, converts to a Filelink *returns* [Filestack.Filelink] ```python filelink = av_convert.to_filelink() ```
"Checks is the status of the conversion is complete and, if so, converts to a Filelink\n\n *returns* [Filestack.Filelink]\n\n ```python\n filelink = av_convert.to_filelink()\n ```"
82
false
filestack/filestack-python
to_filelink
29,521
LDU_FT/cloudant/python-cloudant/get_partitioned_view_result
LDU_FT
[ "<BEGIN>\n## `_start`", "Starts streaming the feed using the provided session and feed options.\n<END>", "<BEGIN>\n## `_translate`", "Perform translation of feed options passed in as keyword\n arguments to CouchDB/Cloudant equivalent.\n<END>", "<BEGIN>\n## `_validate`", "Ensures that the key and th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_partitioned_view_result API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclu...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_partitioned_view_result API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclu...
Retrieves the partitioned view result based on the design document and view name. See :func:`~cloudant.database.CouchDatabase.get_view_result` method for further details. :param str partition_key: Partition key. :param str ddoc_id: Design document id used to get result. ...
"Retrieves the partitioned view result based on the design document and\n view name.\n\n See :func:`~cloudant.database.CouchDatabase.get_view_result` method for\n further details.\n\n :param str partition_key: Partition key.\n :param str ddoc_id: Design document id used to get result....
489
false
cloudant/python-cloudant
get_partitioned_view_result
29,522
LDU_FT/googleapis/gax-python/set
LDU_FT
[ "<BEGIN>\n## `fill`", "Add the metrics headers known to GAX.", " Return an OrderedDict with all of the metrics headers provided to\n this function, as well as the metrics known to GAX (such as its own\n version, the GRPC version, etc.).\n<END>", "<BEGIN>\n## `stringify`", "Convert the provided metr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
Set the given key on the object. Args: pb_or_dict (Union[~google.protobuf.message.Message, Mapping]): the object. key (str): The key on the object in question. value (Any): The value to set. Raises: TypeError: If pb_or_dict is not a Message or Mapping.
"Set the given key on the object.\n\n Args:\n pb_or_dict (Union[~google.protobuf.message.Message, Mapping]): the\n object.\n key (str): The key on the object in question.\n value (Any): The value to set.\n\n Raises:\n TypeError: If pb_or_dict is not a Message or Mapping."
161
false
googleapis/gax-python
set
29,523
LDU_FT/rm-hull/luma.core/inflate_bbox
LDU_FT
[ "<BEGIN>\n## `animate`", "Returns a generator which \"executes\" an animation sequence for the given\n ``seq_name``, inasmuch as the next frame for the given animation is\n yielded when requested.", " :param seq_name: The name of a previously defined animation sequence.\n :type seq_n...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the inflate_bbox API. 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 inflate_bbox API. 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...
Realign the left and right edges of the bounding box such that they are inflated to align modulo 4. This method is optional, and used mainly to accommodate devices with COM/SEG GDDRAM structures that store pixels in 4-bit nibbles.
"Realign the left and right edges of the bounding box such that they are\n inflated to align modulo 4.\n\n This method is optional, and used mainly to accommodate devices with\n COM/SEG GDDRAM structures that store pixels in 4-bit nibbles."
126
false
rm-hull/luma.core
inflate_bbox
29,524
LDU_FT/google/pyringe/ThreadsWithRunningExecServers
LDU_FT
[ "<BEGIN>\n## `StartExecServer`", "Opens a socket in /tmp, execs data from it and writes results back.\n<END>", "<BEGIN>\n## `ThreadsWithRunningExecServers`", "Returns a list of tids of inferior threads with open exec servers.\n<END>", "<BEGIN>\n## `Backtrace`", "Get a backtrace of the current position.\n<...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the ThreadsWithRunningExecServers 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 ThreadsWithRunningExecServers API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conc...
Returns a list of tids of inferior threads with open exec servers.
"Returns a list of tids of inferior threads with open exec servers."
142
false
google/pyringe
ThreadsWithRunningExecServers
29,525
LDU_FT/wilson-eft/wilson/scale_dict_wet
LDU_FT
[ "<BEGIN>\n## `alpha_s`", "3-loop computation of alpha_s for f flavours\n with initial condition alpha_s(MZ) = 0.1185\n<END>", "<BEGIN>\n## `m_b`", "r\"\"\"Get running b quark mass in the MSbar scheme at the scale `scale`\n in the theory with `f` dynamical quark flavours starting from $m_b(m_b)$\n<END>",...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the scale_dict_wet API. 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 scale_dict_wet API. 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...
To account for the fact that arXiv:Jenkins:2017jig uses a flavour non-redundant basis in contrast to WCxf, symmetry factors of two have to be introduced in several places for operators that are symmetric under the interchange of two currents.
"To account for the fact that arXiv:Jenkins:2017jig uses a flavour\n non-redundant basis in contrast to WCxf, symmetry factors of two have to\n be introduced in several places for operators that are symmetric\n under the interchange of two currents."
216
false
wilson-eft/wilson
scale_dict_wet
29,526
LDU_FT/drslump/pyshould/lookup
LDU_FT
[ "<BEGIN>\n## `resolve`", "Resolve the current expression against the supplied value\n<END>", "<BEGIN>\n## `_assertion`", "Perform the actual assertion for the given matcher and value. Override\n this method to apply a special configuration when performing the assertion.\n If the assertio...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the lookup API. Each 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 lookup API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Tries to find a matcher callable associated to the given alias. If an exact match does not exists it will try normalizing it and even removing underscores to find one.
"Tries to find a matcher callable associated to the given alias. If\n an exact match does not exists it will try normalizing it and even\n removing underscores to find one."
26
false
drslump/pyshould
lookup
29,527
LDU_FT/ihgazni2/edict/_reorder_via_klist
LDU_FT
[ "<BEGIN>\n## `pipe_shell_cmds`", "shell_CMDs = {}\n shell_CMDs[1] = 'netstat -n'\n shell_CMDs[2] = \"awk {'print $6'}\"\n<END>", "<BEGIN>\n## `_reorder_via_klist`", "d = {'scheme': 'http', 'path': '/index.php', 'params': 'params', 'query': 'username=query', 'fragment': 'frag', 'username': '', 'p...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _reorder_via_klist 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 _reorder_via_klist 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...
d = {'scheme': 'http', 'path': '/index.php', 'params': 'params', 'query': 'username=query', 'fragment': 'frag', 'username': '', 'password': '', 'hostname': 'www.baidu.com', 'port': ''} pobj(d) nkl = ['scheme', 'username', 'password', 'hostname', 'port', 'path', 'params', 'query', 'fragment'] pob...
"d = {'scheme': 'http', 'path': '/index.php', 'params': 'params', 'query': 'username=query', 'fragment': 'frag', 'username': '', 'password': '', 'hostname': 'www.baidu.com', 'port': ''}\n pobj(d)\n nkl = ['scheme', 'username', 'password', 'hostname', 'port', 'path', 'params', 'query', 'fragment']\n ...
71
false
ihgazni2/edict
_reorder_via_klist
29,528
LDU_FT/rbarrois/xworkflows/add_implem
LDU_FT
[ "<BEGIN>\n## `_setup_states`", "Create a StateList object from a 'states' Workflow attribute.\n<END>", "<BEGIN>\n## `_setup_transitions`", "Create a TransitionList object from a 'transitions' Workflow attribute.", " Args:\n tdef: list of transition definitions\n states (StateList): already ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_implem API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_implem API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
Add an implementation. Args: transition (Transition): the transition for which the implementation is added attribute (str): the name of the attribute where the implementation will be available function (callable): the actual implementation fun...
"Add an implementation.\n\n Args:\n transition (Transition): the transition for which the implementation\n is added\n attribute (str): the name of the attribute where the implementation\n will be available\n function (callable): the actual implementa...
59
false
rbarrois/xworkflows
add_implem
29,529
LDU_FT/6809/MC6809/ROL
LDU_FT
[ "<BEGIN>\n## `instruction_RTS`", "Program control is returned from the subroutine to the calling program.\n The return address is pulled from the stack.", " source code forms: RTS", " CC bits \"HNZVC\": -----\n<END>", "<BEGIN>\n## `instruction_BSR_JSR`", "Program control is transferre...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the ROL API. Each 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 ROL API. Each 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...
Rotates all bits of the register one place left through the C (carry) bit. This is a 9-bit rotation. source code forms: ROL Q; ROLA; ROLB CC bits "HNZVC": -aaas
"Rotates all bits of the register one place left through the C (carry)\n bit. This is a 9-bit rotation.\n\n source code forms: ROL Q; ROLA; ROLB\n\n CC bits \"HNZVC\": -aaas"
224
false
6809/MC6809
ROL
29,530
LDU_FT/jeffknupp/sandman/get_resource_data
LDU_FT
[ "<BEGIN>\n## `endpoint`", "Return the :class:`sandman.model.Model`'s endpoint.", " :rtype: string\n<END>", "<BEGIN>\n## `resource_uri`", "Return the URI at which the resource can be found.", " :rtype: string\n<END>", "<BEGIN>\n## `primary_key`", "Return the name of the table's primary ke...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_resource_data API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_resource_data API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Return the data from the incoming *request* based on the Content-type.
"Return the data from the incoming *request* based on the\n Content-type."
126
false
jeffknupp/sandman
get_resource_data
29,531
LDU_FT/fabiobatalha/crossrefapi/works
LDU_FT
[ "<BEGIN>\n## `version`", "This attribute retrieve the API version.", " >>> Works().version\n '1.0.0'\n<END>", "<BEGIN>\n## `count`", "This method retrieve the total of records resulting from a given query.", " This attribute can be used compounded with query, filter,\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the works API. Each 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 works API. Each 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...
This method retrieve a iterable of Works of the given member. args: Member ID (Integer) return: Works()
"This method retrieve a iterable of Works of the given member.\n\n args: Member ID (Integer)\n\n return: Works()"
108
false
fabiobatalha/crossrefapi
works
29,532
LDU_FT/architv/harvey/get_summary
LDU_FT
[ "<BEGIN>\n## `get_summary`", "Gets the summary of a license from tldrlegal.com\n<END>", "<BEGIN>\n## `get_rules`", "Gets can, cannot and must rules from github license API\n<END>", "<BEGIN>\n## `main`", "Gets all the license information and stores it in json format\n<END>", "<BEGIN>\n## `_stripslashes`"...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_summary API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_summary API. 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...
Gets the summary of a license from tldrlegal.com
"Gets the summary of a license from tldrlegal.com"
16
false
architv/harvey
get_summary
29,533
LDU_FT/Xython/Linq.py/Take
LDU_FT
[ "<BEGIN>\n## `ChunkBy`", "[\n {\n 'self': [1, 1, 3, 3, 1, 1],\n 'f': lambda x: x%2,\n 'assert': lambda ret: ret == [[1, 1], [3, 3], [1, 1]]\n }\n ]\n<END>", "<BEGIN>\n## `GroupBy`", "[\n {\n 'self': [1, 2, 3],\n 'f': lambda x: x%2...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the Take API. Each 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 Take API. Each 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...
[ { 'self': [1, 2, 3], 'n': 2, 'assert': lambda ret: list(ret) == [1, 2] } ]
"[\n {\n 'self': [1, 2, 3],\n 'n': 2,\n 'assert': lambda ret: list(ret) == [1, 2]\n }\n ]"
32
false
Xython/Linq.py
Take
29,534
LDU_FT/UniversalDevicesInc/polyglot-v2-python-interface/init_interface
LDU_FT
[ "<BEGIN>\n## `init_interface`", "Grab the ~/.polyglot/.env file for variables\n If you are running Polyglot v2 on this same machine\n then it should already exist. If not create it.\n<END>", "<BEGIN>\n## `_connect`", "The callback for when the client receives a CONNACK response from the server.\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the init_interface API. 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 init_interface API. 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...
Grab the ~/.polyglot/.env file for variables If you are running Polyglot v2 on this same machine then it should already exist. If not create it.
"Grab the ~/.polyglot/.env file for variables\n If you are running Polyglot v2 on this same machine\n then it should already exist. If not create it."
42
false
UniversalDevicesInc/polyglot-v2-python-interface
init_interface
29,535
LDU_FT/akatrevorjay/uninhibited/_attach_handler_events
LDU_FT
[ "<BEGIN>\n## `get_event`", "Lookup an event by name.", " :param str item: Event name\n :return Event: Event instance under key\n<END>", "<BEGIN>\n## `_add_internal_event`", "This is only here to ensure my constant hatred for Python 2's horrid variable argument support.\n<END>", "<BEGIN>\n## ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _attach_handler_events 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 _attach_handler_events API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
Search handler for methods named after events, attaching to event handlers as applicable. :param object handler: Handler instance :param list events: List of event names to look for. If not specified, will do all known event names.
"Search handler for methods named after events, attaching to event handlers as applicable.\n\n :param object handler: Handler instance\n :param list events: List of event names to look for. If not specified, will do all known event names."
40
false
akatrevorjay/uninhibited
_attach_handler_events
29,536
LDU_FT/praekelt/django-object-tools/register
LDU_FT
[ "<BEGIN>\n## `_create_permissions`", "Almost exactly the same as django.contrib.auth.management.__init__.py\n<END>", "<BEGIN>\n## `validate`", "Does basic ObjectTool option validation.\n<END>", "<BEGIN>\n## `register`", "Registers the given model(s) with the given object tool class.", " The model...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the register API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the register API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
Registers the given model(s) with the given object tool class. The model(s) should be Model classes, not instances. If a model class isn't given the object tool class will be registered for all models. If a model is already registered, this will raise AlreadyRegistered. If a ...
"Registers the given model(s) with the given object tool class.\n\n The model(s) should be Model classes, not instances.\n\n If a model class isn't given the object tool class will be registered\n for all models.\n\n If a model is already registered, this will raise AlreadyRegistered.\n\n ...
20
false
praekelt/django-object-tools
register
29,537
LDU_FT/learningequality/ricecooker/add_file
LDU_FT
[ "<BEGIN>\n## `_write_to_zip`", "_write_to_zip: Write file to zip\n Args:\n path: (str) where in zip to write file\n contents: (str) contents of file to write\n Returns: None\n<END>", "<BEGIN>\n## `_commit`", "_commit: Adds folder/file to map\n Arg...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_file API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_file API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
add_file: Add to node's associated files Args: file_to_add (File): file model to add to node Returns: None
"add_file: Add to node's associated files\n Args: file_to_add (File): file model to add to node\n Returns: None"
364
false
learningequality/ricecooker
add_file
29,538
LDU_FT/pyQode/pyqode.core/parse_text
LDU_FT
[ "<BEGIN>\n## `on_install`", "Add the folding menu to the editor, on install.", " :param editor: editor instance on which the mode has been installed to.\n<END>", "<BEGIN>\n## `_draw_rect`", "Draw the background rectangle using the current style primitive color\n or foldIndicatorBackground if n...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_text API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_text API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
Retursn a list of operations (draw, cup, ed,...). Each operation consist of a command and its associated data. :param formatted_text: text to parse with the default char format to apply. :return: list of Operation
"Retursn a list of operations (draw, cup, ed,...).\n\n Each operation consist of a command and its associated data.\n\n :param formatted_text: text to parse with the default char format to apply.\n :return: list of Operation"
697
false
pyQode/pyqode.core
parse_text
29,539
LDU_FT/portfoliome/foil/partition
LDU_FT
[ "<BEGIN>\n## `_`", "ISO 8601 format. Interprets naive datetime as UTC with zulu suffix.\n<END>", "<BEGIN>\n## `create_key_filter`", "Generate combinations of key, value pairs for each key in properties.", " Examples\n --------\n properties = {'ent': ['geo_rev', 'supply_chain'], 'own', 'fi'}\n >>...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the partition API. 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 partition API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
Use a predicate to partition true and false entries. Reference --------- Python itertools documentation.
"Use a predicate to partition true and false entries.\n\n Reference\n ---------\n Python itertools documentation."
89
false
portfoliome/foil
partition
29,540
LDU_FT/blockchain-certificates/cert-issuer/prepare_batch
LDU_FT
[ "<BEGIN>\n## `check_internet_off`", "If internet off and USB plugged in, returns true. Else, continues to wait...\n<END>", "<BEGIN>\n## `check_internet_on`", "If internet on and USB unplugged, returns true. Else, continues to wait...\n<END>", "<BEGIN>\n## `issue`", "Issue the certificates on the blockchai...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the prepare_batch API. 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 prepare_batch API. 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...
Propagates exception on failure :return: byte array to put on the blockchain
"Propagates exception on failure\n :return: byte array to put on the blockchain"
62
false
blockchain-certificates/cert-issuer
prepare_batch
29,541
LDU_FT/NeuralEnsemble/lazyarray/partial_shape
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 partial_shape API. 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 partial_shape API. 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...
Calculate the size of the sub-array represented by `addr`
"Calculate the size of the sub-array represented by `addr`"
15
false
NeuralEnsemble/lazyarray
partial_shape
29,542
LDU_FT/aio-libs/aiohttp-devtools/runserver
LDU_FT
[ "<BEGIN>\n## `modify_main_app`", "Modify the app we're serving to make development easier, eg.\n * modify responses to add the livereload snippet\n * set ``static_root_url`` on the app\n * setup the debug toolbar\n<END>", "<BEGIN>\n## `src_reload`", "prompt each connected browser to reload by sending...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the runserver API. 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 runserver API. 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...
Prepare app ready to run development server. :param config_kwargs: see config.Config for more details :return: tuple (auxiliary app, auxiliary app port, event loop)
"Prepare app ready to run development server.\n\n :param config_kwargs: see config.Config for more details\n :return: tuple (auxiliary app, auxiliary app port, event loop)"
32
false
aio-libs/aiohttp-devtools
runserver
29,543
LDU_FT/pydsigner/pygu/unbind
LDU_FT
[ "<BEGIN>\n## `draw`", "Draw all widgets and sub-containers to @surf.\n<END>", "<BEGIN>\n## `kill`", "Remove the class from its container, contained items and sub-widgets. \n Runs automatically when the class is garbage collected.\n<END>", "<BEGIN>\n## `add`", "Place @widgets under the blitting hand...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the unbind API. Each 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 unbind API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Remove @func from the execution list for events with `.type` of @etype or meta-events with `.utype` of @etype. If @func is not in said list, a ValueError will be raised.
"Remove @func from the execution list for events with `.type` of @etype \n or meta-events with `.utype` of @etype. If @func is not in said list, \n a ValueError will be raised."
68
false
pydsigner/pygu
unbind
29,544
LDU_FT/klen/makesite/logout
LDU_FT
[ "<BEGIN>\n## `migrate`", "Migration utils [create, run, undo, redo].\n<END>", "<BEGIN>\n## `update`", "Atomically update instance, setting field/value pairs from kwargs\n<END>", "<BEGIN>\n## `ls`", "List sites\n ----------", " Show list of installed sites.", " ::", " usage: makesite ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the logout API. Each 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 logout API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
View function which handles a logout request.
"View function which handles a logout request."
54
false
klen/makesite
logout
29,545
LDU_FT/sixty-north/added-value/cells
LDU_FT
[ "<BEGIN>\n## `make_repr_node`", "Render a Python object to text using the repr() function.", " :param rawtext: Text being replaced with link node.\n :param app: Sphinx application context\n :param prefixed_name: The dotted Python name for obj.\n :param obj: The Python object to be rendered to text.\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the cells API. Each 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 cells API. Each 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...
A dictionary of dictionaries containing all cells.
"A dictionary of dictionaries containing all cells."
66
false
sixty-north/added-value
cells
29,546
LDU_FT/DarkEnergySurvey/ugali/observableFractionCDF
LDU_FT
[ "<BEGIN>\n## `integrate`", "Calculate the 2D integral of the 1D surface brightness profile \n (i.e, the flux) between rmin and rmax (elliptical radii). ", " Parameters:\n -----------\n rmin : minimum integration radius (deg)\n rmax : maximum integration radius (deg)", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the observableFractionCDF 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 observableFractionCDF API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Compute observable fraction of stars with masses greater than mass_min in each pixel in the interior region of the mask. Incorporates simplistic photometric errors. ADW: Careful, this function is fragile! The selection here should be the same as mask.restrictCatalogToObservable sp...
"Compute observable fraction of stars with masses greater than mass_min in each \n pixel in the interior region of the mask. Incorporates simplistic\n photometric errors.\n\n ADW: Careful, this function is fragile! The selection here should\n be the same as mask.restrictCatalogToObserva...
614
false
DarkEnergySurvey/ugali
observableFractionCDF
29,547
LDU_FT/juju/theblues/login
LDU_FT
[ "<BEGIN>\n## `list_models`", "Get the logged in user's models from the JIMM controller.", " @param macaroons The discharged JIMM macaroons.\n @return The json decoded list of environments.\n<END>", "<BEGIN>\n## `make_request`", "Make a request with the provided data.", " @param url The ur...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the login API. Each 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 login API. Each 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...
Send user identity information to the identity manager. Raise a ServerError if an error occurs in the request process. @param username The logged in user. @param json_document The JSON payload for login.
"Send user identity information to the identity manager.\n\n Raise a ServerError if an error occurs in the request process.\n\n @param username The logged in user.\n @param json_document The JSON payload for login."
141
false
juju/theblues
login
29,548
LDU_FT/rpcope1/PythonConfluenceAPI/update_attachment_metadata
LDU_FT
[ "<BEGIN>\n## `request_patch`", "Maintains the existing api for Session.request.\n Used by all of the higher level methods, e.g. Session.get.\n The background_callback param allows you to do some processing on the\n response in the background, e.g. call resp.json() so that json parsing\n happens in the...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update_attachment_metadata 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 update_attachment_metadata API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclus...
Update the non-binary data of an Attachment. This resource can be used to update an attachment's filename, media-type, comment, and parent container. :param content_id (string): A string containing the ID of the attachments content container. :param attachment_id (string): The ID of the attachm...
"Update the non-binary data of an Attachment.\n\n This resource can be used to update an attachment's filename, media-type, comment, and parent container.\n :param content_id (string): A string containing the ID of the attachments content container.\n :param attachment_id (string): The ID of the at...
140
false
rpcope1/PythonConfluenceAPI
update_attachment_metadata
29,549
LDU_FT/clach04/python-tuya/set_white
LDU_FT
[ "<BEGIN>\n## `_send_receive`", "Send single buffer `payload` and receive a single buffer.", " Args:\n payload(bytes): Data to send.\n<END>", "<BEGIN>\n## `generate_payload`", "Generate the payload to send.", " Args:\n command(str): The type of command.\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_white API. 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_white API. 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...
Set white coloured theme of an rgb bulb. Args: brightness(int): Value for the brightness (25-255). colourtemp(int): Value for the colour temperature (0-255).
"Set white coloured theme of an rgb bulb.\n\n Args:\n brightness(int): Value for the brightness (25-255).\n colourtemp(int): Value for the colour temperature (0-255)."
35
false
clach04/python-tuya
set_white
29,550
LDU_FT/codelv/enaml-native/call_at
LDU_FT
[ "<BEGIN>\n## `init_layout`", "Initialize the layout of the toolkit widget.", " This method is called during the bottom-up pass. This method\n should initialize the layout of the widget. The child widgets\n will be fully initialized and layed out when this is called.\n<END>", "<BEGIN>\n## ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the call_at API. Each 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 call_at API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
Runs the ``callback`` at the absolute time designated by ``when``. ``when`` must be a number using the same reference point as `IOLoop.time`. Returns an opaque handle that may be passed to `remove_timeout` to cancel. Note that unlike the `asyncio` method of the same name, the ...
"Runs the ``callback`` at the absolute time designated by ``when``.\n\n ``when`` must be a number using the same reference point as\n `IOLoop.time`.\n\n Returns an opaque handle that may be passed to `remove_timeout`\n to cancel. Note that unlike the `asyncio` method of the same\n na...
573
false
codelv/enaml-native
call_at
29,551
LDU_FT/btimby/fulltext/get
LDU_FT
[ "<BEGIN>\n## `check_backends`", "Invoke test() for all backends and fail (raise) if some dep\n is missing.\n<END>", "<BEGIN>\n## `main`", "Extract text from a file.", " Commands:\n extract - extract text from path\n check - make sure all deps are installed", " Usage:\n full...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
Get document full text. Accepts a path or file-like object. * If given, `default` is returned instead of an error. * `backend` is either a module object or a string specifying which default backend to use (e.g. "doc"); take a look at backends directory to see a list of default backends. ...
"Get document full text.\n\n Accepts a path or file-like object.\n * If given, `default` is returned instead of an error.\n * `backend` is either a module object or a string specifying which\n default backend to use (e.g. \"doc\"); take a look at backends\n directory to see a list of default back...
38
false
btimby/fulltext
get
29,552
LDU_FT/tallforasmurf/byteplay/from_code
LDU_FT
[ "<BEGIN>\n## `object_attributes`", "Return a sorted list of names defined by thing that are not also names in\n a standard object, except include __doc__.\n<END>", "<BEGIN>\n## `print_object_attributes`", "Print the attribute names in thing vertically\n<END>", "<BEGIN>\n## `print_attr_values`", "Print ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the from_code API. 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 from_code API. 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...
Disassemble a Python code object and make a Code object from the bits. This is the expected way to make a Code instance. But you are welcome to call Code() directly if you wish.
"Disassemble a Python code object and make a Code object from the bits.\n This is the expected way to make a Code instance. But you are welcome\n to call Code() directly if you wish."
35
false
tallforasmurf/byteplay
from_code
29,553
LDU_FT/kvesteri/intervals/is_connected
LDU_FT
[ "<BEGIN>\n## `py2round`", "Round values as in Python 2, for Python 3 compatibility.", " All x.5 values are rounded away from zero.", " In Python 3, this has changed to avoid bias: when x is even,\n rounding is towards zero, when x is odd, rounding is away\n from zero. Thus, in Python 3, round(2.5)...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_connected API. 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 is_connected API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
Returns ``True`` if there exists a (possibly empty) range which is enclosed by both this range and other. Examples: * [1, 3] and [5, 7] are not connected * [5, 7] and [1, 3] are not connected * [2, 4) and [3, 5) are connected, because both enclose [3, 4) * [1, 3) and [3...
"Returns ``True`` if there exists a (possibly empty) range which is\n enclosed by both this range and other.\n\n Examples:\n\n * [1, 3] and [5, 7] are not connected\n * [5, 7] and [1, 3] are not connected\n * [2, 4) and [3, 5) are connected, because both enclose [3, 4)\n * [1, ...
19
false
kvesteri/intervals
is_connected
29,554
LDU_FT/rackerlabs/python-lunrclient/backup
LDU_FT
[ "<BEGIN>\n## `get_args`", "Get the arguments of a method and return it as a dictionary with the\n supplied defaults, method arguments with no default are assigned None\n<END>", "<BEGIN>\n## `get_volume`", "return volume information if the argument is an id or a path\n<END>", "<BEGIN>\n## `randomize`"...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the backup API. Each 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 backup API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
This runs a backup job outside of the storage api, which is useful for performance testing backups
"This runs a backup job outside of the storage api,\n which is useful for performance testing backups"
21
false
rackerlabs/python-lunrclient
backup
29,555
LDU_FT/ecmwf/cfgrib/codes_get_string
LDU_FT
[ "<BEGIN>\n## `from_grib_date_time`", "Return the number of seconds since the ``epoch`` from the values of the ``message`` keys,\n using datetime.total_seconds().", " :param message: the target GRIB message\n :param date_key: the date key, defaults to \"dataDate\"\n :param time_key: the time key, def...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the codes_get_string API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the codes_get_string API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Get string element from a key. It may or may not fail in case there are more than one key in a message. Outputs the last element. :param bytes key: the keyword to select the value of :param bool strict: flag to select if the method should fail in case of more than one key in single message ...
"Get string element from a key.\n It may or may not fail in case there are more than one key in a message.\n Outputs the last element.\n\n :param bytes key: the keyword to select the value of\n :param bool strict: flag to select if the method should fail in case of\n more than one key in single messa...
50
false
ecmwf/cfgrib
codes_get_string
29,556
LDU_FT/mozilla/python_moztelemetry/from_files
LDU_FT
[ "<BEGIN>\n## `add_expiration_postfix`", "Formats the expiration version and adds a version postfix if needed.", " :param expiration: the expiration version string.\n :return: the modified expiration string.\n<END>", "<BEGIN>\n## `load_yaml_file`", "Load a YAML file from disk, throw a ParserError on fa...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the from_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 from_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 an iterator that provides a sequence of Histograms for the histograms defined in filenames.
"Return an iterator that provides a sequence of Histograms for\nthe histograms defined in filenames."
122
false
mozilla/python_moztelemetry
from_files
29,557
LDU_FT/log2timeline/plaso/_AtNonLeaf
LDU_FT
[ "<BEGIN>\n## `_GetStatus`", "Retrieves status information.", " Returns:\n dict[str, object]: status attributes, indexed by name.\n<END>", "<BEGIN>\n## `_ProcessEvent`", "Processes an event.", " Args:\n mediator (AnalysisMediator): mediates interactions between\n analysis plugins a...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _AtNonLeaf API. 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 _AtNonLeaf API. 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...
Called when at a non-leaf value. Should recurse and yield values.
"Called when at a non-leaf value. Should recurse and yield values."
5,157
true
log2timeline/plaso
_AtNonLeaf
29,558
LDU_FT/timofurrer/observable/once
LDU_FT
[ "<BEGIN>\n## `_preserve_settings`", "Decorator that ensures ObservableProperty-specific attributes\n are kept when using methods to change deleter, getter or setter.\n<END>", "<BEGIN>\n## `_trigger_event`", "Triggers an event on the associated Observable object.\n The Holder is the object this prope...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the once API. Each 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 once API. Each 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...
Registers one or more handlers to a specified event, but removes them when the event is first triggered. This method may as well be used as a decorator for the handler.
"Registers one or more handlers to a specified event, but\n removes them when the event is first triggered.\n This method may as well be used as a decorator for the handler."
20
false
timofurrer/observable
once
29,559
LDU_FT/davebridges/mousedb/dispatch
LDU_FT
[ "<BEGIN>\n## `age`", "Calculates the animals age, relative to the current date (if alive) or the date of death (if not).\n<END>", "<BEGIN>\n## `breeding_male_location_type`", "This attribute defines whether a male's current location is the same as the breeding cage to which it belongs.", " This attri...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the dispatch API. 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 dispatch API. 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...
This decorator sets this view to have restricted permissions.
"This decorator sets this view to have restricted permissions."
128
false
davebridges/mousedb
dispatch
29,560
LDU_FT/tBaxter/django-fretboard/get_new_topics_count
LDU_FT
[ "<BEGIN>\n## `update_forum_votes`", "When a Vote is added, re-saves the topic or post to update vote count.\r\n Since Votes can be assigned\r\n to any content type, first makes sure we are dealing with a forum post or topic.\r", " Deprecated 1-6-14 by storing score as cached property\n<END>", "<BEGIN...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_new_topics_count API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_new_topics_count API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Returns count of new topics since last visit, or one day. {% get_new_topics_count as new_topic_count %}
"Returns count of new topics since last visit, or one day.\n {% get_new_topics_count as new_topic_count %}"
29
false
tBaxter/django-fretboard
get_new_topics_count
29,561
LDU_FT/ajenhl/tacl/_extract_work
LDU_FT
[ "<BEGIN>\n## `_format_content`", "Returns `content` with consecutive spaces converted to non-break\n spaces, and linebreak converted into HTML br elements.", " :param content: text to format\n :type content: `str`\n :rtype: `str`\n<END>", "<BEGIN>\n## `_prepare_text`", "Returns `...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _extract_work API. 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 _extract_work API. 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 the name of the work in `filename`. Some works are divided into multiple parts that need to be joined together. :param filename: filename of TEI :type filename: `str` :rtype: `tuple` of `str`
"Returns the name of the work in `filename`.\n\n Some works are divided into multiple parts that need to be\n joined together.\n\n :param filename: filename of TEI\n :type filename: `str`\n :rtype: `tuple` of `str`"
463
false
ajenhl/tacl
_extract_work
29,562
LDU_FT/ecmwf/cfgrib/codes_get_double_array
LDU_FT
[ "<BEGIN>\n## `from_grib_date_time`", "Return the number of seconds since the ``epoch`` from the values of the ``message`` keys,\n using datetime.total_seconds().", " :param message: the target GRIB message\n :param date_key: the date key, defaults to \"dataDate\"\n :param time_key: the time key, def...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the codes_get_double_array API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the codes_get_double_array API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
Get double array values from a key. :param bytes key: the keyword whose value(s) are to be extracted :rtype: T.List(float)
"Get double array values from a key.\n\n :param bytes key: the keyword whose value(s) are to be extracted\n\n :rtype: T.List(float)"
50
false
ecmwf/cfgrib
codes_get_double_array
29,563
LDU_FT/peeringdb/peeringdb-py/load_config
LDU_FT
[ "<BEGIN>\n## `_config_logs`", "Set up or change logging configuration.", " _config_logs() => idempotent setup;\n _config_logs(L) => change log level\n<END>", "<BEGIN>\n## `_get_name`", "get display name for a key, or mangle for display\n<END>", "<BEGIN>\n## `reftag_to_cls`", "decorator that checks...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load_config API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load_config API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
Load config files from the specified directory, using defaults for missing values. Directory should contain a file named config.<ext> where <ext> is a supported config file format.
"Load config files from the specified directory, using defaults for missing values.\n Directory should contain a file named config.<ext> where <ext> is a\n supported config file format."
42
false
peeringdb/peeringdb-py
load_config
29,564
LDU_FT/rbarrois/mpdlcd/parse_line
LDU_FT
[ "<BEGIN>\n## `auto_retry`", "Decorator for retrying method calls, based on instance parameters.\n<END>", "<BEGIN>\n## `extract_pattern`", "Extracts used strings from a %(foo)s pattern.\n<END>", "<BEGIN>\n## `parse`", "Parse the lines, and fill self.line_fields accordingly.\n<END>", "<BEGIN>\n## `compute...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_line API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_line API. 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...
Parse a line of text. A format contains fields, within curly brackets, and free text. Maximum one 'variable width' field is allowed per line. You cannot use the '{' or '}' characters in the various text/... fields. Format: '''{<field_kind>[ <field_option>,<field_option]} te...
"Parse a line of text.\n\n A format contains fields, within curly brackets, and free text.\n Maximum one 'variable width' field is allowed per line.\n You cannot use the '{' or '}' characters in the various text/... fields.\n\n Format:\n '''{<field_kind>[ <field_option>,<field_opt...
65
false
rbarrois/mpdlcd
parse_line
29,565
LDU_FT/scott-griffiths/bitstring/rol
LDU_FT
[ "<BEGIN>\n## `offsetcopy`", "Return a copy of a ByteStore with the newoffset.", " Not part of public interface.\n<END>", "<BEGIN>\n## `equal`", "Return True if ByteStores a == b.", " Not part of public interface.\n<END>", "<BEGIN>\n## `structparser`", "Parse struct-like format string token into ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the rol API. Each 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 rol API. Each 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...
Rotate bits to the left in-place. bits -- The number of bits to rotate by. start -- Start of slice to rotate. Defaults to 0. end -- End of slice to rotate. Defaults to self.len. Raises ValueError if bits < 0.
"Rotate bits to the left in-place.\n\n bits -- The number of bits to rotate by.\n start -- Start of slice to rotate. Defaults to 0.\n end -- End of slice to rotate. Defaults to self.len.\n\n Raises ValueError if bits < 0."
251
false
scott-griffiths/bitstring
rol
29,566
LDU_FT/chinapnr/fishbase/get_checkcode
LDU_FT
[ "<BEGIN>\n## `string`", "获取一个字符串的 MD5 值", " :param:\n * s: (string) 需要进行 hash 的字符串\n * salt: (string) 随机字符串,默认为 None\n :return:\n * result: (string) 32 位小写 MD5 值\n<END>", "<BEGIN>\n## `file`", "获取一个文件的 MD5 值", " :param:\n * filename: (string...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_checkcode API. 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_checkcode API. 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...
计算银行卡校验位; :param: * card_number_str: (string) 要查询的银行卡号 :returns: checkcode: (string) 银行卡的校验位 举例如下:: from fishbase.fish_data import * print('--- fish_data get_checkcode demo ---') # 不能放真的卡信息,有风险 print(CardBin.get_checkco...
"计算银行卡校验位;\n\n :param:\n * card_number_str: (string) 要查询的银行卡号\n :returns:\n checkcode: (string) 银行卡的校验位\n\n 举例如下::\n\n from fishbase.fish_data import *\n\n print('--- fish_data get_checkcode demo ---')\n\n # 不能放真的卡信息,有风险\n print(Card...
448
false
chinapnr/fishbase
get_checkcode
29,567
LDU_FT/GoogleCloudPlatform/datastore-ndb-python/_apply_list
LDU_FT
[ "<BEGIN>\n## `get_event_loop`", "Return a EventLoop instance.", " A new instance is created for each new HTTP request. We determine\n that we're in a new request by inspecting os.environ, which is reset\n at the start of each request. Also, each thread gets its own loop.\n<END>", "<BEGIN>\n## `clear`", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _apply_list API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _apply_list API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
Return a single callable that applies a list of methods to a value. If a method returns None, the last value is kept; if it returns some other value, that replaces the last value. Exceptions are not caught.
"Return a single callable that applies a list of methods to a value.\n\n If a method returns None, the last value is kept; if it returns\n some other value, that replaces the last value. Exceptions are\n not caught."
569
false
GoogleCloudPlatform/datastore-ndb-python
_apply_list
29,568
LDU_FT/rhelmot/nclib/recv_all
LDU_FT
[ "<BEGIN>\n## `launch`", "A static method for launching a process that is connected to a given\n socket. Same rules from the Process constructor apply.\n<END>", "<BEGIN>\n## `respond`", "Send a message back to a peer.", " :param packet: The data to send\n :param peer: The add...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the recv_all API. 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 recv_all API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
Return all data recieved until connection closes. Aliases: read_all, readall, recvall
"Return all data recieved until connection closes.\n\n Aliases: read_all, readall, recvall"
44
false
rhelmot/nclib
recv_all
29,569
LDU_FT/20c/grainy/match
LDU_FT
[ "<BEGIN>\n## `int_flags`", "Converts string permission flags into integer permission flags as\n specified in const.PERM_STRING_MAP\n Arguments:\n - flags <str>: one or more flags\n For example: \"crud\" or \"ru\" or \"r\"\n - mapper <list=const.PERM_STRING_MAP>: a list containing tu...
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...
Check if the value of this namespace is matched by keys '*' is treated as wildcard Arguments: keys -- list of keys Examples: ns = Namespace("a.b.c") ns.match(["a"]) #True ns.match(["a","b"]) #True ns.match(["a","b","c"]) #True ...
"Check if the value of this namespace is matched by\n keys\n\n '*' is treated as wildcard\n\n Arguments:\n\n keys -- list of keys\n\n Examples:\n\n ns = Namespace(\"a.b.c\")\n ns.match([\"a\"]) #True\n ns.match([\"a\",\"b\"]) #True\n ns.matc...
47
false
20c/grainy
match
29,570
LDU_FT/defunkt/pystache/unicode
LDU_FT
[ "<BEGIN>\n## `render`", "Return the given template string rendered using the given context.\n<END>", "<BEGIN>\n## `_get_value`", "Retrieve a key's value from a context item.", " Returns _NOT_FOUND if the key does not exist.", " The ContextStack.get() docstring documents this function's intended beha...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the unicode API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the unicode API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
Convert a byte string to unicode, using string_encoding and decode_errors. Arguments: b: a byte string. encoding: the name of an encoding. Defaults to the string_encoding attribute for this instance. Raises: TypeError: Because this method calls Python's bu...
"Convert a byte string to unicode, using string_encoding and decode_errors.\n\n Arguments:\n\n b: a byte string.\n\n encoding: the name of an encoding. Defaults to the string_encoding\n attribute for this instance.\n\n Raises:\n\n TypeError: Because this method calls...
177
false
defunkt/pystache
unicode
29,571
LDU_FT/TrafficSenseMSD/SumoTools/screenshot
LDU_FT
[ "<BEGIN>\n## `getDistance2D`", "getDistance2D(double, double, double, double, boolean, boolean) -> double", " Returns the distance between the two coordinate pairs (x1,y1) and (x2,y2)", " If isGeo=True, coordinates are interpreted as longitude and latitude rather\n than cartesian coordina...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the screenshot API. 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 screenshot API. 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...
screenshot(string, string) -> None Save a screenshot for the given view to the given filename. The fileformat is guessed from the extension, the available formats differ from platform to platform but should at least include ps, svg and pdf, on linux probably gif, png and jpg as well.
"screenshot(string, string) -> None\n\n Save a screenshot for the given view to the given filename.\n The fileformat is guessed from the extension, the available\n formats differ from platform to platform but should at least\n include ps, svg and pdf, on linux probably gif, png and jpg as we...
475
false
TrafficSenseMSD/SumoTools
screenshot
29,572