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/gak/pygooglechart/scaled_data
LDU_FT
[ "<BEGIN>\n## `set_legend`", "legend needs to be a list, tuple or None\n<END>", "<BEGIN>\n## `set_legend_position`", "Sets legend position. Default is 'r'.", " b - At the bottom of the chart, legend entries in a horizontal row.\n bv - At the bottom of the chart, legend entries in a vertical col...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the scaled_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 scaled_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...
Scale `self.data` as appropriate for the given data encoding (data_class) and return it. An optional `y_range` -- a 2-tuple (lower, upper) -- can be given to specify the y-axis bounds. If not given, the range is inferred from the data: (0, <max-value>) presuming no negative valu...
"Scale `self.data` as appropriate for the given data encoding\n (data_class) and return it.\n\n An optional `y_range` -- a 2-tuple (lower, upper) -- can be\n given to specify the y-axis bounds. If not given, the range is\n inferred from the data: (0, <max-value>) presuming no negative\n ...
28
false
gak/pygooglechart
scaled_data
17,273
LDU_FT/NiklasRosenstein/pydoc-markdown/new_section
LDU_FT
[ "<BEGIN>\n## `read_config`", "Reads and preprocesses the pydoc-markdown configuration file.\n<END>", "<BEGIN>\n## `write_temp_mkdocs_config`", "Generates a configuration for MkDocs on-the-fly from the pydoc-markdown\n configuration and makes sure it gets removed when this program exists.\n<END>", "<BEGIN>\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the new_section API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the new_section API. 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...
Create a new section in the specified document. The arguments for this method match the parameters for the #Section constructor. # Raises ValueError: If the section identifier is already used.
"Create a new section in the specified document. The arguments for this\n method match the parameters for the #Section constructor.\n\n # Raises\n ValueError: If the section identifier is already used."
26
false
NiklasRosenstein/pydoc-markdown
new_section
17,274
LDU_FT/JarryShaw/PyPCAPKit/_read_mode_tsopt
LDU_FT
[ "<BEGIN>\n## `_missing_`", "Lookup function used when value is not found.\n<END>", "<BEGIN>\n## `count`", "S.count(value) -> integer -- return number of occurrences of value\n<END>", "<BEGIN>\n## `index`", "S.index(value, [start, [stop]]) -> integer -- return first index of value.\n Raises Value...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _read_mode_tsopt API. 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 _read_mode_tsopt API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Read Timestamps option. Positional arguments: * size - int, length of option * kind - int, 8 (Timestamps) Returns: * dict -- extracted Timestamps (TS) option Structure of TCP TSopt [RFC 7323]: +-------+-------+---------------------+-------------...
"Read Timestamps option.\n\n Positional arguments:\n * size - int, length of option\n * kind - int, 8 (Timestamps)\n\n Returns:\n * dict -- extracted Timestamps (TS) option\n\n Structure of TCP TSopt [RFC 7323]:\n +-------+-------+---------------------+--...
733
false
JarryShaw/PyPCAPKit
_read_mode_tsopt
17,275
LDU_FT/skorch-dev/skorch/_filter_none
LDU_FT
[ "<BEGIN>\n## `get_data`", "Get synthetic classification data with n_samples samples.\n<END>", "<BEGIN>\n## `get_model`", "Get a multi-layer perceptron model.", " Optionally, put it in a pipeline that scales the data.\n<END>", "<BEGIN>\n## `net`", "Train an MLP classifier on synthetic data.", " n...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _filter_none API. 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 _filter_none API. 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...
Filter special placeholder value, preserves sequence type.
"Filter special placeholder value, preserves sequence type."
394
false
skorch-dev/skorch
_filter_none
17,276
LDU_FT/vberlier/nbtlib/load
LDU_FT
[ "<BEGIN>\n## `load`", "Load the nbt file at the specified location.\r", " By default, the function will figure out by itself if the file is\r\n gzipped before loading it. You can pass a boolean to the `gzipped`\r\n keyword only argument to specify explicitly whether the file is\r\n compressed or not...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
Load the nbt file at the specified location. By default, the function will figure out by itself if the file is gzipped before loading it. You can pass a boolean to the `gzipped` keyword only argument to specify explicitly whether the file is compressed or not. You can also use the `byteorder` keyw...
"Load the nbt file at the specified location.\r\n\r\n By default, the function will figure out by itself if the file is\r\n gzipped before loading it. You can pass a boolean to the `gzipped`\r\n keyword only argument to specify explicitly whether the file is\r\n compressed or not. You can also use the `byte...
66
false
vberlier/nbtlib
load
17,277
LDU_FT/numenta/htmresearch/plotConvergenceByDistantConnectionChance
LDU_FT
[ "<BEGIN>\n## `runExperiment`", "Run experiment. What did you think this does?", " args is a dict representing the parameters. We do it this way to support\n multiprocessing. args contains one or more of the following keys:", " @param noiseLevel (float) Noise level to add to the locations and features\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the plotConvergenceByDistantConnectionChance API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicat...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the plotConvergenceByDistantConnectionChance API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicat...
Plots the convergence graph: iterations vs number of columns. Each curve shows the convergence for a given number of unique features.
"Plots the convergence graph: iterations vs number of columns.\n Each curve shows the convergence for a given number of unique features."
2,106
true
numenta/htmresearch
plotConvergenceByDistantConnectionChance
17,278
LDU_FT/mgedmin/findimports/printDot
LDU_FT
[ "<BEGIN>\n## `adjust_lineno`", "Adjust the line number of an import.", " Needed because import statements can span multiple lines, and our lineno\n is always the first line number.\n<END>", "<BEGIN>\n## `find_imports`", "Find all imported names in a given file.", " Returns a list of ImportInfo ob...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the printDot API. 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 printDot API. 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...
Produce a dependency graph in dot format.
"Produce a dependency graph in dot format."
29
false
mgedmin/findimports
printDot
17,279
LDU_FT/tjcsl/cslbot/send
LDU_FT
[ "<BEGIN>\n## `cmd`", "Babbles like a user\n Syntax: {command} [nick] [--length <1|2>] [--start <word>]\n<END>", "<BEGIN>\n## `cmd`", "Gets a random distro.", " Syntax: {command}\n<END>", "<BEGIN>\n## `cmd`", "Returns the Discordian date.", " Syntax: {command}\n<END>", "<BEGIN>\n## `cmd`", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the send API. Each 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 send API. Each 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 message. Records the message in the log.
"Send a message.\n\n Records the message in the log."
357
false
tjcsl/cslbot
send
17,280
LDU_FT/thombashi/SimpleSQLite/select
LDU_FT
[ "<BEGIN>\n## `set_log_level`", "Set logging level of this module. Using\n `logbook <https://logbook.readthedocs.io/en/stable/>`__ module for logging.", " :param int log_level:\n One of the log level of\n `logbook <https://logbook.readthedocs.io/en/stable/api/base.html>`__.\n Disabled ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the select API. Each 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 select API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Send a SELECT query to the database. :param str select: Attribute for the ``SELECT`` query. :param str table_name: |arg_select_table_name| :param where: |arg_select_where| :type where: |arg_where_type| :param str extra: |arg_select_extra| :return: Result of the query exe...
"Send a SELECT query to the database.\n\n :param str select: Attribute for the ``SELECT`` query.\n :param str table_name: |arg_select_table_name|\n :param where: |arg_select_where|\n :type where: |arg_where_type|\n :param str extra: |arg_select_extra|\n :return: Result of the q...
185
false
thombashi/SimpleSQLite
select
17,281
LDU_FT/sammchardy/python-kucoin/get_ws_endpoint
LDU_FT
[ "<BEGIN>\n## `subscribe`", "Subscribe to a channel", " :param topic: required\n :returns: None", " Sample ws response", " .. code-block:: python", " {\n \"type\":\"message\",\n \"topic\":\"/market/ticker:BTC-USDT\",\n \"su...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_ws_endpoint API. 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_ws_endpoint API. 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 websocket channel details :param private: Name of symbol e.g. KCS-BTC :type private: bool https://docs.kucoin.com/#websocket-feed .. code:: python ws_details = client.get_ws_endpoint(private=True) :returns: ApiResponse .. code:: python {...
"Get websocket channel details\n\n :param private: Name of symbol e.g. KCS-BTC\n :type private: bool\n\n https://docs.kucoin.com/#websocket-feed\n\n .. code:: python\n\n ws_details = client.get_ws_endpoint(private=True)\n\n :returns: ApiResponse\n\n .. code:: python\...
271
false
sammchardy/python-kucoin
get_ws_endpoint
17,282
LDU_FT/itamarst/eliot/continue_task
LDU_FT
[ "<BEGIN>\n## `stopService`", "Stop the writer thread, wait for it to finish.\n<END>", "<BEGIN>\n## `bind`", "Return a new L{Message} with this message's contents plus the\n additional given bindings.\n<END>", "<BEGIN>\n## `_freeze`", "Freeze this message for logging, registering it with C{action}."...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the continue_task API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the continue_task API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
Start a new action which is part of a serialized task. @param logger: The L{eliot.ILogger} to which to write messages, or C{None} if the default one should be used. @param task_id: A serialized task identifier, the output of L{Action.serialize_task_id}, either ASCII-encoded byt...
"Start a new action which is part of a serialized task.\n\n @param logger: The L{eliot.ILogger} to which to write\n messages, or C{None} if the default one should be used.\n\n @param task_id: A serialized task identifier, the output of\n L{Action.serialize_task_id}, either ASCII-enco...
282
false
itamarst/eliot
continue_task
17,283
LDU_FT/gmr/queries/callproc
LDU_FT
[ "<BEGIN>\n## `close`", "Close the connection", " :raises: ConnectionBusyError\n<END>", "<BEGIN>\n## `busy`", "Return if the connection is currently executing a query or is locked\n by a session that still exists.", " :rtype: bool\n<END>", "<BEGIN>\n## `free`", "Remove the lock on ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the callproc API. 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 callproc API. 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...
Call a stored procedure on the server, returning the results in a :py:class:`queries.Results` instance. :param str name: The procedure name :param list args: The list of arguments to pass in :rtype: queries.Results :raises: queries.DataError :raises: queries.DatabaseErro...
"Call a stored procedure on the server, returning the results in a\n :py:class:`queries.Results` instance.\n\n :param str name: The procedure name\n :param list args: The list of arguments to pass in\n :rtype: queries.Results\n :raises: queries.DataError\n :raises: queries.Data...
181
false
gmr/queries
callproc
17,284
LDU_FT/qzmfranklin/easyshell/command
LDU_FT
[ "<BEGIN>\n## `update_parser`", "Update the parser object for the shell.", " Arguments:\n parser: An instance of argparse.ArgumentParser.\n<END>", "<BEGIN>\n## `_do_debug`", "\\\n Enter the debugging shell.\n debug Show current debugging status, i.e, on/off.\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the command API. Each 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 command API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
Decorate a function to be the entry function of commands. Arguments: commands: Names of command that should trigger this function object. visible: This command is visible in tab completions. internal: The lexing rule is unchanged even if the parse_line() method is overloaded in ...
"Decorate a function to be the entry function of commands.\n\n Arguments:\n commands: Names of command that should trigger this function object.\n visible: This command is visible in tab completions.\n internal: The lexing rule is unchanged even if the parse_line() method\n is overloa...
147
false
qzmfranklin/easyshell
command
17,285
LDU_FT/jrosebr1/imutils/adjust_brightness_contrast
LDU_FT
[ "<BEGIN>\n## `build_montages`", "---------------------------------------------------------------------------------------------\n author: Kyle Hounslow\n ---------------------------------------------------------------------------------------------\n Converts a list of single images into a list of 'montage...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the adjust_brightness_contrast API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclus...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the adjust_brightness_contrast API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclus...
Adjust the brightness and/or contrast of an image :param image: OpenCV BGR image :param contrast: Float, contrast adjustment with 0 meaning no change :param brightness: Float, brightness adjustment with 0 meaning no change
"Adjust the brightness and/or contrast of an image\n\n :param image: OpenCV BGR image\n :param contrast: Float, contrast adjustment with 0 meaning no change\n :param brightness: Float, brightness adjustment with 0 meaning no change"
17
false
jrosebr1/imutils
adjust_brightness_contrast
17,286
LDU_FT/daler/metaseq/ci_plot
LDU_FT
[ "<BEGIN>\n## `requirements_check`", "Ensure we have programs needed to download/manipulate the data\n<END>", "<BEGIN>\n## `_up_to_date`", "Make sure md5sum(fn) == md5, and if not, delete `fn`.\n<END>", "<BEGIN>\n## `logged_command`", "helper function to log a command and then run it\n<END>", "<BEGIN>\n#...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the ci_plot API. Each 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 ci_plot API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
Plots the mean and 95% ci for the given array on the given axes Parameters ---------- x : 1-D array-like x values for the plot arr : 2-D array-like The array to calculate mean and std for conf : float [.5 - 1] Confidence interval to use ax : matplotlib.Axes Th...
"Plots the mean and 95% ci for the given array on the given axes\n\n Parameters\n ----------\n x : 1-D array-like\n x values for the plot\n\n arr : 2-D array-like\n The array to calculate mean and std for\n\n conf : float [.5 - 1]\n Confidence interval to use\n\n ax : matplotlib.A...
400
false
daler/metaseq
ci_plot
17,287
LDU_FT/datacats/datacats/_split_path
LDU_FT
[ "<BEGIN>\n## `create`", "Create a new environment", "Usage:\n datacats create [-bin] [--interactive] [-s NAME] [--address=IP] [--syslog]\n [--ckan=CKAN_VERSION] [--no-datapusher] [--site-url SITE_URL]\n [--no-init-db] ENVIRONMENT_DIR [PORT]", "Options:\n --address=IP ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _split_path API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _split_path API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
A wrapper around the normal split function that ignores any trailing /. :return: A tuple of the form (dirname, last) where last is the last element in the path.
"A wrapper around the normal split function that ignores any trailing /.\n\n :return: A tuple of the form (dirname, last) where last is the last element\n in the path."
256
false
datacats/datacats
_split_path
17,288
LDU_FT/cstockton/py-gensend/int
LDU_FT
[ "<BEGIN>\n## `_dict_if`", "Returns the arguments in the list joined by STR.\n IF:CONDITION,DO,ELSE", " %{IF:False,'IS TRUE'} -> ''\n %{IF:True,'IS TRUE', 'NOT TRUE'} -> 'NOT TRUE'\n<END>", "<BEGIN>\n## `_dict_repeat`", "Do a thing N times\n REPEAT:N,DO", " %{REPE...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the int API. Each 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 int API. Each 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...
Returns a random int between -sys.maxint and sys.maxint INT %{INT} -> '1245123' %{INT:10} -> '10000000' %{INT:10,20} -> '19'
"Returns a random int between -sys.maxint and sys.maxint\n INT\n\n %{INT} -> '1245123'\n %{INT:10} -> '10000000'\n %{INT:10,20} -> '19'"
30
false
cstockton/py-gensend
int
17,289
LDU_FT/postlund/pyatv/add_service
LDU_FT
[ "<BEGIN>\n## `lookup_tag`", "Look up a tag based on its key. Returns a DmapTag.\n<END>", "<BEGIN>\n## `scan_for_apple_tvs`", "Scan for Apple TVs using zeroconf (bonjour) and returns them.\n<END>", "<BEGIN>\n## `add_service`", "Handle callback from zeroconf when a service has been discovered.\n<END>", "<...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_service API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_service API. 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...
Handle callback from zeroconf when a service has been discovered.
"Handle callback from zeroconf when a service has been discovered."
146
false
postlund/pyatv
add_service
17,290
LDU_FT/lexich/yandex-disk-webdav/mkdir
LDU_FT
[ "<BEGIN>\n## `_`", "Normalize path to unicode\n :param path: path\n :return: normalize path", " >>> _(None)\n u''\n >>> _(u(\"test1\"))\n u'test1'\n >>> _(\"test2\")\n u'test2'\n<END>", "<BEGIN>\n## `remote`", "Normalize remote href\n :param href: remote path\n :return: normali...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the mkdir API. Each 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 mkdir API. Each 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...
create remote folder :param href: remote path :return: response
"create remote folder\n :param href: remote path\n :return: response"
16
false
lexich/yandex-disk-webdav
mkdir
17,291
LDU_FT/idank/bashlex/p_elif_clause
LDU_FT
[ "<BEGIN>\n## `_createtoken`", "create a token with position information\n<END>", "<BEGIN>\n## `p_inputunit`", "inputunit : simple_list simple_list_terminator\n | NEWLINE\n | error NEWLINE\n | EOF\n<END>", "<BEGIN>\n## `p_word_list`", "word_list : WORD\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the p_elif_clause API. 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 p_elif_clause API. 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...
elif_clause : ELIF compound_list THEN compound_list | ELIF compound_list THEN compound_list ELSE compound_list | ELIF compound_list THEN compound_list elif_clause
"elif_clause : ELIF compound_list THEN compound_list\n | ELIF compound_list THEN compound_list ELSE compound_list\n | ELIF compound_list THEN compound_list elif_clause"
59
false
idank/bashlex
p_elif_clause
17,292
LDU_FT/petl-developers/petl/lookupjoin
LDU_FT
[ "<BEGIN>\n## `look`", "Format a portion of the table as text for inspection in an interactive\n session. E.g.::", " >>> import petl as etl\n >>> table1 = [['foo', 'bar'],\n ... ['a', 1],\n ... ['b', 2]]\n >>> etl.look(table1)\n +-----+-----+\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the lookupjoin API. 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 lookupjoin API. 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...
Perform a left join, but where the key is not unique in the right-hand table, arbitrarily choose the first row and ignore others. E.g.:: >>> import petl as etl >>> table1 = [['id', 'color', 'cost'], ... [1, 'blue', 12], ... [2, 'red', 8], ... [3...
"Perform a left join, but where the key is not unique in the right-hand\n table, arbitrarily choose the first row and ignore others. E.g.::\n\n >>> import petl as etl\n >>> table1 = [['id', 'color', 'cost'],\n ... [1, 'blue', 12],\n ... [2, 'red', 8],\n ... ...
789
false
petl-developers/petl
lookupjoin
17,293
LDU_FT/mlenzen/collections-extended/nlargest
LDU_FT
[ "<BEGIN>\n## `get`", "Return value with given key or index.", "\t\tIf no value is found, return d (None by default).\n<END>", "<BEGIN>\n## `pop`", "Remove and return value with given key or index (last item by default).", "\t\tIf key is not found, returns d if given,\n\t\totherwise raises KeyError or Inde...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the nlargest API. 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 nlargest API. 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...
List the n most common elements and their counts. List is from the most common to the least. If n is None, the list all element counts. Run time should be O(m log m) where m is len(self) Args: n (int): The number of elements to return
"List the n most common elements and their counts.\n\n\t\tList is from the most\n\t\tcommon to the least. If n is None, the list all element counts.\n\n\t\tRun time should be O(m log m) where m is len(self)\n\t\tArgs:\n\t\t\tn (int): The number of elements to return"
104
false
mlenzen/collections-extended
nlargest
17,294
LDU_FT/CalebBell/ht/NTU_from_P_basic
LDU_FT
[ "<BEGIN>\n## `blackbody_spectral_radiance`", "r'''Returns the spectral radiance, in units of W/m^2/sr/µm.", " .. math::\n I_{\\lambda,blackbody,e}(\\lambda,T)=\\frac{2hc_o^2}\n {\\lambda^5[\\exp(hc_o/\\lambda k T)-1]}", " Parameters\n ----------\n T : float\n Temperature of th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the NTU_from_P_basic API. 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 NTU_from_P_basic API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
r'''Returns the number of transfer units of a basic heat exchanger type with a specified (for side 1) thermal effectiveness `P1`, and heat capacity ratio `R1`. The supported cases are as follows: * Counterflow (ex. double-pipe) [analytical] * Parallel (ex. double pipe inefficient configuration...
"r'''Returns the number of transfer units of a basic heat exchanger type\n with a specified (for side 1) thermal effectiveness `P1`, and heat capacity \n ratio `R1`. The supported cases are as follows:\n \n * Counterflow (ex. double-pipe) [analytical]\n * Parallel (ex. double pipe inefficient configu...
2,013
true
CalebBell/ht
NTU_from_P_basic
17,295
LDU_FT/semiversus/python-broqer/build_sink
LDU_FT
[ "<BEGIN>\n## `build_sink`", "Decorator to wrap a function to return a Sink subscriber.", " :param function: function to be wrapped\n :param unpack: value from emits will be unpacked (*value)\n<END>", "<BEGIN>\n## `build_map`", "Decorator to wrap a function to return a Map operator.", " :param fun...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the build_sink API. 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 build_sink API. 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...
Decorator to wrap a function to return a Sink subscriber. :param function: function to be wrapped :param unpack: value from emits will be unpacked (*value)
"Decorator to wrap a function to return a Sink subscriber.\n\n :param function: function to be wrapped\n :param unpack: value from emits will be unpacked (*value)"
65
false
semiversus/python-broqer
build_sink
17,296
LDU_FT/rosshamish/catanlog/log_player_trades_with_port
LDU_FT
[ "<BEGIN>\n## `logpath`", "Return the logfile path and filename as a string.", " The file with name self.logpath() is written to on flush().", " The filename contains the log's timestamp and the names of players in the game.\n The logpath changes when reset() or _set_players() are called, ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the log_player_trades_with_port 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 log_player_trades_with_port API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclu...
:param player: catan.game.Player :param to_port: list of tuples, [(int, game.board.Terrain), (int, game.board.Terrain)] :param port: catan.board.Port :param to_player: list of tuples, [(int, game.board.Terrain), (int, game.board.Terrain)]
":param player: catan.game.Player\n :param to_port: list of tuples, [(int, game.board.Terrain), (int, game.board.Terrain)]\n :param port: catan.board.Port\n :param to_player: list of tuples, [(int, game.board.Terrain), (int, game.board.Terrain)]"
47
false
rosshamish/catanlog
log_player_trades_with_port
17,297
LDU_FT/spyder-ide/pywinpty/close
LDU_FT
[ "<BEGIN>\n## `spawn`", "Start the given command in a child process in a pseudo terminal.", " This does all the setting up the pty, and returns an instance of\n PtyProcess.", " Dimensions of the psuedoterminal used for the subprocess can be\n specified as a tuple (rows, cols), or th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the close API. Each 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 close API. Each 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...
Close all communication process streams.
"Close all communication process streams."
30
false
spyder-ide/pywinpty
close
17,298
LDU_FT/GeospatialPython/pyshp/__shpFileLength
LDU_FT
[ "<BEGIN>\n## `signed_area`", "Return the signed area enclosed by a ring using the linear time\r\n algorithm. A value >= 0 indicates a counter-clockwise oriented ring.\n<END>", "<BEGIN>\n## `as_dict`", "Returns this Record as a dictionary using the field names as keys\r\n :return: dict\n<END>", "<B...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the __shpFileLength API. 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 __shpFileLength API. 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...
Calculates the file length of the shp file.
"Calculates the file length of the shp file."
82
false
GeospatialPython/pyshp
__shpFileLength
17,299
LDU_FT/jalanb/pysyte/merge
LDU_FT
[ "<BEGIN>\n## `get_caselessly`", "Find the sought key in the given dictionary regardless of case", " >>> things = {'Fred' : 9}\n >>> print(get_caselessly(things, 'fred'))\n 9\n<END>", "<BEGIN>\n## `append_value`", "Append those items to the values for that key\n<END>", "<BEGIN>\n## `extend_values`...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the merge API. Each 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 merge API. Each 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...
Merge that branch into current branch fast_forward and commit add the eponymous options to the command
"Merge that branch into current branch\n\n fast_forward and commit add the eponymous options to the command"
224
false
jalanb/pysyte
merge
17,300
LDU_FT/contentful/contentful.py/incoming_references
LDU_FT
[ "<BEGIN>\n## `incoming_references`", "Fetches all entries referencing the entry", " API Reference: https://www.contentful.com/developers/docs/references/content-delivery-api/#/reference/search-parameters/links-to-asset", " :param client Client instance\n :param query: (optional) Dict with...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the incoming_references API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the incoming_references API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
Fetches all entries referencing the entry API Reference: https://www.contentful.com/developers/docs/references/content-delivery-api/#/reference/search-parameters/links-to-asset :param client Client instance :param query: (optional) Dict with API options. :return: List of :class:`Entry ...
"Fetches all entries referencing the entry\n\n API Reference: https://www.contentful.com/developers/docs/references/content-delivery-api/#/reference/search-parameters/links-to-asset\n\n :param client Client instance\n :param query: (optional) Dict with API options.\n :return: List of :class:...
71
false
contentful/contentful.py
incoming_references
17,301
LDU_FT/rameshg87/pyremotevbox/getOperationName
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 getOperationName API. 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 getOperationName API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Returns operation name. action -- soapAction value
"Returns operation name.\n action -- soapAction value"
529
false
rameshg87/pyremotevbox
getOperationName
17,302
LDU_FT/TomasTomecek/sen/pick_and_display_buffer
LDU_FT
[ "<BEGIN>\n## `quit`", "This could be called from another thread, so let's do this via alarm\n<END>", "<BEGIN>\n## `_set_main_widget`", "add provided widget to widget list and display it", " :param widget:\n :return:\n<END>", "<BEGIN>\n## `display_buffer`", "display provided buffer", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the pick_and_display_buffer API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the pick_and_display_buffer API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion...
pick i-th buffer from list and display it :param i: int :return: None
"pick i-th buffer from list and display it\n\n :param i: int\n :return: None"
85
false
TomasTomecek/sen
pick_and_display_buffer
17,303
LDU_FT/mrname/haralyzer/_get_asset_size
LDU_FT
[ "<BEGIN>\n## `get_load_times`", "Just a ``list`` of the load times of a certain asset type for each page", " :param asset_type: ``str`` of the asset type to return load times for\n<END>", "<BEGIN>\n## `get_stdev`", "Returns the standard deviation for a set of a certain asset type.", " :param...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_asset_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 e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_asset_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 e...
Helper function to dynamically create *_size properties.
"Helper function to dynamically create *_size properties."
72
false
mrname/haralyzer
_get_asset_size
17,304
LDU_FT/grabbles/grabbit/merge_layouts
LDU_FT
[ "<BEGIN>\n## `merge_layouts`", "Utility function for merging multiple layouts.", " Args:\n layouts (list): A list of BIDSLayout instances to merge.\n Returns:\n A BIDSLayout containing merged files and entities.\n Notes:\n Layouts will be merged in the order of the elements in the ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the merge_layouts API. 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 merge_layouts API. 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...
Utility function for merging multiple layouts. Args: layouts (list): A list of BIDSLayout instances to merge. Returns: A BIDSLayout containing merged files and entities. Notes: Layouts will be merged in the order of the elements in the list. I.e., the first Layout will be up...
"Utility function for merging multiple layouts.\n\n Args:\n layouts (list): A list of BIDSLayout instances to merge.\n Returns:\n A BIDSLayout containing merged files and entities.\n Notes:\n Layouts will be merged in the order of the elements in the list. I.e.,\n the first Layout w...
60
false
grabbles/grabbit
merge_layouts
17,305
LDU_FT/thespacedoctor/sherlock/main
LDU_FT
[ "<BEGIN>\n## `ingest`", "ingest the veron catalogue into the catalogues database", " See class docstring for usage.\n<END>", "<BEGIN>\n## `_create_dictionary_of_veron`", "create a list of dictionaries containing all the rows in the veron catalogue", " **Return:**\n - ``dictList`` ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the main API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the main API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
The main function used when ``cl_utils.py`` is run as a single script from the cl, or when installed as a cl command .. todo :: - update key arguments values and definitions with defaults - update return values and definitions - update usage examples and text - update docstring tex...
"The main function used when ``cl_utils.py`` is run as a single script from the cl, or when installed as a cl command\n\n .. todo ::\n\n - update key arguments values and definitions with defaults\n - update return values and definitions\n - update usage examples and text\n - update docst...
348
false
thespacedoctor/sherlock
main
17,306
LDU_FT/mwouts/jupytext/cell_ends_with_code
LDU_FT
[ "<BEGIN>\n## `is_magic`", "Is the current line a (possibly escaped) Jupyter magic, and should it be commented?\n<END>", "<BEGIN>\n## `metadata_filter_as_dict`", "Return the metadata filter represented as either None (no filter),\n or a dictionary with at most two keys: 'additional' and 'excluded',\n whi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the cell_ends_with_code API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the cell_ends_with_code API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
Is the last line of the cell a line with code?
"Is the last line of the cell a line with code?"
229
false
mwouts/jupytext
cell_ends_with_code
17,307
LDU_FT/perimosocordiae/viztricks/jitterplot
LDU_FT
[ "<BEGIN>\n## `gradient_line`", "Plot a 2-d line with a gradient representing ordering.\n See http://stackoverflow.com/q/8500700/10601 for details.\n<END>", "<BEGIN>\n## `irregular_contour`", "Handles interpolating irregular data to a grid,\n and plots it using the given func [default: contourf]\n See http:...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the jitterplot API. 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 jitterplot API. 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...
Plots jittered points as a distribution visualizer. Scatter plot arguments default to: marker='.', c='k', alpha=0.75 Also known as a stripplot. See also: boxplot, violinplot, beeswarm
"Plots jittered points as a distribution visualizer.\n\n Scatter plot arguments default to: marker='.', c='k', alpha=0.75\n Also known as a stripplot.\n See also: boxplot, violinplot, beeswarm"
25
false
perimosocordiae/viztricks
jitterplot
17,308
LDU_FT/klen/aioauth-client/_get_url
LDU_FT
[ "<BEGIN>\n## `login_required`", "auth decorator", " call function(request, user: <aioauth_client User object>)\n<END>", "<BEGIN>\n## `_get_url`", "Build provider's url. Join with base_url part if needed.\n<END>", "<BEGIN>\n## `get_request_token`", "Get a request_token and request_token_secret from OA...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_url API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_url API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
Build provider's url. Join with base_url part if needed.
"Build provider's url. Join with base_url part if needed."
13
false
klen/aioauth-client
_get_url
17,309
LDU_FT/rshipp/python-dshield/porthistory
LDU_FT
[ "<BEGIN>\n## `_get`", "Get and return data from the API.", " :returns: A str, list, or dict, depending on the input values and API data.\n<END>", "<BEGIN>\n## `backscatter`", "Returns possible backscatter data.", " This report only includes \"syn ack\" data and is summarized by source port.", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the porthistory API. 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 porthistory API. 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...
Returns port data for a range of dates. In the return data: Records: Total number of records for a given date range. Targets: Number of unique destination IP addresses. Sources: Number of unique originating IPs. :param port_number: a valid port number (required) :param start_date: string or d...
"Returns port data for a range of dates.\n\n In the return data:\n\n Records: Total number of records for a given date range.\n Targets: Number of unique destination IP addresses.\n Sources: Number of unique originating IPs.\n\n :param port_number: a valid port number (required)\n :param start_date: s...
52
false
rshipp/python-dshield
porthistory
17,310
LDU_FT/VisualOps/cli/_get_config
LDU_FT
[ "<BEGIN>\n## `create_app`", "insert app record when stack run as a app\n<END>", "<BEGIN>\n## `create_container`", "insert container record when create container\n<END>", "<BEGIN>\n## `get_app_data`", "get app data ( include name and app_data )\n<END>", "<BEGIN>\n## `_get_config`", "Get user docker con...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_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 _get_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...
Get user docker configuration Return: dict
"Get user docker configuration\n\n Return: dict"
90
false
VisualOps/cli
_get_config
17,311
LDU_FT/sludgedesk/metoffer/stand_alone_imagery
LDU_FT
[ "<BEGIN>\n## `guidance_UV`", "Return Met Office guidance regarding UV exposure based on UV index\n<END>", "<BEGIN>\n## `parse_sitelist`", "Return list of Site instances from retrieved sitelist data\n<END>", "<BEGIN>\n## `get_nearest_site`", "Return a string which can be used as \"request\" in calls to loc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the stand_alone_imagery API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the stand_alone_imagery API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
Returns capabilities data for stand alone imagery and includes URIs for the images.
"Returns capabilities data for stand alone imagery and includes\n URIs for the images."
33
false
sludgedesk/metoffer
stand_alone_imagery
17,312
LDU_FT/asmodehn/filefinder2/decode_source
LDU_FT
[ "<BEGIN>\n## `strip_encoding_cookie`", "Generator to pull lines from a text-mode file, skipping the encoding\n cookie if it is found in the first two lines.\n<END>", "<BEGIN>\n## `source_to_unicode`", "Converts a bytes string with python source code to unicode.\n Unicode strings are passed through uncha...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the decode_source API. 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 decode_source API. 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...
Decode bytes representing source code and return the string. Universal newline support is used in the decoding.
"Decode bytes representing source code and return the string.\n Universal newline support is used in the decoding."
64
false
asmodehn/filefinder2
decode_source
17,313
LDU_FT/mardix/Juice/render_as_xml
LDU_FT
[ "<BEGIN>\n## `get_env`", "Return the Capitalize environment name\n It can be used to retrieve class base config\n Default: Development\n :returns: str\n<END>", "<BEGIN>\n## `init_app`", "To bind middlewares, plugins that needs the 'app' object to init\n Bound middlewares will be assigned on cls.in...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the render_as_xml API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the render_as_xml API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
Decorator to render as XML :param func: :return:
"Decorator to render as XML\n :param func:\n :return:"
101
false
mardix/Juice
render_as_xml
17,314
LDU_FT/kurtbrose/pyjks/load
LDU_FT
[ "<BEGIN>\n## `new`", "Helper function to create a new TrustedCertEntry.", " :param str alias: The alias for the Trusted Cert Entry\n :param str certs: The certificate, as a byte string.", " :returns: A loaded :class:`TrustedCertEntry` instance, ready\n to be placed in a keystore....
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
Convenience wrapper function; reads the contents of the given file and passes it through to :func:`loads`. See :func:`loads`.
"Convenience wrapper function; reads the contents of the given file\n and passes it through to :func:`loads`. See :func:`loads`."
104
false
kurtbrose/pyjks
load
17,315
LDU_FT/hobson/pug-dj/from_row_wise_lists
LDU_FT
[ "<BEGIN>\n## `instance`", "Creates an EC2 instance from an Ubuntu AMI and configures it as a Django server\n with nginx + gunicorn\n<END>", "<BEGIN>\n## `_run_task`", "Tasks a task from tasks.py and runs through the commands on the server\n<END>", "<BEGIN>\n## `_put_template`", "Same as _put() but it l...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the from_row_wise_lists API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the from_row_wise_lists API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
Create column-wise Columns object from a row-wise table (list of lists). Useful for reading a CSV file.
"Create column-wise Columns object from a row-wise table (list of lists).\n\n Useful for reading a CSV file."
300
false
hobson/pug-dj
from_row_wise_lists
17,316
LDU_FT/tagcubeio/tagcube-cli/get_credentials
LDU_FT
[ "<BEGIN>\n## `create_scans`", "This method is rather simple, it will group the urls to be scanner together\n based on (protocol, domain and port).", " :param urls_file: The filename with all the URLs\n :return: A list of scans to be run\n<END>", "<BEGIN>\n## `parse_url`", "Parse a URL into the part...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_credentials API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_credentials API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
:return: The email and api_key to use to connect to TagCube. This function will try to get the credentials from: * Command line arguments * Environment variables * Configuration file It will return the first match, in the ord...
":return: The email and api_key to use to connect to TagCube. This\n function will try to get the credentials from:\n * Command line arguments\n * Environment variables\n * Configuration file\n\n It will return the first match, in ...
72
false
tagcubeio/tagcube-cli
get_credentials
17,317
LDU_FT/fabric-bolt/fabric-bolt/web_hook_receiver
LDU_FT
[ "<BEGIN>\n## `form_valid`", "After the form is valid lets let people know\n<END>", "<BEGIN>\n## `form_valid`", "First call the parent's form valid then let the user know it worked.\n<END>", "<BEGIN>\n## `post`", "Create the SSH file & then return the normal get method...\n<END>", "<BEGIN>\n## `web_hooks...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the web_hook_receiver API. 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 web_hook_receiver API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Generic receiver for the web hook firing piece.
"Generic receiver for the web hook firing piece."
65
false
fabric-bolt/fabric-bolt
web_hook_receiver
17,318
LDU_FT/Lagg/steamodd/_attribute_definition
LDU_FT
[ "<BEGIN>\n## `get`", "Returns context data for a given app, can be an ID or a case insensitive name\n<END>", "<BEGIN>\n## `hash_name`", "The URL-friendly identifier for the item. Generates its own approximation if one isn't available\n<END>", "<BEGIN>\n## `quality`", "Can't really trust presence of a sche...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _attribute_definition API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _attribute_definition API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Returns the attribute definition dict of a given attribute ID, can be the name or the integer ID
"Returns the attribute definition dict of a given attribute\n ID, can be the name or the integer ID"
49
false
Lagg/steamodd
_attribute_definition
17,319
LDU_FT/majerteam/sqla_inspect/compile_obj
LDU_FT
[ "<BEGIN>\n## `get_info_field`", "Return the info attribute of the given property\n<END>", "<BEGIN>\n## `add_formatter`", "Add a formatter to the registry\n if key_specific is provided, this formatter will only be used for some\n specific exports\n<END>", "<BEGIN>\n## `render`", "Write to the...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the compile_obj API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the compile_obj API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
generate a context based on the given obj :param obj: an instance of the model
"generate a context based on the given obj\n\n :param obj: an instance of the model"
132
false
majerteam/sqla_inspect
compile_obj
17,320
LDU_FT/hubo1016/vlcp/destroy
LDU_FT
[ "<BEGIN>\n## `get_connection`", "Get an exclusive connection, useful for blocked commands and transactions.", " You must call release or shutdown (not recommanded) to return the connection after use.", " :param container: routine container", " :returns: RedisClientBase object, with some...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the destroy API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the destroy API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
Destroy the created subqueue to change the behavior back to Lock
"Destroy the created subqueue to change the behavior back to Lock"
538
false
hubo1016/vlcp
destroy
17,321
LDU_FT/inbo/pyinaturalist/get_observation_fields
LDU_FT
[ "<BEGIN>\n## `make_inaturalist_api_get_call`", "Make an API call to iNaturalist.", " endpoint is a string such as 'observations' !! do not put / in front\n method: 'GET', 'HEAD', 'POST', 'PUT', 'PATCH', 'DELETE'\n kwargs are passed to requests.request\n Returns a requests.Response object\n<END>", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_observation_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....
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_observation_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....
Search the (globally available) observation :param search_query: :param page: :return:
"Search the (globally available) observation\n :param search_query:\n :param page:\n :return:"
45
false
inbo/pyinaturalist
get_observation_fields
17,322
LDU_FT/mdeous/fatbotslim/parse
LDU_FT
[ "<BEGIN>\n## `create_logger`", "Creates a new ready-to-use logger.", " :param name: new logger's name\n :type name: str\n :param level: default logging level.\n :type level: :class:`str` or :class:`int`\n :return: new logger.\n :rtype: :class:`logging.Logger`\n<END>", "<BEGIN>\n## `format`",...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
Extracts message informations from `data`. :param data: received line. :type data: unicode :return: extracted informations (source, destination, command, args). :rtype: tuple(Source, str, str, list) :raise: :class:`fatbotslim.irc.NullMessage` if `data` is empty.
"Extracts message informations from `data`.\n\n :param data: received line.\n :type data: unicode\n :return: extracted informations (source, destination, command, args).\n :rtype: tuple(Source, str, str, list)\n :raise: :class:`fatbotslim.irc.NullMessage` if `data` is empty."
83
false
mdeous/fatbotslim
parse
17,323
LDU_FT/wind-python/windpowerlib/load_turbine_data_from_oedb
LDU_FT
[ "<BEGIN>\n## `reduce_wind_speed`", "r\"\"\"\n Reduces wind speed by a wind efficiency curve.", " The wind efficiency curves are provided in the windpowerlib and were\n calculated in the dena-Netzstudie II and in the work of Knorr\n (see [1]_ and [2]_).", " Parameters\n ----------\n wind_s...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load_turbine_data_from_oedb 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 load_turbine_data_from_oedb API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclu...
r""" Loads turbine data from the OpenEnergy Database (oedb). Turbine data is saved to `filename` for offline usage of windpowerlib. Returns ------- turbine_data : pd.DataFrame Contains turbine data of different turbines such as 'manufacturer', 'turbine_type', nominal power ('instal...
"r\"\"\"\n Loads turbine data from the OpenEnergy Database (oedb).\n\n Turbine data is saved to `filename` for offline usage of windpowerlib.\n\n Returns\n -------\n turbine_data : pd.DataFrame\n Contains turbine data of different turbines such as 'manufacturer',\n 'turbine_type', nominal p...
249
false
wind-python/windpowerlib
load_turbine_data_from_oedb
17,324
LDU_FT/zeroSteiner/AdvancedHTTPServer/on_message
LDU_FT
[ "<BEGIN>\n## `resolve_ssl_protocol_version`", "Look up an SSL protocol version by name. If *version* is not specified, then\n\tthe strongest protocol available will be returned.", "\t:param str version: The name of the version to look up.\n\t:return: A protocol constant from the :py:mod:`ssl` module.\n\t:rtype:...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the on_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 extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the on_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 extrac...
The primary dispatch function to handle incoming WebSocket messages. :param int opcode: The opcode of the message that was received. :param bytes message: The data contained within the message.
"The primary dispatch function to handle incoming WebSocket messages.\n\n\t\t:param int opcode: The opcode of the message that was received.\n\t\t:param bytes message: The data contained within the message."
102
false
zeroSteiner/AdvancedHTTPServer
on_message
17,325
LDU_FT/fracpete/python-weka-wrapper3/fix_config
LDU_FT
[ "<BEGIN>\n## `main`", "Runs a clusterer from the command-line. Calls JVM start/stop automatically.\n Use -h to see all options.\n<END>", "<BEGIN>\n## `update_clusterer`", "Updates the clusterer with the instance.", " :param inst: the Instance to update the clusterer with\n :type inst: Insta...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the fix_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 extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the fix_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 extrac...
Fixes the options, if necessary. I.e., it adds all required elements to the dictionary. :param options: the options to fix :type options: dict :return: the (potentially) fixed options :rtype: dict
"Fixes the options, if necessary. I.e., it adds all required elements to the dictionary.\n\n :param options: the options to fix\n :type options: dict\n :return: the (potentially) fixed options\n :rtype: dict"
856
false
fracpete/python-weka-wrapper3
fix_config
17,326
LDU_FT/google/transitfeed/GetDictToFormat
LDU_FT
[ "<BEGIN>\n## `GetClosestPoint`", "Returns the point on the great circle segment ab closest to x.\n<END>", "<BEGIN>\n## `Norm2`", "Returns the L_2 (Euclidean) norm of self.\n<END>", "<BEGIN>\n## `Plus`", "Returns a new point which is the pointwise sum of self and other.\n<END>", "<BEGIN>\n## `Minus`", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the GetDictToFormat API. 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 GetDictToFormat API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
Return a copy of self as a dict, suitable for passing to FormatProblem
"Return a copy of self as a dict, suitable for passing to FormatProblem"
708
false
google/transitfeed
GetDictToFormat
17,327
LDU_FT/jenisys/parse_type/bump_version
LDU_FT
[ "<BEGIN>\n## `build_type_dict`", "Builds type dictionary for user-defined type converters,\n used by :mod:`parse` module.\n This requires that each type converter has a \"name\" attribute.", " :param converters: List of type converters (parse_types)\n :return: Type converter dictionary\n<END>", "<...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the bump_version API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the bump_version API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
Bump version (to prepare a new release).
"Bump version (to prepare a new release)."
115
false
jenisys/parse_type
bump_version
17,328
LDU_FT/dschep/lambda-decorators/load_json_body
LDU_FT
[ "<BEGIN>\n## `before`", "Run a function before the handler is invoked, is passed the event & context\n and must return an event & context too.", " Usage::", " >>> # to create a reusable decorator\n >>> @before\n ... def print_request_id(event, context):\n ... print(contex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load_json_body API. 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 load_json_body API. 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...
Automatically deserialize event bodies with json.loads. Automatically returns a 400 BAD REQUEST if there is an error while parsing. Usage:: >>> from lambda_decorators import load_json_body >>> @load_json_body ... def handler(event, context): ... return event['body']['foo'] >...
"Automatically deserialize event bodies with json.loads.\n\n Automatically returns a 400 BAD REQUEST if there is an error while parsing.\n\n Usage::\n\n >>> from lambda_decorators import load_json_body\n >>> @load_json_body\n ... def handler(event, context):\n ... return event['body']['foo...
69
false
dschep/lambda-decorators
load_json_body
17,329
LDU_FT/springload/draftjs_exporter/render
LDU_FT
[ "<BEGIN>\n## `create_element`", "Signature inspired by React.createElement.\n createElement(\n string/Component type,\n [dict props],\n [children ...]\n )\n https://facebook.github.io/react/docs/top-level-api.html#react.createelement\n<END>", "<BEGIN>\n## `start_s...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the render API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the render API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Starts the export process on a given piece of content state.
"Starts the export process on a given piece of content state."
14
false
springload/draftjs_exporter
render
17,330
LDU_FT/matllubos/django-is-core/get_inline_views_opts_from_fieldsets
LDU_FT
[ "<BEGIN>\n## `short_description`", "Sets 'short_description' attribute (this attribute is in exports to generate header name).\n<END>", "<BEGIN>\n## `redirect_to_login`", "Redirects the user to the login page, passing the given 'next' page\n<END>", "<BEGIN>\n## `_check_permission`", "If customer is not au...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_inline_views_opts_from_fieldsets API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates i...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_inline_views_opts_from_fieldsets API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates i...
Returns a list of field names from an admin fieldsets structure.
"Returns a list of field names from an admin fieldsets structure."
66
false
matllubos/django-is-core
get_inline_views_opts_from_fieldsets
17,331
LDU_FT/StorjOld/heartbeat/verify_branch
LDU_FT
[ "<BEGIN>\n## `generate_challenges`", "Generate the specified number of hash challenges.", " :param num: The number of hash challenges we want to generate.\n :param root_seed: Some value that we use to generate our seeds from.\n<END>", "<BEGIN>\n## `meet_challenge`", "Get the SHA256 hash of a s...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the verify_branch API. 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 verify_branch API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
This will verify that the given branch fits the given leaf and root It calculates the hash of the leaf, and then verifies that one of the bottom level nodes in the branch matches the leaf hash. Then it calculates the hash of the two nodes on the next level and checks that one of the nod...
"This will verify that the given branch fits the given leaf and root\n It calculates the hash of the leaf, and then verifies that one of the\n bottom level nodes in the branch matches the leaf hash. Then it\n calculates the hash of the two nodes on the next level and checks that\n one of th...
100
false
StorjOld/heartbeat
verify_branch
17,332
LDU_FT/bear/parsedatetime/daysInMonth
LDU_FT
[ "<BEGIN>\n## `_parse_date_rfc822`", "Parse an RFC822, RFC1123, RFC2822, or asctime-style date\n<END>", "<BEGIN>\n## `_initSymbols`", "Initialize symbols and single character constants.\n<END>", "<BEGIN>\n## `_convertUnitAsWords`", "Converts text units into their number value.", " @type unitText:...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the daysInMonth API. 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 daysInMonth API. 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...
Take the given month (1-12) and a given year (4 digit) return the number of days in the month adjusting for leap year as needed
"Take the given month (1-12) and a given year (4 digit) return\n the number of days in the month adjusting for leap year as needed"
131
false
bear/parsedatetime
daysInMonth
17,333
LDU_FT/MacHu-GWU/sqlalchemy_mate-project/from_s3_json
LDU_FT
[ "<BEGIN>\n## `count_row`", "Return number of rows in a table.", " Example::", " >>> count_row(engine, table_user)\n 3", " **中文文档**", " 返回一个表中的行数。\n<END>", "<BEGIN>\n## `keys`", "return list of all declared columns.", " :rtype: List[str]\n<END>", "<BEGIN>\n## `glance`"...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the from_s3_json API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the from_s3_json API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
Load database credential from json on s3. :param bucket_name: str :param key: str :param aws_profile: if None, assume that you are using this from AWS cloud. (service on the same cloud doesn't need profile name) :param aws_access_key_id: str, not recommend to use :pa...
"Load database credential from json on s3.\n\n :param bucket_name: str\n :param key: str\n :param aws_profile: if None, assume that you are using this from\n AWS cloud. (service on the same cloud doesn't need profile name)\n :param aws_access_key_id: str, not recommend to use\n ...
92
false
MacHu-GWU/sqlalchemy_mate-project
from_s3_json
17,334
LDU_FT/napalm-automation/napalm/traceroute
LDU_FT
[ "<BEGIN>\n## `parse_intf_section`", "Parse a single entry from show interfaces output.", " Different cases:\n mgmt0 is up\n admin state is up", " Ethernet2/1 is up\n admin state is up, Dedicated Interface", " Vlan1 is down (Administratively down), line protocol is down, autostate enabled",...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the traceroute API. 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 traceroute API. 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...
Executes traceroute on the device and returns a dictionary with the result. :param destination: Host or IP Address of the destination :param source (optional): Use a specific IP Address to execute the traceroute :param ttl (optional): Maimum number of hops :param timeout (optional): Num...
"Executes traceroute on the device and returns a dictionary with the result.\n\n :param destination: Host or IP Address of the destination\n :param source (optional): Use a specific IP Address to execute the traceroute\n :param ttl (optional): Maimum number of hops\n :param timeout (optional...
254
false
napalm-automation/napalm
traceroute
17,335
LDU_FT/signetlabdei/sem/configure_and_build
LDU_FT
[ "<BEGIN>\n## `configure_and_build`", "Configure and build the ns-3 code.", " Args:\n show_progress (bool): whether or not to display a progress bar\n during compilation.\n optimized (bool): whether to use an optimized build. If False, use\n a standard ....
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the configure_and_build API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the configure_and_build API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
Configure and build the ns-3 code. Args: show_progress (bool): whether or not to display a progress bar during compilation. optimized (bool): whether to use an optimized build. If False, use a standard ./waf configure. skip_configuration (bool...
"Configure and build the ns-3 code.\n\n Args:\n show_progress (bool): whether or not to display a progress bar\n during compilation.\n optimized (bool): whether to use an optimized build. If False, use\n a standard ./waf configure.\n skip_configurati...
148
false
signetlabdei/sem
configure_and_build
17,336
LDU_FT/polysquare/polysquare-generic-file-linter/_error_is_suppressed
LDU_FT
[ "<BEGIN>\n## `create`", "Create a Dictionary at spellchecker_cache_path with technical words.\n<END>", "<BEGIN>\n## `_comment_type_from_line`", "Return the \"comment header\" (' * ', '# ', 'rem ', '// ', '/* ').", " This header goes before the content of a start of the\n line in a replacement.\n<END>"...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _error_is_suppressed 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 _error_is_suppressed API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Return true if error is suppressed by an inline suppression.
"Return true if error is suppressed by an inline suppression."
143
false
polysquare/polysquare-generic-file-linter
_error_is_suppressed
17,337
LDU_FT/geophysics-ubonn/crtomo_tools/plot_pseudosection_type2
LDU_FT
[ "<BEGIN>\n## `clear_measurements`", "Remove all measurements from self.measurements. Reset the\n measurement counter. All ID are invalidated.\n<END>", "<BEGIN>\n## `add_measurements`", "Add new measurements to this instance", " Parameters\n ----------\n measurements: numpy.ndarra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the plot_pseudosection_type2 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 plot_pseudosection_type2 API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio...
Create a pseudosection plot of type 2. For a given measurement data set, create plots that graphically show the data in a 2D color plot. Hereby, x and y coordinates in the plot are determined by the current dipole (x-axis) and voltage dipole (y-axis) of the corresponding measurement con...
"Create a pseudosection plot of type 2.\n\n For a given measurement data set, create plots that graphically show\n the data in a 2D color plot. Hereby, x and y coordinates in the plot\n are determined by the current dipole (x-axis) and voltage dipole\n (y-axis) of the corresponding measureme...
525
false
geophysics-ubonn/crtomo_tools
plot_pseudosection_type2
17,338
LDU_FT/sosy-lab/benchexec/xml_to_string
LDU_FT
[ "<BEGIN>\n## `_program_files_from_executable`", "Get a list of program files by expanding a list of path patterns\n and interpreting it as relative to the executable.\n This method can be used as helper for implementing the method program_files().\n Contrary to the default implementation of p...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the xml_to_string API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the xml_to_string API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
Return a pretty-printed XML string for the Element. Also allows setting a document type.
"Return a pretty-printed XML string for the Element.\n Also allows setting a document type."
406
false
sosy-lab/benchexec
xml_to_string
17,339
LDU_FT/devision-io/metasdk/download
LDU_FT
[ "<BEGIN>\n## `get_feed`", "Получение настроек для фида\n :param datasource_id: идентификатор фида\n :return: FeedDataSource\n<END>", "<BEGIN>\n## `get_data`", "Сохранение медиафайла\n :param task:\n :param media_metadata:\n :param file_suffix:\n :param callback:\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the download API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the download API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
Скачивает указанный файл :param media_id: string :rtype: requests.Response
"Скачивает указанный файл\n :param media_id: string\n :rtype: requests.Response"
88
false
devision-io/metasdk
download
17,340
LDU_FT/etcher-be/elib_miz/group_is_client_group
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 group_is_client_group API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the group_is_client_group API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Returns: True if this group is a client group
"Returns: True if this group is a client group"
100
false
etcher-be/elib_miz
group_is_client_group
17,341
LDU_FT/klen/muffin/register
LDU_FT
[ "<BEGIN>\n## `parse`", "Parse URL path and convert it to regexp if needed.\n<END>", "<BEGIN>\n## `create_signature`", "Create HMAC Signature from secret for value.\n<END>", "<BEGIN>\n## `generate_password_hash`", "Hash a password with given method and salt length.\n<END>", "<BEGIN>\n## `register`", "M...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the register API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the register API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
Register function/coroutine/muffin.Handler with the application. Usage example: .. code-block:: python @app.register('/hello') def hello(request): return 'Hello World!'
"Register function/coroutine/muffin.Handler with the application.\n\n Usage example:\n\n .. code-block:: python\n\n @app.register('/hello')\n def hello(request):\n return 'Hello World!'"
37
false
klen/muffin
register
17,342
LDU_FT/JelteF/PyLaTeX/_propagate_packages
LDU_FT
[ "<BEGIN>\n## `fill_document`", "Add a section, a subsection and some text to the document.", " :param doc: the document\n :type doc: :class:`pylatex.document.Document` instance\n<END>", "<BEGIN>\n## `dumps_content`", "r\"\"\"Represent the container as a string in LaTeX syntax.", " Args\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _propagate_packages API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _propagate_packages API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
r"""Propogate packages. Make sure that all the packages included in the previous containers are part of the full list of packages.
"r\"\"\"Propogate packages.\n\n Make sure that all the packages included in the previous containers\n are part of the full list of packages."
183
false
JelteF/PyLaTeX
_propagate_packages
17,343
LDU_FT/globus/globus-cli/get_endpoint_w_server_list
LDU_FT
[ "<BEGIN>\n## `role_show`", "Executor for `globus endpoint role show`\n<END>", "<BEGIN>\n## `outformat_is_json`", "Only safe to call within a click context.\n<END>", "<BEGIN>\n## `outformat_is_unix`", "Only safe to call within a click context.\n<END>", "<BEGIN>\n## `outformat_is_text`", "Only safe to c...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_endpoint_w_server_list API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclus...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_endpoint_w_server_list API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclus...
A helper for handling endpoint server list lookups correctly accounting for various endpoint types. - Raises click.UsageError when used on Shares - Returns (<get_endpoint_response>, "S3") for S3 endpoints - Returns (<get_endpoint_response>, <server_list_response>) for all other Endpoints
"A helper for handling endpoint server list lookups correctly accounting\n for various endpoint types.\n\n - Raises click.UsageError when used on Shares\n - Returns (<get_endpoint_response>, \"S3\") for S3 endpoints\n - Returns (<get_endpoint_response>, <server_list_response>) for all other\n Endpoints...
186
false
globus/globus-cli
get_endpoint_w_server_list
17,344
LDU_FT/evandempsey/fp-growth/mine_sub_trees
LDU_FT
[ "<BEGIN>\n## `find_frequent_patterns`", "Given a set of transactions, find the patterns in it\n over the specified support threshold.\n<END>", "<BEGIN>\n## `generate_association_rules`", "Given a set of frequent itemsets, return a dict\n of association rules in the form\n {(left): ((right), confidenc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the mine_sub_trees API. 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 mine_sub_trees API. 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...
Generate subtrees and mine them for patterns.
"Generate subtrees and mine them for patterns."
22
false
evandempsey/fp-growth
mine_sub_trees
17,345
LDU_FT/andrenarchy/krypy/operator
LDU_FT
[ "<BEGIN>\n## `find_common_dtype`", "Returns common dtype of numpy and scipy objects.", " Recognizes ndarray, spmatrix and LinearOperator. All other objects are\n ignored (most notably None).\n<END>", "<BEGIN>\n## `shape_vecs`", "Reshape all ndarrays with ``shape==(n,)`` to ``shape==(n,1)``.", " R...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the operator API. 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 operator API. 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...
Get a ``LinearOperator`` corresponding to apply(). :return: a LinearOperator that calls apply().
"Get a ``LinearOperator`` corresponding to apply().\n\n :return: a LinearOperator that calls apply()."
194
false
andrenarchy/krypy
operator
17,346
LDU_FT/rackerlabs/silverberg/prepare
LDU_FT
[ "<BEGIN>\n## `describe_version`", "Query the Cassandra server for the version.", " :returns: string -- the version tag\n<END>", "<BEGIN>\n## `execute`", "Execute a CQL query against the server.", " :param query: The CQL query to execute\n :type query: str.", " :param args: Th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the 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...
For every match of the form ":param_name", call marshal on kwargs['param_name'] and replace that section of the query with the result
"For every match of the form \":param_name\", call marshal\n on kwargs['param_name'] and replace that section of the query\n with the result"
48
false
rackerlabs/silverberg
prepare
17,347
LDU_FT/PierreRust/apigpio/write
LDU_FT
[ "<BEGIN>\n## `u2i`", "Converts a 32 bit unsigned number to signed.", " uint32:= an unsigned 32 bit number", " ...\n print(u2i(4294967272))\n -24\n print(u2i(37))\n 37\n ...\n<END>", "<BEGIN>\n## `_u2i`", "Converts a 32 bit unsigned number to signed. If the number\n is negative it ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the write API. Each 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 write API. Each 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...
Sets the gpio level. gpio:= 0-53. level:= 0, 1. If PWM or servo pulses are active on the gpio they are switched off. ... pi.set_mode(17, pigpio.OUTPUT) pi.write(17,0) print(pi.read(17)) 0 pi.write(17,1) print(pi.read(17)) ...
"Sets the gpio level.\n\n gpio:= 0-53.\n level:= 0, 1.\n\n If PWM or servo pulses are active on the gpio they are\n switched off.\n\n ...\n pi.set_mode(17, pigpio.OUTPUT)\n\n pi.write(17,0)\n print(pi.read(17))\n 0\n\n pi.write(17,1)\n print(p...
102
false
PierreRust/apigpio
write
17,348
LDU_FT/fabioz/PyDev.Debugger/get_seh_chain_pointer
LDU_FT
[ "<BEGIN>\n## `convert`", "Note:", " If the shellcode starts with '66' controls, it needs to be changed to add [BITS 32] or\n [BITS 64] to the start.", " To use:", " convert(\"\"\"\n 55\n 53\n 50\n BDE97F071E\n FFD5\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_seh_chain_pointer 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_seh_chain_pointer API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Get the pointer to the first structured exception handler block. @rtype: int @return: Remote pointer to the first block of the structured exception handlers linked list. If the list is empty, the returned value is C{0xFFFFFFFF}. @raise NotImplementedError: ...
"Get the pointer to the first structured exception handler block.\n\n @rtype: int\n @return: Remote pointer to the first block of the structured exception\n handlers linked list. If the list is empty, the returned value is\n C{0xFFFFFFFF}.\n\n @raise NotImplementedError:\n ...
3,640
true
fabioz/PyDev.Debugger
get_seh_chain_pointer
17,349
LDU_FT/daveoncode/python-string-utils/is_snake_case
LDU_FT
[ "<BEGIN>\n## `is_url`", "Check if a string is a valid url.", " :param string: String to check.\n :param allowed_schemes: List of valid schemes ('http', 'https', 'ftp'...). Default to None (any scheme is valid).\n :return: True if url, false otherwise\n :rtype: bool\n<END>", "<BEGIN>\n## `is_credit...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_snake_case API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_snake_case API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
Checks if a string is formatted as snake case. A string is considered snake case when: * it's composed only by lowercase letters ([a-z]), underscores (or provided separator) \ and optionally numbers ([0-9]) * it does not start/end with an underscore (or provided separator) * it does not start with ...
"Checks if a string is formatted as snake case.\n A string is considered snake case when:\n\n * it's composed only by lowercase letters ([a-z]), underscores (or provided separator) \\\n and optionally numbers ([0-9])\n * it does not start/end with an underscore (or provided separator)\n * it does not sta...
46
false
daveoncode/python-string-utils
is_snake_case
17,350
LDU_FT/QualiSystems/cloudshell-networking-devices/create_firewall_resource_from_context
LDU_FT
[ "<BEGIN>\n## `create_networking_resource_from_context`", "Creates an instance of Networking Resource by given context\n :param shell_name: Shell Name\n :type shell_name: str\n :param supported_os: list of supported OS\n :type supported_os: list\n :param context: cloudshell.shell.core.driver_context...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_firewall_resource_from_context API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_firewall_resource_from_context API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates ...
Creates an instance of Firewall Resource by given context :param shell_name: Shell Name :type shell_name: str :param supported_os: list of supported OS :type supported_os: list :param context: cloudshell.shell.core.driver_context.ResourceCommandContext :type context: cloudshell.shell.core.driver...
"Creates an instance of Firewall Resource by given context\n :param shell_name: Shell Name\n :type shell_name: str\n :param supported_os: list of supported OS\n :type supported_os: list\n :param context: cloudshell.shell.core.driver_context.ResourceCommandContext\n :type context: cloudshell.shell.core...
87
false
QualiSystems/cloudshell-networking-devices
create_firewall_resource_from_context
17,351
LDU_FT/paylogic/pip-accel/last_modified
LDU_FT
[ "<BEGIN>\n## `get`", "Get a distribution archive from any of the available caches.", " :param requirement: A :class:`.Requirement` object.\n :returns: The absolute pathname of a local file or :data:`None` when the\n distribution archive is missing from all available caches.\n<END>...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the last_modified API. 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 last_modified API. 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...
The last modified time of the requirement's source distribution archive(s) (a number). The value of this property is based on the :attr:`related_archives` property. If no related archives are found the current time is reported. In the balance between not invalidating cached binary distr...
"The last modified time of the requirement's source distribution archive(s) (a number).\n\n The value of this property is based on the :attr:`related_archives`\n property. If no related archives are found the current time is\n reported. In the balance between not invalidating cached binary\n ...
252
false
paylogic/pip-accel
last_modified
17,352
LDU_FT/TeamHG-Memex/eli5/explain_linear_classifier_weights
LDU_FT
[ "<BEGIN>\n## `explain_weights_lightning`", "Return an explanation of a lightning estimator weights\n<END>", "<BEGIN>\n## `explain_prediction_lightning`", "Return an explanation of a lightning estimator predictions\n<END>", "<BEGIN>\n## `format_as_html`", "Format explanation as html.\n Most styles are i...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the explain_linear_classifier_weights API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the explain_linear_classifier_weights API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its ...
Return an explanation of a linear classifier weights. See :func:`eli5.explain_weights` for description of ``top``, ``target_names``, ``targets``, ``feature_names``, ``feature_re`` and ``feature_filter`` parameters. ``vec`` is a vectorizer instance used to transform raw features to the input of the...
"Return an explanation of a linear classifier weights.\n\n See :func:`eli5.explain_weights` for description of\n ``top``, ``target_names``, ``targets``, ``feature_names``,\n ``feature_re`` and ``feature_filter`` parameters.\n\n ``vec`` is a vectorizer instance used to transform\n raw features to the inpu...
391
false
TeamHG-Memex/eli5
explain_linear_classifier_weights
17,353
LDU_FT/mikekatz04/BOWIE/_set_axis_limits
LDU_FT
[ "<BEGIN>\n## `read_noise_curve`", "Simple auxillary function that can read noise curves in.", " This function can read in noise curves from a provided file or those that are preinstalled\n with this installation. All pre-installed noise curves are in the form of\n an amplitude spectral density. Informa...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _set_axis_limits API. 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 _set_axis_limits API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Private method for setting axis limits. Sets the axis limits on each axis for an individual plot. Args: which (str): The indicator of which part of the plots to adjust. This currently handles `x` and `y`. lims (len-2 list of floats): The limits for the axis. ...
"Private method for setting axis limits.\n\n Sets the axis limits on each axis for an individual plot.\n\n Args:\n which (str): The indicator of which part of the plots\n to adjust. This currently handles `x` and `y`.\n lims (len-2 list of floats): The limits for the a...
264
false
mikekatz04/BOWIE
_set_axis_limits
17,354
LDU_FT/unique1o1/Meta-Music/unique_hash
LDU_FT
[ "<BEGIN>\n## `unique_hash`", "Small function to generate a hash to uniquely generate a file.\n Default blocksize is `500`\n<END>", "<BEGIN>\n## `read`", "Reads any file supported by pydub (ffmpeg) and returns the data contained\n within.\n returns: (channels, samplerate)\n<END>", "<BEGIN>\n## `path...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the unique_hash API. 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 unique_hash API. 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...
Small function to generate a hash to uniquely generate a file. Default blocksize is `500`
"Small function to generate a hash to uniquely generate a file.\n Default blocksize is `500`"
16
false
unique1o1/Meta-Music
unique_hash
17,355
LDU_FT/shimpe/pyvectortween/tween
LDU_FT
[ "<BEGIN>\n## `make_frame`", ":param frame: current frame \n :param birthframe: frame where this animation starts returning something other than None\n :param startframe: frame where animation starts to evolve\n :param stopframe: frame where animation is completed\n :param deathframe: f...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the tween API. Each 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 tween API. Each 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...
t is number between 0 and 1 to indicate how far the tween has progressed
"t is number between 0 and 1 to indicate how far the tween has progressed"
37
false
shimpe/pyvectortween
tween
17,356
LDU_FT/mozilla/mozdownload/build_list_regex
LDU_FT
[ "<BEGIN>\n## `parse_arguments`", "Setup argument parser for command line arguments.\n<END>", "<BEGIN>\n## `query_builds_by_revision`", "Retrieve build folders for a given revision with the help of Treeherder.", " :param revision: Revision of the build to download.\n :param job_type_name: Name ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the build_list_regex API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the build_list_regex API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Return the regex for the folder which contains the list of builds.
"Return the regex for the folder which contains the list of builds."
43
false
mozilla/mozdownload
build_list_regex
17,357
LDU_FT/MechanicalSoup/MechanicalSoup/uncheck_all
LDU_FT
[ "<BEGIN>\n## `new_control`", "Call :func:`Form.new_control` on the currently selected form.\n<END>", "<BEGIN>\n## `open`", "Open the URL and store the Browser's state in this object.\n All arguments are forwarded to :func:`Browser.get`.", " :return: Forwarded from :func:`Browser.get`.\n<END>",...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the uncheck_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 extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the uncheck_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 extra...
Remove the *checked*-attribute of all input elements with a *name*-attribute given by ``name``.
"Remove the *checked*-attribute of all input elements with\n a *name*-attribute given by ``name``."
119
false
MechanicalSoup/MechanicalSoup
uncheck_all
17,358
LDU_FT/textbook/flash/parse_config
LDU_FT
[ "<BEGIN>\n## `parse_config`", "Parse the configuration and create required services.", " Note:\n Either takes the configuration from the environment (a variable\n named ``FLASH_CONFIG``) or a file at the module root (named\n ``config.json``). Either way, it will attempt to parse it as\n J...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_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 extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_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 extr...
Parse the configuration and create required services. Note: Either takes the configuration from the environment (a variable named ``FLASH_CONFIG``) or a file at the module root (named ``config.json``). Either way, it will attempt to parse it as JSON, expecting the following format:: ...
"Parse the configuration and create required services.\n\n Note:\n Either takes the configuration from the environment (a variable\n named ``FLASH_CONFIG``) or a file at the module root (named\n ``config.json``). Either way, it will attempt to parse it as\n JSON, expecting the following format::\...
20
false
textbook/flash
parse_config
17,359
LDU_FT/gplepage/lsqfit/builddata
LDU_FT
[ "<BEGIN>\n## `run`", "Append version number to lsqfit/__init__.py\n<END>", "<BEGIN>\n## `_reformat`", "Apply format of ``p`` to data in 1-d array ``buf``.\n<END>", "<BEGIN>\n## `_unpack_data`", "Unpack data and prior into ``(x, y, prior, fdata)``.", " This routine unpacks ``data`` and ``prior`` into ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the builddata API. 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 builddata API. 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...
Rebuild pdata to account for marginalization.
"Rebuild pdata to account for marginalization."
208
false
gplepage/lsqfit
builddata
17,360
LDU_FT/dossier/dossier.web/tags
LDU_FT
[ "<BEGIN>\n## `as_multi_dict`", "Coerce a dictionary to a bottle.MultiDict\n<END>", "<BEGIN>\n## `set_query_params`", "Set the query parameters.", " The query parameters should be a dictionary mapping keys to\n strings or lists of strings.", " :param query_params: query parameters\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the tags API. Each 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 tags API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
Return a thread local :class:`dossier.web.Tags` client.
"Return a thread local :class:`dossier.web.Tags` client."
223
false
dossier/dossier.web
tags
17,361
LDU_FT/elifesciences/elife-article/component_title
LDU_FT
[ "<BEGIN>\n## `build_contributors`", "Given a list of authors from the parser, instantiate contributors\n objects and build them\n<END>", "<BEGIN>\n## `build_datasets`", "Given datasets in JSON format, build and return a list of dataset objects\n<END>", "<BEGIN>\n## `build_data_availability`", "Given da...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the component_title API. 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 component_title API. 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...
Label, title and caption Title is the label text plus the title text Title may contain italic tag, etc.
"Label, title and caption\n Title is the label text plus the title text\n Title may contain italic tag, etc."
44
false
elifesciences/elife-article
component_title
17,362
LDU_FT/JdeRobot/base/fence_fetch_point_send
LDU_FT
[ "<BEGIN>\n## `bytes_needed`", "return number of bytes needed for next parsing stage\n<END>", "<BEGIN>\n## `__callbacks`", "this method exists only to make profiling results easier to read\n<END>", "<BEGIN>\n## `parse_char`", "input some data bytes, possibly returning a new message\n<END>", "<BEGIN>\n## ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the fence_fetch_point_send 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 fence_fetch_point_send API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
Request a current fence point from MAV target_system : System ID (uint8_t) target_component : Component ID (uint8_t) idx : point index (first point is 1, 0 is for return point) (uint8_t)
"Request a current fence point from MAV\n\n target_system : System ID (uint8_t)\n target_component : Component ID (uint8_t)\n idx : point index (first point is 1, 0 is for return point) (uint8_t)"
1,991
true
JdeRobot/base
fence_fetch_point_send
17,363
LDU_FT/sharibarboza/py_zap/inc_date
LDU_FT
[ "<BEGIN>\n## `get_title`", "Title is either the chart header for a cable ratings page or above\n the opening description for a broadcast ratings page.\n<END>", "<BEGIN>\n## `get_json`", "Serialize ratings object as JSON-formatted string\n<END>", "<BEGIN>\n## `_get_url_params`", "Returns a list of e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the inc_date API. 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 inc_date API. 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...
Increment the date by a certain number and return date object. as the specific string format.
"Increment the date by a certain number and return date object.\n as the specific string format."
59
false
sharibarboza/py_zap
inc_date
17,364
LDU_FT/timster/peewee-validates/initialize_fields
LDU_FT
[ "<BEGIN>\n## `validate_not_empty`", "Validate that a field is not empty (blank string).", " :raises: ``ValidationError('empty')``\n<END>", "<BEGIN>\n## `validate_length`", "Validate the length of a field with either low, high, or equal.\n Should work with anything that supports len().", " :param ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the initialize_fields API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the initialize_fields API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Convert all model fields to validator fields. Then call the parent so that overwrites can happen if necessary for manually defined fields. :return: None
"Convert all model fields to validator fields.\n Then call the parent so that overwrites can happen if necessary for manually defined fields.\n\n :return: None"
82
false
timster/peewee-validates
initialize_fields
17,365
LDU_FT/vals/umis/_extract_readnum
LDU_FT
[ "<BEGIN>\n## `mutationhash`", "produce a hash with each key a nedit distance substitution for a set of\n strings. values of the hash is the set of strings the substitution could\n have come from\n<END>", "<BEGIN>\n## `substitution_set`", "for a string, return a set of all possible substitutions\n<END>",...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _extract_readnum API. 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 _extract_readnum API. 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 read numbers from old-style fastqs. Handles read 1 and 2 specifications where naming is readname/1 readname/2
"Extract read numbers from old-style fastqs.\n\n Handles read 1 and 2 specifications where naming is\n readname/1 readname/2"
62
false
vals/umis
_extract_readnum
17,366
LDU_FT/salu133445/pypianoroll/trim_trailing_silence
LDU_FT
[ "<BEGIN>\n## `plot_pianoroll`", "Plot a pianoroll given as a numpy array.", " Parameters\n ----------\n ax : matplotlib.axes.Axes object\n A :class:`matplotlib.axes.Axes` object where the pianoroll will be\n plotted on.\n pianoroll : np.ndarray\n A pianoroll to be plotted. The v...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the trim_trailing_silence 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 trim_trailing_silence API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Trim the trailing silence of the pianoroll.
"Trim the trailing silence of the pianoroll."
196
false
salu133445/pypianoroll
trim_trailing_silence
17,367
LDU_FT/usc-isi-i2/etk/_add_value
LDU_FT
[ "<BEGIN>\n## `decode_unicode`", "Process of parsing:\n -> Convert unicode into standard form\n -> Convert each character of the unicode symbol to its numerical equivalent\n -> Mapping Process:\n - First check in pattern dictionary to map suffix/prefix\n - Check Emoticon Dictionary \n - Replace valu...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _add_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 _add_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...
Helper function to add values to a knowledge graph Args: field_name: a field in the knowledge graph, assumed correct value: any Python type Returns: True if the value is compliant with the field schema, False otherwise
"Helper function to add values to a knowledge graph\n Args:\n field_name: a field in the knowledge graph, assumed correct\n value: any Python type\n\n Returns: True if the value is compliant with the field schema, False otherwise"
427
false
usc-isi-i2/etk
_add_value
17,368
LDU_FT/johnbywater/eventsourcing/item_from_event
LDU_FT
[ "<BEGIN>\n## `register_new_suffix_tree`", "Factory method, returns new suffix tree object.\n<END>", "<BEGIN>\n## `find_substring`", "Returns the index if substring in tree, otherwise -1.\n<END>", "<BEGIN>\n## `_canonize_suffix`", "This canonizes the suffix, walking along its suffix string until it\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the item_from_event API. 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 item_from_event API. 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...
Maps domain event to sequenced item namedtuple. :param domain_event_or_events: application-level object (or list) :return: namedtuple: sequence item namedtuple (or list)
"Maps domain event to sequenced item namedtuple.\n\n :param domain_event_or_events: application-level object (or list)\n :return: namedtuple: sequence item namedtuple (or list)"
161
false
johnbywater/eventsourcing
item_from_event
17,369
LDU_FT/jplusplus/statscraper/get_option_value
LDU_FT
[ "<BEGIN>\n## `initiate_browser`", "The button for expanded detailed options. This\n also happens to be a good indicator as to wheter\n all content is loaded.\n<END>", "<BEGIN>\n## `_fetch_dimensions`", "Declaring available dimensions like this is not mandatory,\n but nice, especially if ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_option_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 ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_option_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 ...
Get the value attribute, or if it doesn't exist the text content. <option value="foo">bar</option> => "foo" <option>bar</option> => "bar" :param elem: a soup element
"Get the value attribute, or if it doesn't exist the text\n content.\n <option value=\"foo\">bar</option> => \"foo\"\n <option>bar</option> => \"bar\"\n :param elem: a soup element"
57
false
jplusplus/statscraper
get_option_value
17,370
LDU_FT/jpscaletti/moar/get_thumbsdir
LDU_FT
[ "<BEGIN>\n## `get_key`", "Generates the thumbnail's key from it's arguments.\n If the arguments doesn't change the key will not change\n<END>", "<BEGIN>\n## `get_source`", "Returns the source image file descriptor.", " path_or_url:\n Path to the source image as an absolute path, a p...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_thumbsdir API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_thumbsdir API. 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...
path: path of the source image
"path:\n path of the source image"
27
false
jpscaletti/moar
get_thumbsdir
17,371
LDU_FT/Telefonica/toolium/execute_after_feature_steps
LDU_FT
[ "<BEGIN>\n## `create_driver`", "Create a selenium driver using specified config properties", " :returns: a new selenium driver\n :rtype: selenium.webdriver.remote.webdriver.WebDriver\n<END>", "<BEGIN>\n## `_create_remote_driver`", "Create a driver in a remote server\n View valid capabil...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the execute_after_feature_steps 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 execute_after_feature_steps API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclu...
actions after the feature :param context: It’s a clever place where you and behave can store information to share around, automatically managed by behave.
"actions after the feature\n :param context: It’s a clever place where you and behave can store information to share around, automatically managed by behave."
381
false
Telefonica/toolium
execute_after_feature_steps
17,372