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/MillionIntegrals/vel/clean
LDU_FT
[ "<BEGIN>\n## `histogram_info`", "Return extra information about histogram\n<END>", "<BEGIN>\n## `sample`", "Sample from a greedy strategy with given q-value histogram\n<END>", "<BEGIN>\n## `sample_forward_transitions`", "Sample transitions from replay buffer with _forward steps_.\n That is, instead...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the clean API. 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 clean API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
Remove entries from database that would get overwritten
"Remove entries from database that would get overwritten"
279
false
MillionIntegrals/vel
clean
20,873
LDU_FT/secnot/rectpack/_remove_duplicates
LDU_FT
[ "<BEGIN>\n## `_add_section`", "Adds a new section to the free section list, but before that and if \n section merge is enabled, tries to join the rectangle with all existing \n sections, if successful the resulting section is again merged with the \n remaining sections until the operation fai...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _remove_duplicates 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 _remove_duplicates 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...
Remove every maximal rectangle contained by another one.
"Remove every maximal rectangle contained by another one."
103
false
secnot/rectpack
_remove_duplicates
20,874
LDU_FT/kislyuk/aegea/reopen
LDU_FT
[ "<BEGIN>\n## `update`", "Update this authorization.", " :param list scopes: (optional), replaces the authorization scopes with\n these\n :param list add_scopes: (optional), scopes to be added\n :param list rm_scopes: (optional), scopes to be removed\n :param str note: (opt...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the reopen API. 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 reopen API. 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 ...
Re-open a closed issue. :returns: bool
"Re-open a closed issue.\n\n :returns: bool"
834
false
kislyuk/aegea
reopen
20,875
LDU_FT/dhondta/tinyscript/configure_logger
LDU_FT
[ "<BEGIN>\n## `_filtered_actions`", "Get actions filtered on a list of action types.", " :param a_type: argparse.Action instance name (e.g. count, append)\n<END>", "<BEGIN>\n## `_input_arg`", "Ask the user for input of a single argument.", " :param a: argparse.Action instance\n :return...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the configure_logger API. 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 configure_logger API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Logger configuration function for setting either a simple debug mode or a multi-level one. :param glob: globals dictionary :param multi_level: boolean telling if multi-level debug is to be considered :param relative: use relative time for the logging messages :param logfile: log ...
"Logger configuration function for setting either a simple debug mode or a\n multi-level one.\n \n :param glob: globals dictionary\n :param multi_level: boolean telling if multi-level debug is to be considered\n :param relative: use relative time for the logging messages\n :param logfile: ...
74
false
dhondta/tinyscript
configure_logger
20,876
LDU_FT/chapel-lang/sphinxcontrib-chapeldomain/get_objects
LDU_FT
[ "<BEGIN>\n## `make_field`", "Copy+Paste of TypedField.make_field() from Sphinx version 1.2.3. The first\n and second nodes.Text() instance are changed in this implementation to\n be ' : ' and '' respectively (instead of ' (' and ')').", " TODO: Ask sphinx devs if there is a better way to su...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_objects API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_objects API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
Return iterable of "object descriptions", which are tuple with these items: * `name` * `dispname` * `type` * `docname` * `anchor` * `priority` For details on each item, see :py:meth:`~sphinx.domains.Domain.get_objects`.
"Return iterable of \"object descriptions\", which are tuple with these items:\n\n * `name`\n * `dispname`\n * `type`\n * `docname`\n * `anchor`\n * `priority`\n\n For details on each item, see\n :py:meth:`~sphinx.domains.Domain.get_objects`."
60
false
chapel-lang/sphinxcontrib-chapeldomain
get_objects
20,877
LDU_FT/pydsigner/taskit/build_backend
LDU_FT
[ "<BEGIN>\n## `_wait`", "Based upon an extract from threading.Condition().wait(). Immediately \n tries to acquire the lock, and then sleeps for a period of time (going \n 1/2ms..1ms..2ms..4ms...50ms..50ms), repeating until the lock is \n acquired or the timeout limit is reached.\n<END>", "<B...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the build_backend API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the build_backend API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
Most of these args are passed directly to BackEnd(). However, default_host is used a bit differently. It should be a (host, port) pair, and may be overridden with cmdline args: file.py localhost file.py localhost 54545
"Most of these args are passed directly to BackEnd(). However, default_host \n is used a bit differently. It should be a (host, port) pair, and may be \n overridden with cmdline args:\n file.py localhost\n file.py localhost 54545"
59
false
pydsigner/taskit
build_backend
20,878
LDU_FT/inveniosoftware/invenio-oaiserver/listsets
LDU_FT
[ "<BEGIN>\n## `_schema_from_verb`", "Return an instance of schema for given verb.\n<END>", "<BEGIN>\n## `load`", "Deserialize a data structure to an object.\n<END>", "<BEGIN>\n## `make_request_validator`", "Validate arguments in incomming request.\n<END>", "<BEGIN>\n## `from_iso_permissive`", "Parse an...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the listsets API. 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 listsets API. 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...
Create OAI-PMH response for ListSets verb.
"Create OAI-PMH response for ListSets verb."
78
false
inveniosoftware/invenio-oaiserver
listsets
20,879
LDU_FT/ntoll/uflash/save_hex
LDU_FT
[ "<BEGIN>\n## `hexlify`", "Takes the byte content of a Python script and returns a hex encoded\n version of it.", " Based on the hexlify script in the microbit-micropython repository.\n<END>", "<BEGIN>\n## `unhexlify`", "Takes a hexlified script and turns it back into a string of Python code.\n<END>", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the save_hex API. 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 save_hex API. 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 a string representation of a hex file, this function copies it to the specified path thus causing the device mounted at that point to be flashed. If the hex_file is empty it will raise a ValueError. If the filename at the end of the path does not end in '.hex' it will raise a ValueError.
"Given a string representation of a hex file, this function copies it to\n the specified path thus causing the device mounted at that point to be\n flashed.\n\n If the hex_file is empty it will raise a ValueError.\n\n If the filename at the end of the path does not end in '.hex' it will raise\n a ValueEr...
37
false
ntoll/uflash
save_hex
20,880
LDU_FT/notifiers/notifiers/post
LDU_FT
[ "<BEGIN>\n## `handle_oneof`", "Custom handle of `oneOf` JSON schema validator. Tried to match primitive type and see if it should be allowed\n to be passed multiple timns into a command", " :param oneof_schema: `oneOf` JSON schema\n :return: Tuple of :class:`click.ParamType`, ``multiple`` flag and ``d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the post API. 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 post API. 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...
Send a POST request. Returns a dict or :class:`requests.Response <Response>`
"Send a POST request. Returns a dict or :class:`requests.Response <Response>`"
95
false
notifiers/notifiers
post
20,881
LDU_FT/Crunch-io/crunch-cube/missing_count
LDU_FT
[ "<BEGIN>\n## `column_mask`", "ndarray, True where column margin <= min_base_size, same shape as slice.\n<END>", "<BEGIN>\n## `table_mask`", "ndarray, True where table margin <= min_base_size, same shape as slice.\n<END>", "<BEGIN>\n## `values`", "list of _ColumnPairwiseSignificance tests.", " Res...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the missing_count API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the missing_count API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
numeric representing count of missing rows in cube response.
"numeric representing count of missing rows in cube response."
334
false
Crunch-io/crunch-cube
missing_count
20,882
LDU_FT/getsentry/raven-python/log_exception
LDU_FT
[ "<BEGIN>\n## `async_send`", "Spawn an async request to a remote webserver.\n<END>", "<BEGIN>\n## `send`", "Sends a request to a remote webserver using HTTP POST.\n<END>", "<BEGIN>\n## `extract_auth_vars`", "raven-js will pass both Authorization and X-Sentry-Auth depending on the browser\n and server co...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the log_exception API. 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 log_exception API. 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...
Override implementation to report all exceptions to sentry. log_exception() is added in Tornado v3.1.
"Override implementation to report all exceptions to sentry.\n log_exception() is added in Tornado v3.1."
126
false
getsentry/raven-python
log_exception
20,883
LDU_FT/INM-6/hybridLFPy/create_tar_archive
LDU_FT
[ "<BEGIN>\n## `plot_signal_sum`", "on axes plot the signal contributions", " args:\n ::\n ax : matplotlib.axes.AxesSubplot object\n z : np.ndarray\n T : list, [tstart, tstop], which timeinterval\n ylims : list, set range of yaxis to scale with other plots\n fancy : bool, ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_tar_archive 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 create_tar_archive 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...
Create a tar archive of the main simulation outputs.
"Create a tar archive of the main simulation outputs."
412
false
INM-6/hybridLFPy
create_tar_archive
20,884
LDU_FT/devricks/soft_drf/get_serializer
LDU_FT
[ "<BEGIN>\n## `get_serializer_class`", "Return the serializer class depending on request method.\n Attribute of proper serializer should be defined.\n<END>", "<BEGIN>\n## `get_serializer`", "Returns the serializer instance that should be used to the\n given action.\n If any action was give...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_serializer API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_serializer API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
Returns the serializer instance that should be used to the given action. If any action was given, returns the serializer_class
"Returns the serializer instance that should be used to the\n given action.\n If any action was given, returns the serializer_class"
26
false
devricks/soft_drf
get_serializer
20,885
LDU_FT/pycontribs/pyrax/update_domain
LDU_FT
[ "<BEGIN>\n## `resize`", "Resize the volume to the specified size (in GB).\n<END>", "<BEGIN>\n## `get`", "This additional code is necessary to properly return the 'volume'\n attribute of the instance as a CloudDatabaseVolume object instead of\n a raw dict.\n<END>", "<BEGIN>\n## `_create_body`",...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update_domain API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update_domain API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
Provides a way to modify the following attributes of a domain record: - email address - ttl setting - comment
"Provides a way to modify the following attributes of a domain\n record:\n - email address\n - ttl setting\n - comment"
1,326
true
pycontribs/pyrax
update_domain
20,886
LDU_FT/HazyResearch/pdftotree/_retain_centroids
LDU_FT
[ "<BEGIN>\n## `_retain_centroids`", "Only keep one number for each cluster within thres of each other\n<END>", "<BEGIN>\n## `_split_vlines_hlines`", "Separates lines into horizontal and vertical ones\n<END>", "<BEGIN>\n## `_mark_grid_bounds`", "Assume all lines define a complete grid over the region_bbox.\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _retain_centroids API. 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 _retain_centroids API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Only keep one number for each cluster within thres of each other
"Only keep one number for each cluster within thres of each other"
113
false
HazyResearch/pdftotree
_retain_centroids
20,887
LDU_FT/lalinsky/python-phoenixdb/prepare
LDU_FT
[ "<BEGIN>\n## `connect`", "Connects to a Phoenix query server.", " :param url:\n URL to the Phoenix query server, e.g. ``http://localhost:8765/``", " :param autocommit:\n Switch the connection to autocommit mode.", " :param readonly:\n Switch the connection to readonly mode.", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the prepare API. 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 prepare API. 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...
Prepares a statement. :param connection_id: ID of the current connection. :param sql: SQL query. :param max_rows_total: The maximum number of rows that will be allowed for this query. :returns: Signature of the prepared statement.
"Prepares a statement.\n\n :param connection_id:\n ID of the current connection.\n\n :param sql:\n SQL query.\n\n :param max_rows_total:\n The maximum number of rows that will be allowed for this query.\n\n :returns:\n Signature of the prepared sta...
86
false
lalinsky/python-phoenixdb
prepare
20,888
LDU_FT/idlesign/uwsgiconf/set
LDU_FT
[ "<BEGIN>\n## `set_exit_events`", "Do exit on certain events", " :param bool no_workers: Shutdown uWSGI when no workers are running.", " :param bool idle: Shutdown uWSGI when idle.", " :param bool reload: Force exit even if a reload is requested.", " :param bool sig_term: Exit o...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
Sets metric value. :param int|long value: New value. :param str|unicode mode: Update mode. * None - Unconditional update. * max - Sets metric value if it is greater that the current one. * min - Sets metric value if it is less that the current one. :rtype:...
"Sets metric value.\n\n :param int|long value: New value.\n\n :param str|unicode mode: Update mode.\n\n * None - Unconditional update.\n * max - Sets metric value if it is greater that the current one.\n * min - Sets metric value if it is less that the current one.\n\n ...
1,094
true
idlesign/uwsgiconf
set
20,889
LDU_FT/acutesoftware/virtual-AI-simulator/take_damage
LDU_FT
[ "<BEGIN>\n## `calc_basics`", "calculate various aspects of the structure\n<END>", "<BEGIN>\n## `bld_rafter_deflection`", "calculate rafter deflections - see test_calc_building_design.py for \n Sample values for equations below from Structures II course\n<END>", "<BEGIN>\n## `main`", "Prototype to see h...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the take_damage API. 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 take_damage API. 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...
wrapper to apply damage taken to a character
"wrapper to apply damage taken to a character"
86
false
acutesoftware/virtual-AI-simulator
take_damage
20,890
LDU_FT/rjw57/throw/_smtp_server
LDU_FT
[ "<BEGIN>\n## `create_email`", "Create an email message object which implements the\n email.message.Message interface and which has the files to be shared\n attached to it.\n<END>", "<BEGIN>\n## `CreateGallery`", "Creates a Gallery on the server. Returns a Gallery object with the\n editor_id and reade...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _smtp_server API. 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 _smtp_server API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
Return a smtplib SMTP object correctly initialised and connected to a SMTP server suitable for sending email on behalf of the user.
"Return a smtplib SMTP object correctly initialised and connected to\n a SMTP server suitable for sending email on behalf of the user."
28
false
rjw57/throw
_smtp_server
20,891
LDU_FT/stephen-bunn/file-config/handler
LDU_FT
[ "<BEGIN>\n## `on_yaml_imported`", "The `pyyaml <https://pypi.org/project/pyyaml/>`_ import hook.", " :param module yaml: The ``yaml`` module\n<END>", "<BEGIN>\n## `on_yaml_dumps`", "The `pyyaml <https://pypi.org/project/pyyaml/>`_ dumps method.", " :param module yaml: The ``yaml`` module\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the 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 extracted...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the 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 extracted...
The current imported serialization handler module. :return: The imported handler :rtype: module
"The current imported serialization handler module.\n\n :return: The imported handler\n :rtype: module"
215
false
stephen-bunn/file-config
handler
20,892
LDU_FT/tBuLi/symfit/initial_guesses
LDU_FT
[ "<BEGIN>\n## `seperate_symbols`", "Seperate the symbols in symbolic function func. Return them in alphabetical\n order.", " :param func: scipy symbolic function.\n :return: (vars, params), a tuple of all variables and parameters, each \n sorted in alphabetical order.\n :raises TypeError: only...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the initial_guesses API. 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 initial_guesses API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
:return: Initial guesses for every parameter.
":return: Initial guesses for every parameter."
239
false
tBuLi/symfit
initial_guesses
20,893
LDU_FT/underworldcode/stripy/centroid_refine_triangulation_by_vertices
LDU_FT
[ "<BEGIN>\n## `install_documentation`", "Install the example notebooks for litho1pt0 in the given location", " WARNING: If the path exists, the Notebook files will be written into the path\n and will overwrite any existing files with which they collide. The default\n path (\"./Litho1pt0-Notebooks\") is ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the centroid_refine_triangulation_by_vertices API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indica...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the centroid_refine_triangulation_by_vertices API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indica...
return points defining a refined triangulation obtained by bisection of all edges in the triangulation connected to any of the vertices in the list provided
"return points defining a refined triangulation obtained by bisection of all edges\n in the triangulation connected to any of the vertices in the list provided"
224
false
underworldcode/stripy
centroid_refine_triangulation_by_vertices
20,894
LDU_FT/gear11/pypelogs/interesting
LDU_FT
[ "<BEGIN>\n## `geo_filter`", "Inspects the given Wikipedia article dict for geo-coordinates.", " If no coordinates are found, returns None. Otherwise, returns a new dict\n with the title and URL of the original article, along with coordinates.\n<END>", "<BEGIN>\n## `find_geo_coords`", "Returns a list ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the interesting API. 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 interesting API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
Gets interesting photos. flickr:(credsfile),interesting
"Gets interesting photos.\n\n flickr:(credsfile),interesting"
40
false
gear11/pypelogs
interesting
20,895
LDU_FT/xsleonard/pystmark/verify
LDU_FT
[ "<BEGIN>\n## `send`", "Send a message.", " :param message: Message to send.\n :type message: `dict` or :class:`Message`\n :param api_key: Your Postmark API key. Required, if `test` is not `True`.\n :param secure: Use the https scheme for the Postmark API.\n Defaults to `True`\n :param test...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the verify API. 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 verify API. 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 ...
Verifies the message data based on rules and restrictions defined in the Postmark API docs. There can be no more than 20 recipients in total. NOTE: This does not check that your attachments total less than 10MB, you must do that yourself.
"Verifies the message data based on rules and restrictions defined\n in the Postmark API docs. There can be no more than 20 recipients\n in total. NOTE: This does not check that your attachments total less\n than 10MB, you must do that yourself."
113
false
xsleonard/pystmark
verify
20,896
LDU_FT/cidles/pressagio/execute_sql
LDU_FT
[ "<BEGIN>\n## `create_ngram_table`", "Creates a table for n-gram of a give cardinality. The table name is\n constructed from this parameter, for example for cardinality `2` there\n will be a table `_2_gram` created.", " Parameters\n ----------\n cardinality : int\n T...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the execute_sql API. 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 execute_sql API. 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...
Executes a given query string on an open postgres database.
"Executes a given query string on an open postgres database."
43
false
cidles/pressagio
execute_sql
20,897
LDU_FT/freevoid/django-datafilters/declarative_fields
LDU_FT
[ "<BEGIN>\n## `split_in_columns`", "Return iterator that yields a column (iterator too).", " By default, flat field list is divided in columns with\n fields_per_column elements in each (fields_per_column is a\n class attribute).\n<END>", "<BEGIN>\n## `get_declared_fields`", "Create a list of form fi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the declarative_fields API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the declarative_fields API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
Metaclass that converts Field attributes to a dictionary called 'base_fields', taking into account parent class 'cls_filter'.
"Metaclass that converts Field attributes to a dictionary called\n 'base_fields', taking into account parent class 'cls_filter'."
18
false
freevoid/django-datafilters
declarative_fields
20,898
LDU_FT/pydata/pandas-gbq/_cast_empty_df_dtypes
LDU_FT
[ "<BEGIN>\n## `get_service_account_credentials`", "DEPRECATED: Load service account credentials from key data or key path.\n<END>", "<BEGIN>\n## `encode_chunk`", "Return a file-like object of CSV-encoded rows.", " Args:\n dataframe (pandas.DataFrame): A chunk of a dataframe to encode\n<END>", "<BEG...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _cast_empty_df_dtypes 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 _cast_empty_df_dtypes API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Cast any columns in an empty dataframe to correct type. In an empty dataframe, pandas cannot choose a dtype unless one is explicitly provided. The _bqschema_to_nullsafe_dtypes() function only provides dtypes when the dtype safely handles null values. This means that empty int64 and boolean columns are ...
"Cast any columns in an empty dataframe to correct type.\n\n In an empty dataframe, pandas cannot choose a dtype unless one is\n explicitly provided. The _bqschema_to_nullsafe_dtypes() function only\n provides dtypes when the dtype safely handles null values. This means\n that empty int64 and boolean column...
94
false
pydata/pandas-gbq
_cast_empty_df_dtypes
20,899
LDU_FT/hammerlab/stanity/fit
LDU_FT
[ "<BEGIN>\n## `psisloo`", "r\"\"\"PSIS leave-one-out log predictive densities.", " Computes the log predictive densities given posterior samples of the log\n likelihood terms :math:`p(y_i|\\theta^s)` in input parameter `log_lik`.\n Returns a sum of the leave-one-out log predictive densities `loo`,\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the fit API. 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 fit API. 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...
Fit a Stan model. Caches the compiled model. *args and **kwargs are passed to the pystan.stan function. Arguments you most likely want to pass: data, init, iter, chains. Unlike pystan.stan, if the n_jobs kwarg is not specified, it defaults to -1. Parameters ------------------- mo...
"Fit a Stan model. Caches the compiled model.\n\n *args and **kwargs are passed to the pystan.stan function.\n\n Arguments you most likely want to pass: data, init, iter, chains. \n\n Unlike pystan.stan, if the n_jobs kwarg is not specified, it defaults to\n -1.\n\n Parameters\n ---------------...
46
false
hammerlab/stanity
fit
20,900
LDU_FT/merll/docker-map/addgroupuser
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 addgroupuser API. 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 addgroupuser API. 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...
Generates a unix command line for creating user and group with the same name, assigning the user to the group. Has the same effect as combining :func:`~addgroup`, :func:`~adduser`, and :func:`~assignuser`. :param username: User name to create. :type username: unicode | str :param uid: User id to use. ...
"Generates a unix command line for creating user and group with the same name, assigning the user to the group.\n Has the same effect as combining :func:`~addgroup`, :func:`~adduser`, and :func:`~assignuser`.\n\n :param username: User name to create.\n :type username: unicode | str\n :param uid: User id to ...
584
false
merll/docker-map
addgroupuser
20,901
LDU_FT/dgketchum/satellite_image/potential_cloud_layer
LDU_FT
[ "<BEGIN>\n## `_scene_centroid`", "Compute image center coordinates\n :return: Tuple of image center in lat, lon\n<END>", "<BEGIN>\n## `earth_sun_d`", "Earth-sun distance in AU", " :param dtime time, e.g. datetime.datetime(2007, 5, 1)\n :type datetime object\n :return float(distan...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the potential_cloud_layer 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 potential_cloud_layer API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Final step of determining potential cloud layer Equation 18 (Zhu and Woodcock, 2012) Saturation (green or red) test is not in the algorithm Parameters ---------- pcps: ndarray potential cloud pixels water: ndarray water mask ...
"Final step of determining potential cloud layer\n Equation 18 (Zhu and Woodcock, 2012)\n \n Saturation (green or red) test is not in the algorithm\n \n Parameters\n ----------\n pcps: ndarray\n potential cloud pixels\n water: ndarray\n water...
86
false
dgketchum/satellite_image
potential_cloud_layer
20,902
LDU_FT/mswart/pyopenmensa/extractDate
LDU_FT
[ "<BEGIN>\n## `extractDate`", "Tries to extract a date from a given :obj:`str`.", " :param str text: Input date. A :obj:`datetime.date` object is passed\n thought without modification.\n :rtype: :obj:`datetime.date`\n<END>", "<BEGIN>\n## `convertPrice`", "Helper function to convert ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the extractDate API. 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 extractDate API. 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...
Tries to extract a date from a given :obj:`str`. :param str text: Input date. A :obj:`datetime.date` object is passed thought without modification. :rtype: :obj:`datetime.date`
"Tries to extract a date from a given :obj:`str`.\n\n :param str text: Input date. A :obj:`datetime.date` object is passed\n thought without modification.\n :rtype: :obj:`datetime.date`"
43
false
mswart/pyopenmensa
extractDate
20,903
LDU_FT/lokhman/pydbal/insert
LDU_FT
[ "<BEGIN>\n## `locked`", "Context generator for `with` statement, yields thread-safe connection.", " :return: thread-safe connection\n :rtype: pydbal.connection.Connection\n<END>", "<BEGIN>\n## `query`", "Executes an SQL SELECT query and returns rows generator.", " :param sql: query to...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the insert API. 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 insert API. 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 ...
Inserts a table row with specified data. :param table: the expression of the table to insert data into, quoted or unquoted :param values: a dictionary containing column-value pairs :return: last inserted ID
"Inserts a table row with specified data.\n\n :param table: the expression of the table to insert data into, quoted or unquoted\n :param values: a dictionary containing column-value pairs\n :return: last inserted ID"
84
false
lokhman/pydbal
insert
20,904
LDU_FT/KnuVerse/knuverse-sdk-python/events_login
LDU_FT
[ "<BEGIN>\n## `_auth`", "Makes sure the request has a valid authorization jwt before calling the wrapped function.\n It does this by checking the timestamp of the last jwt and if > 10 minutes have elapsed,\n it refreshes it's existing jwt from the server.\n Args:\n f: Function to wr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the events_login API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the events_login API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
Get all login events. Uses GET to /events/login interface. :Returns: (list) Events
"Get all login events. Uses GET to /events/login interface.\n\n :Returns: (list) Events"
138
false
KnuVerse/knuverse-sdk-python
events_login
20,905
LDU_FT/honzajavorek/redis-collections/_clear
LDU_FT
[ "<BEGIN>\n## `getmany`", "Return a list of values corresponding to the keys in the iterable of\n *keys*.\n If a key is not present in the collection, its corresponding value will\n be :obj:`None`.", " .. note::\n This method is not implemented by standard Python dictionary...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _clear API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _clear API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Helper for clear operations. :param pipe: Redis pipe in case update is performed as a part of transaction. :type pipe: :class:`redis.client.StrictPipeline` or :class:`redis.client.StrictRedis`
"Helper for clear operations.\n\n :param pipe: Redis pipe in case update is performed as a part\n of transaction.\n :type pipe: :class:`redis.client.StrictPipeline` or\n :class:`redis.client.StrictRedis`"
147
false
honzajavorek/redis-collections
_clear
20,906
LDU_FT/cvxopt/chompack/maxchord
LDU_FT
[ "<BEGIN>\n## `symb_to_block`", "Maps a symbolic factorization to a block-diagonal structure with\n coupling constraints.", " :param symb: :py:class:`symbolic`\n :param coupling: optional \n :return dims: list of block dimensions\n :return sparse_to_block: di...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the maxchord API. 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 maxchord API. 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...
Maximal chordal subgraph of sparsity graph. Returns a lower triangular sparse matrix which is the projection of :math:`A` on a maximal chordal subgraph and a perfect elimination order :math:`p`. Only the lower triangular part of :math:`A` is accessed. The optional argument `ve` is the index of the ...
"Maximal chordal subgraph of sparsity graph.\n\n Returns a lower triangular sparse matrix which is the projection\n of :math:`A` on a maximal chordal subgraph and a perfect\n elimination order :math:`p`. Only the\n lower triangular part of :math:`A` is accessed. The\n optional argument `ve` is the index ...
215
false
cvxopt/chompack
maxchord
20,907
LDU_FT/nschloe/orthopy/jacobi
LDU_FT
[ "<BEGIN>\n## `clenshaw`", "Clenshaw's algorithm for evaluating", " S(t) = \\\\sum a_k P_k(alpha, beta)(t)", " where P_k(alpha, beta) is the kth orthogonal polynomial defined by the\n recurrence coefficients alpha, beta.", " See <https://en.wikipedia.org/wiki/Clenshaw_algorithm> for details.\n<EN...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the jacobi API. 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 jacobi API. 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 ...
Generate the recurrence coefficients a_k, b_k, c_k in P_{k+1}(x) = (a_k x - b_k)*P_{k}(x) - c_k P_{k-1}(x) for the Jacobi polynomials which are orthogonal on [-1, 1] with respect to the weight w(x)=[(1-x)^alpha]*[(1+x)^beta]; see <https://en.wikipedia.org/wiki/Jacobi_polynomials#Recurrence_relations>.
"Generate the recurrence coefficients a_k, b_k, c_k in\n\n P_{k+1}(x) = (a_k x - b_k)*P_{k}(x) - c_k P_{k-1}(x)\n\n for the Jacobi polynomials which are orthogonal on [-1, 1]\n with respect to the weight w(x)=[(1-x)^alpha]*[(1+x)^beta]; see\n <https://en.wikipedia.org/wiki/Jacobi_polynomials#Recurrence_rela...
47
false
nschloe/orthopy
jacobi
20,908
LDU_FT/hyperledger/sawtooth-core/add_send_message
LDU_FT
[ "<BEGIN>\n## `run_callback`", "Calls the callback_func, passing in the two positional arguments,\n conditionally waiting if the callback function hasn't been set yet.\n Meant to be run in a threadpool owned by the FutureCollection.", " Returns:\n None\n<END>", "<BEGIN>\n## `add...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_send_message API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_send_message API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Adds a send_message function to the Dispatcher's dictionary of functions indexed by connection. Args: connection (str): A locally unique identifier provided by the receiver of messages. send_message (fn): The method that should be called by the di...
"Adds a send_message function to the Dispatcher's\n dictionary of functions indexed by connection.\n\n Args:\n connection (str): A locally unique identifier\n provided by the receiver of messages.\n send_message (fn): The method that should be called\n b...
876
false
hyperledger/sawtooth-core
add_send_message
20,909
LDU_FT/kennknowles/python-jsonpath-rw/p_jsonpath_binop
LDU_FT
[ "<BEGIN>\n## `tokenize`", "Maps a string to an iterator over tokens. In other words: [char] -> [token]\n<END>", "<BEGIN>\n## `child`", "Equivalent to Child(self, next) but with some canonicalization\n<END>", "<BEGIN>\n## `id_pseudopath`", "Looks like a path, but with ids stuck in when available\n<END>", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the p_jsonpath_binop API. 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 p_jsonpath_binop API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
jsonpath : jsonpath '.' jsonpath | jsonpath DOUBLEDOT jsonpath | jsonpath WHERE jsonpath | jsonpath '|' jsonpath | jsonpath '&' jsonpath
"jsonpath : jsonpath '.' jsonpath \n | jsonpath DOUBLEDOT jsonpath\n | jsonpath WHERE jsonpath\n | jsonpath '|' jsonpath\n | jsonpath '&' jsonpath"
10
false
kennknowles/python-jsonpath-rw
p_jsonpath_binop
20,910
LDU_FT/cloudmesh-cmd3/cmd3/do_loglevel
LDU_FT
[ "<BEGIN>\n## `do_clear`", "Usage:\n clear", " Clears the screen.\n<END>", "<BEGIN>\n## `do_banner`", "::", " Usage:\n banner [-c CHAR] [-n WIDTH] [-i INDENT] [-r COLOR] TEXT", " Arguments:\n TEXT The text message from which to creat...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the do_loglevel API. 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 do_loglevel API. 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...
:: Usage: loglevel loglevel critical loglevel error loglevel warning loglevel info loglevel debug Shows current log level or changes it. loglevel - shows current log level critical ...
"::\n\n Usage:\n loglevel\n loglevel critical\n loglevel error\n loglevel warning\n loglevel info\n loglevel debug\n\n Shows current log level or changes it.\n\n loglevel - shows current log level\n ...
184
false
cloudmesh-cmd3/cmd3
do_loglevel
20,911
LDU_FT/inspirehep/inspire-schemas/_append_to
LDU_FT
[ "<BEGIN>\n## `filter_empty_parameters`", "Decorator that is filtering empty parameters.", " :param func: function that you want wrapping\n :type func: function\n<END>", "<BEGIN>\n## `author_id_normalize_and_schema`", "Detect and normalize an author UID schema.", " Args:\n uid (string): a U...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _append_to API. 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 _append_to API. 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...
Append the ``element`` to the ``field`` of the record. This method is smart: it does nothing if ``element`` is empty and creates ``field`` if it does not exit yet. Args: :param field: the name of the field of the record to append to :type field: string :para...
"Append the ``element`` to the ``field`` of the record.\n\n This method is smart: it does nothing if ``element`` is empty and\n creates ``field`` if it does not exit yet.\n\n Args:\n :param field: the name of the field of the record to append to\n :type field: string\n ...
290
false
inspirehep/inspire-schemas
_append_to
20,912
LDU_FT/reportportal/client-Python/log
LDU_FT
[ "<BEGIN>\n## `start`", "Start the listener.", " This starts up a background thread to monitor the queue for\n items to process.\n<END>", "<BEGIN>\n## `handle`", "Handle an item.", " This just loops through the handlers offering them the record\n to handle.\n<END>", "<BEGIN>\n...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the log API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the log API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
Logs a message with attachment. The attachment is a dict of: name: name of attachment data: file content mime: content type for attachment
"Logs a message with attachment.\n\n The attachment is a dict of:\n name: name of attachment\n data: file content\n mime: content type for attachment"
27
false
reportportal/client-Python
log
20,913
LDU_FT/skulumani/kinematics/dcmtoquat
LDU_FT
[ "<BEGIN>\n## `rand`", "Random vector from the n-Sphere", " This function will return a random vector which is an element of the n-Sphere.\n The n-Sphere is defined as a vector in R^n+1 with a norm of one. ", " Basically, we'll find a random vector in R^n+1 and normalize it. \n This uses the method...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the dcmtoquat API. 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 dcmtoquat API. 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...
Convert DCM to quaternion This function will convert a rotation matrix, also called a direction cosine matrix into the equivalent quaternion. Parameters: ---------- dcm - (3,3) numpy array Numpy rotation matrix which defines a rotation from the b to a frame Returns: -------- ...
"Convert DCM to quaternion\n \n This function will convert a rotation matrix, also called a direction\n cosine matrix into the equivalent quaternion.\n\n Parameters:\n ----------\n dcm - (3,3) numpy array\n Numpy rotation matrix which defines a rotation from the b to a frame\n\n Returns:\n ...
59
false
skulumani/kinematics
dcmtoquat
20,914
LDU_FT/faucamp/python-gsmmodem/dial
LDU_FT
[ "<BEGIN>\n## `status`", "Status of this SMS. Can be ENROUTE, DELIVERED or FAILED", " The actual status report object may be accessed via the 'report' attribute\n if status is 'DELIVERED' or 'FAILED'\n<END>", "<BEGIN>\n## `connect`", "Opens the port and initializes the modem and SIM card", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the dial API. 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 dial API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
Calls the specified phone number using a voice phone call :param number: The phone number to dial :param timeout: Maximum time to wait for the call to be established :param callStatusUpdateCallbackFunc: Callback function that is executed if the call's status changes due to remote...
"Calls the specified phone number using a voice phone call\n\n :param number: The phone number to dial\n :param timeout: Maximum time to wait for the call to be established\n :param callStatusUpdateCallbackFunc: Callback function that is executed if the call's status changes due to\n ...
214
false
faucamp/python-gsmmodem
dial
20,915
LDU_FT/doakey3/DashTable/is_header
LDU_FT
[ "<BEGIN>\n## `check_table`", "Ensure the table is valid for converting to grid table.", " * The table must a list of lists\n * Each row must contain the same number of columns\n * The table must not be empty", " Parameters\n ----------\n table : list of lists of str\n The list of rows...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_header API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_header API. 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...
Whether or not the cell is a header Any header cell will have "=" instead of "-" on its border. For example, this is a header cell:: +-----+ | foo | +=====+ while this cell is not:: +-----+ | foo | +-----+ Retu...
"Whether or not the cell is a header\n\n Any header cell will have \"=\" instead of \"-\" on its border.\n\n For example, this is a header cell::\n\n +-----+\n | foo |\n +=====+\n\n while this cell is not::\n\n +-----+\n | foo |\n +-...
230
false
doakey3/DashTable
is_header
20,916
LDU_FT/abiiranathan/db2/exists
LDU_FT
[ "<BEGIN>\n## `add`", "Insert a record to the table \n emp = Employee(emp_id=1, name='Jane Doe', sex='Female')\n inserted = Session().add(emp)\n Returns a bool or raises mysql.Error exception\n<END>", "<BEGIN>\n## `update`", "Update a record to the table \n emp = Employee(emp_id=1, ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the exists API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the exists API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Check if a record of id==ID exists in table model_class.__name__.lower()
"Check if a record of id==ID exists in table model_class.__name__.lower()"
20
false
abiiranathan/db2
exists
20,917
LDU_FT/DecBayComp/RWA-python/unsafe_peek
LDU_FT
[ "<BEGIN>\n## `hdf5_storable`", "Registers a `Storable` instance in the global service.\n<END>", "<BEGIN>\n## `isreference`", "Tell whether a variable is an object reference.", " Due to garbage collection, some objects happen to get the id of a distinct variable.\n As a consequence, linking is not read...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the unsafe_peek API. 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 unsafe_peek API. 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...
Deserialize all the attributes available in the container and pass them in the same order as they come in the container. This is a factory function; returns the actual `peek` routine. Arguments: init: type constructor. Returns: callable: deserializer (`peek` routine).
"Deserialize all the attributes available in the container and pass them in the same order\n as they come in the container.\n\n This is a factory function; returns the actual `peek` routine.\n\n Arguments:\n\n init: type constructor.\n\n Returns:\n\n callable: deserializer (`peek` routine)."
130
false
DecBayComp/RWA-python
unsafe_peek
20,918
LDU_FT/captin411/ofxclient/from_ofxparse
LDU_FT
[ "<BEGIN>\n## `is_secure_option`", "Test an option to see if it is secured or not.", " :param section: section id\n :type section: string\n :param option: option name\n :type option: string\n :rtype: boolean\n otherwise.\n<END>", "<BEGIN>\n## `items`", "Get all items...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the from_ofxparse API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the from_ofxparse API. 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...
Instantiate :py:class:`ofxclient.Account` subclass from ofxparse module :param data: an ofxparse account :type data: An :py:class:`ofxparse.Account` object :param institution: The parent institution of the account :type institution: :py:class:`ofxclient.Institution` object
"Instantiate :py:class:`ofxclient.Account` subclass from ofxparse\n module\n\n :param data: an ofxparse account\n :type data: An :py:class:`ofxparse.Account` object\n :param institution: The parent institution of the account\n :type institution: :py:class:`ofxclient.Institution` objec...
93
false
captin411/ofxclient
from_ofxparse
20,919
LDU_FT/ncclient/ncclient/_parse10
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 _parse10 API. 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 _parse10 API. 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...
Messages are delimited by MSG_DELIM. The buffer could have grown by a maximum of BUF_SIZE bytes everytime this method is called. Retains state across method calls and if a chunk has been read it will not be considered again.
"Messages are delimited by MSG_DELIM. The buffer could have grown by\n a maximum of BUF_SIZE bytes everytime this method is called. Retains\n state across method calls and if a chunk has been read it will not be\n considered again."
179
false
ncclient/ncclient
_parse10
20,920
LDU_FT/evyatarmeged/Raccoon/fuzz_all
LDU_FT
[ "<BEGIN>\n## `_extract_from_sans`", "Looks for different TLDs as well as different sub-domains in SAN list\n<END>", "<BEGIN>\n## `_detect_cms`", "Detect CMS using whatcms.org.\n Has a re-try mechanism because false negatives may occur\n :param tries: Count of tries for CMS discovery\n<END>", "...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the fuzz_all API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the fuzz_all API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
Create a pool of threads and exhaust self.wordlist on self._fetch Should be run in an event loop. :param sub_domain: Indicate if this is subdomain enumeration or URL busting :param log_file_path: Log subdomain enum results to this path.
"Create a pool of threads and exhaust self.wordlist on self._fetch\n Should be run in an event loop.\n :param sub_domain: Indicate if this is subdomain enumeration or URL busting\n :param log_file_path: Log subdomain enum results to this path."
27
false
evyatarmeged/Raccoon
fuzz_all
20,921
LDU_FT/etcher-be/elib_miz/groups
LDU_FT
[ "<BEGIN>\n## `reorder`", "Re-orders a miz file into a folder (flattened)", " Args:\n miz_file_path: source miz file\n target_dir: folder to flatten the content into\n skip_options_file: do not re-order option file\n<END>", "<BEGIN>\n## `decode`", "Decodes the mission ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the groups API. 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 groups API. 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 ...
Iterates over all groups Returns: generator of Group
"Iterates over all groups\n\n Returns: generator of Group"
100
false
etcher-be/elib_miz
groups
20,922
LDU_FT/geertj/pyskiplist/replace
LDU_FT
[ "<BEGIN>\n## `remove`", "Remove a node from the list.", " The *node* argument must be a node that was previously inserted in the\n list\n<END>", "<BEGIN>\n## `insert`", "Insert a key-value pair in the list.", " The pair is inserted at the correct location so that the list remains\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the replace API. 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 replace API. 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...
Replace the value of the first key-value pair with key *key*. If the key was not found, the pair is inserted.
"Replace the value of the first key-value pair with key *key*.\n\n If the key was not found, the pair is inserted."
34
false
geertj/pyskiplist
replace
20,923
LDU_FT/glitchassassin/lackey/exists
LDU_FT
[ "<BEGIN>\n## `_check_count`", "Private function to return ctypes errors cleanly\n<END>", "<BEGIN>\n## `getScreenBounds`", "Returns the screen size of the specified monitor (0 being the main monitor).\n<END>", "<BEGIN>\n## `getScreenDetails`", "Return list of attached monitors", " For each monitor...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the exists API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the exists API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Searches for an image pattern in the given region Returns Match if pattern exists, None otherwise (does not throw exception) Sikuli supports OCR search with a text parameter. This does not (yet).
"Searches for an image pattern in the given region\n\n Returns Match if pattern exists, None otherwise (does not throw exception)\n Sikuli supports OCR search with a text parameter. This does not (yet)."
378
false
glitchassassin/lackey
exists
20,924
LDU_FT/jasonbot/arcrest/UpdateFeatures
LDU_FT
[ "<BEGIN>\n## `_get_subfolder`", "Return an object of the requested type with the path relative\n to the current object's URL. Optionally, query parameters\n may be set.\n<END>", "<BEGIN>\n## `_contents`", "The raw contents of the URL as fetched, this is done lazily.\n For non-laz...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the UpdateFeatures API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the UpdateFeatures API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
This operation updates features to the associated feature layer or table (POST only). The update features operation is performed on a feature service layer resource. The result of this operation is an array of edit results. Each edit result identifies a single feature and ind...
"This operation updates features to the associated feature layer or\n table (POST only). The update features operation is performed on a\n feature service layer resource. The result of this operation is an\n array of edit results. Each edit result identifies a single feature\n an...
66
false
jasonbot/arcrest
UpdateFeatures
20,925
LDU_FT/vmagamedov/grpclib/extend
LDU_FT
[ "<BEGIN>\n## `extend`", "Extends services list with reflection service:", " .. code-block:: python3", " from grpclib.reflection.service import ServerReflection", " services = [Greeter()]\n services = ServerReflection.extend(services)", " server = Server(s...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the extend API. 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 extend API. 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 ...
Extends services list with reflection service: .. code-block:: python3 from grpclib.reflection.service import ServerReflection services = [Greeter()] services = ServerReflection.extend(services) server = Server(services, loop=loop) ... Ret...
"Extends services list with reflection service:\n\n .. code-block:: python3\n\n from grpclib.reflection.service import ServerReflection\n\n services = [Greeter()]\n services = ServerReflection.extend(services)\n\n server = Server(services, loop=loop)\n ...\n...
106
false
vmagamedov/grpclib
extend
20,926
LDU_FT/elsampsa/valkka-live/set_country
LDU_FT
[ "<BEGIN>\n## `run`", "After the fork. Now the process starts running\n<END>", "<BEGIN>\n## `preRun_`", "Create the shared memory client immediately after fork\n<END>", "<BEGIN>\n## `run`", "After the fork. Now the process starts running\n<END>", "<BEGIN>\n## `activate_`", "Shared mem info is given. N...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_country API. 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 set_country API. 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...
This sets the country for detecting license plates. For example, setting country to "us" for United States or "eu" for Europe. :param country: A unicode/ascii string (Python 2/3) or bytes array (Python 3) :return: None
"This sets the country for detecting license plates. For example,\n setting country to \"us\" for United States or \"eu\" for Europe.\n\n :param country: A unicode/ascii string (Python 2/3) or bytes array (Python 3)\n :return: None"
135
false
elsampsa/valkka-live
set_country
20,927
LDU_FT/ldomic/lintools/count_by_type
LDU_FT
[ "<BEGIN>\n## `draw_hydrogen_bonds`", "For each bond that has been determined to be important, a line gets drawn.\n<END>", "<BEGIN>\n## `draw_salt_bridges`", "For each bond that has been determined to be important, a line gets drawn.\n<END>", "<BEGIN>\n## `change_lines_in_svg`", "Used to change lines in an...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the count_by_type API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the count_by_type API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
Count how many times each individual salt bridge occured throughout the simulation. Returns numpy array.
"Count how many times each individual salt bridge occured throughout the simulation.\n Returns numpy array."
117
false
ldomic/lintools
count_by_type
20,928
LDU_FT/FNNDSC/chrisapp/save_json_representation
LDU_FT
[ "<BEGIN>\n## `path`", "Define the 'path' data type that can be used by apps.\n<END>", "<BEGIN>\n## `get_json_representation`", "Return a JSON object with a representation of this app (type and parameters).\n<END>", "<BEGIN>\n## `save_json_representation`", "Save the app's JSON representation object to a J...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the save_json_representation API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the save_json_representation API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio...
Save the app's JSON representation object to a JSON file.
"Save the app's JSON representation object to a JSON file."
16
false
FNNDSC/chrisapp
save_json_representation
20,929
LDU_FT/martinkosir/neverbounce-python/verify
LDU_FT
[ "<BEGIN>\n## `verify`", "Verify a single email address.\n :param str email: Email address to verify.\n :return: A VerifiedEmail object.\n<END>", "<BEGIN>\n## `create_job`", "Create a new bulk verification job for the list of emails.\n :param list emails: Email addresses to verify.\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the verify API. 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 verify API. 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 ...
Verify a single email address. :param str email: Email address to verify. :return: A VerifiedEmail object.
"Verify a single email address.\n :param str email: Email address to verify.\n :return: A VerifiedEmail object."
22
false
martinkosir/neverbounce-python
verify
20,930
LDU_FT/tylerbutler/engineer/is_published
LDU_FT
[ "<BEGIN>\n## `ensure_exists`", "Ensures a given path *p* exists.", " If a path to a file is passed in, then the path to the file will be checked. This can be overridden by passing a\n value of ``True`` to ``assume_dirs``, in which case the paths will be assumed to be to directories, not files.\n<END>", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_published API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_published API. 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...
``True`` if the post is published, ``False`` otherwise.
"``True`` if the post is published, ``False`` otherwise."
44
false
tylerbutler/engineer
is_published
20,931
LDU_FT/cdeboever3/cdpybio/plot_variance_explained
LDU_FT
[ "<BEGIN>\n## `get_region_nt_counts`", "Get counts of each nucleotide from a bam file for a given region. If R1 and\n R2 reads both overlap a position, only one count will be added. If the R1\n and R2 reads disagree at a position they both overlap, that read pair is not\n used for that position. Can opti...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the plot_variance_explained 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 plot_variance_explained API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion...
Plot amount of variance explained by each principal component. Parameters ---------- num_pc : int Number of principal components to plot. If None, plot all. cumulative : bool If True, include cumulative variance. xtick_start : int ...
"Plot amount of variance explained by each principal component.\n \n Parameters\n ----------\n num_pc : int\n Number of principal components to plot. If None, plot all.\n \n cumulative : bool\n If True, include cumulative variance.\n \n xtick_start : int...
387
false
cdeboever3/cdpybio
plot_variance_explained
20,932
LDU_FT/yuce/pyswip/str_to_bytes
LDU_FT
[ "<BEGIN>\n## `getAtomChars`", "If t is an atom, return it as a string, otherwise raise InvalidTypeError.\n<END>", "<BEGIN>\n## `getBool`", "If t is of type bool, return it, otherwise raise InvalidTypeError.\n<END>", "<BEGIN>\n## `getLong`", "If t is of type long, return it, otherwise raise InvalidTypeErro...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the str_to_bytes API. 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 str_to_bytes API. 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...
Turns a string into a bytes if necessary (i.e. if it is not already a bytes object or None). If string is None, int or c_char_p it will be returned directly. :param string: The string that shall be transformed :type string: str, bytes or type(None) :return: Transformed string :rtype: c_char_p c...
"Turns a string into a bytes if necessary (i.e. if it is not already a bytes\n object or None).\n If string is None, int or c_char_p it will be returned directly.\n\n :param string: The string that shall be transformed\n :type string: str, bytes or type(None)\n :return: Transformed string\n :rtype: c_...
64
false
yuce/pyswip
str_to_bytes
20,933
LDU_FT/bcbio/bcbio-nextgen/_get_multiplier
LDU_FT
[ "<BEGIN>\n## `groom`", "Grooms a FASTQ file from Illumina 1.3/1.5 quality scores into\n sanger format, if it is not already in that format.\n<END>", "<BEGIN>\n## `filter_single_reads_by_length`", "removes reads from a fastq file which are shorter than a minimum\n length\n<END>", "<BEGIN>\n## `filter_r...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_multiplier API. 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_multiplier API. 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...
Get multiplier to get jobs only for samples that have input
"Get multiplier to get jobs\n only for samples that have input"
3,670
true
bcbio/bcbio-nextgen
_get_multiplier
20,934
LDU_FT/aio-libs/aiohttp/_send_frame
LDU_FT
[ "<BEGIN>\n## `_cleanup_closed`", "Double confirmation for transport close.\n Some broken ssl servers may leave socket open without proper close.\n<END>", "<BEGIN>\n## `_available_connections`", "Return number of available connections taking into account\n the limit, limit_per_host and the connec...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _send_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 extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _send_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 extra...
Send a frame over the websocket with message as its payload.
"Send a frame over the websocket with message as its payload."
233
false
aio-libs/aiohttp
_send_frame
20,935
LDU_FT/misli/django-cms-articles/get_article_from_slug
LDU_FT
[ "<BEGIN>\n## `_get_article_by_untyped_arg`", "The `article_lookup` argument can be of any of the following types:\n - Integer: interpreted as `pk` of the desired article\n - `dict`: a dictionary containing keyword arguments to find the desired article\n (for instance: `{'pk': 1}`)\n - `Article`: you c...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_article_from_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. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_article_from_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. ...
Resolves a slug to a single article object. Returns None if article does not exist
"Resolves a slug to a single article object.\n Returns None if article does not exist"
32
false
misli/django-cms-articles
get_article_from_slug
20,936
LDU_FT/yoeo/guesslang/config_dict
LDU_FT
[ "<BEGIN>\n## `language_name`", "Predict the programming language name of the given source code.", " :param text: source code.\n :return: language name\n<END>", "<BEGIN>\n## `scores`", "A score for each language corresponding to the probability that\n the text is written in the given lan...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the config_dict API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the config_dict API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
Load a JSON configuration dict from Guesslang config directory. :param name: the JSON file name. :return: configuration
"Load a JSON configuration dict from Guesslang config directory.\n\n :param name: the JSON file name.\n :return: configuration"
38
false
yoeo/guesslang
config_dict
20,937
LDU_FT/rameshg87/pyremotevbox/getWSDL
LDU_FT
[ "<BEGIN>\n## `_check_typecode_list`", "Check a list of typecodes for compliance with Struct\n requirements.\n<END>", "<BEGIN>\n## `_get_type_or_substitute`", "return typecode or substitute type for wildcard or\n derived type. For serialization only.\n<END>", "<BEGIN>\n## `setDerivedTypeContents`", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the getWSDL API. 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 getWSDL API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
Return the WSDL object that contains this information item.
"Return the WSDL object that contains this information item."
529
false
rameshg87/pyremotevbox
getWSDL
20,938
LDU_FT/jobec/django-auth-adfs/update_user_flags
LDU_FT
[ "<BEGIN>\n## `_get_settings_class`", "Get the AUTH_ADFS setting from the Django settings.\n<END>", "<BEGIN>\n## `build_authorization_endpoint`", "This function returns the ADFS authorization URL.", " Args:\n request(django.http.request.HttpRequest): A django Request object\n dis...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update_user_flags API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update_user_flags API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Updates user boolean attributes based on the BOOLEAN_CLAIM_MAPPING setting. Args: user (django.contrib.auth.models.User): User model instance claims (dict): Claims from the access token
"Updates user boolean attributes based on the BOOLEAN_CLAIM_MAPPING setting.\n\n Args:\n user (django.contrib.auth.models.User): User model instance\n claims (dict): Claims from the access token"
26
false
jobec/django-auth-adfs
update_user_flags
20,939
LDU_FT/EVEprosper/ProsperCommon/read_config
LDU_FT
[ "<BEGIN>\n## `render_secrets`", "combine a jinja template with a secret .ini file", " Args:\n config_path (str): path to .cfg file with jinja templating\n secret_path (str): path to .ini-like secrets file", " Returns:\n ProsperConfig: rendered configuration object\n<END>", "<BEGIN...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the read_config API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the read_config API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
fetch and parse config file Args: config_filepath (str): path to config file. abspath > relpath logger (:obj:`logging.Logger`): logger to catch error msgs
"fetch and parse config file\n\n Args:\n config_filepath (str): path to config file. abspath > relpath\n logger (:obj:`logging.Logger`): logger to catch error msgs"
115
false
EVEprosper/ProsperCommon
read_config
20,940
LDU_FT/BD2KOnFHIR/i2b2model/add_or_update_records
LDU_FT
[ "<BEGIN>\n## `change_column_length`", "Change the column length in the supplied table\n<END>", "<BEGIN>\n## `_db_urls`", "Return the crc and ontology db urls\n :param opts: options\n :return: Tuple w/ crc and ontology url\n<END>", "<BEGIN>\n## `_tables`", "Return a list of all known tables a...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_or_update_records 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 add_or_update_records API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Add or update the observation_fact table as needed to reflect the contents of records :param tables: i2b2 sql connection :param records: records to apply :return: number of records added / modified
"Add or update the observation_fact table as needed to reflect the contents of records\n :param tables: i2b2 sql connection\n :param records: records to apply\n :return: number of records added / modified"
64
false
BD2KOnFHIR/i2b2model
add_or_update_records
20,941
LDU_FT/pseudo-lang/pseudo/generate_from_yaml
LDU_FT
[ "<BEGIN>\n## `safe_serialize_type`", "serialize only with letters, numbers and _\n<END>", "<BEGIN>\n## `generate`", "generates code based on templates and gen functions\n defined in the <x> lang generator\n<END>", "<BEGIN>\n## `_parse_template`", "Pare smart indented templates", " Takes a ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the generate_from_yaml API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the generate_from_yaml API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
generate output code in `language` converts yaml input to a Node-based pseudo internal tree and passes it to `generate
"generate output code in `language`\n\n converts yaml input to a Node-based pseudo internal tree and\n passes it to `generate"
34
false
pseudo-lang/pseudo
generate_from_yaml
20,942
LDU_FT/shapiromatron/bmds/drop_dose
LDU_FT
[ "<BEGIN>\n## `as_dfile`", "Return the dataset representation in BMDS .(d) file.", " Example\n -------\n >>> print(dataset.as_dfile())\n Dose Incidence NEGATIVE_RESPONSE\n 0.000000 5 70\n 1.960000 1 48\n 5.690000 3 47\n 29.750000 14 35\n<END>", "<BEGIN>\n...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the drop_dose API. 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 drop_dose API. 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...
Drop the maximum dose and related response values.
"Drop the maximum dose and related response values."
113
false
shapiromatron/bmds
drop_dose
20,943
LDU_FT/reanahub/reana-commons/check_predefined_conditions
LDU_FT
[ "<BEGIN>\n## `click_table_printer`", "Generate space separated output for click commands.\n<END>", "<BEGIN>\n## `calculate_job_input_hash`", "Calculate md5 hash of job specification and workflow json.\n<END>", "<BEGIN>\n## `calculate_file_access_time`", "Calculate access times of files in workspace.\n<END...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the check_predefined_conditions 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 check_predefined_conditions API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclu...
Check k8s predefined conditions for the nodes.
"Check k8s predefined conditions for the nodes."
45
false
reanahub/reana-commons
check_predefined_conditions
20,944
LDU_FT/fjwCode/cerium/screenrecord
LDU_FT
[ "<BEGIN>\n## `version`", "Show the version number of Android Debug Bridge.\n<END>", "<BEGIN>\n## `devices_l`", "List connected devices (-l for long output).\n<END>", "<BEGIN>\n## `connect`", "Connect to a device via TCP/IP directly.\n<END>", "<BEGIN>\n## `disconnect`", "Disconnect from given TCP/IP de...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the screenrecord API. 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 screenrecord API. 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...
Recording the display of devices running Android 4.4 (API level 19) and higher. Args: bit_rate:You can increase the bit rate to improve video quality, but doing so results in larger movie files. time_limit: Sets the maximum recording time, in seconds, and the maximum value is 180 (3 min...
"Recording the display of devices running Android 4.4 (API level 19) and higher.\n\n Args:\n bit_rate:You can increase the bit rate to improve video quality, but doing so results in larger movie files.\n time_limit: Sets the maximum recording time, in seconds, and the maximum value is 180 (...
95
false
fjwCode/cerium
screenrecord
20,945
LDU_FT/lobocv/anonymoususage/get_rows
LDU_FT
[ "<BEGIN>\n## `get_average`", "Return the statistic's count divided by the number of rows in the table. If it cannot be calculated return\n `default`.\n :return: The average count value (count / table rows) or `default` if it cannot be calculated.\n<END>", "<BEGIN>\n## `elapsed_time_s`", "Return ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_rows API. 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 get_rows API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
Return all the rows in a table from dbconn :param dbconn: database connection :param tablename: name of the table :return: List of sqlite3.Row objects
"Return all the rows in a table from dbconn\n :param dbconn: database connection\n :param tablename: name of the table\n :return: List of sqlite3.Row objects"
60
false
lobocv/anonymoususage
get_rows
20,946
LDU_FT/pulumi/pulumi/debug
LDU_FT
[ "<BEGIN>\n## `do_rpc`", "Wraps a given RPC function by producing an awaitable function suitable to be run in the asyncio\n event loop. The wrapped function catches all unhandled exceptions and reports them to the exception\n future, which consumers can await upon to listen for unhandled exceptions."...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the debug API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the debug API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
Logs a message to the Pulumi CLI's debug channel, associating it with a resource and stream_id if provided. :param str msg: The message to send to the Pulumi CLI. :param Optional[Resource] resource: If provided, associate this message with the given resource in the Pulumi CLI. :param Optional[int] stre...
"Logs a message to the Pulumi CLI's debug channel, associating it with a resource\n and stream_id if provided.\n\n :param str msg: The message to send to the Pulumi CLI.\n :param Optional[Resource] resource: If provided, associate this message with the given resource in the Pulumi CLI.\n :param Optional[int...
98
false
pulumi/pulumi
debug
20,947
LDU_FT/EdwinvO/pyutillib/last_year
LDU_FT
[ "<BEGIN>\n## `previous_weekday`", "Returns the last weekday before date", " Args:\n date (datetime or datetime.date)\n Returns:\n (datetime or datetime.date)\n Raises:\n -\n<END>", "<BEGIN>\n## `next_weekday`", "Return the first weekday after date", " Args:\n date (...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the last_year API. 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 last_year API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
Returns the same date 1 year ago. Args: date (datetime or datetime.date) Returns: (datetime or datetime.date) Raises: -
"Returns the same date 1 year ago.\n\n Args:\n date (datetime or datetime.date)\n Returns:\n (datetime or datetime.date)\n Raises:\n -"
49
false
EdwinvO/pyutillib
last_year
20,948
LDU_FT/hendrix/hendrix/remove
LDU_FT
[ "<BEGIN>\n## `save_chat_message`", "kwargs will always include:", " 'data': \n # will always be exactly what your client sent on the socket\n # in this case...\n {u'message': u'hi', u'sender': u'anonymous', u'channel': u'homepage'},", " 'dispatcher': \n # the dispatcher tha...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the remove API. 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 remove API. 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 ...
removes a transport if a member of this group
"removes a transport if a member of this group"
119
false
hendrix/hendrix
remove
20,949
LDU_FT/theiviaxx/python-perforce/sync
LDU_FT
[ "<BEGIN>\n## `split_ls`", "Decorator to split files into manageable chunks as not to exceed the windows cmd limit", " :param func: Function to call for each chunk\n :type func: :py:class:Function\n<END>", "<BEGIN>\n## `status`", "The status of the connection to perforce\n<END>", "<BEGIN>\n## `run`",...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the sync API. 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 sync API. 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...
Syncs a file :param filename: File to check out :type filename: str :param connection: Connection object to use :type connection: :py:class:`Connection`
"Syncs a file\n\n :param filename: File to check out\n :type filename: str\n :param connection: Connection object to use\n :type connection: :py:class:`Connection`"
74
false
theiviaxx/python-perforce
sync
20,950
LDU_FT/ilblackdragon/django-misc/find_element
LDU_FT
[ "<BEGIN>\n## `filter`", "If id or pk was specified as a kwargs, return even if it's deleteted.\n<END>", "<BEGIN>\n## `formatrow`", "Internal function used to clean up the incoming excel data\n<END>", "<BEGIN>\n## `get_hierarchy_uploader`", "Returns uploader, that uses get_hierarch_path to store files\n<EN...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_element API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_element API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
When you have list like: a = [(0, 10), (1, 20), (2, 30)] and you need to get value from tuple with first value == index Usage: {% find_element 1 %} will return 20
"When you have list like: a = [(0, 10), (1, 20), (2, 30)] and you need to get value from tuple with first value == index\n Usage:\n {% find_element 1 %} will return 20"
49
false
ilblackdragon/django-misc
find_element
20,951
LDU_FT/Crypto-toolbox/bitex/start
LDU_FT
[ "<BEGIN>\n## `_restart_thread`", "Restarts subscription threads if their connection drops.\n :return:\n<END>", "<BEGIN>\n## `_subscription_thread`", "Thread Method, running the connection for each endpoint.\n :param endpoint:\n :return:\n<END>", "<BEGIN>\n## `start`", "Starts threads....
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the start API. 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 start API. 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...
Starts threads. Extend this in your child class. :return:
"Starts threads. Extend this in your child class.\n :return:"
79
false
Crypto-toolbox/bitex
start
20,952
LDU_FT/riggsd/davies/convert_filename
LDU_FT
[ "<BEGIN>\n## `lint`", "Run verbose PyLint on source. Optionally specify fmt=html for HTML output.\n<END>", "<BEGIN>\n## `azm`", "Corrected azimuth, taking into account backsight, declination, and compass corrections.\n<END>", "<BEGIN>\n## `inc`", "Corrected inclination, taking into account backsight and c...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the convert_filename API. 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 convert_filename API. 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 .TXT filename to a Therion .TH filename
"Convert a .TXT filename to a Therion .TH filename"
60
false
riggsd/davies
convert_filename
20,953
LDU_FT/bitshares/python-bitshares/set_proxy
LDU_FT
[ "<BEGIN>\n## `decodeRPCErrorMsg`", "Helper function to decode the raised Exception and give it a\n python Exception class\n<END>", "<BEGIN>\n## `transfer`", "Transfer an asset to another account.", " :param str to: Recipient\n :param float amount: Amount to transfer\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_proxy API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_proxy API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
Set a specific proxy for account :param bitshares.account.Account proxy_account: Account to be proxied :param str account: (optional) the account to allow access to (defaults to ``default_account``)
"Set a specific proxy for account\n\n :param bitshares.account.Account proxy_account: Account to be\n proxied\n :param str account: (optional) the account to allow access\n to (defaults to ``default_account``)"
116
false
bitshares/python-bitshares
set_proxy
20,954
LDU_FT/TeleSign/python_telesign/call
LDU_FT
[ "<BEGIN>\n## `score`", "Score is an API that delivers reputation scoring based on phone number intelligence, traffic patterns, machine\n learning, and a global data consortium.", " See https://developer.telesign.com/docs/score-api for detailed API documentation.\n<END>", "<BEGIN>\n## `generate_t...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the 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 extracted do...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the 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 extracted do...
Send a voice call to the target phone_number. See https://developer.telesign.com/docs/voice-api for detailed API documentation.
"Send a voice call to the target phone_number.\n\n See https://developer.telesign.com/docs/voice-api for detailed API documentation."
45
false
TeleSign/python_telesign
call
20,955
LDU_FT/Kautenja/nes-py/_get_args
LDU_FT
[ "<BEGIN>\n## `show`", "Show an array of pixels on the window.", " Args:\n frame (numpy.ndarray): the frame to show on the window", " Returns:\n None\n<END>", "<BEGIN>\n## `display_arr`", "Display an image to the pygame screen.", " Args:\n screen (pygame.Surf...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_args API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_args API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
Parse arguments from the command line and return them.
"Parse arguments from the command line and return them."
49
false
Kautenja/nes-py
_get_args
20,956
LDU_FT/da4089/simplefix/append_data
LDU_FT
[ "<BEGIN>\n## `add_raw`", "Define the tags used for a private raw data field.", " :param length_tag: tag number of length field.\n :param value_tag: tag number of value field.", " Data fields are not terminated by the SOH character as is usual for\n FIX, but instead have a second, p...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the append_data API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the append_data API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
Append raw data, possibly including a embedded SOH. :param len_tag: Tag number for length field. :param val_tag: Tag number for value field. :param data: Raw data byte string. :param header: Append to header if True; default to body. Appends two pairs: a length pair, followed b...
"Append raw data, possibly including a embedded SOH.\n\n :param len_tag: Tag number for length field.\n :param val_tag: Tag number for value field.\n :param data: Raw data byte string.\n :param header: Append to header if True; default to body.\n\n Appends two pairs: a length pair, fo...
79
false
da4089/simplefix
append_data
20,957
LDU_FT/gautammishra/lyft-rides-python-sdk/get_user_ride_history
LDU_FT
[ "<BEGIN>\n## `_build_headers`", "Create headers for the request.\n Parameters\n method (str)\n HTTP method (e.g. 'POST').\n auth_session (Session)\n The Session object containing OAuth 2.0 credentials.\n Returns\n headers (dict)\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_user_ride_history 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_user_ride_history API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Get activity about the user's lifetime activity with Lyft. Parameters start_time (datetime) Restrict to rides starting after this point in time. The earliest supported date is 2015-01-01T00:00:00Z end_time (datetime) Optional Restrict to ri...
"Get activity about the user's lifetime activity with Lyft.\n Parameters\n start_time (datetime)\n Restrict to rides starting after this point in time.\n The earliest supported date is 2015-01-01T00:00:00Z\n end_time (datetime)\n Optional Restric...
52
false
gautammishra/lyft-rides-python-sdk
get_user_ride_history
20,958
LDU_FT/oisinmulvihill/stomper/setCmd
LDU_FT
[ "<BEGIN>\n## `unpack_frame`", "Called to unpack a STOMP message into a dictionary.", " returned = {\n # STOMP Command:\n 'cmd' : '...',", " # Headers e.g.\n 'headers' : {\n 'destination' : 'xyz',\n 'message-id' : 'some event',\n :\n et...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the setCmd API. 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 setCmd API. 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 ...
Check the cmd is valid, FrameError will be raised if its not.
"Check the cmd is valid, FrameError will be raised if its not."
88
false
oisinmulvihill/stomper
setCmd
20,959
LDU_FT/IAMconsortium/pyam/summarize
LDU_FT
[ "<BEGIN>\n## `read_ix`", "Read timeseries data from an ixmp object", " Parameters\n ----------\n ix: ixmp.TimeSeries or ixmp.Scenario\n this option requires the ixmp package as a dependency\n kwargs: arguments passed to ixmp.TimeSeries.timeseries()\n<END>", "<BEGIN>\n## `requires_package`",...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the summarize API. 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 summarize API. 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...
Format the compiled statistics to a concise string output Parameter --------- center : str, default `mean` what to return as 'center' of the summary: `mean`, `50%`, `median` fullrange : bool, default None return full range of data if True or `fullrange`, `interqu...
"Format the compiled statistics to a concise string output\n\n Parameter\n ---------\n center : str, default `mean`\n what to return as 'center' of the summary: `mean`, `50%`, `median`\n fullrange : bool, default None\n return full range of data if True or `fullrange`, ...
256
false
IAMconsortium/pyam
summarize
20,960
LDU_FT/latchset/jwcrypto/verify
LDU_FT
[ "<BEGIN>\n## `encrypt`", "Encrypt according to the selected encryption and hashing\n functions.", " :param k: Encryption key (optional)\n :param a: Additional Authentication Data\n :param m: Plaintext", " Returns a dictionary with the computed data.\n<END>", "<BEGIN>\n## `...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the verify API. 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 verify API. 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 ...
Verifies a signature :raises InvalidJWSSignature: if the verification fails.
"Verifies a signature\n\n :raises InvalidJWSSignature: if the verification fails."
101
false
latchset/jwcrypto
verify
20,961
LDU_FT/celliern/triflow/run
LDU_FT
[ "<BEGIN>\n## `_compute_one_step`", "Compute one step of the simulation, then update the timers.\n<END>", "<BEGIN>\n## `compute`", "Generator which yield the actual state of the system every dt.", " Yields\n ------\n tuple : t, fields\n Actual time and updated fields container...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the run API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the run API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
Compute all steps of the simulation. Be careful: if tmax is not set, this function will result in an infinit loop. Returns ------- (t, fields): last time and result fields.
"Compute all steps of the simulation. Be careful: if tmax is not set,\n this function will result in an infinit loop.\n\n Returns\n -------\n\n (t, fields):\n last time and result fields."
42
false
celliern/triflow
run
20,962
LDU_FT/python-constraint/python-constraint/forwardCheck
LDU_FT
[ "<BEGIN>\n## `process_docstring`", "Process the docstring for a given python object.\n Note that the list 'lines' is changed in this function. Sphinx\n uses the altered content of the list.\n<END>", "<BEGIN>\n## `getArcs`", "Return a dictionary mapping pairs (arcs) of constrained variables", " @att...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the forwardCheck API. 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 forwardCheck API. 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...
Helper method for generic forward checking Currently, this method acts only when there's a single unassigned variable. @param variables: Variables affected by that constraint, in the same order provided by the user @type variables: sequence @param dom...
"Helper method for generic forward checking\n\n Currently, this method acts only when there's a single\n unassigned variable.\n\n @param variables: Variables affected by that constraint, in the\n same order provided by the user\n @type variables: sequence\n @...
57
false
python-constraint/python-constraint
forwardCheck
20,963
LDU_FT/pettarin/ipapy/ipa_substrings
LDU_FT
[ "<BEGIN>\n## `can_map_ipa_string`", "Return ``True`` if the mapper can map all the IPA characters\n in the given IPA string.", " :param IPAString ipa_string: the IPAString to be parsed\n :rtype: bool\n<END>", "<BEGIN>\n## `map_ipa_string`", "Convert the given IPAString to a string\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the ipa_substrings API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the ipa_substrings API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
Return a list of (non-empty) substrings of the given string, where each substring is either: 1. the longest Unicode string starting at the current index representing a (known) valid IPA character, or 2. a single Unicode character (which is not IPA valid). If ``single_char_parsing`` is ``Fal...
"Return a list of (non-empty) substrings of the given string,\n where each substring is either:\n \n 1. the longest Unicode string starting at the current index\n representing a (known) valid IPA character, or\n 2. a single Unicode character (which is not IPA valid).\n\n If ``single_char_parsing`` ...
205
false
pettarin/ipapy
ipa_substrings
20,964
LDU_FT/giancosta86/Iris/touch
LDU_FT
[ "<BEGIN>\n## `getFlag`", "Creates a flag having path <variables dir path><os.sep><flagName>\n<END>", "<BEGIN>\n## `getFriendlyString`", "Returns the version, printed in a friendly way.", " More precisely, it trims trailing zero components.\n<END>", "<BEGIN>\n## `getVersions`", "Returns the versio...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the touch API. 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 touch API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
Creates the given path as a file, also creating intermediate directories if required.
"Creates the given path as a file, also creating\n intermediate directories if required."
45
false
giancosta86/Iris
touch
20,965
LDU_FT/horazont/aioxmpp/from_value
LDU_FT
[ "<BEGIN>\n## `get_commands`", "Return the list of commands offered by the peer.", " :param peer_jid: JID of the peer to query\n :type peer_jid: :class:`~aioxmpp.JID`\n :rtype: :class:`list` of :class:`~.disco.xso.Item`\n :return: List of command items", " In the returned lis...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the from_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 extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the from_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 extrac...
Convert the given value using the set `type_` and store it into `instance`’ attribute.
"Convert the given value using the set `type_` and store it into\n `instance`’ attribute."
1,660
true
horazont/aioxmpp
from_value
20,966
LDU_FT/ask/carrot/retry_over_time
LDU_FT
[ "<BEGIN>\n## `establish_connection`", "Establish connection to the AMQP broker.\n<END>", "<BEGIN>\n## `queue_exists`", "Check if a queue has been declared.", " :rtype bool:\n<END>", "<BEGIN>\n## `queue_bind`", "Bind queue to an exchange using a routing key.\n<END>", "<BEGIN>\n## `get`", "Rece...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the retry_over_time API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the retry_over_time API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
Retry the function over and over until max retries is exceeded. For each retry we sleep a for a while before we try again, this interval is increased for every retry until the max seconds is reached. :param fun: The function to try :param catch: Exceptions to catch, can be either tuple or a single ...
"Retry the function over and over until max retries is exceeded.\n\n For each retry we sleep a for a while before we try again, this interval\n is increased for every retry until the max seconds is reached.\n\n :param fun: The function to try\n :param catch: Exceptions to catch, can be either tuple or a sin...
162
false
ask/carrot
retry_over_time
20,967
LDU_FT/pallets/flask-sqlalchemy/get_app
LDU_FT
[ "<BEGIN>\n## `should_set_tablename`", "Determine whether ``__tablename__`` should be automatically generated\n for a model.", " * If no class in the MRO sets a name, one should be generated.\n * If a declared attr is found, it should be used instead.\n * If a name is found, it should be used if the ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_app API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_app API. 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...
Helper method that implements the logic to look up an application.
"Helper method that implements the logic to look up an\n application."
73
false
pallets/flask-sqlalchemy
get_app
20,968
LDU_FT/konstantinstadler/pymrio/calc_x_from_L
LDU_FT
[ "<BEGIN>\n## `load_all`", "Loads a full IO system with all extension in path", " Parameters\n ----------\n path : pathlib.Path or string\n Path or path with para file name for the data to load.\n This must either point to the directory containing the uncompressed\n data or the loca...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the calc_x_from_L API. 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 calc_x_from_L API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
Calculate the industry output x from L and a y vector Parameters ---------- L : pandas.DataFrame or numpy.array Symmetric input output Leontief table y : pandas.DataFrame or numpy.array a column vector of the total final demand Returns ------- pandas.DataFrame or numpy.arra...
"Calculate the industry output x from L and a y vector\n\n Parameters\n ----------\n L : pandas.DataFrame or numpy.array\n Symmetric input output Leontief table\n y : pandas.DataFrame or numpy.array\n a column vector of the total final demand\n\n Returns\n -------\n pandas.DataFrame o...
433
false
konstantinstadler/pymrio
calc_x_from_L
20,969
LDU_FT/bertrandvidal/parse_this/_call
LDU_FT
[ "<BEGIN>\n## `_get_args_and_defaults`", "Return a list of 2-tuples - the argument name and its default value or\n a special value that indicates there is no default value.", " Args:\n args: list of argument name\n defaults: tuple of default values\n<END>", "<BEGIN>\n## `_prepare_doc`",...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _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 extracted d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _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 extracted d...
Actually calls the callable with the namespace parsed from the command line. Args: callable_obj: a callable object arg_names: name of the function arguments namespace: the namespace object parsed from the command line
"Actually calls the callable with the namespace parsed from the command\n line.\n\n Args:\n callable_obj: a callable object\n arg_names: name of the function arguments\n namespace: the namespace object parsed from the command line"
52
false
bertrandvidal/parse_this
_call
20,970
LDU_FT/hollenstein/maspy/_findRedundantProteins
LDU_FT
[ "<BEGIN>\n## `_getArrays`", "Return arrays with equal size of item attributes from a list of sorted\n \"items\" for fast and convenient data processing.", " :param attr: list of item attributes that should be added to the returned\n array.\n :param defaultValue: if an item is missing an attribut...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _findRedundantProteins 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 _findRedundantProteins 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 a set of proteins with redundant peptide evidence. After removing the redundant proteins from the "protToPeps" and "pepToProts" mapping, all remaining proteins have at least one unique peptide. The remaining proteins are a "minimal" set of proteins that are able to explain all peptides. However...
"Returns a set of proteins with redundant peptide evidence.\n\n After removing the redundant proteins from the \"protToPeps\" and \"pepToProts\"\n mapping, all remaining proteins have at least one unique peptide. The\n remaining proteins are a \"minimal\" set of proteins that are able to explain\n all pepti...
742
false
hollenstein/maspy
_findRedundantProteins
20,971
LDU_FT/libtcod/python-tcod/sys_get_char_size
LDU_FT
[ "<BEGIN>\n## `_int`", "return an integer where a single character string may be expected\n<END>", "<BEGIN>\n## `_describe_bitmask`", "Returns a bitmask in human readable form.", " This is a private function, used internally.", " Args:\n bits (int): The bitmask to be represented.\n tabl...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the sys_get_char_size API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the sys_get_char_size API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Return the current fonts character size as (width, height) Returns: Tuple[int,int]: The current font glyph size in (width, height)
"Return the current fonts character size as (width, height)\n\n Returns:\n Tuple[int,int]: The current font glyph size in (width, height)"
1,050
true
libtcod/python-tcod
sys_get_char_size
20,972