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/openbermuda/ripl/interpret | LDU_FT | [
"<BEGIN>\n## `interpret`",
"Try and find the image file ",
" some magic here would be good.",
" FIXME move elsewhere and make so everyone can use.",
" interpreter that finds things?\n<END>",
"<BEGIN>\n## `horizontal_layout`",
"Augment slide with horizontal layout info\n<END>",
"<B... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the interpret API.
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 interpret API.
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... | Try and find the image file
some magic here would be good.
FIXME move elsewhere and make so everyone can use.
interpreter that finds things? | "Try and find the image file \n\n some magic here would be good.\n\n FIXME move elsewhere and make so everyone can use.\n\n interpreter that finds things?" | 33 | false | openbermuda/ripl | interpret | 27,773 | |
LDU_FT/gsi-upm/soil/ego_search | LDU_FT | [
"<BEGIN>\n## `save_record`",
"Save a collection of records to the database.\n Database writes are cached.\n<END>",
"<BEGIN>\n## `convert`",
"Get the serialized value for a given key.\n<END>",
"<BEGIN>\n## `recover`",
"Get the deserialized value for a given key, and the serialized version.\n<END>",
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the ego_search API.
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 ego_search API.
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... | Get a list of nodes in the ego network of *node* of radius *steps* | "Get a list of nodes in the ego network of *node* of radius *steps*" | 63 | false | gsi-upm/soil | ego_search | 27,774 | |
LDU_FT/klichukb/django-migrate-sql/generate_altered_fields | LDU_FT | [
"<BEGIN>\n## `build_current_graph`",
"Read current state of SQL items from the current project state.",
" Returns:\n (SQLStateGraph) Current project state graph.\n<END>",
"<BEGIN>\n## `build_graph`",
"Read lazy dependency list and build graph.\n<END>",
"<BEGIN>\n## `_sql_params`",
"Identify `s... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the generate_altered_fields API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the generate_altered_fields API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion... | Injecting point. This is quite awkward, and i'm looking forward Django for having the logic
divided into smaller methods/functions for easier enhancement and substitution.
So far we're doing all the SQL magic in this method. | "Injecting point. This is quite awkward, and i'm looking forward Django for having the logic\n divided into smaller methods/functions for easier enhancement and substitution.\n So far we're doing all the SQL magic in this method." | 32 | false | klichukb/django-migrate-sql | generate_altered_fields | 27,775 | |
LDU_FT/mukulhase/WebWhatsapp-Wrapper/kill_clients | LDU_FT | [
"<BEGIN>\n## `run`",
"Locks the main thread while the subscription in running\n<END>",
"<BEGIN>\n## `save_firefox_profile`",
"Function to save the firefox profile to the permanant one\n<END>",
"<BEGIN>\n## `get_contacts`",
"Fetches list of all contacts\n This will return chats with people from the ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the kill_clients API.
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 kill_clients API.
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... | Force kill driver and other objects for a perticular clien | "Force kill driver and other objects for a perticular clien" | 108 | false | mukulhase/WebWhatsapp-Wrapper | kill_clients | 27,776 | |
LDU_FT/thecynic/pylutron/_do_login_locked | LDU_FT | [
"<BEGIN>\n## `_send_locked`",
"Sends the specified command to the lutron controller.",
" Assumes self._lock is held.\n<END>",
"<BEGIN>\n## `_do_login_locked`",
"Executes the login procedure (telnet) as well as setting up some\n connection defaults like turning off the prompt, etc.\n<END>",
"<BEGIN>\... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _do_login_locked API.
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 _do_login_locked API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | Executes the login procedure (telnet) as well as setting up some
connection defaults like turning off the prompt, etc. | "Executes the login procedure (telnet) as well as setting up some\n connection defaults like turning off the prompt, etc." | 73 | false | thecynic/pylutron | _do_login_locked | 27,777 | |
LDU_FT/interstar/FSQuery/add_file | LDU_FT | [
"<BEGIN>\n## `children`",
"If the FSNode is a directory, returns a list of the children\n<END>",
"<BEGIN>\n## `add_file`",
"If this FSNode is a directory, write a file called fName containing content inside it\n<END>",
"<BEGIN>\n## `open_file`",
"If this FSNode is a file, open it for reading and return th... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_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 add_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... | If this FSNode is a directory, write a file called fName containing content inside it | "If this FSNode is a directory, write a file called fName containing content inside it" | 12 | false | interstar/FSQuery | add_file | 27,778 | |
LDU_FT/mattja/nsim/psd | LDU_FT | [
"<BEGIN>\n## `merge`",
"Merge several timeseries\n Arguments:\n tup: sequence of Timeseries, with the same shape except for axis 0\n Returns: \n Resulting merged timeseries which can have duplicate time points.\n<END>",
"<BEGIN>\n## `add_analyses`",
"Dynamically add new analysis methods to the... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the psd API.
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 psd API.
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... | plot Welch estimate of power spectral density, using nperseg samples per
segment, with noverlap samples overlap and Hamming window. | "plot Welch estimate of power spectral density, using nperseg samples per\n segment, with noverlap samples overlap and Hamming window." | 427 | false | mattja/nsim | psd | 27,779 | |
LDU_FT/tensorflow/cleverhans/main | LDU_FT | [
"<BEGIN>\n## `model_loss`",
"Define loss of TF graph\n :param y: correct labels\n :param model: output of the model\n :param mean: boolean indicating whether should return mean of loss\n or vector of losses for each input of the batch\n :return: return mean of loss if True, otherwise return vect... | 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... | Make a confidence report and save it to disk. | "Make a confidence report and save it to disk." | 1,050 | true | tensorflow/cleverhans | main | 27,780 | |
LDU_FT/asaskevich/binario/read_string | LDU_FT | [
"<BEGIN>\n## `write`",
"Writes a byte buffer to the underlying output file.\n Raise exception when file is already closed.\n<END>",
"<BEGIN>\n## `write_bool`",
"Writes a boolean to the underlying output file as a 1-byte value.\n<END>",
"<BEGIN>\n## `write_short`",
"Writes a short integer to the und... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the read_string API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the read_string API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | Read string from input file with UTF-8 encoding. | "Read string from input file with UTF-8 encoding." | 23 | false | asaskevich/binario | read_string | 27,781 | |
LDU_FT/wonambi-python/wonambi/return_hdr | LDU_FT | [
"<BEGIN>\n## `write_mnefiff`",
"Export data to MNE using FIFF format.",
" Parameters\n ----------\n data : instance of ChanTime\n data with only one trial\n filename : path to file\n file to export to (include '.mat')",
" Notes\n -----\n It cannot store data larger than 2 GB... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the return_hdr API.
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 return_hdr API.
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... | Return the header for further use.
Returns
-------
subj_id : str
subject identification code
start_time : datetime
start time of the dataset
s_freq : float
sampling frequency
chan_name : list of str
list of all the channels... | "Return the header for further use.\n\n Returns\n -------\n subj_id : str\n subject identification code\n start_time : datetime\n start time of the dataset\n s_freq : float\n sampling frequency\n chan_name : list of str\n list of all ... | 1,345 | true | wonambi-python/wonambi | return_hdr | 27,782 | |
LDU_FT/openstack/networking-hyperv/create | LDU_FT | [
"<BEGIN>\n## `handle_trunks`",
"Trunk data model change from the server.\n<END>",
"<BEGIN>\n## `handle_subports`",
"Subport data model change from the server.\n<END>",
"<BEGIN>\n## `_setup_trunk`",
"Sets up VLAN trunk and updates the trunk status.\n<END>",
"<BEGIN>\n## `main`",
"The entry point for ne... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create API.
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 create API.
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 QoS rules on port for the first time.
:param port: port object.
:param qos_policy: the QoS policy to be applied on port. | "Apply QoS rules on port for the first time.\n\n :param port: port object.\n :param qos_policy: the QoS policy to be applied on port." | 45 | false | openstack/networking-hyperv | create | 27,783 | |
LDU_FT/KeplerGO/K2fov/identifyModule | LDU_FT | [
"<BEGIN>\n## `angSepVincenty`",
"Vincenty formula for distances on a sphere\n<END>",
"<BEGIN>\n## `parse_file`",
"Parse a comma-separated file with columns \"ra,dec,magnitude\".\n<END>",
"<BEGIN>\n## `K2onSilicon`",
"Checks whether targets are on silicon during a given campaign.",
" This function wil... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the identifyModule API.
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 identifyModule API.
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... | Write the name of a channel/modout on a plot
Optional Inputs:
-----------
modout
(boolean). If True, write module and output. Otherwise
write channel number
Returns:
------------
**None**
Output:
-----------
Channel numbe... | "Write the name of a channel/modout on a plot\n\n Optional Inputs:\n -----------\n modout\n (boolean). If True, write module and output. Otherwise\n write channel number\n\n Returns:\n ------------\n **None**\n\n Output:\n -----------\n ... | 185 | false | KeplerGO/K2fov | identifyModule | 27,784 | |
LDU_FT/cqlengine/cqlengine/from_datetime | LDU_FT | [
"<BEGIN>\n## `create_keyspace`",
"creates a keyspace",
" :param name: name of keyspace to create\n :param strategy_class: keyspace replication strategy class\n :param replication_factor: keyspace replication factor\n :param durable_writes: 1.2 only, write log is bypassed if set to False\n :param ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the from_datetime API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the from_datetime API.
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... | generates a UUID for a given datetime
:param dt: datetime
:type dt: datetime
:return: | "generates a UUID for a given datetime\n\n :param dt: datetime\n :type dt: datetime\n :return:" | 65 | false | cqlengine/cqlengine | from_datetime | 27,785 | |
LDU_FT/markomanninen/abnum/preprocess | LDU_FT | [
"<BEGIN>\n## `svg`",
"Use in this way:",
" ´from remarkuple import helper as h, svg´\n<END>",
"<BEGIN>\n## `convert`",
"Swap characters from a script to transliteration and vice versa. \n Optionally sanitize string by using preprocess function.",
" :param preprocess:\n :param strin... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the preprocess API.
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 preprocess API.
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... | Preprocess string to transform all diacritics and remove other special characters than appropriate
:param string:
:return: | "Preprocess string to transform all diacritics and remove other special characters than appropriate\n \n :param string:\n :return:" | 24 | false | markomanninen/abnum | preprocess | 27,786 | |
LDU_FT/alejandroautalan/pygubu/xview | LDU_FT | [
"<BEGIN>\n## `_autoscroll`",
"Hide and show scrollbar as needed.\n Code from Joe English (JE) at http://wiki.tcl.tk/950\n<END>",
"<BEGIN>\n## `__regpoly_coords`",
"Create the coordinates of the regular polygon specified\n<END>",
"<BEGIN>\n## `get_image`",
"Return tk image corresponding to name which is... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the xview API.
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 xview API.
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... | Update inplace widgets position when doing horizontal scroll | "Update inplace widgets position when doing horizontal scroll" | 73 | false | alejandroautalan/pygubu | xview | 27,787 | |
LDU_FT/heuer/segno/normalize_mode | LDU_FT | [
"<BEGIN>\n## `make`",
"\\\n Creates a (Micro) QR Code.",
" This is main entry point to create QR Codes and Micro QR Codes.",
" Aside from `content`, all parameters are optional and an optimal (minimal)\n (Micro) QR Code with a maximal error correction level (minimum \"M\") is\n generated.",
"... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the normalize_mode API.
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 normalize_mode API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ex... | \
Returns a (Micro) QR Code mode constant which is equivalent to the
provided `mode`.
In case the provided `mode` is ``None``, this function returns ``None``.
Otherwise a mode constant is returned unless the provided parameter cannot
be mapped to a valid mode. In the latter case, a ModeError is rai... | "\\\n Returns a (Micro) QR Code mode constant which is equivalent to the\n provided `mode`.\n\n In case the provided `mode` is ``None``, this function returns ``None``.\n Otherwise a mode constant is returned unless the provided parameter cannot\n be mapped to a valid mode. In the latter case, a ModeErro... | 436 | false | heuer/segno | normalize_mode | 27,788 | |
LDU_FT/NaturalHistoryMuseum/pyzbar/load_libzbar | LDU_FT | [
"<BEGIN>\n## `load`",
"Loads the libzar shared library and its dependencies.\n<END>",
"<BEGIN>\n## `load_libzbar`",
"Loads the zbar shared library and its dependencies.",
" Populates the globals LIBZBAR and EXTERNAL_DEPENDENCIES.\n<END>",
"<BEGIN>\n## `zbar_function`",
"Returns a foreign function exp... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load_libzbar API.
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 load_libzbar API.
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... | Loads the zbar shared library and its dependencies.
Populates the globals LIBZBAR and EXTERNAL_DEPENDENCIES. | "Loads the zbar shared library and its dependencies.\n\n Populates the globals LIBZBAR and EXTERNAL_DEPENDENCIES." | 33 | false | NaturalHistoryMuseum/pyzbar | load_libzbar | 27,789 | |
LDU_FT/bastibe/SoundFile/_cdata_io | LDU_FT | [
"<BEGIN>\n## `read`",
"Provide audio data from a sound file as NumPy array.",
" By default, the whole file is read from the beginning, but the\n position to start reading can be specified with `start` and the\n number of frames to read can be specified with `frames`.\n Alternatively, a range can be ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _cdata_io API.
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 _cdata_io API.
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... | Call one of libsndfile's read/write functions. | "Call one of libsndfile's read/write functions." | 139 | false | bastibe/SoundFile | _cdata_io | 27,790 | |
LDU_FT/tdegeus/GooseMPL/diagonal_powerlaw | LDU_FT | [
"<BEGIN>\n## `find_latex_font_serif`",
"r'''\nFind an available font to mimic LaTeX, and return its name.\n<END>",
"<BEGIN>\n## `copy_style`",
"r'''\nWrite all goose-styles to the relevant matplotlib configuration directory.\n<END>",
"<BEGIN>\n## `set_decade_lims`",
"r'''\nSet limits the the floor/ceil va... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the diagonal_powerlaw API.
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 diagonal_powerlaw API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | r'''
Set the limits such that a power-law with a certain exponent lies on the diagonal.
:arguments:
**exp** (``<float>``)
The power-law exponent.
**ll, lr, tl, tr** (``<list>``)
Coordinates of the lower-left, or the lower-right, or the top-left, or the top-right corner.
**width, height** (``<float>``)... | "r'''\nSet the limits such that a power-law with a certain exponent lies on the diagonal.\n\n:arguments:\n\n **exp** (``<float>``)\n The power-law exponent.\n\n **ll, lr, tl, tr** (``<list>``)\n Coordinates of the lower-left, or the lower-right, or the top-left, or the top-right corner.\n\n **width, height** (... | 159 | false | tdegeus/GooseMPL | diagonal_powerlaw | 27,791 | |
LDU_FT/dbrattli/OSlash/bind | LDU_FT | [
"<BEGIN>\n## `map`",
"r\"\"\"Map a function over the Reader.",
" Haskell:\n fmap f m = Reader $ \\r -> f (runReader m r).\n fmap f g = (\\x -> f (g x))\n<END>",
"<BEGIN>\n## `bind`",
"r\"\"\"Bind a monadic function to the Reader.",
" Haskell:\n Reader: m >>= k = Reader ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the bind API.
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 bind API.
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... | Flat is better than nested.
Haskell:
(Writer (x, v)) >>= f = let
(Writer (y, v')) = f x in Writer (y, v `append` v') | "Flat is better than nested.\n\n Haskell:\n (Writer (x, v)) >>= f = let\n (Writer (y, v')) = f x in Writer (y, v `append` v')" | 76 | false | dbrattli/OSlash | bind | 27,792 | |
LDU_FT/eventbrite/pysoa/get_all_responses | LDU_FT | [
"<BEGIN>\n## `dict_to_hashable`",
"Takes a dict and returns an immutable, hashable version of that dict that can be used as a key in dicts or as a\n set value. Any two dicts passed in with the same content are guaranteed to return the same value. Any two dicts\n passed in with different content are guarante... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_all_responses API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_all_responses API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | Receive all available responses from the service as a generator.
:param service_name: The name of the service from which to receive responses
:type service_name: union[str, unicode]
:param receive_timeout_in_seconds: How long to block without receiving a message before raising
... | "Receive all available responses from the service as a generator.\n\n :param service_name: The name of the service from which to receive responses\n :type service_name: union[str, unicode]\n :param receive_timeout_in_seconds: How long to block without receiving a message before raising\n ... | 178 | false | eventbrite/pysoa | get_all_responses | 27,793 | |
LDU_FT/productml/blurr/get_schema_spec | LDU_FT | [
"<BEGIN>\n## `run_evaluate`",
"Overrides the base evaluation to set the value to the evaluation result of the value\n expression in the schema\n<END>",
"<BEGIN>\n## `set`",
"Sets the value of a key to a supplied value\n<END>",
"<BEGIN>\n## `increment`",
"Increments the value set against a key. If ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_schema_spec API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The e... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_schema_spec API.
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... | Used to retrieve the specifications of the schema from the given
fully_qualified_name of schema.
:param fully_qualified_name: The fully qualified name of the schema needed.
:return: Schema dictionary. | "Used to retrieve the specifications of the schema from the given\n fully_qualified_name of schema.\n :param fully_qualified_name: The fully qualified name of the schema needed.\n :return: Schema dictionary." | 119 | false | productml/blurr | get_schema_spec | 27,794 | |
LDU_FT/openvax/sercol/filter_above_threshold | LDU_FT | [
"<BEGIN>\n## `clone_with_new_elements`",
"Create another Collection of the same class and with same state but\n possibly different entries. Extra parameters to control which keyword\n arguments get passed to the initializer are necessary since derived\n classes have different constructors tha... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the filter_above_threshold 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 filter_above_threshold API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.... | The code for filtering by gene or transcript expression was pretty
much identical aside from which identifier you pull off an effect.
So, factored out the common operations for filtering an effect
collection into this helper method.
Parameters
----------
key_fn : callabl... | "The code for filtering by gene or transcript expression was pretty\n much identical aside from which identifier you pull off an effect.\n So, factored out the common operations for filtering an effect\n collection into this helper method.\n\n Parameters\n ----------\n key_fn :... | 24 | false | openvax/sercol | filter_above_threshold | 27,795 | |
LDU_FT/ambitioninc/django-entity-event/load_fetched_objects_into_contexts | LDU_FT | [
"<BEGIN>\n## `get_context_hints_per_source`",
"Given a list of context renderers, return a dictionary of context hints per source.\n<END>",
"<BEGIN>\n## `get_querysets_for_context_hints`",
"Given a list of context hint dictionaries, return a dictionary\n of querysets for efficient context loading. The retu... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load_fetched_objects_into_contexts 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 load_fetched_objects_into_contexts API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its... | Given the fetched model data and the context hints for each source, go through each
event and populate the contexts with the loaded information. | "Given the fetched model data and the context hints for each source, go through each\n event and populate the contexts with the loaded information." | 46 | false | ambitioninc/django-entity-event | load_fetched_objects_into_contexts | 27,796 | |
LDU_FT/django-admin-tools/django-admin-tools/admin_tools_render_menu | LDU_FT | [
"<BEGIN>\n## `set_preferences`",
"This view serves and validates a preferences form.\n<END>",
"<BEGIN>\n## `admin_tools_render_menu`",
"Template tag that renders the menu, it takes an optional ``Menu`` instance\n as unique argument, if not given, the menu will be retrieved with the\n ``get_admin_menu`` ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the admin_tools_render_menu 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 admin_tools_render_menu API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion... | Template tag that renders the menu, it takes an optional ``Menu`` instance
as unique argument, if not given, the menu will be retrieved with the
``get_admin_menu`` function. | "Template tag that renders the menu, it takes an optional ``Menu`` instance\n as unique argument, if not given, the menu will be retrieved with the\n ``get_admin_menu`` function." | 60 | false | django-admin-tools/django-admin-tools | admin_tools_render_menu | 27,797 | |
LDU_FT/ecell/ecell4/download_blobs_from_container | LDU_FT | [
"<BEGIN>\n## `load_world`",
"Load a world from the given HDF5 filename.\n The return type is determined by ``ecell4_base.core.load_version_information``.",
" Parameters\n ----------\n filename : str\n A HDF5 filename.",
" Returns\n -------\n w : World\n Return one from ``BDW... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the download_blobs_from_container API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conc... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the download_blobs_from_container API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conc... | Downloads all blobs from the specified Azure Blob storage container.
:param block_blob_client: A blob service client.
:type block_blob_client: `azure.storage.blob.BlockBlobService`
:param container_name: The Azure Blob storage container from which to
download files.
:param directory_path: The loca... | "Downloads all blobs from the specified Azure Blob storage container.\n\n :param block_blob_client: A blob service client.\n :type block_blob_client: `azure.storage.blob.BlockBlobService`\n :param container_name: The Azure Blob storage container from which to\n download files.\n :param directory_path: T... | 217 | false | ecell/ecell4 | download_blobs_from_container | 27,798 | |
LDU_FT/cnschema/cdata/wikipedia_search | LDU_FT | [
"<BEGIN>\n## `wikidata_get`",
"https://www.wikidata.org/wiki/Special:EntityData/P248.json\n<END>",
"<BEGIN>\n## `wikidata_search`",
"wikification: search wikipedia pages for the given query\n https://www.wikidata.org/w/api.php?action=help&modules=wbsearchentities",
" result format\n {\n... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the wikipedia_search API.
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 wikipedia_search API.
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://www.mediawiki.org/wiki/API:Opensearch | "https://www.mediawiki.org/wiki/API:Opensearch" | 29 | false | cnschema/cdata | wikipedia_search | 27,799 | |
LDU_FT/mathiasertl/xmpp-backends/rpc | LDU_FT | [
"<BEGIN>\n## `rpc`",
"Generic helper function to call an RPC method.\n<END>",
"<BEGIN>\n## `message_user`",
"Currently use send_message_chat and discard subject, because headline messages are not\n stored by mod_offline.\n<END>",
"<BEGIN>\n## `module`",
"The module specified by the ``library`` attr... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the rpc API.
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 rpc API.
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... | Generic helper function to call an RPC method. | "Generic helper function to call an RPC method." | 63 | false | mathiasertl/xmpp-backends | rpc | 27,800 | |
LDU_FT/dj-stripe/dj-stripe/subscribe | LDU_FT | [
"<BEGIN>\n## `stripe_to_db`",
"Convert the raw value to decimal representation.\n<END>",
"<BEGIN>\n## `stripe_to_db`",
"Convert the raw timestamp value to a DateTime representation.\n<END>",
"<BEGIN>\n## `from_request`",
"Create, validate and process a WebhookEventTrigger given a Django\n\t\trequest objec... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the subscribe API.
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 subscribe API.
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... | Subscribes this customer to a plan.
:param plan: The plan to which to subscribe the customer.
:type plan: Plan or string (plan ID)
:param application_fee_percent: This represents the percentage of the subscription invoice subtotal
that will be transferred to the application owner's Stripe account.
The requ... | "Subscribes this customer to a plan.\n\n\t\t:param plan: The plan to which to subscribe the customer.\n\t\t:type plan: Plan or string (plan ID)\n\t\t:param application_fee_percent: This represents the percentage of the subscription invoice subtotal\n\t\t\tthat will be transferred to the application owner's Stripe accou... | 300 | false | dj-stripe/dj-stripe | subscribe | 27,801 | |
LDU_FT/trevorstephens/gplearn/_parallel_evolve | LDU_FT | [
"<BEGIN>\n## `_parallel_evolve`",
"Private function used to build a batch of programs within a job.\n<END>",
"<BEGIN>\n## `_verbose_reporter`",
"A report of the progress of the evolution process.",
" Parameters\n ----------\n run_details : dict\n Information about the evoluti... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _parallel_evolve API.
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 _parallel_evolve API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | Private function used to build a batch of programs within a job. | "Private function used to build a batch of programs within a job." | 103 | false | trevorstephens/gplearn | _parallel_evolve | 27,802 | |
LDU_FT/toomore/grs/out_putfile | LDU_FT | [
"<BEGIN>\n## `real`",
"Real time data",
" :rtype: dict\n :returns:",
" :name: 股票名稱 Unicode\n :no: 股票代碼\n :range: 漲跌價\n :ranges: 漲跌判斷 True, False\n :time: 取得時間\n :max: 漲停價\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the out_putfile API.
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 out_putfile API.
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... | 輸出成 CSV 檔
:param path fpath: 檔案輸出位置
.. todo:: files output using `with` syntax. | "輸出成 CSV 檔\n\n :param path fpath: 檔案輸出位置\n\n .. todo:: files output using `with` syntax." | 88 | false | toomore/grs | out_putfile | 27,803 | |
LDU_FT/clach04/python-tuya/set_brightness | LDU_FT | [
"<BEGIN>\n## `_send_receive`",
"Send single buffer `payload` and receive a single buffer.",
" Args:\n payload(bytes): Data to send.\n<END>",
"<BEGIN>\n## `generate_payload`",
"Generate the payload to send.",
" Args:\n command(str): The type of command.\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_brightness API.
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 set_brightness API.
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... | Set the brightness value of an rgb bulb.
Args:
brightness(int): Value for the brightness (25-255). | "Set the brightness value of an rgb bulb.\n\n Args:\n brightness(int): Value for the brightness (25-255)." | 35 | false | clach04/python-tuya | set_brightness | 27,804 | |
LDU_FT/stain/forgetSQL/_checkTable | LDU_FT | [
"<BEGIN>\n## `prepareClasses`",
"Fix _userClasses and some stuff in classes.",
" Traverses locals, which is a locals() dictionary from\n the namespace where Forgetter subclasses have been\n defined, and resolves names in _userClasses to real\n class-references.",
" Normally you would call forge... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _checkTable API.
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 _checkTable API.
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... | Split a field from _sqlFields into table, column.
Registers the table in cls._tables, and returns a fully
qualified table.column (default table: cls._sqlTable) | "Split a field from _sqlFields into table, column.\n\n Registers the table in cls._tables, and returns a fully\n qualified table.column (default table: cls._sqlTable)" | 66 | false | stain/forgetSQL | _checkTable | 27,805 | |
LDU_FT/mattbierner/blotre-py/create_disposable_app | LDU_FT | [
"<BEGIN>\n## `_try_redeem_disposable_app`",
"Attempt to redeem a one time code registred on the client.\n<END>",
"<BEGIN>\n## `_check_app_is_valid`",
"Check to see if the app has valid creds.\n<END>",
"<BEGIN>\n## `create_disposable_app`",
"Use an existing disposable app if data exists or create a new one... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_disposable_app API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_disposable_app API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | Use an existing disposable app if data exists or create a new one
and persist the data. | "Use an existing disposable app if data exists or create a new one\n and persist the data." | 19 | false | mattbierner/blotre-py | create_disposable_app | 27,806 | |
LDU_FT/pyrogram/pyrogram/get_users | LDU_FT | [
"<BEGIN>\n## `request_callback_answer`",
"Use this method to request a callback answer from bots.\n This is the equivalent of clicking an inline button containing callback data.",
" Args:\n chat_id (``int`` | ``str``):\n Unique identifier (int) or username (str) of the ta... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_users API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extract... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_users API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extract... | Use this method to get information about a user.
You can retrieve up to 200 users at once.
Args:
user_ids (``iterable``):
A list of User identifiers (id or username) or a single user id/username.
For a contact that exists in your Telegram address book you can... | "Use this method to get information about a user.\n You can retrieve up to 200 users at once.\n\n Args:\n user_ids (``iterable``):\n A list of User identifiers (id or username) or a single user id/username.\n For a contact that exists in your Telegram address book ... | 1,097 | true | pyrogram/pyrogram | get_users | 27,807 | |
LDU_FT/tango-controls/pytango/__EncodedAttribute_encode_jpeg_gray8 | LDU_FT | [
"<BEGIN>\n## `get_object_executor`",
"Returns the proper executor for the given object.",
" If the object has *_executors* and *_green_mode* members it returns\n the submit callable for the executor corresponding to the green_mode.\n Otherwise it returns the global executor for the given green_mode.",
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the __EncodedAttribute_encode_jpeg_gray8 API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates i... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the __EncodedAttribute_encode_jpeg_gray8 API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates i... | Encode a 8 bit grayscale image as JPEG format
:param gray8: an object containning image information
:type gray8: :py:obj:`str` or :class:`numpy.ndarray` or seq< seq<element> >
:param width: image width. **MUST** be given if gray8 is a string or
if it is a :clas... | "Encode a 8 bit grayscale image as JPEG format\n\n :param gray8: an object containning image information\n :type gray8: :py:obj:`str` or :class:`numpy.ndarray` or seq< seq<element> >\n :param width: image width. **MUST** be given if gray8 is a string or\n if it is a... | 577 | false | tango-controls/pytango | __EncodedAttribute_encode_jpeg_gray8 | 27,808 | |
LDU_FT/bharadwajyarlagadda/bingmaps/road_closed | LDU_FT | [
"<BEGIN>\n## `build_url`",
"This method occurs after dumping the data into the class.",
" Args:\n data (dict): dictionary of all the query values",
" Returns:\n data (dict): ordered dict of all the values\n<END>",
"<BEGIN>\n## `build_query_string`",
"This method occurs ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the road_closed API.
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 road_closed API.
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... | Retrieves the road closed information for the incident/incidents
from the output response
Returns:
road_closed(namedtuple): List of named tuples of road closed
information for the incident/incidents | "Retrieves the road closed information for the incident/incidents\n from the output response\n\n Returns:\n road_closed(namedtuple): List of named tuples of road closed\n information for the incident/incidents" | 75 | false | bharadwajyarlagadda/bingmaps | road_closed | 27,809 | |
LDU_FT/openvax/varcode/stream_gzip_decompress_lines | LDU_FT | [
"<BEGIN>\n## `translate_codon`",
"Translate a single codon into a single amino acid or stop '*'",
" Parameters\n ----------\n codon : str\n Expected to be of length 3\n aa_pos : int\n Codon/amino acid offset into the protein (starting from 0)\n<END>",
"<BEGIN>\n## `translate`",
"Tr... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the stream_gzip_decompress_lines API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its concl... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the stream_gzip_decompress_lines API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its concl... | Uncompress a gzip stream into lines of text.
Parameters
----------
Generator of chunks of gzip compressed text.
Returns
-------
Generator of uncompressed lines. | "Uncompress a gzip stream into lines of text.\n\n Parameters\n ----------\n Generator of chunks of gzip compressed text.\n\n Returns\n -------\n Generator of uncompressed lines." | 344 | false | openvax/varcode | stream_gzip_decompress_lines | 27,810 | |
LDU_FT/jealous/stockstats/_get_tr | LDU_FT | [
"<BEGIN>\n## `_get_p`",
"get the permutation of specified range\r",
" example:\r\n index x x_-2,-1_p\r\n 0 1 NaN\r\n 1 -1 NaN\r\n 2 3 2 (0.x > 0, and assigned to weight 2)\r\n 3 5 1 (2.x > 0, and assi... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_tr API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_tr API.
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... | True Range of the trading
tr = max[(high - low), abs(high - close_prev), abs(low - close_prev)]
:param df: data
:return: None | "True Range of the trading\r\n\r\n tr = max[(high - low), abs(high - close_prev), abs(low - close_prev)]\r\n :param df: data\r\n :return: None" | 84 | false | jealous/stockstats | _get_tr | 27,811 | |
LDU_FT/jorbas/GADDAG/ends_with | LDU_FT | [
"<BEGIN>\n## `save`",
"Save the GADDAG to file.",
" Args:\n path: path to save the GADDAG to.\n compressed: compress the saved GADDAG using gzip.\n exist_ok: overwrite existing file at `path`.\n<END>",
"<BEGIN>\n## `load`",
"Load a GADDAG from file, replacing the word... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the ends_with API.
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 ends_with API.
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... | Find all words ending with a suffix.
Args:
suffix: A suffix to be searched for.
Returns:
A list of all words found. | "Find all words ending with a suffix.\n\n Args:\n suffix: A suffix to be searched for.\n\n Returns:\n A list of all words found." | 29 | false | jorbas/GADDAG | ends_with | 27,812 | |
LDU_FT/mailgun/talon/extract_signature | LDU_FT | [
"<BEGIN>\n## `safe_format`",
"Helper: formats string with any combination of bytestrings/unicode\n strings without raising exceptions\n<END>",
"<BEGIN>\n## `to_unicode`",
"Safely returns a unicode version of a given string\n >>> utils.to_unicode('привет')\n u'привет'\n >>> utils.to_unicode(u'п... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the extract_signature API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the extract_signature API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | Analyzes message for a presence of signature block (by common patterns)
and returns tuple with two elements: message text without signature block
and the signature itself.
>>> extract_signature('Hey man! How r u?\n\n--\nRegards,\nRoman')
('Hey man! How r u?', '--\nRegards,\nRoman')
>>> extract_sig... | "Analyzes message for a presence of signature block (by common patterns)\n and returns tuple with two elements: message text without signature block\n and the signature itself.\n\n >>> extract_signature('Hey man! How r u?\\n\\n--\\nRegards,\\nRoman')\n ('Hey man! How r u?', '--\\nRegards,\\nRoman')\n\n >... | 140 | false | mailgun/talon | extract_signature | 27,813 | |
LDU_FT/mar10/pyftpsync/check_write | LDU_FT | [
"<BEGIN>\n## `match_path`",
"Return True if `path` matches `match` and `exclude` options.\n<END>",
"<BEGIN>\n## `_compare_file`",
"Byte compare two files (early out on first difference).\n<END>",
"<BEGIN>\n## `_tick`",
"Write progress info and move cursor to beginning of line.\n<END>",
"<BEGIN>\n## `_sy... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the check_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 extra... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the check_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 extra... | Raise exception if writing cur_dir/name is not allowed. | "Raise exception if writing cur_dir/name is not allowed." | 122 | false | mar10/pyftpsync | check_write | 27,814 | |
LDU_FT/vertexproject/synapse/pop | LDU_FT | [
"<BEGIN>\n## `openDatFile`",
"Open a file-like object using a pkg relative path.",
" Example:",
" fd = openDatFile('foopkg.barpkg/wootwoot.bin')\n<END>",
"<BEGIN>\n## `scrape`",
"Scrape types from a blob of text and return node tuples.",
" Args:\n text (str): Text to scrape.\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the pop API.
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 pop API.
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... | Pop a name from the SlabDict.
Args:
name (str): The name to remove.
defval (obj): The default value to return if the name is not present.
Returns:
object: The object stored in the SlabDict, or defval if the object was not present. | "Pop a name from the SlabDict.\n\n Args:\n name (str): The name to remove.\n defval (obj): The default value to return if the name is not present.\n\n Returns:\n object: The object stored in the SlabDict, or defval if the object was not present." | 1,135 | true | vertexproject/synapse | pop | 27,815 | |
LDU_FT/projecthamster/hamster/show_layout | LDU_FT | [
"<BEGIN>\n## `set_start_time`",
"set the start time. when start time is set, drop down list\n will start from start time and duration will be displayed in\n brackets\n<END>",
"<BEGIN>\n## `parse_fact`",
"tries to extract fact fields from the string\n the optional arguments in the ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the show_layout API.
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 show_layout API.
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... | display text. font_desc is string of pango font description
often handier than calling this function directly, is to create
a class:Label object | "display text. font_desc is string of pango font description\n often handier than calling this function directly, is to create\n a class:Label object" | 249 | false | projecthamster/hamster | show_layout | 27,816 | |
LDU_FT/nchopin/particles/reject_sv | LDU_FT | [
"<BEGIN>\n## `all_distinct`",
"Returns the list [l[i] for i in idx] \n When needed, objects l[i] are replaced by a copy, to make sure that\n the elements of the list are all distinct",
" Parameters\n ---------\n l: iterable\n idx: iterable that generates ints (e.g. ndarray of ints)",
" Re... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the reject_sv API.
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 reject_sv API.
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... | Sample from N(m, s^2) times SV likelihood using rejection.
SV likelihood (in x) corresponds to y ~ N(0, exp(x)). | "Sample from N(m, s^2) times SV likelihood using rejection. \n\n SV likelihood (in x) corresponds to y ~ N(0, exp(x))." | 249 | false | nchopin/particles | reject_sv | 27,817 | |
LDU_FT/dossier/dossier.models/list_projects | LDU_FT | [
"<BEGIN>\n## `run`",
"Generate the report to the given output.",
" :param output: writable file-like object or file path\n<END>",
"<BEGIN>\n## `_generate_report_all`",
"Generate report for all subfolders contained by self.folder_id.\n<END>",
"<BEGIN>\n## `_generate_report_single`",
"Generate repo... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the list_projects API.
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 list_projects API.
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... | List all folders or all subfolders of a folder.
If folder is provided, this method will output a list of subfolders
contained by it. Otherwise, a list of all top-level folders is produced.
:param folders: reference to folder.Folders instance
:param folder: folder name or None
:param user: optiona... | "List all folders or all subfolders of a folder.\n\n If folder is provided, this method will output a list of subfolders\n contained by it. Otherwise, a list of all top-level folders is produced.\n\n :param folders: reference to folder.Folders instance\n :param folder: folder name or None\n :param user:... | 217 | false | dossier/dossier.models | list_projects | 27,818 | |
LDU_FT/phaethon/kamene/do_graph | LDU_FT | [
"<BEGIN>\n## `post_build`",
"Called implicitly before a packet is sent.\n<END>",
"<BEGIN>\n## `float_encode`",
"Convert the integer value to its IGMPv3 encoded time value if needed.",
" If value < 128, return the value specified. If >= 128, encode as a floating \n point value. Value can be 0 - 31744.\... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the do_graph API.
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 do_graph API.
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... | do_graph(graph, prog=conf.prog.dot, format="png",
target=None, options=None, string=False):
if networkx library is available and graph is instance of Graph, use networkx.draw
string: if not False, simply return the graph string
graph: GraphViz graph description
format: output type (svg, ps, gi... | "do_graph(graph, prog=conf.prog.dot, format=\"png\",\n target=None, options=None, string=False):\n if networkx library is available and graph is instance of Graph, use networkx.draw\n\n string: if not False, simply return the graph string\n graph: GraphViz graph description\n format: output type (sv... | 477 | false | phaethon/kamene | do_graph | 27,819 | |
LDU_FT/kislyuk/ensure/called_with | LDU_FT | [
"<BEGIN>\n## `ensure_annotations`",
"Decorator to be used on functions with annotations. Runs type checks to enforce annotations. Raises\n :class:`EnsureError` if any argument passed to *f* is not of the type specified by the annotation. Also raises\n :class:`EnsureError` if the return value of *f* is not o... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the called_with API.
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 called_with API.
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... | Before evaluating subsequent predicates, calls :attr:`subject` with given arguments (but unlike a direct call,
catches and transforms any exceptions that arise during the call). | "Before evaluating subsequent predicates, calls :attr:`subject` with given arguments (but unlike a direct call,\n catches and transforms any exceptions that arise during the call)." | 81 | false | kislyuk/ensure | called_with | 27,820 | |
LDU_FT/jessemiller/HamlPy/watch_folder | LDU_FT | [
"<BEGIN>\n## `watched_extension`",
"Return True if the given extension is one of the watched extensions\n<END>",
"<BEGIN>\n## `watch_folder`",
"Main entry point. Expects one or two arguments (the watch folder + optional destination folder).\n<END>",
"<BEGIN>\n## `_watch_folder`",
"Compares \"modified\" ti... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the watch_folder API.
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 watch_folder API.
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... | Main entry point. Expects one or two arguments (the watch folder + optional destination folder). | "Main entry point. Expects one or two arguments (the watch folder + optional destination folder)." | 10 | false | jessemiller/HamlPy | watch_folder | 27,821 | |
LDU_FT/BlackEarth/bl/identifier | LDU_FT | [
"<BEGIN>\n## `random_id`",
"Creates a random id with the given length and charset.\r\n ## Parameters\r\n * length the number of characters in the id\r\n * charset what character set to use (a list of characters)\r\n * first_charset what character set for the first character\r\n *... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the identifier API.
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 identifier API.
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... | return a python identifier from the string (underscore separators) | "return a python identifier from the string (underscore separators)" | 54 | false | BlackEarth/bl | identifier | 27,822 | |
LDU_FT/ikegami-yukino/jaconv/hira2hkata | LDU_FT | [
"<BEGIN>\n## `hira2kata`",
"Convert Hiragana to Full-width (Zenkaku) Katakana.",
" Parameters\n ----------\n text : str\n Hiragana string.\n ignore : str\n Characters to be ignored in converting.",
" Return\n ------\n str\n Katakana string.",
" Examples\n ----... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the hira2hkata API.
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 hira2hkata API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extrac... | Convert Hiragana to Half-width (Hankaku) Katakana
Parameters
----------
text : str
Hiragana string.
ignore : str
Characters to be ignored in converting.
Return
------
str
Half-width Katakana string.
Examples
--------
>>> print(jaconv.hira2hkata('ともえまみ')... | "Convert Hiragana to Half-width (Hankaku) Katakana\n\n Parameters\n ----------\n text : str\n Hiragana string.\n ignore : str\n Characters to be ignored in converting.\n\n Return\n ------\n str\n Half-width Katakana string.\n\n Examples\n --------\n >>> print(jaconv.hi... | 40 | false | ikegami-yukino/jaconv | hira2hkata | 27,823 | |
LDU_FT/welchbj/sublemon/two | LDU_FT | [
"<BEGIN>\n## `spawn`",
"Spawn the command wrapped in this object as a subprocess.\n<END>",
"<BEGIN>\n## `wait_done`",
"Coroutine to wait for subprocess run completion.",
" Returns:\n The exit code of the subprocess.\n<END>",
"<BEGIN>\n## `_poll`",
"Check the status of the wrapped runni... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the two API.
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 two API.
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... | Spin up some subprocesses, sleep, and echo a message for this coro. | "Spin up some subprocesses, sleep, and echo a message for this coro." | 35 | false | welchbj/sublemon | two | 27,824 | |
LDU_FT/anjishnu/ask-alexa-pykit/read_from_user | LDU_FT | [
"<BEGIN>\n## `read_from_user`",
"Helper function to prompt user for input of a specific type \n e.g. float, str, int \n Designed to work with both python 2 and 3 \n Yes I know this is ugly.\n<END>",
"<BEGIN>\n## `load_builtin_slots`",
"Helper function to load builtin slots from the data location\n<EN... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the read_from_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 ex... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the read_from_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 ex... | Helper function to prompt user for input of a specific type
e.g. float, str, int
Designed to work with both python 2 and 3
Yes I know this is ugly. | "Helper function to prompt user for input of a specific type \n e.g. float, str, int \n Designed to work with both python 2 and 3 \n Yes I know this is ugly." | 32 | false | anjishnu/ask-alexa-pykit | read_from_user | 27,825 | |
LDU_FT/ForensicArtifacts/artifacts/_CheckMacOSPaths | LDU_FT | [
"<BEGIN>\n## `_PrintDictAsTable`",
"Prints a table of artifact definitions.",
" Args:\n src_dict (dict[str, ArtifactDefinition]): artifact definitions by name.\n<END>",
"<BEGIN>\n## `PrintStats`",
"Build stats and print in MarkDown format.\n<END>",
"<BEGIN>\n## `AsDict`",
"Represents a source ty... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _CheckMacOSPaths API.
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 _CheckMacOSPaths API.
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 the paths are valid MacOS paths.
Args:
filename (str): name of the artifacts definition file.
artifact_definition (ArtifactDefinition): artifact definition.
source (SourceType): source definition.
paths (list[str]): paths to validate.
Returns:
bool: True if the MacOS pa... | "Checks if the paths are valid MacOS paths.\n\n Args:\n filename (str): name of the artifacts definition file.\n artifact_definition (ArtifactDefinition): artifact definition.\n source (SourceType): source definition.\n paths (list[str]): paths to validate.\n\n Returns:\n bool: True if th... | 160 | false | ForensicArtifacts/artifacts | _CheckMacOSPaths | 27,826 | |
LDU_FT/hydroshare/hs_restclient/createReferenceURL | LDU_FT | [
"<BEGIN>\n## `custom`",
":param payload:\r\n a key/value object containing the scimeta you want to store\r\n e.g. {\"weather\": \"sunny\", \"temperature\": \"80C\" }\r\n :return:\r\n empty (200 status code)\n<END>",
"<BEGIN>\n## `get`",
":param payload:\r\n a... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the createReferenceURL 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 createReferenceURL API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
Th... | Create a Referenced Content File (.url)
:param pid: The HydroShare ID of the resource for which the file should be created
:param name: Filename for the referenced file
:param ref_url: url to be used in the referenced file
:... | "Create a Referenced Content File (.url)\n :param pid: The HydroShare ID of the resource for which the file should be created\n :param name: Filename for the referenced file\n :param ref_url: url to be used in the referenced file\n ... | 95 | false | hydroshare/hs_restclient | createReferenceURL | 27,827 | |
LDU_FT/shaypal5/utilitime/dateint_week_by_dateint | LDU_FT | [
"<BEGIN>\n## `utc_offset_by_timezone`",
"Returns the UTC offset of the given timezone in hours.",
" Arguments\n ---------\n timezone_name: str\n A string with a name of a timezone.",
" Returns\n -------\n int\n The UTC offset of the given timezone, in hours.\n<END>",
"<BEGIN>... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the dateint_week_by_dateint 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 dateint_week_by_dateint API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion... | Return a dateint range of the week the given dateint belongs to.
Arguments
---------
dateint : int
An integer object decipting a specific calendaric day; e.g. 20161225.
first_day : str, default 'Monday'
The first day of the week.
Returns
-------
iterable
An iterable... | "Return a dateint range of the week the given dateint belongs to.\n\n Arguments\n ---------\n dateint : int\n An integer object decipting a specific calendaric day; e.g. 20161225.\n first_day : str, default 'Monday'\n The first day of the week.\n\n Returns\n -------\n iterable\n ... | 75 | false | shaypal5/utilitime | dateint_week_by_dateint | 27,828 | |
LDU_FT/Azure/azure-storage-python/_perform_request | LDU_FT | [
"<BEGIN>\n## `_perform_request`",
"Sends the request and return response. Catches HTTPError and hands it\n to error handler\n<END>",
"<BEGIN>\n## `copy_file`",
"source_file_url = self.service.make_file_url(\n remote_share_name,\n remote_directory_name,\n remote_file_nam... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _perform_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 ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _perform_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 ... | Sends the request and return response. Catches HTTPError and hands it
to error handler | "Sends the request and return response. Catches HTTPError and hands it\n to error handler" | 235 | false | Azure/azure-storage-python | _perform_request | 27,829 | |
LDU_FT/alvinwan/TexSoup/read_env | LDU_FT | [
"<BEGIN>\n## `all`",
"r\"\"\"Returns all content in this node, regardless of whitespace or\n not. This includes all LaTeX needed to reconstruct the original source.",
" >>> from TexSoup import TexSoup\n >>> soup = TexSoup(r'''\n ... \\newcommand{reverseconcat}[3]{#3#2#1}\n ...... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the read_env API.
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 read_env API.
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... | r"""Read the environment from buffer.
Advances the buffer until right after the end of the environment. Adds
parsed content to the expression automatically.
:param Buffer src: a buffer of tokens
:param TexExpr expr: expression for the environment
:rtype: TexExpr | "r\"\"\"Read the environment from buffer.\n\n Advances the buffer until right after the end of the environment. Adds\n parsed content to the expression automatically.\n\n :param Buffer src: a buffer of tokens\n :param TexExpr expr: expression for the environment\n :rtype: TexExpr" | 166 | false | alvinwan/TexSoup | read_env | 27,830 | |
LDU_FT/letuananh/chirptext/read_ttl | LDU_FT | [
"<BEGIN>\n## `download`",
"Download a file at $url and save it to $path\n<END>",
"<BEGIN>\n## `parse`",
"Use mecab-python3 by default to parse JP text. Fall back to mecab binary app if needed\n<END>",
"<BEGIN>\n## `flex_update_obj`",
"Pull data from source to target.\n Target's __dict__ (object data) w... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the read_ttl API.
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 read_ttl API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracte... | Helper function to read Document in TTL-TXT format (i.e. ${docname}_*.txt)
E.g. Document.read_ttl('~/data/myfile') is the same as Document('myfile', '~/data/').read() | "Helper function to read Document in TTL-TXT format (i.e. ${docname}_*.txt)\n E.g. Document.read_ttl('~/data/myfile') is the same as Document('myfile', '~/data/').read()" | 80 | false | letuananh/chirptext | read_ttl | 27,831 | |
LDU_FT/marshmallow-code/webargs/is_json | LDU_FT | [
"<BEGIN>\n## `dict2schema`",
"Generate a `marshmallow.Schema` class given a dictionary of\n `Fields <marshmallow.fields.Field>`.\n<END>",
"<BEGIN>\n## `is_json`",
"Indicates if this mimetype is JSON or not. By default a request\n is considered to include JSON data if the mimetype is\n ``application/... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_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 is_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... | Indicates if this mimetype is JSON or not. By default a request
is considered to include JSON data if the mimetype is
``application/json`` or ``application/*+json``. | "Indicates if this mimetype is JSON or not. By default a request\n is considered to include JSON data if the mimetype is\n ``application/json`` or ``application/*+json``." | 108 | false | marshmallow-code/webargs | is_json | 27,832 | |
LDU_FT/dossier/dossier.web/items | LDU_FT | [
"<BEGIN>\n## `as_multi_dict`",
"Coerce a dictionary to a bottle.MultiDict\n<END>",
"<BEGIN>\n## `set_query_params`",
"Set the query parameters.",
" The query parameters should be a dictionary mapping keys to\n strings or lists of strings.",
" :param query_params: query parameters\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the items API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted d... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the items API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted d... | Yields an unodered generator of items in a subfolder.
The generator yields items, which are represented by a tuple
of ``content_id`` and ``subtopic_id``. The format of these
identifiers is unspecified.
By default (with ``ann_id=None``), subfolders are shown for all
anonymous us... | "Yields an unodered generator of items in a subfolder.\n\n The generator yields items, which are represented by a tuple\n of ``content_id`` and ``subtopic_id``. The format of these\n identifiers is unspecified.\n\n By default (with ``ann_id=None``), subfolders are shown for all\n anon... | 223 | false | dossier/dossier.web | items | 27,833 | |
LDU_FT/wtolson/gnsq/unpause_topic | LDU_FT | [
"<BEGIN>\n## `read_response`",
"Read an individual response from nsqd.",
" :returns: tuple of the frame type and the processed data.\n<END>",
"<BEGIN>\n## `identify`",
"Update client metadata on the server and negotiate features.",
" :returns: nsqd response data if there was feature negotiat... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the unpause_topic API.
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 unpause_topic API.
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... | Resume message flow to channels of an existing, paused, topic. | "Resume message flow to channels of an existing, paused, topic." | 96 | false | wtolson/gnsq | unpause_topic | 27,834 | |
LDU_FT/kytos/python-openflow/pack | LDU_FT | [
"<BEGIN>\n## `in_port`",
"Retrieve the 'in_port' that generated the PacketIn.",
" This method will look for the OXM_TLV with type OFPXMT_OFB_IN_PORT on\n the `oxm_match_fields` field from `match` field and return its value,\n if the OXM exists.",
" Returns:\n The integer... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the pack API.
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 pack API.
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... | Pack the value as a binary representation.
Returns:
bytes: The binary representation.
Raises:
ValueError: If value can't be represented with bytes | "Pack the value as a binary representation.\n\n Returns:\n bytes: The binary representation.\n\n Raises:\n ValueError: If value can't be represented with bytes" | 348 | false | kytos/python-openflow | pack | 27,835 | |
LDU_FT/bkjones/pyrabbit/delete_exchange | LDU_FT | [
"<BEGIN>\n## `do_call`",
"Send an HTTP request to the REST API.",
" :param string path: A URL\n :param string method: The HTTP method (GET, POST, etc.) to use\n in the request.\n :param string body: A string representing any data to be sent in the\n body of the HTTP re... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the delete_exchange API.
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 delete_exchange API.
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... | Delete the named exchange from the named vhost. The API returns a 204
on success, in which case this method returns True, otherwise the
error is raised.
:param string vhost: Vhost where target exchange was created
:param string name: The name of the exchange to delete.
:returns ... | "Delete the named exchange from the named vhost. The API returns a 204\n on success, in which case this method returns True, otherwise the\n error is raised.\n\n :param string vhost: Vhost where target exchange was created\n :param string name: The name of the exchange to delete.\n :r... | 112 | false | bkjones/pyrabbit | delete_exchange | 27,836 | |
LDU_FT/ahmadfaizalbh/Chatbot/respond | LDU_FT | [
"<BEGIN>\n## `candidates`",
"Generate possible spelling corrections for word.\n<END>",
"<BEGIN>\n## `__normalize`",
"Substitute words in the string, according to the specified Normal,\n e.g. \"I'm\" -> \"I am\"",
" :type str: str\n :param str: The string to be mapped\n :rtype: st... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the respond API.
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 respond API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted... | Generate a response to the user input.
:type text: str
:param text: The string to be mapped
:rtype: str | "Generate a response to the user input.\n\n :type text: str\n :param text: The string to be mapped\n :rtype: str" | 13 | false | ahmadfaizalbh/Chatbot | respond | 27,837 | |
LDU_FT/admiralobvious/flask-simpleldap/init_app | LDU_FT | [
"<BEGIN>\n## `init_app`",
"Initialize the `app` for use with this :class:`~LDAP`. This is\n called automatically if `app` is passed to :meth:`~LDAP.__init__`.",
" :param flask.Flask app: the application to configure for use with\n this :class:`~LDAP`\n<END>",
"<BEGIN>\n## `initialize`"... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the init_app API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracte... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the init_app API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracte... | Initialize the `app` for use with this :class:`~LDAP`. This is
called automatically if `app` is passed to :meth:`~LDAP.__init__`.
:param flask.Flask app: the application to configure for use with
this :class:`~LDAP` | "Initialize the `app` for use with this :class:`~LDAP`. This is\n called automatically if `app` is passed to :meth:`~LDAP.__init__`.\n\n :param flask.Flask app: the application to configure for use with\n this :class:`~LDAP`" | 36 | false | admiralobvious/flask-simpleldap | init_app | 27,838 | |
LDU_FT/ib-lundgren/flask-oauthprovider/create_or_login | LDU_FT | [
"<BEGIN>\n## `authorized`",
"Create a verifier for an user authorized client\n<END>",
"<BEGIN>\n## `request_token`",
"Create an OAuth request token for a valid client request.",
" Defaults to /request_token. Invoked by client applications.\n<END>",
"<BEGIN>\n## `access_token`",
"Create an OAuth a... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_or_login API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The e... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_or_login API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The e... | This is called when login with OpenID succeeded and it's not
necessary to figure out if this is the users's first login or not.
This function has to redirect otherwise the user will be presented
with a terrible URL which we certainly don't want. | "This is called when login with OpenID succeeded and it's not\n necessary to figure out if this is the users's first login or not.\n This function has to redirect otherwise the user will be presented\n with a terrible URL which we certainly don't want." | 20 | false | ib-lundgren/flask-oauthprovider | create_or_login | 27,839 | |
LDU_FT/napalm-automation/napalm-base/find_txt | LDU_FT | [
"<BEGIN>\n## `load_template`",
"Will load a templated configuration on the device.",
" :param cls: Instance of the driver class.\n :param template_name: Identifies the template name.\n :param template_source (optional): Custom config template rendered and loaded on device\n :param te... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_txt API.
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 find_txt API.
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... | Extracts the text value from an XML tree, using XPath.
In case of error, will return a default value.
:param xml_tree: the XML Tree object. Assumed is <type 'lxml.etree._Element'>.
:param path: XPath to be applied, in order to extract the desired data.
:param default: Value to be returned in case ... | "Extracts the text value from an XML tree, using XPath.\n In case of error, will return a default value.\n\n :param xml_tree: the XML Tree object. Assumed is <type 'lxml.etree._Element'>.\n :param path: XPath to be applied, in order to extract the desired data.\n :param default: Value to be returned in... | 47 | false | napalm-automation/napalm-base | find_txt | 27,840 | |
LDU_FT/nvictus/priority-queue-dictionary/pushpopitem | LDU_FT | [
"<BEGIN>\n## `nlargest`",
"Takes a mapping and returns the n keys associated with the largest values\n in descending order. If the mapping has fewer than n items, all its keys\n are returned.",
" Equivalent to:\n ``next(zip(*heapq.nlargest(mapping.items(), key=lambda x: x[1])))``",
" Return... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the pushpopitem API.
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 pushpopitem API.
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... | Equivalent to inserting a new item followed by removing the top
priority item, but faster. Raises ``KeyError`` if the new key is
already in the pqdict. | "Equivalent to inserting a new item followed by removing the top\n priority item, but faster. Raises ``KeyError`` if the new key is\n already in the pqdict." | 25 | false | nvictus/priority-queue-dictionary | pushpopitem | 27,841 | |
LDU_FT/sarugaku/requirementslib/pep517_subprocess_runner | LDU_FT | [
"<BEGIN>\n## `pep517_subprocess_runner`",
"The default method of calling the wrapper subprocess.\n<END>",
"<BEGIN>\n## `run_setup`",
"Run a `setup.py` script with a target **egg_base** if provided.",
" :param S script_path: The path to the `setup.py` script to run\n :param Optional[S] egg_base: The me... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the pep517_subprocess_runner 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 pep517_subprocess_runner API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio... | The default method of calling the wrapper subprocess. | "The default method of calling the wrapper subprocess." | 26 | false | sarugaku/requirementslib | pep517_subprocess_runner | 27,842 | |
LDU_FT/danielfrg/s3contents/_convert_file_records | LDU_FT | [
"<BEGIN>\n## `_notebook_model_from_path`",
"Build a notebook model from database record.\n<END>",
"<BEGIN>\n## `_file_model_from_path`",
"Build a file model from database record.\n<END>",
"<BEGIN>\n## `_convert_file_records`",
"Applies _notebook_model_from_s3_path or _file_model_from_s3_path to each entry... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _convert_file_records API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _convert_file_records API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | Applies _notebook_model_from_s3_path or _file_model_from_s3_path to each entry of `paths`,
depending on the result of `guess_type`. | "Applies _notebook_model_from_s3_path or _file_model_from_s3_path to each entry of `paths`,\n depending on the result of `guess_type`." | 13 | false | danielfrg/s3contents | _convert_file_records | 27,843 | |
LDU_FT/balloob/pychromecast/get_multizone_status | LDU_FT | [
"<BEGIN>\n## `new_connection_status`",
"Handle reception of a new ConnectionStatus.\n<END>",
"<BEGIN>\n## `register_listener`",
"Register a listener for audio group changes of cast uuid.\n On update will call:\n listener.added_to_multizone(group_uuid)\n The cast has been a... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_multizone_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.
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_multizone_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.
... | :param host: Hostname or ip to fetch status from
:type host: str
:return: The multizone status as a named tuple.
:rtype: pychromecast.dial.MultizoneStatus or None | ":param host: Hostname or ip to fetch status from\n :type host: str\n :return: The multizone status as a named tuple.\n :rtype: pychromecast.dial.MultizoneStatus or None" | 145 | false | balloob/pychromecast | get_multizone_status | 27,844 | |
LDU_FT/grahame/sedge/cli | LDU_FT | [
"<BEGIN>\n## `check_or_confirm_overwrite`",
"Returns True if OK to proceed, False otherwise\n<END>",
"<BEGIN>\n## `cli`",
"Template and share OpenSSH ssh_config(5) files. A preprocessor for\n OpenSSH configurations.\n<END>",
"<BEGIN>\n## `init`",
"Initialise ~./sedge/config file if none exists.\n Go... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the cli API.
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 cli API.
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... | Template and share OpenSSH ssh_config(5) files. A preprocessor for
OpenSSH configurations. | "Template and share OpenSSH ssh_config(5) files. A preprocessor for\n OpenSSH configurations." | 14 | false | grahame/sedge | cli | 27,845 | |
LDU_FT/vstconsulting/vstutils/get_object | LDU_FT | [
"<BEGIN>\n## `load_yaml`",
"Load OpenAPI specification from yaml file. Path to file taking from command\n `vst_openapi`.\n :return:\n<END>",
"<BEGIN>\n## `write`",
"Add lines to ViewList, for further rendering.\n :param value: --line that would be added to render list\n :type value... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_object API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extrac... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_object API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extrac... | Get url object tuple for url
:param name: url regexp from
:type name: str
:param argv: overrided args
:param kwargs: overrided kwargs
:return: url object
:rtype: django.conf.urls.url | "Get url object tuple for url\n\n :param name: url regexp from\n :type name: str\n :param argv: overrided args\n :param kwargs: overrided kwargs\n :return: url object\n :rtype: django.conf.urls.url" | 68 | false | vstconsulting/vstutils | get_object | 27,846 | |
LDU_FT/hwmrocker/smtplibaio/ehlo_or_helo_if_needed | LDU_FT | [
"<BEGIN>\n## `read_reply`",
"Reads a reply from the server.",
" Raises:\n ConnectionResetError: If the connection with the server is lost\n (we can't read any response anymore). Or if the server\n replies without a proper return code.",
" Returns:\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the ehlo_or_helo_if_needed 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 ehlo_or_helo_if_needed API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.... | Calls :meth:`SMTP.ehlo` and/or :meth:`SMTP.helo` if needed.
If there hasn't been any previous *EHLO* or *HELO* command this
session, tries to initiate the session. *EHLO* is tried first.
Raises:
ConnectionResetError: If the connection with the server is
unexpectedel... | "Calls :meth:`SMTP.ehlo` and/or :meth:`SMTP.helo` if needed.\n\n If there hasn't been any previous *EHLO* or *HELO* command this\n session, tries to initiate the session. *EHLO* is tried first.\n\n Raises:\n ConnectionResetError: If the connection with the server is\n unex... | 140 | false | hwmrocker/smtplibaio | ehlo_or_helo_if_needed | 27,847 | |
LDU_FT/nschloe/optimesh/fixed_point_uniform | LDU_FT | [
"<BEGIN>\n## `quasi_newton_uniform_lloyd`",
"Relaxed Lloyd's algorithm. omega=1 leads to Lloyd's algorithm, overrelaxation\n omega=2 gives good results. Check out",
" Xiao Xiao,\n Over-Relaxation Lloyd Method For Computing Centroidal Voronoi Tessellations,\n Master's thesis,\n <https://scholarcom... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the fixed_point_uniform API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
T... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the fixed_point_uniform API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
T... | Idea:
Move interior mesh points into the weighted averages of the centroids
(barycenters) of their adjacent cells. | "Idea:\n Move interior mesh points into the weighted averages of the centroids\n (barycenters) of their adjacent cells." | 53 | false | nschloe/optimesh | fixed_point_uniform | 27,848 | |
LDU_FT/xolox/python-vcs-repo-mgr/find_branches | LDU_FT | [
"<BEGIN>\n## `get_install_requires`",
"Add conditional dependencies (when creating source distributions).\n<END>",
"<BEGIN>\n## `main`",
"The command line interface of the ``vcs-tool`` program.\n<END>",
"<BEGIN>\n## `contains_repository`",
"Check whether the given directory contains a local repository.\n<... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_branches API.
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 find_branches API.
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... | Find the branches in the Mercurial repository.
:returns: A generator of :class:`.Revision` objects.
.. note:: Closed branches are not included. | "Find the branches in the Mercurial repository.\n\n :returns: A generator of :class:`.Revision` objects.\n\n .. note:: Closed branches are not included." | 261 | false | xolox/python-vcs-repo-mgr | find_branches | 27,849 | |
LDU_FT/blockstack/virtualchain/get_lastblock | LDU_FT | [
"<BEGIN>\n## `lpad`",
"Left-pad a given string (msg) with a character (symbol) for a given number of bytes (length).\n Return the padded string\n<END>",
"<BEGIN>\n## `changebase`",
"Change a string's characters from one base to another.\n Return the re-encoded string\n<END>",
"<BEGIN>\n## `num_to_var_... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_lastblock API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_lastblock API.
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... | What was the last block processed?
Return the number on success
Return None on failure to read | "What was the last block processed?\n Return the number on success\n Return None on failure to read" | 491 | false | blockstack/virtualchain | get_lastblock | 27,850 | |
LDU_FT/caktus/django-timepiece/find_users | LDU_FT | [
"<BEGIN>\n## `add_timezone`",
"If the value is naive, then the timezone is added to it.",
" If no timezone is given, timezone.get_current_timezone() is used.\n<END>",
"<BEGIN>\n## `get_active_entry`",
"Returns the user's currently-active entry, or None.\n<END>",
"<BEGIN>\n## `get_month_start`",
"Retu... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_users API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extrac... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_users API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extrac... | Returns the users to search given names as args.
Return all users if there are no args provided. | "Returns the users to search given names as args.\n Return all users if there are no args provided." | 88 | false | caktus/django-timepiece | find_users | 27,851 | |
LDU_FT/twisted/mantissa/_storeFromUsername | LDU_FT | [
"<BEGIN>\n## `createUser`",
"Create a new, blank user account with the given name and domain and, if\n specified, with the given password.",
" @type localpart: C{unicode}\n @param localpart: The local portion of the username. ie, the\n C{'alice'} in C{'alice@example.com'}.",
" ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _storeFromUsername 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 _storeFromUsername 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... | Find the user store of the user with username C{store}
@param store: site-store
@type store: L{axiom.store.Store}
@param username: the name a user signed up with
@type username: C{unicode}
@rtype: L{axiom.store.Store} or C{None} | "Find the user store of the user with username C{store}\n\n @param store: site-store\n @type store: L{axiom.store.Store}\n\n @param username: the name a user signed up with\n @type username: C{unicode}\n\n @rtype: L{axiom.store.Store} or C{None}" | 1,120 | true | twisted/mantissa | _storeFromUsername | 27,852 | |
LDU_FT/fabaff/python-mystrom/reset_config | LDU_FT | [
"<BEGIN>\n## `set_color_hsv`",
"Turn the bulb on with the given values as HSV.\n<END>",
"<BEGIN>\n## `set_flashing`",
"Turn the bulb on, flashing with two colors.\n<END>",
"<BEGIN>\n## `read_config`",
"Read the current configuration of a myStrom device.\n<END>",
"<BEGIN>\n## `write_config`",
"Write th... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the reset_config API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extr... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the reset_config API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extr... | Reset the current configuration of a myStrom WiFi Button. | "Reset the current configuration of a myStrom WiFi Button." | 14 | false | fabaff/python-mystrom | reset_config | 27,853 | |
LDU_FT/collectiveacuity/labPack/subscribe | LDU_FT | [
"<BEGIN>\n## `_delete`",
"a helper method for non-blocking deletion of files\r",
" :param _file_path: string with path to file to remove \r\n :param _method_title: string with name of method calling _delete\r\n :param _record_key: string with name of record key to delete\r\n :return:... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the subscribe API.
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 subscribe API.
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... | a method to establish a mosquitto socket with server to receive position updates
:param callable: [optional] callable to process the received positions
:param block: [optional] boolean to block the main thread when method is called
:param port: [optional] integer with port to connec... | "a method to establish a mosquitto socket with server to receive position updates\n \n :param callable: [optional] callable to process the received positions\n :param block: [optional] boolean to block the main thread when method is called\n :param port: [optional] integer with port to c... | 886 | false | collectiveacuity/labPack | subscribe | 27,854 | |
LDU_FT/salesking/salesking_python_sdk/_value_is_type_text | 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 _value_is_type_text API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
T... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _value_is_type_text API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
T... | val is a dictionary
:param val:
:return: True/False | "val is a dictionary\n :param val:\n :return: True/False" | 69 | false | salesking/salesking_python_sdk | _value_is_type_text | 27,855 | |
LDU_FT/thomasleese/mo/resolve_variables | LDU_FT | [
"<BEGIN>\n## `serialise`",
"Take an object from the project or the runner and serialise it into a\n dictionary.",
" Parameters\n ----------\n obj : object\n An object to serialise.",
" Returns\n -------\n object\n A serialised version of t... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the resolve_variables API.
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 resolve_variables API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | Resolve task variables based on input variables and the default
values.
Raises
------
LookupError
If a variable is missing. | "Resolve task variables based on input variables and the default\n values.\n\n Raises\n ------\n LookupError\n If a variable is missing." | 17 | false | thomasleese/mo | resolve_variables | 27,856 | |
LDU_FT/maxalbert/tohu/update_with_tohu_generators | LDU_FT | [
"<BEGIN>\n## `augment_init_method`",
"Replace the existing cls.__init__() method with a new one which\n also initialises the field generators and similar bookkeeping.\n<END>",
"<BEGIN>\n## `find_field_generators`",
"Return dictionary with the names and instances of\n all tohu.BaseGenerator occurring in ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update_with_tohu_generators 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 update_with_tohu_generators API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclu... | Helper function which updates `field_gens` with any items in the
dictionary `adict` that are instances of `TohuUltraBaseGenerator`. | "Helper function which updates `field_gens` with any items in the\n dictionary `adict` that are instances of `TohuUltraBaseGenerator`." | 142 | false | maxalbert/tohu | update_with_tohu_generators | 27,857 | |
LDU_FT/CitrineInformatics/dftparse/transpose_list | LDU_FT | [
"<BEGIN>\n## `_parse_refraction`",
"Parse Energy [eV] ref_ind_xx ref_ind_zz extinct_xx extinct_zz\n<END>",
"<BEGIN>\n## `_is_kpoint`",
"Is this line the start of a new k-point block\n<END>",
"<BEGIN>\n## `_parse_kpoint`",
"Parse the k-point and then continue to iterate over the band energies and... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the transpose_list API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ex... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the transpose_list API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ex... | Transpose a list of dicts to a dict of lists
:param list_of_dicts: to transpose, as in the output from a parse call
:return: Dict of lists | "Transpose a list of dicts to a dict of lists\n\n :param list_of_dicts: to transpose, as in the output from a parse call\n :return: Dict of lists" | 25 | false | CitrineInformatics/dftparse | transpose_list | 27,858 | |
LDU_FT/EasyPost/pystalk/stats_tube | LDU_FT | [
"<BEGIN>\n## `from_uri`",
"Construct a synchronous Beanstalk Client from a URI.",
" The URI may be of the form beanstalk://host:port or beanstalkd://host:port",
" IPv6 literals must be wrapped in brackets as per RFC 2732.\n<END>",
"<BEGIN>\n## `_re_establish_use_watch`",
"Call after a close/... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the stats_tube API.
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 stats_tube API.
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... | Fetch statistics about a single tube
:param tube_name: Tube to fetch stats about
:rtype: dict | "Fetch statistics about a single tube\n\n :param tube_name: Tube to fetch stats about\n :rtype: dict" | 85 | false | EasyPost/pystalk | stats_tube | 27,859 | |
LDU_FT/denisenkom/pytds/close | LDU_FT | [
"<BEGIN>\n## `validate_host`",
"Validates host name against certificate",
" @param cert: Certificate returned by host\n @param name: Actual host name used for connection\n @return: Returns true if host name matches certificate\n<END>",
"<BEGIN>\n## `revert_to_clear`",
"Reverts connection back to no... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the close API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted d... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the close API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted d... | Close connection to an MS SQL Server.
This function tries to close the connection and free all memory used.
It can be called more than once in a row. No exception is raised in
this case. | "Close connection to an MS SQL Server.\n\n This function tries to close the connection and free all memory used.\n It can be called more than once in a row. No exception is raised in\n this case." | 210 | false | denisenkom/pytds | close | 27,860 | |
LDU_FT/rflamary/POT/sinkhorn | LDU_FT | [
"<BEGIN>\n## `plot1D_mat`",
"Plot matrix M with the source and target 1D distribution",
" Creates a subplot with the source distribution a on the left and\n target distribution b on the tot. The matrix M is shown in between.",
" Parameters\n ----------\n a : np.array, shape (na,)\n Sour... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the sinkhorn API.
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 sinkhorn API.
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... | Sinkhorn algorithm with fixed number of iteration (autograd) | "Sinkhorn algorithm with fixed number of iteration (autograd)" | 711 | false | rflamary/POT | sinkhorn | 27,861 | |
LDU_FT/TUNE-Archive/freight_forwarder/_reference_keys | LDU_FT | [
"<BEGIN>\n## `commercial_invoice`",
":param action:\n :param data_center:\n :param environment:\n :param transport_service:\n :param tagging_scheme:\n :return:\n<END>",
"<BEGIN>\n## `deploy_containers`",
"Deploy containers to specific container ship.\n 'restart_policy... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _reference_keys API.
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 _reference_keys API.
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... | Returns a list of all of keys for a given reference.
:param reference: a :string:
:rtype: A :list: of reference keys. | "Returns a list of all of keys for a given reference.\n\n :param reference: a :string:\n :rtype: A :list: of reference keys." | 132 | false | TUNE-Archive/freight_forwarder | _reference_keys | 27,862 | |
LDU_FT/vertexproject/synapse/puts | LDU_FT | [
"<BEGIN>\n## `openDatFile`",
"Open a file-like object using a pkg relative path.",
" Example:",
" fd = openDatFile('foopkg.barpkg/wootwoot.bin')\n<END>",
"<BEGIN>\n## `scrape`",
"Scrape types from a blob of text and return node tuples.",
" Args:\n text (str): Text to scrape.\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the puts API.
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 puts API.
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... | Add the structured data from items to the CryoTank.
Args:
items (list): A list of objects to store in the CryoTank.
seqn (iden, offs): An iden / offset pair to record.
Returns:
int: The ending offset of the items or seqn. | "Add the structured data from items to the CryoTank.\n\n Args:\n items (list): A list of objects to store in the CryoTank.\n seqn (iden, offs): An iden / offset pair to record.\n\n Returns:\n int: The ending offset of the items or seqn." | 1,135 | true | vertexproject/synapse | puts | 27,863 | |
LDU_FT/mitodl/pylti/verify_request | LDU_FT | [
"<BEGIN>\n## `_post_patched_request`",
"Authorization header needs to be capitalized for some LTI clients\n this function ensures that header is capitalized",
" :param body: body of the call\n :param client: OAuth Client\n :param url: outcome url\n :return: response\n<END>",
"<BEGIN>\n## `post_... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the verify_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 ex... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the verify_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 ex... | Verify LTI request
:raises: LTIException if request validation failed | "Verify LTI request\n\n :raises: LTIException if request validation failed" | 53 | false | mitodl/pylti | verify_request | 27,864 | |
LDU_FT/pymacaron/pymacaron-core/spawn_api | LDU_FT | [
"<BEGIN>\n## `merge`",
"Try merging all the bravado_core models across all loaded APIs. If\n duplicates occur, use the same bravado-core model to represent each, so\n bravado-core won't treat them as different models when passing them\n from one PyMacaron client stub to an other or when retur... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the spawn_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 extract... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the spawn_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 extract... | Auto-generate server endpoints implementing the API into this Flask app | "Auto-generate server endpoints implementing the API into this Flask app" | 33 | false | pymacaron/pymacaron-core | spawn_api | 27,865 | |
LDU_FT/wesm/feather/FilesBelongToSameModule | LDU_FT | [
"<BEGIN>\n## `IsErrorSuppressedByNolint`",
"Returns true if the specified error category is suppressed on this line.",
" Consults the global error_suppressions map populated by\n ParseNolintSuppressions/ResetNolintSuppressions.",
" Args:\n category: str, the category of the error.\n linenum: int, the... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the FilesBelongToSameModule 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 FilesBelongToSameModule API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion... | Check if these two filenames belong to the same module.
The concept of a 'module' here is a as follows:
foo.h, foo-inl.h, foo.cc, foo_test.cc and foo_unittest.cc belong to the
same 'module' if they are in the same directory.
some/path/public/xyzzy and some/path/internal/xyzzy are also considered
to belong to... | "Check if these two filenames belong to the same module.\n\n The concept of a 'module' here is a as follows:\n foo.h, foo-inl.h, foo.cc, foo_test.cc and foo_unittest.cc belong to the\n same 'module' if they are in the same directory.\n some/path/public/xyzzy and some/path/internal/xyzzy are also considered\n to be... | 104 | false | wesm/feather | FilesBelongToSameModule | 27,866 | |
LDU_FT/jedie/DragonPy/reformat_v09_trace | LDU_FT | [
"<BEGIN>\n## `create_environment`",
"Creates a new environment in ``home_dir``.",
" If ``site_packages`` is true, then the global ``site-packages/``\n directory will be on the path.",
" If ``clear`` is true (default False) then the environment will\n first be cleared.\n<END>",
"<BEGIN>\n## `path... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the reformat_v09_trace API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
Th... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the reformat_v09_trace API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
Th... | reformat v09 trace simmilar to XRoar one
and add CC and Memory-Information.
Note:
v09 traces contains the register info line one trace line later!
We reoder it as XRoar done: addr+Opcode with resulted registers | "reformat v09 trace simmilar to XRoar one\n and add CC and Memory-Information.\n\n Note:\n v09 traces contains the register info line one trace line later!\n We reoder it as XRoar done: addr+Opcode with resulted registers" | 223 | false | jedie/DragonPy | reformat_v09_trace | 27,867 | |
LDU_FT/bihealth/vcfpy/format_atomic | LDU_FT | [
"<BEGIN>\n## `make_virtual_offset`",
"Compute a BGZF virtual offset from block start and within block offsets.\n The BAM indexing scheme records read positions using a 64 bit\n 'virtual offset', comprising in C terms:\n block_start_offset << 16 | within_block_offset\n Here block_start_offset is the fi... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the format_atomic API.
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 format_atomic API.
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... | Format atomic value
This function also takes care of escaping the value in case one of the
reserved characters occurs in the value. | "Format atomic value\n\n This function also takes care of escaping the value in case one of the\n reserved characters occurs in the value." | 127 | false | bihealth/vcfpy | format_atomic | 27,868 | |
LDU_FT/cuducos/getgist/oauth_only | LDU_FT | [
"<BEGIN>\n## `run_getgist`",
"Passes user inputs to GetGist() and calls get()\n<END>",
"<BEGIN>\n## `run_getmy`",
"Shortcut for run_getgist() reading username from env var\n<END>",
"<BEGIN>\n## `run_putgist`",
"Passes user inputs to GetGist() and calls put()\n<END>",
"<BEGIN>\n## `get`",
"Reads the re... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the oauth_only API.
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 oauth_only API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extrac... | Decorator to restrict some GitHubTools methods to run only with OAuth | "Decorator to restrict some GitHubTools methods to run only with OAuth" | 44 | false | cuducos/getgist | oauth_only | 27,869 | |
LDU_FT/Paradoxis/PIP-Module-Scanner/output | LDU_FT | [
"<BEGIN>\n## `main`",
"Main entry point of the scanner\n :return: void\n<END>",
"<BEGIN>\n## `output`",
"Output the results to either STDOUT or\n :return:\n<END>",
"<BEGIN>\n## `output_to_fd`",
"Outputs the results of the scanner to a file descriptor (stdout counts :)\n :param fd: file\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the output API.
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 output API.
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 ... | Output the results to either STDOUT or
:return: | "Output the results to either STDOUT or\n :return:" | 12 | false | Paradoxis/PIP-Module-Scanner | output | 27,870 | |
LDU_FT/molpopgen/fwdpy11/dump_tables_to_tskit | LDU_FT | [
"<BEGIN>\n## `evolve_genomes`",
"Evolve a population without tree sequence recordings. In other words,\n complete genomes must be simulated and tracked.",
" :param rng: random number generator\n :type rng: :class:`fwdpy11.GSLrng`\n :param pop: A population\n :type pop: :class:`fwdpy11.DiploidPop... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the dump_tables_to_tskit 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 dump_tables_to_tskit API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | Converts fwdpy11.TableCollection to an
tskit.TreeSequence | "Converts fwdpy11.TableCollection to an\n tskit.TreeSequence" | 22 | false | molpopgen/fwdpy11 | dump_tables_to_tskit | 27,871 | |
LDU_FT/joealcorn/xbox/saved_from_user | LDU_FT | [
"<BEGIN>\n## `_get`",
"Makes a GET request, setting Authorization\n header by default\n<END>",
"<BEGIN>\n## `_post`",
"Makes a POST request, setting Authorization\n header by default\n<END>",
"<BEGIN>\n## `_post_json`",
"Makes a POST request, setting Authorization\n and Content-Type h... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the saved_from_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 e... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the saved_from_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 e... | Gets all clips 'saved' by a user.
:param user: :class:`~xbox.GamerProfile` instance
:param bool include_pending: whether to ignore clips that are not
yet uploaded. These clips will have thumbnails and media_url
set to ``None``
:returns: Iterator of :class:`~xbox.Clip` in... | "Gets all clips 'saved' by a user.\n\n :param user: :class:`~xbox.GamerProfile` instance\n :param bool include_pending: whether to ignore clips that are not\n yet uploaded. These clips will have thumbnails and media_url\n set to ``None``\n :returns: Iterator of :class:`~xbox.C... | 62 | false | joealcorn/xbox | saved_from_user | 27,872 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.