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/roclark/sportsreference/_retrieve_all_teams
LDU_FT
[ "<BEGIN>\n## `dataframe`", "Returns a ``pandas DataFrame`` containing all other relevant class\n properties and values for the specified game.\n<END>", "<BEGIN>\n## `_extract_player_stats`", "Combine all player stats into a single object.", " Since each player generally has a couple of rows wo...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _retrieve_all_teams 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 _retrieve_all_teams 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...
Find and create Team instances for all teams in the given season. For a given season, parses the specified NCAAF stats table and finds all requested stats. Each team then has a Team instance created which includes all requested stats and a few identifiers, such as the team's name and ab...
"Find and create Team instances for all teams in the given season.\n\n For a given season, parses the specified NCAAF stats table and finds\n all requested stats. Each team then has a Team instance created which\n includes all requested stats and a few identifiers, such as the team's\n name ...
588
false
roclark/sportsreference
_retrieve_all_teams
15,273
LDU_FT/FutunnOpen/futuquant/pack_req
LDU_FT
[ "<BEGIN>\n## `unpack_rsp`", "Convert from PLS response to user response\n<END>", "<BEGIN>\n## `getJsonPath`", "获取JSON配置文件的路径:\n 1. 优先从当前工作目录查找JSON文件\n 2. 若无法找到则前往模块所在目录查找\n<END>", "<BEGIN>\n## `set_client_info`", ".. py:function:: set_client_info(cls, client_id, client_ver)", " 设置调用api的客户端...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the pack_req API. 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 pack_req API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
Convert from user request for trading days to PLS request
"Convert from user request for trading days to PLS request"
288
false
FutunnOpen/futuquant
pack_req
15,274
LDU_FT/uw-it-aca/uw-restclients/get_sea_resource
LDU_FT
[ "<BEGIN>\n## `new_regid_custom_field`", "Return a BridgeCustomField object for REGID\n to be used in a POST, PATCH request\n<END>", "<BEGIN>\n## `get_reservations`", "Return a list of reservations matching the passed filter.\n Supported kwargs are listed at\n http://knowledge25.collegenet.com/display...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_sea_resource API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_sea_resource API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Get the requested resource or update resource using Seattle account :returns: http response with content in xml
"Get the requested resource or update resource using Seattle account\n :returns: http response with content in xml"
129
false
uw-it-aca/uw-restclients
get_sea_resource
15,275
LDU_FT/MIR-MU/ntcir-math-density/get_all_identifiers
LDU_FT
[ "<BEGIN>\n## `plot_estimates`", "Plots density, and probability estimates.", " Parameters\n ----------\n positions : iterable of float\n Paragraph positions for which densities, and probabilities were estimated.\n estimates : six-tuple of (sequence of float)\n Estimates of P(relevant),...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_all_identifiers API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_all_identifiers 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...
Extracts paragraph identifiers from a dataset in the NTCIR-11 Math-2, and NTCIR-12 MathIR XHTML5 format. Parameters ---------- dataset : Path A path to a dataset. Yields ------- (Path, str) A parent directory of a paragraph, and the identifier of the paragraph.
"Extracts paragraph identifiers from a dataset in the NTCIR-11 Math-2, and NTCIR-12 MathIR XHTML5\n format.\n\n Parameters\n ----------\n dataset : Path\n A path to a dataset.\n\n Yields\n -------\n (Path, str)\n A parent directory of a paragraph, and the identifier of the paragraph."
28
false
MIR-MU/ntcir-math-density
get_all_identifiers
15,276
LDU_FT/vcs-python/vcspull/expand_dir
LDU_FT
[ "<BEGIN>\n## `expand_dir`", "Return path with environmental variables and tilde ~ expanded.", " :param _dir:\n :type _dir: str\n :param cwd: current working dir (for deciphering relative _dir paths)\n :type cwd: str\n :rtype; str\n<END>", "<BEGIN>\n## `extract_repos`", "Return expanded config...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the expand_dir API. 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 expand_dir API. 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 path with environmental variables and tilde ~ expanded. :param _dir: :type _dir: str :param cwd: current working dir (for deciphering relative _dir paths) :type cwd: str :rtype; str
"Return path with environmental variables and tilde ~ expanded.\n\n :param _dir:\n :type _dir: str\n :param cwd: current working dir (for deciphering relative _dir paths)\n :type cwd: str\n :rtype; str"
29
false
vcs-python/vcspull
expand_dir
15,277
LDU_FT/liftoff/pyminifier/untokenize
LDU_FT
[ "<BEGIN>\n## `obfuscation_machine`", "A generator that returns short sequential combinations of lower and\n upper-case letters that will never repeat.", " If *use_unicode* is ``True``, use nonlatin cryllic, arabic, and syriac\n letters instead of the usual ABCs.", " The *identifier_length* represe...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the untokenize API. 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 untokenize API. 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...
Converts the output of tokenize.generate_tokens back into a human-readable string (that doesn't contain oddly-placed whitespace everywhere). .. note:: Unlike :meth:`tokenize.untokenize`, this function requires the 3rd and 4th items in each token tuple (though we can use lists *or* tuples).
"Converts the output of tokenize.generate_tokens back into a human-readable\n string (that doesn't contain oddly-placed whitespace everywhere).\n\n .. note::\n\n Unlike :meth:`tokenize.untokenize`, this function requires the 3rd and\n 4th items in each token tuple (though we can use lists *or* tuple...
160
false
liftoff/pyminifier
untokenize
15,278
LDU_FT/mmcauliffe/Conch-sounds/dct_spectrum
LDU_FT
[ "<BEGIN>\n## `lpc_ref`", "Compute the Linear Prediction Coefficients.", " Return the order + 1 LPC coefficients for the signal. c = lpc(x, k) will\n find the k+1 coefficients of a k order linear filter:", " xp[n] = -c[1] * x[n-2] - ... - c[k-1] * x[n-k-1]", " Such as the sum of the squared-err...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the dct_spectrum API. 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 dct_spectrum API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
Convert a spectrum into a cepstrum via type-III DCT (following HTK). Parameters ---------- spec : array Spectrum to perform a DCT on. Returns ------- array Cepstrum of the input spectrum.
"Convert a spectrum into a cepstrum via type-III DCT (following HTK).\n\n Parameters\n ----------\n spec : array\n Spectrum to perform a DCT on.\n\n Returns\n -------\n array\n Cepstrum of the input spectrum."
63
false
mmcauliffe/Conch-sounds
dct_spectrum
15,279
LDU_FT/BlueBrain/NeuroM/section_meander_angles
LDU_FT
[ "<BEGIN>\n## `_get_type`", "get the type of the soma", " Args:\n points: Soma points\n soma_class(str): one of 'contour' or 'cylinder' to specify the type\n<END>", "<BEGIN>\n## `make_soma`", "Make a soma object from a set of points", " Infers the soma type (SomaSinglePoint, SomaSimpleC...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the section_meander_angles 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 section_meander_angles API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
Inter-segment opening angles in a section
"Inter-segment opening angles in a section"
706
false
BlueBrain/NeuroM
section_meander_angles
15,280
LDU_FT/kmadac/bitstamp-python-client/litecoin_withdrawal
LDU_FT
[ "<BEGIN>\n## `_construct_url`", "Adds the orderbook to the url if base and quote are specified.\n<END>", "<BEGIN>\n## `_request`", "Make a generic request, adding in any proxy defined by the instance.", " Raises a ``requests.HTTPError`` if the response status isn't 200, and\n raises a :class:`...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the litecoin_withdrawal 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 litecoin_withdrawal 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...
Send litecoins to another litecoin wallet specified by address.
"Send litecoins to another litecoin wallet specified by address."
47
false
kmadac/bitstamp-python-client
litecoin_withdrawal
15,281
LDU_FT/mottosso/be/should_bypass_proxies
LDU_FT
[ "<BEGIN>\n## `pager`", "Decide what method to use for paging through text.\n<END>", "<BEGIN>\n## `from_int`", "Backwards-compatibility for the old retries format.\n<END>", "<BEGIN>\n## `get_backoff_time`", "Formula for computing the current backoff", " :rtype: float\n<END>", "<BEGIN>\n## `is_fo...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the should_bypass_proxies 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 should_bypass_proxies API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Returns whether we should bypass proxies or not.
"Returns whether we should bypass proxies or not."
359
false
mottosso/be
should_bypass_proxies
15,282
LDU_FT/skoczen/will/image_me
LDU_FT
[ "<BEGIN>\n## `talk_back`", "that's what she said: Tells you some things she actually said. :)\n<END>", "<BEGIN>\n## `auto_key`", "This method attempts to auto-generate a unique cryptographic key based on the hardware ID.\n It should *NOT* be used in production, or to replace a proper key, but it can help g...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the image_me API. 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 image_me API. 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...
image me ___ : Search google images for ___, and post a random one.
"image me ___ : Search google images for ___, and post a random one."
40
false
skoczen/will
image_me
15,283
LDU_FT/squaresLab/BugZoo/copy_from
LDU_FT
[ "<BEGIN>\n## `is_installed`", "Determines whether the Docker image for a given bug has been installed\n on the server.\n<END>", "<BEGIN>\n## `register`", "Dynamically registers a given bug with the server. Note that the\n registration will not persist beyond the lifetime of the server.\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the copy_from API. 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 copy_from API. 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...
Copies a given file from the container to a specified location on the host machine.
"Copies a given file from the container to a specified location on the\n host machine."
247
false
squaresLab/BugZoo
copy_from
15,284
LDU_FT/echinopsii/net.echinopsii.ariane.community.cli.python3/find_ip_address
LDU_FT
[ "<BEGIN>\n## `find_location`", "find the location according location id (prioritary) or location name\n :param loc_id: the location id\n :param loc_name: the location name\n :return: found location or None if not found\n<END>", "<BEGIN>\n## `json_2_location`", "transform JSON obj coming f...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_ip_address API. 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 find_ip_address API. 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...
find the IP Address (ipa) according ipa id (prioritary) or ipa ipAddress :param ipa_id: the IP Address id :param ipa_ip_address: the IP Address :return: found IP Address or None if not found
"find the IP Address (ipa) according ipa id (prioritary) or ipa ipAddress\n :param ipa_id: the IP Address id\n :param ipa_ip_address: the IP Address\n :return: found IP Address or None if not found"
303
false
echinopsii/net.echinopsii.ariane.community.cli.python3
find_ip_address
15,285
LDU_FT/UDST/orca/_dict_value_to_pairs
LDU_FT
[ "<BEGIN>\n## `import_file`", "Import a file that will trigger the population of Orca.", " Parameters\n ----------\n filename : str\n<END>", "<BEGIN>\n## `check_is_table`", "Decorator that will check whether the \"table_name\" keyword argument\n to the wrapped function matches a registered Orca t...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _dict_value_to_pairs 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 _dict_value_to_pairs API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Takes the first value of a dictionary (which it self should be a dictionary) and turns it into a series of {key: value} dicts. For example, _dict_value_to_pairs({'c': {'a': 1, 'b': 2}}) will yield {'a': 1} and {'b': 2}.
"Takes the first value of a dictionary (which it self should be\n a dictionary) and turns it into a series of {key: value} dicts.\n\n For example, _dict_value_to_pairs({'c': {'a': 1, 'b': 2}}) will yield\n {'a': 1} and {'b': 2}."
223
false
UDST/orca
_dict_value_to_pairs
15,286
LDU_FT/SeabornGames/RequestClient/put
LDU_FT
[ "<BEGIN>\n## `reinstantiate_endpoints`", "This will re-instantiate the endpoints with the connection this time\n :param endpoint: Endpoint object to instantiate the sub endpoint in.\n :return: None\n<END>", "<BEGIN>\n## `_pre_process_call`", "This is called by the method_decorator within...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the put API. 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 put API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
:param deposit_account_id: int of the account_id to deposit the money to :param amount: float of the amount to transfer :param receipt: str of the validated receipt that money has been received :return: Transfer dict
":param deposit_account_id: int of the account_id to deposit the money to\n :param amount: float of the amount to transfer\n :param receipt: str of the validated receipt that money has been received\n :return: Transfer dict"
148
false
SeabornGames/RequestClient
put
15,287
LDU_FT/mailund/statusbar/add_status_line
LDU_FT
[ "<BEGIN>\n## `set_progress_brackets`", "Set brackets to set around a progress bar.\n<END>", "<BEGIN>\n## `add_progress`", "Add a section of progress to the progressbar.", " The progress is captured by \"count\" and displayed as a fraction\n of the statusbar width proportional to this count ove...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_status_line API. 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 add_status_line API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
Add a status bar line to the table. This function returns the status bar and it can be modified from this return value.
"Add a status bar line to the table.\n\n This function returns the status bar and it can be modified\n from this return value."
26
false
mailund/statusbar
add_status_line
15,288
LDU_FT/mapbox/mapbox-sdk-py/encode_polyline
LDU_FT
[ "<BEGIN>\n## `_geom_points`", "GeoJSON geometry to a sequence of point tuples\n<END>", "<BEGIN>\n## `read_points`", "Iterable of features to a sequence of point tuples\n Where \"features\" can be either GeoJSON mappings\n or objects implementing the geo_interface\n<END>", "<BEGIN>\n## `encode_waypoint...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the encode_polyline API. 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 encode_polyline API. 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...
Encode and iterable of features as a polyline
"Encode and iterable of features as a polyline"
212
false
mapbox/mapbox-sdk-py
encode_polyline
15,289
LDU_FT/alvations/lazyme/remove_text_inside_brackets
LDU_FT
[ "<BEGIN>\n## `iter_paragraph`", "A helper function to iterate through the diff types of Wikipedia data inputs.\n :param arguments: The docopt arguments\n :type arguments: dict\n :return: A generator yielding a pargraph of text for each iteration.\n<END>", "<BEGIN>\n## `deduplicate`", "From http://sta...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the remove_text_inside_brackets 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 remove_text_inside_brackets API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclu...
From http://stackoverflow.com/a/14603508/610569
"From http://stackoverflow.com/a/14603508/610569"
27
false
alvations/lazyme
remove_text_inside_brackets
15,290
LDU_FT/AustralianSynchrotron/lightflow/get
LDU_FT
[ "<BEGIN>\n## `is_connected`", "Returns the connection status of the data store.", " Returns:\n bool: ``True`` if the data store is connected to the MongoDB server.\n<END>", "<BEGIN>\n## `connect`", "Establishes a connection to the MongoDB server.", " Use the MongoProxy library in ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
Return the field specified by its key from the specified section. This method access the specified section of the workflow document and returns the value for the given key. Args: key (str): The key pointing to the value that should be retrieved. It supports MongoDB'...
"Return the field specified by its key from the specified section.\n\n This method access the specified section of the workflow document and returns the\n value for the given key.\n\n Args:\n key (str): The key pointing to the value that should be retrieved. It supports\n ...
404
false
AustralianSynchrotron/lightflow
get
15,291
LDU_FT/timkpaine/lantern/script_post_save
LDU_FT
[ "<BEGIN>\n## `list_to_cells`", "convert list of cells to notebook form\n list should be of the form:\n [[list of strings representing python code for cell]]\n<END>", "<BEGIN>\n## `align_yaxis_np`", "Align zeros of the two axes, zooming them out by same ratio\n<END>", "<BEGIN>\n## `make_dash_table`", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the script_post_save API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the script_post_save API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
convert notebooks to Python script after save with nbconvert replaces `ipython notebook --script`
"convert notebooks to Python script after save with nbconvert\n\n replaces `ipython notebook --script`"
15
false
timkpaine/lantern
script_post_save
15,292
LDU_FT/MozillaSecurity/fuzzfetch/_revision_url
LDU_FT
[ "<BEGIN>\n## `_si`", "Format a number using base-2 SI prefixes\n<END>", "<BEGIN>\n## `_extract_file`", "Extract files while explicitly setting the proper permissions\n<END>", "<BEGIN>\n## `build_string`", "Taskcluster denotes builds in one of two formats - i.e. linux64-asan or linux64-asan-opt\n Th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _revision_url API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _revision_url API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
Retrieve the URL for revision based builds
"Retrieve the URL for revision based builds"
60
false
MozillaSecurity/fuzzfetch
_revision_url
15,293
LDU_FT/PyMySQL/mysqlclient-python/set_sql_mode
LDU_FT
[ "<BEGIN>\n## `numeric_part`", "Returns the leading numeric part of a string.", " >>> numeric_part(\"20-alpha\")\n 20\n >>> numeric_part(\"foo\")\n >>> numeric_part(\"16b\")\n 16\n<END>", "<BEGIN>\n## `literal`", "If o is a single object, returns an SQL literal as a string.\n If o is a ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_sql_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 extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_sql_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 extr...
Set the connection sql_mode. See MySQL documentation for legal values.
"Set the connection sql_mode. See MySQL documentation for\n legal values."
30
false
PyMySQL/mysqlclient-python
set_sql_mode
15,294
LDU_FT/redhat-openstack/python-tripleo-helper/load_instackenv
LDU_FT
[ "<BEGIN>\n## `start`", "Start the ssh client and connect to the host.", " It will wait until the ssh service is available during 90 seconds.\n If it doesn't succed to connect then the function will raise\n an SSHException.\n<END>", "<BEGIN>\n## `run`", "Run a command on the remote host....
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load_instackenv API. 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 load_instackenv API. 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...
Load the instackenv.json file and wait till the ironic nodes are ready. TODO(Gonéri): should be splitted, write_instackenv() to generate the instackenv.json and instackenv_import() for the rest.
"Load the instackenv.json file and wait till the ironic nodes are ready.\n TODO(Gonéri): should be splitted, write_instackenv() to generate the\n instackenv.json and instackenv_import() for the rest."
82
false
redhat-openstack/python-tripleo-helper
load_instackenv
15,295
LDU_FT/balloob/pychromecast/new_socket
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 new_socket API. 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 new_socket API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
Create a new socket with OS-specific parameters Try to set SO_REUSEPORT for BSD-flavored systems if it's an option. Catches errors if not.
"Create a new socket with OS-specific parameters\n\n Try to set SO_REUSEPORT for BSD-flavored systems if it's an option.\n Catches errors if not."
145
false
balloob/pychromecast
new_socket
15,296
LDU_FT/LEMS/pylems/parse_transition
LDU_FT
[ "<BEGIN>\n## `toxml`", "Exports this object into a LEMS XML object\n<END>", "<BEGIN>\n## `toxml`", "Exports this object into a LEMS XML object\n<END>", "<BEGIN>\n## `tokenize`", "Tokenizes the string stored in the parser object into a list\n of tokens.\n<END>", "<BEGIN>\n## `parse_token_list_rec`...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_transition API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_transition API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Parses <Transition> @param node: Node containing the <Transition> element @type node: xml.etree.Element
"Parses <Transition>\n\n @param node: Node containing the <Transition> element\n @type node: xml.etree.Element"
441
false
LEMS/pylems
parse_transition
15,297
LDU_FT/gccxml/pygccxml/configuration_signature
LDU_FT
[ "<BEGIN>\n## `is_str`", "Python 2 and 3 compatible string checker.", " Args:\n string (str | basestring): the string to check", " Returns:\n bool: True or False\n<END>", "<BEGIN>\n## `find_xml_generator`", "Try to find a c++ parser (xml generator)", " Args:\n name (str): na...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the configuration_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...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the configuration_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...
Return a signature for a configuration (xml_generator_configuration_t) object. This can then be used as a key in the cache. This method must take into account anything about a configuration that could cause the declarations generated to be different between runs.
"Return a signature for a configuration (xml_generator_configuration_t)\n object.\n\n This can then be used as a key in the cache.\n This method must take into account anything about\n a configuration that could cause the declarations generated\n to be different between runs."
481
false
gccxml/pygccxml
configuration_signature
15,298
LDU_FT/erikvw/django-collect-offline/serialize_history_on_post_create
LDU_FT
[ "<BEGIN>\n## `save`", "Saves a deserialized model object.", " Uses save_base to avoid running code in model.save() and\n to avoid triggering signals (if raw=True).\n<END>", "<BEGIN>\n## `deserialize_transactions`", "Deserializes the encrypted serialized model\n instances, tx, in a queryset of t...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the serialize_history_on_post_create API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its c...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the serialize_history_on_post_create API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its c...
Serialize the history instance as an OutgoingTransaction. Skip those not registered.
"Serialize the history instance as an OutgoingTransaction.\n\n Skip those not registered."
43
false
erikvw/django-collect-offline
serialize_history_on_post_create
15,299
LDU_FT/lsst-sqre/documenteer/process_pending_config_xref_nodes
LDU_FT
[ "<BEGIN>\n## `run`", "Main entrypoint method.", " Returns\n -------\n new_nodes : `list`\n Nodes to add to the doctree.\n<END>", "<BEGIN>\n## `main`", "stack-docs is a CLI for building LSST Stack documentation, such as\n pipelines.lsst.io.", " This command should be r...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the process_pending_config_xref_nodes 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 process_pending_config_xref_nodes API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its ...
Process the ``pending_config_xref`` nodes during the ``doctree-resolved`` event to insert links to the locations of ``lsst-config-topic`` directives. See also -------- `config_ref_role` `ConfigTopicTargetDirective` `pending_config_xref`
"Process the ``pending_config_xref`` nodes during the ``doctree-resolved``\n event to insert links to the locations of ``lsst-config-topic`` directives.\n\n See also\n --------\n `config_ref_role`\n `ConfigTopicTargetDirective`\n `pending_config_xref`"
430
false
lsst-sqre/documenteer
process_pending_config_xref_nodes
15,300
LDU_FT/invenia/Arbiter/start_task
LDU_FT
[ "<BEGIN>\n## `create_task`", "Create a task object\n name: The name of the task.\n function: The actual task function. It should take no arguments,\n and return a False-y value if it fails.\n dependencies: (optional, ()) Any dependencies that this task relies\n on.\n<END>", "<BEGIN>\n## `...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the start_task API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the start_task API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
Start a task. Returns the task that was started (or None if no task has been started). name: (optional, None) The task to start. If a name is given, Scheduler will attempt to start the task (and raise an exception if the task doesn't exist or isn't runnable). If ...
"Start a task.\n\n Returns the task that was started (or None if no task has been\n started).\n\n name: (optional, None) The task to start. If a name is given,\n Scheduler will attempt to start the task (and raise an\n exception if the task doesn't exist or isn't runnable)...
50
false
invenia/Arbiter
start_task
15,301
LDU_FT/pycontribs/pyrax/list
LDU_FT
[ "<BEGIN>\n## `resize`", "Resize the volume to the specified size (in GB).\n<END>", "<BEGIN>\n## `get`", "This additional code is necessary to properly return the 'volume'\n attribute of the instance as a CloudDatabaseVolume object instead of\n a raw dict.\n<END>", "<BEGIN>\n## `_create_body`",...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the 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 extracted do...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the 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 extracted do...
Returns a list of resource objects. Pagination is supported through the optional 'marker' and 'limit' parameters. Filtering the returned value is possible by specifying values for any of the other parameters.
"Returns a list of resource objects. Pagination is supported through the\n optional 'marker' and 'limit' parameters. Filtering the returned value\n is possible by specifying values for any of the other parameters."
1,326
true
pycontribs/pyrax
list
15,302
LDU_FT/warner/magic-wormhole/receive
LDU_FT
[ "<BEGIN>\n## `receive`", "I implement 'wormhole receive'. I return a Deferred that fires with\n None (for success), or signals one of the following errors:\n * WrongPasswordError: the two sides didn't use matching passwords\n * Timeout: something didn't happen fast enough for our tastes\n * TransferEr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the receive API. 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 receive API. 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...
I implement 'wormhole receive'. I return a Deferred that fires with None (for success), or signals one of the following errors: * WrongPasswordError: the two sides didn't use matching passwords * Timeout: something didn't happen fast enough for our tastes * TransferError: the sender rejected the transfe...
"I implement 'wormhole receive'. I return a Deferred that fires with\n None (for success), or signals one of the following errors:\n * WrongPasswordError: the two sides didn't use matching passwords\n * Timeout: something didn't happen fast enough for our tastes\n * TransferError: the sender rejected the tr...
36
false
warner/magic-wormhole
receive
15,303
LDU_FT/tjcsl/cslbot/cmd
LDU_FT
[ "<BEGIN>\n## `cmd`", "Babbles like a user\n Syntax: {command} [nick] [--length <1|2>] [--start <word>]\n<END>", "<BEGIN>\n## `cmd`", "Gets a random distro.", " Syntax: {command}\n<END>", "<BEGIN>\n## `cmd`", "Returns the Discordian date.", " Syntax: {command}\n<END>", "<BEGIN>\n## `cmd`", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the cmd API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the cmd API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
Flips a coin a number of times. Syntax: {command} [number]
"Flips a coin a number of times.\n\n Syntax: {command} [number]"
357
false
tjcsl/cslbot
cmd
15,304
LDU_FT/refinery29/chassis/_verify_create_args
LDU_FT
[ "<BEGIN>\n## `detect_circle`", "Wrapper for recursive _detect_circle function\n<END>", "<BEGIN>\n## `_detect_circle`", "Recursively iterate over nodes checking\n if we've traveled to that node before.\n<END>", "<BEGIN>\n## `_do`", "Recursive method to instantiate services\n<END>", "<BEGIN>\n## `_...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _verify_create_args API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _verify_create_args API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
Verifies a subset of the arguments to create()
"Verifies a subset of the arguments to create()"
75
false
refinery29/chassis
_verify_create_args
15,305
LDU_FT/kristianfoerster/melodist/fit_bristow_campbell_params
LDU_FT
[ "<BEGIN>\n## `calc_precipitation_stats`", "Calculates precipitation statistics for the cascade model while aggregating hourly observations", " Parameters\n ----------\n months : Months for each seasons to be used for statistics (array of numpy array, default=1-12, e.g., [np.arange(12...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the fit_bristow_campbell_params 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 fit_bristow_campbell_params API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclu...
Fit the A and C parameters for the Bristow & Campbell (1984) model using observed daily minimum and maximum temperature and mean daily (e.g. aggregated from hourly values) solar radiation. Parameters ---------- tmin : Series Observed daily minimum temperature. tmax : Series ...
"Fit the A and C parameters for the Bristow & Campbell (1984) model using observed daily\r\n minimum and maximum temperature and mean daily (e.g. aggregated from hourly values) solar\r\n radiation.\r\n\r\n Parameters\r\n ----------\r\n tmin : Series\r\n Observed daily minimum temperature.\r\n\r\n ...
205
false
kristianfoerster/melodist
fit_bristow_campbell_params
15,306
LDU_FT/mattjj/pylds/symm_block_tridiag_matmul
LDU_FT
[ "<BEGIN>\n## `symm_block_tridiag_matmul`", "Compute matrix-vector product with a symmetric block\n tridiagonal matrix H and vector v.", " :param H_diag: block diagonal terms of H\n :param H_upper_diag: upper block diagonal terms of H\n :param v: vector to multiple\n :ret...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the symm_block_tridiag_matmul API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the symm_block_tridiag_matmul API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi...
Compute matrix-vector product with a symmetric block tridiagonal matrix H and vector v. :param H_diag: block diagonal terms of H :param H_upper_diag: upper block diagonal terms of H :param v: vector to multiple :return: H * v
"Compute matrix-vector product with a symmetric block\n tridiagonal matrix H and vector v.\n\n :param H_diag: block diagonal terms of H\n :param H_upper_diag: upper block diagonal terms of H\n :param v: vector to multiple\n :return: H * v"
53
false
mattjj/pylds
symm_block_tridiag_matmul
15,307
LDU_FT/jhuapl-boss/intern/get_user_roles
LDU_FT
[ "<BEGIN>\n## `list_groups`", "Get the groups the logged in user is a member of.", " Optionally filter by 'member' or 'maintainer'.", " Args:\n filtr (string|None): ['member'|'maintainer'] or defaults to None.\n url_prefix (string): Protocol + host such as https://api.thebos...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_user_roles API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_user_roles API. 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...
Get roles associated with the given user. Args: user (string): User name. Returns: (list): List of roles that user has. Raises: requests.HTTPError on failure.
"Get roles associated with the given user.\n\n Args:\n user (string): User name.\n\n Returns:\n (list): List of roles that user has.\n\n Raises:\n requests.HTTPError on failure."
451
false
jhuapl-boss/intern
get_user_roles
15,308
LDU_FT/brbsix/subnuker/open
LDU_FT
[ "<BEGIN>\n## `getch`", "Request a single character input from the user.\n<END>", "<BEGIN>\n## `ismatch`", "Test whether text contains string or matches regex.\n<END>", "<BEGIN>\n## `parse`", "Parse command-line arguments. Arguments may consist of any\n combination of directories, files, and options.\n<...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the open API. 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 open API. 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...
Open the subtitle file into an Aeidon project.
"Open the subtitle file into an Aeidon project."
36
false
brbsix/subnuker
open
15,309
LDU_FT/neo4j/neo4j-python-driver/index
LDU_FT
[ "<BEGIN>\n## `basic_auth`", "Generate a basic auth token for a given user and password.", " :param user: user name\n :param password: current password\n :param realm: specifies the authentication provider\n :return: auth token for use with :meth:`GraphDatabase.driver`\n<END>", "<BEGIN>\n## `custom...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the index API. 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 index API. 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...
Return the index of the given item. :param key: :return:
"Return the index of the given item.\n\n :param key:\n :return:"
133
false
neo4j/neo4j-python-driver
index
15,310
LDU_FT/erikrose/nose-progressive/cmdloop
LDU_FT
[ "<BEGIN>\n## `format_traceback`", "Return an iterable of formatted Unicode traceback frames.", " Also include a pseudo-frame at the end representing the exception itself.", " Format things more compactly than the stock formatter, and make every\n frame an editor shortcut.\n<END>", "<BEGIN>\n## `ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the cmdloop API. 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 cmdloop API. 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...
Call pdb's cmdloop, making readline work. Patch raw_input so it sees the original stdin and stdout, lest readline refuse to work. The C implementation of raw_input uses readline functionality only if both stdin and stdout are from a terminal AND are FILE*s (not PyObject*s): http://bugs.python.org/...
"Call pdb's cmdloop, making readline work.\n\n Patch raw_input so it sees the original stdin and stdout, lest\n readline refuse to work.\n\n The C implementation of raw_input uses readline functionality only if\n both stdin and stdout are from a terminal AND are FILE*s (not\n PyObject*s): http://bugs.pyt...
65
false
erikrose/nose-progressive
cmdloop
15,311
LDU_FT/Miserlou/django-knockout-modeler/ko_model
LDU_FT
[ "<BEGIN>\n## `get_fields`", "Returns a Model's knockout_fields,\n or the default set of field names.\n<END>", "<BEGIN>\n## `get_object_data`", "Given an object and a list of fields, recursively build an object for serialization.", " Returns a dictionary.\n<END>", "<BEGIN>\n## `ko_model`", "Given a...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the ko_model API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the ko_model API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
Given a model, returns the Knockout Model and the Knockout ViewModel. Takes optional field names and data.
"Given a model, returns the Knockout Model and the Knockout ViewModel.\n Takes optional field names and data."
16
false
Miserlou/django-knockout-modeler
ko_model
15,312
LDU_FT/ploneintranet/ploneintranet.workspace/users
LDU_FT
[ "<BEGIN>\n## `get_storage`", "helper function to get annotation storage on the portal", " :param clear: If true is passed in, annotations will be cleared\n :returns: portal annotations\n :rtype: IAnnotations\n<END>", "<BEGIN>\n## `send_email`", "helper function to send an email with the sender pres...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the 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 extracted d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the 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 extracted d...
Get current users and add in any search results. :returns: a list of dicts with keys - id - title :rtype: list
"Get current users and add in any search results.\n\n :returns: a list of dicts with keys\n - id\n - title\n :rtype: list"
53
false
ploneintranet/ploneintranet.workspace
users
15,313
LDU_FT/pennersr/django-allauth/save_user
LDU_FT
[ "<BEGIN>\n## `_stash_user`", "Now, be aware, the following is quite ugly, let me explain:", " Even if the user credentials match, the authentication can fail because\n Django's default ModelBackend calls user_can_authenticate(), which\n checks `is_active`. Now, earlier versions of allauth d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the save_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 extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the save_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 extract...
Saves a new `User` instance using information provided in the signup form.
"Saves a new `User` instance using information provided in the\n signup form."
130
false
pennersr/django-allauth
save_user
15,314
LDU_FT/kvesteri/postgresql-audit/add_column
LDU_FT
[ "<BEGIN>\n## `alter_column`", "Run given callable against given table and given column in activity table\n jsonb data columns. This function is useful when you want to reflect type\n changes in your schema to activity table.", " In the following example we change the data type of User's age column from...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_column API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_column API. 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...
Adds given column to `activity` table jsonb data columns. In the following example we reflect the changes made to our schema to activity table. :: import sqlalchemy as sa from alembic import op from postgresql_audit import add_column def upgrade(): op.add_col...
"Adds given column to `activity` table jsonb data columns.\n\n In the following example we reflect the changes made to our schema to\n activity table.\n\n ::\n\n import sqlalchemy as sa\n from alembic import op\n from postgresql_audit import add_column\n\n\n def upgrade():\n ...
40
false
kvesteri/postgresql-audit
add_column
15,315
LDU_FT/moluwole/Bast/controller_creatr
LDU_FT
[ "<BEGIN>\n## `get_config`", "Gets the config from the os.environ. This is used to create the config dict for use by the ORM\n :return: str, dict\n<END>", "<BEGIN>\n## `check_packages`", "Check if the driver for the user defined host is available. If it is not available, download it using PIP\n :...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the controller_creatr API. 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 controller_creatr API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Name of the controller file to be created
"Name of the controller file to be created"
59
false
moluwole/Bast
controller_creatr
15,316
LDU_FT/mailgun/talon/preprocess
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 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...
Prepares msg_body for being stripped. Replaces link brackets so that they couldn't be taken for quotation marker. Splits line in two if splitter pattern preceded by some text on the same line (done only for 'On <date> <person> wrote:' pattern). Converts msg_body into a unicode.
"Prepares msg_body for being stripped.\n\n Replaces link brackets so that they couldn't be taken for quotation marker.\n Splits line in two if splitter pattern preceded by some text on the same\n line (done only for 'On <date> <person> wrote:' pattern).\n\n Converts msg_body into a unicode."
140
false
mailgun/talon
preprocess
15,317
LDU_FT/cohorte/cohorte-herald/__safe_callback
LDU_FT
[ "<BEGIN>\n## `main`", "Runs the framework", " :param http_port: HTTP port to listen to\n :param peer_name: Name of the peer\n :param node_name: Name (also, UID) of the node hosting the peer\n :param app_id: Application ID\n<END>", "<BEGIN>\n## `_get_link`", "Returns a link to the given peer", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the __safe_callback API. 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 __safe_callback API. 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...
Safe use of the callback method, to avoid errors propagation :param room_data: A RoomData object
"Safe use of the callback method, to avoid errors propagation\n\n :param room_data: A RoomData object"
110
false
cohorte/cohorte-herald
__safe_callback
15,318
LDU_FT/cthoyt/onto2nx/getSKOSDirectSubs
LDU_FT
[ "<BEGIN>\n## `parse_owl_rdf`", "Parses an OWL resource that's encoded in OWL/RDF into a NetworkX directional graph", " :param str iri: The location of the OWL resource to be parsed by Ontospy\n :type iri: str\n :rtype: network.DiGraph\n<END>", "<BEGIN>\n## `get_or_create_home_repo`", "Check to make...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the getSKOSDirectSubs API. 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 getSKOSDirectSubs API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
2015-08-19: currenlty not used, inferred from above
"2015-08-19: currenlty not used, inferred from above"
102
false
cthoyt/onto2nx
getSKOSDirectSubs
15,319
LDU_FT/martinpitt/python-dbusmock/add_netreg_api
LDU_FT
[ "<BEGIN>\n## `AddAdapter`", "Convenience method to add a Bluetooth adapter", " You have to specify a device name which must be a valid part of an object\n path, e. g. \"hci0\", and an arbitrary system name (pretty hostname).", " Returns the new object path.\n<END>", "<BEGIN>\n## `AddDevice`", "Co...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_netreg_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 ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_netreg_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 ex...
Add org.ofono.NetworkRegistration API to a mock
"Add org.ofono.NetworkRegistration API to a mock"
188
false
martinpitt/python-dbusmock
add_netreg_api
15,320
LDU_FT/getfleety/coralillo/validate
LDU_FT
[ "<BEGIN>\n## `snake_case`", "Takes a string that represents for example a class name and returns\n the snake case version of it. It is used for model-to-key conversion\n<END>", "<BEGIN>\n## `value_or_default`", "Returns the given value or the specified default value for this\n field\n<END>", "<BEG...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the validate API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the validate API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
Validates the data received as keyword arguments whose name match this class attributes.
"Validates the data received as keyword arguments whose name match\n this class attributes."
62
false
getfleety/coralillo
validate
15,321
LDU_FT/scivision/pymap3d/eci2geodetic
LDU_FT
[ "<BEGIN>\n## `anglesep_meeus`", "Parameters\n ----------", " lon0 : float or numpy.ndarray of float\n longitude of first point\n lat0 : float or numpy.ndarray of float\n latitude of first point\n lon1 : float or numpy.ndarray of float\n longitude of second point\n lat1 : floa...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the eci2geodetic API. 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 eci2geodetic API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
convert ECI to geodetic coordinates Parameters ---------- eci : tuple of float [meters] Nx3 target ECI location (x,y,z) t : datetime.datetime, float length N vector of datetime OR greenwich sidereal time angle [radians]. Results ------- lat : float geodetic la...
"convert ECI to geodetic coordinates\n\n Parameters\n ----------\n eci : tuple of float\n [meters] Nx3 target ECI location (x,y,z)\n t : datetime.datetime, float\n length N vector of datetime OR greenwich sidereal time angle [radians].\n\n Results\n -------\n lat : float\n ...
293
false
scivision/pymap3d
eci2geodetic
15,322
LDU_FT/maas/python-libmaas/as_machine
LDU_FT
[ "<BEGIN>\n## `calculate_dict_diff`", "Return the parameters based on the difference.", " If a parameter exists in `old_params` but not in `new_params` then\n parameter will be set to an empty string.\n<END>", "<BEGIN>\n## `datum_to_value`", "Convert a given MAAS-side datum to a Python-side value.", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the as_machine API. 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 as_machine API. 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 to a `Machine` object. `node_type` must be `NodeType.MACHINE`.
"Convert to a `Machine` object.\n\n `node_type` must be `NodeType.MACHINE`."
452
false
maas/python-libmaas
as_machine
15,323
LDU_FT/Julius2342/pyvlx/handle_frame
LDU_FT
[ "<BEGIN>\n## `add`", "Add Node, replace existing node if node with node_id is present.\n<END>", "<BEGIN>\n## `load`", "Load nodes from KLF 200, if no node_id is specified all nodes are loaded.\n<END>", "<BEGIN>\n## `handle_frame`", "Handle incoming API frame, return True if this was the expected frame.\n<...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the handle_frame API. 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 handle_frame API. 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...
Handle incoming API frame, return True if this was the expected frame.
"Handle incoming API frame, return True if this was the expected frame."
74
false
Julius2342/pyvlx
handle_frame
15,324
LDU_FT/axltxl/m2bk/_mongodump_exec
LDU_FT
[ "<BEGIN>\n## `chkstr`", "Small routine for checking whether a string is empty\n even a string", " :param s: the string in question\n :param v: variable name\n<END>", "<BEGIN>\n## `load`", "Load this driver", " Note that if either aws_access_key_id or aws_secret_access_key are\n not specifie...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _mongodump_exec API. 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 _mongodump_exec API. 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...
Run mongodump on a database :param address: server host name or IP address :param port: server port :param user: user name :param passwd: password :param db: database name :param out_dir: output directory :param auth_db: authentication database :param dry_run: dry run mode :raises O...
"Run mongodump on a database\n\n :param address: server host name or IP address\n :param port: server port\n :param user: user name\n :param passwd: password\n :param db: database name\n :param out_dir: output directory\n :param auth_db: authentication database\n :param dry_run: dry run mode\n ...
83
false
axltxl/m2bk
_mongodump_exec
15,325
LDU_FT/flo-compbio/genometools/fold_enrichment
LDU_FT
[ "<BEGIN>\n## `sum`", "Sum over rows or columns.", " Overrides the default `pandas.DataFrame.sum()` function to prevent\n temporary in-memory copies.\n<END>", "<BEGIN>\n## `get_heatmap`", "Generate a heatmap (`ExpHeatmap`) of the matrix.", " See :class:`ExpHeatmap` constructor for keyw...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the fold_enrichment API. 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 fold_enrichment API. 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 the fold enrichment of the gene set. Fold enrichment is defined as ratio between the observed and the expected number of gene set genes present.
"Returns the fold enrichment of the gene set.\n\n Fold enrichment is defined as ratio between the observed and the\n expected number of gene set genes present."
496
false
flo-compbio/genometools
fold_enrichment
15,326
LDU_FT/kevin1024/vcrpy/convert_body_to_unicode
LDU_FT
[ "<BEGIN>\n## `convert_body_to_bytes`", "If the request body is a string, encode it to bytes (for python3 support)", " By default yaml serializes to utf-8 encoded bytestrings.\n When this cassette is loaded by python3, it's automatically decoded\n into unicode strings. This makes sure that it stays a by...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the convert_body_to_unicode 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_body_to_unicode API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion...
If the request or responses body is bytes, decode it to a string (for python3 support)
"If the request or responses body is bytes, decode it to a string\n (for python3 support)"
51
false
kevin1024/vcrpy
convert_body_to_unicode
15,327
LDU_FT/capless/warrant/send_verification
LDU_FT
[ "<BEGIN>\n## `dict_to_cognito`", ":param attributes: Dictionary of User Pool attribute names/values\n :return: list of User Pool attribute formatted dicts: {'Name': <attr_name>, 'Value': <attr_value>}\n<END>", "<BEGIN>\n## `snake_to_camel`", ":param snake_str: string\n :return: string converted from a s...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the send_verification API. 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 send_verification API. 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 user an attribute verification code for the specified attribute name. :param attribute: Attribute to confirm
"Sends the user an attribute verification code for the specified attribute name.\n :param attribute: Attribute to confirm"
61
false
capless/warrant
send_verification
15,328
LDU_FT/mdredze/carmen-python/name
LDU_FT
[ "<BEGIN>\n## `normalize`", "Normalize *location_name* by stripping punctuation and collapsing\n runs of whitespace, and return the normalized name.\n<END>", "<BEGIN>\n## `register`", "Return a decorator that registers the decorated class as a\n resolver with the given *name*.\n<END>", "<BEGIN>\n## `ge...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the name API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the name API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
Return a tuple containing this location's country, state, county, and city names.
"Return a tuple containing this location's country, state,\n county, and city names."
16
false
mdredze/carmen-python
name
15,329
LDU_FT/MAVENSDC/PyTplot/timestamp
LDU_FT
[ "<BEGIN>\n## `del_data`", "This function will delete tplot variables that are already stored in memory. ", " Parameters:\n name : str \n Name of the tplot variable to be deleted. If no name is provided, then \n all tplot variables will be deleted. ", " Returns:\n N...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the timestamp API. 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 timestamp API. 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...
This function will turn on a time stamp that shows up at the bottom of every generated plot. Parameters val str A string that can either be 'on' or 'off'. Returns None Examples # Turn on the timestamp import pytplot pytplot.tim...
"This function will turn on a time stamp that shows up at the bottom of every generated plot.\n \n Parameters\n val str\n A string that can either be 'on' or 'off'. \n \n Returns\n None\n \n Examples\n # Turn on the timestamp\n import pytplot\n ...
155
false
MAVENSDC/PyTplot
timestamp
15,330
LDU_FT/simoninireland/epyc/do
LDU_FT
[ "<BEGIN>\n## `_parametersAsIndex`", "Private method to turn a parameter dict into a string suitable for\n keying a dict.", " ps: the parameters as a hash\n returns: a string key\n<END>", "<BEGIN>\n## `addResult`", "Add a result. This should be :term:`results dict` as returned from\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the do API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted docu...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the do API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted docu...
Perform the underlying experiment and summarise its results. Our results are the summary statistics extracted from the results of the instances of the underlying experiment that we performed. We drop from the calculations any experiments whose completion status was False, indicating an ...
"Perform the underlying experiment and summarise its results.\n Our results are the summary statistics extracted from the results of\n the instances of the underlying experiment that we performed.\n\n We drop from the calculations any experiments whose completion status\n was False, indicati...
116
false
simoninireland/epyc
do
15,331
LDU_FT/kapadia/usgs/get_datasets_in_nodes
LDU_FT
[ "<BEGIN>\n## `datasets`", "This method is used to find datasets available for searching.\n By passing no parameters except node, all available datasets\n are returned. Additional parameters such as temporal range\n and spatial bounding box can be used to find datasets that \n provide more specific dat...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_datasets_in_nodes 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_datasets_in_nodes API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Get the node associated with each dataset. Some datasets will have an ambiguous node since they exists in more than one node.
"Get the node associated with each dataset. Some datasets\n will have an ambiguous node since they exists in more than\n one node."
62
false
kapadia/usgs
get_datasets_in_nodes
15,332
LDU_FT/sprockets/sprockets-influxdb/_escape
LDU_FT
[ "<BEGIN>\n## `add_measurement`", "Add measurement data to the submission buffer for eventual writing to\n InfluxDB.", " Example:", " .. code:: python", " import sprockets_influxdb as influxdb", " measurement = influxdb.Measurement('example', 'measurement-name')\n measurement....
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _escape API. 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 _escape API. 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...
Escape a string (key or value) for InfluxDB's line protocol. :param str|int|float|bool value: The value to be escaped :rtype: str
"Escape a string (key or value) for InfluxDB's line protocol.\n\n :param str|int|float|bool value: The value to be escaped\n :rtype: str"
93
false
sprockets/sprockets-influxdb
_escape
15,333
LDU_FT/apacha/OMR-Datasets/convert_csv_annotations_to_cropobject
LDU_FT
[ "<BEGIN>\n## `move_images`", "Moves png-files one directory up from path/image/*.png -> path/*.png\n<END>", "<BEGIN>\n## `create_images`", "Creates a visual representation of the Homus Dataset by parsing all text-files and the symbols as specified\n by the parameters by drawing lines that connect the p...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the convert_csv_annotations_to_cropobject API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the convert_csv_annotations_to_cropobject API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates ...
Converts a normalized dataset of objects into crop-objects. :param annotations_path: Path to the csv-file that contains bounding boxes in the following format for a single image: image_name,top,left,bottom,right,class_name,confidence CVC-MUSCIMA_W-01_N-10...
"Converts a normalized dataset of objects into crop-objects.\n :param annotations_path: Path to the csv-file that contains bounding boxes in the following\n format for a single image:\n image_name,top,left,bottom,right,class_name,confidence\n CVC-MUSCIMA_W-01...
53
false
apacha/OMR-Datasets
convert_csv_annotations_to_cropobject
15,334
LDU_FT/dpa-newslab/livebridge/target_doc
LDU_FT
[ "<BEGIN>\n## `_db`", "Database client for accessing storage.", " :returns: :class:`livebridge.storages.base.BaseStorage`\n<END>", "<BEGIN>\n## `filter_new_posts`", "Filters ist of post_id for new ones.", " :param source_id: id of the source\n :type string:\n :param post_ids:...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the target_doc API. 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 target_doc API. 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 resource doc as at the target, when the posting was already created \ at the target. This property normally contains the **target_doc** data from \ the livebrigde storage item, saved in a syndication earlier. :returns: dict
"Returns resource doc as at the target, when the posting was already created \\\n at the target. This property normally contains the **target_doc** data from \\\n the livebrigde storage item, saved in a syndication earlier.\n\n :returns: dict"
21
false
dpa-newslab/livebridge
target_doc
15,335
LDU_FT/Xion/taipan/unique
LDU_FT
[ "<BEGIN>\n## `decorator`", "Decorator for decorators (sic), written either as classes or functions.", " In either case, the decorator ``decor`` must be \"doubly-callable\":", " * for classes, this means implementing ``__call__`` method\n in addition to possible ``__init__``\n * for f...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the unique API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the unique API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Removes duplicates from given iterable, using given key as criterion. :param key: Key function which returns a hashable, uniquely identifying an object. :return: Iterable with duplicates removed
"Removes duplicates from given iterable, using given key as criterion.\n\n :param key: Key function which returns a hashable,\n uniquely identifying an object.\n\n :return: Iterable with duplicates removed"
396
false
Xion/taipan
unique
15,336
LDU_FT/fermiPy/fermipy/profile
LDU_FT
[ "<BEGIN>\n## `build_srcdict`", "Build a dictionary that maps from source name to the value of a source property", " Parameters\n ----------", " gta : `fermipy.GTAnalysis`\n The analysis object", " prop : str\n The name of the property we are mapping", " Returns\n -------", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the profile API. 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 profile API. 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...
Profile the likelihood for the given source and parameter. Parameters ---------- name : str Source name. parName : str Parameter name. reoptimize : bool Re-fit nuisance parameters at each step in the scan. Note that enabling this o...
"Profile the likelihood for the given source and parameter.\n\n Parameters\n ----------\n\n name : str\n Source name.\n\n parName : str\n Parameter name.\n\n reoptimize : bool\n Re-fit nuisance parameters at each step in the scan. Note\n that e...
2,597
true
fermiPy/fermipy
profile
15,337
LDU_FT/GoogleCloudPlatform/cloud-debug-python/GetLoggingLocation
LDU_FT
[ "<BEGIN>\n## `InitializeDebuggeeLabels`", "Initialize debuggee labels from environment variables and flags.", " The caller passes all the flags that the the debuglet got. This function\n will only use the flags used to label the debuggee. Flags take precedence\n over environment variables.", " Deb...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the GetLoggingLocation 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 GetLoggingLocation 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...
Search for and return the file and line number from the log collector. Returns: (pathname, lineno, func_name) The full path, line number, and function name for the logpoint location.
"Search for and return the file and line number from the log collector.\n\n Returns:\n (pathname, lineno, func_name) The full path, line number, and function name\n for the logpoint location."
276
false
GoogleCloudPlatform/cloud-debug-python
GetLoggingLocation
15,338
LDU_FT/jwplayer/jwplatform-py/update_thumbnail_via_upload
LDU_FT
[ "<BEGIN>\n## `insert_into_channel`", "Function which inserts video into a channel/playlist.", " :param api_key: <string> JWPlatform api-key\n :param api_secret: <string> JWPlatform shared-secret\n :param channel_key: <string> Key of the channel to which add a video.\n :param video_key: <string> Key ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update_thumbnail_via_upload 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_thumbnail_via_upload API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclu...
Function which updates the thumbnail for a particular video object with a locally saved image. :param api_key: <string> JWPlatform api-key :param api_secret: <string> JWPlatform shared-secret :param video_key: <string> Video's object ID. Can be found within JWPlayer Dashboard. :param local_video_image_...
"Function which updates the thumbnail for a particular video object with a locally saved image.\n\n :param api_key: <string> JWPlatform api-key\n :param api_secret: <string> JWPlatform shared-secret\n :param video_key: <string> Video's object ID. Can be found within JWPlayer Dashboard.\n :param local_video_...
35
false
jwplayer/jwplatform-py
update_thumbnail_via_upload
15,339
LDU_FT/baguette-io/baguette-messaging/setup_logging
LDU_FT
[ "<BEGIN>\n## `to_json`", "Convert a model into a json using the playhouse shortcut.\n<END>", "<BEGIN>\n## `run`", "Consume the event stream.\n :param timeout: Duration of the connection timeout.\n :type timeout: int\n :param limit: Number of events to consume.\n :type limit: int\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the setup_logging API. 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 setup_logging API. 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...
Setup the logging using logging.yaml. :param app: The app which setups the logging. Used for the log's filename and for the log's name. :type app: str :param disable_existing_loggers: If False, loggers which exist when this call is made are left enabled. :type disable_existing_loggers: bool :returns...
"Setup the logging using logging.yaml.\n :param app: The app which setups the logging. Used for the log's filename and for the log's name.\n :type app: str\n :param disable_existing_loggers: If False, loggers which exist when this call is made are left enabled.\n :type disable_existing_loggers: bool\n :r...
44
false
baguette-io/baguette-messaging
setup_logging
15,340
LDU_FT/tilezen/tilequeue/common_parent
LDU_FT
[ "<BEGIN>\n## `merge`", "Retrieve a list of OSciMap4 tile responses and merge them into one.", " get_tiles() retrieves data and performs basic integrity checks.\n<END>", "<BEGIN>\n## `_make_valid_if_necessary`", "attempt to correct invalid shapes if necessary", " After simplification, even when p...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the common_parent API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the common_parent API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
Find the common parent tile of both a and b. The common parent is the tile at the highest zoom which both a and b can be transformed into by lowering their zoom levels.
"Find the common parent tile of both a and b. The common parent is the tile\n at the highest zoom which both a and b can be transformed into by lowering\n their zoom levels."
135
false
tilezen/tilequeue
common_parent
15,341
LDU_FT/pypa/setuptools/full_name
LDU_FT
[ "<BEGIN>\n## `indentedBlock`", "Helper method for defining space-delimited indentation blocks, such as\r\n those used to define block statements in Python source code.\r", " Parameters:\r\n - blockStatementExpr - expression defining syntax of statement that\r\n is repeated within the indent...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the full_name API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the full_name API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
Return full package/distribution name, w/version
"Return full package/distribution name, w/version"
565
false
pypa/setuptools
full_name
15,342
LDU_FT/hozn/keepassdb/release_lock
LDU_FT
[ "<BEGIN>\n## `to_struct`", "Initialize properties of the appropriate struct class from this model class.\n<END>", "<BEGIN>\n## `move`", "Move this group to a new parent.", " :param parent: The new parent group; if None will be root group.\n :type parent: :class:`keepassdb.model.Group`\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the release_lock API. 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 release_lock API. 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...
Releases the lock (deletes the <dbname>.lock file) if it was acquired by this class or force is set to True. :param force: Whether to force releasing the lock (e.g. if it was not acquired during this session). :type force: bool
"Releases the lock (deletes the <dbname>.lock file) if it was acquired by this class or force is set to True.\n \n :param force: Whether to force releasing the lock (e.g. if it was not acquired during this session).\n :type force: bool"
89
false
hozn/keepassdb
release_lock
15,343
LDU_FT/xolox/python-qpass/smart_search
LDU_FT
[ "<BEGIN>\n## `get_requirements`", "Get requirements from pip requirement files.\n<END>", "<BEGIN>\n## `create_fuzzy_pattern`", "Convert a string into a fuzzy regular expression pattern.", " :param pattern: The input pattern (a string).\n :returns: A compiled regular expression object.", " This fu...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the smart_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 extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the smart_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 extr...
Perform a smart search on the given keywords or patterns. :param arguments: The keywords or patterns to search for. :returns: The matched password names (a list of strings). :raises: The following exceptions can be raised: - :exc:`.NoMatchingPasswordError` when no matching pas...
"Perform a smart search on the given keywords or patterns.\n\n :param arguments: The keywords or patterns to search for.\n :returns: The matched password names (a list of strings).\n :raises: The following exceptions can be raised:\n\n - :exc:`.NoMatchingPasswordError` when no match...
48
false
xolox/python-qpass
smart_search
15,344
LDU_FT/silenc3r/dikicli/_get_words
LDU_FT
[ "<BEGIN>\n## `_parse_html`", "Parse html string.", " Parameters\n ----------\n html_dump : str\n HTML content.\n native : bool, optional\n Whether to translate from native to foreign language.", " Returns\n -------\n translations : list\n Translations list.", " R...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_words API. 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_words API. 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 list of words from history file. Parameters ---------- data_dir : pathlib.Path Directory where data is saved. Returns ------- word_list : list of str List of words.
"Get list of words from history file.\n\n Parameters\n ----------\n data_dir : pathlib.Path\n Directory where data is saved.\n\n Returns\n -------\n word_list : list of str\n List of words."
62
false
silenc3r/dikicli
_get_words
15,345
LDU_FT/larsyencken/csvdiff/diff_files
LDU_FT
[ "<BEGIN>\n## `apply`", "Transform the records with the patch. May fail if the records do not\n match those expected in the patch.\n<END>", "<BEGIN>\n## `create`", "Diff two sets of records, using the index columns as the primary key for\n both datasets.\n<END>", "<BEGIN>\n## `_compare_rows`", "Retur...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the diff_files API. 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 diff_files API. 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...
Diff two CSV files, returning the patch which transforms one into the other.
"Diff two CSV files, returning the patch which transforms one into the\n other."
28
false
larsyencken/csvdiff
diff_files
15,346
LDU_FT/earwig/mwparserfromhell/_handle_single_only_tag_end
LDU_FT
[ "<BEGIN>\n## `normalize`", "Return the unicode character represented by the HTML entity.\n<END>", "<BEGIN>\n## `inheritdoc`", "Set __doc__ of *method* to __doc__ of *method* in its parent class.", " Since this is used on :class:`.SmartList`, the \"parent class\" used is\n ``list``. This function can b...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _handle_single_only_tag_end 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 _handle_single_only_tag_end API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclu...
Handle the end of an implicitly closing single-only HTML tag.
"Handle the end of an implicitly closing single-only HTML tag."
291
false
earwig/mwparserfromhell
_handle_single_only_tag_end
15,347
LDU_FT/TissueMAPS/TmDeploy/is_instance_running
LDU_FT
[ "<BEGIN>\n## `__init_os_api`", "Initialise client objects for talking to OpenStack API.", " This is in a separate function so to be called by ``__init__`` and\n ``__setstate__``.\n<END>", "<BEGIN>\n## `stop_instance`", "Stops the instance gracefully.", " :param str instance_id: instan...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_instance_running 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 is_instance_running 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...
Checks if the instance is up and running. :param str instance_id: instance identifier :return: bool - True if running, False otherwise
"Checks if the instance is up and running.\n\n :param str instance_id: instance identifier\n\n :return: bool - True if running, False otherwise"
192
false
TissueMAPS/TmDeploy
is_instance_running
15,348
LDU_FT/jason-weirather/py-seq-tools/get_PSL
LDU_FT
[ "<BEGIN>\n## `sort_ranges`", "from an array of ranges, make a sorted array of ranges", " :param inranges: List of GenomicRange data\n :type inranges: GenomicRange[]\n :returns: a new sorted GenomicRange list\n :rtype: GenomicRange[]\n<END>", "<BEGIN>\n## `merge_ranges`", "from a list of genomic range or...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_PSL API. 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_PSL API. 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...
Get a PSL object representation of the alignment. :returns: PSL representation :rtype: PSL
"Get a PSL object representation of the alignment.\n\n :returns: PSL representation\n :rtype: PSL"
449
false
jason-weirather/py-seq-tools
get_PSL
15,349
LDU_FT/Kautenja/nes-py/show
LDU_FT
[ "<BEGIN>\n## `show`", "Show an array of pixels on the window.", " Args:\n frame (numpy.ndarray): the frame to show on the window", " Returns:\n None\n<END>", "<BEGIN>\n## `display_arr`", "Display an image to the pygame screen.", " Args:\n screen (pygame.Surf...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the show API. 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 show API. 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...
Show an array of pixels on the window. Args: frame (numpy.ndarray): the frame to show on the window Returns: None
"Show an array of pixels on the window.\n\n Args:\n frame (numpy.ndarray): the frame to show on the window\n\n Returns:\n None"
49
false
Kautenja/nes-py
show
15,350
LDU_FT/awesmubarak/markdown_strings/ordered_list
LDU_FT
[ "<BEGIN>\n## `header`", "Return a header of specified level.", " Keyword arguments:\n style -- Specifies the header style (default atx).\n The \"atx\" style uses hash signs, and has 6 levels.\n The \"setext\" style uses dashes or equals signs for headers of\n levels 1 ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the ordered_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 extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the ordered_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 extr...
Return an ordered list from an array. >>> ordered_list(["first", "second", "third", "fourth"]) '1. first\\n2. second\\n3. third\\n4. fourth'
"Return an ordered list from an array.\n\n >>> ordered_list([\"first\", \"second\", \"third\", \"fourth\"])\n '1. first\\\\n2. second\\\\n3. third\\\\n4. fourth'"
30
false
awesmubarak/markdown_strings
ordered_list
15,351
LDU_FT/scikit-learn-contrib/hdbscan/get_plot_data
LDU_FT
[ "<BEGIN>\n## `_tree_to_labels`", "Converts a pretrained tree and cluster size into a\n set of labels and probabilities.\n<END>", "<BEGIN>\n## `check_precomputed_distance_matrix`", "Perform check_array(X) after removing infinite values (numpy.inf) from the given distance matrix.\n<END>", "<BEGIN>\n## `hdb...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_plot_data API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_plot_data API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
Generates data for use in plotting the 'icicle plot' or dendrogram plot of the condensed tree generated by HDBSCAN. Parameters ---------- leaf_separation : float, optional How far apart to space the final leaves of the dendrogram. (def...
"Generates data for use in plotting the 'icicle plot' or dendrogram\n plot of the condensed tree generated by HDBSCAN.\n\n Parameters\n ----------\n leaf_separation : float, optional\n How far apart to space the final leaves of the\n dendrogr...
224
false
scikit-learn-contrib/hdbscan
get_plot_data
15,352
LDU_FT/databio/pypiper/_report_profile
LDU_FT
[ "<BEGIN>\n## `add_pypiper_args`", "Use this to add standardized pypiper arguments to your python pipeline.", " There are two ways to use `add_pypiper_args`: by specifying argument groups,\n or by specifying individual arguments. Specifying argument groups will add\n multiple arguments to your parser; t...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _report_profile API. 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 _report_profile API. 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...
Writes a string to self.pipeline_profile_file.
"Writes a string to self.pipeline_profile_file."
322
false
databio/pypiper
_report_profile
15,353
LDU_FT/cisco-sas/kitty/hash
LDU_FT
[ "<BEGIN>\n## `update`", "update db entry", " :param field_dict: dictionary of fields and values\n :param where_clause: where clause for the update\n<END>", "<BEGIN>\n## `insert`", "insert new db entry", " :param fields: list of fields to insert\n :param values: list of values t...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the hash API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the hash API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
:rtype: int :return: hash of the field
":rtype: int\n :return: hash of the field"
331
false
cisco-sas/kitty
hash
15,354
LDU_FT/Spinmob/spinmob/save
LDU_FT
[ "<BEGIN>\n## `get_data`", "Currently pretends to talk to an instrument and get back the magnitud\n and phase of the measurement.\n<END>", "<BEGIN>\n## `Set`", "Sets the key-value pair and dumps to the preferences file.\n<END>", "<BEGIN>\n## `MakeDir`", "Creates a directory of the specified path in the ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the save API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the save API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
Saves all the parameters to a text file using the databox functionality. If path=None, saves to self._autosettings_path. If self._autosettings_path=None, does not save.
"Saves all the parameters to a text file using the databox\n functionality. If path=None, saves to self._autosettings_path. If\n self._autosettings_path=None, does not save."
745
false
Spinmob/spinmob
save
15,355
LDU_FT/Spinmob/spinmob/set_value
LDU_FT
[ "<BEGIN>\n## `get_data`", "Currently pretends to talk to an instrument and get back the magnitud\n and phase of the measurement.\n<END>", "<BEGIN>\n## `Set`", "Sets the key-value pair and dumps to the preferences file.\n<END>", "<BEGIN>\n## `MakeDir`", "Creates a directory of the specified path in the ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_value API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_value API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
Sets the value at column, row. This will create elements dynamically, and in a totally stupid while-looping way. Setting block_events=True will temporarily block the widget from sending any signals when setting the value.
"Sets the value at column, row. This will create elements dynamically,\n and in a totally stupid while-looping way.\n\n Setting block_events=True will temporarily block the widget from\n sending any signals when setting the value."
745
false
Spinmob/spinmob
set_value
15,356
LDU_FT/JdeRobot/base/_avg
LDU_FT
[ "<BEGIN>\n## `bytes_needed`", "return number of bytes needed for next parsing stage\n<END>", "<BEGIN>\n## `__callbacks`", "this method exists only to make profiling results easier to read\n<END>", "<BEGIN>\n## `parse_char`", "input some data bytes, possibly returning a new message\n<END>", "<BEGIN>\n## ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _avg API. 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 _avg API. 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...
Returns the weighted average of two values and handles the case where one value is None. If both values are None, None is returned.
"Returns the weighted average of two values and handles the case where\n one value is None. If both values are None, None is returned."
1,991
true
JdeRobot/base
_avg
15,357
LDU_FT/OpenAgInitiative/openag_python/init
LDU_FT
[ "<BEGIN>\n## `create_farm`", "Create a farm. Creates a farm named FARM_NAME on the currently selected\n cloud server. You can use the `openag cloud select_farm` command to start\n mirroring data into it.\n<END>", "<BEGIN>\n## `list_farms`", "List all farms you can manage. If you have selected a farm alr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the init API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the init API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
Initialize the database server. Sets some configuration parameters on the server, creates the necessary databases for this project, pushes design documents into those databases, and sets up replication with the cloud server if one has already been selected.
"Initialize the database server. Sets some configuration parameters on the\n server, creates the necessary databases for this project, pushes design\n documents into those databases, and sets up replication with the cloud\n server if one has already been selected."
89
false
OpenAgInitiative/openag_python
init
15,358
LDU_FT/awacha/sastool/readbdfv1
LDU_FT
[ "<BEGIN>\n## `readB1logfile`", "Read B1 logfile (*.log)", " Inputs:\n filename: the file name", " Output: A dictionary.\n<END>", "<BEGIN>\n## `writeB1logfile`", "Write a header structure into a B1 logfile.", " Inputs:\n filename: name of the file.\n data: header dictionary"...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the readbdfv1 API. 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 readbdfv1 API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
Read bdf file (Bessy Data Format v1) Input ----- filename: string the name of the file Output ------ the BDF structure in a dict Notes ----- This is an adaptation of the bdf_read.m macro of Sylvio Haas.
"Read bdf file (Bessy Data Format v1)\n\n Input\n -----\n filename: string\n the name of the file\n\n Output\n ------\n the BDF structure in a dict\n\n Notes\n -----\n This is an adaptation of the bdf_read.m macro of Sylvio Haas."
426
false
awacha/sastool
readbdfv1
15,359
LDU_FT/jeffknupp/sandman/attribute_response
LDU_FT
[ "<BEGIN>\n## `endpoint`", "Return the :class:`sandman.model.Model`'s endpoint.", " :rtype: string\n<END>", "<BEGIN>\n## `resource_uri`", "Return the URI at which the resource can be found.", " :rtype: string\n<END>", "<BEGIN>\n## `primary_key`", "Return the name of the table's primary ke...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the attribute_response 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 attribute_response API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
Return a response for the *resource* of the appropriate content type. :param resource: resource to be returned in request :type resource: :class:`sandman.model.Model` :rtype: :class:`flask.Response`
"Return a response for the *resource* of the appropriate content type.\n\n :param resource: resource to be returned in request\n :type resource: :class:`sandman.model.Model`\n :rtype: :class:`flask.Response`"
126
false
jeffknupp/sandman
attribute_response
15,360
LDU_FT/wheeler-microfluidics/dmf-control-board-firmware/swap_default
LDU_FT
[ "<BEGIN>\n## `swap_default`", "Given a `sympy` equation or equality, along with a list of symbol names,\n substitute the specified default value for each symbol for which a value is\n not provided through a keyword argument.", " For example, consider the following equality:", " >>> sp.pprint(H)\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the swap_default API. 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 swap_default API. 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...
Given a `sympy` equation or equality, along with a list of symbol names, substitute the specified default value for each symbol for which a value is not provided through a keyword argument. For example, consider the following equality: >>> sp.pprint(H) V₂ Z₂ ── = ── V₁ Z₁ Let us s...
"Given a `sympy` equation or equality, along with a list of symbol names,\n substitute the specified default value for each symbol for which a value is\n not provided through a keyword argument.\n\n For example, consider the following equality:\n\n >>> sp.pprint(H)\n V₂ Z₂\n ── = ──\n V₁ Z₁\n\n...
206
false
wheeler-microfluidics/dmf-control-board-firmware
swap_default
15,361
LDU_FT/Knoema/knoema-python-driver/get
LDU_FT
[ "<BEGIN>\n## `is_equal_strings_ignore_case`", "The function compares strings ignoring case\n<END>", "<BEGIN>\n## `find_dimension_by_name`", "the method searching dimension with a given name\n<END>", "<BEGIN>\n## `find_dimension_by_id`", "the method searching dimension with a given id\n<END>", "<BEGIN>\n...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
Use this function to get data from Knoema dataset.
"Use this function to get data from Knoema dataset."
48
false
Knoema/knoema-python-driver
get
15,362
LDU_FT/JensAstrup/pyOutlook/_make_api_call
LDU_FT
[ "<BEGIN>\n## `auto_reply_message`", "The account's Internal auto reply message. Setting the value will change the auto reply message of the\n account, automatically setting the status to enabled (but not altering the schedule).\n<END>", "<BEGIN>\n## `set_auto_reply`", "Set an automatic reply for the a...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _make_api_call API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _make_api_call API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
Internal method to handle making calls to the Outlook API and logging both the request and response Args: http_type: (str) 'post' or 'delete' endpoint: (str) The endpoint the request will be made to headers: A dict of headers to send to the requests module in addition to Auth...
"Internal method to handle making calls to the Outlook API and logging both the request and response\n Args:\n http_type: (str) 'post' or 'delete'\n endpoint: (str) The endpoint the request will be made to\n headers: A dict of headers to send to the requests module in addition to...
99
false
JensAstrup/pyOutlook
_make_api_call
15,363
LDU_FT/pyannote/pyannote-metrics/det_curve
LDU_FT
[ "<BEGIN>\n## `extrude`", "Extrude reference boundary collars from uem", " reference |----| |--------------| |-------------|\n uem |---------------------| |-------------------------------|\n extruded |--| |--| |---| |-----| |-| |-----| |-----------| |-----|", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the det_curve API. 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 det_curve API. 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...
DET curve Parameters ---------- y_true : (n_samples, ) array-like Boolean reference. scores : (n_samples, ) array-like Predicted score. distances : boolean, optional When True, indicate that `scores` are actually `distances` Returns ------- fpr : numpy array ...
"DET curve\n\n Parameters\n ----------\n y_true : (n_samples, ) array-like\n Boolean reference.\n scores : (n_samples, ) array-like\n Predicted score.\n distances : boolean, optional\n When True, indicate that `scores` are actually `distances`\n\n Returns\n -------\n fpr : n...
81
false
pyannote/pyannote-metrics
det_curve
15,364
LDU_FT/rohankapoorcom/zm-py/active
LDU_FT
[ "<BEGIN>\n## `active`", "Indicate if this RunState is currently active.\n<END>", "<BEGIN>\n## `_zm_request`", "Perform a request to the ZoneMinder API.\n<END>", "<BEGIN>\n## `get_monitors`", "Get a list of Monitors from the ZoneMinder API.\n<END>", "<BEGIN>\n## `get_run_states`", "Get a list of RunSta...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the active API. 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 active API. 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 ...
Indicate if this RunState is currently active.
"Indicate if this RunState is currently active."
33
false
rohankapoorcom/zm-py
active
15,365
LDU_FT/remix/partridge/read_busiest_week
LDU_FT
[ "<BEGIN>\n## `extract_feed`", "Extract a subset of a GTFS zip into a new file\n<END>", "<BEGIN>\n## `write_feed_dangerously`", "Naively write a feed to a zipfile", " This function provides no sanity checks. Use it at\n your own risk.\n<END>", "<BEGIN>\n## `read_busiest_date`", "Find the earliest d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the read_busiest_week API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the read_busiest_week API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Find the earliest week with the most trips
"Find the earliest week with the most trips"
18
false
remix/partridge
read_busiest_week
15,366
LDU_FT/rgs1/zk_shell/do_mirror
LDU_FT
[ "<BEGIN>\n## `extract_acl`", "parse an individual ACL (i.e.: world:anyone:cdrwa)\n<END>", "<BEGIN>\n## `check_path_exists_foreach`", "check that paths exist (unless we are in a transaction)\n<END>", "<BEGIN>\n## `check_path_absent`", "check path doesn't exist (unless we are in a txn or it's sequential)", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the do_mirror API. 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 do_mirror API. 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...
\x1b[1mNAME\x1b[0m mirror - Mirrors from/to local/remote or remote/remote paths \x1b[1mSYNOPSIS\x1b[0m mirror <src> <dst> [async] [verbose] [skip_prompt] \x1b[1mDESCRIPTION\x1b[0m src and dst can be: /some/path (in the connected server) zk://[user:passwd@]host/<path> ...
"\\x1b[1mNAME\\x1b[0m\n mirror - Mirrors from/to local/remote or remote/remote paths\n\n\\x1b[1mSYNOPSIS\\x1b[0m\n mirror <src> <dst> [async] [verbose] [skip_prompt]\n\n\\x1b[1mDESCRIPTION\\x1b[0m\n src and dst can be:\n\n /some/path (in the connected server)\n zk://[user:passwd...
379
false
rgs1/zk_shell
do_mirror
15,367
LDU_FT/UncleRus/regnupg/sign_file
LDU_FT
[ "<BEGIN>\n## `recv_keys`", "Import the keys with the given key IDs from a HKP keyserver.", " :param keyserver: Keyserver name. The format of the name is a URI: ``scheme:[//]keyservername[:port]``.\n The scheme is the type of keyserver:\"hkp\" for the HTTP (or compatible) keyservers, \"ldap\" f...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the sign_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 extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the sign_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 extract...
Make a signature. :param message_file: File-like object for sign :param key_id: Key for signing, default will be used if null :param passphrase: Key password :param clearsign: Make a clear text signature :param detach: Make a detached signature :param binary: If false, c...
"Make a signature.\n\n :param message_file: File-like object for sign\n :param key_id: Key for signing, default will be used if null\n :param passphrase: Key password\n :param clearsign: Make a clear text signature\n :param detach: Make a detached signature\n :param binary: If ...
39
false
UncleRus/regnupg
sign_file
15,368
LDU_FT/justquick/django-native-tags/smartypants
LDU_FT
[ "<BEGIN>\n## `calendar`", "Creates a formatted ``HTMLCalendar``. \n Argument ``format`` can be one of ``month``, ``year``, or ``yearpage``\n Keyword arguments are collected and passed into ``HTMLCalendar.formatmonth``, \n ``HTMLCalendar.formatyear``, and ``HTMLCalendar.formatyearpage``", " Synta...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the smartypants API. 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 smartypants API. 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...
Applies SmartyPants to a piece of text, applying typographic niceties. Requires the Python SmartyPants library to be installed; see http://web.chad.org/projects/smartypants.py/
"Applies SmartyPants to a piece of text, applying typographic\n niceties.\n \n Requires the Python SmartyPants library to be installed; see\n http://web.chad.org/projects/smartypants.py/"
161
false
justquick/django-native-tags
smartypants
15,369
LDU_FT/CartoDB/carto-python/create
LDU_FT
[ "<BEGIN>\n## `run`", "Actually creates the import job on the CARTO server", " :param import_params: To be send to the Import API, see CARTO's docs\n on Import API for an updated list of accepted\n params\n :type import_params: kwargs", ...
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 ...
Creates a new batch SQL query. Batch SQL jobs are asynchronous, once created you should call :func:`carto.sql.BatchSQLClient.read` method given the `job_id` to retrieve the state of the batch query :param sql_query: The SQL query to be used :type sql_query: str or list of str ...
"Creates a new batch SQL query.\n\n Batch SQL jobs are asynchronous, once created you should call\n :func:`carto.sql.BatchSQLClient.read` method given the `job_id`\n to retrieve the state of the batch query\n\n :param sql_query: The SQL query to be used\n :type sql_query: str or list ...
154
false
CartoDB/carto-python
create
15,370
LDU_FT/albert12132/templar/emphasis_sub
LDU_FT
[ "<BEGIN>\n## `applies`", "Checks if this rule applies to the given src and dst paths, based on the src pattern and\n dst pattern given in the constructor.", " If src pattern was None, this rule will apply to any given src path (same for dst).\n<END>", "<BEGIN>\n## `link`", "Links the content f...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the emphasis_sub API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the emphasis_sub API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
Substitutes <strong>, <em>, and <strong><em> tags.
"Substitutes <strong>, <em>, and <strong><em> tags."
130
false
albert12132/templar
emphasis_sub
15,371
LDU_FT/adrn/gala/peak_to_peak_period
LDU_FT
[ "<BEGIN>\n## `w`", "This returns a single array containing the phase-space positions.", " Parameters\n ----------\n units : `~gala.units.UnitSystem` (optional)\n The unit system to represent the position and velocity in\n before combining into the full array.", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the peak_to_peak_period 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 peak_to_peak_period 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...
Estimate the period of the input time series by measuring the average peak-to-peak time. Parameters ---------- t : array_like Time grid aligned with the input time series. f : array_like A periodic time series. amplitude_threshold : numeric (optional) A tolerance paramet...
"Estimate the period of the input time series by measuring the average\n peak-to-peak time.\n\n Parameters\n ----------\n t : array_like\n Time grid aligned with the input time series.\n f : array_like\n A periodic time series.\n amplitude_threshold : numeric (optional)\n A tolera...
465
false
adrn/gala
peak_to_peak_period
15,372