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/opengridcc/opengrid/find_best_akaike
LDU_FT
[ "<BEGIN>\n## `add`", "Add the path of a data set to the list of available sets", " NOTE: a data set is assumed to be a pickled\n and gzip compressed Pandas DataFrame", " Parameters\n ----------\n path : str\n<END>", "<BEGIN>\n## `unpack`", "Unpacks a data set to a Pandas...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_best_akaike API. 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 find_best_akaike API. 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 best fit, based on Akaike information criterion
"Return the best fit, based on Akaike information criterion"
84
false
opengridcc/opengrid
find_best_akaike
23,773
LDU_FT/OnroerendErfgoed/crabpy_pyramid/item_adrespositie_adapter
LDU_FT
[ "<BEGIN>\n## `range_return`", "Determine what range of objects to return.", " Will check fot both `Range` and `X-Range` headers in the request and\n set both `Content-Range` and 'X-Content-Range' headers.", " :rtype: list\n<END>", "<BEGIN>\n## `set_http_caching`", "Set an HTTP Cache Control heade...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the item_adrespositie_adapter 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 item_adrespositie_adapter API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi...
Adapter for rendering an item of :class:`crabpy.gateway.Adrespositie` to json.
"Adapter for rendering an item of\n :class:`crabpy.gateway.Adrespositie` to json."
72
false
OnroerendErfgoed/crabpy_pyramid
item_adrespositie_adapter
23,774
LDU_FT/Scoppio/RagnarokEngine3/draw
LDU_FT
[ "<BEGIN>\n## `set_default_pos`", "Set the default starting location of our character.\n<END>", "<BEGIN>\n## `__generate_location`", "Reset the location of the cloud once it has left the viewable area of the screen.\n<END>", "<BEGIN>\n## `load_character`", "Create an instance of the main character and retu...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the draw API. Each 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 draw API. Each 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...
Draw the image to the specified surface.
"Draw the image to the specified surface."
165
false
Scoppio/RagnarokEngine3
draw
23,775
LDU_FT/robotpy/pyfrc/_check_sleep
LDU_FT
[ "<BEGIN>\n## `compute`", "Call this when vision processing should be enabled", " :param now: The value passed to ``update_sim``\n :param x: Returned from physics_controller.get_position\n :param y: Returned from physics_controller.get_position\n :param angle...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _check_sleep API. 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 _check_sleep API. 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...
This ensures that the robot code called Wait() at some point
"This ensures that the robot code called Wait() at some point"
109
false
robotpy/pyfrc
_check_sleep
23,776
LDU_FT/Peter-Slump/python-keycloak-client/logout
LDU_FT
[ "<BEGIN>\n## `session`", "Get session object to benefit from connection pooling.", " http://docs.python-requests.org/en/master/user/advanced/#session-objects", " :rtype: requests.Session\n<END>", "<BEGIN>\n## `open_id_connect`", "Get OpenID Connect client", " :param str client_id:\n...
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 ...
The logout endpoint logs out the authenticated user. :param str refresh_token:
"The logout endpoint logs out the authenticated user.\n\n :param str refresh_token:"
118
false
Peter-Slump/python-keycloak-client
logout
23,777
LDU_FT/OCA/vertical-hotel/create
LDU_FT
[ "<BEGIN>\n## `_offset_format_timestamp1`", "Convert a source timeStamp string into a destination timeStamp string,\n attempting to apply the correct offset if both the server and local\n timeZone are recognized,or no offset at all if they aren't or if\n tz_offset is false (i.e. assuming they are both in ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Overrides orm create method. @param self: The object pointer @param vals: dictionary of fields value.
"Overrides orm create method.\n @param self: The object pointer\n @param vals: dictionary of fields value."
71
false
OCA/vertical-hotel
create
23,778
LDU_FT/ly0/baidupcsapi/__err_handler
LDU_FT
[ "<BEGIN>\n## `__err_handler`", "百度网盘下载错误控制\n :param act: 出错时的行为, 有 download\n :param errno: 出错时的errno,这个要配合act才有实际意义\n :param callback: 返回时的调用函数, 为空时返回None\n :param args: 给callback函数的参数tuple\n :param kwargs: 给callback函数的带名参数字典", " 在本函数调用后一定可以解决提交过来的问题, 在外部不需要重复检查是否存在原问题...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the __err_handler API. 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 __err_handler API. 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 act: 出错时的行为, 有 download :param errno: 出错时的errno,这个要配合act才有实际意义 :param callback: 返回时的调用函数, 为空时返回None :param args: 给callback函数的参数tuple :param kwargs: 给callback函数的带名参数字典 在本函数调用后一定可以解决提交过来的问题, 在外部不需要重复检查是否存在原问题
"百度网盘下载错误控制\n :param act: 出错时的行为, 有 download\n :param errno: 出错时的errno,这个要配合act才有实际意义\n :param callback: 返回时的调用函数, 为空时返回None\n :param args: 给callback函数的参数tuple\n :param kwargs: 给callback函数的带名参数字典\n\n 在本函数调用后一定可以解决提交过来的问题, 在外部不需要重复检查是否存在原问题"
222
false
ly0/baidupcsapi
__err_handler
23,779
LDU_FT/vsergeev/python-periphery/flush
LDU_FT
[ "<BEGIN>\n## `read`", "Read the brightness of the LED.", " Returns:\n int: Current brightness.", " Raises:\n LEDError: if an I/O or OS error occurs.\n<END>", "<BEGIN>\n## `write`", "Set the brightness of the LED to `brightness`.", " `brightness` can be a boolea...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the flush API. Each 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 flush API. Each 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...
Flush the write buffer of the serial port, blocking until all bytes are written. Raises: SerialError: if an I/O or OS error occurs.
"Flush the write buffer of the serial port, blocking until all bytes\n are written.\n\n Raises:\n SerialError: if an I/O or OS error occurs."
86
false
vsergeev/python-periphery
flush
23,780
LDU_FT/onecodex/onecodex/plot_pca
LDU_FT
[ "<BEGIN>\n## `plot_heatmap`", "Plot heatmap of taxa abundance/count data for several samples.", " Parameters\n ----------\n rank : {'auto', 'kingdom', 'phylum', 'class', 'order', 'family', 'genus', 'species'}, optional\n Analysis will be restricted to abundances of taxa at the sp...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the plot_pca API. 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 plot_pca API. 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...
Perform principal component analysis and plot first two axes. Parameters ---------- rank : {'auto', 'kingdom', 'phylum', 'class', 'order', 'family', 'genus', 'species'}, optional Analysis will be restricted to abundances of taxa at the specified level. normalize : 'auto' or ...
"Perform principal component analysis and plot first two axes.\n\n Parameters\n ----------\n rank : {'auto', 'kingdom', 'phylum', 'class', 'order', 'family', 'genus', 'species'}, optional\n Analysis will be restricted to abundances of taxa at the specified level.\n normalize : 'au...
304
false
onecodex/onecodex
plot_pca
23,781
LDU_FT/twilio/twilio-python/get_instance
LDU_FT
[ "<BEGIN>\n## `stream`", "Streams KeyInstance records from the API as a generator stream.\n This operation lazily loads records as efficiently as possible until the limit\n is reached.\n The results are returned as a generator, so this operation is memory efficient.", " :param int lim...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_instance API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_instance API. 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...
Build an instance of EntityInstance :param dict payload: Payload response from the API :returns: twilio.rest.authy.v1.service.entity.EntityInstance :rtype: twilio.rest.authy.v1.service.entity.EntityInstance
"Build an instance of EntityInstance\n\n :param dict payload: Payload response from the API\n\n :returns: twilio.rest.authy.v1.service.entity.EntityInstance\n :rtype: twilio.rest.authy.v1.service.entity.EntityInstance"
4,304
true
twilio/twilio-python
get_instance
23,782
LDU_FT/ynop/audiomate/_create_buffers
LDU_FT
[ "<BEGIN>\n## `load`", "Load and return the corpus from the given path.", " Args:\n path (str): Path to the data set to load.", " Returns:\n Corpus: The loaded corpus", " Raises:\n IOError: When the data set is invalid, for example because required files ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _create_buffers API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _create_buffers API. 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...
Create a buffer for every step in the pipeline.
"Create a buffer for every step in the pipeline."
619
false
ynop/audiomate
_create_buffers
23,783
LDU_FT/django-notifications/django-notifications/mark_all_as_unread
LDU_FT
[ "<BEGIN>\n## `notify_handler`", "Handler function to create Notification instance upon action signal call.\n<END>", "<BEGIN>\n## `unread`", "Return only unread items in the current queryset\n<END>", "<BEGIN>\n## `read`", "Return only read items in the current queryset\n<END>", "<BEGIN>\n## `mark_all_as_...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the mark_all_as_unread 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 mark_all_as_unread 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...
Mark as unread any read messages in the current queryset. Optionally, filter these by recipient first.
"Mark as unread any read messages in the current queryset.\n\n Optionally, filter these by recipient first."
20
false
django-notifications/django-notifications
mark_all_as_unread
23,784
LDU_FT/zkbt/the-friendly-stars/query
LDU_FT
[ "<BEGIN>\n## `from_coordinates`", "Iniitalize a constellation object.", " Parameters\n ----------", " ra, dec, distance, pm_ra_cosdec, pm_dec, radial_velocity\n These must be able to initialize a SkyCoord.\n id : list, array\n Identifications for the entries.\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the query API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the query API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
Send an ADQL query to the Gaia archive, wait for a response, and hang on to the results.
"Send an ADQL query to the Gaia archive,\n wait for a response,\n and hang on to the results."
52
false
zkbt/the-friendly-stars
query
23,785
LDU_FT/Anaconda-Platform/anaconda-client/norm_package_version
LDU_FT
[ "<BEGIN>\n## `norm_package_version`", "Normalize a version by removing extra spaces and parentheses.\n<END>", "<BEGIN>\n## `split_spec`", "Split a spec by separator and return stripped start and end parts.\n<END>", "<BEGIN>\n## `parse_specification`", "Parse a requirement from a python distribution metada...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the norm_package_version 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 norm_package_version API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Normalize a version by removing extra spaces and parentheses.
"Normalize a version by removing extra spaces and parentheses."
111
false
Anaconda-Platform/anaconda-client
norm_package_version
23,786
LDU_FT/proversity-org/bibblio-api-python/delete_content_item
LDU_FT
[ "<BEGIN>\n## `create_content_item`", "Name: create_content_item\n\tParameters: access_token, payload (dict)\n\tReturn: dictionary\n<END>", "<BEGIN>\n## `get_content_items`", "Name: get_content_items\n\tParameters: access_token, limit (optional), page (optional)\n\tReturn: dictionary\n<END>", "<BEGIN>\n## `g...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the delete_content_item API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the delete_content_item API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
Name: delete_content_item Parameters: access_token, content_item_id Return: dictionary
"Name: delete_content_item\n\tParameters: access_token, content_item_id\n\tReturn: dictionary"
18
false
proversity-org/bibblio-api-python
delete_content_item
23,787
LDU_FT/mbr/flask-kvsession/destroy
LDU_FT
[ "<BEGIN>\n## `has_expired`", "Report if the session key has expired.", " :param lifetime: A :class:`datetime.timedelta` that specifies the\n maximum age this :class:`SessionID` should be checked\n against.\n :param now: If specified, use this :class:...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the destroy API. Each 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 destroy API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
Destroys a session completely, by deleting all keys and removing it from the internal store immediately. This allows removing a session for security reasons, e.g. a login stored in a session will cease to exist if the session is destroyed.
"Destroys a session completely, by deleting all keys and removing it\n from the internal store immediately.\n\n This allows removing a session for security reasons, e.g. a login\n stored in a session will cease to exist if the session is destroyed."
22
false
mbr/flask-kvsession
destroy
23,788
LDU_FT/raiden-network/raiden/blockhash_from_blocknumber
LDU_FT
[ "<BEGIN>\n## `events_for_onchain_secretreveal`", "Emits the event for revealing the secret on-chain if the transfer\n can not be settled off-chain.\n<END>", "<BEGIN>\n## `handle_inittarget`", "Handles an ActionInitTarget state change.\n<END>", "<BEGIN>\n## `handle_offchain_secretreveal`", "Validates an...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the blockhash_from_blocknumber 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 blockhash_from_blocknumber API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclus...
Given a block number, query the chain to get its corresponding block hash
"Given a block number, query the chain to get its corresponding block hash"
1,120
true
raiden-network/raiden
blockhash_from_blocknumber
23,789
LDU_FT/merll/docker-map/get_volumes_from
LDU_FT
[ "<BEGIN>\n## `get_state_actions`", "For attached volumes, missing containers are created and initial containers are started and prepared with\n permissions. Outdated containers or containers with errors are recreated. The latter also applies to instance\n containers. Similarly, instance containers a...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_volumes_from API. 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_volumes_from API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Generates volume paths for the host config ``volumes_from`` argument during container creation. :param container_map: Container map. :type container_map: dockermap.map.config.main.ContainerMap :param config_name: Container configuration name. :type config_name: unicode | str :param config: Containe...
"Generates volume paths for the host config ``volumes_from`` argument during container creation.\n\n :param container_map: Container map.\n :type container_map: dockermap.map.config.main.ContainerMap\n :param config_name: Container configuration name.\n :type config_name: unicode | str\n :param config: C...
584
false
merll/docker-map
get_volumes_from
23,790
LDU_FT/rshk/python-libxdo/send_keysequence_window_up
LDU_FT
[ "<BEGIN>\n## `_errcheck`", "Error checker for functions returning an integer indicating\n success (0) / failure (1).", " Raises a XdoException in case of error, otherwise just\n returns ``None`` (returning the original code, 0, would be\n useless anyways..)\n<END>", "<BEGIN>\n## `move_mouse`", "...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the send_keysequence_window_up 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 send_keysequence_window_up API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclus...
Send key release (up) events for the given key sequence
"Send key release (up) events for the given key sequence"
125
false
rshk/python-libxdo
send_keysequence_window_up
23,791
LDU_FT/pudo/jsongraph/store
LDU_FT
[ "<BEGIN>\n## `base_uri`", "Resolution base for JSON schema. Also used as the default\n graph ID for RDF.\n<END>", "<BEGIN>\n## `resolver`", "Resolver for JSON Schema references. This can be based around a\n file or HTTP-based resolution base URI.\n<END>", "<BEGIN>\n## `store`", "Backend stor...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the store API. Each 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 store API. Each 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...
Backend storage for RDF data. Either an in-memory store, or an external triple store controlled via SPARQL.
"Backend storage for RDF data. Either an in-memory store, or an\n external triple store controlled via SPARQL."
52
false
pudo/jsongraph
store
23,792
LDU_FT/klavinslab/coral/read_dna
LDU_FT
[ "<BEGIN>\n## `sequence_type`", "Validates a coral.sequence data type.", " :param sequence_in: input DNA sequence.\n :type sequence_in: any\n :returns: The material - 'dna', 'rna', or 'peptide'.\n :rtype: str\n :raises: ValueError\n<END>", "<BEGIN>\n## `pcr`", "Simulate a PCR.", " :param ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the read_dna API. 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 read_dna API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
Read DNA from file. Uses BioPython and coerces to coral format. :param path: Full path to input file. :type path: str :returns: DNA sequence. :rtype: coral.DNA
"Read DNA from file. Uses BioPython and coerces to coral format.\n\n :param path: Full path to input file.\n :type path: str\n :returns: DNA sequence.\n :rtype: coral.DNA"
364
false
klavinslab/coral
read_dna
23,793
LDU_FT/SCIP-Interfaces/PySCIPOpt/scheduling_disjunctive
LDU_FT
[ "<BEGIN>\n## `gpp`", "gpp -- model for the graph partitioning problem\n Parameters:\n - V: set/list of nodes in the graph\n - E: set/list of edges in the graph\n Returns a model, ready to be solved.\n<END>", "<BEGIN>\n## `gpp_soco`", "gpp -- model for the graph partitioning problem in soco...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the scheduling_disjunctive 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 scheduling_disjunctive API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
scheduling_disjunctive: model for the one machine total weighted completion time problem Disjunctive optimization model for the one machine total weighted completion time problem with release times. Parameters: - J: set of jobs - p[j]: processing time of job j - r[j]: earliest star...
"scheduling_disjunctive: model for the one machine total weighted completion time problem\n\n Disjunctive optimization model for the one machine total weighted\n completion time problem with release times.\n\n Parameters:\n - J: set of jobs\n - p[j]: processing time of job j\n - r[j]: earl...
220
false
SCIP-Interfaces/PySCIPOpt
scheduling_disjunctive
23,794
LDU_FT/nylas/nylas-python/webhook
LDU_FT
[ "<BEGIN>\n## `pass_creds_to_nylas`", "This view loads the credentials from Google and passes them to Nylas,\n to set up native authentication.\n<END>", "<BEGIN>\n## `ngrok_url`", "If ngrok is running, it exposes an API on port 4040. We can use that\n to figure out what URL it has assigned, and suggest t...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the webhook API. Each 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 webhook API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
When the Flask server gets a request at the `/webhook` URL, it will run this function. Most of the time, that request will be a genuine webhook notification from Nylas. However, it's possible that the request could be a fake notification from someone else, trying to fool our app. This function needs to ...
"When the Flask server gets a request at the `/webhook` URL, it will run\n this function. Most of the time, that request will be a genuine webhook\n notification from Nylas. However, it's possible that the request could\n be a fake notification from someone else, trying to fool our app. This\n function need...
19
false
nylas/nylas-python
webhook
23,795
LDU_FT/deschler/django-modeltranslation/order_by
LDU_FT
[ "<BEGIN>\n## `autodiscover`", "Auto-discover INSTALLED_APPS translation.py modules and fail silently when\n not present. This forces an import on them to register.\n Also import explicit modules.\n<END>", "<BEGIN>\n## `register`", "Registers the given model(s) with the given translation options.", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the order_by API. 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 order_by API. 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...
Change translatable field names in an ``order_by`` argument to translation fields for the current language.
"Change translatable field names in an ``order_by`` argument\n to translation fields for the current language."
122
false
deschler/django-modeltranslation
order_by
23,796
LDU_FT/ncclient/ncclient/request
LDU_FT
[ "<BEGIN>\n## `request`", "Retrieve running configuration and device state information.", " *filter* specifies the portion of the configuration to retrieve (by default entire configuration is retrieved)", " :seealso: :ref:`filter_params`\n<END>", "<BEGIN>\n## `request`", "command text\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the request API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the request API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
Cancel an ongoing confirmed commit. Depends on the `:candidate` and `:confirmed-commit` capabilities. *persist-id* value must be equal to the value given in the <persist> parameter to the previous <commit> operation.
"Cancel an ongoing confirmed commit. Depends on the `:candidate` and `:confirmed-commit` capabilities.\n\n *persist-id* value must be equal to the value given in the <persist> parameter to the previous <commit> operation."
179
false
ncclient/ncclient
request
23,797
LDU_FT/kstaniek/condoor/rollback
LDU_FT
[ "<BEGIN>\n## `_prepare_patterns`", "Return two dictionaries: compiled and text prompts.\n<END>", "<BEGIN>\n## `_platform_patterns`", "Return all the patterns for specific platform.\n<END>", "<BEGIN>\n## `pattern`", "Return the pattern defined by the key string specific to the platform.", " :param...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the rollback API. 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 rollback API. 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...
Rollback the configuration. This method rolls back the configuration on the device. Args: label (text): The configuration label ID plane: (text): sdr or admin Returns: A string with commit label or None
"Rollback the configuration.\n\n This method rolls back the configuration on the device.\n\n Args:\n label (text): The configuration label ID\n plane: (text): sdr or admin\n\n Returns:\n A string with commit label or None"
229
false
kstaniek/condoor
rollback
23,798
LDU_FT/QualiSystems/vCenterShell/connect_by_mapping
LDU_FT
[ "<BEGIN>\n## `get_inventory`", "Will locate vm in vcenter and fill its uuid\n :type context: cloudshell.shell.core.context.ResourceCommandContext\n<END>", "<BEGIN>\n## `get_snapshots`", "Restores a virtual machine to a snapshot\n :param vim.ServiceInstance si: py_vmomi service instance\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the connect_by_mapping 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 connect_by_mapping 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...
gets the mapping to the vnics and connects it to the vm :param default_network: :param si: ServiceInstance :param vm: vim.VirtualMachine :param mapping: [VmNetworkMapping] :param reserved_networks: :param logger: :param promiscuous_mode <str> 'True' or 'False' tur...
"gets the mapping to the vnics and connects it to the vm\n :param default_network:\n :param si: ServiceInstance\n :param vm: vim.VirtualMachine\n :param mapping: [VmNetworkMapping]\n :param reserved_networks:\n :param logger:\n :param promiscuous_mode <str> 'True' or 'Fa...
231
false
QualiSystems/vCenterShell
connect_by_mapping
23,799
LDU_FT/clld/clldutils/slug
LDU_FT
[ "<BEGIN>\n## `parse`", "Convert iso formatted timestamps found as values in the dict d to datetime objects.", " :return: A shallow copy of d with converted timestamps.\n<END>", "<BEGIN>\n## `dump`", "Python 2 + 3 compatible version of json.dump.", " :param obj: The object to be dumped.\n :param p...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the slug API. Each 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 slug API. Each 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...
Condensed version of s, containing only lowercase alphanumeric characters.
"Condensed version of s, containing only lowercase alphanumeric characters."
70
false
clld/clldutils
slug
23,800
LDU_FT/Anaconda-Platform/anaconda-client/list_channels
LDU_FT
[ "<BEGIN>\n## `norm_package_version`", "Normalize a version by removing extra spaces and parentheses.\n<END>", "<BEGIN>\n## `split_spec`", "Split a spec by separator and return stripped start and end parts.\n<END>", "<BEGIN>\n## `parse_specification`", "Parse a requirement from a python distribution metada...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the list_channels API. 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 list_channels API. 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...
List the channels for owner If owner is none, the currently logged in user is used
"List the channels for owner\n If owner is none, the currently logged in user is used"
111
false
Anaconda-Platform/anaconda-client
list_channels
23,801
LDU_FT/martinpitt/python-dbusmock/Get
LDU_FT
[ "<BEGIN>\n## `AddAdapter`", "Convenience method to add a Bluetooth adapter", " You have to specify a device name which must be a valid part of an object\n path, e. g. \"hci0\", and an arbitrary system name (pretty hostname).", " Returns the new object path.\n<END>", "<BEGIN>\n## `AddDevice`", "Co...
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...
Standard D-Bus API for getting a property value
"Standard D-Bus API for getting a property value"
188
false
martinpitt/python-dbusmock
Get
23,802
LDU_FT/adamziel/python_translate/rethrow
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 rethrow API. Each 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 rethrow API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
Raises an exception with custom type and modified error message. Raised exception is based on current exc_info() and carries it's traceback @type msg: str @param msg: New error message @type _type: type @param _type: Reraised exception type @raises: Exception
"Raises an exception with custom type and modified error message.\n Raised exception is based on current exc_info() and carries it's traceback\n\n @type msg: str\n @param msg: New error message\n\n @type _type: type\n @param _type: Reraised exception type\n\n @raises: Exception...
136
false
adamziel/python_translate
rethrow
23,803
LDU_FT/kragniz/python-etcd3/watch_once
LDU_FT
[ "<BEGIN>\n## `new_event`", "Wrap a raw gRPC event in a friendlier containing class.", " This picks the appropriate class from one of PutEvent or DeleteEvent and\n returns a new instance.\n<END>", "<BEGIN>\n## `acquire`", "Acquire the lock.", " :params timeout: Maximum time to wait before retu...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the watch_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 extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the watch_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 extrac...
Watch a key and stops after the first event. If the timeout was specified and event didn't arrived method will raise ``WatchTimedOut`` exception. :param key: key to watch :param timeout: (optional) timeout in seconds. :returns: ``Event``
"Watch a key and stops after the first event.\n\n If the timeout was specified and event didn't arrived method\n will raise ``WatchTimedOut`` exception.\n\n :param key: key to watch\n :param timeout: (optional) timeout in seconds.\n :returns: ``Event``"
113
false
kragniz/python-etcd3
watch_once
23,804
LDU_FT/pivotal-energy-solutions/django-datatable-view/get_field_definition
LDU_FT
[ "<BEGIN>\n## `resolve_orm_path`", "Follows the queryset-style query path of ``orm_path`` starting from ``model`` class. If the\n path ends up referring to a bad field name, ``django.db.models.fields.FieldDoesNotExist`` will\n be raised.\n<END>", "<BEGIN>\n## `get_model_at_related_field`", "Looks up ``a...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_field_definition 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_field_definition API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Normalizes a field definition into its component parts, even if some are missing.
"Normalizes a field definition into its component parts, even if some are missing."
128
false
pivotal-energy-solutions/django-datatable-view
get_field_definition
23,805
LDU_FT/sebp/scikit-survival/_update_terminal_region
LDU_FT
[ "<BEGIN>\n## `_fit_and_score`", "Train survival model on given data and return its score on test data\n<END>", "<BEGIN>\n## `fit`", "Fit estimator.", " Parameters\n ----------\n X : array-like, shape = (n_samples, n_features)\n Data matrix", " y : structured array, s...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _update_terminal_region 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 _update_terminal_region API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion...
Least squares does not need to update terminal regions
"Least squares does not need to update terminal regions"
432
false
sebp/scikit-survival
_update_terminal_region
23,806
LDU_FT/mgaitan/waliki/check_perms
LDU_FT
[ "<BEGIN>\n## `clean_meta`", "remove moinmoin metada from the top of the file\n<END>", "<BEGIN>\n## `entry_point`", "include an snippet at the bottom of a block, if it exists", " For example, if the plugin with slug 'attachments' is registered", " waliki/attachments_edit_content.html will be incl...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the check_perms API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the check_perms API. 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...
a helper user to check if a user has the permissions for a given slug
"a helper user to check if a user has the permissions\n for a given slug"
38
false
mgaitan/waliki
check_perms
23,807
LDU_FT/edx/completion/can_mark_block_complete_on_view
LDU_FT
[ "<BEGIN>\n## `has_permission`", "Returns true if the current request is by the user themselves.", " Note: a 404 is returned for non-staff instead of a 403. This is to prevent\n users from being able to detect the existence of accounts.\n<END>", "<BEGIN>\n## `db_type`", "The type of the field t...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the can_mark_block_complete_on_view API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its co...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the can_mark_block_complete_on_view API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its co...
Returns True if the xblock can be marked complete on view. This is true of any non-customized, non-scorable, completable block.
"Returns True if the xblock can be marked complete on view.\n This is true of any non-customized, non-scorable, completable block."
76
false
edx/completion
can_mark_block_complete_on_view
23,808
LDU_FT/CartoDB/carto-python/copyto
LDU_FT
[ "<BEGIN>\n## `run`", "Actually creates the import job on the CARTO server", " :param import_params: To be send to the Import API, see CARTO's docs\n on Import API for an updated list of accepted\n params\n :type import_params: kwargs", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the copyto API. Each 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 copyto API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Gets data from a table into a Response object that can be iterated :param query: The "COPY { table_name [(column_name[, ...])] | (query) } TO STDOUT [WITH(option[,...])]" query to execute :type query: str :return: response object :rtype: Response :ra...
"Gets data from a table into a Response object that can be iterated\n\n :param query: The \"COPY { table_name [(column_name[, ...])] | (query) }\n TO STDOUT [WITH(option[,...])]\" query to execute\n :type query: str\n\n :return: response object\n :rtype: Response\n\...
154
false
CartoDB/carto-python
copyto
23,809
LDU_FT/EpistasisLab/penn-ml-benchmarks/determine_endpoint_type
LDU_FT
[ "<BEGIN>\n## `fetch_data`", "Download a data set from the PMLB, (optionally) store it locally, and return the data set.", " You must be connected to the internet if you are fetching a data set that is not cached locally.", " Parameters\n ----------\n dataset_name: str\n The name of the data...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the determine_endpoint_type API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the determine_endpoint_type API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion...
Determines the type of an endpoint :param features: pandas.DataFrame A dataset in a panda's data frame :returns string string with a name of a dataset
"Determines the type of an endpoint\n :param features: pandas.DataFrame\n A dataset in a panda's data frame\n :returns string\n string with a name of a dataset"
16
false
EpistasisLab/penn-ml-benchmarks
determine_endpoint_type
23,810
LDU_FT/git-afsantos/bonsai/filter
LDU_FT
[ "<BEGIN>\n## `_build_for_statement`", "NOTE: this is not a complete implementation of for loop parsing.\n Turns out for loops allow a number of wacky things going on,\n such as declaring a variable in place of a condition.\n These more peculiar cases are not covered. See\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the filter API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the filter API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Retrieves all descendants (including self) that are instances of a given class. Args: cls (class): The class to use as a filter. Kwargs: recursive (bool): Whether to descend recursively down the tree.
"Retrieves all descendants (including self) that are instances\n of a given class.\n\n Args:\n cls (class): The class to use as a filter.\n\n Kwargs:\n recursive (bool): Whether to descend recursively down the tree."
111
false
git-afsantos/bonsai
filter
23,811
LDU_FT/atmos-python/atmos/_get_module_methods
LDU_FT
[ "<BEGIN>\n## `assumes`", "Stores a function's assumptions as an attribute.\n<END>", "<BEGIN>\n## `overridden_by_assumptions`", "Stores what assumptions a function is overridden by as an attribute.\n<END>", "<BEGIN>\n## `equation_docstring`", "Creates a decorator that adds a docstring to an equation functi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_module_methods API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_module_methods API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
Returns a methods list corresponding to the equations in the given module. Each entry is a dictionary with keys 'output', 'args', and 'func' corresponding to the output, arguments, and function of the method. The entries may optionally include 'assumptions' and 'overridden_by_assumptions' as keys, stati...
"Returns a methods list corresponding to the equations in the given\n module. Each entry is a dictionary with keys 'output', 'args', and\n 'func' corresponding to the output, arguments, and function of the\n method. The entries may optionally include 'assumptions' and\n 'overridden_by_assumptions' as keys, ...
126
false
atmos-python/atmos
_get_module_methods
23,812
LDU_FT/jgillick/LendingClub/all_filters
LDU_FT
[ "<BEGIN>\n## `set_logger`", "Set a logger to send debug messages to", " Parameters\n ----------\n logger : `Logger <http://docs.python.org/2/library/logging.html>`_\n A python logger used to get debugging output from this module.\n<END>", "<BEGIN>\n## `version`", "Return the ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the all_filters API. 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 all_filters API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
Get a list of all your saved filters Parameters ---------- lc : :py:class:`lendingclub.LendingClub` An instance of the authenticated LendingClub class Returns ------- list A list of lendingclub.filters.SavedFilter objects
"Get a list of all your saved filters\n\n Parameters\n ----------\n lc : :py:class:`lendingclub.LendingClub`\n An instance of the authenticated LendingClub class\n\n Returns\n -------\n list\n A list of lendingclub.filters.SavedFilter objects"
133
false
jgillick/LendingClub
all_filters
23,813
LDU_FT/AtteqCom/zsl/run_task
LDU_FT
[ "<BEGIN>\n## `_nested_transactional`", "In a transactional method create a nested transaction.\n<END>", "<BEGIN>\n## `exec_task`", "Execute task.", " :param task_path: task path\n :type task_path: str|Callable\n :param data: task's data\n :type data: Any\n :return:\n<END>", "<BEGIN>\n## `ap...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the run_task API. 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 run_task API. 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...
Instantiate and run the perform method od given task data. :param task_cls: task class :param task_data: task data :type task_data: TaskData :return: task's result
"Instantiate and run the perform method od given task data.\n\n :param task_cls: task class\n :param task_data: task data\n :type task_data: TaskData\n :return: task's result"
292
false
AtteqCom/zsl
run_task
23,814
LDU_FT/yunpian/yunpian-python-sdk/get
LDU_FT
[ "<BEGIN>\n## `update_voice_notify`", "修改语音通知模版", " 注意:模板成功修改之后需要重新审核才能使用!同时提醒您如果修改了变量,务必重新测试,以免替换出错!\n 参数:\n 参数名 类型 是否必须 描述 示例\n apikey String 是 用户唯一标识 9b11127a9701975c734b8aee81ee3526\n tpl_id Long 是 模板id,64位长整形。指定id时返回id对应的模板。未指定时返回所有模板 95...
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...
查账户信息 参数名 类型 是否必须 描述 示例 apikey String 是 用户唯一标识 9b11127a9701975c734b8aee81ee3526 Args: param: (Optional) Results: Result
"查账户信息\n \n 参数名 类型 是否必须 描述 示例\n apikey String 是 用户唯一标识 9b11127a9701975c734b8aee81ee3526\n \n Args:\n param: (Optional) \n Results:\n Result"
62
false
yunpian/yunpian-python-sdk
get
23,815
LDU_FT/raymontag/kppy/move_entry_in_group
LDU_FT
[ "<BEGIN>\n## `set_expire`", "This method is used to change the expire date of a group", " - y is the year between 1 and 9999 inclusive\n - mon is the month between 1 and 12\n - d is a day in the given month\n - h is a hour between 0 and 23\n - min_ is a min...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the move_entry_in_group API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the move_entry_in_group API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
Move entry to another position inside a group. An entry and a valid index to insert the entry in the entry list of the holding group is needed. 0 means that the entry is moved to the first position 1 to the second and so on.
"Move entry to another position inside a group.\n\n An entry and a valid index to insert the entry in the\n entry list of the holding group is needed. 0 means\n that the entry is moved to the first position 1 to\n the second and so on."
81
false
raymontag/kppy
move_entry_in_group
23,816
LDU_FT/pymc-devs/pymc/caching_call
LDU_FT
[ "<BEGIN>\n## `moral_graph`", "moral_graph(model,format='raw', prog='dot', path=None)", " Draws the moral graph for this model and writes it to path with filename name.\n Returns the pydot 'dot' object for further user manipulation.", " GraphViz and PyDot must be installed to use this function.", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the caching_call API. 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 caching_call API. 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...
Computes f(x) given that f(x_sofar) = x_sofar. returns f(x), and new versions of x_sofar and f_sofar.
"Computes f(x) given that f(x_sofar) = x_sofar.\n returns f(x), and new versions of x_sofar and f_sofar."
1,025
true
pymc-devs/pymc
caching_call
23,817
LDU_FT/MozillaSecurity/fuzzfetch/_si
LDU_FT
[ "<BEGIN>\n## `_si`", "Format a number using base-2 SI prefixes\n<END>", "<BEGIN>\n## `_extract_file`", "Extract files while explicitly setting the proper permissions\n<END>", "<BEGIN>\n## `build_string`", "Taskcluster denotes builds in one of two formats - i.e. linux64-asan or linux64-asan-opt\n Th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _si API. Each 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 _si API. Each 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...
Format a number using base-2 SI prefixes
"Format a number using base-2 SI prefixes"
60
false
MozillaSecurity/fuzzfetch
_si
23,818
LDU_FT/blockstack/blockstack-files/file_put
LDU_FT
[ "<BEGIN>\n## `file_key_lookup`", "Get the file-encryption GPG key for the given blockchain ID, by index.", " if index == 0, then give back the current key\n if index > 0, then give back an older (revoked) key.\n if key_id is given, index and hostname will be ignored", " Return {'status': True, 'ke...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the file_put API. 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 file_put API. 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...
Send a file to the given recipient, encrypted and signed with the given blockchain ID. Allow each recipient to receive the data on each of their hosts. Return {'status': True} on success, and upload to cloud storage Return {'error': ...} on error
"Send a file to the given recipient, encrypted and signed with the\n given blockchain ID.\n Allow each recipient to receive the data on each of their hosts.\n Return {'status': True} on success, and upload to cloud storage\n Return {'error': ...} on error"
28
false
blockstack/blockstack-files
file_put
23,819
LDU_FT/pennlabs/penn-sdk-python/all_status
LDU_FT
[ "<BEGIN>\n## `get_meals`", "Extract meals into old format from a DiningV2 JSON response\n<END>", "<BEGIN>\n## `menu`", "Get the menu for the venue corresponding to venue_id,\n on date.", " :param venue_id:\n A string representing the id of a venue, e.g. \"abc\".\n :param date:\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the all_status API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the all_status API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
Return names, hall numbers, and the washers/dryers available for all rooms in the system >>> all_laundry = l.all_status()
"Return names, hall numbers, and the washers/dryers available for all\n rooms in the system\n\n >>> all_laundry = l.all_status()"
115
false
pennlabs/penn-sdk-python
all_status
23,820
LDU_FT/croscon/fleaker/db_value
LDU_FT
[ "<BEGIN>\n## `install`", "Install Fleaker.", " In a function so we can protect this file so it's only run when we\n explicitly invoke it and not, say, when py.test collects all Python\n modules.\n<END>", "<BEGIN>\n## `python_value`", "Return the JSON in the database as a ``dict``.", " Retu...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the db_value API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the db_value API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
Convert the Arrow instance to a datetime for saving in the db.
"Convert the Arrow instance to a datetime for saving in the db."
259
false
croscon/fleaker
db_value
23,821
LDU_FT/sanger-pathogens/ariba/_filter_dicts
LDU_FT
[ "<BEGIN>\n## `_update_threads`", "Update available thread count post-construction.\n To be called any number of times from run() method\n<END>", "<BEGIN>\n## `_report_completion`", "Update shared counters to signal that we are done with this cluster.\n Call just before exiting run() method (in a...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _filter_dicts API. 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 _filter_dicts API. 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...
Filters out all the report_dicts that do not pass the cutoffs. If any ref sequence loses all of its report_dicts, then it is completely removed.
"Filters out all the report_dicts that do not pass the cutoffs. If any ref sequence\n loses all of its report_dicts, then it is completely removed."
105
false
sanger-pathogens/ariba
_filter_dicts
23,822
LDU_FT/jepegit/cellpy/_dqdv_combinded_frame
LDU_FT
[ "<BEGIN>\n## `search_for_files`", "Searches for files (raw-data files and cellpy-files).", " Args:\n run_name(str): run-file identification.\n raw_extension(str): optional, extension of run-files (without the '.').\n cellpy_file_extension(str): optional, extension for cellpy files\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _dqdv_combinded_frame API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _dqdv_combinded_frame API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Returns full cycle dqdv data for all cycles as one pd.DataFrame. Args: cell: CellpyData-object Returns: pandas.DataFrame with the following columns: cycle: cycle number voltage: voltage dq: the incremental capacity
"Returns full cycle dqdv data for all cycles as one pd.DataFrame.\n\n Args:\n cell: CellpyData-object\n\n Returns:\n pandas.DataFrame with the following columns:\n cycle: cycle number\n voltage: voltage\n dq: the incremental capacity"
393
false
jepegit/cellpy
_dqdv_combinded_frame
23,823
LDU_FT/fedora-infra/datanommer/add
LDU_FT
[ "<BEGIN>\n## `_page`", "Quick utility to page a query, 1000 items at a time.\n We need this so we don't OOM (out of memory) ourselves loading the world.\n<END>", "<BEGIN>\n## `upgrade`", "This takes a *really* long time. Like, hours.\n<END>", "<BEGIN>\n## `run`", "Execute a shell command.", " Bot...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
Take a dict-like fedmsg envelope and store the headers and message in the table.
"Take a dict-like fedmsg envelope and store the headers and message\n in the table."
36
false
fedora-infra/datanommer
add
23,824
LDU_FT/kontron/python-ipmi/initiate_upgrade_action_and_wait
LDU_FT
[ "<BEGIN>\n## `sel_entries`", "Generator which returns all SEL entries.\n<END>", "<BEGIN>\n## `initiate_upgrade_action`", "Initiate Upgrade Action\n components:\n action:\n ACTION_BACKUP_COMPONENT = 0x00\n ACTION_PREPARE_COMPONENT = 0x01\n ACTION_UPLOAD_FOR_UPGRAD...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the initiate_upgrade_action_and_wait API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its c...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the initiate_upgrade_action_and_wait API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its c...
Initiate Upgrade Action and wait for long running command.
"Initiate Upgrade Action and wait for\n long running command."
87
false
kontron/python-ipmi
initiate_upgrade_action_and_wait
23,825
LDU_FT/erdewit/ib_insync/logToConsole
LDU_FT
[ "<BEGIN>\n## `connect`", "Connect to a running TWS or IB gateway application.\n After the connection is made the client is fully synchronized\n and ready to serve requests.", " This method is blocking.", " Args:\n host: Host name or IP address.\n port: Port nu...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the logToConsole API. 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 logToConsole API. 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 log handler that logs to the console.
"Create a log handler that logs to the console."
287
false
erdewit/ib_insync
logToConsole
23,826
LDU_FT/PyCQA/pydocstyle/setup_stream_handlers
LDU_FT
[ "<BEGIN>\n## `error_lineno`", "Get the line number with which to report violations.\n<END>", "<BEGIN>\n## `source`", "Return the source code for the definition.\n<END>", "<BEGIN>\n## `is_public`", "Return True iff this function should be considered public.\n<END>", "<BEGIN>\n## `is_magic`", "Return Tr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the setup_stream_handlers 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 setup_stream_handlers API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Setup logging stream handlers according to the options.
"Setup logging stream handlers according to the options."
183
false
PyCQA/pydocstyle
setup_stream_handlers
23,827
LDU_FT/contentful/contentful-management.py/entries
LDU_FT
[ "<BEGIN>\n## `create`", "Creates an entry with a given ID (optional) and attributes.\n<END>", "<BEGIN>\n## `create`", "Creates a webhook with given attributes.\n<END>", "<BEGIN>\n## `camel_case`", "Returns a camel-cased version of a string.", " :param a_string: any :class:`str` object.", " Usage...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the entries API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the entries API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
Provides access to entry management methods for the given content type. API reference: https://www.contentful.com/developers/docs/references/content-management-api/#/reference/entries :return: :class:`ContentTypeEntriesProxy <contentful_management.content_type_entries_proxy.ContentTypeEntriesProxy>` o...
"Provides access to entry management methods for the given content type.\n\n API reference: https://www.contentful.com/developers/docs/references/content-management-api/#/reference/entries\n\n :return: :class:`ContentTypeEntriesProxy <contentful_management.content_type_entries_proxy.ContentTypeEntriesProx...
161
false
contentful/contentful-management.py
entries
23,828
LDU_FT/xtrementl/focus/_expect_token
LDU_FT
[ "<BEGIN>\n## `_new_token`", "Appends new token to token stream.", " `chars`\n List of token characters. Defaults to current token list.\n `line_no`\n Line number for token. Defaults to current line number.\n<END>", "<BEGIN>\n## `_process_string`", "Process...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _expect_token API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _expect_token API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
Compares the next token in the stream to the specified token. `expected` Expected token string to match. * Raises a ``ParseError`` exception if token doesn't match `expected`.
"Compares the next token in the stream to the specified token.\n\n `expected`\n Expected token string to match.\n\n * Raises a ``ParseError`` exception if token doesn't match\n `expected`."
413
false
xtrementl/focus
_expect_token
23,829
LDU_FT/eventbrite/eventbrite-sdk-python/get_user_owned_event_orders
LDU_FT
[ "<BEGIN>\n## `objectify`", "Converts the returned value from a models.Payload to\n a models.EventbriteObject. Used by the access methods\n of the client.Eventbrite object\n<END>", "<BEGIN>\n## `get_category`", "GET /categories/:id/\n Gets a :format:`category` by ID as ``category``.\n<END>...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_user_owned_event_orders 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_user_owned_event_orders API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclu...
GET /users/:id/owned_event_orders/ Returns a :ref:`paginated <pagination>` response of :format:`orders <order>`, under the key ``orders``, of orders placed against any of the events the user owns (events that would be returned from ``/users/:id/owned_events/``)
"GET /users/:id/owned_event_orders/\n Returns a :ref:`paginated <pagination>` response of :format:`orders <order>`,\n under the key ``orders``, of orders placed against any of the events the user owns\n (events that would be returned from ``/users/:id/owned_events/``)"
194
false
eventbrite/eventbrite-sdk-python
get_user_owned_event_orders
23,830
LDU_FT/pyopenapi/pyswagger/produce
LDU_FT
[ "<BEGIN>\n## `swagger`", "some preparation before returning Swagger object\n<END>", "<BEGIN>\n## `apply_with`", "constructor", " :param str v: accept six.string_types, six.binary_type\n<END>", "<BEGIN>\n## `scope_compose`", "compose a new scope", " :param str scope: current scope\n :param...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the produce API. Each 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 produce API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
factory function to create primitives :param pyswagger.spec.v2_0.objects.Schema obj: spec to construct primitives :param val: value to construct primitives :return: the created primitive
"factory function to create primitives\n\n :param pyswagger.spec.v2_0.objects.Schema obj: spec to construct primitives\n :param val: value to construct primitives\n\n :return: the created primitive"
162
false
pyopenapi/pyswagger
produce
23,831
LDU_FT/idlesign/django-sitemessage/cleanup_sent_messages
LDU_FT
[ "<BEGIN>\n## `_build_message`", "Constructs a MIME message from message and dispatch models.\n<END>", "<BEGIN>\n## `schedule_email`", "Schedules an email message for delivery.", " :param dict, str message: str or dict: use str for simple text email;\n dict - to compile email from a template (defau...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the cleanup_sent_messages API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the cleanup_sent_messages API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Cleans up DB : removes delivered dispatches (and messages). :param int ago: Days. Allows cleanup messages sent X days ago. Defaults to None (cleanup all sent). :param bool dispatches_only: Remove dispatches only (messages objects will stay intact).
"Cleans up DB : removes delivered dispatches (and messages).\n\n :param int ago: Days. Allows cleanup messages sent X days ago. Defaults to None (cleanup all sent).\n :param bool dispatches_only: Remove dispatches only (messages objects will stay intact)."
137
false
idlesign/django-sitemessage
cleanup_sent_messages
23,832
LDU_FT/Julius2342/pyvlx/handle_frame
LDU_FT
[ "<BEGIN>\n## `add`", "Add Node, replace existing node if node with node_id is present.\n<END>", "<BEGIN>\n## `load`", "Load nodes from KLF 200, if no node_id is specified all nodes are loaded.\n<END>", "<BEGIN>\n## `handle_frame`", "Handle incoming API frame, return True if this was the expected frame.\n<...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the handle_frame API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the handle_frame API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
Handle incoming API frame, return True if this was the expected frame.
"Handle incoming API frame, return True if this was the expected frame."
74
false
Julius2342/pyvlx
handle_frame
23,833
LDU_FT/authomatic/liveandletdie/port_in_use
LDU_FT
[ "<BEGIN>\n## `port_in_use`", "Checks whether a port is free or not.", " :param int port:\n The port number to check for.", " :param bool kill:\n If ``True`` the process will be killed.", " :returns:\n The process id as :class:`int` if in use, otherwise ``False`` .\n<END>", "<...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the port_in_use API. 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 port_in_use API. 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 whether a port is free or not. :param int port: The port number to check for. :param bool kill: If ``True`` the process will be killed. :returns: The process id as :class:`int` if in use, otherwise ``False`` .
"Checks whether a port is free or not.\n \n :param int port:\n The port number to check for.\n \n :param bool kill:\n If ``True`` the process will be killed.\n \n :returns:\n The process id as :class:`int` if in use, otherwise ``False`` ."
22
false
authomatic/liveandletdie
port_in_use
23,834
LDU_FT/zhmcclient/python-zhmcclient/wait_for_status
LDU_FT
[ "<BEGIN>\n## `_metric_value`", "Return a Python-typed metric value from a metric value string.\n<END>", "<BEGIN>\n## `_metric_unit_from_name`", "Return a metric unit string for human consumption, that is inferred from\n the metric name.", " If a unit cannot be inferred, `None` is returned.\n<END>", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the wait_for_status API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the wait_for_status API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
Wait until the status of this partition has a desired value. Parameters: status (:term:`string` or iterable of :term:`string`): Desired partition status or set of status values to reach; one or more of the values defined for the 'status' property in the data model...
"Wait until the status of this partition has a desired value.\n\n Parameters:\n\n status (:term:`string` or iterable of :term:`string`):\n Desired partition status or set of status values to reach; one or\n more of the values defined for the 'status' property in the\n da...
1,599
true
zhmcclient/python-zhmcclient
wait_for_status
23,835
LDU_FT/phoebe-project/phoebe2/copy
LDU_FT
[ "<BEGIN>\n## `lc`", "Create parameters for a new light curve dataset.", " Generally, this will be used as an input to the kind argument in\n :meth:`phoebe.frontend.bundle.Bundle.add_dataset`", " :parameter **kwargs: defaults for the values of any of the parameters\n :return: a :class:`phoebe.param...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the copy API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the copy API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
Deepcopy the parameter (with a new uniqueid). All other tags will remain the same... so some other tag should be changed before attaching back to a ParameterSet or Bundle. :return: the copied :class:`Parameter` object
"Deepcopy the parameter (with a new uniqueid). All other tags will remain\n the same... so some other tag should be changed before attaching back to\n a ParameterSet or Bundle.\n\n :return: the copied :class:`Parameter` object"
1,080
true
phoebe-project/phoebe2
copy
23,836
LDU_FT/edx/django-config-models/key_values
LDU_FT
[ "<BEGIN>\n## `get_serializer_class`", "Returns a ConfigurationModel serializer class for the supplied configuration_model.\n<END>", "<BEGIN>\n## `deserialize_json`", "Given a stream containing JSON, deserializers the JSON into ConfigurationModel instances.", " The stream is expected to be in the followin...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the key_values API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the key_values API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
Get the set of unique values in the configuration table for the given key[s]. Calling cls.current(*value) for each value in the resulting list should always produce an entry, though any such entry may have enabled=False. Arguments: key_fields: The positional arguments are th...
"Get the set of unique values in the configuration table for the given\n key[s]. Calling cls.current(*value) for each value in the resulting\n list should always produce an entry, though any such entry may have\n enabled=False.\n\n Arguments:\n key_fields: The positional arguments...
55
false
edx/django-config-models
key_values
23,837
LDU_FT/SpamScope/mail-parser/parse
LDU_FT
[ "<BEGIN>\n## `sanitize`", "NFC is the normalization form recommended by W3C.\n<END>", "<BEGIN>\n## `ported_string`", "Give as input raw data and output a str in Python 3\n and unicode in Python 2.", " Args:\n raw_data: Python 2 str, Python 3 bytes or str to porting\n encoding: string giv...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
This method parses the raw email and makes the tokens. Returns: Instance of MailParser with raw email parsed
"This method parses the raw email and makes the tokens.\n\n Returns:\n Instance of MailParser with raw email parsed"
90
false
SpamScope/mail-parser
parse
23,838
LDU_FT/gabrielfalcao/HTTPretty/match_uriinfo
LDU_FT
[ "<BEGIN>\n## `fake_wrap_socket`", "drop-in replacement for py:func:`ssl.wrap_socket`\n<END>", "<BEGIN>\n## `fake_getaddrinfo`", "drop-in replacement for :py:func:`socket.getaddrinfo`\n<END>", "<BEGIN>\n## `httprettified`", "decorator for test functions", " .. tip:: Also available under the alias :py:...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the match_uriinfo API. 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 match_uriinfo API. 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 info: an :py:class:`~httpretty.core.URIInfo` :returns: a 2-item tuple: (:py:class:`~httpretty.core.URLMatcher`, :py:class:`~httpretty.core.URIInfo`) or ``(None, [])``
":param info: an :py:class:`~httpretty.core.URIInfo`\n :returns: a 2-item tuple: (:py:class:`~httpretty.core.URLMatcher`, :py:class:`~httpretty.core.URIInfo`) or ``(None, [])``"
54
false
gabrielfalcao/HTTPretty
match_uriinfo
23,839
LDU_FT/mass-project/mass_api_client/get_sample
LDU_FT
[ "<BEGIN>\n## `create`", "Create a new report.", " For convenience :func:`~mass_api_client.resources.scheduled_analysis.ScheduledAnalysis.create_report`\n of class :class:`.ScheduledAnalysis` can be used instead.", " :param scheduled_analysis: The :class:`.ScheduledAnalysis` this report wa...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_sample API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_sample API. 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...
Retrieve the scheduled :class:`.Sample`. :return: The corresponding :class:`.Sample` object.
"Retrieve the scheduled :class:`.Sample`.\n\n :return: The corresponding :class:`.Sample` object."
65
false
mass-project/mass_api_client
get_sample
23,840
LDU_FT/nylas/nylas-python/timestamp_from_dt
LDU_FT
[ "<BEGIN>\n## `pass_creds_to_nylas`", "This view loads the credentials from Google and passes them to Nylas,\n to set up native authentication.\n<END>", "<BEGIN>\n## `ngrok_url`", "If ngrok is running, it exposes an API on port 4040. We can use that\n to figure out what URL it has assigned, and suggest t...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the timestamp_from_dt API. 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 timestamp_from_dt API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Convert a datetime to a timestamp. https://stackoverflow.com/a/8778548/141395
"Convert a datetime to a timestamp.\n https://stackoverflow.com/a/8778548/141395"
19
false
nylas/nylas-python
timestamp_from_dt
23,841
LDU_FT/rfosterslo/wagtailplus/update_entry_attributes
LDU_FT
[ "<BEGIN>\n## `add_panel_to_edit_handler`", "Adds specified panel class to model class.", " :param model: the model class.\n :param panel_cls: the panel class.\n :param heading: the panel heading.\n :param index: the index position to insert at.\n<END>", "<BEGIN>\n## `get_context_data`", "Returns...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update_entry_attributes 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 update_entry_attributes API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion...
Updates attributes for Entry instance corresponding to specified instance. :param sender: the sending class. :param instance: the instance being saved.
"Updates attributes for Entry instance corresponding to\n specified instance.\n\n :param sender: the sending class.\n :param instance: the instance being saved."
128
false
rfosterslo/wagtailplus
update_entry_attributes
23,842
LDU_FT/necaris/python3-openid/getRequiredAttrs
LDU_FT
[ "<BEGIN>\n## `parseExtensionArgs`", "Set the state of this request to be that expressed in these\n PAPE arguments", " @param args: The PAPE arguments without a namespace", " @rtype: None", " @raises ValueError: When the max_auth_age is not parseable as\n an integer\n<E...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the getRequiredAttrs API. 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 getRequiredAttrs API. 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 the type URIs for all attributes that have been marked as required. @returns: A list of the type URIs for attributes that have been marked as required. @rtype: [str]
"Get the type URIs for all attributes that have been marked\n as required.\n\n @returns: A list of the type URIs for attributes that have\n been marked as required.\n @rtype: [str]"
164
false
necaris/python3-openid
getRequiredAttrs
23,843
LDU_FT/ladybug-tools/uwg/readDOE
LDU_FT
[ "<BEGIN>\n## `solarcalcs`", "Solar Calculation\n Mutates RSM, BEM, and UCM objects based on following parameters:\n UCM # Urban Canopy - Building Energy Model object\n BEM # Building Energy Model object\n simTime # Simulation time bbject\n RSM...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the readDOE API. Each 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 readDOE API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
Read csv files of DOE buildings Sheet 1 = BuildingSummary Sheet 2 = ZoneSummary Sheet 3 = LocationSummary Sheet 4 = Schedules Note BLD8 & 10 = school Then make matrix of ref data as nested nested lists [16, 3, 16]: matrix refDOE = Building objs matrix Schedule = SchDef objs matrix ...
"Read csv files of DOE buildings\n Sheet 1 = BuildingSummary\n Sheet 2 = ZoneSummary\n Sheet 3 = LocationSummary\n Sheet 4 = Schedules\n Note BLD8 & 10 = school\n\n\n Then make matrix of ref data as nested nested lists [16, 3, 16]:\n matrix refDOE = Building objs\n matrix Schedule = SchDef objs\...
53
false
ladybug-tools/uwg
readDOE
23,844
LDU_FT/radjkarl/appBase/read
LDU_FT
[ "<BEGIN>\n## `setModule`", "fill the about about label txt with the module attributes of the module\n<END>", "<BEGIN>\n## `setInstitutionLogo`", "takes one or more [logo].svg paths\r\n if logo should be clickable, set\r\n pathList = (\r\n (my_path1.svg,www.something1.h...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the read API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the read API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
Build a file path from *paths* and return the contents.
"Build a file path from *paths* and return the contents."
24
false
radjkarl/appBase
read
23,845
LDU_FT/tsroten/dragonmapper/_restore_case
LDU_FT
[ "<BEGIN>\n## `load_data_file`", "Load a data file and return it as a list of lines.", " Parameters:\n filename: The name of the file (no directories included).\n encoding: The file encoding. Defaults to utf-8.\n<END>", "<BEGIN>\n## `_load_data`", "Load the word and character mapping data in...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _restore_case API. 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 _restore_case API. 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...
Restore a lowercase string's characters to their original case.
"Restore a lowercase string's characters to their original case."
97
false
tsroten/dragonmapper
_restore_case
23,846
LDU_FT/MoseleyBioinformaticsLab/ctfile/_ctab_atom_bond_block
LDU_FT
[ "<BEGIN>\n## `tokenizer`", "A lexical analyzer for the `CTfile` formatted files.", " :param str text: `CTfile` formatted text.\n :return: Tuples of data.\n :rtype: py:class:`~collections.namedtuple`\n<END>", "<BEGIN>\n## `_molfile`", "Process ``Molfile``.", " :param stream: Queue containing li...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _ctab_atom_bond_block API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _ctab_atom_bond_block API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Process atom and bond blocks of ``Ctab``. :param number_of_lines: Number of lines to process from stream. :param block_type: :py:class:`collections.namedtuple` to use for data processing. :type block_type: :class:`~ctfile.tokenizer.CtabAtomBlockLine` or :class:`~ctfile.tokenizer.CtabBondBlockLine` :par...
"Process atom and bond blocks of ``Ctab``.\n\n :param number_of_lines: Number of lines to process from stream.\n :param block_type: :py:class:`collections.namedtuple` to use for data processing.\n :type block_type: :class:`~ctfile.tokenizer.CtabAtomBlockLine` or :class:`~ctfile.tokenizer.CtabBondBlockLine`\n ...
93
false
MoseleyBioinformaticsLab/ctfile
_ctab_atom_bond_block
23,847
LDU_FT/googlefonts/glyphsLib/_adjust_anchors
LDU_FT
[ "<BEGIN>\n## `to_ufo_font_attributes`", "Generate a list of UFOs with metadata loaded from .glyphs data.", " Modifies the list of UFOs in the UFOBuilder (self) in-place.\n<END>", "<BEGIN>\n## `to_glyphs_font_attributes`", "Copy font attributes from `ufo` either to `self.font` or to `master`.", " Arg...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _adjust_anchors API. 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 _adjust_anchors API. 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...
Adjust anchors to which a mark component may have been attached.
"Adjust anchors to which a mark component may have been attached."
235
false
googlefonts/glyphsLib
_adjust_anchors
23,848
LDU_FT/SpringerPE/python-cfconfigurator/clean_blobstore_cache
LDU_FT
[ "<BEGIN>\n## `_client`", "Performs client login with the provided credentials\n<END>", "<BEGIN>\n## `_login`", "Performs login with the provided credentials\n<END>", "<BEGIN>\n## `login`", "Performs login with the provided credentials\n<END>", "<BEGIN>\n## `info`", "Gets info endpoint. Used to perform...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the clean_blobstore_cache API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the clean_blobstore_cache API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Deletes all of the existing buildpack caches in the blobstore
"Deletes all of the existing buildpack caches in the blobstore"
12
false
SpringerPE/python-cfconfigurator
clean_blobstore_cache
23,849
LDU_FT/mattupstate/flask-security/confirm_email_token_status
LDU_FT
[ "<BEGIN>\n## `add_role_to_user`", "Adds a role to a user.", " :param user: The user to manipulate\n :param role: The role to add to the user\n<END>", "<BEGIN>\n## `remove_role_from_user`", "Removes a role from a user.", " :param user: The user to manipulate\n :param role: The r...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the confirm_email_token_status 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 confirm_email_token_status API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclus...
Returns the expired status, invalid status, and user of a confirmation token. For example:: expired, invalid, user = confirm_email_token_status('...') :param token: The confirmation token
"Returns the expired status, invalid status, and user of a confirmation\n token. For example::\n\n expired, invalid, user = confirm_email_token_status('...')\n\n :param token: The confirmation token"
145
false
mattupstate/flask-security
confirm_email_token_status
23,850
LDU_FT/rene-aguirre/pywinusb/get_device_path
LDU_FT
[ "<BEGIN>\n## `hid_device_path_exists`", "Test if required device_path is still valid\r\n (HID device connected to host)\n<END>", "<BEGIN>\n## `find_all_hid_devices`", "Finds all HID devices connected to the system\n<END>", "<BEGIN>\n## `show_hids`", "Check all HID devices conected to PC hosts.\n<END>",...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_device_path API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_device_path API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
Returns Hardware device path Parameters: h_info, interface set info handler interface_data, device interface enumeration data ptr_info_data, pointer to SP_DEVINFO_DATA() instance to receive details
"Returns Hardware device path\r\n Parameters:\r\n h_info, interface set info handler\r\n interface_data, device interface enumeration data\r\n ptr_info_data, pointer to SP_DEVINFO_DATA() instance to receive details"
61
false
rene-aguirre/pywinusb
get_device_path
23,851
LDU_FT/mikeywaites/flask-arrested/handle
LDU_FT
[ "<BEGIN>\n## `process`", "Process the provided data and invoke :meth:`Handler.handle` method for this\n Handler class.", " :params data: The data being processed.\n :returns: self\n :rtype: :class:`Handler`", " .. code-block:: python", " def post(self, *args, **...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the handle API. Each 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 handle API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Run serialization for the specified mapper_class. Supports both .serialize and .many().serialize Kim interfaces. :param data: Objects to be serialized. :returns: Serialized data according to mapper configuration
"Run serialization for the specified mapper_class.\n\n Supports both .serialize and .many().serialize Kim interfaces.\n\n :param data: Objects to be serialized.\n :returns: Serialized data according to mapper configuration"
99
false
mikeywaites/flask-arrested
handle
23,852
LDU_FT/afg984/pyardrone/_move
LDU_FT
[ "<BEGIN>\n## `connect`", "Connect to the drone.", " :raises RuntimeError: if the drone is connected or closed already.\n<END>", "<BEGIN>\n## `close`", "Exit all threads and disconnect the drone.", " This method has no effect if the drone is closed already or not\n connected yet.\n<END...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _move API. Each 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 _move API. Each 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...
Same as sending :py:class:`~pyardrone.at.PCMD` command with progressive flag.
"Same as sending :py:class:`~pyardrone.at.PCMD` command with progressive\n flag."
34
false
afg984/pyardrone
_move
23,853
LDU_FT/snipsco/snipsmanagercore/on_disconnect
LDU_FT
[ "<BEGIN>\n## `parse`", "Parse a json response into an intent.", " :param payload: a JSON object representing an intent.\n :param candidate_classes: a list of classes representing various\n intents, each having their own `parse`\n me...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the on_disconnect API. 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 on_disconnect API. 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...
Callback when the MQTT client is disconnected. In this case, the server waits five seconds before trying to reconnected. :param client: the client being disconnected. :param userdata: unused. :param result_code: result code.
"Callback when the MQTT client is disconnected. In this case,\n the server waits five seconds before trying to reconnected.\n\n :param client: the client being disconnected.\n :param userdata: unused.\n :param result_code: result code."
60
false
snipsco/snipsmanagercore
on_disconnect
23,854
LDU_FT/mass-project/mass_api_client/create
LDU_FT
[ "<BEGIN>\n## `create`", "Create a new report.", " For convenience :func:`~mass_api_client.resources.scheduled_analysis.ScheduledAnalysis.create_report`\n of class :class:`.ScheduledAnalysis` can be used instead.", " :param scheduled_analysis: The :class:`.ScheduledAnalysis` this report wa...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Create a new :class:`AnalysisSystem` on the server. :param identifier_name: Unique identifier string. :param verbose_name: A descriptive name of the AnalysisSystem. :param tag_filter_expression: Tag filters to automatically select samples for this AnalysisSystem. :return: The created :c...
"Create a new :class:`AnalysisSystem` on the server.\n\n :param identifier_name: Unique identifier string.\n :param verbose_name: A descriptive name of the AnalysisSystem.\n :param tag_filter_expression: Tag filters to automatically select samples for this AnalysisSystem.\n :return: The crea...
65
false
mass-project/mass_api_client
create
23,855
LDU_FT/bopo/mootdx/k
LDU_FT
[ "<BEGIN>\n## `bars`", "获取实时日K线数据", " :param symbol: 股票代码\n :param category: 数据类别\n :param market: 证券市场\n :param start: 开始位置\n :param offset: 每次获取条数\n :return: pd.dataFrame or None\n<END>", "<BEGIN>\n## `minute_his`", "分时历史数据", " :param market:\n :par...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the k API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted docum...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the k API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted docum...
读取k线信息 :param symbol: :param begin: :param end: :return: pd.dataFrame or None
"读取k线信息\n\n :param symbol:\n :param begin:\n :param end:\n :return: pd.dataFrame or None"
62
false
bopo/mootdx
k
23,856
LDU_FT/kevin-brown/drf-json-api/wrap_parser_error
LDU_FT
[ "<BEGIN>\n## `camelcase`", "Return a string in lowerCamelCase", " Examples:\n \"people\" -> \"people\"\n \"profile images\" -> \"profileImages\"\n<END>", "<BEGIN>\n## `render`", "Convert native data to JSON API", " Tries each of the methods in `wrappers`, using the first successful\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the wrap_parser_error API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the wrap_parser_error API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Convert parser errors to the JSON API Error format Parser errors have a status code of 400, like field errors, but have the same native format as generic errors. Also, the detail message is often specific to the input, so the error is listed as a 'detail' rather than a 'title'.
"Convert parser errors to the JSON API Error format\n\n Parser errors have a status code of 400, like field errors, but have\n the same native format as generic errors. Also, the detail message is\n often specific to the input, so the error is listed as a 'detail'\n rather than a 'title'."
34
false
kevin-brown/drf-json-api
wrap_parser_error
23,857
LDU_FT/grycap/RADL/parse_radl
LDU_FT
[ "<BEGIN>\n## `parse_radl`", "Parse a RADL document in JSON.", " Args.:\n - data(str or list): document to parse.", " Return(RADL): RADL object.\n<END>", "<BEGIN>\n## `radlToSimple`", "Return a list of maps whose values are only other maps or lists.\n<END>", "<BEGIN>\n## `getValue`", "Return t...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_radl API. 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_radl API. 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 RADL document. Args: - data(str): filepath to a RADL content or a string with content. Return: RADL object.
"Parse a RADL document.\n\n Args:\n - data(str): filepath to a RADL content or a string with content.\n\n Return: RADL object."
121
false
grycap/RADL
parse_radl
23,858
LDU_FT/lwcook/horsetail-matching/_extgrad
LDU_FT
[ "<BEGIN>\n## `_extalg`", "Given an array xarr of values, smoothly return the max/min\n<END>", "<BEGIN>\n## `_extgrad`", "Given an array xarr of values, return the gradient of the smooth min/max\n swith respect to each entry in the array\n<END>", "<BEGIN>\n## `_matrix_integration`", "Returns the dp metr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _extgrad API. 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 _extgrad API. 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...
Given an array xarr of values, return the gradient of the smooth min/max swith respect to each entry in the array
"Given an array xarr of values, return the gradient of the smooth min/max\n swith respect to each entry in the array"
90
false
lwcook/horsetail-matching
_extgrad
23,859
LDU_FT/Phyks/libbmc/tearpage
LDU_FT
[ "<BEGIN>\n## `is_valid`", "Check that a given HAL id is a valid one.", " :param hal_id: The HAL id to be checked.\n :returns: Boolean indicating whether the HAL id is valid or not.", " >>> is_valid(\"hal-01258754, version 1\")\n True", " >>> is_valid(\"hal-01258754\")\n True", " >>> i...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the tearpage API. 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 tearpage API. 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...
Tear some pages of the file if needed. :params filename: Path to the file to handle. :params bibtex: BibTeX dict associated to this file, as the one given by \ ``bibtexparser``. (Mandatory if force is not specified) :params force: If a list of integers, force the tearing of the \ sp...
"Tear some pages of the file if needed.\n\n :params filename: Path to the file to handle.\n :params bibtex: BibTeX dict associated to this file, as the one given by \\\n ``bibtexparser``. (Mandatory if force is not specified)\n :params force: If a list of integers, force the tearing of the \\\n ...
271
false
Phyks/libbmc
tearpage
23,860
LDU_FT/vladsaveliev/TargQC/_MakeGroupFromRootSection
LDU_FT
[ "<BEGIN>\n## `main`", "Annotating BED file based on reference features annotations.\n<END>", "<BEGIN>\n## `downsample`", "get N random headers from a fastq file without reading the\n whole thing into memory\n modified from: http://www.biostars.org/p/6544/\n<END>", "<BEGIN>\n## `AddIndex`", "Recursiv...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _MakeGroupFromRootSection 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 _MakeGroupFromRootSection API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi...
Construct a dictinary { template name -> Template() instance } Args: root_section: _Section instance -- root of the original parse tree
"Construct a dictinary { template name -> Template() instance }\n\n Args:\n root_section: _Section instance -- root of the original parse tree"
184
false
vladsaveliev/TargQC
_MakeGroupFromRootSection
23,861
LDU_FT/chop-dbhi/varify-data-warehouse/readline
LDU_FT
[ "<BEGIN>\n## `read`", "Reads up to size bytes, but always completes the last line.\n<END>", "<BEGIN>\n## `readline`", "The size is ignored since a complete line must be read.\n<END>", "<BEGIN>\n## `process_line`", "Process a single record. This assumes only a single sample output.\n<END>", "<BEGIN>\n## ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the readline API. 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 readline API. 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...
Ignore the `size` since a complete line must be processed.
"Ignore the `size` since a complete line must be processed."
53
false
chop-dbhi/varify-data-warehouse
readline
23,862
LDU_FT/sludgedesk/metoffer/map_overlay_forecast
LDU_FT
[ "<BEGIN>\n## `guidance_UV`", "Return Met Office guidance regarding UV exposure based on UV index\n<END>", "<BEGIN>\n## `parse_sitelist`", "Return list of Site instances from retrieved sitelist data\n<END>", "<BEGIN>\n## `get_nearest_site`", "Return a string which can be used as \"request\" in calls to loc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the map_overlay_forecast 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 map_overlay_forecast 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 capabilities data for forecast map overlays.
"Returns capabilities data for forecast map overlays."
33
false
sludgedesk/metoffer
map_overlay_forecast
23,863
LDU_FT/dls-controls/pymalcolm/make_velocity_profile
LDU_FT
[ "<BEGIN>\n## `camel_to_title`", "Takes a camelCaseFieldName and returns an Title Case Field Name", " Args:\n name (str): E.g. camelCaseFieldName", " Returns:\n str: Title Case converted name. E.g. Camel Case Field Name\n<END>", "<BEGIN>\n## `snake_to_camel`", "Takes a snake_field_name ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the make_velocity_profile 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 make_velocity_profile API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Calculate PVT points that will perform the move within motor params Args: v1 (float): Starting velocity in EGUs/s v2 (float): Ending velocity in EGUs/s distance (float): Relative distance to travel in EGUs min_time (float): The minimum time the move should take ...
"Calculate PVT points that will perform the move within motor params\n\n Args:\n v1 (float): Starting velocity in EGUs/s\n v2 (float): Ending velocity in EGUs/s\n distance (float): Relative distance to travel in EGUs\n min_time (float): The minimum time the move should...
332
false
dls-controls/pymalcolm
make_velocity_profile
23,864
LDU_FT/gagneurlab/concise/InputCodon
LDU_FT
[ "<BEGIN>\n## `best_kmers`", "Find best k-mers for CONCISE initialization.", " Args:\n dt (pd.DataFrame): Table containing response variable and sequence.\n response (str): Name of the column used as the reponse variable.\n sequence (str): Name of the column storing the DNA/RNA sequences....
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the InputCodon API. 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 InputCodon API. 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...
Input placeholder for array returned by `encodeCodon` Note: The seq_length is divided by 3 Wrapper for: `keras.layers.Input((seq_length / 3, 61 or 61), name=name, **kwargs)`
"Input placeholder for array returned by `encodeCodon`\n\n Note: The seq_length is divided by 3\n\n Wrapper for: `keras.layers.Input((seq_length / 3, 61 or 61), name=name, **kwargs)`"
311
false
gagneurlab/concise
InputCodon
23,865
LDU_FT/glenfant/openxmllib/canProcessFilename
LDU_FT
[ "<BEGIN>\n## `mimeType`", "The official MIME type for this document, guessed from the extensions\n of the :py:attr:`openxmllib.document.Document.filename` attribute, as\n opposed to the :py:attr:`openxmllib.document.Document.mime_type`\n attribute.", " :return: ``application/xxx`` fo...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the canProcessFilename 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 canProcessFilename API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
Check if we can process such file based on name :param filename: File name as 'mydoc.docx' :return: True if we can process such file
"Check if we can process such file based on name\n\n :param filename: File name as 'mydoc.docx'\n :return: True if we can process such file"
37
false
glenfant/openxmllib
canProcessFilename
23,866
LDU_FT/PyThaiNLP/pythainlp/merge_wgts
LDU_FT
[ "<BEGIN>\n## `spell`", ":param str word: word to check spelling\n :param str engine:\n * pn - Peter Norvig's algorithm (default)\n :return: list of words\n<END>", "<BEGIN>\n## `get_corpus`", "Read corpus from file and return a frozenset", " :param string filename: file corpus\n<END>", "<BE...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the merge_wgts API. 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 merge_wgts API. 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...
:meth: `merge_wgts` insert pretrained weights and vocab into a new set of weights and vocab; use average if vocab not in pretrained vocab :param int em_sz: embedding size :param wgts: torch model weights :param list itos_pre: pretrained list of vocab :param list itos_new: list of new vocab :retu...
":meth: `merge_wgts` insert pretrained weights and vocab into a new set of weights and vocab;\n use average if vocab not in pretrained vocab\n :param int em_sz: embedding size\n :param wgts: torch model weights\n :param list itos_pre: pretrained list of vocab\n :param list itos_new: list of new vocab\n ...
190
false
PyThaiNLP/pythainlp
merge_wgts
23,867
LDU_FT/maceoutliner/django-fiction-outlines/validate_location_instance_valid_for_arc
LDU_FT
[ "<BEGIN>\n## `mk_dropdown_tree`", "Override of ``treebeard`` method to enforce the same root.\n<END>", "<BEGIN>\n## `length_estimate`", "Calculates and estimated word count based on number of characters, locations,\n and arcs. For reference see:\n http://www.writingexcuses.com/2017/07/02/12-27-c...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the validate_location_instance_valid_for_arc API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicat...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the validate_location_instance_valid_for_arc API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicat...
Evaluates attempts to add location instances to arc, ensuring they are from same outline.
"Evaluates attempts to add location instances to arc, ensuring they are from same outline."
61
false
maceoutliner/django-fiction-outlines
validate_location_instance_valid_for_arc
23,868
LDU_FT/nickmckay/LiPD-utilities/_rm_units_from_var_names_multi
LDU_FT
[ "<BEGIN>\n## `update_dois`", "Get DOI publication info for a batch of DOIs. This is LiPD-independent and only requires a CSV file with all DOIs\n listed in a single column. The output is LiPD-formatted publication data for each entry.", " :param str csv_source: Local path to CSV file\n :param bool writ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _rm_units_from_var_names_multi 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 _rm_units_from_var_names_multi API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its con...
Wrapper around "_rm_units_from_var_name_single" for doing a list instead of a single cell. :param list row: Variable names :return list: Variable names
"Wrapper around \"_rm_units_from_var_name_single\" for doing a list instead of a single cell.\n :param list row: Variable names\n :return list: Variable names"
796
false
nickmckay/LiPD-utilities
_rm_units_from_var_names_multi
23,869
LDU_FT/Numigi/gitoo/temp_repo
LDU_FT
[ "<BEGIN>\n## `temp_repo`", "Clone a git repository inside a temporary folder, yield the folder then delete the folder.", " :param string url: url of the repo to clone.\n :param string branch: name of the branch to checkout to.\n :param string commit: Optional commit rev to checkout to. If mentioned, th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the temp_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 extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the temp_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 extract...
Clone a git repository inside a temporary folder, yield the folder then delete the folder. :param string url: url of the repo to clone. :param string branch: name of the branch to checkout to. :param string commit: Optional commit rev to checkout to. If mentioned, that take over the branch :return: yie...
"Clone a git repository inside a temporary folder, yield the folder then delete the folder.\n\n :param string url: url of the repo to clone.\n :param string branch: name of the branch to checkout to.\n :param string commit: Optional commit rev to checkout to. If mentioned, that take over the branch\n :retur...
40
false
Numigi/gitoo
temp_repo
23,870
LDU_FT/dustin/twitty-twister/datagramReceived
LDU_FT
[ "<BEGIN>\n## `__downloadPage`", "Start a HTTP download, returning a HTTPDownloader object\n<END>", "<BEGIN>\n## `__encodeMultipart`", "fields is a sequence of (name, value) elements for regular form fields.\n files is a sequence of (name, filename, value) elements for data to be uploaded as files\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the datagramReceived API. 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 datagramReceived API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Decode the JSON-encoded datagram and call the callback.
"Decode the JSON-encoded datagram and call the callback."
93
false
dustin/twitty-twister
datagramReceived
23,871
LDU_FT/inveniosoftware/invenio-records-files/file_download_ui
LDU_FT
[ "<BEGIN>\n## `_writable`", "Check that record is in defined status.", " :param method: Method to be decorated.\n :returns: Function decorated.\n<END>", "<BEGIN>\n## `get_version`", "Return specific version ``ObjectVersion`` instance or HEAD.", " :param version_id: Version ID of the object.\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the file_download_ui API. 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 file_download_ui API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
File download view for a given record. Plug this method into your ``RECORDS_UI_ENDPOINTS`` configuration: .. code-block:: python RECORDS_UI_ENDPOINTS = dict( recid=dict( # ... route='/records/<pid_value/files/<filename>', view_imp='invenio_r...
"File download view for a given record.\n\n Plug this method into your ``RECORDS_UI_ENDPOINTS`` configuration:\n\n .. code-block:: python\n\n RECORDS_UI_ENDPOINTS = dict(\n recid=dict(\n # ...\n route='/records/<pid_value/files/<filename>',\n view_imp...
42
false
inveniosoftware/invenio-records-files
file_download_ui
23,872