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/pbrisk/timewave/initialize_worker
LDU_FT
[ "<BEGIN>\n## `initialize_worker`", "inits producer for a simulation run on a single process\n<END>", "<BEGIN>\n## `initialize_path`", "inits producer for next path, i.e. sets current state to initial state\n<END>", "<BEGIN>\n## `evolve`", "evolve to the new process state at the next date, i.e. do one step...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the initialize_worker API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the initialize_worker API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
inits producer for a simulation run on a single process
"inits producer for a simulation run on a single process"
50
false
pbrisk/timewave
initialize_worker
11,273
LDU_FT/ihiji/version_utils/parse_package
LDU_FT
[ "<BEGIN>\n## `compare_packages`", "Compare two RPM strings to determine which is newer", " Parses version information out of RPM package strings of the form\n returned by the ``rpm -q`` command and compares their versions to\n determine which is newer. Provided strings *do not* require an\n architec...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_package API. 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 parse_package API. 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...
Parse an RPM version string to get name, version, and arch Splits most (all tested) RPM version strings into name, epoch, version, release, and architecture. Epoch (also called serial) is an optional component of RPM versioning and is also optional in version strings provided to this function. RPM assu...
"Parse an RPM version string to get name, version, and arch\n\n Splits most (all tested) RPM version strings into name, epoch,\n version, release, and architecture. Epoch (also called serial) is\n an optional component of RPM versioning and is also optional in\n version strings provided to this function. RP...
56
false
ihiji/version_utils
parse_package
11,274
LDU_FT/AASHE/python-membersuite-api-client/get_memberships_for_org
LDU_FT
[ "<BEGIN>\n## `get_subscriptions`", "Fetches all subscriptions from Membersuite of a particular\n `publication_id` if set.\n<END>", "<BEGIN>\n## `get_org_types`", "Retrieves all current OrganizationType objects\n<END>", "<BEGIN>\n## `package_org_types`", "Loops through MS objects returned from queri...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_memberships_for_org 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_memberships_for_org API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion...
Retrieve all memberships associated with an organization, ordered by expiration date.
"Retrieve all memberships associated with an organization,\n ordered by expiration date."
46
false
AASHE/python-membersuite-api-client
get_memberships_for_org
11,275
LDU_FT/etingof/pysnmp/sendNotification
LDU_FT
[ "<BEGIN>\n## `getMibSymbol`", "Returns MIB variable symbolic identification.", " Returns\n -------\n str\n MIB module name\n str\n MIB variable symbolic name\n : :py:class:`~pysnmp.proto.rfc1902.ObjectName`\n class instance representing MIB ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the sendNotification API. 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 sendNotification API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Creates a generator to send one or more SNMP notifications. On each iteration, new SNMP TRAP or INFORM notification is send (:RFC:`1905#section-4,2,6`). The iterator blocks waiting for INFORM acknowledgement to arrive or error to occur. Parameters ---------- snmpEngine: :py:class:`~pysnmp.hlap...
"Creates a generator to send one or more SNMP notifications.\n\n On each iteration, new SNMP TRAP or INFORM notification is send\n (:RFC:`1905#section-4,2,6`). The iterator blocks waiting for\n INFORM acknowledgement to arrive or error to occur.\n\n Parameters\n ----------\n snmpEngine: :py:class:`~py...
708
false
etingof/pysnmp
sendNotification
11,276
LDU_FT/pytorch/text/data
LDU_FT
[ "<BEGIN>\n## `load_vectors`", "Arguments:\n vectors: one of or a list containing instantiations of the\n GloVe, CharNGram, or Vectors classes. Alternatively, one\n of or a list of available pretrained vectors:\n charngram.100d\n fasttext.en.30...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the 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 extracted do...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the 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 extracted do...
Return the examples in the dataset in order, sorted, or shuffled.
"Return the examples in the dataset in order, sorted, or shuffled."
131
false
pytorch/text
data
11,277
LDU_FT/polysquare/polysquare-generic-file-linter/technical_words_from_shadow_contents
LDU_FT
[ "<BEGIN>\n## `create`", "Create a Dictionary at spellchecker_cache_path with technical words.\n<END>", "<BEGIN>\n## `_comment_type_from_line`", "Return the \"comment header\" (' * ', '# ', 'rem ', '// ', '/* ').", " This header goes before the content of a start of the\n line in a replacement.\n<END>"...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the technical_words_from_shadow_contents API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates i...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the technical_words_from_shadow_contents API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates i...
Get a set of technical words from :shadow_contents:. :shadow_contents: is an array of shadow contents, as returned by spellcheckable_and_shadow_contents.
"Get a set of technical words from :shadow_contents:.\n\n :shadow_contents: is an array of shadow contents, as returned by\n spellcheckable_and_shadow_contents."
143
false
polysquare/polysquare-generic-file-linter
technical_words_from_shadow_contents
11,278
LDU_FT/liftoff/pyminifier/obfuscate_unique
LDU_FT
[ "<BEGIN>\n## `obfuscation_machine`", "A generator that returns short sequential combinations of lower and\n upper-case letters that will never repeat.", " If *use_unicode* is ``True``, use nonlatin cryllic, arabic, and syriac\n letters instead of the usual ABCs.", " The *identifier_length* represe...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the obfuscate_unique API. 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 obfuscate_unique API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
If the token string (a unique value anywhere) inside *tokens[index]* matches *replace*, return *replacement*. .. note:: This function is only for replacing absolutely unique ocurrences of *replace* (where we don't have to worry about their position).
"If the token string (a unique value anywhere) inside *tokens[index]*\n matches *replace*, return *replacement*.\n\n .. note::\n\n This function is only for replacing absolutely unique ocurrences of\n *replace* (where we don't have to worry about their position)."
160
false
liftoff/pyminifier
obfuscate_unique
11,279
LDU_FT/PaulHancock/Aegean/mim2fits
LDU_FT
[ "<BEGIN>\n## `classify_catalog`", "Look at a list of sources and split them according to their class.", " Parameters\n ----------\n catalog : iterable\n A list or iterable object of {SimpleSource, IslandSource, OutputSource} objects, possibly mixed.\n Any other objects will be silently ig...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the mim2fits API. 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 mim2fits API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
Convert a MIMAS region (.mim) file into a MOC region (.fits) file. Parameters ---------- mimfile : str Input file in MIMAS format. fitsfile : str Output file.
"Convert a MIMAS region (.mim) file into a MOC region (.fits) file.\n\n Parameters\n ----------\n mimfile : str\n Input file in MIMAS format.\n\n fitsfile : str\n Output file."
771
false
PaulHancock/Aegean
mim2fits
11,280
LDU_FT/booktype/python-ooxml/get_all_styles
LDU_FT
[ "<BEGIN>\n## `parse_drawing`", "Parse drawing element.", " We don't do much with drawing element. We can find embeded image but we don't do more than that.\n<END>", "<BEGIN>\n## `parse_paragraph`", "Parse paragraph element.", " Some other elements could be found inside of paragraph element (math, li...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_all_styles API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_all_styles API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
Returns list of styles on which specified style is based on. :Args: - document (:class:`ooxml.doc.Document`): Document object - style (:class:`ooxml.doc.Style`): Style object :Returns: List of style objects.
"Returns list of styles on which specified style is based on.\n\n :Args:\n - document (:class:`ooxml.doc.Document`): Document object\n - style (:class:`ooxml.doc.Style`): Style object\n\n :Returns:\n List of style objects."
117
false
booktype/python-ooxml
get_all_styles
11,281
LDU_FT/gpoulter/python-ngram/intersection
LDU_FT
[ "<BEGIN>\n## `copy`", "Return a new NGram object with the same settings, and\n referencing the same items. Copy is shallow in that\n each item is not recursively copied. Optionally specify\n alternate items to populate the copy.", " >>> from ngram import NGram\n >>> from co...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the intersection API. 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 intersection API. 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 intersection of two or more sets as a new set. >>> from ngram import NGram >>> a = NGram(['spam', 'eggs']) >>> b = NGram(['spam', 'ham']) >>> list(a.intersection(b)) ['spam']
"Return the intersection of two or more sets as a new set.\n\n >>> from ngram import NGram\n >>> a = NGram(['spam', 'eggs'])\n >>> b = NGram(['spam', 'ham'])\n >>> list(a.intersection(b))\n ['spam']"
59
false
gpoulter/python-ngram
intersection
11,282
LDU_FT/lorien/grab/get_item
LDU_FT
[ "<BEGIN>\n## `get_item`", "Returned item should have specific interface. See module docstring.\n<END>", "<BEGIN>\n## `has_item`", "Test if required item exists in the cache.\n<END>", "<BEGIN>\n## `build_grab_exception`", "Build Grab exception from the pycurl exception", " Args:\n ex - the orig...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_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. The extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_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. The extracte...
Returned item should have specific interface. See module docstring.
"Returned item should have specific interface. See module docstring."
188
false
lorien/grab
get_item
11,283
LDU_FT/dariusbakunas/rawdisk/detect_gpt
LDU_FT
[ "<BEGIN>\n## `get_entry`", "Get mft entry by index. If entry is not already loaded it will load \\\n it from file specified during :class:`MftTable` initialization.", " Returns:\n MftEntry: initialized :class:`~.mft_entry.MftEntry`.\n<END>", "<BEGIN>\n## `do_list`", "Enumerate resou...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the detect_gpt API. 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 detect_gpt API. 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...
Used by rawdisk.session.Session to match gpt partitions agains filesystem plugins. Args: filename: device or file that it will read in order to detect the filesystem fs_id: filesystem guid to match (ex. {EBD0A0A2-B9E5-4433-87C0-68B6B72699C7}) ...
"Used by rawdisk.session.Session to match gpt partitions agains\n filesystem plugins.\n\n Args:\n filename: device or file that it will read in order to detect the\n filesystem\n fs_id: filesystem guid to match\n (ex. {EBD0A0A2-B9E5-4433-87C0-68B6B72699C7})\n ...
75
false
dariusbakunas/rawdisk
detect_gpt
11,284
LDU_FT/peterwittek/ncpol2sdpa/__separate_scalar_factor
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 __separate_scalar_factor 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 __separate_scalar_factor API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio...
Separate the constant factor from a monomial.
"Separate the constant factor from a monomial."
217
false
peterwittek/ncpol2sdpa
__separate_scalar_factor
11,285
LDU_FT/jplusplus/statscraper/fetch_next
LDU_FT
[ "<BEGIN>\n## `initiate_browser`", "The button for expanded detailed options. This\n also happens to be a good indicator as to wheter\n all content is loaded.\n<END>", "<BEGIN>\n## `_fetch_dimensions`", "Declaring available dimensions like this is not mandatory,\n but nice, especially if ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the fetch_next API. 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 fetch_next API. 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...
Generator to yield data one row at a time. Yields a Result, not the entire ResultSet. The containing ResultSet can be accessed through `Result.resultset`, but be careful not to manipulate the ResultSet until it is populated (when this generator is empty), or you may see unexpected result...
"Generator to yield data one row at a time.\n Yields a Result, not the entire ResultSet. The containing ResultSet\n can be accessed through `Result.resultset`, but be careful not to\n manipulate the ResultSet until it is populated (when this generator\n is empty), or you may see unexpected r...
57
false
jplusplus/statscraper
fetch_next
11,286
LDU_FT/alecthomas/voluptuous/_compile_scalar
LDU_FT
[ "<BEGIN>\n## `truth`", "Convenience decorator to convert truth functions into validators.", " >>> @truth\n ... def isdir(v):\n ... return os.path.isdir(v)\n >>> validate = Schema(isdir)\n >>> validate('/')\n '/'\n >>> with raises(MultipleInvalid, 'not a valid v...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _compile_scalar API. 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 _compile_scalar API. 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...
A scalar value. The schema can either be a value or a type. >>> _compile_scalar(int)([], 1) 1 >>> with raises(er.Invalid, 'expected float'): ... _compile_scalar(float)([], '1') Callables have >>> _compile_scalar(lambda v: float(v))([], '1') 1.0 As a convenience, ValueError's ar...
"A scalar value.\n\n The schema can either be a value or a type.\n\n >>> _compile_scalar(int)([], 1)\n 1\n >>> with raises(er.Invalid, 'expected float'):\n ... _compile_scalar(float)([], '1')\n\n Callables have\n >>> _compile_scalar(lambda v: float(v))([], '1')\n 1.0\n\n As a convenience, V...
98
false
alecthomas/voluptuous
_compile_scalar
11,287
LDU_FT/4Catalyzer/flask-resty/add_resource
LDU_FT
[ "<BEGIN>\n## `get_marshmallow_schema_name`", "Get the schema name.", " If the schema doesn't exist, create it.\n<END>", "<BEGIN>\n## `request_args`", "Use args_schema to parse request query arguments.\n<END>", "<BEGIN>\n## `query`", "The SQLAlchemy query for the view.", " Override this t...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_resource API. 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 add_resource API. 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...
Add route or routes for a resource. :param str base_rule: The URL rule for the resource. This will be prefixed by the API prefix. :param base_view: Class-based view for the resource. :param alternate_view: If specified, an alternate class-based view for the resource. Usu...
"Add route or routes for a resource.\n\n :param str base_rule: The URL rule for the resource. This will be\n prefixed by the API prefix.\n :param base_view: Class-based view for the resource.\n :param alternate_view: If specified, an alternate class-based view for\n the resour...
32
false
4Catalyzer/flask-resty
add_resource
11,288
LDU_FT/zetaops/pyoko/create_report
LDU_FT
[ "<BEGIN>\n## `find_models_and_delete_search_index`", "Finds models to execute and these models' exist search indexes are deleted.\n For other operations, necessary models are gathered to list(exec_models)", " Args:\n model: model to execute\n force(bool): True or False if Tru...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_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 ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_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 ext...
creates a text report for the human user :return: str
"creates a text report for the human user\n :return: str"
278
false
zetaops/pyoko
create_report
11,289
LDU_FT/todbot/blink1-python/play
LDU_FT
[ "<BEGIN>\n## `blink1`", "Context manager which automatically shuts down the Blink(1)\n after use.\n :param switch_off: turn blink(1) off when existing context\n :param gamma: set gamma curve (as tuple)\n :param white_point: set white point (as tuple)\n<END>", "<BEGIN>\n## `find`", "Find a praticul...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the play API. 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 play API. 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...
Play internal color pattern :param start_pos: pattern line to start from :param end_pos: pattern line to end at :param count: number of times to play, 0=play forever
"Play internal color pattern\n :param start_pos: pattern line to start from\n :param end_pos: pattern line to end at \n :param count: number of times to play, 0=play forever"
33
false
todbot/blink1-python
play
11,290
LDU_FT/Locu/chronology/_retrieve
LDU_FT
[ "<BEGIN>\n## `is_remote_allowed`", "Check if `remote` is allowed to make a CORS request.\n<END>", "<BEGIN>\n## `endpoint`", "Returns a decorator which when applied a function, causes that function to\n serve `url` and only allows the HTTP methods in `methods`\n<END>", "<BEGIN>\n## `get_seconds`", "Conver...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _retrieve API. 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 _retrieve API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
Yield events from stream starting after the event with id `start_id` until and including events with timestamp `end_time`.
"Yield events from stream starting after the event with id `start_id` until\n and including events with timestamp `end_time`."
156
false
Locu/chronology
_retrieve
11,291
LDU_FT/openid/JWTConnect-Python-OidcMsg/from_dict
LDU_FT
[ "<BEGIN>\n## `make_openid_request`", "Construct the JWT to be passed by value (the request parameter) or by\n reference (request_uri).\n The request will be signed", " :param arq: The Authorization request\n :param keys: Keys to use for signing/encrypting. A KeyJar instance\n :param issuer: Who i...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the from_dict API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the from_dict API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
Direct translation, so the value for one key might be a list or a single value. :param dictionary: The info :return: A class instance or raise an exception on error
"Direct translation, so the value for one key might be a list or a\n single value.\n\n :param dictionary: The info\n :return: A class instance or raise an exception on error"
75
false
openid/JWTConnect-Python-OidcMsg
from_dict
11,292
LDU_FT/ebroecker/canmatrix/setup_logger
LDU_FT
[ "<BEGIN>\n## `unpack_bitstring`", "returns a value calculated from bits\n :param length: length of signal in bits\n :param is_float: value is float\n :param bits: value as bits (array/iterable)\n :param is_signed: value is signed\n :return:\n<END>", "<BEGIN>\n## `pack_bitstring`", "returns a va...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the setup_logger API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the setup_logger API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
Setup the root logger. Return the logger instance for possible further setting and use. To be used from CLI scripts only.
"Setup the root logger. Return the logger instance for possible further setting and use.\n\n To be used from CLI scripts only."
51
false
ebroecker/canmatrix
setup_logger
11,293
LDU_FT/jhshi/wltrace/is_packet_trace
LDU_FT
[ "<BEGIN>\n## `mcs_to_rate`", "Convert MCS index to rate in Mbps.", " See http://mcsindex.com/", " Args:\n mcs (int): MCS index\n bw (int): bandwidth, 20, 40, 80, ...\n long_gi(bool): True if long GI is used.", " Returns:\n rate (float): bitrate in Mbps", " >>> mcs_t...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_packet_trace API. 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 is_packet_trace API. 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...
Determine if a file is a packet trace that is supported by this module. Args: path (str): path to the trace file. Returns: bool: True if the file is a valid packet trace.
"Determine if a file is a packet trace that is supported by this module.\n\n Args:\n path (str): path to the trace file.\n\n Returns:\n bool: True if the file is a valid packet trace."
47
false
jhshi/wltrace
is_packet_trace
11,294
LDU_FT/sashs/filebytes/_getSuitableClasses
LDU_FT
[ "<BEGIN>\n## `isSupportedContent`", "Returns if the files are valid for this filetype\n<END>", "<BEGIN>\n## `__parseKeyValueStore`", "Returns a dictionary filled with the keys and values of the key value store\n<END>", "<BEGIN>\n## `to_raw_address`", "Converts the addr from a rva to a pointer to raw data ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _getSuitableClasses 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 _getSuitableClasses API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
Returns the class which holds the suitable classes for the loaded file
"Returns the class which holds the suitable classes for the loaded file"
28
false
sashs/filebytes
_getSuitableClasses
11,295
LDU_FT/michaelliao/sinaweibopy/_parse_json
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 _parse_json API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _parse_json API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
Parse json string into JsonDict. >>> r = _parse_json(r'{"name":"Michael","score":95}') >>> r.name u'Michael' >>> r['score'] 95
"Parse json string into JsonDict.\n\n >>> r = _parse_json(r'{\"name\":\"Michael\",\"score\":95}')\n >>> r.name\n u'Michael'\n >>> r['score']\n 95"
37
false
michaelliao/sinaweibopy
_parse_json
11,296
LDU_FT/jmcgeheeiv/pyfakefs/set_large_file_size
LDU_FT
[ "<BEGIN>\n## `_classify_directory_contents`", "Classify contents of a directory as files/directories.", " Args:\n filesystem: The fake filesystem used for implementation\n root: (str) Directory to examine.", " Returns:\n (tuple) A tuple consisting of three values: the directory exam...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_large_file_size API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_large_file_size API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
Sets the self.st_size attribute and replaces self.content with None. Provided specifically to simulate very large files without regards to their content (which wouldn't fit in memory). Note that read/write operations with such a file raise :py:class:`FakeLargeFileIoException`. ...
"Sets the self.st_size attribute and replaces self.content with None.\n\n Provided specifically to simulate very large files without regards\n to their content (which wouldn't fit in memory).\n Note that read/write operations with such a file raise\n :py:class:`FakeLargeFileIoException`....
534
false
jmcgeheeiv/pyfakefs
set_large_file_size
11,297
LDU_FT/mozilla/configman/close_connection
LDU_FT
[ "<BEGIN>\n## `str_dict_keys`", "return a modified dict where all the keys that are anything but str get\n converted to str.\n E.g.", " >>> result = str_dict_keys({u'name': u'Peter', u'age': 99, 1: 2})\n >>> # can't compare whole dicts in doctests\n >>> result['name']\n u'Peter'\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the close_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. The ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the close_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. The ...
overriding the baseclass function, this routine will decline to close a connection at the end of a transaction context. This allows for reuse of connections.
"overriding the baseclass function, this routine will decline to\n close a connection at the end of a transaction context. This allows\n for reuse of connections."
136
false
mozilla/configman
close_connection
11,298
LDU_FT/beregond/super_state_machine/_set_up_context
LDU_FT
[ "<BEGIN>\n## `can_be_`", "Check if machine can transit to given state.\n<END>", "<BEGIN>\n## `force_set`", "Set new state without checking if transition is allowed.\n<END>", "<BEGIN>\n## `translate`", "Translate value to enum instance.", " If value is already enum instance, check if this value be...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _set_up_context API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _set_up_context API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
Create context to keep all needed variables in.
"Create context to keep all needed variables in."
21
false
beregond/super_state_machine
_set_up_context
11,299
LDU_FT/ROGUE-JCTD/rogue_geonode/security_warnings
LDU_FT
[ "<BEGIN>\n## `make_request`", "Prepares a request from a url, params, and optionally authentication.\n<END>", "<BEGIN>\n## `setup_geoserver`", "Prepare a testing instance of GeoServer.\n<END>", "<BEGIN>\n## `upgradedb`", "Add 'fake' data migrations for existing tables from legacy GeoNode versions\n<END>",...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the security_warnings API. 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 security_warnings API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Detects insecure settings and reports them to the client-side context.
"Detects insecure settings and reports them to the client-side context."
27
false
ROGUE-JCTD/rogue_geonode
security_warnings
11,300
LDU_FT/mrstephenneal/mysql-toolkit/select_where_like
LDU_FT
[ "<BEGIN>\n## `count_rows_duplicates`", "Get the number of rows that do not contain distinct values.\n<END>", "<BEGIN>\n## `count_rows`", "Get the number of rows in a particular table.\n<END>", "<BEGIN>\n## `count_rows_distinct`", "Get the number distinct of rows in a particular table.\n<END>", "<BEGIN>\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the select_where_like API. 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 select_where_like API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Query rows from a table where a specific pattern is found in a column. MySQL syntax assumptions: (%) The percent sign represents zero, one, or multiple characters. (_) The underscore represents a single character. :param table: Name of the table :param cols: List, tuple...
"Query rows from a table where a specific pattern is found in a column.\n\n MySQL syntax assumptions:\n (%) The percent sign represents zero, one, or multiple characters.\n (_) The underscore represents a single character.\n\n :param table: Name of the table\n :param cols: Lis...
204
false
mrstephenneal/mysql-toolkit
select_where_like
11,301
LDU_FT/gregreen/dustmaps/serialize_skycoord
LDU_FT
[ "<BEGIN>\n## `ascii2h5`", "Converts from the original ASCII format of the Chen+ (2014) 3D dust map to\n the HDF5 format.", " Args:\n dat_fname (:obj:`str`): Filename of the original ASCII .dat file.\n h5_fname (:obj:`str`): Output filename to write the resulting HDF5 file to.\n<END>", "<BE...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the serialize_skycoord 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 serialize_skycoord 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...
Serializes an :obj:`astropy.coordinates.SkyCoord`, for JSONification. Args: o (:obj:`astropy.coordinates.SkyCoord`): :obj:`SkyCoord` to be serialized. Returns: A dictionary that can be passed to :obj:`json.dumps`.
"Serializes an :obj:`astropy.coordinates.SkyCoord`, for JSONification.\n\n Args:\n o (:obj:`astropy.coordinates.SkyCoord`): :obj:`SkyCoord` to be serialized.\n\n Returns:\n A dictionary that can be passed to :obj:`json.dumps`."
220
false
gregreen/dustmaps
serialize_skycoord
11,302
LDU_FT/pybel/pybel-artifactory/get_annotation_url
LDU_FT
[ "<BEGIN>\n## `convert_to_annotation`", "Convert a namespace file to an annotation file.\n<END>", "<BEGIN>\n## `history`", "Output the hashes for the annotation resources' versions.\n<END>", "<BEGIN>\n## `convert_to_namespace`", "Convert an annotation file to a namespace file.\n<END>", "<BEGIN>\n## `get_...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_annotation_url API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_annotation_url API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
Get a BEL annotation file from artifactory given the name and version. :param str module: :param str version: :type: str
"Get a BEL annotation file from artifactory given the name and version.\n\n :param str module:\n :param str version:\n :type: str"
39
false
pybel/pybel-artifactory
get_annotation_url
11,303
LDU_FT/IceflowRE/unidown/check_update
LDU_FT
[ "<BEGIN>\n## `from_protobuf`", "Constructor from protobuf.", " :param proto: protobuf structure\n :type proto: ~unidown.plugin.protobuf.link_item_pb2.LinkItemProto\n :return: the LinkItem\n :rtype: ~unidown.plugin.link_item.LinkItem\n :raises ValueError: name of LinkItem does ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the check_update API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the check_update API. 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...
Check for app updates and print/log them.
"Check for app updates and print/log them."
88
false
IceflowRE/unidown
check_update
11,304
LDU_FT/silas/ops/mkdir
LDU_FT
[ "<BEGIN>\n## `chmod`", "Changes file mode permissions.", " >>> if chmod('/tmp/one', 0755):\n ... print('OK')\n OK", " NOTE: The precending ``0`` is required when using a numerical mode.\n<END>", "<BEGIN>\n## `chown`", "Change file owner and group.", " >>> if chown('/tmp/one', ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the mkdir API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the mkdir API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
Create a directory at the specified path. By default this function recursively creates the path. >>> if mkdir('/tmp/one/two'): ... print('OK') OK
"Create a directory at the specified path. By default this function\n recursively creates the path.\n\n >>> if mkdir('/tmp/one/two'):\n ... print('OK')\n OK"
25
false
silas/ops
mkdir
11,305
LDU_FT/thelabnyc/wagtail_blog/create_blog_pages
LDU_FT
[ "<BEGIN>\n## `create_images_from_urls_in_content`", "create Image objects and transfer image files to media root\n<END>", "<BEGIN>\n## `lookup_comment_by_wordpress_id`", "Returns Django comment object with this wordpress id\n<END>", "<BEGIN>\n## `create_blog_pages`", "create Blog post entries from wordpre...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_blog_pages API. 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 create_blog_pages API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
create Blog post entries from wordpress data
"create Blog post entries from wordpress data"
36
false
thelabnyc/wagtail_blog
create_blog_pages
11,306
LDU_FT/datadesk/python-documentcloud/get_sections
LDU_FT
[ "<BEGIN>\n## `_make_request`", "Configure a HTTP request, fire it off and return the response.\n<END>", "<BEGIN>\n## `_get_search_page`", "Retrieve one page of search results from the DocumentCloud API.\n<END>", "<BEGIN>\n## `search`", "Retrieve all objects that make a search query.", " Will loop...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_sections API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_sections API. 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...
Fetch the sections field if it does not exist.
"Fetch the sections field if it does not exist."
107
false
datadesk/python-documentcloud
get_sections
11,307
LDU_FT/rbccps-iisc/ideam-python-sdk/db
LDU_FT
[ "<BEGIN>\n## `register`", "Registers a new device with the name entity_id. This device has permissions for services like subscribe,\n publish and access historical data.\n<END>", "<BEGIN>\n## `no_ssl_verification`", "Requests module fails due to lets encrypt ssl encryption. Will be fixed in the future ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the db API. 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 docu...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the db API. 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 docu...
This function allows an entity to access the historic data. Args: entity (string): Name of the device to listen to query_filters (string): Elastic search response format string example, "pretty=true&size=10"
"This function allows an entity to access the historic data.\n\n Args:\n entity (string): Name of the device to listen to\n query_filters (string): Elastic search response format string\n example, \"pretty=true&size=10\""
26
false
rbccps-iisc/ideam-python-sdk
db
11,308
LDU_FT/sods/paramz/add
LDU_FT
[ "<BEGIN>\n## `adjust_name_for_printing`", "Make sure a name can be printed, alongside used as a variable name.\n<END>", "<BEGIN>\n## `name`", "Set the name of this object.\n Tell the parent if the name has changed.\n<END>", "<BEGIN>\n## `hierarchy_name`", "return the name for this object with the p...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
Add an observer with priority and callble
"Add an observer with priority and callble"
225
false
sods/paramz
add
11,309
LDU_FT/nmdp-bioinformatics/SeqAnn/align_seqs
LDU_FT
[ "<BEGIN>\n## `search_seqs`", "search_seqs - method for annotating a BioPython sequence without alignment", " :param seqrec: The reference sequence\n :type seqrec: SeqRecord\n :param locus: The gene locus associated with the sequence.\n :type locus: str\n :param in_seq: The inp...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the align_seqs API. 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 align_seqs API. 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...
align_seqs - Aligns sequences with clustalo :param found_seqs: List of the reference sequences :type found_seqs: ``List`` :param sequence: The input consensus sequence. :type sequence: SeqRecord :param locus: The gene locus associated with the sequence. :type locus: ``str`` :param annotated...
"align_seqs - Aligns sequences with clustalo\n\n :param found_seqs: List of the reference sequences\n :type found_seqs: ``List``\n :param sequence: The input consensus sequence.\n :type sequence: SeqRecord\n :param locus: The gene locus associated with the sequence.\n :type locus: ``str``\n :param ...
112
false
nmdp-bioinformatics/SeqAnn
align_seqs
11,310
LDU_FT/django-leonardo/django-leonardo/set_options
LDU_FT
[ "<BEGIN>\n## `sort_dependencies`", "Sort a list of (app_config, models) pairs into a single list of models.\n The single list of models is sorted so that any model with a natural key\n is serialized before a normal model, and any model with a natural key\n dependency has it's dependencies serialized firs...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_options API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_options API. 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...
Set instance variables based on an options dict
"Set instance variables based on an options dict"
267
false
django-leonardo/django-leonardo
set_options
11,311
LDU_FT/fusionbox/django-backupdb/get_postgresql_args
LDU_FT
[ "<BEGIN>\n## `bar`", "r\"\"\"\n Returns a string with text centered in a bar caption.", " Examples:\n >>> bar('test', width=10)\n '== test =='\n >>> bar(width=10)\n '=========='\n >>> bar('Richard Dean Anderson is...', position='top', width=50)\n '//========= Richard Dean Anderson is... ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_postgresql_args API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_postgresql_args API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
Returns an array of argument values that will be passed to a `psql` or `pg_dump` process when it is started based on the given database configuration.
"Returns an array of argument values that will be passed to a `psql` or\n `pg_dump` process when it is started based on the given database\n configuration."
19
false
fusionbox/django-backupdb
get_postgresql_args
11,312
LDU_FT/kmike/opencorpora-tools/iter_documents
LDU_FT
[ "<BEGIN>\n## `iter_documents`", "Return an iterator over corpus documents.\n<END>", "<BEGIN>\n## `catalog`", "Return information about documents in corpora:\n a list of tuples (doc_id, doc_title).\n<END>", "<BEGIN>\n## `_compute_document_meta`", "Return documents meta information that can\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the iter_documents API. 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 iter_documents API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
Return an iterator over corpus documents.
"Return an iterator over corpus documents."
22
false
kmike/opencorpora-tools
iter_documents
11,313
LDU_FT/fronzbot/blinkpy/video_to_file
LDU_FT
[ "<BEGIN>\n## `refresh`", "Get all blink cameras and pulls their most recent status.\n<END>", "<BEGIN>\n## `attributes`", "Return dictionary of all camera attributes.\n<END>", "<BEGIN>\n## `snap_picture`", "Take a picture with camera to create a new thumbnail.\n<END>", "<BEGIN>\n## `image_to_file`", "W...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the video_to_file API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the video_to_file API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
Write video to file. :param path: Path to write file
"Write video to file.\n\n :param path: Path to write file"
71
false
fronzbot/blinkpy
video_to_file
11,314
LDU_FT/bharadwaj-raju/libdesktop/get_wallpaper
LDU_FT
[ "<BEGIN>\n## `get_config_dir`", "Get the configuration directory.", "\tGet the configuration directories, optionally for a specific program.", "\tArgs:\n\t\t\tprogram\t(str) : The name of the program whose configuration directories have to be found.\n\t\t\tsystem_wide (bool): Gets the system-wide configuratio...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_wallpaper API. 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_wallpaper API. 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 desktop wallpaper. Get the current desktop wallpaper. Returns: str: The path to the current wallpaper.
"Get the desktop wallpaper.\n\n\tGet the current desktop wallpaper.\n\n\tReturns:\n\t\t\tstr: The path to the current wallpaper."
119
false
bharadwaj-raju/libdesktop
get_wallpaper
11,315
LDU_FT/jsvine/spectra/NewFromLab
LDU_FT
[ "<BEGIN>\n## `cmyk`", "Create a spectra.Color object in the CMYK color space.", " :param float c: c coordinate.\n :param float m: m coordinate.\n :param float y: y coordinate.\n :param float k: k coordinate.", " :rtype: Color\n :returns: A spectra.Color object in the CMYK color space.\n<END>...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the NewFromLab API. 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 NewFromLab API. 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...
Create a new instance based on the specifed CIE-LAB values. Parameters: :l: The L component [0...100] :a: The a component [-1...1] :b: The a component [-1...1] :alpha: The color transparency [0...1], default is opaque :wref: The whitepoint refer...
"Create a new instance based on the specifed CIE-LAB values.\n\n Parameters:\n :l:\n The L component [0...100]\n :a:\n The a component [-1...1]\n :b:\n The a component [-1...1]\n :alpha:\n The color transparency [0...1], default is opaque\n :wref:\n The whi...
265
false
jsvine/spectra
NewFromLab
11,316
LDU_FT/wummel/patool/find_program
LDU_FT
[ "<BEGIN>\n## `list_tar`", "List a TAR archive with the tarfile Python module.\n<END>", "<BEGIN>\n## `extract_tar`", "Extract a TAR archive with the tarfile Python module.\n<END>", "<BEGIN>\n## `create_tar`", "Create a TAR archive with the tarfile Python module.\n<END>", "<BEGIN>\n## `get_tar_mode`", "...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_program API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_program API. 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...
Look for program in environment PATH variable.
"Look for program in environment PATH variable."
127
false
wummel/patool
find_program
11,317
LDU_FT/etingof/pysnmpcrypto/generic_encrypt
LDU_FT
[ "<BEGIN>\n## `_cryptodome_encrypt`", "Use a Pycryptodome cipher factory to encrypt data.", " :param cipher_factory: Factory callable that builds a Pycryptodome Cipher\n instance based on the key and IV\n :type cipher_factory: callable\n :param bytes plaintext: Plaintext data to encrypt\n :par...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the generic_encrypt API. 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 generic_encrypt API. 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...
Encrypt data using the available backend. :param dict cipher_factory_map: Dictionary that maps the backend name to a cipher factory callable for that backend :param bytes plaintext: Plaintext data to encrypt :param bytes key: Encryption key :param bytes IV: Initialization vector :returns: E...
"Encrypt data using the available backend.\n\n :param dict cipher_factory_map: Dictionary that maps the backend name to\n a cipher factory callable for that backend\n :param bytes plaintext: Plaintext data to encrypt\n :param bytes key: Encryption key\n :param bytes IV: Initialization vector\n :re...
27
false
etingof/pysnmpcrypto
generic_encrypt
11,318
LDU_FT/rosshamish/catan-py/_get_ports
LDU_FT
[ "<BEGIN>\n## `do`", "Does the command using the undo_manager's stack\n :param command: Command\n<END>", "<BEGIN>\n## `restore`", "Restore this Game object to match the properties and state of the given Game object\n :param game: properties to restore to the current (self) Game\n<END>", "<BEGIN...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_ports API. 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_ports API. 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...
Generate a list of ports using the given options. port options supported: - Opt.empty -> - Opt.random -> - Opt.preset -> ports are in default locations - Opt.debug -> alias for Opt.preset :param port_opts: Opt :return: list(Port)
"Generate a list of ports using the given options.\n\n port options supported:\n - Opt.empty ->\n - Opt.random ->\n - Opt.preset -> ports are in default locations\n - Opt.debug -> alias for Opt.preset\n\n :param port_opts: Opt\n :return: list(Port)"
52
false
rosshamish/catan-py
_get_ports
11,319
LDU_FT/steven-lang/bottr/_listen_submissions
LDU_FT
[ "<BEGIN>\n## `stop`", "Stops this bot.", " Returns as soon as all running threads have finished processing.\n<END>", "<BEGIN>\n## `_listen_comments`", "Start listening to comments, using a separate thread.\n<END>", "<BEGIN>\n## `start`", "Starts this bot in a separate thread. Therefore, this call...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _listen_submissions 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 _listen_submissions 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...
Start listening to submissions, using a separate thread.
"Start listening to submissions, using a separate thread."
45
false
steven-lang/bottr
_listen_submissions
11,320
LDU_FT/geophysics-ubonn/reda/scatter_norrec
LDU_FT
[ "<BEGIN>\n## `import_syscal_bin`", "Syscal import", " timestep: int or :class:`datetime.datetime`\n if provided use this value to set the 'timestep' column of the\n produced dataframe. Default: 0\n<END>", "<BEGIN>\n## `to_ip`", "Return of copy of the data inside a TDIP container...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the scatter_norrec API. 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 scatter_norrec API. 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...
Create a scatter plot for all diff pairs Parameters ---------- filename : string, optional if given, save plot to file individual : bool, optional if set to True, return one figure for each row Returns ------- fig : matplotlib.Figure or ...
"Create a scatter plot for all diff pairs\n\n Parameters\n ----------\n\n filename : string, optional\n if given, save plot to file\n individual : bool, optional\n if set to True, return one figure for each row\n\n Returns\n -------\n fig : matplotl...
486
false
geophysics-ubonn/reda
scatter_norrec
11,321
LDU_FT/chainer/chainerui/image
LDU_FT
[ "<BEGIN>\n## `create`", "Initialize an instance and save it to db.\n<END>", "<BEGIN>\n## `sampled_logs`", "Return up to `logs_limit` logs.", " If `logs_limit` is -1, this function will return all logs that belong\n to the result.\n<END>", "<BEGIN>\n## `serialize_with_sampled_logs`", "seria...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the 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 extracted d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the 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 extracted d...
Summary images to visualize. Args: images (:class:`numpy.ndarray` or :class:`cupy.ndarray` or \ :class:`chainer.Variable`): batch of images. If Number of dimension is 3 (or 2 when set `batched=False`), the pixels assume as black and white image. ...
"Summary images to visualize.\n\n Args:\n images (:class:`numpy.ndarray` or :class:`cupy.ndarray` or \\\n :class:`chainer.Variable`): batch of images. If Number of\n dimension is 3 (or 2 when set `batched=False`), the pixels\n assume as black and white imag...
53
false
chainer/chainerui
image
11,322
LDU_FT/luismasuelli/python-cantrips/input
LDU_FT
[ "<BEGIN>\n## `can_take`", "Decorator to make a class allow their instances to generate\n snapshot of themselves.", " Decorates the class by allowing it to have:\n * A custom class to serve each snapshot. Such class\n will have a subset of attributes to serve from the object,\n and a spe...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the input API. 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 input API. 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...
Keeps asking for input (each time in a new line) until a condition over the input text evaluates to true. Returns the input. This input can be done using text input or character input.
"Keeps asking for input (each time in a new line) until a condition\n over the input text evaluates to true. Returns the input. This\n input can be done using text input or character input."
51
false
luismasuelli/python-cantrips
input
11,323
LDU_FT/pypa/pipenv/write_text
LDU_FT
[ "<BEGIN>\n## `site_data_dir`", "r\"\"\"Return full path to the user-shared data dir for this application.", " \"appname\" is the name of application.\n If None, just the system directory is returned.\n \"appauthor\" (only used on Windows) is the name of the\n appauthor or dis...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the write_text API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the write_text API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
Writes re-indented text into the buffer. This rewraps and preserves paragraphs.
"Writes re-indented text into the buffer. This rewraps and\n preserves paragraphs."
4,833
true
pypa/pipenv
write_text
11,324
LDU_FT/zetaops/zengine/subscriber_choice_control
LDU_FT
[ "<BEGIN>\n## `list_catalogs`", "Lists existing catalogs respect to ui view template format\n<END>", "<BEGIN>\n## `get_catalog`", "Get existing catalog and fill the form with the model data.\n If given key not found as catalog, it generates an empty catalog data form.\n<END>", "<BEGIN>\n## `save_catal...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the subscriber_choice_control API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the subscriber_choice_control API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi...
It controls subscribers choice and generates error message if there is a non-choice.
"It controls subscribers choice and generates\n error message if there is a non-choice."
655
false
zetaops/zengine
subscriber_choice_control
11,325
LDU_FT/cbrand/vpnchooser/require_login
LDU_FT
[ "<BEGIN>\n## `check`", "Checks the given password with the one stored\n in the database\n<END>", "<BEGIN>\n## `connect`", "Connects the client to the server and\n returns it.\n<END>", "<BEGIN>\n## `server_rules`", "Reads the server rules from the client\n and returns it.\n<END>", "<...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the require_login API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the require_login API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
Function wrapper to signalize that a login is required.
"Function wrapper to signalize that a login is required."
38
false
cbrand/vpnchooser
require_login
11,326
LDU_FT/inveniosoftware/invenio-pidstore/recid_fetcher
LDU_FT
[ "<BEGIN>\n## `recid_fetcher`", "Fetch a record's identifiers.", " :param record_uuid: The record UUID.\n :param data: The record metadata.\n :returns: A :data:`invenio_pidstore.fetchers.FetchedPID` instance.\n<END>", "<BEGIN>\n## `get_object`", "Get an object behind persistent identifier.\n<END>", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the recid_fetcher API. 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 recid_fetcher API. 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...
Fetch a record's identifiers. :param record_uuid: The record UUID. :param data: The record metadata. :returns: A :data:`invenio_pidstore.fetchers.FetchedPID` instance.
"Fetch a record's identifiers.\n\n :param record_uuid: The record UUID.\n :param data: The record metadata.\n :returns: A :data:`invenio_pidstore.fetchers.FetchedPID` instance."
118
false
inveniosoftware/invenio-pidstore
recid_fetcher
11,327
LDU_FT/Kortemme-Lab/klab/_compare_mp_alias
LDU_FT
[ "<BEGIN>\n## `retrieve`", "Creates a PDBML object by using a cached copy of the files if they exists or by retrieving the files from the RCSB.\n<END>", "<BEGIN>\n## `parse_deprecation`", "Checks to see if the PDB file has been deprecated and, if so, what the new ID is.\n<END>", "<BEGIN>\n## `parse_atoms`", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _compare_mp_alias API. 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 _compare_mp_alias API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Alias for instance method that allows the method to be called in a multiprocessing pool. Needed as multiprocessing does not otherwise work on object instance methods.
"Alias for instance method that allows the method to be called in a\n multiprocessing pool. Needed as multiprocessing does not otherwise work\n on object instance methods."
725
false
Kortemme-Lab/klab
_compare_mp_alias
11,328
LDU_FT/django-fluent/django-fluent-blogs/query_entries
LDU_FT
[ "<BEGIN>\n## `formfield_for_dbfield`", "Allow formfield_overrides to contain field names too.\n<END>", "<BEGIN>\n## `published`", "Return only published entries for the current site.\n<END>", "<BEGIN>\n## `authors`", "Return the entries written by the given usernames\n When multiple tags are provid...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the query_entries API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the query_entries API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
Query the entries using a set of predefined filters. This interface is mainly used by the ``get_entries`` template tag.
"Query the entries using a set of predefined filters.\n This interface is mainly used by the ``get_entries`` template tag."
54
false
django-fluent/django-fluent-blogs
query_entries
11,329
LDU_FT/HewlettPackard/python-hpOneView/get_environmental_configuration
LDU_FT
[ "<BEGIN>\n## `get_visual_content`", "Gets a list of visual content objects describing each rack within the data center. The response aggregates data\n center and rack data with a specified metric (peak24HourTemp) to provide simplified access to display data for\n the data center.", " Args:\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_environmental_configuration 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_environmental_configuration API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its co...
Returns a description of the environmental configuration (supported feature set, calibrated minimum & maximum power, location & dimensions, ...) of the resource. Args: id_or_uri: Can be either the Unmanaged Device id or the uri Returns: dict: ...
"Returns a description of the environmental configuration (supported feature set, calibrated minimum & maximum\n power, location & dimensions, ...) of the resource.\n\n Args:\n id_or_uri:\n Can be either the Unmanaged Device id or the uri\n\n Returns:\n dict:\n ...
1,297
true
HewlettPackard/python-hpOneView
get_environmental_configuration
11,330
LDU_FT/python-visualization/folium/_tmp_html
LDU_FT
[ "<BEGIN>\n## `_get_self_bounds`", "Computes the bounds of the object itself (not including it's children)\n in the form [[lat_min, lon_min], [lat_max, lon_max]].\n<END>", "<BEGIN>\n## `path_options`", "Contains options and constants shared between vector overlays\n (Polygon, Polyline, Circle, Circle...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _tmp_html API. 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 _tmp_html API. 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...
Yields the path of a temporary HTML file containing data.
"Yields the path of a temporary HTML file containing data."
111
false
python-visualization/folium
_tmp_html
11,331
LDU_FT/tcalmant/ipopo/_start
LDU_FT
[ "<BEGIN>\n## `__conn_listener`", "Connection event listener", " :param state: The new connection state\n<END>", "<BEGIN>\n## `__path`", "Adds the prefix to the given path", " :param path: Z-Path\n :return: Prefixed Z-Path\n<END>", "<BEGIN>\n## `create`", "Creates a ZooKeeper node"...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _start API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _start API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Starts the instantiation queue (called by its bundle activator)
"Starts the instantiation queue (called by its bundle activator)"
1,396
true
tcalmant/ipopo
_start
11,332
LDU_FT/frostming/marko/parse_inline
LDU_FT
[ "<BEGIN>\n## `camel_to_snake_case`", "Takes a camelCased string and converts to snake_case.\n<END>", "<BEGIN>\n## `is_paired`", "Check if the text only contains:\n 1. blackslash escaped parentheses, or\n 2. parentheses paired.\n<END>", "<BEGIN>\n## `match_prefix`", "Check if the line starts with giv...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_inline API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_inline API. 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...
Inline parsing is postponed so that all link references are seen before that.
"Inline parsing is postponed so that all link references\n are seen before that."
49
false
frostming/marko
parse_inline
11,333
LDU_FT/gplepage/lsqfit/formatall
LDU_FT
[ "<BEGIN>\n## `run`", "Append version number to lsqfit/__init__.py\n<END>", "<BEGIN>\n## `_reformat`", "Apply format of ``p`` to data in 1-d array ``buf``.\n<END>", "<BEGIN>\n## `_unpack_data`", "Unpack data and prior into ``(x, y, prior, fdata)``.", " This routine unpacks ``data`` and ``prior`` into ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the formatall API. 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 formatall API. 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...
Add-on method for fits returned by chained_nonlinear_fit.
"Add-on method for fits returned by chained_nonlinear_fit."
208
false
gplepage/lsqfit
formatall
11,334
LDU_FT/CZ-NIC/python-rt/create_queue
LDU_FT
[ "<BEGIN>\n## `__request`", "General request for :term:`API`.", " :keyword selector: End part of URL which completes self.url parameter\n set during class initialization.\n E.g.: ``ticket/123456/show``\n :keyword post_data: Dictionary with POST me...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_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 extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_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 extr...
Create queue (undocumented API feature). :param Name: Queue name (required) :param kwargs: Optional fields to set (see edit_queue) :returns: ID of new queue or False when create fails :raises BadRequest: When queue already exists :raises InvalidUse: When invalid fields are set
"Create queue (undocumented API feature).\n\n :param Name: Queue name (required)\n :param kwargs: Optional fields to set (see edit_queue)\n :returns: ID of new queue or False when create fails\n :raises BadRequest: When queue already exists\n :raises InvalidUse: When invalid fields ar...
143
false
CZ-NIC/python-rt
create_queue
11,335
LDU_FT/freakboy3742/pyxero/_init_credentials
LDU_FT
[ "<BEGIN>\n## `parse_date`", "Takes a Xero formatted date, e.g. /Date(1426849200000+1300)/\n<END>", "<BEGIN>\n## `json_load_object_hook`", "Hook for json.parse(...) to parse Xero date formats.\n<END>", "<BEGIN>\n## `_get_data`", "This is the decorator for our DECORATED_METHODS.\n Each of the decorat...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _init_credentials API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _init_credentials API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Depending on the state passed in, get self._oauth up and running
"Depending on the state passed in, get self._oauth up and running"
31
false
freakboy3742/pyxero
_init_credentials
11,336
LDU_FT/raamana/mrivis/cluster_rows_in_roi
LDU_FT
[ "<BEGIN>\n## `checkerboard`", "Checkerboard mixer.", " Parameters\n ----------\n img_spec1 : str or nibabel image-like object\n MR image (or path to one) to be visualized", " img_spec2 : str or nibabel image-like object\n MR image (or path to one) to be visualized", " patch_size...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the cluster_rows_in_roi 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 cluster_rows_in_roi 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...
Clusters the data within all the ROIs specified in a mask. Parameters ---------- roi_mask : ndarray or None volumetric mask defining the list of ROIs, with a label for each voxel. This must be the same size in all dimensions except the fixed_dim i.e. if you ...
"Clusters the data within all the ROIs specified in a mask.\n\n Parameters\n ----------\n\n roi_mask : ndarray or None\n volumetric mask defining the list of ROIs, with a label for each voxel.\n This must be the same size in all dimensions except the fixed_dim\n i.e...
216
false
raamana/mrivis
cluster_rows_in_roi
11,337
LDU_FT/edoburu/sphinxcontrib-django/setup
LDU_FT
[ "<BEGIN>\n## `setup`", "Allow this module to be used as sphinx extension.\n This attaches the Sphinx hooks.", " :type app: sphinx.application.Sphinx\n<END>", "<BEGIN>\n## `patch_django_for_autodoc`", "Fix the appearance of some classes in autodoc.", " This avoids query evaluation.\n<END>", "<BE...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the setup API. 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 setup API. 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...
Allow this module to be used as sphinx extension. This attaches the Sphinx hooks. :type app: sphinx.application.Sphinx
"Allow this module to be used as sphinx extension.\n This attaches the Sphinx hooks.\n\n :type app: sphinx.application.Sphinx"
30
false
edoburu/sphinxcontrib-django
setup
11,338
LDU_FT/caktus/django-timepiece/cbv_decorator
LDU_FT
[ "<BEGIN>\n## `add_timezone`", "If the value is naive, then the timezone is added to it.", " If no timezone is given, timezone.get_current_timezone() is used.\n<END>", "<BEGIN>\n## `get_active_entry`", "Returns the user's currently-active entry, or None.\n<END>", "<BEGIN>\n## `get_month_start`", "Retu...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the cbv_decorator API. 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 cbv_decorator API. 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...
Allows a function-based decorator to be used on a CBV.
"Allows a function-based decorator to be used on a CBV."
88
false
caktus/django-timepiece
cbv_decorator
11,339
LDU_FT/appointlet/span/encompasses
LDU_FT
[ "<BEGIN>\n## `lintersects`", "If this span intersects the left (starting) side of the given span.\n<END>", "<BEGIN>\n## `rintersects`", "If this span intersects the right (ending) side of the given span.\n<END>", "<BEGIN>\n## `ltouches`", "Returns true if the end of this span touches the left (starting) s...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the encompasses API. 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 encompasses API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
Returns true if the given span fits inside this one
"Returns true if the given span fits inside this one"
12
false
appointlet/span
encompasses
11,340
LDU_FT/eweast/BencodePy/__parse_dict
LDU_FT
[ "<BEGIN>\n## `decode_from_file`", "Convenience function. Reads file and calls decode().\n<END>", "<BEGIN>\n## `__read`", "Returns a set number (i) of bytes from self.data.\n<END>", "<BEGIN>\n## `__read_to`", "Returns bytes from self.data starting at index (self.idx) until terminator character.\n<END>", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the __parse_dict API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the __parse_dict API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
Returns an Ordered Dictionary of nested bencode elements.
"Returns an Ordered Dictionary of nested bencode elements."
16
false
eweast/BencodePy
__parse_dict
11,341
LDU_FT/lalinsky/python-phoenixdb/fetch
LDU_FT
[ "<BEGIN>\n## `connect`", "Connects to a Phoenix query server.", " :param url:\n URL to the Phoenix query server, e.g. ``http://localhost:8765/``", " :param autocommit:\n Switch the connection to autocommit mode.", " :param readonly:\n Switch the connection to readonly mode.", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the fetch API. 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 fetch API. 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...
Returns a frame of rows. The frame describes whether there may be another frame. If there is not another frame, the current iteration is done when we have finished the rows in the this frame. :param connection_id: ID of the current connection. :param statement_id: ...
"Returns a frame of rows.\n\n The frame describes whether there may be another frame. If there is not\n another frame, the current iteration is done when we have finished the\n rows in the this frame.\n\n :param connection_id:\n ID of the current connection.\n\n :param stat...
86
false
lalinsky/python-phoenixdb
fetch
11,342
LDU_FT/openpermissions/chub/convert
LDU_FT
[ "<BEGIN>\n## `prepare_request`", "creates a full featured HTTPRequest objects\n<END>", "<BEGIN>\n## `_request`", "retrieve the caller frame, extract the parameters from\n the caller function, find the matching function,\n and fire the request\n<END>", "<BEGIN>\n## `login`", "login using emai...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the convert API. 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 convert API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
convert a standalone unicode string or unicode strings in a mapping or iterable into byte strings.
"convert a standalone unicode string or unicode strings in a\n mapping or iterable into byte strings."
22
false
openpermissions/chub
convert
11,343
LDU_FT/codebynumbers/ftpretty/split_file_info
LDU_FT
[ "<BEGIN>\n## `split_file_info`", "Parse sane directory output usually ls -l\n Adapted from https://gist.github.com/tobiasoberrauch/2942716\n<END>", "<BEGIN>\n## `get`", "Gets the file from FTP server", " local can be:\n a file: opened for writing, left open\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the split_file_info API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the split_file_info API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
Parse sane directory output usually ls -l Adapted from https://gist.github.com/tobiasoberrauch/2942716
"Parse sane directory output usually ls -l\n Adapted from https://gist.github.com/tobiasoberrauch/2942716"
13
false
codebynumbers/ftpretty
split_file_info
11,344
LDU_FT/ToFuProject/tofu/select
LDU_FT
[ "<BEGIN>\n## `Struct_plot`", "Plot the projections of a list of Struct subclass instances", " D. VEZINET, Aug. 2014\n Inputs :\n V A Ves instance\n Nstep An int (the number of points for evaluation of theta by np.linspace)\n axP A plt.Axes instance (if given) on...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the select API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the select API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Return the indices of the rays matching selection criteria The criterion can be of two types: - a key found in self.dchans, with a matching value - a touch tuple (indicating which element in self.config is touched by the desired rays) Parameters --------...
"Return the indices of the rays matching selection criteria\n\n The criterion can be of two types:\n - a key found in self.dchans, with a matching value\n - a touch tuple (indicating which element in self.config is touched\n by the desired rays)\n\n Parameters\n ...
424
false
ToFuProject/tofu
select
11,345
LDU_FT/mpibpc-mroose/hx711/power_down
LDU_FT
[ "<BEGIN>\n## `power_down`", "turn off the HX711\n :return: always True\n :rtype bool\n<END>", "<BEGIN>\n## `power_up`", "power up the HX711", " :return: always True\n :rtype bool\n<END>", "<BEGIN>\n## `reset`", "reset the HX711 and prepare it for \tthe next reading", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the power_down API. 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 power_down API. 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...
turn off the HX711 :return: always True :rtype bool
"turn off the HX711\n :return: always True\n :rtype bool"
24
false
mpibpc-mroose/hx711
power_down
11,346
LDU_FT/nikdon/pyEntropy/permutation_entropy
LDU_FT
[ "<BEGIN>\n## `_embed`", "Time-delay embedding.", " Parameters\n ----------\n x : 1d-array, shape (n_times)\n Time series\n order : int\n Embedding dimension (order)\n delay : int\n Delay.", " Returns\n -------\n embedded : ndarray, shape (n_times - (order - 1) * de...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the permutation_entropy 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 permutation_entropy 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...
Permutation Entropy. Parameters ---------- time_series : list or np.array Time series order : int Order of permutation entropy delay : int Time delay normalize : bool If True, divide by log2(factorial(m)) to normalize the entropy between 0 and 1. Otherwis...
"Permutation Entropy.\n\n Parameters\n ----------\n time_series : list or np.array\n Time series\n order : int\n Order of permutation entropy\n delay : int\n Time delay\n normalize : bool\n If True, divide by log2(factorial(m)) to normalize the entropy\n between 0 an...
47
false
nikdon/pyEntropy
permutation_entropy
11,347
LDU_FT/pyamg/pyamg/infinity_norm
LDU_FT
[ "<BEGIN>\n## `make_csr`", "Convert A to CSR, if A is not a CSR or BSR matrix already.", " Parameters\n ----------\n A : array, matrix, sparse matrix\n (n x n) matrix to convert to CSR", " Returns\n -------\n A : csr_matrix, bsr_matrix\n If A is csr_matrix or bsr_matrix, then do...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the infinity_norm API. 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 infinity_norm API. 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...
Infinity norm of a matrix (maximum absolute row sum). Parameters ---------- A : csr_matrix, csc_matrix, sparse, or numpy matrix Sparse or dense matrix Returns ------- n : float Infinity norm of the matrix Notes ----- - This serves as an upper bound on spectral radi...
"Infinity norm of a matrix (maximum absolute row sum).\n\n Parameters\n ----------\n A : csr_matrix, csc_matrix, sparse, or numpy matrix\n Sparse or dense matrix\n\n Returns\n -------\n n : float\n Infinity norm of the matrix\n\n Notes\n -----\n - This serves as an upper bound o...
1,074
true
pyamg/pyamg
infinity_norm
11,348
LDU_FT/euske/pdfminer/asciihexdecode
LDU_FT
[ "<BEGIN>\n## `nextline`", "Fetches a next line that ends either with \\\\r or \\\\n.\n<END>", "<BEGIN>\n## `revreadlines`", "Fetches a next line backward.", " This is used to locate the trailers at the end of a file.\n<END>", "<BEGIN>\n## `nextobject`", "Yields a list of objects.", " Ret...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the asciihexdecode API. 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 asciihexdecode API. 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...
ASCIIHexDecode filter: PDFReference v1.4 section 3.3.1 For each pair of ASCII hexadecimal digits (0-9 and A-F or a-f), the ASCIIHexDecode filter produces one byte of binary data. All white-space characters are ignored. A right angle bracket character (>) indicates EOD. Any other characters will cause an...
"ASCIIHexDecode filter: PDFReference v1.4 section 3.3.1\n For each pair of ASCII hexadecimal digits (0-9 and A-F or a-f), the\n ASCIIHexDecode filter produces one byte of binary data. All white-space\n characters are ignored. A right angle bracket character (>) indicates\n EOD. Any other characters will cau...
45
false
euske/pdfminer
asciihexdecode
11,349
LDU_FT/wrboyce/telegrambot/send_audio
LDU_FT
[ "<BEGIN>\n## `from_api`", "Parses a payload from the API, guided by `_api_attrs`\n<END>", "<BEGIN>\n## `api_method`", "Returns the api method to `send` the current API Object type\n<END>", "<BEGIN>\n## `api_payload`", "Generates a payload ready for submission to the API, guided by `_api_payload`\n<END>", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the send_audio API. 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 send_audio API. 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...
Use this method to send audio files, if you want Telegram clients to display them in the music player. Your audio must be in the .mp3 format. On success, the sent Message is returned. Bots can currently send audio files of up to 50 MB in size, this limit may be changed in the future. ...
"Use this method to send audio files, if you want Telegram clients to display them in the music player.\n Your audio must be in the .mp3 format. On success, the sent Message is returned. Bots can currently send\n audio files of up to 50 MB in size, this limit may be changed in the future.\n\n ...
34
false
wrboyce/telegrambot
send_audio
11,350
LDU_FT/CamilleMo/SuperSight/__save_plots_of_the_current_page
LDU_FT
[ "<BEGIN>\n## `__make_skeleton`", "This method creates the folder tree which will contain the website.\n<END>", "<BEGIN>\n## `__copy_static`", "This method takes the files in css and js folders of the template and copy to final folders\n<END>", "<BEGIN>\n## `__create_lists_for_nav_bar`", "This method is ca...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the __save_plots_of_the_current_page API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its c...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the __save_plots_of_the_current_page API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its c...
This method saves plots in the appropriate section folder. As a consequence two plots cannot have the same name within the same section.
"This method saves plots in the appropriate section folder.\n As a consequence two plots cannot have the same name within the same section."
14
false
CamilleMo/SuperSight
__save_plots_of_the_current_page
11,351
LDU_FT/projectatomic/atomic-reactor/get_reactor_tarball_path
LDU_FT
[ "<BEGIN>\n## `_build`", "build image from provided build_args", " :return: BuildResults\n<END>", "<BEGIN>\n## `_load_results`", "load results from recent build", " :return: BuildResults\n<END>", "<BEGIN>\n## `commit_buildroot`", "create image from buildroot", " :return:\n<END>",...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_reactor_tarball_path 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 get_reactor_tarball_path API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio...
generate atomic-reactor tarball :return:
"generate atomic-reactor tarball\n :return:"
440
false
projectatomic/atomic-reactor
get_reactor_tarball_path
11,352
LDU_FT/eighthave/pyvendapin/parsedata
LDU_FT
[ "<BEGIN>\n## `_checksum`", "calculate the XOR checksum of a packet in string format\n<END>", "<BEGIN>\n## `was_packet_accepted`", "parse the \"command\" byte from the response packet to get a \"response code\"\n<END>", "<BEGIN>\n## `parsedata`", "parse the data section of a packet, it can range from 0 to ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parsedata API. 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 parsedata API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
parse the data section of a packet, it can range from 0 to many bytes
"parse the data section of a packet, it can range from 0 to many bytes"
12
false
eighthave/pyvendapin
parsedata
11,353
LDU_FT/linkhub-sdk/popbill.py/getLogs
LDU_FT
[ "<BEGIN>\n## `getSenderNumberMgtURL`", "팩스 전송내역 팝업 URL\n args\n CorpNum : 회원 사업자번호\n UserID : 회원 팝빌아이디\n return\n 30초 보안 토큰을 포함한 url\n raise\n PopbillException\n<END>", "<BEGIN>\n## `getUnitCost`", "팩스 전송 단가 확인\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the getLogs API. 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 getLogs API. 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...
세금계산서 문서이력 목록 확인 args CorpNum : 회원 사업자 번호 MgtKeyType : 관리번호 유형 one of ['SELL','BUY','TRUSTEE'] MgtKey : 파트너 관리번호 return 문서이력 정보 목록 as List raise PopbillException
"세금계산서 문서이력 목록 확인\n args\n CorpNum : 회원 사업자 번호\n MgtKeyType : 관리번호 유형 one of ['SELL','BUY','TRUSTEE']\n MgtKey : 파트너 관리번호\n return\n 문서이력 정보 목록 as List\n raise\n PopbillException"
216
false
linkhub-sdk/popbill.py
getLogs
11,354
LDU_FT/pdkit/pdkit/butter_lowpass_filter
LDU_FT
[ "<BEGIN>\n## `load`", "This is a general load data method where the format of data to load can be passed as a parameter,", " :param str filename: The path to load data from\n :param str format_file: format of the file. Default is CloudUPDRS. Set to mpower for mpower data.\n :ret...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the butter_lowpass_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. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the butter_lowpass_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. ...
`Low-pass filter <http://stackoverflow.com/questions/25191620/ creating-lowpass-filter-in-scipy-understanding-methods-and-units>`_ data by the [order]th order zero lag Butterworth filter whose cut frequency is set to [cutoff] Hz. :param data: time-series data, :type data: numpy array of...
"`Low-pass filter <http://stackoverflow.com/questions/25191620/\n creating-lowpass-filter-in-scipy-understanding-methods-and-units>`_ data by the [order]th order zero lag Butterworth filter\n whose cut frequency is set to [cutoff] Hz.\n\n :param data: time-series data,\n :type data: numpy ar...
344
false
pdkit/pdkit
butter_lowpass_filter
11,355
LDU_FT/paddycarey/dweepy/set_alert
LDU_FT
[ "<BEGIN>\n## `_request`", "Make HTTP request, raising an exception if it fails.\n<END>", "<BEGIN>\n## `dweet_for`", "Send a dweet to dweet.io for a thing with a known name\n<END>", "<BEGIN>\n## `remove_lock`", "Remove a lock (no matter what it's connected to).\n<END>", "<BEGIN>\n## `lock`", "Lock a th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_alert API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_alert API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
Set an alert on a thing with the given condition
"Set an alert on a thing with the given condition"
18
false
paddycarey/dweepy
set_alert
11,356
LDU_FT/hozn/keepassdb/derive_key
LDU_FT
[ "<BEGIN>\n## `to_struct`", "Initialize properties of the appropriate struct class from this model class.\n<END>", "<BEGIN>\n## `move`", "Move this group to a new parent.", " :param parent: The new parent group; if None will be root group.\n :type parent: :class:`keepassdb.model.Group`\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the derive_key API. 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 derive_key API. 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...
Derives the correct (final) master key from the password and/or keyfile and sepcified transform seed & num rounds.
"Derives the correct (final) master key from the password and/or keyfile and\n sepcified transform seed & num rounds."
89
false
hozn/keepassdb
derive_key
11,357
LDU_FT/peterwittek/somoclu/customize_compiler_for_nvcc
LDU_FT
[ "<BEGIN>\n## `_check_cooling_parameters`", "Helper function to verify the cooling parameters of the training.\n<END>", "<BEGIN>\n## `_hexplot`", "Internal function to plot a hexagonal map.\n<END>", "<BEGIN>\n## `load_bmus`", "Load the best matching units from a file to the Somoclu object.", " :pa...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the customize_compiler_for_nvcc 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 customize_compiler_for_nvcc API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclu...
This is a verbatim copy of the NVCC compiler extension from https://github.com/rmcgibbo/npcuda-example
"This is a verbatim copy of the NVCC compiler extension from\n https://github.com/rmcgibbo/npcuda-example"
55
false
peterwittek/somoclu
customize_compiler_for_nvcc
11,358
LDU_FT/django-parler/django-parler/get_language_title
LDU_FT
[ "<BEGIN>\n## `objectlanguage`", "Template tag to switch an object language\n Example::", " {% objectlanguage object \"en\" %}\n {{ object.title }}\n {% endobjectlanguage %}", " A TranslatedObject is not affected by the ``{% language .. %}`` tag\n as it maintains it's own state....
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_language_title API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_language_title API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
Return the verbose_name for a language code. Fallback to language_code if language is not found in settings.
"Return the verbose_name for a language code.\n\n Fallback to language_code if language is not found in settings."
163
false
django-parler/django-parler
get_language_title
11,359
LDU_FT/Syndace/python-x3dh/getSharedSecretActive
LDU_FT
[ "<BEGIN>\n## `__generateSPK`", "Generate a new PK and sign its public key using the IK, add the timestamp aswell\n to allow for periodic rotations.\n<END>", "<BEGIN>\n## `__generateOTPKs`", "Generate the given amount of OTPKs.", " :param num_otpks: Either an integer or None.", " If th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the getSharedSecretActive 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 getSharedSecretActive API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Do the key exchange, as the active party. This involves selecting keys from the passive parties' public bundle. :param other_public_bundle: An instance of PublicBundle, filled with the public data of the passive party. :param allow_zero_otpks: A flag indicating whether bundles with ...
"Do the key exchange, as the active party. This involves selecting keys from the\n passive parties' public bundle.\n\n :param other_public_bundle: An instance of PublicBundle, filled with the public\n data of the passive party.\n :param allow_zero_otpks: A flag indicating whether bundles...
43
false
Syndace/python-x3dh
getSharedSecretActive
11,360
LDU_FT/jlmadurga/permabots/get
LDU_FT
[ "<BEGIN>\n## `process`", "Render value_template of the parameter using context.", " :param context: Processing context\n<END>", "<BEGIN>\n## `post`", "Process Telegram webhook.\n 1. Serialize Telegram message\n 2. Get an enabled Telegram bot\n 3. Create :class:`Update...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
Get MessengerBot by id --- serializer: MessengerBotSerializer responseMessages: - code: 401 message: Not authenticated
"Get MessengerBot by id\n ---\n serializer: MessengerBotSerializer\n responseMessages:\n - code: 401\n message: Not authenticated"
152
false
jlmadurga/permabots
get
11,361
LDU_FT/GiulioRossetti/ndlib/add_node_set_configuration
LDU_FT
[ "<BEGIN>\n## `set_initial_status`", "Override behaviour of methods in class DiffusionModel.\n Overwrites initial status using random real values.\n Generates random node profiles.\n<END>", "<BEGIN>\n## `iteration`", "Execute a single model iteration", " :return: Iteration_id, Incrementa...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_node_set_configuration API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclus...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_node_set_configuration API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclus...
Set Nodes parameter :param param_name: parameter identifier (as specified by the chosen model) :param node_to_value: dictionary mapping each node a parameter value
"Set Nodes parameter\n\n :param param_name: parameter identifier (as specified by the chosen model)\n :param node_to_value: dictionary mapping each node a parameter value"
56
false
GiulioRossetti/ndlib
add_node_set_configuration
11,362
LDU_FT/dead-beef/markovchain/cmd_settings
LDU_FT
[ "<BEGIN>\n## `create_arg_parser`", "Create command subparsers.", " Parameters\n ----------\n parent : `argparse.ArgumentParser`\n Command parser.\n<END>", "<BEGIN>\n## `read`", "Read data files and update a generator.", " Parameters\n ----------\n fnames : `list` of `str`\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the cmd_settings API. 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 cmd_settings API. 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...
Print generator settings. Parameters ---------- args : `argparse.Namespace` Command arguments.
"Print generator settings.\n\n Parameters\n ----------\n args : `argparse.Namespace`\n Command arguments."
323
false
dead-beef/markovchain
cmd_settings
11,363
LDU_FT/mozilla/socorrolib/klass_to_pypath
LDU_FT
[ "<BEGIN>\n## `klass_to_pypath`", "when a class is defined within the module that is being executed as\n main, the module name will be specified as '__main__' even though the\n module actually had its own real name. This ends up being very confusing\n to Configman as it tries to refer to a class by its p...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the klass_to_pypath API. 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 klass_to_pypath API. 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...
when a class is defined within the module that is being executed as main, the module name will be specified as '__main__' even though the module actually had its own real name. This ends up being very confusing to Configman as it tries to refer to a class by its proper module name. This function will c...
"when a class is defined within the module that is being executed as\n main, the module name will be specified as '__main__' even though the\n module actually had its own real name. This ends up being very confusing\n to Configman as it tries to refer to a class by its proper module name.\n This function w...
155
false
mozilla/socorrolib
klass_to_pypath
11,364
LDU_FT/jpoullet2000/atlasclient/url
LDU_FT
[ "<BEGIN>\n## `handle_response`", "Given a requests.Response object, throw the appropriate exception, if applicable.\n<END>", "<BEGIN>\n## `create`", "Create a new instance of this resource type.", " As a general rule, the identifier should have been provided, but in\n some subclasses the ident...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the url API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the url API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
Gets the url for the resource this model represents. It will just use the 'href' passed in to the constructor if that exists. Otherwise, it will generated it based on the collection's url and the model's identifier.
"Gets the url for the resource this model represents.\n\n It will just use the 'href' passed in to the constructor if that exists.\n Otherwise, it will generated it based on the collection's url and the\n model's identifier."
66
false
jpoullet2000/atlasclient
url
11,365
LDU_FT/meejah/txtorcon/maybe_call_closing_deferred
LDU_FT
[ "<BEGIN>\n## `tor_agent`", "This is the low-level method used by\n :meth:`txtorcon.Tor.web_agent` and\n :meth:`txtorcon.Circuit.web_agent` -- probably you should call one\n of those instead.", " :returns: a Deferred that fires with an object that implements\n :class:`twisted.web.iweb.IAgent` ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the maybe_call_closing_deferred 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 maybe_call_closing_deferred API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclu...
Used internally to callback on the _closing_deferred if it exists.
"Used internally to callback on the _closing_deferred if it\n exists."
289
false
meejah/txtorcon
maybe_call_closing_deferred
11,366
LDU_FT/openstack/hacking/hacking_python3x_octal_literals
LDU_FT
[ "<BEGIN>\n## `hacking_todo_format`", "Check for 'TODO()'.", " OpenStack HACKING guide recommendation for TODO:\n Include your name with TODOs as in \"# TODO(termie)\"", " Okay: # TODO(sdague)\n H101: # TODO fail\n H101: # TODO\n H101: # TODO (jogo) fail\n Okay: TODO = 5\n<END>", "<BEGIN...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the hacking_python3x_octal_literals 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 hacking_python3x_octal_literals API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its co...
r"""Check for octal literals in Python 3.x compatible form. As of Python 3.x, the construct "0755" has been removed. Use "0o755" instead". Okay: f(0o755) Okay: 'f(0755)' Okay: f(755) Okay: f(0) Okay: f(000) Okay: MiB = 1.0415 H232: f(0755) Okay: f(0755) # noqa
"r\"\"\"Check for octal literals in Python 3.x compatible form.\n\n As of Python 3.x, the construct \"0755\" has been removed.\n Use \"0o755\" instead\".\n\n\n Okay: f(0o755)\n Okay: 'f(0755)'\n Okay: f(755)\n Okay: f(0)\n Okay: f(000)\n Okay: MiB = 1.0415\n H232: f(0755)\n Okay: f(0755) ...
114
false
openstack/hacking
hacking_python3x_octal_literals
11,367
LDU_FT/marshmallow-code/marshmallow-jsonapi/deserialize
LDU_FT
[ "<BEGIN>\n## `check_relations`", "Recursive function which checks if a relation is valid.\n<END>", "<BEGIN>\n## `format_json_api_response`", "Post-dump hook that formats serialized data as a top-level JSON API object.", " See: http://jsonapi.org/format/#document-top-level\n<END>", "<BEGIN>\n## `on_...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the deserialize API. 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 deserialize API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
Deserialize ``value``. :raise ValidationError: If the value is not type `dict`, if the value does not contain a `data` key, and if the value is required but unspecified.
"Deserialize ``value``.\n\n :raise ValidationError: If the value is not type `dict`, if the\n value does not contain a `data` key, and if the value is\n required but unspecified."
41
false
marshmallow-code/marshmallow-jsonapi
deserialize
11,368
LDU_FT/moonso/ped_parser/get_individual
LDU_FT
[ "<BEGIN>\n## `get_individual`", "Return a individual object based on the indata.", " Arguments:\n family_id (str): The id for this family\n sample_id (str): The id for this sample\n father_id (str): The id for this samples father\n mother_id (str): The id for t...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_individual API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_individual API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
Return a individual object based on the indata. Arguments: family_id (str): The id for this family sample_id (str): The id for this sample father_id (str): The id for this samples father mother_id (str): The id for this samples mother sex (str...
"Return a individual object based on the indata.\n \n Arguments:\n family_id (str): The id for this family\n sample_id (str): The id for this sample\n father_id (str): The id for this samples father\n mother_id (str): The id for this samples mother\n ...
79
false
moonso/ped_parser
get_individual
11,369
LDU_FT/zetaops/pyoko/values_list
LDU_FT
[ "<BEGIN>\n## `find_models_and_delete_search_index`", "Finds models to execute and these models' exist search indexes are deleted.\n For other operations, necessary models are gathered to list(exec_models)", " Args:\n model: model to execute\n force(bool): True or False if Tru...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the values_list API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the values_list API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
Returns list of values for given fields. Since this will implicitly use data() method, it's more efficient than simply looping through model instances. Args: flatten (bool): True. Flatten if there is only one field name given. Returns ['one','two', 'three'] instead of ...
"Returns list of values for given fields.\n Since this will implicitly use data() method,\n it's more efficient than simply looping through model instances.\n\n\n Args:\n flatten (bool): True. Flatten if there is only one field name given.\n Returns ['one','two', 'three'] ins...
278
false
zetaops/pyoko
values_list
11,370
LDU_FT/libfuse/python-fuse/register_sub
LDU_FT
[ "<BEGIN>\n## `feature_needs`", "Get info about the FUSE API version needed for the support of some features.", " This function takes a variable number of feature patterns.", " A feature pattern is either:", " - an integer (directly referring to a FUSE API version number)\n - a built-in feature...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the register_sub API. 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 register_sub API. 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...
Register argument a suboption for `self`.
"Register argument a suboption for `self`."
27
false
libfuse/python-fuse
register_sub
11,371
LDU_FT/khazhyk/osuapi/get_user_best
LDU_FT
[ "<BEGIN>\n## `get_user`", "Get a user profile.", " Parameters\n ----------\n username : str or int\n A `str` representing the user's username, or an `int` representing the user's id.\n mode : :class:`osuapi.enums.OsuMode`\n The osu! game mode for which to look u...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_user_best API. 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_user_best API. 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 user's best scores. Parameters ---------- username : str or int A `str` representing the user's username, or an `int` representing the user's id. mode : :class:`osuapi.enums.OsuMode` The osu! game mode for which to look up. Defaults to osu!standard. ...
"Get a user's best scores.\n\n Parameters\n ----------\n username : str or int\n A `str` representing the user's username, or an `int` representing the user's id.\n mode : :class:`osuapi.enums.OsuMode`\n The osu! game mode for which to look up. Defaults to osu!standard....
27
false
khazhyk/osuapi
get_user_best
11,372