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/tuomas2/automate/get_sensors
LDU_FT
[ "<BEGIN>\n## `call_eval`", "Value might be either name registered in System namespace, or object, either\n StatusObject or Callable. If Callable, evaluate :meth:`.call` method. If StatusObject,\n return status.\n<END>", "<BEGIN>\n## `setup_callable_system`", "This function basically sets...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_sensors API. 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_sensors API. 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 sensors as a dictionary of format ``{name: status}``
"Get sensors as a dictionary of format ``{name: status}``"
91
false
tuomas2/automate
get_sensors
24,873
LDU_FT/projecthamster/hamster-lib/_fact_to_tuple
LDU_FT
[ "<BEGIN>\n## `_fact_to_tuple`", "Convert a ``Fact`` to its normalized tuple.", " This is where all type conversion for ``Fact`` attributes to strings as\n well as any normalization happens.", " Note:\n Because different writers may require different types, we need to\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _fact_to_tuple API. 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 _fact_to_tuple API. 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...
Convert a ``Fact`` to its normalized tuple. This is where all type conversion for ``Fact`` attributes to strings as well as any normalization happens. Note: Because different writers may require different types, we need to do this individually. Args: ...
"Convert a ``Fact`` to its normalized tuple.\n\n This is where all type conversion for ``Fact`` attributes to strings as\n well as any normalization happens.\n\n Note:\n Because different writers may require different types, we need to\n do this individually.\n\n Args:\...
82
false
projecthamster/hamster-lib
_fact_to_tuple
24,874
LDU_FT/TheHive-Project/Cortex-Analyzers/IPAddress
LDU_FT
[ "<BEGIN>\n## `auth_string`", "Authenticate based on username and token which is base64-encoded\n<END>", "<BEGIN>\n## `api_related`", "Find related objects through SoltraEdge API\n<END>", "<BEGIN>\n## `tlp_classifiers`", "Classifier between Cortex and Soltra.\n Soltra uses name-TLP, and Cortex \"val...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the IPAddress API. 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 IPAddress API. 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...
Take an IP string/int and return an object of the correct type. Args: address: A string or integer, the IP address. Either IPv4 or IPv6 addresses may be supplied; integers less than 2**32 will be considered to be IPv4 by default. version: An Integer, 4 or 6. If set, don't try t...
"Take an IP string/int and return an object of the correct type.\n\n Args:\n address: A string or integer, the IP address. Either IPv4 or\n IPv6 addresses may be supplied; integers less than 2**32 will\n be considered to be IPv4 by default.\n version: An Integer, 4 or 6. If set, don'...
328
false
TheHive-Project/Cortex-Analyzers
IPAddress
24,875
LDU_FT/marcharper/python-ternary/left_corner_label
LDU_FT
[ "<BEGIN>\n## `normalize`", "Normalizes input list.", " Parameters\n ----------\n l: list\n The list to be normalized", " Returns\n -------\n The normalized list or numpy array", " Raises\n ------\n ValueError, if the list sums to zero\n<END>", "<BEGIN>\n## `simplex_iterat...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the left_corner_label API. 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 left_corner_label API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Sets the label on the left corner (complements right axis.) Parameters ---------- label: string The axis label position: 3-Tuple of floats, None The position of the text label rotation: float, 0 The angle of rotation of the label offse...
"Sets the label on the left corner (complements right axis.)\n\n Parameters\n ----------\n label: string\n The axis label\n position: 3-Tuple of floats, None\n The position of the text label\n rotation: float, 0\n The angle of rotation of the label\n ...
179
false
marcharper/python-ternary
left_corner_label
24,876
LDU_FT/mrjoes/sockjs-tornado/verify_state
LDU_FT
[ "<BEGIN>\n## `get_conn_info`", "Return `ConnectionInfo` object from current transport\n<END>", "<BEGIN>\n## `add`", "Add session to the container.", " `session`\n Session object\n<END>", "<BEGIN>\n## `remove`", "Remove session object from the container", " `session_id`\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the verify_state API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the verify_state API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
Verify if session was not yet opened. If it is, open it and call connections `on_open`
"Verify if session was not yet opened. If it is, open it and call connections `on_open`"
50
false
mrjoes/sockjs-tornado
verify_state
24,877
LDU_FT/wesyoung/pyzyre/vrecv
LDU_FT
[ "<BEGIN>\n## `set_header`", "Set node header; these are provided to other nodes during discovery\nand come in each ENTER message.\n<END>", "<BEGIN>\n## `set_endpoint`", "By default, Zyre binds to an ephemeral TCP port and broadcasts the local\nhost name using UDP beaconing. When you call this method, Zyre wil...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the vrecv API. 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 vrecv API. 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...
Receive a 'picture' message from the socket (or actor). This is a va_list version of zsock_recv (), so please consult its documentation for the details.
"Receive a 'picture' message from the socket (or actor). This is a\nva_list version of zsock_recv (), so please consult its documentation\nfor the details."
192
false
wesyoung/pyzyre
vrecv
24,878
LDU_FT/Groundworkstech/pybfd/is_thin_archieve
LDU_FT
[ "<BEGIN>\n## `generate_source_files`", "Genertate source files to be used during the compile process of the\n extension module.\n This is better than just hardcoding the values on python files because\n header definitions might change along differente Binutils versions and\n we'll be a...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_thin_archieve API. 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 is_thin_archieve API. 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 is thin archieve attribute of the BFD file being processed.
"Return the is thin archieve attribute of the BFD file being processed."
96
false
Groundworkstech/pybfd
is_thin_archieve
24,879
LDU_FT/thombashi/pytablereader/_get_format_name_loader_mapping
LDU_FT
[ "<BEGIN>\n## `load`", "Extract tabular data as |TableData| instances from a CSV file.\n |load_source_desc_file|", " :return:\n Loaded table data.\n |load_table_name_desc|", " =================== ========================================\n Format specif...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_format_name_loader_mapping API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its co...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_format_name_loader_mapping API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its co...
:return: Mappings of format name and loader class. :rtype: dict
":return: Mappings of format name and loader class.\n :rtype: dict"
140
false
thombashi/pytablereader
_get_format_name_loader_mapping
24,880
LDU_FT/shmuelamar/cbox/main
LDU_FT
[ "<BEGIN>\n## `stream`", "wrapper for processing data from input stream into output into output\n stream while passing each data piece into the function.\n function should take at least one argument (an input stream piece) and\n return an `str` to be written into the output stream.", " Example Usage:...
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...
runs a function as a command. runs a function as a command - reading input from `input_stream`, writing output into `output_stream` and providing arguments from `argv`. Example Usage: >>> import cbox >>> >>> @cbox.cmd >>> def hello(name: str): >>> print('hello {...
"runs a function as a command.\n runs a function as a command - reading input from `input_stream`, writing\n output into `output_stream` and providing arguments from `argv`.\n\n Example Usage:\n\n >>> import cbox\n >>>\n >>> @cbox.cmd\n >>> def hello(name: str):\n >>> pri...
34
false
shmuelamar/cbox
main
24,881
LDU_FT/PonteIneptique/collatinus-python/_lemmatise_desassims
LDU_FT
[ "<BEGIN>\n## `assims`", "Cherche si la chaîne a peut subir une assimilation, renvoie cette chaîne éventuellement assimilée.", " :param mot: Mot pour lequel on doit vérifier des assimilations\n :type mot: str\n :return: Mot assimilé\n :rtype: str\n<END>", "<BEGIN>\n## `morpho`", "...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _lemmatise_desassims 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 _lemmatise_desassims API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Lemmatise un mot f avec sa désassimilation :param f: Mot à lemmatiser :yield: Match formated like in _lemmatise()
"Lemmatise un mot f avec sa désassimilation\n\n :param f: Mot à lemmatiser\n :yield: Match formated like in _lemmatise()"
109
false
PonteIneptique/collatinus-python
_lemmatise_desassims
24,882
LDU_FT/cnelson/python-fleet/get_unit
LDU_FT
[ "<BEGIN>\n## `_set_options_from_file`", "Parses a unit file and updates self._data['options']", " Args:\n file_handle (file): a file-like object (supporting read()) containing a unit", " Returns:\n True: The file was successfuly parsed and options were updated", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_unit API. 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_unit API. 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...
Retreive a specifi unit from the fleet cluster by name Args: name (str): If specified, only this unit name is returned Returns: Unit: The unit identified by ``name`` in the fleet cluster Raises: fleet.v1.errors.APIError: Fleet returned a response code >= 40...
"Retreive a specifi unit from the fleet cluster by name\n\n Args:\n name (str): If specified, only this unit name is returned\n\n Returns:\n Unit: The unit identified by ``name`` in the fleet cluster\n\n Raises:\n fleet.v1.errors.APIError: Fleet returned a response ...
89
false
cnelson/python-fleet
get_unit
24,883
LDU_FT/alerta/alerta/take_action
LDU_FT
[ "<BEGIN>\n## `get_severity`", "Get severity of correlated alert. Used to determine previous severity.\n<END>", "<BEGIN>\n## `is_flapping`", "Return true if alert severity has changed more than X times in Y seconds\n<END>", "<BEGIN>\n## `dedup_alert`", "Update alert status, service, value, text, timeout an...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the take_action API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the take_action API. 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...
should return internal id of external system
"should return internal id of external system"
34
false
alerta/alerta
take_action
24,884
LDU_FT/BlueBrain/NeuroM/_log_msg
LDU_FT
[ "<BEGIN>\n## `_get_type`", "get the type of the soma", " Args:\n points: Soma points\n soma_class(str): one of 'contour' or 'cylinder' to specify the type\n<END>", "<BEGIN>\n## `make_soma`", "Make a soma object from a set of points", " Infers the soma type (SomaSinglePoint, SomaSimpleC...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _log_msg API. 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 _log_msg API. 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...
Helper to log message to the right level
"Helper to log message to the right level"
706
false
BlueBrain/NeuroM
_log_msg
24,885
LDU_FT/twitter/cdk/set_default_theme
LDU_FT
[ "<BEGIN>\n## `set_default_theme`", "Set default theme name based in config file.\n<END>", "<BEGIN>\n## `pick_theme`", "Return theme name based on manual input, prefs file, or default to \"plain\".\n<END>", "<BEGIN>\n## `pref_init`", "Can be called without penalty. Create ~/.cdk dir if it doesn't\n exis...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_default_theme API. 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_default_theme API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Set default theme name based in config file.
"Set default theme name based in config file."
10
false
twitter/cdk
set_default_theme
24,886
LDU_FT/mickybart/python-atlasapi/remove_role
LDU_FT
[ "<BEGIN>\n## `answer`", "Answer will provide all necessary feedback for the caller", " Args:\n c (int): HTTP Code\n details (dict): Response payload", " Returns:\n dict: Response payload", " Raises:\n ErrAtlasBadRequest\n ErrAtlasUn...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the remove_role API. 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 remove_role API. 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 one role Args: databaseName (str): Database Name roleName (RoleSpecs): role Keyword Args: collectionName (str): Collection
"Remove one role\n \n Args:\n databaseName (str): Database Name\n roleName (RoleSpecs): role\n \n Keyword Args:\n collectionName (str): Collection"
42
false
mickybart/python-atlasapi
remove_role
24,887
LDU_FT/jdoda/sdl2hl/w
LDU_FT
[ "<BEGIN>\n## `was_init`", "This function returns the subsystems which have previously been initialized.", " Returns:\n Set[InitFlag]: Flags indicating which subsystems have been initialized.\n<END>", "<BEGIN>\n## `load_bmp`", "Load a surface from a file.", " Args:\n path (str):...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the w API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted docum...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the w API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted docum...
int: The width of the texture in pixels.
"int: The width of the texture in pixels."
134
false
jdoda/sdl2hl
w
24,888
LDU_FT/mozilla/amo-validator/colorize_text
LDU_FT
[ "<BEGIN>\n## `decode`", "Decode data employing some charset detection and including unicode BOM\n stripping.\n<END>", "<BEGIN>\n## `get_context`", "Returns a tuple containing the context for a line\n<END>", "<BEGIN>\n## `_format_line`", "Formats a line from the data to be the appropriate length\n<END>"...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the colorize_text API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the colorize_text API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
Adds escape sequences to colorize text and make it beautiful. To colorize text, prefix the text you want to color with the color (capitalized) wrapped in double angle brackets (i.e.: <<GREEN>>). End your string with <<NORMAL>>. If you don't, it will be done for you (assuming you used a c...
"Adds escape sequences to colorize text and make it\n beautiful. To colorize text, prefix the text you want to color\n with the color (capitalized) wrapped in double angle brackets\n (i.e.: <<GREEN>>). End your string with <<NORMAL>>. If you\n don't, it will be done for you (assuming you use...
94
false
mozilla/amo-validator
colorize_text
24,889
LDU_FT/wbond/asn1crypto/isoformat
LDU_FT
[ "<BEGIN>\n## `_pep425_version`", ":return:\n A tuple of integers representing the Python version number\n<END>", "<BEGIN>\n## `_pep425_supports_manylinux`", ":return:\n A boolean indicating if the machine can use manylinux1 packages\n<END>", "<BEGIN>\n## `_pep425_get_abi`", ":return:\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the isoformat API. 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 isoformat API. 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...
Formats the date as "%Y-%m-%d %H:%M:%S" with the sep param between the date and time portions :param set: A single character of the separator to place between the date and time :return: The formatted datetime as a unicode string in Python 3 and a byte ...
"Formats the date as \"%Y-%m-%d %H:%M:%S\" with the sep param between the\n date and time portions\n\n :param set:\n A single character of the separator to place between the date and\n time\n\n :return:\n The formatted datetime as a unicode string in Python 3 and a ...
739
false
wbond/asn1crypto
isoformat
24,890
LDU_FT/peterwittek/ncpol2sdpa/pick_monomials_of_degree
LDU_FT
[ "<BEGIN>\n## `read_sdpa_out`", "Helper function to parse the output file of SDPA.", " :param filename: The name of the SDPA output file.\n :type filename: str.\n :param solutionmatrix: Optional parameter for retrieving the solution.\n :type solutionmatrix: bool.\n :param status: Optional paramete...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the pick_monomials_of_degree 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 pick_monomials_of_degree API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio...
Collect all monomials up of a given degree.
"Collect all monomials up of a given degree."
217
false
peterwittek/ncpol2sdpa
pick_monomials_of_degree
24,891
LDU_FT/bitprophet/ssh/connect
LDU_FT
[ "<BEGIN>\n## `start_client`", "Negotiate a new SSH2 session as a client. This is the first step after\n creating a new L{Transport}. A separate thread is created for protocol\n negotiation.", " If an event is passed in, this method returns immediately. When\n negotiation is done (...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the connect API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the connect API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
Negotiate an SSH2 session, and optionally verify the server's host key and authenticate using a password or private key. This is a shortcut for L{start_client}, L{get_remote_server_key}, and L{Transport.auth_password} or L{Transport.auth_publickey}. Use those methods if you want more c...
"Negotiate an SSH2 session, and optionally verify the server's host key\n and authenticate using a password or private key. This is a shortcut\n for L{start_client}, L{get_remote_server_key}, and\n L{Transport.auth_password} or L{Transport.auth_publickey}. Use those\n methods if you want m...
272
false
bitprophet/ssh
connect
24,892
LDU_FT/libtcod/python-tcod/init
LDU_FT
[ "<BEGIN>\n## `_int`", "return an integer where a single character string may be expected\n<END>", "<BEGIN>\n## `_describe_bitmask`", "Returns a bitmask in human readable form.", " This is a private function, used internally.", " Args:\n bits (int): The bitmask to be represented.\n tabl...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the init API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the init API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
Start the main console with the given width and height and return the root console. Call the consoles drawing functions. Then remember to use L{tdl.flush} to make what's drawn visible on the console. Args: width (int): width of the root console (in tiles) height (int): height of the r...
"Start the main console with the given width and height and return the\n root console.\n\n Call the consoles drawing functions. Then remember to use L{tdl.flush} to\n make what's drawn visible on the console.\n\n Args:\n width (int): width of the root console (in tiles)\n height (int): height...
1,050
true
libtcod/python-tcod
init
24,893
LDU_FT/inspirehep/refextract/join_lines
LDU_FT
[ "<BEGIN>\n## `process_reference_line`", "After the phase of identifying and tagging citation instances\n in a reference line, this function is called to go through the\n line and the collected information about the recognised citations,\n and to transform the line into a string of MARC XML in wh...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the join_lines API. 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 join_lines API. 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...
Join 2 lines of text >>> join_lines('abc', 'de') 'abcde' >>> join_lines('a-', 'b') 'ab'
"Join 2 lines of text\n\n >>> join_lines('abc', 'de')\n 'abcde'\n >>> join_lines('a-', 'b')\n 'ab'"
301
false
inspirehep/refextract
join_lines
24,894
LDU_FT/brunato/lograptor/check_stat
LDU_FT
[ "<BEGIN>\n## `make_text`", "Make the text representation of a report data element.\n<END>", "<BEGIN>\n## `make_html`", "Make the text representation of a report element as html.\n<END>", "<BEGIN>\n## `make_csv`", "Get the text representation of a report element as csv.\n<END>", "<BEGIN>\n## `make_format...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the check_stat API. 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 check_stat API. 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...
Checks logfile stat information for excluding files not in datetime period. On Linux it's possible to checks only modification time, because file creation info are not available, so it's possible to exclude only older files. In Unix BSD systems and windows information about file creation date an...
"Checks logfile stat information for excluding files not in datetime period.\n On Linux it's possible to checks only modification time, because file creation info\n are not available, so it's possible to exclude only older files.\n In Unix BSD systems and windows information about file creation dat...
121
false
brunato/lograptor
check_stat
24,895
LDU_FT/razor-x/scipy-data_fitting/lambdify
LDU_FT
[ "<BEGIN>\n## `add_symbol`", "Add a symbol with key `name` to `scipy_data_fitting.Model.symbols`.\n Optionally, specify an alternative `string` to pass to [`sympy.Symbol`][1],\n otherwise `name` is used.", " [1]: http://docs.sympy.org/dev/modules/core.html#id4\n<END>", "<BEGIN>\n## `replac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the lambdify API. 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 lambdify API. 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...
Converts a SymPy expression into a function using [`sympy.lambdify`][1]. `expression` can be a SymPy expression or the name of an expression in `scipy_data_fitting.Model.expressions`. `symbols` can be any of the following, or a list of any combination of the following: - A Sym...
"Converts a SymPy expression into a function using [`sympy.lambdify`][1].\n\n `expression` can be a SymPy expression or the name of an expression\n in `scipy_data_fitting.Model.expressions`.\n\n `symbols` can be any of the following,\n or a list of any combination of the following:\n\n ...
163
false
razor-x/scipy-data_fitting
lambdify
24,896
LDU_FT/inveniosoftware/invenio-rest/get_method_serializers
LDU_FT
[ "<BEGIN>\n## `init_app`", "Flask application initialization.", " Initialize the Rate-Limiter, CORS and error handlers.", " :param app: An instance of :class:`flask.Flask`.\n<END>", "<BEGIN>\n## `init_config`", "Initialize configuration.", " .. note:: Change Flask-CORS and Flask-Limi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_method_serializers 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_method_serializers 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 request method serializers + default media type. Grab serializers from ``method_serializers`` if defined, otherwise returns the default serializers. Uses GET serializers for HEAD requests if no HEAD serializers were specified. The method also determines the default media type. ...
"Get request method serializers + default media type.\n\n Grab serializers from ``method_serializers`` if defined, otherwise\n returns the default serializers. Uses GET serializers for HEAD requests\n if no HEAD serializers were specified.\n\n The method also determines the default media typ...
41
false
inveniosoftware/invenio-rest
get_method_serializers
24,897
LDU_FT/pneff/wsgiservice/_handle_request
LDU_FT
[ "<BEGIN>\n## `raise_201`", "Abort the current request with a 201 (Created) response code. Sets the\n Location header correctly. If the location does not start with a slash,\n the path of the current request is prepended.", " :param instance: Resource instance (used to access the response)\n :type in...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _handle_request API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _handle_request API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
Finds the resource to which a request maps and then calls it. Instantiates, fills and returns a :class:`webob.Response` object. If no resource matches the request, a 404 status is set on the response object. :param request: Object representing the current request. :type request:...
"Finds the resource to which a request maps and then calls it.\n Instantiates, fills and returns a :class:`webob.Response` object. If\n no resource matches the request, a 404 status is set on the response\n object.\n\n :param request: Object representing the current request.\n :type r...
156
false
pneff/wsgiservice
_handle_request
24,898
LDU_FT/esafak/mca/fs_r
LDU_FT
[ "<BEGIN>\n## `dummy`", "Dummy code select columns of a DataFrame.\n<END>", "<BEGIN>\n## `fs_r`", "Get the row factor scores (dimensionality-reduced representation),\n\t\tchoosing how many factors to retain, directly or based on the explained\n\t\tvariance.", "\t\t'percent': The minimum variance that the ret...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the fs_r API. 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 fs_r API. 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...
Get the row factor scores (dimensionality-reduced representation), choosing how many factors to retain, directly or based on the explained variance. 'percent': The minimum variance that the retained factors are required to explain (default: 90% = 0.9) 'N': The number of factors to retain. Overrides 'pe...
"Get the row factor scores (dimensionality-reduced representation),\n\t\tchoosing how many factors to retain, directly or based on the explained\n\t\tvariance.\n\n\t\t'percent': The minimum variance that the retained factors are required\n\t\t\t\t\t\t\t\tto explain (default: 90% = 0.9)\n\t\t'N': The number of factors t...
21
false
esafak/mca
fs_r
24,899
LDU_FT/wright-group/WrightTools/_on_axes_updated
LDU_FT
[ "<BEGIN>\n## `flatten_list`", "Flatten an irregular sequence.", " Works generally but may be slower than it could\n be if you can make assumptions about your list.", " `Source`__", " __ https://stackoverflow.com/a/10824086", " Parameters\n ----------\n items : iterable\n The ir...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _on_axes_updated API. 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 _on_axes_updated API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Method to run when axes are changed in any way. Propagates updated axes properly.
"Method to run when axes are changed in any way.\n\n Propagates updated axes properly."
603
false
wright-group/WrightTools
_on_axes_updated
24,900
LDU_FT/dslackw/slpkg/alien_filter
LDU_FT
[ "<BEGIN>\n## `repos`", "View or enabled or disabled repositories\n<END>", "<BEGIN>\n## `reset`", "Reset slpkg.conf file with default values\n<END>", "<BEGIN>\n## `case_sensitive`", "Create dictionary from list with key in lower case\n and value with default\n<END>", "<BEGIN>\n## `package_name`", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the alien_filter API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the alien_filter API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
This filter avoid list double packages from alien repository
"This filter avoid list double packages from\n alien repository"
168
false
dslackw/slpkg
alien_filter
24,901
LDU_FT/bioasp/caspo/to_array
LDU_FT
[ "<BEGIN>\n## `from_str`", "Creates a literal from a string", " Parameters\n ----------\n string : str\n If the string starts with '!', it's interpreted as a negated variable", " Returns\n -------\n caspo.core.literal.Literal\n Created object inst...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the to_array API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the to_array API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
Converts the logical network to a binary array with respect to the given mappings from a :class:`caspo.core.hypergraph.HyperGraph` object instance. Parameters ---------- mappings : :class:`caspo.core.mapping.MappingList` Mappings to create the binary array Returns ...
"Converts the logical network to a binary array with respect to the given mappings from a\n :class:`caspo.core.hypergraph.HyperGraph` object instance.\n\n Parameters\n ----------\n mappings : :class:`caspo.core.mapping.MappingList`\n Mappings to create the binary array\n\n ...
366
false
bioasp/caspo
to_array
24,902
LDU_FT/dropseed/configyaml/_key_name
LDU_FT
[ "<BEGIN>\n## `_key_name`", "Return the key referring to this object", " The default value is the lower case version of the class name", " :rtype: str\n<END>", "<BEGIN>\n## `_path`", "Return the dotted path representation of this object", " :rtype: str\n<END>", "<BEGIN>\n## `_add_e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _key_name API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _key_name API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
Return the key referring to this object The default value is the lower case version of the class name :rtype: str
"Return the key referring to this object\n\n The default value is the lower case version of the class name\n\n :rtype: str"
20
false
dropseed/configyaml
_key_name
24,903
LDU_FT/dahlia/sqlalchemy-imageattach/find_thumbnail
LDU_FT
[ "<BEGIN>\n## `readlines`", "Reads until EOF using :meth:`readline()`.", " :param sizehint: if it's present, instead of reading up to EOF,\n whole lines totalling approximately ``sizehint``\n bytes (or more to accommodate a final whole line)\n :type s...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_thumbnail API. 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 find_thumbnail API. 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...
Finds the thumbnail of the image with the given ``width`` and/or ``height``. :param width: the thumbnail width :type width: :class:`numbers.Integral` :param height: the thumbnail height :type height: :class:`numbers.Integral` :returns: the thumbnail image :rtype:...
"Finds the thumbnail of the image with the given ``width``\n and/or ``height``.\n\n :param width: the thumbnail width\n :type width: :class:`numbers.Integral`\n :param height: the thumbnail height\n :type height: :class:`numbers.Integral`\n :returns: the thumbnail image\n ...
145
false
dahlia/sqlalchemy-imageattach
find_thumbnail
24,904
LDU_FT/polyaxon/polyaxon/get_object
LDU_FT
[ "<BEGIN>\n## `on_failure`", "Update query status and send email notification to a user\n<END>", "<BEGIN>\n## `on_success`", "Send email notification and a file, if requested to do so by a user\n<END>", "<BEGIN>\n## `user_write_events`", "Return event types where use acted on an object.", " The wr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_object API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_object API. 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...
We memoize the access to this function in case a second call is made.
"We memoize the access to this function in case a second call is made."
270
false
polyaxon/polyaxon
get_object
24,905
LDU_FT/kashifrazzaqui/again/log
LDU_FT
[ "<BEGIN>\n## `log`", "logs parameters and result - takes no arguments\n<END>", "<BEGIN>\n## `logx`", "logs parameters and result\n takes arguments\n supress_args - list of parameter names to supress\n supress_all_args - boolean to supress all arguments\n supress_result - boolean to sup...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the log API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the log API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
logs parameters and result - takes no arguments
"logs parameters and result - takes no arguments"
25
false
kashifrazzaqui/again
log
24,906
LDU_FT/olitheolix/qtmacs/_qteFindAppletInSplitter
LDU_FT
[ "<BEGIN>\n## `qteSaveMacroData`", "Associate arbitrary ``data`` with ``widgetObj``.", " This is a convenience method to easily store applet/widget\n specific information in between calls.", " If ``widgetObj`` is **None** then the calling widget\n ``self.qteWidget`` will be used.", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _qteFindAppletInSplitter 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 _qteFindAppletInSplitter API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio...
Return the splitter that holds ``appletObj``. This method recursively searches for ``appletObj`` in the nested splitter hierarchy of the window layout, starting at ``split``. If successful, the method returns a reference to the splitter, otherwise it returns **None**. |Args| ...
"Return the splitter that holds ``appletObj``.\n\n This method recursively searches for ``appletObj`` in the\n nested splitter hierarchy of the window layout, starting at\n ``split``. If successful, the method returns a reference to\n the splitter, otherwise it returns **None**.\n\n |...
1,108
true
olitheolix/qtmacs
_qteFindAppletInSplitter
24,907
LDU_FT/mottosso/Qt.py/_build_compatibility_members
LDU_FT
[ "<BEGIN>\n## `setup_ui`", "Load a Qt Designer .ui file and returns an instance of the user interface", " Args:\n uifile (str): Absolute path to .ui file\n base_instance (QWidget): The widget into which UI widgets are loaded", " Returns:\n QWidget: the base instance\n<END>", "<BEGI...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _build_compatibility_members API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its concl...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _build_compatibility_members API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its concl...
Apply `binding` to QtCompat Arguments: binding (str): Top level binding in _compatibility_members. decorators (dict, optional): Provides the ability to decorate the original Qt methods when needed by a binding. This can be used to change the returned value to a standard valu...
"Apply `binding` to QtCompat\n\n Arguments:\n binding (str): Top level binding in _compatibility_members.\n decorators (dict, optional): Provides the ability to decorate the\n original Qt methods when needed by a binding. This can be used\n to change the returned value to a standa...
64
false
mottosso/Qt.py
_build_compatibility_members
24,908
LDU_FT/mrcagney/gtfsrtk/write_gtfsr
LDU_FT
[ "<BEGIN>\n## `read_gtfsr`", "Given a path (string or Path object) to a GTFSR feed file,\n return the corresponding GTFS feed (FeedMessage instance).\n If ``from_json``, then assume the feed file is in JSON format;\n otherwise, assume the feed file is in Protocol Buffer format.\n<END>", "<BEGIN>\n## `wr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the write_gtfsr API. 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 write_gtfsr API. 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...
Given a GTFSR feed (FeedMessage instance), write it to the given file path (string or Path object). If ``to_json``, then save the file as JSON; otherwise save it as Protocol Buffer.
"Given a GTFSR feed (FeedMessage instance), write it to the given\n file path (string or Path object).\n If ``to_json``, then save the file as JSON;\n otherwise save it as Protocol Buffer."
23
false
mrcagney/gtfsrtk
write_gtfsr
24,909
LDU_FT/inspirehep/inspire-utils/loads
LDU_FT
[ "<BEGIN>\n## `dedupe_list_of_dicts`", "Remove duplicates from a list of dictionaries preserving the order.", " We can't use the generic list helper because a dictionary isn't hashable.\n Adapted from http://stackoverflow.com/a/9427216/374865.\n<END>", "<BEGIN>\n## `force_list`", "Force ``data`` to bec...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the loads API. 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 loads API. 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...
Load a parsed name from a string. Raises: TypeError: when name isn't a type of `six.string_types`. ValueError: when name is empty or None.
"Load a parsed name from a string.\n\n Raises:\n TypeError: when name isn't a type of `six.string_types`.\n ValueError: when name is empty or None."
65
false
inspirehep/inspire-utils
loads
24,910
LDU_FT/splunk/splunk-sdk-python/batch_save
LDU_FT
[ "<BEGIN>\n## `dispatch`", "Instantiates and executes a search command class", " This function implements a `conditional script stanza <https://docs.python.org/2/library/__main__.html>`_ based on the value of\n :code:`module_name`::", " if module_name is None or module_name == '__main__':\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the batch_save API. 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 batch_save API. 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...
Inserts or updates every document specified in documents. :param documents: Array of documents to save as dictionaries :type documents: ``array`` of ``dict`` :return: Results of update operation as overall stats :rtype: ``dict``
"Inserts or updates every document specified in documents.\n\n :param documents: Array of documents to save as dictionaries\n :type documents: ``array`` of ``dict``\n\n :return: Results of update operation as overall stats\n :rtype: ``dict``"
747
false
splunk/splunk-sdk-python
batch_save
24,911
LDU_FT/sdispater/poetry/derive
LDU_FT
[ "<BEGIN>\n## `path_to_url`", "Convert a path to a file: URL. The path will be made absolute and have\n quoted path parts.\n<END>", "<BEGIN>\n## `is_installable_dir`", "Return True if `path` is a directory containing a setup.py file.\n<END>", "<BEGIN>\n## `get_requires_for_build_wheel`", "Returns a lis...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the derive API. 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 derive API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Adds an assignment of package as a derivation.
"Adds an assignment of package as a derivation."
107
false
sdispater/poetry
derive
24,912
LDU_FT/tensorflow/hub/replace_apply_state
LDU_FT
[ "<BEGIN>\n## `export`", "Exports a ModuleSpec with weights taken from a checkpoint.", " This is an helper to export modules directly from a ModuleSpec\n without having to create a session and set the variables to the\n intended values.", " Example usage:", " ```python\n spec = hub.create_m...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the replace_apply_state API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the replace_apply_state API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
Replaces state ops with non state Placeholder ops for the apply graph.
"Replaces state ops with non state Placeholder ops for the apply graph."
488
false
tensorflow/hub
replace_apply_state
24,913
LDU_FT/Damgaard/PyImgur/upload_image
LDU_FT
[ "<BEGIN>\n## `convert_general`", "Take a python object and convert it to the format Imgur expects.\n<END>", "<BEGIN>\n## `to_imgur_format`", "Convert the parameters to the format Imgur expects.\n<END>", "<BEGIN>\n## `_get_album_or_image`", "Return a gallery image/album depending on what the json represent...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the upload_image API. 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 upload_image API. 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...
Upload the image at either path or url. :param path: The path to the image you want to upload. :param url: The url to the image you want to upload. :param title: The title the image will have when uploaded. :param description: The description the image will have when uploaded. :...
"Upload the image at either path or url.\n\n :param path: The path to the image you want to upload.\n :param url: The url to the image you want to upload.\n :param title: The title the image will have when uploaded.\n :param description: The description the image will have when uploaded.\n ...
139
false
Damgaard/PyImgur
upload_image
24,914
LDU_FT/OnroerendErfgoed/oe_utils/save
LDU_FT
[ "<BEGIN>\n## `after_commit_listener`", "Processing the changes.\n All new or changed items are now indexed. All deleted items are now removed from the index.\n<END>", "<BEGIN>\n## `_queue_job`", "creates a new job on the queue\n :param redis: redis\n :param delegate: method to be ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the save API. 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 save API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
save an object :param obj: the object :return: the saved object
"save an object\n\n :param obj: the object\n :return: the saved object"
100
false
OnroerendErfgoed/oe_utils
save
24,915
LDU_FT/geopy/geopy/_normalize_angle
LDU_FT
[ "<BEGIN>\n## `_construct_url`", "Construct geocoding request url. Overridden.", " :param str base_api: Geocoding function base address - self.api\n or self.reverse_api.", " :param dict params: Geocoding params.", " :return: string URL.\n<END>", "<BEGIN>\n## `geocode`", "R...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _normalize_angle API. 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 _normalize_angle API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Normalize angle `x` to be within `[-limit; limit)` range.
"Normalize angle `x` to be within `[-limit; limit)` range."
405
false
geopy/geopy
_normalize_angle
24,916
LDU_FT/hellupline/flask-manager/absolute_name
LDU_FT
[ "<BEGIN>\n## `register_items`", "Bulk ``register_item``.", " Args:\n items (iterable[Tree]):\n Sequence of nodes to be registered as children.\n<END>", "<BEGIN>\n## `endpoints`", "Get all the endpoints under this node in a tree like structure.", " Returns:\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the absolute_name API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the absolute_name API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
Get the absolute name of ``self``. Returns: str: the absolute name.
"Get the absolute name of ``self``.\n\n Returns:\n str: the absolute name."
21
false
hellupline/flask-manager
absolute_name
24,917
LDU_FT/michaelliao/sinaweibopy/request_access_token
LDU_FT
[ "<BEGIN>\n## `_parse_json`", "Parse json string into JsonDict.", " >>> r = _parse_json(r'{\"name\":\"Michael\",\"score\":95}')\n >>> r.name\n u'Michael'\n >>> r['score']\n 95\n<END>", "<BEGIN>\n## `_encode_params`", "Do url-encode parameters", " >>> _encode_params(a=1, b='R&D')\n 'a=1...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the request_access_token API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the request_access_token API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Return access token as a JsonDict: { "access_token": "your-access-token", "expires": 12345678, # represented using standard unix-epoch-time "uid": 1234 # other fields }
"Return access token as a JsonDict:\n {\n \"access_token\": \"your-access-token\",\n \"expires\": 12345678, # represented using standard unix-epoch-time\n \"uid\": 1234 # other fields\n }"
37
false
michaelliao/sinaweibopy
request_access_token
24,918
LDU_FT/ShawnClake/Apitax/_deserialize_primitive
LDU_FT
[ "<BEGIN>\n## `command`", "Execute a Command", " Execute a command # noqa: E501", " :param execute: The data needed to execute this command\n :type execute: dict | bytes", " :rtype: Response\n<END>", "<BEGIN>\n## `endpoint_catalog`", "Retrieve the endpoint catalog", " Retrieve the endpoi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _deserialize_primitive 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 _deserialize_primitive API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
Deserializes to primitive type. :param data: data to deserialize. :param klass: class literal. :return: int, long, float, str, bool. :rtype: int | long | float | str | bool
"Deserializes to primitive type.\n\n :param data: data to deserialize.\n :param klass: class literal.\n\n :return: int, long, float, str, bool.\n :rtype: int | long | float | str | bool"
66
false
ShawnClake/Apitax
_deserialize_primitive
24,919
LDU_FT/dshean/demcoreg/find_subpixel_peak_position
LDU_FT
[ "<BEGIN>\n## `get_nlcd_fn`", "Calls external shell script `get_nlcd.sh` to fetch:", " 2011 Land Use Land Cover (nlcd) grids, 30 m", " http://www.mrlc.gov/nlcd11_leg.php\n<END>", "<BEGIN>\n## `get_bareground_fn`", "Calls external shell script `get_bareground.sh` to fetch:", " ~2010 global bare g...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_subpixel_peak_position 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 find_subpixel_peak_position API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclu...
Find subpixel approximation of the correlation peak. This function returns a subpixels approximation of the correlation peak by using one of the several methods available. If requested, the function also returns the signal to noise ratio level evaluated from the correlation map. Paramete...
"Find subpixel approximation of the correlation peak.\n \n This function returns a subpixels approximation of the correlation\n peak by using one of the several methods available. If requested, \n the function also returns the signal to noise ratio level evaluated \n from the correlation map.\n \n ...
63
false
dshean/demcoreg
find_subpixel_peak_position
24,920
LDU_FT/martinmcbride/pysound/linseg
LDU_FT
[ "<BEGIN>\n## `create_buffer`", "If the value is a float, create a numpy array of the required length, filled with value\n If the value is a numpy array, check its length\n Otherwise throw a type error\n<END>", "<BEGIN>\n## `set_time`", "Update the length of the buffer in seconds\n :param time: nu...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the linseg API. 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 linseg API. 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 ...
Signal starts at start value, ramps linearly up to end value :param params: buffer parameters, controls length of signal created :param start: start value (number) :param end: end value (number) :return: array of resulting signal
"Signal starts at start value, ramps linearly up to end value\n :param params: buffer parameters, controls length of signal created\n :param start: start value (number)\n :param end: end value (number)\n :return: array of resulting signal"
28
false
martinmcbride/pysound
linseg
24,921
LDU_FT/BerkeleyAutomation/visualization/table
LDU_FT
[ "<BEGIN>\n## `figure`", "Create a blank figure.", " Parameters\n ----------\n bgcolor : (3,) float\n Color of the background with values in [0,1].\n size : (2,) int\n Width and height of the figure in pixels.\n<END>", "<BEGIN>\n## `show`", "Display the current...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the table API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the table API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
Plot a table mesh in 3D. Parameters ---------- T_table_world : autolab_core.RigidTransform Pose of table relative to world. dim : float The side-length for the table. color : 3-tuple Color tuple.
"Plot a table mesh in 3D.\n\n Parameters\n ----------\n T_table_world : autolab_core.RigidTransform\n Pose of table relative to world.\n dim : float\n The side-length for the table.\n color : 3-tuple\n Color tuple."
54
false
BerkeleyAutomation/visualization
table
24,922
LDU_FT/quarkslab/arybo/permut2expr
LDU_FT
[ "<BEGIN>\n## `asm_module`", "Generate an LLVM module for a list of expressions", " Arguments:\n * See :meth:`arybo.lib.exprs_asm.asm_binary` for a description of the list of arguments", " Output:\n * An LLVM module with one function named \"__arybo\", containing the\n translated express...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the permut2expr API. 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 permut2expr API. 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...
Convert a substitution table into an arybo application Args: P: list of integers. The list must not contain more than 2**nbits elements. Returns: A tuple containing an :class:`MBAVariable` object with the result and the symbolic input variable used in this object. A...
"Convert a substitution table into an arybo application\n\n Args:\n P: list of integers. The list must not contain more than 2**nbits elements.\n\n Returns:\n A tuple containing an :class:`MBAVariable` object with the result\n and the symbolic input variable used in this o...
45
false
quarkslab/arybo
permut2expr
24,923
LDU_FT/Vagrants/blackbird/_reverse_queue
LDU_FT
[ "<BEGIN>\n## `helper_import`", "Return class or module object.\n if the argument is only a module name and return a module object.\n if the argument is a module and class name, and return a class object.\n<END>", "<BEGIN>\n## `global_import`", "This function search sys.path[1:], return specified module....
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _reverse_queue API. 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 _reverse_queue API. 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...
u"""When socket.timeout has occurred for Zabbix server, this method is called. Enqueue items in self.pool[].
"u\"\"\"When socket.timeout has occurred for Zabbix server,\n this method is called.\n Enqueue items in self.pool[]."
106
false
Vagrants/blackbird
_reverse_queue
24,924
LDU_FT/Genida/django-appsettings/default_value
LDU_FT
[ "<BEGIN>\n## `check`", "Class method to check every settings.", " Will raise an ``ImproperlyConfigured`` exception with explanation.\n<END>", "<BEGIN>\n## `default_value`", "Property to return the default value.", " If the default value is callable and call_default is True, return\n t...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the default_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 ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the default_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 ext...
Property to return the default value. If the default value is callable and call_default is True, return the result of default(). Else return default. Returns: object: the default value.
"Property to return the default value.\n\n If the default value is callable and call_default is True, return\n the result of default(). Else return default.\n\n Returns:\n object: the default value."
31
false
Genida/django-appsettings
default_value
24,925
LDU_FT/jbloomlab/phydms/_compute_empirical_phi
LDU_FT
[ "<BEGIN>\n## `maximizeLikelihood`", "Maximize the log likelihood.", " Maximizes log likelihood with respect to model parameters\n and potentially branch lengths depending on `optimize_brlen`.\n If optimizing the branch lengths, iterates between optimizing\n the model parameters and b...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _compute_empirical_phi 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 _compute_empirical_phi 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 empirical `phi` at the given value of `beta`. Does **not** set `phi` attribute, simply returns what should be value of `phi` given the current `g` and `pi_codon` attributes, plus the passed value of `beta`. Note that it uses the passed value of `beta`, **not** the curren...
"Returns empirical `phi` at the given value of `beta`.\n\n Does **not** set `phi` attribute, simply returns what\n should be value of `phi` given the current `g` and\n `pi_codon` attributes, plus the passed value of `beta`.\n Note that it uses the passed value of `beta`, **not**\n the...
294
false
jbloomlab/phydms
_compute_empirical_phi
24,926
LDU_FT/edeposit/edeposit.amqp.storage/remove_tree_by_path
LDU_FT
[ "<BEGIN>\n## `render_trees`", "Render list of `trees` to HTML.", " Args:\n trees (list): List of :class:`.Tree`.\n path_composer (fn reference): Function used to compose paths from UUID.\n Look at :func:`.compose_tree_path` from :mod:`.web_tools`.", " Returns:\n str: HTML...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the remove_tree_by_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. T...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the remove_tree_by_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. T...
Remove the tree from database by given `path`. Args: path (str): Path of the tree.
"Remove the tree from database by given `path`.\n\n Args:\n path (str): Path of the tree."
140
false
edeposit/edeposit.amqp.storage
remove_tree_by_path
24,927
LDU_FT/westurner/pyrpo/do_repo_report
LDU_FT
[ "<BEGIN>\n## `itersplit`", "Split a string by ``sep`` and yield chunks", " Args:\n s (str-type): string to split\n sep (str-type): delimiter to split by", " Yields:\n generator of strings: chunks of string s\n<END>", "<BEGIN>\n## `itersplit_to_fields`", "Itersplit a string into ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the do_repo_report API. 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 do_repo_report API. 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...
Do a repository report: call the report function for each Repository Args: repos (iterable): iterable of Repository instances report (string): report name output (writeable): output stream to print to Yields: Repository subclass
"Do a repository report: call the report function for each Repository\n\n Args:\n repos (iterable): iterable of Repository instances\n report (string): report name\n output (writeable): output stream to print to\n\n Yields:\n Repository subclass"
149
false
westurner/pyrpo
do_repo_report
24,928
LDU_FT/gwastro/pycbc-glue/pickle_to_param
LDU_FT
[ "<BEGIN>\n## `component_offsetvectors`", "Given an iterable of offset vectors, return the shortest list of\n\tthe unique n-instrument offset vectors from which all the vectors\n\tin the input iterable can be constructed. This can be used to\n\tdetermine the minimal set of n-instrument coincs required to\n\tconst...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the pickle_to_param API. 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 pickle_to_param API. 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 top-level element of a document sub-tree containing the pickled serialization of a Python object.
"Return the top-level element of a document sub-tree containing the\n\tpickled serialization of a Python object."
1,048
true
gwastro/pycbc-glue
pickle_to_param
24,929
LDU_FT/Datary/scrapbag/is_merged
LDU_FT
[ "<BEGIN>\n## `parse_spss_headerfile`", "Parse spss header file", " Arguments:\n path {str} -- path al fichero de cabecera.\n leyend_position -- posicion del la leyenda en el header.\n<END>", "<BEGIN>\n## `parse_spss_datafile`", "Parse spss data file", " Arguments:\n path {str} -...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_merged API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_merged API. 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...
Check if a row, column cell is a merged cell
"Check if a row, column cell is a merged cell"
119
false
Datary/scrapbag
is_merged
24,930
LDU_FT/markovmodel/msmtools/is_reversible
LDU_FT
[ "<BEGIN>\n## `flux_matrix`", "r\"\"\"Compute the TPT flux network for the reaction A-->B.", " Parameters\n ----------\n T : (M, M) ndarray\n transition matrix\n pi : (M,) ndarray\n Stationary distribution corresponding to T\n qminus : (M,) ndarray\n Backward comittor\n qpl...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_reversible API. 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_reversible API. 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...
r""" checks whether T is reversible in terms of given stationary distribution. If no distribution is given, it will be calculated out of T. It performs following check: :math:`\pi_i P_{ij} = \pi_j P_{ji}` Parameters ---------- T : numpy.ndarray matrix Transition matrix mu : num...
"r\"\"\"\n checks whether T is reversible in terms of given stationary distribution.\n If no distribution is given, it will be calculated out of T.\n\n It performs following check:\n :math:`\\pi_i P_{ij} = \\pi_j P_{ji}`\n\n Parameters\n ----------\n T : numpy.ndarray matrix\n Transition mat...
1,330
true
markovmodel/msmtools
is_reversible
24,931
LDU_FT/anchore/anchore/calc_file_md5
LDU_FT
[ "<BEGIN>\n## `get_current_user_info`", "Return the metadata about the current user as supplied by the anchore.io service. Includes permissions and tier access.", " :return: Dict of user metadata\n<END>", "<BEGIN>\n## `sync`", "Sync (download) latest policies from the Anchore.io service.\n<END>", "<BEGI...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the calc_file_md5 API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the calc_file_md5 API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
Calculate a file's md5 checksum. Use the specified chunk_size for IO or the default 256KB :param filepath: :param chunk_size: :return:
"Calculate a file's md5 checksum. Use the specified chunk_size for IO or the\n default 256KB\n\n :param filepath:\n :param chunk_size:\n :return:"
151
false
anchore/anchore
calc_file_md5
24,932
LDU_FT/google/transitfeed/GetStartTime
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 GetStartTime API. 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 GetStartTime API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
Return the first time of the trip. TODO: For trips defined by frequency return the first time of the first trip.
"Return the first time of the trip. TODO: For trips defined by frequency\n return the first time of the first trip."
708
false
google/transitfeed
GetStartTime
24,933
LDU_FT/ska-sa/katversion/_sane_version_list
LDU_FT
[ "<BEGIN>\n## `patch_init_py`", "Patch __init__.py to remove version check and append hard-coded version.\n<END>", "<BEGIN>\n## `setuptools_entry`", "Setuptools entry point for setting version and baking it into package.\n<END>", "<BEGIN>\n## `date_version`", "Generate a version string based on the SCM typ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _sane_version_list API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _sane_version_list API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
Ensure the major and minor are int. Parameters ---------- version: list Version components Returns ------- version: list List of components where first two components has been sanitised
"Ensure the major and minor are int.\n\n Parameters\n ----------\n version: list\n Version components\n\n Returns\n -------\n version: list\n List of components where first two components has been sanitised"
41
false
ska-sa/katversion
_sane_version_list
24,934
LDU_FT/interedition/collatex/_radixPass
LDU_FT
[ "<BEGIN>\n## `collate`", ":type graph: VariantGraph\n :type collation: Collation\n<END>", "<BEGIN>\n## `align`", "Every step we have 3 choices:\n 1) Move pointer witness a --> omission\n 2) Move pointer witness b --> addition\n 3) Move pointer of both witness a/b --> match\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _radixPass API. 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 _radixPass API. 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...
Stable sort of the sequence a according to the keys given in r. >>> a=range(5) >>> b=[0]*5 >>> r=[2,1,3,0,4] >>> _radixPass(a, b, r, 5, 5) >>> b [3, 1, 0, 2, 4] When n is less than the length of a, the end of b must be left unaltered. >>> b=[5]*5 >>> _radixPass(a, b, r, 2, 2) ...
"Stable sort of the sequence a according to the keys given in r.\n\n >>> a=range(5)\n >>> b=[0]*5\n >>> r=[2,1,3,0,4]\n\n >>> _radixPass(a, b, r, 5, 5)\n >>> b\n [3, 1, 0, 2, 4]\n\n When n is less than the length of a, the end of b must be left unaltered.\n >>> b=[5]*5\n >>> _radixPass(a, b, ...
138
false
interedition/collatex
_radixPass
24,935
LDU_FT/todddeluca/dones/_get_k
LDU_FT
[ "<BEGIN>\n## `get`", "Get a default dones object for ns. If no dones object exists for ns yet,\n a DbDones object will be created, cached, and returned.\n<END>", "<BEGIN>\n## `open_conn`", "Return an open mysql db connection using the given credentials. Use\n `retries` and `sleep` to be robust to the ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_k API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_k API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Accessing self.k indirectly allows for creating the kvstore table if necessary.
"Accessing self.k indirectly allows for creating the kvstore table\n if necessary."
30
false
todddeluca/dones
_get_k
24,936
LDU_FT/AltSchool/dynamic-rest/_get_requested_filters
LDU_FT
[ "<BEGIN>\n## `merge_link_object`", "Add a 'links' attribute to the data that maps field names to URLs.", " NOTE: This is the format that Ember Data supports, but alternative\n implementations are possible to support other formats.\n<END>", "<BEGIN>\n## `register_post_processor`", "Register a pos...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_requested_filters API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_requested_filters API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
Convert 'filters' query params into a dict that can be passed to Q. Returns a dict with two fields, 'include' and 'exclude', which can be used like: result = self._get_requested_filters() q = Q(**result['include'] & ~Q(**result['exclude'])
"Convert 'filters' query params into a dict that can be passed\n to Q. Returns a dict with two fields, 'include' and 'exclude',\n which can be used like:\n\n result = self._get_requested_filters()\n q = Q(**result['include'] & ~Q(**result['exclude'])"
213
false
AltSchool/dynamic-rest
_get_requested_filters
24,937
LDU_FT/SBRG/ssbio/load_cobra_model
LDU_FT
[ "<BEGIN>\n## `search_ss_bonds`", "Searches S-S bonds based on distances\n between atoms in the structure (first model only).\n Average distance is 2.05A. Threshold is 3A default.\n Returns iterator with tuples of residues.", " ADAPTED FROM JOAO RODRIGUES' BIOPYTHON GSOC PROJECT (http...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load_cobra_model API. 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 load_cobra_model API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Load a COBRApy Model object into the GEM-PRO project. Args: model (Model): COBRApy ``Model`` object
"Load a COBRApy Model object into the GEM-PRO project.\n\n Args:\n model (Model): COBRApy ``Model`` object"
1,487
true
SBRG/ssbio
load_cobra_model
24,938
LDU_FT/savvastj/nbashots/get_all_team_ids
LDU_FT
[ "<BEGIN>\n## `get_all_player_ids`", "Returns a pandas DataFrame containing the player IDs used in the\n stats.nba.com API.", " Parameters\n ----------\n ids : { \"shots\" | \"all_players\" | \"all_data\" }, optional\n Passing in \"shots\" returns a DataFrame that contains the player IDs of\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_all_team_ids API. 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_all_team_ids API. 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 a pandas DataFrame with all Team IDs
"Returns a pandas DataFrame with all Team IDs"
77
false
savvastj/nbashots
get_all_team_ids
24,939
LDU_FT/ahwillia/tensortools/ncp_hals
LDU_FT
[ "<BEGIN>\n## `unfold`", "Returns the mode-`mode` unfolding of `tensor`.", " Parameters\n ----------\n tensor : ndarray\n mode : int", " Returns\n -------\n ndarray\n unfolded_tensor of shape ``(tensor.shape[mode], -1)``", " Author\n ------\n Jean Kossaifi <https://github...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the ncp_hals API. 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 ncp_hals API. 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...
Fits nonnegtaive CP Decomposition using the Hierarcial Alternating Least Squares (HALS) Method. Parameters ---------- X : (I_1, ..., I_N) array_like A real array with nonnegative entries and ``X.ndim >= 3``. rank : integer The `rank` sets the number of components to be computed. ...
"Fits nonnegtaive CP Decomposition using the Hierarcial Alternating Least\n Squares (HALS) Method.\n\n Parameters\n ----------\n X : (I_1, ..., I_N) array_like\n A real array with nonnegative entries and ``X.ndim >= 3``.\n\n rank : integer\n The `rank` sets the number of components to be co...
158
false
ahwillia/tensortools
ncp_hals
24,940
LDU_FT/instacart/jardin/index_by
LDU_FT
[ "<BEGIN>\n## `index_by`", "Returns a dict with a key for each value of `field` and the first record with that value as value.\n :param field: Name of the field to index by.\n :type field: string.\n<END>", "<BEGIN>\n## `destroy`", "Deletes the record. If the model has ``soft_delete`` activated, t...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the index_by API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the index_by API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
Returns a dict with a key for each value of `field` and the first record with that value as value. :param field: Name of the field to index by. :type field: string.
"Returns a dict with a key for each value of `field` and the first record with that value as value.\n :param field: Name of the field to index by.\n :type field: string."
41
false
instacart/jardin
index_by
24,941
LDU_FT/linkedin/pyexchange/get_master
LDU_FT
[ "<BEGIN>\n## `add_attendees`", "Adds new attendees to the event.", " *attendees* can be a list of email addresses or :class:`ExchangeEventAttendee` objects.\n<END>", "<BEGIN>\n## `remove_attendees`", "Removes attendees from the event.", " *attendees* can be a list of email addresses or :class:`Excha...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_master API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_master API. 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...
Requests a calendar item from the store. exchange_id is the id for this event in the Exchange store. format controls how much data you get back from Exchange. Full docs are here, but acceptible values are IdOnly, Default, and AllProperties. http://msdn.microsoft.com/en-us/library/aa564509(v=exchg.140...
"Requests a calendar item from the store.\n\n exchange_id is the id for this event in the Exchange store.\n\n format controls how much data you get back from Exchange. Full docs are here, but acceptible values\n are IdOnly, Default, and AllProperties.\n\n http://msdn.microsoft.com/en-us/library/aa564509(v=e...
102
false
linkedin/pyexchange
get_master
24,942
LDU_FT/openearth/mmi-python/set_var_slice
LDU_FT
[ "<BEGIN>\n## `key_occurrence`", "Return a dict containing the value of the provided key and its uuid as\n value.\n<END>", "<BEGIN>\n## `zmq_address`", "Return a ZeroMQ address to the module with the provided key.\n<END>", "<BEGIN>\n## `send_array`", "send a numpy array with metadata over zmq", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_var_slice API. 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 set_var_slice API. 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...
Set the variable name with the values of var
"Set the variable name with the values of var"
30
false
openearth/mmi-python
set_var_slice
24,943
LDU_FT/zyga/guacamole/_dispatch
LDU_FT
[ "<BEGIN>\n## `added`", "Ingredient method called before anything else.", " Here this method just builds the full command tree and stores it inside\n the context as the ``cmd_tree`` attribute. The structure of the tree is\n explained by the :func:`build_cmd_tree()` function.\n<END>", "<BEG...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _dispatch API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _dispatch API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
Run the dispatch() method on all ingredients.
"Run the dispatch() method on all ingredients."
104
false
zyga/guacamole
_dispatch
24,944
LDU_FT/nanoporetech/ont_fast5_api/set_summary_data
LDU_FT
[ "<BEGIN>\n## `_clean`", "Convert numpy numeric types to their python equivalents.\n<END>", "<BEGIN>\n## `get_prior_alignment`", "Return the prior alignment that was used for 2D basecalling.", " :return: Alignment data table.\n<END>", "<BEGIN>\n## `get_2d_call_alignment`", "Return the alignment an...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_summary_data API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_summary_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 ...
Set the summary data for an analysis group. :param group_name: The name of the analysis group. :param section_name: The analysis step. This will become a subfolder in the Summary section. :param data: A dictionary containing keys which are the summary fields, and values ...
"Set the summary data for an analysis group.\n\n :param group_name: The name of the analysis group.\n :param section_name: The analysis step. This will become a\n subfolder in the Summary section.\n :param data: A dictionary containing keys which are the summary\n fields, and ...
159
false
nanoporetech/ont_fast5_api
set_summary_data
24,945
LDU_FT/mtien/PeptideBuilder/initialize_res
LDU_FT
[ "<BEGIN>\n## `initialize_res`", "Creates a new structure containing a single amino acid. The type and\n geometry of the amino acid are determined by the argument, which has to be\n either a geometry object or a single-letter amino acid code.\n The amino acid will be placed into chain A of model 0.\n<END>...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the initialize_res API. 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 initialize_res API. 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...
Creates a new structure containing a single amino acid. The type and geometry of the amino acid are determined by the argument, which has to be either a geometry object or a single-letter amino acid code. The amino acid will be placed into chain A of model 0.
"Creates a new structure containing a single amino acid. The type and\n geometry of the amino acid are determined by the argument, which has to be\n either a geometry object or a single-letter amino acid code.\n The amino acid will be placed into chain A of model 0."
16
false
mtien/PeptideBuilder
initialize_res
24,946
LDU_FT/Microsoft/knack/extract_args_from_signature
LDU_FT
[ "<BEGIN>\n## `ensure_new_style_deprecation`", "Helper method to make the previous string-based deprecate_info kwarg\n work with the new style.\n<END>", "<BEGIN>\n## `prompt_choice_list`", "Prompt user to select from a list of possible choices.", " :param msg:A message displayed to the user bef...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the extract_args_from_signature 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 extract_args_from_signature API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclu...
Extracts basic argument data from an operation's signature and docstring excluded_params: List of params to ignore and not extract. By default we ignore ['self', 'kwargs'].
"Extracts basic argument data from an operation's signature and docstring\n excluded_params: List of params to ignore and not extract. By default we ignore ['self', 'kwargs']."
88
false
Microsoft/knack
extract_args_from_signature
24,947
LDU_FT/itamarst/eliot/main
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 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...
Run the program. Accept arguments from L{sys.argv}, read from L{sys.stdin}, write to L{sys.stdout}. @param sys: An object with same interface and defaulting to the L{sys} module.
"Run the program.\n\n Accept arguments from L{sys.argv}, read from L{sys.stdin}, write to\n L{sys.stdout}.\n\n @param sys: An object with same interface and defaulting to the L{sys}\n module."
282
false
itamarst/eliot
main
24,948
LDU_FT/grycap/RADL/p_contextualize_item
LDU_FT
[ "<BEGIN>\n## `parse_radl`", "Parse a RADL document in JSON.", " Args.:\n - data(str or list): document to parse.", " Return(RADL): RADL object.\n<END>", "<BEGIN>\n## `radlToSimple`", "Return a list of maps whose values are only other maps or lists.\n<END>", "<BEGIN>\n## `getValue`", "Return t...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the p_contextualize_item API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the p_contextualize_item API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
contextualize_item : SYSTEM VAR CONFIGURE VAR | SYSTEM VAR CONFIGURE VAR STEP NUMBER | SYSTEM VAR CONFIGURE VAR WITH VAR
"contextualize_item : SYSTEM VAR CONFIGURE VAR\n | SYSTEM VAR CONFIGURE VAR STEP NUMBER\n | SYSTEM VAR CONFIGURE VAR WITH VAR"
121
false
grycap/RADL
p_contextualize_item
24,949
LDU_FT/mdscruggs/ga/map_sprinkler
LDU_FT
[ "<BEGIN>\n## `eval_fitness`", "Convert a 1-gene chromosome into an integer and calculate its fitness\n by checking it against each required factor.", " return: fitness value\n<END>", "<BEGIN>\n## `translate_chromosome`", "Translate all the genes in a chromosome.", " chromosome: a ``...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the map_sprinkler API. 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 map_sprinkler API. 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 version of the ASCII map showing reached crop cells.
"Return a version of the ASCII map showing reached crop cells."
94
false
mdscruggs/ga
map_sprinkler
24,950
LDU_FT/inveniosoftware/invenio-access/allow_role
LDU_FT
[ "<BEGIN>\n## `removed_or_inserted_action`", "Remove the action from cache when an item is inserted or deleted.\n<END>", "<BEGIN>\n## `changed_action`", "Remove the action from cache when an item is updated.\n<END>", "<BEGIN>\n## `create`", "Create new database row using the provided action need.", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the allow_role API. 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 allow_role API. 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...
Allow a role identified by an email address.
"Allow a role identified by an email address."
64
false
inveniosoftware/invenio-access
allow_role
24,951
LDU_FT/trolldbois/ctypeslib/UNION_DECL
LDU_FT
[ "<BEGIN>\n## `init_fundamental_types`", "Registers all fundamental typekind handlers\n<END>", "<BEGIN>\n## `_handle_fundamental_types`", "Handles POD types nodes.\n see init_fundamental_types for the registration.\n<END>", "<BEGIN>\n## `_array_handler`", "Handles all array types.\n Resolves ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the UNION_DECL API. 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 UNION_DECL API. 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...
Handles Union declaration. Its a wrapper to _record_decl.
"Handles Union declaration.\n Its a wrapper to _record_decl."
88
false
trolldbois/ctypeslib
UNION_DECL
24,952
LDU_FT/Karaage-Cluster/karaage/application_simple_state
LDU_FT
[ "<BEGIN>\n## `_gen_project_trend_graph`", "Generates a bar graph for a project", " Keyword arguments:\n project -- Project\n start -- start date\n end -- end date\n<END>", "<BEGIN>\n## `synchronise`", "If task already queued, running, or finished, don't restart.\n<END>", "<BEGIN>\n## `send_bou...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the application_simple_state 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 application_simple_state API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio...
Render current state of application, verbose.
"Render current state of application, verbose."
214
false
Karaage-Cluster/karaage
application_simple_state
24,953
LDU_FT/Genida/dependenpy/parse_code
LDU_FT
[ "<BEGIN>\n## `cast`", "Cast a set of keys and an array to a Matrix object.\n<END>", "<BEGIN>\n## `connect_to`", "Connect this vertex to another one.", " Args:\n vertex (Vertex): vertex to connect to.\n weight (int): weight of the edge.", " Returns:\n Edge: th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_code API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_code API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
Read the source code and return all the import statements. Returns: list of dict: the import statements.
"Read the source code and return all the import statements.\n\n Returns:\n list of dict: the import statements."
130
false
Genida/dependenpy
parse_code
24,954
LDU_FT/lobocv/anonymoususage/get_uuid_list
LDU_FT
[ "<BEGIN>\n## `get_average`", "Return the statistic's count divided by the number of rows in the table. If it cannot be calculated return\n `default`.\n :return: The average count value (count / table rows) or `default` if it cannot be calculated.\n<END>", "<BEGIN>\n## `elapsed_time_s`", "Return ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_uuid_list API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_uuid_list API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
Get a list of tables that exist in dbconn :param dbconn: master database connection :return: List of uuids in the database
"Get a list of tables that exist in dbconn\n :param dbconn: master database connection\n :return: List of uuids in the database"
60
false
lobocv/anonymoususage
get_uuid_list
24,955
LDU_FT/GoogleCloudPlatform/appengine-pipelines/params
LDU_FT
[ "<BEGIN>\n## `_get_task_target`", "Get the default target for a pipeline task.", " Current version id format is: user_defined_version.minor_version_number\n Current module id is just the module's name. It could be \"default\"", " Returns:\n A complete target name is of format version.module. If module i...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the params API. 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 params API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Returns the dictionary of parameters for this Pipeline.
"Returns the dictionary of parameters for this Pipeline."
222
false
GoogleCloudPlatform/appengine-pipelines
params
24,956
LDU_FT/viniciuschiele/flask-io/__collect_trace_data
LDU_FT
[ "<BEGIN>\n## `render`", "Serializes a Python object into a byte array containing a JSON document.\n :param data: A Python object.\n :param mimetype: The mimetype to render the data.\n :return: A byte array containing a JSON document.\n<END>", "<BEGIN>\n## `__get_indent`", "Gets the indent...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the __collect_trace_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. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the __collect_trace_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. ...
Collects the tracing data from the given parameters. :param request: The Flask request. :param response: The flask response. :param error: The error occurred if any. :param latency: The time elapsed to process the request. :return: The tracing data.
"Collects the tracing data from the given parameters.\n :param request: The Flask request.\n :param response: The flask response.\n :param error: The error occurred if any.\n :param latency: The time elapsed to process the request.\n :return: The tracing data."
77
false
viniciuschiele/flask-io
__collect_trace_data
24,957
LDU_FT/miso-belica/jusText/get_next_neighbour
LDU_FT
[ "<BEGIN>\n## `output_default`", "Outputs the paragraphs as:\n <tag> text of the first paragraph\n <tag> text of the second paragraph\n ...\n where <tag> is <p>, <h> or <b> which indicates\n standard paragraph, heading or boilerplate respecitvely.\n<END>", "<BEGIN>\n## `output_detailed`", "Same ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_next_neighbour API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_next_neighbour API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
Return the class of the paragraph at the bottom end of the short/neargood paragraphs block. If ignore_neargood is True, than only 'bad' or 'good' can be returned, otherwise 'neargood' can be returned, too.
"Return the class of the paragraph at the bottom end of the short/neargood\n paragraphs block. If ignore_neargood is True, than only 'bad' or 'good'\n can be returned, otherwise 'neargood' can be returned, too."
18
false
miso-belica/jusText
get_next_neighbour
24,958
LDU_FT/SUSE-Enceladus/ipa/_set_instance_ip
LDU_FT
[ "<BEGIN>\n## `_get_instance_state`", "Attempt to retrieve the state of the instance.\n Raises:\n EC2CloudException: If the instance cannot be found.\n<END>", "<BEGIN>\n## `_get_user_data`", "Return formatted bash script string.", " The public ssh key is added by cloud init to the i...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _set_instance_ip API. 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_instance_ip API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Retrieve instance ip and cache it. Current preference is for public ipv4, ipv6 and private.
"Retrieve instance ip and cache it.\n\n Current preference is for public ipv4, ipv6 and private."
143
false
SUSE-Enceladus/ipa
_set_instance_ip
24,959
LDU_FT/python-security/pyt/get_my_choices_users
LDU_FT
[ "<BEGIN>\n## `_connect_control_flow_node`", "Connect a ControlFlowNode properly to the next_node.\n<END>", "<BEGIN>\n## `extract_left_hand_side`", "Extract the left hand side variable from a target.", " Removes list indexes, stars and other left hand side elements.\n<END>", "<BEGIN>\n## `get_first_node...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_my_choices_users 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_my_choices_users API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Retrieves a list of all users in the system for the user management page
"Retrieves a list of all users in the system\n for the user management page"
177
false
python-security/pyt
get_my_choices_users
24,960
LDU_FT/pyhys/minimalmodbus/_communicate
LDU_FT
[ "<BEGIN>\n## `_checkSetpointValue`", "Check that the given setpointvalue is valid.", " Args:\n * setpointvalue (numerical): The setpoint value to be checked. Must be positive.\n * maxvalue (numerical): Upper limit for setpoint value. Must be positive.", " Raises:\n TypeError, ValueE...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _communicate API. 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 _communicate API. 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...
Talk to the slave via a serial port. Args: request (str): The raw request that is to be sent to the slave. number_of_bytes_to_read (int): number of bytes to read Returns: The raw data (string) returned from the slave. Raises: TypeError, ValueErr...
"Talk to the slave via a serial port.\n\n Args:\n request (str): The raw request that is to be sent to the slave.\n number_of_bytes_to_read (int): number of bytes to read\n\n Returns:\n The raw data (string) returned from the slave.\n\n Raises:\n TypeErro...
357
false
pyhys/minimalmodbus
_communicate
24,961
LDU_FT/fabric-bolt/fabric-bolt/full_domain_validator
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 full_domain_validator 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 full_domain_validator API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Fully validates a domain name as compilant with the standard rules: - Composed of series of labels concatenated with dots, as are all domain names. - Each label must be between 1 and 63 characters long. - The entire hostname (including the delimiting dots) has a maximum of 255 characters. ...
"Fully validates a domain name as compilant with the standard rules:\n - Composed of series of labels concatenated with dots, as are all domain names.\n - Each label must be between 1 and 63 characters long.\n - The entire hostname (including the delimiting dots) has a maximum of 255 characters.\n ...
65
false
fabric-bolt/fabric-bolt
full_domain_validator
24,962
LDU_FT/cloudmesh/cloudmesh-common/check_file_for_tabs
LDU_FT
[ "<BEGIN>\n## `names`", "The names defined in ~/.ssh/config\n :return: the names\n<END>", "<BEGIN>\n## `load`", "list the hosts defined in the ssh config file\n<END>", "<BEGIN>\n## `execute`", "execute the command on the named host\n :param name: the name of the host in config\n :param...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the check_file_for_tabs 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 check_file_for_tabs 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...
identifies if the file contains tabs and returns True if it does. It also prints the location of the lines and columns. If verbose is set to False, the location is not printed. :param verbose: if true prints issues :param filename: the filename :type filename: str :rtype...
"identifies if the file contains tabs and returns True if it\n does. It also prints the location of the lines and columns. If\n verbose is set to False, the location is not printed.\n\n :param verbose: if true prints issues\n :param filename: the filename\n :type filename: str\n ...
203
false
cloudmesh/cloudmesh-common
check_file_for_tabs
24,963
LDU_FT/mschwager/cohesion/is_class_method_bound
LDU_FT
[ "<BEGIN>\n## `is_class_method_bound`", "Return whether a class method is bound to the class\n<END>", "<BEGIN>\n## `get_class_methods`", "Return methods associated with a given class\n<END>", "<BEGIN>\n## `get_class_variables`", "Return class variables associated with a given class\n<END>", "<BEGIN>\n## ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_class_method_bound 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 is_class_method_bound 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 whether a class method is bound to the class
"Return whether a class method is bound to the class"
12
false
mschwager/cohesion
is_class_method_bound
24,964
LDU_FT/lebinh/ngxtop/detect_log_config
LDU_FT
[ "<BEGIN>\n## `detect_config_path`", "Get nginx configuration file path based on `nginx -V` output\n :return: detected nginx configuration file path\n<END>", "<BEGIN>\n## `get_access_logs`", "Parse config for access_log directives\n :return: iterator over ('path', 'format name') tuple of found directives...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the detect_log_config API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the detect_log_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...
Detect access log config (path and format) of nginx. Offer user to select if multiple access logs are detected. :return: path and format of detected / selected access log
"Detect access log config (path and format) of nginx. Offer user to select if multiple access logs are detected.\n :return: path and format of detected / selected access log"
18
false
lebinh/ngxtop
detect_log_config
24,965
LDU_FT/sangoma/pysensu/delete_result
LDU_FT
[ "<BEGIN>\n## `get_all_client_events`", "Returns the list of current events for a given client.\n<END>", "<BEGIN>\n## `get_event`", "Returns an event for a given client & check name.\n<END>", "<BEGIN>\n## `delete_event`", "Resolves an event for a given check on a given client. (delayed action)\n<END>", "...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the delete_result API. 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 delete_result API. 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...
Deletes an check result data for a given check on a given client.
"Deletes an check result data for a given check on a given client."
18
false
sangoma/pysensu
delete_result
24,966
LDU_FT/idlesign/uwsgiconf/make_rpc_call
LDU_FT
[ "<BEGIN>\n## `set_exit_events`", "Do exit on certain events", " :param bool no_workers: Shutdown uWSGI when no workers are running.", " :param bool idle: Shutdown uWSGI when idle.", " :param bool reload: Force exit even if a reload is requested.", " :param bool sig_term: Exit o...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the make_rpc_call API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the make_rpc_call API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
Performs an RPC function call (local or remote) with the given arguments. :param str|unicode func_name: RPC function name to call. :param Iterable args: Function arguments. :param str|unicode remote: :rtype: bytes|str :raises ValueError: If unable to call RPC function.
"Performs an RPC function call (local or remote) with the given arguments.\n\n :param str|unicode func_name: RPC function name to call.\n\n :param Iterable args: Function arguments.\n\n :param str|unicode remote:\n\n :rtype: bytes|str\n\n :raises ValueError: If unable to call RPC function."
1,094
true
idlesign/uwsgiconf
make_rpc_call
24,967
LDU_FT/pavlov99/jsonapi/documentation
LDU_FT
[ "<BEGIN>\n## `default`", "Encode JSON.", " :return str: A JSON encoded string\n<END>", "<BEGIN>\n## `dump_document`", "Get document for model_instance.", " redefine dump rule for field x: def dump_document_x", " :param django.db.models.Model instance: model instance\n :param ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the documentation API. 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 documentation API. 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...
Resource documentation. .. versionadded:: 0.7.2 Content-Type check :return django.http.HttpResponse
"Resource documentation.\n\n .. versionadded:: 0.7.2\n Content-Type check\n\n :return django.http.HttpResponse"
63
false
pavlov99/jsonapi
documentation
24,968
LDU_FT/GoogleCloudPlatform/google-cloud-datastore/get_default_connection
LDU_FT
[ "<BEGIN>\n## `get_default_connection`", "Returns the default datastore connection.", " Defaults endpoint to helper.get_project_endpoint_from_env() and\n credentials to helper.get_credentials_from_env().", " Use set_options to override defaults.\n<END>", "<BEGIN>\n## `get_all`", "Query for all Todo item...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_default_connection API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_default_connection API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
Returns the default datastore connection. Defaults endpoint to helper.get_project_endpoint_from_env() and credentials to helper.get_credentials_from_env(). Use set_options to override defaults.
"Returns the default datastore connection.\n\n Defaults endpoint to helper.get_project_endpoint_from_env() and\n credentials to helper.get_credentials_from_env().\n\n Use set_options to override defaults."
94
false
GoogleCloudPlatform/google-cloud-datastore
get_default_connection
24,969
LDU_FT/cwacek/python-jsonschema-objects/validate_items
LDU_FT
[ "<BEGIN>\n## `validate_items`", "Validates the items in the backing array, including\n performing type validation.", " Sets the _typed property and clears the dirty flag as a side effect", " Returns:\n The typed array\n<END>", "<BEGIN>\n## `create`", "Create an array valida...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the validate_items API. 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 validate_items API. 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...
Validates the items in the backing array, including performing type validation. Sets the _typed property and clears the dirty flag as a side effect Returns: The typed array
"Validates the items in the backing array, including\n performing type validation.\n\n Sets the _typed property and clears the dirty flag as a side effect\n\n Returns:\n The typed array"
41
false
cwacek/python-jsonschema-objects
validate_items
24,970
LDU_FT/ev3dev/ev3dev-lang-python/sound_pressure_low
LDU_FT
[ "<BEGIN>\n## `list_motors`", "This is a generator function that enumerates all tacho motors that match\n the provided arguments.", " Parameters:\n name_pattern: pattern that device name should match.\n For example, 'motor*'. Default value: '*'.\n keyword arguments: used for matchi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the sound_pressure_low API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the sound_pressure_low API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
A measurement of the measured sound pressure level, as a percent. Uses A-weighting, which focuses on levels up to 55 dB.
"A measurement of the measured sound pressure level, as a\n percent. Uses A-weighting, which focuses on levels up to 55 dB."
452
false
ev3dev/ev3dev-lang-python
sound_pressure_low
24,971
LDU_FT/erkghlerngm44/malaffinity/calculate_affinity
LDU_FT
[ "<BEGIN>\n## `myanimelist`", "Retrieve a users' animelist scores from MAL.", " Only anime scored > 0 will be returned, and all\n PTW entries are ignored, even if they are scored.", " :param str username: MAL username\n :return: `id`, `score` pairs\n :rtype: list\n<END>", "<BEGIN>\n## `pearson...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the calculate_affinity API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the calculate_affinity API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
Get the affinity between the "base user" and ``username``. .. note:: The data returned will be a namedtuple, with the affinity and shared rated anime. This can easily be separated as follows (using the user ``Luna`` as ``username``): .. code-block:: python...
"Get the affinity between the \"base user\" and ``username``.\n\n .. note:: The data returned will be a namedtuple, with the affinity\n and shared rated anime. This can easily be separated\n as follows (using the user ``Luna`` as ``username``):\n\n .. code-block...
35
false
erkghlerngm44/malaffinity
calculate_affinity
24,972