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/edeposit/marcxml2mods/postprocess_monograph
LDU_FT
[ "<BEGIN>\n## `postprocess_periodical`", "Some basic postprocessing of the periodical publications.", " Args:\n marc_xml (str): Original Aleph record.\n mods (str): XML string generated by XSLT template.\n uuid (str): UUID of the package.\n counter (int): Number of record, is added...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the postprocess_monograph 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 postprocess_monograph API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Fix bugs in `mods` produced by XSLT template. Args: marc_xml (str): Original Aleph record. mods (str): XML string generated by XSLT template. uuid (str): UUID of the package. counter (int): Number of record, is added to XML headers. url (str): URL of the publication (public ...
"Fix bugs in `mods` produced by XSLT template.\n\n Args:\n marc_xml (str): Original Aleph record.\n mods (str): XML string generated by XSLT template.\n uuid (str): UUID of the package.\n counter (int): Number of record, is added to XML headers.\n url (str): URL of the publication ...
93
false
edeposit/marcxml2mods
postprocess_monograph
39,873
LDU_FT/openvax/datacache/local_path
LDU_FT
[ "<BEGIN>\n## `connect_if_correct_version`", "Return a sqlite3 database connection if the version in the database's\n metadata matches the version argument.", " Also implicitly checks for whether the data in this database has\n been completely filled, since we set the version last.", " TODO: Make a...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the local_path API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the local_path API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
What will the full local path be if we download the given file?
"What will the full local path be if we download the given file?"
101
false
openvax/datacache
local_path
39,874
LDU_FT/arraylabs/pymyq/main
LDU_FT
[ "<BEGIN>\n## `close_websession`", "Close web session if not already closed and created by us.\n<END>", "<BEGIN>\n## `get_devices`", "Get a list of all devices associated with the account.\n<END>", "<BEGIN>\n## `main`", "Create the aiohttp session and run the example.\n<END>", "<BEGIN>\n## `state`", "R...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the main API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the main API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
Create the aiohttp session and run the example.
"Create the aiohttp session and run the example."
12
false
arraylabs/pymyq
main
39,875
LDU_FT/paulovn/sparql-kernel/xml_iterator
LDU_FT
[ "<BEGIN>\n## `token_at_cursor`", "Find the token present at the passed position in the code buffer\n :return (tuple): a pair (token, start_position)\n<END>", "<BEGIN>\n## `_send`", "Send a response to the frontend and return an execute message\n @param data: response to send\n @param msg_t...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the xml_iterator API. 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 xml_iterator API. 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...
Convert an XML response into a double iterable, by rows and columns Options are: filter triples by language (on literals), add element type
"Convert an XML response into a double iterable, by rows and columns\n Options are: filter triples by language (on literals), add element type"
55
false
paulovn/sparql-kernel
xml_iterator
39,876
LDU_FT/dustin/twitty-twister/unfollow_user
LDU_FT
[ "<BEGIN>\n## `__downloadPage`", "Start a HTTP download, returning a HTTPDownloader object\n<END>", "<BEGIN>\n## `__encodeMultipart`", "fields is a sequence of (name, value) elements for regular form fields.\n files is a sequence of (name, filename, value) elements for data to be uploaded as files\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the unfollow_user API. 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 unfollow_user API. 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...
Unfollow the given user. Returns the user info back to the given delegate
"Unfollow the given user.\n\n Returns the user info back to the given delegate"
93
false
dustin/twitty-twister
unfollow_user
39,877
LDU_FT/transifex/transifex-python-library/_make_request
LDU_FT
[ "<BEGIN>\n## `get`", "Retrieve an object by making a GET request to Transifex.", " Each value in `kwargs` that corresponds to a field\n defined in `self.url_fields` will be used in the URL path\n of the request, so that a particular entry of this model\n is identified and retrieved."...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _make_request API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _make_request API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
Make a request. Use the `requests` module to actually perform the request. Args: `method`: The method to use. `path`: The path to the resource. `data`: Any data to send (for POST and PUT requests). `kwargs`: Other parameters for `requests`. Retur...
"Make a request.\n\n Use the `requests` module to actually perform the request.\n\n Args:\n `method`: The method to use.\n `path`: The path to the resource.\n `data`: Any data to send (for POST and PUT requests).\n `kwargs`: Other parameters for `requests`.\n ...
64
false
transifex/transifex-python-library
_make_request
39,878
LDU_FT/marvin-ai/marvin-python-toolbox/load_data
LDU_FT
[ "<BEGIN>\n## `get_logger`", "Build a logger that outputs to a file and to the console,\n<END>", "<BEGIN>\n## `get`", "Retrieves a config value from dict.\n If not found twrows an InvalidScanbooconfigException.\n<END>", "<BEGIN>\n## `_get_version`", "Return the project version from VERSION file.\n<E...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load_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 extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load_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 extract...
Load data from the following sources in order of priority: 1. Filesystem :param relpath: path relative to "data_path" :return: str - data content
"Load data from the following sources in order of priority:\n\n 1. Filesystem\n\n :param relpath: path relative to \"data_path\"\n :return: str - data content"
37
false
marvin-ai/marvin-python-toolbox
load_data
39,879
LDU_FT/ajdavis/mongo-mockup-db/unpack
LDU_FT
[ "<BEGIN>\n## `go`", "Launch an operation on a thread and get a handle to its future result.", " >>> from time import sleep\n >>> def print_sleep_print(duration):\n ... sleep(duration)\n ... print('hello from background thread')\n ... sleep(duration)\n ... print('goodbye from ba...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the unpack API. 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 unpack API. 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 ...
Parse message and return an `OpMsg`. Takes the client message as bytes, the client and server socket objects, and the client request id.
"Parse message and return an `OpMsg`.\n\n Takes the client message as bytes, the client and server socket objects,\n and the client request id."
129
false
ajdavis/mongo-mockup-db
unpack
39,880
LDU_FT/jasonbot/arcrest/save
LDU_FT
[ "<BEGIN>\n## `_get_subfolder`", "Return an object of the requested type with the path relative\n to the current object's URL. Optionally, query parameters\n may be set.\n<END>", "<BEGIN>\n## `_contents`", "The raw contents of the URL as fetched, this is done lazily.\n For non-laz...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the save API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the save API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
Save the image data to a file or file-like object
"Save the image data to a file or file-like object"
66
false
jasonbot/arcrest
save
39,881
LDU_FT/freakboy3742/pyxero/url
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 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...
Returns the URL that can be visited to obtain a verifier code
"Returns the URL that can be visited to obtain a verifier code"
31
false
freakboy3742/pyxero
url
39,882
LDU_FT/ClericPy/torequests/x
LDU_FT
[ "<BEGIN>\n## `init_original_response`", "Get the original response for comparing, confirm ``is_cookie_necessary``\n<END>", "<BEGIN>\n## `init_original_response`", "Get the original response for comparing, confirm is_cookie_necessary\n<END>", "<BEGIN>\n## `sort_url_qsl`", "Do nothing but sort the params of...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the x API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted docum...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the x API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted docum...
Block the main thead until future finish, return the future.result().
"Block the main thead until future finish, return the future.result()."
244
false
ClericPy/torequests
x
39,883
LDU_FT/adafruit/Adafruit_CircuitPython_OneWire/write
LDU_FT
[ "<BEGIN>\n## `reset`", "Perform a reset and check for presence pulse.", " :param bool required: require presence pulse\n<END>", "<BEGIN>\n## `readinto`", "Read into ``buf`` from the device. The number of bytes read will be the\n length of ``buf``.", " If ``start`` or ``end`` is provid...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the write API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the write API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
Write the bytes from ``buf`` to the device. If ``start`` or ``end`` is provided, then the buffer will be sliced as if ``buffer[start:end]``. This will not cause an allocation like ``buffer[start:end]`` will so it saves memory. :param bytearray buf: buffer containing the bytes to write ...
"Write the bytes from ``buf`` to the device.\n\n If ``start`` or ``end`` is provided, then the buffer will be sliced\n as if ``buffer[start:end]``. This will not cause an allocation like\n ``buffer[start:end]`` will so it saves memory.\n\n :param bytearray buf: buffer containing the bytes to...
24
false
adafruit/Adafruit_CircuitPython_OneWire
write
39,884
LDU_FT/pystorm/pystorm/read_handshake
LDU_FT
[ "<BEGIN>\n## `emit`", "Emit a spout Tuple message.", " :param tup: the Tuple to send to Storm, should contain only\n JSON-serializable data.\n :type tup: list or tuple\n :param tup_id: the ID for the Tuple. Leave this blank for an\n unreliable emit.\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the read_handshake API. 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 read_handshake API. 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...
Read and process an initial handshake message from Storm.
"Read and process an initial handshake message from Storm."
103
false
pystorm/pystorm
read_handshake
39,885
LDU_FT/ownport/scrapy-dblite/copy
LDU_FT
[ "<BEGIN>\n## `copy`", "copy items with optional fields transformation\n<END>", "<BEGIN>\n## `_dict_factory`", "factory for sqlite3 to return results as dict\n<END>", "<BEGIN>\n## `_create_table`", "create sqlite's table for storing simple dictionaries\n<END>", "<BEGIN>\n## `get`", "returns items selec...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the copy API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the copy API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
copy items with optional fields transformation
"copy items with optional fields transformation"
16
false
ownport/scrapy-dblite
copy
39,886
LDU_FT/data61/clkhash/stream_bloom_filters
LDU_FT
[ "<BEGIN>\n## `convert_v1_to_v2`", "Convert v1 schema dict to v2 schema dict.\n :param dict: v1 schema dict\n :return: v2 schema dict\n<END>", "<BEGIN>\n## `from_json_dict`", "Create a Schema for v1 or v2 according to dct", " :param dct: This dictionary must have a `'features'`\n key spec...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the stream_bloom_filters API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the stream_bloom_filters API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Compute composite Bloom filters (CLKs) for every record in an iterable dataset. :param dataset: An iterable of indexable records. :param schema: An instantiated Schema instance :param keys: A tuple of two lists of secret keys used in the HMAC. :return: Generator yielding bloom f...
"Compute composite Bloom filters (CLKs) for every record in an\n iterable dataset.\n\n :param dataset: An iterable of indexable records.\n :param schema: An instantiated Schema instance\n :param keys: A tuple of two lists of secret keys used in the HMAC.\n :return: Generator yielding ...
212
false
data61/clkhash
stream_bloom_filters
39,887
LDU_FT/hmmlearn/hmmlearn/_init
LDU_FT
[ "<BEGIN>\n## `log_multivariate_normal_density`", "Compute the log probability under a multivariate Gaussian distribution.\n Parameters\n ----------\n X : array_like, shape (n_samples, n_features)\n List of n_features-dimensional data points. Each row corresponds to a\n single data point.\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _init API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _init API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
Initializes model parameters prior to fitting. Parameters ---------- X : array-like, shape (n_samples, n_features) Feature matrix of individual samples. lengths : array-like of integers, shape (n_sequences, ) Lengths of the individual sequences in ``X``. The sum...
"Initializes model parameters prior to fitting.\n\n Parameters\n ----------\n X : array-like, shape (n_samples, n_features)\n Feature matrix of individual samples.\n\n lengths : array-like of integers, shape (n_sequences, )\n Lengths of the individual sequences in ``X``...
108
false
hmmlearn/hmmlearn
_init
39,888
LDU_FT/theislab/scanpy/moignard15
LDU_FT
[ "<BEGIN>\n## `filter_cells`", "Filter cell outliers based on counts and numbers of genes expressed.", " For instance, only keep cells with at least `min_counts` counts or\n `min_genes` genes expressed. This is to filter measurement outliers,\n i.e. “unreliable” observations.", " Only provide one o...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the moignard15 API. 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 moignard15 API. 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...
Hematopoiesis in early mouse embryos [Moignard15]_. Returns ------- Annotated data matrix.
"Hematopoiesis in early mouse embryos [Moignard15]_.\n\n Returns\n -------\n Annotated data matrix."
1,142
true
theislab/scanpy
moignard15
39,889
LDU_FT/michaelpb/omnic/load_path
LDU_FT
[ "<BEGIN>\n## `use_settings`", "Context manager to temporarily override settings\n<END>", "<BEGIN>\n## `parse_string`", "Parses a foreign resource URL into the URL string itself and any\n relevant args and kwargs\n<END>", "<BEGIN>\n## `apply_command_list_template`", "Perform necessary substitutions ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load_path API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load_path API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
Load and return a given import path to a module or class
"Load and return a given import path to a module or class"
111
false
michaelpb/omnic
load_path
39,890
LDU_FT/bimbar/pykwb/_close_connection
LDU_FT
[ "<BEGIN>\n## `_close_connection`", "Close the connection to the easyfire unit.\n<END>", "<BEGIN>\n## `_sense_packet_to_data`", "Remove the escape pad bytes from a sense packet (\\2\\0 -> \\2).\n<END>", "<BEGIN>\n## `_decode_temp`", "Decode a signed short temperature as two bytes to a single number.\n<END>...
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...
Close the connection to the easyfire unit.
"Close the connection to the easyfire unit."
12
false
bimbar/pykwb
_close_connection
39,891
LDU_FT/shin-/dockerpy-creds/create_environment_dict
LDU_FT
[ "<BEGIN>\n## `find_executable`", "As distutils.spawn.find_executable, but on Windows, look up\n every extension declared in PATHEXT instead of just `.exe`\n<END>", "<BEGIN>\n## `create_environment_dict`", "Create and return a copy of os.environ with the specified overrides\n<END>", "<BEGIN>\n## `get`", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_environment_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...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_environment_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...
Create and return a copy of os.environ with the specified overrides
"Create and return a copy of os.environ with the specified overrides"
10
false
shin-/dockerpy-creds
create_environment_dict
39,892
LDU_FT/steven-lang/bottr/_listen_comments
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_comments API. 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 _listen_comments API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Start listening to comments, using a separate thread.
"Start listening to comments, using a separate thread."
45
false
steven-lang/bottr
_listen_comments
39,893
LDU_FT/nickpandolfi/Cyther/_check_building_options
LDU_FT
[ "<BEGIN>\n## `get_content`", "Finds the 'content' tag from a 'pattern' in the provided 'string'\n<END>", "<BEGIN>\n## `extract`", "Used to extract a given regex pattern from a string, given several options\n<END>", "<BEGIN>\n## `extractRuntime`", "Used to find the correct static lib name to pass to gcc\n<...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _check_building_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...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _check_building_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...
Checks the building options to make sure that they are defined last, after the task name and the dependencies
"Checks the building options to make sure that they are defined last,\n after the task name and the dependencies"
131
false
nickpandolfi/Cyther
_check_building_options
39,894
LDU_FT/echinopsii/net.echinopsii.ariane.community.cli.python3/json_2_cluster
LDU_FT
[ "<BEGIN>\n## `find_location`", "find the location according location id (prioritary) or location name\n :param loc_id: the location id\n :param loc_name: the location name\n :return: found location or None if not found\n<END>", "<BEGIN>\n## `json_2_location`", "transform JSON obj coming f...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the json_2_cluster API. 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 json_2_cluster API. 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...
transform json from Ariane server to local object :param json_obj: json from Ariane Server :return: transformed cluster
"transform json from Ariane server to local object\n :param json_obj: json from Ariane Server\n :return: transformed cluster"
303
false
echinopsii/net.echinopsii.ariane.community.cli.python3
json_2_cluster
39,895
LDU_FT/fprimex/zdesk/automation_delete
LDU_FT
[ "<BEGIN>\n## `batch`", "Helper to setup batch requests.", " There are endpoints which support updating multiple resources at once,\n but they are often limited to 100 updates per request.\n This function helps with splitting bigger requests into sequence of\n smaller ones.", " Example:\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the automation_delete API. 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 automation_delete API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
https://developer.zendesk.com/rest_api/docs/core/automations#delete-automation
"https://developer.zendesk.com/rest_api/docs/core/automations#delete-automation"
803
false
fprimex/zdesk
automation_delete
39,896
LDU_FT/pkkid/python-plexapi/groups
LDU_FT
[ "<BEGIN>\n## `registerPlexObject`", "Registry of library types we may come across when parsing XML. This allows us to\n define a few helper functions to dynamically convery the XML into objects. See\n buildItem() below for an example.\n<END>", "<BEGIN>\n## `cast`", "Cast the specified value to t...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the groups API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the groups API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Returns a dict of lists for all :class:`~plexapi.settings.Setting` objects grouped by setting group.
"Returns a dict of lists for all :class:`~plexapi.settings.Setting`\n objects grouped by setting group."
372
false
pkkid/python-plexapi
groups
39,897
LDU_FT/gersolar/stations/append_rows
LDU_FT
[ "<BEGIN>\n## `wrap_around_re`", "Same as wrap_around but works with regular expression based\n wildcards to map which methods are going to be used.\n<END>", "<BEGIN>\n## `_with_wrap`", "with_wrap wraps the execution of method inside given\n generator. When the method is called, the generator is invoked\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the append_rows API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the append_rows API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
Transform the rows of data to Measurements. Keyword arguments: rows -- an array of arrays [datetime, integral_measurement] between -- time between integral_measurements in seconds refresh_presision -- time between sensor values that compose the integral_measurements
"Transform the rows of data to Measurements.\n\n\t\t\tKeyword arguments:\n\t\t\trows -- an array of arrays [datetime, integral_measurement]\n\t\t\tbetween -- time between integral_measurements in seconds\n\t\t\trefresh_presision -- time between sensor values that compose the integral_measurements"
31
false
gersolar/stations
append_rows
39,898
LDU_FT/juju-solutions/charms.reactive/get_local
LDU_FT
[ "<BEGIN>\n## `endpoint_from_name`", "The object used for interacting with the named relations, or None.\n<END>", "<BEGIN>\n## `endpoint_from_flag`", "The object used for interacting with relations tied to a flag, or None.\n<END>", "<BEGIN>\n## `relation_factory`", "Get the RelationFactory for the given re...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_local API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_local API. 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...
Retrieve some data previously set via :meth:`set_local`. In Python, this is equivalent to:: relation.conversation(scope).get_local(key, default) See :meth:`conversation` and :meth:`Conversation.get_local`.
"Retrieve some data previously set via :meth:`set_local`.\n\n In Python, this is equivalent to::\n\n relation.conversation(scope).get_local(key, default)\n\n See :meth:`conversation` and :meth:`Conversation.get_local`."
223
false
juju-solutions/charms.reactive
get_local
39,899
LDU_FT/cpburnz/python-path-specification/match_tree
LDU_FT
[ "<BEGIN>\n## `from_lines`", "Compiles the pattern lines.", "\t\t*pattern_factory* can be either the name of a registered pattern\n\t\tfactory (:class:`str`), or a :class:`~collections.abc.Callable` used\n\t\tto compile patterns. It must accept an uncompiled pattern (:class:`str`)\n\t\tand return the compiled pa...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the match_tree API. 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 match_tree API. 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...
Walks the specified root path for all files and matches them to this path-spec. *root* (:class:`str`) is the root directory to search for files. *on_error* (:class:`~collections.abc.Callable` or :data:`None`) optionally is the error handler for file-system exceptions. See :func:`~pathspec.util.iter_tree` fo...
"Walks the specified root path for all files and matches them to this\n\t\tpath-spec.\n\n\t\t*root* (:class:`str`) is the root directory to search for files.\n\n\t\t*on_error* (:class:`~collections.abc.Callable` or :data:`None`)\n\t\toptionally is the error handler for file-system exceptions. See\n\t\t:func:`~pathspec....
78
false
cpburnz/python-path-specification
match_tree
39,900
LDU_FT/djm/python-scrapyd-api/job_status
LDU_FT
[ "<BEGIN>\n## `_build_url`", "Builds the absolute URL using the target and desired endpoint.\n<END>", "<BEGIN>\n## `add_version`", "Adds a new project egg to the Scrapyd service. First class, maps to\n Scrapyd's add version endpoint.\n<END>", "<BEGIN>\n## `cancel`", "Cancels a job from a specific pr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the job_status API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the job_status API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
Retrieves the 'status' of a specific job specified by its id. Derived, utilises Scrapyd's list jobs endpoint to provide the answer.
"Retrieves the 'status' of a specific job specified by its id. Derived,\n utilises Scrapyd's list jobs endpoint to provide the answer."
26
false
djm/python-scrapyd-api
job_status
39,901
LDU_FT/xolox/python-coloredlogs/format
LDU_FT
[ "<BEGIN>\n## `install`", "Enable colored terminal output for Python's :mod:`logging` module.", " :param level: The default logging level (an integer or a string with a\n level name, defaults to :data:`DEFAULT_LOG_LEVEL`).\n :param logger: The logger to which the stream handler should be a...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the format API. 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 format API. 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 ...
Apply level-specific styling to log records. :param record: A :class:`~logging.LogRecord` object. :returns: The result of :func:`logging.Formatter.format()`. This method injects ANSI escape sequences that are specific to the level of each log record (because such logic cannot be expres...
"Apply level-specific styling to log records.\n\n :param record: A :class:`~logging.LogRecord` object.\n :returns: The result of :func:`logging.Formatter.format()`.\n\n This method injects ANSI escape sequences that are specific to the\n level of each log record (because such logic cannot be...
191
false
xolox/python-coloredlogs
format
39,902
LDU_FT/tBaxter/activity-monitor/show_new_activity
LDU_FT
[ "<BEGIN>\n## `register_app_activity`", "Create watchers for models defined in settings.py.\n Once created, they will be passed over\n Activity.objects.follow_model(), which lives in managers.py\n<END>", "<BEGIN>\n## `save`", "Store a string representation of content_object as target\n and actor n...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the show_new_activity API. 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 show_new_activity API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Inclusion tag to show new activity, either since user was last seen or today (if not last_seen). Note that passing in last_seen is up to you. Usage: {% show_new_activity %} Or, to show since last seen: {% show_new_activity last_seen %} Can also cap the number of items returned. Default is 1000. ...
"Inclusion tag to show new activity,\n either since user was last seen or today (if not last_seen).\n\n Note that passing in last_seen is up to you.\n\n Usage: {% show_new_activity %}\n Or, to show since last seen: {% show_new_activity last_seen %}\n\n Can also cap the number of items returned. Default i...
55
false
tBaxter/activity-monitor
show_new_activity
39,903
LDU_FT/amicks/Speculator/set_long_features
LDU_FT
[ "<BEGIN>\n## `set_targets`", "Sets target market trend for a date", " Args:\n x: Pandas DataFrame of market features\n delta: Positive number defining a price buffer between what is\n classified as a bullish/bearish market for the training set.\n delta is equivalent to the...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_long_features API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_long_features API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Sets features of double the duration Example: Setting 14 day RSIs to longer will create add a feature column of a 28 day RSIs. Args: features: Pandas DataFrame instance with columns as numpy.float32 features. columns_to_set: List of strings of feature names to make ...
"Sets features of double the duration\n\n Example: Setting 14 day RSIs to longer will create add a\n feature column of a 28 day RSIs.\n\n Args:\n features: Pandas DataFrame instance with columns as numpy.float32 features.\n columns_to_set: List of strings of feature names ...
104
false
amicks/Speculator
set_long_features
39,904
LDU_FT/lmjohns3/downhill/shared_like
LDU_FT
[ "<BEGIN>\n## `build`", "Build and return an optimizer for the rosenbrock function.", " In downhill, an optimizer can be constructed using the build() top-level\n function. This function requires several Theano quantities such as the loss\n being optimized and the parameters to update during optimizatio...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the shared_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 extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the shared_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 extra...
Create a Theano shared variable like an existing parameter. Parameters ---------- param : Theano variable Theano variable to use for shape information. suffix : str Suffix to append to the parameter's name for the new variable. init : float or ndarray, optional Initial value...
"Create a Theano shared variable like an existing parameter.\n\n Parameters\n ----------\n param : Theano variable\n Theano variable to use for shape information.\n suffix : str\n Suffix to append to the parameter's name for the new variable.\n init : float or ndarray, optional\n Ini...
79
false
lmjohns3/downhill
shared_like
39,905
LDU_FT/MeaningCloud/meaningcloud-python/getLemmatization
LDU_FT
[ "<BEGIN>\n## `getStatusCode`", "Returns the code of the status or None if it does not exist", " :return:\n Status code of the response\n<END>", "<BEGIN>\n## `getStatusMsg`", "Returns the message of the status or an empty string if it does not exist", " :return:\n Status...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the getLemmatization API. 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 getLemmatization API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
This function obtains the lemmas and PoS for the text sent :param fullPOSTag: Set to true to obtain the complete PoS tag :return: Dictionary of tokens from the syntactic tree with their lemmas and PoS
"This function obtains the lemmas and PoS for the text sent\n\n :param fullPOSTag:\n Set to true to obtain the complete PoS tag\n :return:\n Dictionary of tokens from the syntactic tree with their lemmas and PoS"
30
false
MeaningCloud/meaningcloud-python
getLemmatization
39,906
LDU_FT/django-fluent/django-fluent-dashboard/get_recent_actions_module
LDU_FT
[ "<BEGIN>\n## `init_with_context`", "Find the current URL based on the context.\n It uses :func:`get_edited_object` to find the model,\n and calls ``get_absolute_url()`` to get the frontend URL.\n<END>", "<BEGIN>\n## `get_edited_object`", "Return the object which is currently being edited.\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_recent_actions_module 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 get_recent_actions_module API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi...
Instantiate the :class:`~admin_tools.dashboard.modules.RecentActions` module for use in the appliation index page.
"Instantiate the :class:`~admin_tools.dashboard.modules.RecentActions` module\n for use in the appliation index page."
28
false
django-fluent/django-fluent-dashboard
get_recent_actions_module
39,907
LDU_FT/dbader/schedule/_schedule_next_run
LDU_FT
[ "<BEGIN>\n## `run_pending`", "Run all jobs that are scheduled to run.", " Please note that it is *intended behavior that run_pending()\n does not run missed jobs*. For example, if you've registered a job\n that should run every minute and you only call run_pending()\n in one hour inc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _schedule_next_run API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _schedule_next_run API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
Compute the instant when this job should run next.
"Compute the instant when this job should run next."
26
false
dbader/schedule
_schedule_next_run
39,908
LDU_FT/JinnLynn/genpac/privatesuffix
LDU_FT
[ "<BEGIN>\n## `set_default_proxy`", "set_default_proxy(proxy_type, addr[, port[, rdns[, username, password]]])", " Sets a default proxy which all further socksocket objects will use,\n unless explicitly changed. All parameters are as for socket.set_proxy().\n<END>", "<BEGIN>\n## `create_connection`", "...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the privatesuffix API. 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 privatesuffix API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
Return shortest suffix assigned for an individual. domain: str or unicode to parse. (Required) accept_unknown: bool, assume unknown TLDs to be public suffix. (Default: object default) Return None if domain has invalid format. Return None if domain has no private part.
"Return shortest suffix assigned for an individual.\n\n domain: str or unicode to parse. (Required)\n accept_unknown: bool, assume unknown TLDs to be public suffix. (Default: object default)\n\n Return None if domain has invalid format.\n Return None if domain has no private part."
41
false
JinnLynn/genpac
privatesuffix
39,909
LDU_FT/nugget/python-insteonplm/byte_to_housecode
LDU_FT
[ "<BEGIN>\n## `data_received`", "Receive data from the protocol.", " Called when asyncio.Protocol detects received data from network.\n<END>", "<BEGIN>\n## `connection_lost`", "Reestablish the connection to the transport.", " Called when asyncio.Protocol loses the network connection.\n<END>",...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the byte_to_housecode API. 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 byte_to_housecode API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Return an X10 housecode value from a byte value.
"Return an X10 housecode value from a byte value."
375
false
nugget/python-insteonplm
byte_to_housecode
39,910
LDU_FT/salesking/salesking_python_sdk/request
LDU_FT
[ "<BEGIN>\n## `get_model_class`", "Generates the Model Class based on the klass \n loads automatically the corresponding json schema file form schemes folder\n :param klass: json schema filename\n :param use_request_api: if True autoinitializes request class if api is None\n :param api: the transportat...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the request API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the request API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
public method for doing the live request
"public method for doing the live request"
69
false
salesking/salesking_python_sdk
request
39,911
LDU_FT/aws/aws-xray-sdk-python/applies
LDU_FT
[ "<BEGIN>\n## `middleware`", "Main middleware function, deals with all the X-Ray segment logic\n<END>", "<BEGIN>\n## `patch`", "patch the built-in `urllib/httplib/httplib.client` methods for tracing.\n<END>", "<BEGIN>\n## `unpatch`", "Unpatch any previously patched modules.\n This operation is idempoten...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the applies API. 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 applies API. 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...
Determines whether or not this sampling rule applies to the incoming request based on some of the request's parameters. Any None parameters provided will be considered an implicit match.
"Determines whether or not this sampling rule applies to\n the incoming request based on some of the request's parameters.\n Any None parameters provided will be considered an implicit match."
198
false
aws/aws-xray-sdk-python
applies
39,912
LDU_FT/MartinThoma/hwrt/_write_data
LDU_FT
[ "<BEGIN>\n## `classify_segmented_recording`", "Use this function if you are sure you have a single symbol.", " Parameters\n ----------\n recording : string\n The recording in JSON format", " Returns\n -------\n list of dictionaries\n Each dictionary contains the keys 'symbol' a...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _write_data API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _write_data API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
Write all obtained data to a file. Parameters ---------- symbols : list of tuples (String, non-negative int) List of all symbols with the count of recordings err_recs : dictionary count of recordings by error type nr_recordings : non-negative int ...
"Write all obtained data to a file.\n\n Parameters\n ----------\n symbols : list of tuples (String, non-negative int)\n List of all symbols with the count of recordings\n err_recs : dictionary\n count of recordings by error type\n nr_recordings : non-negative int...
558
false
MartinThoma/hwrt
_write_data
39,913
LDU_FT/Crypto-toolbox/bitex/_handle_unsubscribed
LDU_FT
[ "<BEGIN>\n## `_restart_thread`", "Restarts subscription threads if their connection drops.\n :return:\n<END>", "<BEGIN>\n## `_subscription_thread`", "Thread Method, running the connection for each endpoint.\n :param endpoint:\n :return:\n<END>", "<BEGIN>\n## `start`", "Starts threads....
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _handle_unsubscribed 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 _handle_unsubscribed API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Handles responses to unsubscribe() commands - removes a channel id from the client. :param chanId: int, represent channel id as assigned by server
"Handles responses to unsubscribe() commands - removes a channel id from\n the client.\n :param chanId: int, represent channel id as assigned by server"
79
false
Crypto-toolbox/bitex
_handle_unsubscribed
39,914
LDU_FT/danijar/sets/download
LDU_FT
[ "<BEGIN>\n## `disk_cache`", "Cache the return value in the correct cache directory. Set 'method' to\n false for static methods.\n<END>", "<BEGIN>\n## `download`", "Download a file into the correct cache directory.\n<END>", "<BEGIN>\n## `directory`", "Path that should be used for caching. Different ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the download API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the download API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
Download a file into the correct cache directory.
"Download a file into the correct cache directory."
12
false
danijar/sets
download
39,915
LDU_FT/leancloud/python-sdk/add
LDU_FT
[ "<BEGIN>\n## `become`", "通过 session token 获取用户对象", " :param session_token: 用户的 session token\n :return: leancloud.User\n<END>", "<BEGIN>\n## `sign_up`", "创建一个新用户。新创建的 User 对象,应该使用此方法来将数据保存至服务器,而不是使用 save 方法。\n 用户对象上必须包含 username 和 password 两个字段\n<END>", "<BEGIN>\n## `login`", "登陆用户。...
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...
在对象此字段对应的数组末尾添加指定对象。 :param attr: 字段名 :param item: 要添加的对象 :return: 当前对象
"在对象此字段对应的数组末尾添加指定对象。\n\n :param attr: 字段名\n :param item: 要添加的对象\n :return: 当前对象"
161
false
leancloud/python-sdk
add
39,916
LDU_FT/mozilla-releng/signtool/parse_cmdln_opts
LDU_FT
[ "<BEGIN>\n## `uploadfile`", "Uploads file (given by `filename`) to server at `baseurl`.", " `sesson_key` and `nonce` are string values that get passed as POST\n parameters.\n<END>", "<BEGIN>\n## `is_authenticode_signed`", "Returns True if the file is signed with authenticode\n<END>", "<BEGIN>\n## `p...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_cmdln_opts API. 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 parse_cmdln_opts API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Rather than have this all clutter main(), let's split this out. Clean arch decision: rather than parsing sys.argv directly, pass sys.argv[1:] to this function (or any iterable for testing.)
"Rather than have this all clutter main(), let's split this out.\n Clean arch decision: rather than parsing sys.argv directly, pass\n sys.argv[1:] to this function (or any iterable for testing.)"
34
false
mozilla-releng/signtool
parse_cmdln_opts
39,917
LDU_FT/avihad/twistes/parse_host
LDU_FT
[ "<BEGIN>\n## `expand_action`", "From one document or action definition passed in by the user extract the\n action/data lines needed for elasticsearch's\n :meth:`~elasticsearch.Elasticsearch.bulk` api.\n :return es format to bulk doc\n<END>", "<BEGIN>\n## `bulk`", "Helper for the :meth:`~e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_host API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_host API. 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...
Parsing the hosts parameter, * currently support only one host :param hosts: the hosts json to parse :return: the full host and the authentication if exists
"Parsing the hosts parameter,\n * currently support only one host\n :param hosts: the hosts json to parse\n :return: the full host and the authentication if exists"
78
false
avihad/twistes
parse_host
39,918
LDU_FT/asifpy/django-crudbuilder/mixedToUnder
LDU_FT
[ "<BEGIN>\n## `extract_args`", "Takes any arguments like a model and crud, or just one of\n those, in any order, and return a model and crud.\n<END>", "<BEGIN>\n## `register`", "Register a crud.", " Two unordered arguments are accepted, at least one should be passed:\n - a model,\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the mixedToUnder API. 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 mixedToUnder API. 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...
Sample: >>> mixedToUnder("FooBarBaz") 'foo_bar_baz' Special case for ID: >>> mixedToUnder("FooBarID") 'foo_bar_id'
"Sample:\n >>> mixedToUnder(\"FooBarBaz\")\n 'foo_bar_baz'\n\n Special case for ID:\n >>> mixedToUnder(\"FooBarID\")\n 'foo_bar_id'"
31
false
asifpy/django-crudbuilder
mixedToUnder
39,919
LDU_FT/pschmitt/pykeepass/decrypt
LDU_FT
[ "<BEGIN>\n## `compute_transformed`", "Compute transformed key for opening database\n<END>", "<BEGIN>\n## `compute_header_hmac_hash`", "Compute HMAC-SHA256 hash of header.\n Used to prevent header tampering.\n<END>", "<BEGIN>\n## `compute_payload_block_hash`", "Compute hash of each payload block.\n U...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the decrypt API. 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 decrypt API. 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...
Decrypt some ciphertext ciphertext = a string of binary data n = the 'tweak' value when the chaining mode is XTS The decrypt function will decrypt the supplied ciphertext. The behavior varies slightly depending on the chaining mode. ECB, CBC: -------...
"Decrypt some ciphertext\n\n ciphertext = a string of binary data\n n = the 'tweak' value when the chaining mode is XTS\n\n The decrypt function will decrypt the supplied ciphertext.\n The behavior varies slightly depending on the chaining mode.\n\n ECB, CBC:\n ...
46
false
pschmitt/pykeepass
decrypt
39,920
LDU_FT/moonso/vcftoolbox/get_vep_info
LDU_FT
[ "<BEGIN>\n## `get_vcf_header`", "Get the header lines of a vcf file", " Args:\n source(iterable): A vcf file", " Returns:\n head (HeaderParser): A headerparser object\n<END>", "<BEGIN>\n## `get_variant_dict`", "Parse a variant line", " Split a variant line and ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_vep_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 extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_vep_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 extr...
Make the vep annotations into a dictionaries A vep dictionary will have the vep column names as keys and the vep annotations as values. The dictionaries are stored in a list Args: vep_string (string): A string with the CSQ annotation vep_header (list): A li...
"Make the vep annotations into a dictionaries\n \n A vep dictionary will have the vep column names as keys and \n the vep annotations as values.\n The dictionaries are stored in a list\n\n Args:\n vep_string (string): A string with the CSQ annotation\n vep_header (li...
81
false
moonso/vcftoolbox
get_vep_info
39,921
LDU_FT/radjkarl/fancyWidgets/limitsChanged
LDU_FT
[ "<BEGIN>\n## `contextMenuEvent`", "Add menu action:\n * 'Show line numbers'\n * 'Save to file'\n<END>", "<BEGIN>\n## `contextMenuEvent`", "Add menu action:\n * 'Show line numbers'\n * 'Save to file'\n<END>", "<BEGIN>\n## `findMenu`", "find a menu with a given title", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the limitsChanged API. 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 limitsChanged API. 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...
Called when the parameter's limits have changed
"Called when the parameter's limits have changed"
48
false
radjkarl/fancyWidgets
limitsChanged
39,922
LDU_FT/alexmojaki/littleutils/strip_optional_prefix
LDU_FT
[ "<BEGIN>\n## `helpful_error_list_get`", ">>> helpful_error_list_get([1, 2, 3], 1)\n 2\n >>> helpful_error_list_get([1, 2, 3], 4)\n Traceback (most recent call last):\n ...\n IndexError: Tried to access 4, length is only 3\n<END>", "<BEGIN>\n## `only`", ">>> only([7])\n 7\n >>> only([1, 2]...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the strip_optional_prefix 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 strip_optional_prefix API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
>>> strip_optional_prefix('abcdef', 'abc') 'def' >>> strip_optional_prefix('abcdef', '123') 'abcdef' >>> strip_optional_prefix('abcdef', '123', PrintingLogger()) String starts with 'abc', not '123' 'abcdef'
">>> strip_optional_prefix('abcdef', 'abc')\n 'def'\n >>> strip_optional_prefix('abcdef', '123')\n 'abcdef'\n >>> strip_optional_prefix('abcdef', '123', PrintingLogger())\n String starts with 'abc', not '123'\n 'abcdef'"
34
false
alexmojaki/littleutils
strip_optional_prefix
39,923
LDU_FT/CamDavidsonPilon/lifetimes/fit
LDU_FT
[ "<BEGIN>\n## `fit`", "Pareto/NBD model fitter.", " Parameters\n ----------\n frequency: array_like\n the frequency vector of customers' purchases\n (denoted x in literature).\n recency: array_like\n the recency vector of customers' purchases\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the fit API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the fit API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
Fit a dataset to the BG/NBD model. Parameters ---------- frequency: array_like the frequency vector of customers' purchases (denoted x in literature). recency: array_like the recency vector of customers' purchases (denoted t_x in literatur...
"Fit a dataset to the BG/NBD model.\n\n Parameters\n ----------\n frequency: array_like\n the frequency vector of customers' purchases\n (denoted x in literature).\n recency: array_like\n the recency vector of customers' purchases\n (denoted t_x in...
232
false
CamDavidsonPilon/lifetimes
fit
39,924
LDU_FT/soynatan/django-easy-audit/prettify_json
LDU_FT
[ "<BEGIN>\n## `prettify_json`", "Given a JSON string, it returns it as a\n safe formatted HTML\n<END>", "<BEGIN>\n## `purge_objects`", "Removes all objects in this table.\n This action first displays a confirmation page;\n next, it deletes all objects and redirects back to the change list.\n<E...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the prettify_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 ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the prettify_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 ext...
Given a JSON string, it returns it as a safe formatted HTML
"Given a JSON string, it returns it as a\n safe formatted HTML"
21
false
soynatan/django-easy-audit
prettify_json
39,925
LDU_FT/elehcimd/pynb/add
LDU_FT
[ "<BEGIN>\n## `get_func`", "Get function from module\n :param func_name: function name\n :param module_pathname: pathname to module\n :return:\n<END>", "<BEGIN>\n## `cell_hash`", "Compute cell hash based on cell index and cell content\n :param cell: cell to be hashed\n :param cell_index...
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...
Parse func's function source code as Python and Markdown cells. :param func: Python function to parse :param kwargs: variables to inject as first Python cell :return:
"Parse func's function source code as Python and Markdown cells.\n :param func: Python function to parse\n :param kwargs: variables to inject as first Python cell\n :return:"
39
false
elehcimd/pynb
add
39,926
LDU_FT/ultradns/python_rest_api_client/create_primary_zone_by_axfr
LDU_FT
[ "<BEGIN>\n## `create_primary_zone`", "Creates a new primary zone.", " Arguments:\n account_name -- The name of the account that will contain this zone.\n zone_name -- The name of the zone. It must be unique.\n<END>", "<BEGIN>\n## `create_primary_zone_by_upload`", "Creates a new primary...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_primary_zone_by_axfr 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 create_primary_zone_by_axfr API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclu...
Creates a new primary zone by zone transferring off a master. Arguments: account_name -- The name of the account that will contain this zone. zone_name -- The name of the zone. It must be unique. master -- Primary name server IP address. Keyword Arguments: tsig_key -- ...
"Creates a new primary zone by zone transferring off a master.\n\n Arguments:\n account_name -- The name of the account that will contain this zone.\n zone_name -- The name of the zone. It must be unique.\n master -- Primary name server IP address.\n\n Keyword Arguments:\n tsi...
69
false
ultradns/python_rest_api_client
create_primary_zone_by_axfr
39,927
LDU_FT/jleclanche/fireplace/evaluate
LDU_FT
[ "<BEGIN>\n## `get_spell_damage`", "Returns the amount of damage \\a amount will do, taking\n\t\tSPELLPOWER and SPELLPOWER_DOUBLE into account.\n<END>", "<BEGIN>\n## `can_pay_cost`", "Returns whether the player can pay the resource cost of a card.\n<END>", "<BEGIN>\n## `pay_cost`", "Make player pay \\a amo...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the evaluate API. 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 evaluate API. 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...
Evaluates the board state from `source` and returns an iterable of Actions as a result.
"Evaluates the board state from `source` and returns an iterable of\n\t\tActions as a result."
52
false
jleclanche/fireplace
evaluate
39,928
LDU_FT/adobe-apiplatform/umapi-client.py/execute_multiple
LDU_FT
[ "<BEGIN>\n## `status`", "Return the connection status, both locally and remotely.", " The local connection status is a dictionary that gives:\n * the count of multiple queries sent to the server.\n * the count of single queries sent to the server.\n * the count of actions sent to the...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the execute_multiple API. 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 execute_multiple API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Execute multiple Actions (each containing commands on a single object). Normally, the actions are sent for execution immediately (possibly preceded by earlier queued commands), but if you are going for maximum efficiency you can set immeediate=False which will cause the connection to wait ...
"Execute multiple Actions (each containing commands on a single object).\n Normally, the actions are sent for execution immediately (possibly preceded\n by earlier queued commands), but if you are going for maximum efficiency\n you can set immeediate=False which will cause the connection to wait\n ...
78
false
adobe-apiplatform/umapi-client.py
execute_multiple
39,929
LDU_FT/tisimst/pyDOE/lhs
LDU_FT
[ "<BEGIN>\n## `pbdesign`", "Generate a Plackett-Burman design\r", " Parameter\r\n ---------\r\n n : int\r\n The number of factors to create a matrix for.\r", " Returns\r\n -------\r\n H : 2d-array\r\n An orthogonal design matrix with n columns, one for each factor, and\r\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the lhs API. 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 lhs API. 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...
Generate a latin-hypercube design Parameters ---------- n : int The number of factors to generate samples for Optional -------- samples : int The number of samples to generate for each factor (Default: n) criterion : str Allowable values are "cen...
"Generate a latin-hypercube design\r\n \r\n Parameters\r\n ----------\r\n n : int\r\n The number of factors to generate samples for\r\n \r\n Optional\r\n --------\r\n samples : int\r\n The number of samples to generate for each factor (Default: n)\r\n criterion : str\r\n ...
96
false
tisimst/pyDOE
lhs
39,930
LDU_FT/sdispater/orator/left_join_where
LDU_FT
[ "<BEGIN>\n## `construct`", "Create a new factory container.", " :param faker: A faker generator instance\n :type faker: faker.Generator", " :param path_to_factories: The path to factories\n :type path_to_factories: str", " :rtype: Factory\n<END>", "<BEGIN>\n## `define`",...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the left_join_where API. 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 left_join_where API. 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...
Add a "left join where" clause to the query :param table: The table to join with, can also be a JoinClause instance :type table: str or JoinClause :param one: The first column of the join condition :type one: str :param operator: The operator of the join condition :typ...
"Add a \"left join where\" clause to the query\n\n :param table: The table to join with, can also be a JoinClause instance\n :type table: str or JoinClause\n\n :param one: The first column of the join condition\n :type one: str\n\n :param operator: The operator of the join condition\n...
1,212
true
sdispater/orator
left_join_where
39,931
LDU_FT/projectatomic/atomic-reactor/base_image_inspect
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 base_image_inspect 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 base_image_inspect 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...
inspect base image :return: dict
"inspect base image\n\n :return: dict"
440
false
projectatomic/atomic-reactor
base_image_inspect
39,932
LDU_FT/rongcloud/server-sdk-python/call_api
LDU_FT
[ "<BEGIN>\n## `getToken`", "获取 Token 方法 方法\n @param userId:用户 Id,最大长度 64 字节.是用户在 App 中的唯一标识码,必须保证在同一个 App 内不重复,重复的用户 Id 将被当作是同一用户。(必传)\n @param name:用户名称,最大长度 128 字节.用来在 Push 推送时显示用户的名称.用户名称,最大长度 128 字节.用来在 Push 推送时显示用户的名称。(必传)\n @param portraitUri:用户头像 URI,最大长度 1024 字节.用来在 Push 推送时显示用户的头像。...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the call_api API. 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 call_api API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
:param method: methodName :param action: MethodUrl, :param params: Dictionary,form params for api. :param timeout: (optional) Float describing the timeout of the request. :return:
":param method: methodName\n :param action: MethodUrl,\n :param params: Dictionary,form params for api.\n :param timeout: (optional) Float describing the timeout of the request.\n :return:"
93
false
rongcloud/server-sdk-python
call_api
39,933
LDU_FT/mcs07/CIRpy/request
LDU_FT
[ "<BEGIN>\n## `construct_api_url`", "Return the URL for the desired API endpoint.", " :param string input: Chemical identifier to resolve\n :param string representation: Desired output representation\n :param list(str) resolvers: (Optional) Ordered list of resolvers to use\n :param bool get3d: (Optio...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the request API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the request API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
Make a request to CIR and return the XML response. :param string input: Chemical identifier to resolve :param string representation: Desired output representation :param list(string) resolvers: (Optional) Ordered list of resolvers to use :param bool get3d: (Optional) Whether to return 3D coordinates (w...
"Make a request to CIR and return the XML response.\n\n :param string input: Chemical identifier to resolve\n :param string representation: Desired output representation\n :param list(string) resolvers: (Optional) Ordered list of resolvers to use\n :param bool get3d: (Optional) Whether to return 3D coordina...
26
false
mcs07/CIRpy
request
39,934
LDU_FT/opendatateam/udata/pre_validate
LDU_FT
[ "<BEGIN>\n## `save`", "PeriodicTask is dynamic and save behavior changed\n See: https://github.com/zakird/celerybeat-mongo/commit/dfbbd20edde91134b57f5406d0ce4eac59d6899b\n<END>", "<BEGIN>\n## `has_manifest`", "Verify the existance of a JSON assets manifest\n<END>", "<BEGIN>\n## `from_manifest`", "...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the pre_validate API. 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 pre_validate API. 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...
Calls preprocessors before pre_validation
"Calls preprocessors before pre_validation"
476
false
opendatateam/udata
pre_validate
39,935
LDU_FT/sveetch/py-css-styleguide/to_json
LDU_FT
[ "<BEGIN>\n## `digest_prelude`", "Walk on rule prelude (aka CSS selector) tokens to return a string of\n the value name (from css selector).", " Actually only simple selector and selector with descendant combinator\n are supported. Using any other selector kind may leads to unexpected\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the to_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 extracted...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the to_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 extracted...
Serialize metas and reference attributes to a JSON string. Keyword Arguments: indent (int): Space indentation, default to ``4``. Returns: string: JSON datas.
"Serialize metas and reference attributes to a JSON string.\n\n Keyword Arguments:\n indent (int): Space indentation, default to ``4``.\n\n Returns:\n string: JSON datas."
98
false
sveetch/py-css-styleguide
to_json
39,936
LDU_FT/fabric-bolt/fabric-bolt/form_valid
LDU_FT
[ "<BEGIN>\n## `form_valid`", "After the form is valid lets let people know\n<END>", "<BEGIN>\n## `form_valid`", "First call the parent's form valid then let the user know it worked.\n<END>", "<BEGIN>\n## `post`", "Create the SSH file & then return the normal get method...\n<END>", "<BEGIN>\n## `web_hooks...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the form_valid API. 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 form_valid API. 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...
After the form is valid lets let people know
"After the form is valid lets let people know"
65
false
fabric-bolt/fabric-bolt
form_valid
39,937
LDU_FT/Genida/archan/validate_categories_equal_entities
LDU_FT
[ "<BEGIN>\n## `validate_rows_length`", "Validate that all rows have the same length.\n<END>", "<BEGIN>\n## `validate_square`", "Validate that the matrix has equal number of rows and columns.\n<END>", "<BEGIN>\n## `validate_categories_equal_entities`", "Validate that the matrix has equal number of entities ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the validate_categories_equal_entities API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the validate_categories_equal_entities API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its...
Validate that the matrix has equal number of entities and categories.
"Validate that the matrix has equal number of entities and categories."
127
false
Genida/archan
validate_categories_equal_entities
39,938
LDU_FT/tcpcloud/python-aptly/parse_package_ref
LDU_FT
[ "<BEGIN>\n## `_publish_match`", "Check if publish name matches list of names or regex patterns\n<END>", "<BEGIN>\n## `get_repo_information`", "fill two dictionnaries : one containing all the packages for every repository\n and the second one associating to every component of every publish its repos...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_package_ref API. 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 parse_package_ref API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Return tuple of architecture, package_name, version, id
"Return tuple of architecture, package_name, version, id"
18
false
tcpcloud/python-aptly
parse_package_ref
39,939
LDU_FT/agile-geoscience/welly/list_and_add
LDU_FT
[ "<BEGIN>\n## `sharey`", "Shared axes limits without shared locators, ticks, etc.", " By Joe Kington\n<END>", "<BEGIN>\n## `fix_ticks`", "Center ticklabels and hide any outside axes limits.", " By Joe Kington\n<END>", "<BEGIN>\n## `flatten_list`", "Unpacks lists in a list:", " [1, 2, [3,...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the list_and_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 extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the list_and_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 extr...
Concatenate anything into a list. Args: a: the first thing b: the second thing Returns: list. All the things in a list.
"Concatenate anything into a list.\n\n Args:\n a: the first thing\n b: the second thing\n\n Returns:\n list. All the things in a list."
325
false
agile-geoscience/welly
list_and_add
39,940
LDU_FT/chrisjsewell/jsonextended/colortxt
LDU_FT
[ "<BEGIN>\n## `apply_unitschema`", "apply the unit schema to the data", " Parameters\n ----------\n data : dict\n uschema : dict\n units schema to apply\n as_quantity : bool\n if true, return values as pint.Quantity objects\n raise_outerr : bool\n raise error if a unit cann...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the colortxt API. 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 colortxt API. 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...
Colorize text. Available text colors: red, green, yellow, blue, magenta, cyan, white. Available text highlights: on_red, on_green, on_yellow, on_blue, on_magenta, on_cyan, on_white. Available attributes: bold, dark, underline, blink, reverse, concealed. Examples -------- ...
"Colorize text.\n\n Available text colors:\n red, green, yellow, blue, magenta, cyan, white.\n\n Available text highlights:\n on_red, on_green, on_yellow, on_blue, on_magenta, on_cyan, on_white.\n\n Available attributes:\n bold, dark, underline, blink, reverse, concealed.\n\n Examples\n...
347
false
chrisjsewell/jsonextended
colortxt
39,941
LDU_FT/jumpscale7/python-consistent-toml/_append_to_parent
LDU_FT
[ "<BEGIN>\n## `peek`", "Returns PeekableIterator.Nothing when the iterator is exhausted.\n<END>", "<BEGIN>\n## `_append_to_parent`", "Causes this ephemeral table to be persisted on the TOMLFile.\n<END>", "<BEGIN>\n## `structure`", "Accepts an ordered sequence of TopLevel instances and returns a navigable o...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _append_to_parent API. 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 _append_to_parent API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Causes this ephemeral table to be persisted on the TOMLFile.
"Causes this ephemeral table to be persisted on the TOMLFile."
43
false
jumpscale7/python-consistent-toml
_append_to_parent
39,942
LDU_FT/digidotcom/python-devicecloud/provision_devices
LDU_FT
[ "<BEGIN>\n## `_parse_command_response`", "Parse an SCI command response into ElementTree XML", " This is a helper method that takes a Requests Response object\n of an SCI command response and will parse it into an ElementTree Element\n representing the root of the XML response.", " :param response...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the provision_devices API. 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 provision_devices API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Provision multiple devices with a single API call This method takes an iterable of dictionaries where the values in the dictionary are expected to match the arguments of a call to :meth:`provision_device`. The contents of each dictionary will be validated. :param list devices: An iter...
"Provision multiple devices with a single API call\n\n This method takes an iterable of dictionaries where the values in the dictionary are\n expected to match the arguments of a call to :meth:`provision_device`. The\n contents of each dictionary will be validated.\n\n :param list devices: ...
366
false
digidotcom/python-devicecloud
provision_devices
39,943
LDU_FT/TheHive-Project/Cortex-Analyzers/get_file
LDU_FT
[ "<BEGIN>\n## `auth_string`", "Authenticate based on username and token which is base64-encoded\n<END>", "<BEGIN>\n## `api_related`", "Find related objects through SoltraEdge API\n<END>", "<BEGIN>\n## `tlp_classifiers`", "Classifier between Cortex and Soltra.\n Soltra uses name-TLP, and Cortex \"val...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_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 extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_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 extracte...
Get the scan results for a file. Even if you do not have a Private Mass API key that you can use, you can still download files from the VirusTotal storage making use of your VirusTotal Intelligence quota, i.e. programmatic downloads will also deduct quota. :param file_hash: You may use...
"Get the scan results for a file.\n\n Even if you do not have a Private Mass API key that you can use, you can still download files from the\n VirusTotal storage making use of your VirusTotal Intelligence quota, i.e. programmatic downloads will\n also deduct quota.\n\n :param file_hash: You ...
328
false
TheHive-Project/Cortex-Analyzers
get_file
39,944
LDU_FT/kajala/django-jutil/get_last_day_of_month
LDU_FT
[ "<BEGIN>\n## `se_iban_load_map`", "Loads Swedish monetary institution codes in CSV format.\n :param filename: CSV file name of the BIC definitions.\n Columns: Institution Name, Range Begin-Range End (inclusive), Account digits count\n :return: List of (bank name, clearing code begin, clearing code end, a...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_last_day_of_month 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_last_day_of_month API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Returns day number of the last day of the month :param t: datetime :return: int
"Returns day number of the last day of the month\n :param t: datetime\n :return: int"
110
false
kajala/django-jutil
get_last_day_of_month
39,945
LDU_FT/cmap/cmapPy/build_common_all_meta_df
LDU_FT
[ "<BEGIN>\n## `subset_main`", "Separate method from main() in order to make testing easier and to\n enable command-line access.\n<END>", "<BEGIN>\n## `_read_arg`", "If arg is a list with 1 element that corresponds to a valid file path, use\n set_io.grp to read the grp file. Otherwise, check that arg is a...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the build_common_all_meta_df 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 build_common_all_meta_df API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio...
concatenate the entries in common_meta_dfs, removing columns selectively (fields_to_remove) or entirely ( remove_all_metadata_fields=True; in this case, effectively just merges all the indexes in common_meta_dfs). Returns 2 dataframes (in a tuple): the first has duplicates removed, the second does not...
"concatenate the entries in common_meta_dfs, removing columns selectively (fields_to_remove) or entirely (\n remove_all_metadata_fields=True; in this case, effectively just merges all the indexes in common_meta_dfs).\n\n Returns 2 dataframes (in a tuple): the first has duplicates removed, the second does...
210
false
cmap/cmapPy
build_common_all_meta_df
39,946
LDU_FT/Karaage-Cluster/python-tldap/_process
LDU_FT
[ "<BEGIN>\n## `check_password`", "Check a plaintext password against a hashed password.\n<END>", "<BEGIN>\n## `reset`", "Reset transaction back to original state, discarding all\n uncompleted transactions.\n<END>", "<BEGIN>\n## `_cache_get_for_dn`", "Object state is cached. When an update is require...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _process API. 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 _process API. 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...
Process action. oncommit is a callback to execute action, onrollback is a callback to execute if the oncommit() has been called and a rollback is required
"Process action. oncommit is a callback to execute action, onrollback is\n a callback to execute if the oncommit() has been called and a rollback\n is required"
151
false
Karaage-Cluster/python-tldap
_process
39,947
LDU_FT/pymoca/pymoca/der
LDU_FT
[ "<BEGIN>\n## `call`", "Convenience method for calling methods with walker.\n<END>", "<BEGIN>\n## `der`", "Get the derivative of the variable, create it if it doesn't exist.\n<END>", "<BEGIN>\n## `log`", "Convenience function for printing indenting debug output.\n<END>", "<BEGIN>\n## `flatten_component_r...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the der API. 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 der API. 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 the derivative of the variable, create it if it doesn't exist.
"Get the derivative of the variable, create it if it doesn't exist."
61
false
pymoca/pymoca
der
39,948
LDU_FT/mrcagney/gtfsrtk/build_augmented_stop_times
LDU_FT
[ "<BEGIN>\n## `read_gtfsr`", "Given a path (string or Path object) to a GTFSR feed file,\n return the corresponding GTFS feed (FeedMessage instance).\n If ``from_json``, then assume the feed file is in JSON format;\n otherwise, assume the feed file is in Protocol Buffer format.\n<END>", "<BEGIN>\n## `wr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the build_augmented_stop_times 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 build_augmented_stop_times API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclus...
Given a list of GTFSR feeds (FeedMessage instances), a GTFS feed (GTFSTK Feed instance), and a date (YYYYMMDD string), return a DataFrame of GTFS stop times for trips scheduled on the given date and containing two extra columns, ``'arrival_delay'`` and ``'departure_delay'``, which are delay values in se...
"Given a list of GTFSR feeds (FeedMessage instances), a GTFS feed\n (GTFSTK Feed instance), and a date (YYYYMMDD string), return\n a DataFrame of GTFS stop times for trips scheduled on the given date\n and containing two extra columns, ``'arrival_delay'`` and\n ``'departure_delay'``, which are delay values ...
23
false
mrcagney/gtfsrtk
build_augmented_stop_times
39,949
LDU_FT/jonhadfield/python-hosts/get_entry_type
LDU_FT
[ "<BEGIN>\n## `get_entry_type`", "Return the type of entry for the line of hosts file passed\n :param hosts_entry: A line from the hosts file\n :return: 'comment' | 'blank' | 'ipv4' | 'ipv6'\n<END>", "<BEGIN>\n## `str_to_hostentry`", "Transform a line from a hosts file into an instance of HostsEn...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_entry_type API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_entry_type API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
Return the type of entry for the line of hosts file passed :param hosts_entry: A line from the hosts file :return: 'comment' | 'blank' | 'ipv4' | 'ipv6'
"Return the type of entry for the line of hosts file passed\n :param hosts_entry: A line from the hosts file\n :return: 'comment' | 'blank' | 'ipv4' | 'ipv6'"
28
false
jonhadfield/python-hosts
get_entry_type
39,950
LDU_FT/PrefPy/prefpy/getCandScoresMap
LDU_FT
[ "<BEGIN>\n## `mse`", "Description:\r\n Calculates the Mean Squared Error (MSE) of\r\n an estimation on flat numpy ndarrays.\r\n Parameters:\r\n mean: actual value (numpy ndarray)\r\n estimator: estimated value of the mean (numpy ndarray)\n<END>", "<BEGIN>\n## `sse`", "Descr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the getCandScoresMap API. 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 getCandScoresMap API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Returns a dictionary that associates integer representations of each candidate with their Bucklin score. :ivar Profile profile: A Profile object that represents an election profile.
"Returns a dictionary that associates integer representations of each candidate with their\n Bucklin score.\n\n :ivar Profile profile: A Profile object that represents an election profile."
316
false
PrefPy/prefpy
getCandScoresMap
39,951
LDU_FT/ergo/ziggurat_foundations/check_node_parent
LDU_FT
[ "<BEGIN>\n## `run_migrations_offline`", "Run migrations in 'offline' mode.", " This configures the context with just a URL\n and not an Engine, though an Engine is acceptable\n here as well. By skipping the Engine creation\n we don't even need a DBAPI to be available.", " Calls to context.exec...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the check_node_parent API. 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 check_node_parent API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Checks if parent destination is valid for node :param resource_id: :param new_parent_id: :param db_session: :return:
"Checks if parent destination is valid for node\n\n :param resource_id:\n :param new_parent_id:\n :param db_session:\n :return:"
229
false
ergo/ziggurat_foundations
check_node_parent
39,952
LDU_FT/Genida/dependenpy/get
LDU_FT
[ "<BEGIN>\n## `cast`", "Cast a set of keys and an array to a Matrix object.\n<END>", "<BEGIN>\n## `connect_to`", "Connect this vertex to another one.", " Args:\n vertex (Vertex): vertex to connect to.\n weight (int): weight of the edge.", " Returns:\n Edge: th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the 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 item through ``__getitem__`` and cache the result. Args: item (str): name of package or module. Returns: Package/Module: the corresponding object.
"Get item through ``__getitem__`` and cache the result.\n\n Args:\n item (str): name of package or module.\n\n Returns:\n Package/Module: the corresponding object."
130
false
Genida/dependenpy
get
39,953
LDU_FT/sci-bots/pygtkhelpers/simple
LDU_FT
[ "<BEGIN>\n## `gcall`", "Calls a function, with the given arguments inside Gtk's main loop.\n Example::\n gcall(lbl.set_text, \"foo\")", " If this call would be made in a thread there could be problems, using\n it inside Gtk's main loop makes it thread safe.\n<END>", "<BEGIN>\n## `invoke_in_mai...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the simple API. 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 simple API. 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 ...
A simple dialog :param type: The type of dialog :param short: The short description :param long: The long description :param parent: The parent Window to make this dialog transient to :param buttons: A buttons enum :param default: A default response
"A simple dialog\n\n :param type: The type of dialog\n :param short: The short description\n :param long: The long description\n :param parent: The parent Window to make this dialog transient to\n :param buttons: A buttons enum\n :param default: A default response"
240
false
sci-bots/pygtkhelpers
simple
39,954
LDU_FT/maxpumperla/hyperas/with_line_numbers
LDU_FT
[ "<BEGIN>\n## `minimize`", "Minimize a keras model for given data and implicit hyperparameters.", " Parameters\n ----------\n model: A function defining a keras model with hyperas templates, which returns a\n valid hyperopt results dictionary, e.g.\n return {'loss': -acc, 'status': STATUS_...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the with_line_numbers API. 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 with_line_numbers API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Adds line numbers to each line of a source code fragment Parameters ---------- code : string any multiline text, such as as (fragments) of source code Returns ------- str : string The input with added <n>: for each line Example ------- code = "def do_stuff(x):\n\tpri...
"Adds line numbers to each line of a source code fragment\n\n Parameters\n ----------\n code : string\n any multiline text, such as as (fragments) of source code\n\n Returns\n -------\n str : string\n The input with added <n>: for each line\n\n Example\n -------\n code = \"def do_...
23
false
maxpumperla/hyperas
with_line_numbers
39,955
LDU_FT/hannorein/rebound/calculate_megno
LDU_FT
[ "<BEGIN>\n## `add_outer_solar_system`", "Add the planet of the outer Solar System as a test problem.\n Data taken from NASA Horizons.\n<END>", "<BEGIN>\n## `OrbitPlot`", "Convenience function for plotting instantaneous orbits.", " Parameters\n ----------\n slices : bool, optional\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the calculate_megno API. 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 calculate_megno API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
Return the current MEGNO value. Note that you need to call init_megno() before the start of the simulation.
"Return the current MEGNO value.\n Note that you need to call init_megno() before the start of the simulation."
209
false
hannorein/rebound
calculate_megno
39,956
LDU_FT/shoeffner/pandoc-source-exec/select_executor
LDU_FT
[ "<BEGIN>\n## `select_executor`", "Determines the executor for the code in `elem.text`.", " The elem attributes and classes select the executor in this order (highest\n to lowest):\n - custom commands (cmd=...)\n - runas (runas=...) takes a key for the executors\n - first element class...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the select_executor API. 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 select_executor API. 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...
Determines the executor for the code in `elem.text`. The elem attributes and classes select the executor in this order (highest to lowest): - custom commands (cmd=...) - runas (runas=...) takes a key for the executors - first element class (.class) determines language and thus executor ...
"Determines the executor for the code in `elem.text`.\n\n The elem attributes and classes select the executor in this order (highest\n to lowest):\n - custom commands (cmd=...)\n - runas (runas=...) takes a key for the executors\n - first element class (.class) determines language and thus ex...
55
false
shoeffner/pandoc-source-exec
select_executor
39,957
LDU_FT/tagcubeio/tagcube-cli/email_notification_add
LDU_FT
[ "<BEGIN>\n## `create_scans`", "This method is rather simple, it will group the urls to be scanner together\n based on (protocol, domain and port).", " :param urls_file: The filename with all the URLs\n :return: A list of scans to be run\n<END>", "<BEGIN>\n## `parse_url`", "Parse a URL into the part...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the email_notification_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....
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the email_notification_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....
Sends a POST to /1.0/notifications/email/ using this post-data: {"email": "andres.riancho@gmail.com", "first_name": "Andres", "last_name": "Riancho", "description": "Notification email"} :return: The id of the newly created email notification resource
"Sends a POST to /1.0/notifications/email/ using this post-data:\n\n {\"email\": \"andres.riancho@gmail.com\",\n \"first_name\": \"Andres\",\n \"last_name\": \"Riancho\",\n \"description\": \"Notification email\"}\n\n :return: The id of the newly created email notif...
72
false
tagcubeio/tagcube-cli
email_notification_add
39,958
LDU_FT/mdscruggs/ga/mutate
LDU_FT
[ "<BEGIN>\n## `eval_fitness`", "Convert a 1-gene chromosome into an integer and calculate its fitness\n by checking it against each required factor.", " return: fitness value\n<END>", "<BEGIN>\n## `translate_chromosome`", "Translate all the genes in a chromosome.", " chromosome: a ``...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the mutate API. 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 mutate API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Check all genes in this chromosome for mutation. p_mutate: probability for mutation to occur
"Check all genes in this chromosome for mutation. \n \n p_mutate: probability for mutation to occur"
94
false
mdscruggs/ga
mutate
39,959
LDU_FT/gpoulter/fablib/install_deb
LDU_FT
[ "<BEGIN>\n## `default_roles`", "Decorate task with these roles by default, but override with -R, -H\n<END>", "<BEGIN>\n## `chown`", "User sudo to set user and group ownership\n<END>", "<BEGIN>\n## `chput`", "Put file and set user and group ownership. Default to use sudo.\n<END>", "<BEGIN>\n## `diff`", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the install_deb API. 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 install_deb API. 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...
Install package from custom deb hosted on S3. Return true if package was installed by this invocation.
"Install package from custom deb hosted on S3.\n Return true if package was installed by this invocation."
29
false
gpoulter/fablib
install_deb
39,960
LDU_FT/mikedh/trimesh/parse_file_args
LDU_FT
[ "<BEGIN>\n## `face_adjacency`", "Returns an (n,2) list of face indices.\n Each pair of faces in the list shares an edge, making them adjacent.", " Parameters\n ----------\n faces : (n, 3) int, or None\n List of vertex indices representing triangles\n mesh : Trimesh object\n If passe...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_file_args API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_file_args API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
Given a file_obj and a file_type try to turn them into a file-like object and a lowercase string of file type. Parameters ----------- file_obj: str: if string represents a file path, returns ------------------------------------------- file_obj: an 'rb' opened ...
"Given a file_obj and a file_type try to turn them into a file-like\n object and a lowercase string of file type.\n\n Parameters\n -----------\n file_obj: str: if string represents a file path, returns\n -------------------------------------------\n file_obj: an 'rb'...
2,650
true
mikedh/trimesh
parse_file_args
39,961
LDU_FT/puiterwijk/flask-oidc/_is_id_token_valid
LDU_FT
[ "<BEGIN>\n## `check_redirect_uris`", "This function checks all return uris provided and tries to deduce\n as what type of client we should register.", " :param uris: The redirect URIs to check.\n :type uris: list\n :param client_type: An indicator of which client type you are expecting\n to b...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _is_id_token_valid 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 _is_id_token_valid API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
Check if `id_token` is a current ID token for this application, was issued by the Apps domain we expected, and that the email address has been verified. @see: http://openid.net/specs/openid-connect-core-1_0.html#IDTokenValidation
"Check if `id_token` is a current ID token for this application,\n was issued by the Apps domain we expected,\n and that the email address has been verified.\n\n @see: http://openid.net/specs/openid-connect-core-1_0.html#IDTokenValidation"
74
false
puiterwijk/flask-oidc
_is_id_token_valid
39,962
LDU_FT/jazzband/django-pipeline/set_std_streams_blocking
LDU_FT
[ "<BEGIN>\n## `serve_static`", "Collect and serve static files.", " This view serves up static files, much like Django's\n :py:func:`~django.views.static.serve` view, with the addition that it\n collects static files first (if enabled). This allows images, fonts, and\n other assets to be served up wi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_std_streams_blocking 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 set_std_streams_blocking API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio...
Set stdout and stderr to be blocking. This is called after Popen.communicate() to revert stdout and stderr back to be blocking (the default) in the event that the process to which they were passed manipulated one or both file descriptors to be non-blocking.
"Set stdout and stderr to be blocking.\n\n This is called after Popen.communicate() to revert stdout and stderr back\n to be blocking (the default) in the event that the process to which they\n were passed manipulated one or both file descriptors to be non-blocking."
54
false
jazzband/django-pipeline
set_std_streams_blocking
39,963
LDU_FT/bootphon/h5features/is_appendable_to
LDU_FT
[ "<BEGIN>\n## `init_group`", "Initializes a HDF5 group compliant with the stored data.", " This method creates the datasets 'items', 'labels', 'features'\n and 'index' and leaves them empty.", " :param h5py.Group group: The group to initializes.\n :param float chunk_size: The size o...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_appendable_to API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_appendable_to API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Returns True if the data can be appended in a given group.
"Returns True if the data can be appended in a given group."
119
false
bootphon/h5features
is_appendable_to
39,964
LDU_FT/NeuralEnsemble/lazyarray/check_bounds
LDU_FT
[ "<BEGIN>\n## `check_shape`", "Decorator for larray magic methods, to ensure that the operand has\n the same shape as the array.\n<END>", "<BEGIN>\n## `partial_shape`", "Calculate the size of the sub-array represented by `addr`\n<END>", "<BEGIN>\n## `reverse`", "Given a function f(a, b), returns f(b, a)...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the check_bounds API. 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_bounds API. 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 whether the given address is within the array bounds.
"Check whether the given address is within the array bounds."
15
false
NeuralEnsemble/lazyarray
check_bounds
39,965
LDU_FT/Microsoft/malmo/runMission
LDU_FT
[ "<BEGIN>\n## `angvel`", "Use sigmoid function to choose a delta that will help smoothly steer from current angle to target angle.\n<END>", "<BEGIN>\n## `pointTo`", "Steer towards the target pitch/yaw, return True when within the given tolerance threshold.\n<END>", "<BEGIN>\n## `download`", "Download Malmo...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the runMission API. 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 runMission API. 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...
Sets a mission running. Parameters: mission_spec : MissionSpec instance, specifying the mission. mission_record_spec : MissionRecordSpec instance, specifying what should be recorded. role : int, the index of the role this human agent is to play. Zero based.
"Sets a mission running.\n \n Parameters:\n mission_spec : MissionSpec instance, specifying the mission.\n mission_record_spec : MissionRecordSpec instance, specifying what should be recorded.\n role : int, the index of the role this human agent is to play. Zero based."
80
false
Microsoft/malmo
runMission
39,966
LDU_FT/ROGUE-JCTD/rogue_geonode/package
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 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 extracted...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the 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 extracted...
Creates a tarball to use for building the system elsewhere
"Creates a tarball to use for building the system elsewhere"
27
false
ROGUE-JCTD/rogue_geonode
package
39,967
LDU_FT/DBuildService/dockerfile-parse/cmd
LDU_FT
[ "<BEGIN>\n## `image_from`", ":param from_value: string like \"image:tag\" or \"image:tag AS name\"\n :return: tuple of the image and stage name, e.g. (\"image:tag\", None)\n<END>", "<BEGIN>\n## `lines`", ":return: list containing lines (unicode) from Dockerfile\n<END>", "<BEGIN>\n## `lines`", "Fill Doc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the cmd API. 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 cmd API. 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...
setter for final 'CMD' instruction in final build stage
"setter for final 'CMD' instruction in final build stage"
58
false
DBuildService/dockerfile-parse
cmd
39,968
LDU_FT/tobami/littlechef/_get_role
LDU_FT
[ "<BEGIN>\n## `save_config`", "Saves node configuration\n if no nodes/hostname.json exists, or force=True, it creates one\n it also saves to tmp_node.json\n<END>", "<BEGIN>\n## `_get_ipaddress`", "Adds the ipaddress attribute to the given node object if not already\n present and it is correctly given ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_role API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_role API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
Reads and parses a file containing a role
"Reads and parses a file containing a role"
96
false
tobami/littlechef
_get_role
39,969
LDU_FT/jpscaletti/solution/as_checks
LDU_FT
[ "<BEGIN>\n## `as_select`", "Render the field as a `<select>` element.", " :param **kwargs:\n Named paremeters used to generate the HTML attributes of each item.\n It follows the same rules as `get_html_attrs`\n<END>", "<BEGIN>\n## `_clean_data`", "This overwrite is neccesary for...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the as_checks API. 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 as_checks API. 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...
Render the field as a series of checkboxes, using the `tmpl` parameter as the template for each item. :param tmpl: HTML template to use for rendering each item. :param **kwargs: Named paremeters used to generate the HTML attributes of each item. It follows t...
"Render the field as a series of checkboxes, using the `tmpl`\n parameter as the template for each item.\n\n :param tmpl:\n HTML template to use for rendering each item.\n\n :param **kwargs:\n Named paremeters used to generate the HTML attributes of each item.\n It ...
57
false
jpscaletti/solution
as_checks
39,970
LDU_FT/weso/CWR-DataApi/load_transaction_config
LDU_FT
[ "<BEGIN>\n## `char_code`", "Character set code field.", " :param name: name for the field\n :return: an instance of the Character set code field rules\n<END>", "<BEGIN>\n## `_iso_handler`", "Transforms an object into it's ISO format, if possible.", " If the object can't be transformed, then an er...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load_transaction_config API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load_transaction_config API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion...
Loads the configuration fields file for the id. :param file_id: the id for the field :return: the fields configuration
"Loads the configuration fields file for the id.\n\n :param file_id: the id for the field\n :return: the fields configuration"
208
false
weso/CWR-DataApi
load_transaction_config
39,971
LDU_FT/ziwenxie/netease-dl/download_album_by_id
LDU_FT
[ "<BEGIN>\n## `download_song_by_search`", "Download a song by its name.", " :params song_name: song name.\n<END>", "<BEGIN>\n## `download_song_by_id`", "Download a song by id and save it to disk.", " :params song_id: song id.\n :params song_name: song name.\n :params folder: sto...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the download_album_by_id 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 download_album_by_id API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Download a album by its name. :params album_id: album id. :params album_name: album name.
"Download a album by its name.\n\n :params album_id: album id.\n :params album_name: album name."
99
false
ziwenxie/netease-dl
download_album_by_id
39,972