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/jaseg/python-mpv/observe_property
LDU_FT
[ "<BEGIN>\n## `_mpv_coax_proptype`", "Intelligently coax the given python value into something that can be understood as a proptype property.\n<END>", "<BEGIN>\n## `_make_node_str_list`", "Take a list of python objects and make a MPV string node array from it.", " As an example, the python list ``l = [ \"...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the observe_property API. 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 observe_property API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Register an observer on the named property. An observer is a function that is called with the new property value every time the property's value is changed. The basic function signature is ``fun(property_name, new_value)`` with new_value being the decoded property value as a python object. This function...
"Register an observer on the named property. An observer is a function that is called with the new property\n value every time the property's value is changed. The basic function signature is ``fun(property_name,\n new_value)`` with new_value being the decoded property value as a python object. This funct...
66
false
jaseg/python-mpv
observe_property
8,773
LDU_FT/paulovn/sparql-kernel/data_msg
LDU_FT
[ "<BEGIN>\n## `token_at_cursor`", "Find the token present at the passed position in the code buffer\n :return (tuple): a pair (token, start_position)\n<END>", "<BEGIN>\n## `_send`", "Send a response to the frontend and return an execute message\n @param data: response to send\n @param msg_t...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the data_msg API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the data_msg API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
Return a Jupyter display_data message, in both HTML & text formats, by formatting a given single message. The passed message may be: * An exception (including a KrnlException): will generate an error message * A list of messages (with \c mtype equal to \c multi) * A single message @param m...
"Return a Jupyter display_data message, in both HTML & text formats, by \n formatting a given single message. The passed message may be:\n * An exception (including a KrnlException): will generate an error message\n * A list of messages (with \\c mtype equal to \\c multi)\n * A single message\n\n ...
55
false
paulovn/sparql-kernel
data_msg
8,774
LDU_FT/ska-sa/purr/clip_ellipsis
LDU_FT
[ "<BEGIN>\n## `rotate`", "Rotate a coordinate around point (0,0).\n - x and y specify the coordinate.\n - degree is a number from 0 to 360.\n Returns a new coordinate.\n<END>", "<BEGIN>\n## `_compute_bounding_box`", "Given the list of coordinates (x,y), this procedure computes\n the smallest rectan...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the clip_ellipsis API. 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 clip_ellipsis API. 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...
Create an elliptical clip region. You must call endclip() after you completed drawing. See also the ellipsis method.
"Create an elliptical clip region. You must call endclip() after\n you completed drawing. See also the ellipsis method."
265
false
ska-sa/purr
clip_ellipsis
8,775
LDU_FT/eerimoq/bincopy/pack_srec
LDU_FT
[ "<BEGIN>\n## `crc_srec`", "Calculate the CRC for given Motorola S-Record hexstring.\n<END>", "<BEGIN>\n## `crc_ihex`", "Calculate the CRC for given Intel HEX hexstring.\n<END>", "<BEGIN>\n## `pack_srec`", "Create a Motorola S-Record record of given data.\n<END>", "<BEGIN>\n## `unpack_srec`", "Unpack g...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the pack_srec API. 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 pack_srec API. 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...
Create a Motorola S-Record record of given data.
"Create a Motorola S-Record record of given data."
88
false
eerimoq/bincopy
pack_srec
8,776
LDU_FT/PMEAL/OpenPNM/tyn_calus_scaling
LDU_FT
[ "<BEGIN>\n## `ordinary_diffusion`", "r\"\"\"\n Calculate the diffusive conductance of conduits in network, where a\n conduit is ( 1/2 pore - full throat - 1/2 pore ). See the notes section.", " Parameters\n ----------\n target : OpenPNM Object\n The object which this model is associated wi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the tyn_calus_scaling API. 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 tyn_calus_scaling API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
r""" Uses Tyn_Calus model to adjust a diffusion coeffciient for liquids from reference conditions to conditions of interest Parameters ---------- target : OpenPNM Object The object for which these values are being calculated. This controls the length of the calculated array, and al...
"r\"\"\"\n Uses Tyn_Calus model to adjust a diffusion coeffciient for liquids from\n reference conditions to conditions of interest\n\n Parameters\n ----------\n target : OpenPNM Object\n The object for which these values are being calculated. This\n controls the length of the calculated a...
1,872
true
PMEAL/OpenPNM
tyn_calus_scaling
8,777
LDU_FT/creare-com/pydem/save_twi
LDU_FT
[ "<BEGIN>\n## `_get_flat_ids`", "This is a helper function to recover the coordinates of regions that have\n been labeled within an image. This function efficiently computes the\n coordinate of all regions and returns the information in a memory-efficient\n manner.", " Parameters\n -----------\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the save_twi API. 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 save_twi API. 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...
Saves the topographic wetness index to a file
"Saves the topographic wetness index to a file"
201
false
creare-com/pydem
save_twi
8,778
LDU_FT/kkroening/ffmpeg-python/compile
LDU_FT
[ "<BEGIN>\n## `get_args`", "Build command-line arguments to be passed to ffmpeg.\n<END>", "<BEGIN>\n## `compile`", "Build command-line for invoking ffmpeg.", " The :meth:`run` function uses this to build the commnad line\n arguments and should work in most cases, but calling this function\n directly...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the compile API. 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 compile API. 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...
Build command-line for invoking ffmpeg. The :meth:`run` function uses this to build the commnad line arguments and should work in most cases, but calling this function directly is useful for debugging or if you need to invoke ffmpeg manually for whatever reason. This is the same as calling :meth:`...
"Build command-line for invoking ffmpeg.\n\n The :meth:`run` function uses this to build the commnad line\n arguments and should work in most cases, but calling this function\n directly is useful for debugging or if you need to invoke ffmpeg\n manually for whatever reason.\n\n This is the same as calling...
149
false
kkroening/ffmpeg-python
compile
8,779
LDU_FT/ampl/amplpy/getRowByIndex
LDU_FT
[ "<BEGIN>\n## `getData`", "Get the data corresponding to the display statements. The statements\n can be AMPL expressions, or entities. It captures the equivalent of the\n command:", " .. code-block:: ampl", " display ds1, ..., dsn;", " where ds1, ..., dsn are the ``dis...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the getRowByIndex API. 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 getRowByIndex API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
Get row by numeric index. Args: index: Zero-based index of the row to get. Returns: The corresponding row.
"Get row by numeric index.\n\n Args:\n index: Zero-based index of the row to get.\n\n Returns:\n The corresponding row."
205
false
ampl/amplpy
getRowByIndex
8,780
LDU_FT/materialsproject/pymatgen/plot_carriers
LDU_FT
[ "<BEGIN>\n## `ion_or_solid_comp_object`", "Returns either an ion object or composition object given\n a formula.", " Args:\n formula: String formula. Eg. of ion: NaOH(aq), Na[+];\n Eg. of solid: Fe2O3(s), Fe(s), Na2O", " Returns:\n Composition/Ion object\n<END>", "<BEGIN>\n...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the plot_carriers API. 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 plot_carriers API. 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...
Plot the carrier concentration in function of Fermi level Args: temp: the temperature Returns: a matplotlib object
"Plot the carrier concentration in function of Fermi level\n\n Args:\n temp: the temperature\n\n Returns:\n a matplotlib object"
6,523
true
materialsproject/pymatgen
plot_carriers
8,781
LDU_FT/hharnisc/python-meteor/login
LDU_FT
[ "<BEGIN>\n## `_reconnected`", "Reconnect", " Currently we get a new session every time so we have\n to clear all the data an resubscribe\n<END>", "<BEGIN>\n## `login`", "Login with a username and password", " Arguments:\n user - username or email address\n password - the...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the login API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the login API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
Login with a username and password Arguments: user - username or email address password - the password for the account Keyword Arguments: token - meteor resume token callback - callback function containing error as first argument and login data
"Login with a username and password\n\n Arguments:\n user - username or email address\n password - the password for the account\n\n Keyword Arguments:\n token - meteor resume token\n callback - callback function containing error as first argument and login data"
40
false
hharnisc/python-meteor
login
8,782
LDU_FT/potatolondon/gae-pytz/resource_exists
LDU_FT
[ "<BEGIN>\n## `open_resource`", "Opens a resource from the zoneinfo subdir for reading.\n<END>", "<BEGIN>\n## `resource_exists`", "Return true if the given resource exists\n<END>", "<BEGIN>\n## `localize`", "Convert naive time to local time.", " This method should be used to construct localtimes, ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the resource_exists API. 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 resource_exists API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
Return true if the given resource exists
"Return true if the given resource exists"
29
false
potatolondon/gae-pytz
resource_exists
8,783
LDU_FT/unistra/django-rest-framework-fine-permissions/_get_default_field_names
LDU_FT
[ "<BEGIN>\n## `inherits_modelpermissions_serializer`", "Verify that serializer is a :py:class:`~rest_framework_fine_permissions.serializers.ModelPermissionsSerializer`.\n<END>", "<BEGIN>\n## `_get_user_allowed_fields`", "Retrieve all allowed field names ofr authenticated user.\n<END>", "<BEGIN>\n## `get_fiel...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_default_field_names API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_default_field_names API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio...
Return default field names for serializer.
"Return default field names for serializer."
10
false
unistra/django-rest-framework-fine-permissions
_get_default_field_names
8,784
LDU_FT/ShawnClake/Apitax/_deserialize_dict
LDU_FT
[ "<BEGIN>\n## `command`", "Execute a Command", " Execute a command # noqa: E501", " :param execute: The data needed to execute this command\n :type execute: dict | bytes", " :rtype: Response\n<END>", "<BEGIN>\n## `endpoint_catalog`", "Retrieve the endpoint catalog", " Retrieve the endpoi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _deserialize_dict API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _deserialize_dict API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Deserializes a dict and its elements. :param data: dict to deserialize. :type data: dict :param boxed_type: class literal. :return: deserialized dict. :rtype: dict
"Deserializes a dict and its elements.\n\n :param data: dict to deserialize.\n :type data: dict\n :param boxed_type: class literal.\n\n :return: deserialized dict.\n :rtype: dict"
66
false
ShawnClake/Apitax
_deserialize_dict
8,785
LDU_FT/flowersteam/explauto/data
LDU_FT
[ "<BEGIN>\n## `predict_y`", "Provide an prediction of xq in the output space", " @param xq an array of float of length dim_x\n @return predicted y as np.array of float\n<END>", "<BEGIN>\n## `predict_given_context`", "Provide a prediction of x with context c on dimensions c_dims in the outpu...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the data API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the data API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
return dictionary with data. If data entries are None or incomplete, consider calling ``.load().data()`` to (re-)load the data from files first.
"return dictionary with data.\n\n If data entries are None or incomplete, consider calling\n ``.load().data()`` to (re-)load the data from files first."
685
false
flowersteam/explauto
data
8,786
LDU_FT/DinoTools/python-overpy/from_xml
LDU_FT
[ "<BEGIN>\n## `_handle_remark_msg`", "Try to parse the message provided with the remark tag or element.", " :param str msg: The message\n :raises overpy.exception.OverpassRuntimeError: If message starts with 'runtime error:'\n :raises overpy.exception.OverpassRuntimeRemark: If message starts...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the from_xml API. 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 from_xml API. 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...
Create new way element from XML data :param child: XML node to be parsed :type child: xml.etree.ElementTree.Element :param result: The result this node belongs to :type result: overpy.Result :return: New Way oject :rtype: overpy.Relation :raises overpy.exception....
"Create new way element from XML data\n\n :param child: XML node to be parsed\n :type child: xml.etree.ElementTree.Element\n :param result: The result this node belongs to\n :type result: overpy.Result\n :return: New Way oject\n :rtype: overpy.Relation\n :raises overpy.e...
119
false
DinoTools/python-overpy
from_xml
8,787
LDU_FT/mrstephenneal/databasetools/get_version
LDU_FT
[ "<BEGIN>\n## `get_version`", "Retrieve the package version from a version file in the package root.\n<END>", "<BEGIN>\n## `juggle_types`", "Force all digits in a list to become integers.\n<END>", "<BEGIN>\n## `resolve_path`", "Conditionally set a path to a CSV file.", " Option 1 - Join working direct...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_version API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_version API. 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...
Retrieve the package version from a version file in the package root.
"Retrieve the package version from a version file in the package root."
15
false
mrstephenneal/databasetools
get_version
8,788
LDU_FT/mardix/pylot/render
LDU_FT
[ "<BEGIN>\n## `read_pkginfo`", "Help us read the pkginfo without accessing __init__\n<END>", "<BEGIN>\n## `with_user_roles`", "with_user_roles(roles)", " It allows to check if a user has access to a view by adding the decorator\n with_user_roles([])", " Requires flask-login", " In your model,...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the render API. 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 render API. 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 ...
To render data to the associate template file of the action view :param data: The context data to pass to the template :param view_template: The file template to use. By default it will map the classname/action.html :param layout: The body layout, must contain {% include __view_template__ %}
"To render data to the associate template file of the action view\n :param data: The context data to pass to the template\n :param view_template: The file template to use. By default it will map the classname/action.html\n :param layout: The body layout, must contain {% include __view_template__ %}...
66
false
mardix/pylot
render
8,789
LDU_FT/costastf/toonlib/smokedetectors
LDU_FT
[ "<BEGIN>\n## `get_arguments`", "This get us the cli arguments.", " Returns the args as parsed from the argsparser.\n<END>", "<BEGIN>\n## `setup_logging`", "This sets up the logging.", " Needs the args to get the log level supplied\n :param args: The command line arguments\n<END>", "<BEGIN>\n## ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the smokedetectors API. 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 smokedetectors API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
:return: A list of smokedetector objects modeled as named tuples
":return: A list of smokedetector objects modeled as named tuples"
46
false
costastf/toonlib
smokedetectors
8,790
LDU_FT/deshima-dev/decode/one_thread_per_process
LDU_FT
[ "<BEGIN>\n## `xarrayfunc`", "Make a function compatible with xarray.DataArray.", " This function is intended to be used as a decorator like::", " >>> @dc.xarrayfunc\n >>> def func(array):\n ... # do something\n ... return newarray\n >>>\n >>> result = func(...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the one_thread_per_process API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the one_thread_per_process API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
Return a context manager where only one thread is allocated to a process. This function is intended to be used as a with statement like:: >>> with process_per_thread(): ... do_something() # one thread per process Notes: This function only works when MKL (Intel Math Kernel Library)...
"Return a context manager where only one thread is allocated to a process.\n\n This function is intended to be used as a with statement like::\n\n >>> with process_per_thread():\n ... do_something() # one thread per process\n\n Notes:\n This function only works when MKL (Intel Math Kernel...
137
false
deshima-dev/decode
one_thread_per_process
8,791
LDU_FT/xsleonard/pystmark/recipients
LDU_FT
[ "<BEGIN>\n## `send`", "Send a message.", " :param message: Message to send.\n :type message: `dict` or :class:`Message`\n :param api_key: Your Postmark API key. Required, if `test` is not `True`.\n :param secure: Use the https scheme for the Postmark API.\n Defaults to `True`\n :param test...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the recipients API. 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 recipients API. 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...
A list of all recipients for this message.
"A list of all recipients for this message."
113
false
xsleonard/pystmark
recipients
8,792
LDU_FT/LuminosoInsight/python-ftfy/fix_partial_utf8_punct_in_1252
LDU_FT
[ "<BEGIN>\n## `fix_encoding_and_explain`", "Re-decodes text that has been decoded incorrectly, and also return a\n \"plan\" indicating all the steps required to fix it.", " The resulting plan could be used with :func:`ftfy.fixes.apply_plan`\n to fix additional strings that are broken in the same way.\n<...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the fix_partial_utf8_punct_in_1252 API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its con...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the fix_partial_utf8_punct_in_1252 API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its con...
Fix particular characters that seem to be found in the wild encoded in UTF-8 and decoded in Latin-1 or Windows-1252, even when this fix can't be consistently applied. One form of inconsistency we need to deal with is that some character might be from the Latin-1 C1 control character set, while others a...
"Fix particular characters that seem to be found in the wild encoded in\n UTF-8 and decoded in Latin-1 or Windows-1252, even when this fix can't be\n consistently applied.\n\n One form of inconsistency we need to deal with is that some character might\n be from the Latin-1 C1 control character set, while ot...
123
false
LuminosoInsight/python-ftfy
fix_partial_utf8_punct_in_1252
8,793
LDU_FT/mailgun/expiringdict/values
LDU_FT
[ "<BEGIN>\n## `pop`", "Get item from the dict and remove it.", " Return default if expired or does not exist. Never raise KeyError.\n<END>", "<BEGIN>\n## `ttl`", "Return TTL of the `key` (in seconds).", " Returns None for non-existent or expired keys.\n<END>", "<BEGIN>\n## `get`", "Return...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the values API. 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 values API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Return a copy of the dictionary's list of values. See the note for dict.items().
"Return a copy of the dictionary's list of values.\n See the note for dict.items()."
12
false
mailgun/expiringdict
values
8,794
LDU_FT/carpedm20/ndrive/doMove
LDU_FT
[ "<BEGIN>\n## `login`", "Log in Naver and get cookie", " Agrs:\n user_id: Naver account's login id\n password: Naver account's login password", " Returns:\n True: Login success\n False: Login failed", " Remarks:\n self.cookie is a di...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the doMove API. 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 doMove API. 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 ...
Move a file. >>> nd.doMove('/Picture/flower.png', '/flower.png') :param from_path: The path to the file or folder to be moved. :param to_path: The destination path of the file or folder to be copied. File name should be included in the end of to_path. :param overwrite: Whether to o...
"Move a file.\n\n >>> nd.doMove('/Picture/flower.png', '/flower.png')\n\n :param from_path: The path to the file or folder to be moved.\n :param to_path: The destination path of the file or folder to be copied. File name should be included in the end of to_path.\n :param overwrite: Wheth...
170
false
carpedm20/ndrive
doMove
8,795
LDU_FT/MoseleyBioinformaticsLab/mwtab/read_files
LDU_FT
[ "<BEGIN>\n## `read`", "Read data into a :class:`~mwtab.mwtab.MWTabFile` instance.", " :param filehandle: file-like object.\n :type filehandle: :py:class:`io.TextIOWrapper`, :py:class:`gzip.GzipFile`,\n :py:class:`bz2.BZ2File`, :py:class:`zipfile.ZipFile`\n :return: ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the read_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 read_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...
Construct a generator that yields file instances. :param sources: One or more strings representing path to file(s).
"Construct a generator that yields file instances.\n\n :param sources: One or more strings representing path to file(s)."
74
false
MoseleyBioinformaticsLab/mwtab
read_files
8,796
LDU_FT/mattjj/pylds/grad_local_log_likelihood
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 grad_local_log_likelihood 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 grad_local_log_likelihood API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi...
d/dx y^T Cx + y^T d - exp(Cx+d) = y^T C - exp(Cx+d)^T C = (y - lmbda)^T C
"d/dx y^T Cx + y^T d - exp(Cx+d)\n = y^T C - exp(Cx+d)^T C\n = (y - lmbda)^T C"
53
false
mattjj/pylds
grad_local_log_likelihood
8,797
LDU_FT/thespacedoctor/astrocalc/redshift_to_distance
LDU_FT
[ "<BEGIN>\n## `luminosity_to_flux`", "*Convert luminosity to a flux*", " **Key Arguments:**\n - ``lumErg_S`` -- luminosity in ergs/sec\n - ``dist_Mpc`` -- distance in Mpc", " **Return:**\n - ``fluxErg_cm2_S`` -- flux in ergs/cm2/s\n<END>", "<BEGIN>\n## `get_mjd`", "*Get the curre...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the redshift_to_distance 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 redshift_to_distance API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
*convert redshift to various distance measurements* **Key Arguments:** - ``z`` -- redshift measurement. - ``WM`` -- Omega_matter. Default *0.3* - ``WV`` -- Omega_vacuum. Default *0.7* - ``H0`` -- Hubble constant. (km s-1 Mpc-1) Default *70.0* **Return:**...
"*convert redshift to various distance measurements*\n\n **Key Arguments:**\n - ``z`` -- redshift measurement.\n - ``WM`` -- Omega_matter. Default *0.3*\n - ``WV`` -- Omega_vacuum. Default *0.7*\n - ``H0`` -- Hubble constant. (km s-1 Mpc-1) Default *70.0*\n\n **...
160
false
thespacedoctor/astrocalc
redshift_to_distance
8,798
LDU_FT/quantmind/pulsar-odm/database_all
LDU_FT
[ "<BEGIN>\n## `copy_models`", "Copy models from one module to another\n :param module_from:\n :param module_to:\n :return:\n<END>", "<BEGIN>\n## `register`", "Register a model or a table with this mapper", " :param model: a table or a :class:`.BaseModel` class\n :return: a Model class ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the database_all API. 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 database_all API. 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 a dictionary mapping engines with databases
"Return a dictionary mapping engines with databases"
29
false
quantmind/pulsar-odm
database_all
8,799
LDU_FT/crdoconnor/strictyaml/fork
LDU_FT
[ "<BEGIN>\n## `set_up`", "Set up your applications and the test environment.\n<END>", "<BEGIN>\n## `fork`", "Return a chunk referring to the same location in a duplicated document.", " Used when modifying a YAML chunk so that the modification can be validated\n before changing it.\n<END>", "<...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the fork API. 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 fork API. 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 chunk referring to the same location in a duplicated document. Used when modifying a YAML chunk so that the modification can be validated before changing it.
"Return a chunk referring to the same location in a duplicated document.\n\n Used when modifying a YAML chunk so that the modification can be validated\n before changing it."
54
false
crdoconnor/strictyaml
fork
8,800
LDU_FT/scidash/sciunit/register_quantity
LDU_FT
[ "<BEGIN>\n## `mean`", "Compute a total score for each model over all the tests.", " Uses the `norm_score` attribute, since otherwise direct comparison\n across different kinds of scores would not be possible.\n<END>", "<BEGIN>\n## `to_html`", "Extend Pandas built in `to_html` method for render...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the register_quantity API. 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 register_quantity API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Register `name` as a type to validate as an instance of class `cls`.
"Register `name` as a type to validate as an instance of class `cls`."
128
false
scidash/sciunit
register_quantity
8,801
LDU_FT/gregmuellegger/django-autofixture/get_release
LDU_FT
[ "<BEGIN>\n## `register`", "Register a model with the registry.", " Arguments:", " *model* can be either a model class or a string that contains the model's\n app label and class name seperated by a dot, e.g. ``\"app.ModelClass\"``.", " *autofixture* is the :mod:`AutoFixture` subclass...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_release API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_release API. 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...
Return package version as listed in `__version__` in `init.py`.
"Return package version as listed in `__version__` in `init.py`."
46
false
gregmuellegger/django-autofixture
get_release
8,802
LDU_FT/dadadel/pyment/get_key_index
LDU_FT
[ "<BEGIN>\n## `isin_alone`", "Check if an element from a list is the only element of a string.", " :type elems: list\n :type line: str\n<END>", "<BEGIN>\n## `isin_start`", "Check if an element from a list starts a string.", " :type elems: list\n :type line: str\n<END>", "<BEGIN>\n## `isin`", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_key_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 ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_key_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 ext...
Get from a docstring the next option with a given key. :param data: string to parse :param starting: does the key element must start the line (Default value = True) :type starting: boolean :param key: the key category. Can be 'param', 'type', 'return', ... :returns: index of fou...
"Get from a docstring the next option with a given key.\n\n :param data: string to parse\n :param starting: does the key element must start the line (Default value = True)\n :type starting: boolean\n :param key: the key category. Can be 'param', 'type', 'return', ...\n :returns: index...
165
false
dadadel/pyment
get_key_index
8,803
LDU_FT/PBR/MQ2/convert_inputfiles
LDU_FT
[ "<BEGIN>\n## `add_qtl_to_marker`", "Add the number of QTLs found for a given marker.", " :arg marker, the marker we are looking for the QTL's.\n :arg qtls, the list of all QTLs found.\n<END>", "<BEGIN>\n## `add_qtl_to_map`", "This function adds to a genetic map for each marker the number\n of signi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the convert_inputfiles 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 convert_inputfiles 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...
Convert the input files present in the given folder or inputfile. This method creates the matrix representation of the QTLs results providing for each marker position the LOD value found for each trait as well as a representation of the genetic map used in the experiment. ...
"Convert the input files present in the given folder or\n inputfile.\n This method creates the matrix representation of the QTLs\n results providing for each marker position the LOD value found\n for each trait as well as a representation of the genetic map\n used in the experiment.\n...
98
false
PBR/MQ2
convert_inputfiles
8,804
LDU_FT/acorg/dark-matter/parseRangeString
LDU_FT
[ "<BEGIN>\n## `iter`", "Extract BLAST records and yield C{ReadAlignments} instances.", " For each file except the first, check that the BLAST parameters are\n compatible with those found (above, in __init__) in the first file.", " @return: A generator that yields C{ReadAlignments} instance...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parseRangeString API. 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 parseRangeString API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Parse a range string of the form 1-5,12,100-200. @param s: A C{str} specifiying a set of numbers, given in the form of comma separated numeric ranges or individual indices. @param convertToZeroBased: If C{True} all indices will have one subtracted from them. @return: A C{set} of all C{int}s...
"Parse a range string of the form 1-5,12,100-200.\n\n @param s: A C{str} specifiying a set of numbers, given in the form of\n comma separated numeric ranges or individual indices.\n @param convertToZeroBased: If C{True} all indices will have one\n subtracted from them.\n @return: A C{set} of all ...
601
false
acorg/dark-matter
parseRangeString
8,805
LDU_FT/matthewdeanmartin/jiggle_version/get_version
LDU_FT
[ "<BEGIN>\n## `require_python`", "Require at least a minimum Python version.", " The version number is expressed in terms of `sys.hexversion`. E.g. to\n require a minimum of Python 2.6, use::", " >>> require_python(0x206000f0)", " :param minimum: Minimum Python version supported.\n :type mini...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_version API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_version API. 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...
Extract the __version__ from a file without importing it. While you could get the __version__ by importing the module, the very act of importing can cause unintended consequences. For example, Distribute's automatic 2to3 support will break. Instead, this searches the file for a line that starts with ...
"Extract the __version__ from a file without importing it.\n\n While you could get the __version__ by importing the module, the very act\n of importing can cause unintended consequences. For example, Distribute's\n automatic 2to3 support will break. Instead, this searches the file for a\n line that starts...
124
false
matthewdeanmartin/jiggle_version
get_version
8,806
LDU_FT/ilgarm/pyzimbra/auth
LDU_FT
[ "<BEGIN>\n## `authenticate`", "Authenticates account, if no password given tries to pre-authenticate.\n @param transport: transport to use for method calls\n @param account_name: account name\n @param password: account password\n @return: AuthToken if authentication succeeded\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the auth API. 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 auth API. 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...
Authenticates using username and password.
"Authenticates using username and password."
32
false
ilgarm/pyzimbra
auth
8,807
LDU_FT/F483/btctxstore/verify_signature_unicode
LDU_FT
[ "<BEGIN>\n## `_recover_public_key`", "Recover a public key from a signature.\n See SEC 1: Elliptic Curve Cryptography, section 4.1.6, \"Public\n Key Recovery Operation\".\n http://www.secg.org/sec1-v2.pdf\n<END>", "<BEGIN>\n## `chunks`", "Split list into chunks of the given size.\n Original order ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the verify_signature_unicode API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the verify_signature_unicode API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio...
Verify <signature> of <unicode> by <address>.
"Verify <signature> of <unicode> by <address>."
41
false
F483/btctxstore
verify_signature_unicode
8,808
LDU_FT/PythonCharmers/python-future/get_word
LDU_FT
[ "<BEGIN>\n## `time2isoz`", "Return a string representing time in seconds since epoch, t.", " If the function is called without an argument, it will use the current\n time.", " The format of the returned string is like \"YYYY-MM-DD hh:mm:ssZ\",\n representing Universal Time (UTC, aka GMT). An exam...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_word API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_word API. 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...
word = atom / quoted-string Either atom or quoted-string may start with CFWS. We have to peel off this CFWS first to determine which type of word to parse. Afterward we splice the leading CFWS, if any, into the parsed sub-token. If neither an atom or a quoted-string is found before the next special,...
"word = atom / quoted-string\n\n Either atom or quoted-string may start with CFWS. We have to peel off this\n CFWS first to determine which type of word to parse. Afterward we splice\n the leading CFWS, if any, into the parsed sub-token.\n\n If neither an atom or a quoted-string is found before the next s...
1,185
true
PythonCharmers/python-future
get_word
8,809
LDU_FT/common-workflow-language/schema_salad/shortname
LDU_FT
[ "<BEGIN>\n## `declare_type`", "Add this type to our collection, if needed.\n<END>", "<BEGIN>\n## `add_namespaces`", "Collect the provided namespaces, checking for conflicts.\n<END>", "<BEGIN>\n## `collect_namespaces`", "Walk through the metadata object, collecting namespace declarations.\n<END>", "<BEGI...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the shortname API. 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 shortname API. 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...
Returns the last segment of the provided fragment or path.
"Returns the last segment of the provided fragment or path."
53
false
common-workflow-language/schema_salad
shortname
8,810
LDU_FT/bkjones/pyrabbit/create_user
LDU_FT
[ "<BEGIN>\n## `do_call`", "Send an HTTP request to the REST API.", " :param string path: A URL\n :param string method: The HTTP method (GET, POST, etc.) to use\n in the request.\n :param string body: A string representing any data to be sent in the\n body of the HTTP re...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_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 extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_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 extra...
Creates a user. :param string username: The name to give to the new user :param string password: Password for the new user :param string tags: Comma-separated list of tags for the user :returns: boolean
"Creates a user.\n\n :param string username: The name to give to the new user\n :param string password: Password for the new user\n :param string tags: Comma-separated list of tags for the user\n :returns: boolean"
112
false
bkjones/pyrabbit
create_user
8,811
LDU_FT/zero-os/0-core/upload
LDU_FT
[ "<BEGIN>\n## `stdout`", "The job stdout\n :return: string or None\n<END>", "<BEGIN>\n## `stderr`", "The job stderr\n :return: string or None\n<END>", "<BEGIN>\n## `exists`", "Returns true if the job is still running or zero-os still knows about this job ID", " After a job is finishe...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the upload API. 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 upload API. 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 ...
Uploads a file :param remote: remote file name :param reader: an object that implements the read(size) method (typically a file descriptor) :return:
"Uploads a file\n :param remote: remote file name\n :param reader: an object that implements the read(size) method (typically a file descriptor)\n :return:"
236
false
zero-os/0-core
upload
8,812
LDU_FT/desbma/sacad/isReachable
LDU_FT
[ "<BEGIN>\n## `waitAccessAsync`", "Wait the needed time before sending a request to honor rate limit.\n<END>", "<BEGIN>\n## `aiohttp_socket_timeout`", "Return a aiohttp.ClientTimeout object with only socket timeouts set.\n<END>", "<BEGIN>\n## `query`", "Send a GET/POST request or get data from cache, retry...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the isReachable API. 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 isReachable API. 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...
Send a HEAD request with short timeout or get data from cache, return True if ressource has 2xx status code, False instead.
"Send a HEAD request with short timeout or get data from cache, return True if ressource has 2xx status code, False instead."
63
false
desbma/sacad
isReachable
8,813
LDU_FT/alfred82santa/dirty-models/convert_enum
LDU_FT
[ "<BEGIN>\n## `recover_model_from_data`", "Function to reconstruct a model from DirtyModel basic information: original data, the modified and deleted\n fields.\n Necessary for pickle an object\n<END>", "<BEGIN>\n## `recover_dynamic_model_from_data`", "Function to reconstruct a model from DirtyModel basic...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the convert_enum API. 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 convert_enum API. 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...
Decorator to use Enum value on type casts.
"Decorator to use Enum value on type casts."
86
false
alfred82santa/dirty-models
convert_enum
8,814
LDU_FT/SeabornGames/Table/naming_convention_columns
LDU_FT
[ "<BEGIN>\n## `list_to_obj`", ":param list_: list of list or list of dictionary to use as the\n source\n :param columns: list of strings to label the columns when\n converting to str\n :param row_columns: list of columns in the...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the naming_convention_columns 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 naming_convention_columns API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi...
This will change the column names to a particular naming convention. underscore: lower case all letters and replaces spaces with _ title: uppercase first letter and replaces _ with spaces :param convention: str enum of "lowercase_underscore" :param remove_empty: bool if true will...
"This will change the column names to a particular naming convention.\n underscore: lower case all letters and replaces spaces with _\n title: uppercase first letter and replaces _ with spaces\n :param convention: str enum of \"lowercase_underscore\"\n :param remove_empty: bool if tr...
93
false
SeabornGames/Table
naming_convention_columns
8,815
LDU_FT/mila-iqia/fuel/lock
LDU_FT
[ "<BEGIN>\n## `convert_mnist`", "Converts the MNIST dataset to HDF5.", " Converts the MNIST dataset to an HDF5 dataset compatible with\n :class:`fuel.datasets.MNIST`. The converted dataset is\n saved as 'mnist.hdf5'.", " This method assumes the existence of the following files:\n `train-images-i...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the 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 extracted do...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the 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 extracted do...
Obtain lock. Obtain lock access by creating a given temporary directory (whose base will be created if needed, but will not be deleted after the lock is removed). If access is refused by the same lock owner during more than 'timeout' seconds, then the current lock is overridden. If timeout is None,...
"Obtain lock.\n\n Obtain lock access by creating a given temporary directory (whose base\n will be created if needed, but will not be deleted after the lock is\n removed). If access is refused by the same lock owner during more than\n 'timeout' seconds, then the current lock is overridden. If timeout is\n ...
358
false
mila-iqia/fuel
lock
8,816
LDU_FT/kennethreitz/legit/unpublish
LDU_FT
[ "<BEGIN>\n## `unstash_index`", "Returns an unstash index if one is available.\n<END>", "<BEGIN>\n## `unstash_it`", "Unstashes changes from current branch for branch sync.\n Requires prior code setting self.stash_index.\n<END>", "<BEGIN>\n## `smart_pull`", "'git log --merges origin/master..master'\n...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the unpublish API. 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 unpublish API. 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...
Removes a published branch from the remote repository.
"Removes a published branch from the remote repository."
25
false
kennethreitz/legit
unpublish
8,817
LDU_FT/OrangeTux/einder/select_channel
LDU_FT
[ "<BEGIN>\n## `connect`", "Connect sets up the connection with the Horizon box.\n<END>", "<BEGIN>\n## `disconnect`", "Disconnect closes the connection to the Horizon box.\n<END>", "<BEGIN>\n## `authorize`", "Use the magic of a unicorn and summon the set-top box to listen\n to us.", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the select_channel API. 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 select_channel API. 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...
Select a channel. :param channel: Number of channel.
"Select a channel.\n\n :param channel: Number of channel."
16
false
OrangeTux/einder
select_channel
8,818
LDU_FT/Workable/flask-log-request-id/auto_parser
LDU_FT
[ "<BEGIN>\n## `flask_ctx_get_request_id`", "Get request id from flask's G object\n :return: The id or None if not found.\n<END>", "<BEGIN>\n## `_log_http_event`", "It will create a log event as werkzeug but at the end of request holding the request-id", " Intended usage is a handler of Flask.after_...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the auto_parser API. 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 auto_parser API. 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...
Meta parser that will try all known parser and it will bring the first found id :param list[Callable] parsers: A list of callable parsers to try to extract request_id :return: The request id if it is found or None :rtype: str|None
"Meta parser that will try all known parser and it will bring the first found id\n :param list[Callable] parsers: A list of callable parsers to try to extract request_id\n :return: The request id if it is found or None\n :rtype: str|None"
15
false
Workable/flask-log-request-id
auto_parser
8,819
LDU_FT/hugapi/hug/json_convert
LDU_FT
[ "<BEGIN>\n## `arguments`", "Returns the name of all arguments a function takes\n<END>", "<BEGIN>\n## `generate_accepted_kwargs`", "Dynamically creates a function that when called with dictionary of arguments will produce a kwarg that's\n compatible with the supplied function\n<END>", "<BEGIN>\n## `aut...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the json_convert API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the json_convert API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
Registers the wrapped method as a JSON converter for the provided types. NOTE: custom converters are always globally applied
"Registers the wrapped method as a JSON converter for the provided types.\n\n NOTE: custom converters are always globally applied"
259
false
hugapi/hug
json_convert
8,820
LDU_FT/python-rope/rope/run_module
LDU_FT
[ "<BEGIN>\n## `find_occurrences`", "Return a list of `Location`\\s", " If `unsure` is `True`, possible matches are returned, too. You\n can use `Location.unsure` to see which are unsure occurrences.\n `resources` can be a list of `rope.base.resource.File`\\s that\n should be searched for occurrences...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the run_module API. 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 run_module API. 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...
Run `resource` module Returns a `rope.base.oi.doa.PythonFileRunner` object for controlling the process.
"Run `resource` module\n\n Returns a `rope.base.oi.doa.PythonFileRunner` object for\n controlling the process."
312
false
python-rope/rope
run_module
8,821
LDU_FT/jpgxs/pyopsview/_get_serializer
LDU_FT
[ "<BEGIN>\n## `_get_schema_loader`", "Gets a closure for schema.load_schema with the correct/current\n Opsview version\n<END>", "<BEGIN>\n## `_resolve_definitions`", "Interpolates definitions from the top-level definitions key into the\n schema. This is performed in a cut-down way similar to JSON...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_serializer API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_serializer API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
Gets a serializer for a particular type. For primitives, returns the serializer from the module-level serializers. For arrays and objects, uses the special _get_T_serializer methods to build the encoders and decoders.
"Gets a serializer for a particular type. For primitives, returns the\n serializer from the module-level serializers.\n For arrays and objects, uses the special _get_T_serializer methods to\n build the encoders and decoders."
26
false
jpgxs/pyopsview
_get_serializer
8,822
LDU_FT/albu/albumentations/bbox_transpose
LDU_FT
[ "<BEGIN>\n## `add_snow`", "Bleaches out pixels, mitation snow.", " From https://github.com/UjjwalSaxena/Automold--Road-Augmentation-Library", " Args:\n img:\n snow_point:\n brightness_coeff:", " Returns:\n<END>", "<BEGIN>\n## `add_fog`", "Add fog to the image.", " From...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the bbox_transpose API. 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 bbox_transpose API. 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...
Transposes a bounding box along given axis. Args: bbox (tuple): A tuple (x_min, y_min, x_max, y_max). axis (int): 0 - main axis, 1 - secondary axis. rows (int): Image rows. cols (int): Image cols.
"Transposes a bounding box along given axis.\n\n Args:\n bbox (tuple): A tuple (x_min, y_min, x_max, y_max).\n axis (int): 0 - main axis, 1 - secondary axis.\n rows (int): Image rows.\n cols (int): Image cols."
100
false
albu/albumentations
bbox_transpose
8,823
LDU_FT/praekeltfoundation/molo.yourtips/convert_to_article
LDU_FT
[ "<BEGIN>\n## `convert_to_article`", "This method converts a tip entry to an unpublished article\n :param entry_id: Tip entry to convert\n :return: redirect to the edit page of the converted tip\n<END>", "<BEGIN>\n## `your_tips_on_homepage`", "A template tag for the Tip of the Day on the homepage.\n N...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the convert_to_article 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 convert_to_article 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...
This method converts a tip entry to an unpublished article :param entry_id: Tip entry to convert :return: redirect to the edit page of the converted tip
"This method converts a tip entry to an unpublished article\n :param entry_id: Tip entry to convert\n :return: redirect to the edit page of the converted tip"
12
false
praekeltfoundation/molo.yourtips
convert_to_article
8,824
LDU_FT/emory-libraries/eulfedora/sparql_query
LDU_FT
[ "<BEGIN>\n## `file_md5sum`", "Calculate and returns an MD5 checksum for the specified file. Any file\n errors (non-existent file, read error, etc.) are not handled here but should\n be caught where this method is called.", " :param filename: full path to the file for which a checksum should be calcula...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the sparql_query API. 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 sparql_query API. 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...
Run a Sparql query. :param query: sparql query string :rtype: list of dictionary
"Run a Sparql query.\n\n :param query: sparql query string\n :rtype: list of dictionary"
312
false
emory-libraries/eulfedora
sparql_query
8,825
LDU_FT/zeroSteiner/AdvancedHTTPServer/add_sni_cert
LDU_FT
[ "<BEGIN>\n## `resolve_ssl_protocol_version`", "Look up an SSL protocol version by name. If *version* is not specified, then\n\tthe strongest protocol available will be returned.", "\t:param str version: The name of the version to look up.\n\t:return: A protocol constant from the :py:mod:`ssl` module.\n\t:rtype:...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_sni_cert API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_sni_cert API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
Add an SSL certificate for a specific hostname as supported by SSL's Server Name Indicator (SNI) extension. See :rfc:`3546` for more details on SSL extensions. In order to use this method, the server instance must have been initialized with at least one address configured for SSL. .. warning:: This method ...
"Add an SSL certificate for a specific hostname as supported by SSL's\n\t\tServer Name Indicator (SNI) extension. See :rfc:`3546` for more details\n\t\ton SSL extensions. In order to use this method, the server instance must\n\t\thave been initialized with at least one address configured for SSL.\n\n\t\t.. warning::\n\...
102
false
zeroSteiner/AdvancedHTTPServer
add_sni_cert
8,826
LDU_FT/nmdp-bioinformatics/SeqAnn/_seq
LDU_FT
[ "<BEGIN>\n## `search_seqs`", "search_seqs - method for annotating a BioPython sequence without alignment", " :param seqrec: The reference sequence\n :type seqrec: SeqRecord\n :param locus: The gene locus associated with the sequence.\n :type locus: str\n :param in_seq: The inp...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _seq API. 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 _seq API. 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...
creates GFE from HLA sequence and locus :param locus: string containing HLA locus. :param sequence: string containing sequence data. :return: GFEobject.
"creates GFE from HLA sequence and locus\n\n :param locus: string containing HLA locus.\n :param sequence: string containing sequence data.\n\n :return: GFEobject."
112
false
nmdp-bioinformatics/SeqAnn
_seq
8,827
LDU_FT/mjirik/io3d/obj_to_file
LDU_FT
[ "<BEGIN>\n## `get_or_save_default`", "Get value stored in cache file or store there default value.\n :param key:\n :param default_value:\n :return:\n<END>", "<BEGIN>\n## `__get_segmentation_path`", "Create path with \"_segmentation\" suffix and keep extension.", " :param path:\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the obj_to_file API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the obj_to_file API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
Writes annotation in file. :param filetype: auto yaml pkl, pickle pklz, picklezip :param ndarray_to_list: convert ndarrays in obj to lists :param squeeze: squeeze ndarray
"Writes annotation in file.\n\n :param filetype:\n auto\n yaml\n pkl, pickle\n pklz, picklezip\n :param ndarray_to_list: convert ndarrays in obj to lists\n :param squeeze: squeeze ndarray"
182
false
mjirik/io3d
obj_to_file
8,828
LDU_FT/mmp2/megaman/compute_affinity_matrix
LDU_FT
[ "<BEGIN>\n## `check_eigen_solver`", "Check that the selected eigensolver is valid", " Parameters\n ----------\n eigen_solver : string\n string value to validate\n size, nvec : int (optional)\n if both provided, use the specified problem size and number of vectors\n to determine ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the compute_affinity_matrix API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the compute_affinity_matrix API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion...
This function will compute the affinity matrix. In order to acquire the existing affinity matrix use self.affinity_matrix as comptute_affinity_matrix() will re-compute the affinity matrix. Parameters ---------- copy : boolean whether to return a copied version of the...
"This function will compute the affinity matrix. In order to\n acquire the existing affinity matrix use self.affinity_matrix as\n comptute_affinity_matrix() will re-compute the affinity matrix.\n\n Parameters\n ----------\n copy : boolean\n whether to return a copied versio...
287
false
mmp2/megaman
compute_affinity_matrix
8,829
LDU_FT/googlefonts/fontbakery/com_google_fonts_check_monospace
LDU_FT
[ "<BEGIN>\n## `get_module_profile`", "Get or create a profile from a module and return it.", " If the name `module.profile` is present the value of that is returned.\n Otherwise, if the name `module.profile_factory` is present, a new profile\n is created using `module.profile_factory` and then `profile.auto_r...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the com_google_fonts_check_monospace 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 com_google_fonts_check_monospace API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its c...
Checking correctness of monospaced metadata. There are various metadata in the OpenType spec to specify if a font is monospaced or not. If the font is not trully monospaced, then no monospaced metadata should be set (as sometimes they mistakenly are...) Monospace fonts must: * post.isFixedWidth "Set to 0...
"Checking correctness of monospaced metadata.\n\n There are various metadata in the OpenType spec to specify if\n a font is monospaced or not. If the font is not trully monospaced,\n then no monospaced metadata should be set (as sometimes\n they mistakenly are...)\n\n Monospace fonts must:\n\n * post.isFixedWidth...
381
false
googlefonts/fontbakery
com_google_fonts_check_monospace
8,830
LDU_FT/deeplook/svglib/xlink_href_target
LDU_FT
[ "<BEGIN>\n## `find_font`", "Return the font and a Boolean indicating if the match is exact.\n<END>", "<BEGIN>\n## `svg2rlg`", "Convert an SVG file to an RLG Drawing object.\n<END>", "<BEGIN>\n## `monkeypatch_reportlab`", "https://bitbucket.org/rptlab/reportlab/issues/95/\n ReportLab always use 'Even-Od...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the xlink_href_target API. 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 xlink_href_target API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Return either: - a tuple (renderer, node) when the the xlink:href attribute targets a vector file or node - the path to an image file for any raster image targets - None if any problem occurs
"Return either:\n - a tuple (renderer, node) when the the xlink:href attribute targets\n a vector file or node\n - the path to an image file for any raster image targets\n - None if any problem occurs"
40
false
deeplook/svglib
xlink_href_target
8,831
LDU_FT/libtcod/python-tcod/map_copy
LDU_FT
[ "<BEGIN>\n## `_int`", "return an integer where a single character string may be expected\n<END>", "<BEGIN>\n## `_describe_bitmask`", "Returns a bitmask in human readable form.", " This is a private function, used internally.", " Args:\n bits (int): The bitmask to be represented.\n tabl...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the map_copy API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the map_copy API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
Copy map data from `source` to `dest`. .. deprecated:: 4.5 Use Python's copy module, or see :any:`tcod.map.Map` and assign between array attributes manually.
"Copy map data from `source` to `dest`.\n\n .. deprecated:: 4.5\n Use Python's copy module, or see :any:`tcod.map.Map` and assign between\n array attributes manually."
1,050
true
libtcod/python-tcod
map_copy
8,832
LDU_FT/cni/MRS/fit_naa
LDU_FT
[ "<BEGIN>\n## `fetch_data`", "Downloads files to folder and checks their md5 checksums", " Parameters\n ----------\n files : dictionary\n For each file in `files` the value should be (url, md5). The file will\n be downloaded from url if the file does not already exist or if the\n fi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the fit_naa API. 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 fit_naa API. 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...
Fit a Lorentzian function to the NAA peak at ~ 2 ppm. Example of fitting inverted peak: Foerster et al. 2013, An imbalance between excitatory and inhibitory neurotransmitters in amyothrophic lateral sclerosis revealed by use of 3T proton MRS
"Fit a Lorentzian function to the NAA peak at ~ 2 ppm. Example of\n fitting inverted peak: Foerster et al. 2013, An imbalance between\n excitatory and inhibitory neurotransmitters in amyothrophic lateral\n sclerosis revealed by use of 3T proton MRS"
328
false
cni/MRS
fit_naa
8,833
LDU_FT/adfinis-sygroup/freeze/_cmp
LDU_FT
[ "<BEGIN>\n## `freeze`", "Freeze tries to convert any data-structure in a hierarchy of tuples.\n Tuples are comparable/sortable/hashable, you can use this with\n with recursive_sort(). freeze has no recursion detection.", " :param data_structure: The structure to convert.", " >>> recursive_sort(f...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _cmp API. 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 _cmp API. 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...
Generic cmp method to support python 2/3
"Generic cmp method to support python 2/3"
53
false
adfinis-sygroup/freeze
_cmp
8,834
LDU_FT/mitodl/pylti/verify_request
LDU_FT
[ "<BEGIN>\n## `_post_patched_request`", "Authorization header needs to be capitalized for some LTI clients\n this function ensures that header is capitalized", " :param body: body of the call\n :param client: OAuth Client\n :param url: outcome url\n :return: response\n<END>", "<BEGIN>\n## `post_...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the verify_request API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the verify_request API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
Verify LTI request :raises: LTIException is request validation failed
"Verify LTI request\n :raises: LTIException is request validation failed"
53
false
mitodl/pylti
verify_request
8,835
LDU_FT/dropbox/stone/get_parser
LDU_FT
[ "<BEGIN>\n## `generic_type_name`", "Return a descriptive type name that isn't Python specific. For example, an\n int type will return 'integer' rather than 'int'.\n<END>", "<BEGIN>\n## `doc_unwrap`", "Applies two transformations to raw_doc:\n 1. N consecutive newlines are converted into N-1 newlines.\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_parser API. 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_parser API. 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 a ParserFactory with the state reset so it can be used to parse again. :return: ParserFactory
"Returns a ParserFactory with the state reset so it can be used to\n parse again.\n\n :return: ParserFactory"
613
false
dropbox/stone
get_parser
8,836
LDU_FT/brandonxiang/geojson-python-utils/point_in_multipolygon
LDU_FT
[ "<BEGIN>\n## `linestrings_intersect`", "To valid whether linestrings from geojson are intersected with each other.\n reference: http://www.kevlindev.com/gui/math/intersection/Intersection.js", " Keyword arguments:\n line1 -- first line geojson object\n line2 -- second line geojson object", " if...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the point_in_multipolygon 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 point_in_multipolygon API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
valid whether the point is located in a mulitpolygon (donut polygon is not supported) Keyword arguments: point -- point geojson object multipoly -- multipolygon geojson object if(point inside multipoly) return true else false
"valid whether the point is located in a mulitpolygon (donut polygon is not supported)\n\n Keyword arguments:\n point -- point geojson object\n multipoly -- multipolygon geojson object\n\n if(point inside multipoly) return true else false"
70
false
brandonxiang/geojson-python-utils
point_in_multipolygon
8,837
LDU_FT/317070/python-twitch-stream/send_video_frame
LDU_FT
[ "<BEGIN>\n## `_logged_in_successful`", "Test the login status from the returned communication of the\n server.", " :param data: bytes received from server during login\n :type data: list of bytes", " :return boolean, True when you are logged in.\n<END>", "<BEGIN>\n## `_push_from_...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the send_video_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 ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the send_video_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 ...
Send frame of shape (height, width, 3) with values between 0 and 1. Raises an OSError when the stream is closed. :param frame: array containing the frame. :type frame: numpy array with shape (height, width, 3) containing values between 0.0 and 1.0
"Send frame of shape (height, width, 3)\n with values between 0 and 1.\n Raises an OSError when the stream is closed.\n\n :param frame: array containing the frame.\n :type frame: numpy array with shape (height, width, 3)\n containing values between 0.0 and 1.0"
32
false
317070/python-twitch-stream
send_video_frame
8,838
LDU_FT/timothydmorton/VESPA/modelshift_weaksec
LDU_FT
[ "<BEGIN>\n## `from_df`", "Builds TripleOrbitPopulation from DataFrame", " ``DataFrame`` objects must be of appropriate form to pass\n to :func:`OrbitPopulation.from_df`.", " :param df_long, df_short:\n :class:`pandas.DataFrame` objects to pass to\n :func:`OrbitPopula...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the modelshift_weaksec 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 modelshift_weaksec 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...
Max secondary depth based on model-shift secondary test from Jeff Coughlin secondary metric: mod_depth_sec_dv * (1 + 3*mod_fred_dv / mod_sig_sec_dv)
"Max secondary depth based on model-shift secondary test from Jeff Coughlin\n\n secondary metric: mod_depth_sec_dv * (1 + 3*mod_fred_dv / mod_sig_sec_dv)"
495
false
timothydmorton/VESPA
modelshift_weaksec
8,839
LDU_FT/huge-success/sanic/handle_request
LDU_FT
[ "<BEGIN>\n## `group`", "Create a list of blueprints, optionally grouping them under a\n general URL prefix.", " :param blueprints: blueprints to be registered as a group\n :param url_prefix: URL route to be prepended to all sub-prefixes\n<END>", "<BEGIN>\n## `register`", "Register the b...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the handle_request API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the handle_request API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
Take a request from the HTTP Server and return a response object to be sent back The HTTP Server only expects a response object, so exception handling must be done here :param request: HTTP Request object :param write_callback: Synchronous response function to be called with...
"Take a request from the HTTP Server and return a response object\n to be sent back The HTTP Server only expects a response object, so\n exception handling must be done here\n\n :param request: HTTP Request object\n :param write_callback: Synchronous response function to be\n call...
238
false
huge-success/sanic
handle_request
8,840
LDU_FT/Microsoft/LightGBM/set_weight
LDU_FT
[ "<BEGIN>\n## `check_dependicies`", "Check the dynamic symbol versions.", " Parameters\n ----------\n objdump_string : string\n The dynamic symbol table entries of the file (result of `objdump -T` command).\n<END>", "<BEGIN>\n## `_objective_function_wrapper`", "Decorate an objective function....
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_weight API. 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 set_weight API. 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...
Set weight of each instance. Parameters ---------- weight : list, numpy 1-D array, pandas Series or None Weight to be set for each data point. Returns ------- self : Dataset Dataset with set weight.
"Set weight of each instance.\n\n Parameters\n ----------\n weight : list, numpy 1-D array, pandas Series or None\n Weight to be set for each data point.\n\n Returns\n -------\n self : Dataset\n Dataset with set weight."
379
false
Microsoft/LightGBM
set_weight
8,841
LDU_FT/aiogram/aiogram/get_sticker_set
LDU_FT
[ "<BEGIN>\n## `execute_filter`", "Helper for executing filter", " :param filter_:\n :param args:\n :return:\n<END>", "<BEGIN>\n## `check_filters`", "Check list of filters", " :param filters:\n :param args:\n :return:\n<END>", "<BEGIN>\n## `validate`", "Validate and parse config.", "...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_sticker_set API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_sticker_set API. 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...
Use this method to get a sticker set. Source: https://core.telegram.org/bots/api#getstickerset :param name: Name of the sticker set :type name: :obj:`base.String` :return: On success, a StickerSet object is returned :rtype: :obj:`types.StickerSet`
"Use this method to get a sticker set.\n\n Source: https://core.telegram.org/bots/api#getstickerset\n\n :param name: Name of the sticker set\n :type name: :obj:`base.String`\n :return: On success, a StickerSet object is returned\n :rtype: :obj:`types.StickerSet`"
1,040
true
aiogram/aiogram
get_sticker_set
8,842
LDU_FT/gabrielelanaro/chemview/topology_mdtraj
LDU_FT
[ "<BEGIN>\n## `pairs`", "Return array of pairs of adjacent elements in a.", " >>> pairs([1, 2, 3, 4])\n array([[1, 2],\n [2, 3],\n [3, 4]])\n<END>", "<BEGIN>\n## `points`", "Display the system as points.", " :param float size: the size of the points.\n<END>", "<BEGIN>\n##...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the topology_mdtraj API. 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 topology_mdtraj API. 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...
Generate topology spec for the MolecularViewer from mdtraj. :param mdtraj.Trajectory traj: the trajectory :return: A chemview-compatible dictionary corresponding to the topology defined in mdtraj.
"Generate topology spec for the MolecularViewer from mdtraj.\n\n :param mdtraj.Trajectory traj: the trajectory\n :return: A chemview-compatible dictionary corresponding to the topology defined in mdtraj."
45
false
gabrielelanaro/chemview
topology_mdtraj
8,843
LDU_FT/benmoran56/esper/_clear_dead_entities
LDU_FT
[ "<BEGIN>\n## `clear_database`", "Remove all Entities and Components from the World.\n<END>", "<BEGIN>\n## `add_processor`", "Add a Processor instance to the World.", " :param processor_instance: An instance of a Processor,\n subclassed from the Processor class\n :param priority: A highe...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _clear_dead_entities 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 _clear_dead_entities API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Finalize deletion of any Entities that are marked dead. In the interest of performance, this method duplicates code from the `delete_entity` method. If that method is changed, those changes should be duplicated here as well.
"Finalize deletion of any Entities that are marked dead.\n \n In the interest of performance, this method duplicates code from the\n `delete_entity` method. If that method is changed, those changes should\n be duplicated here as well."
60
false
benmoran56/esper
_clear_dead_entities
8,844
LDU_FT/draperjames/qtpandas/rename
LDU_FT
[ "<BEGIN>\n## `startDrag`", "start a drag operation with a PandasCellPayload on defined index.", " Args:\n index (QModelIndex): model index you want to start the drag operation.\n<END>", "<BEGIN>\n## `initUi`", "Initalizes the Uuser Interface with all sub widgets.\n<END>", "<BEGIN>\n## `e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the rename API. 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 rename API. 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 ...
Renames the dataframe inplace calling appropriate signals. Wraps pandas.DataFrame.rename(*args, **kwargs) - overrides the inplace kwarg setting it to True. Example use: renames = {'colname1':'COLNAME_1', 'colname2':'COL2'} DataFrameModel.rename(columns=renames) :param a...
"Renames the dataframe inplace calling appropriate signals.\n Wraps pandas.DataFrame.rename(*args, **kwargs) - overrides\n the inplace kwarg setting it to True.\n\n Example use:\n renames = {'colname1':'COLNAME_1', 'colname2':'COL2'}\n DataFrameModel.rename(columns=renames)\n\n ...
420
false
draperjames/qtpandas
rename
8,845
LDU_FT/byu-dml/metalearn/compute
LDU_FT
[ "<BEGIN>\n## `get_canonical_correlations`", "computes the correlation coefficient between each distinct pairing of columns\n preprocessing note:\n any rows with missing values (in either paired column) are dropped for that pairing\n categorical columns are replaced with one-hot encoded columns\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the compute API. 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 compute API. 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...
Parameters ---------- X: pandas.DataFrame, the dataset features Y: pandas.Series, the dataset targets column_types: Dict[str, str], dict from column name to column type as "NUMERIC" or "CATEGORICAL" or "TEXT", must include Y column metafeature_ids: list, the metafeatu...
"Parameters\n ----------\n X: pandas.DataFrame, the dataset features\n Y: pandas.Series, the dataset targets\n column_types: Dict[str, str], dict from column name to column type as\n \"NUMERIC\" or \"CATEGORICAL\" or \"TEXT\", must include Y column\n metafeature_ids: list, ...
14
false
byu-dml/metalearn
compute
8,846
LDU_FT/tilezen/mapbox-vector-tile/_reorder_lines
LDU_FT
[ "<BEGIN>\n## `_coords`", "Return a list of lists of coordinates of the polygon. The list consists\n firstly of the list of exterior coordinates followed by zero or more lists\n of any interior coordinates.\n<END>", "<BEGIN>\n## `_drop_degenerate_inners`", "Drop degenerate (zero-size) inners from the pol...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _reorder_lines API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _reorder_lines API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
Reorder lines so that the distance from the end of one to the beginning of the next is minimised.
"Reorder lines so that the distance from the end of one to the beginning of\n the next is minimised."
32
false
tilezen/mapbox-vector-tile
_reorder_lines
8,847
LDU_FT/djgagne/hagelslag/center_of_mass
LDU_FT
[ "<BEGIN>\n## `label`", "Label input grid with hysteresis method.", " Args:\n input_grid: 2D array of values.", " Returns:\n Labeled output grid.\n<END>", "<BEGIN>\n## `size_filter`", "Remove labeled objects that do not meet size threshold criteria.", " Args:\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the center_of_mass API. 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 center_of_mass API. 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...
Calculate the center of mass at a given timestep. Args: time: Time at which the center of mass calculation is performed Returns: The x- and y-coordinates of the center of mass.
"Calculate the center of mass at a given timestep.\n\n Args:\n time: Time at which the center of mass calculation is performed\n\n Returns:\n The x- and y-coordinates of the center of mass."
530
false
djgagne/hagelslag
center_of_mass
8,848
LDU_FT/toumorokoshi/transmute-core/add_swagger
LDU_FT
[ "<BEGIN>\n## `from_argspec`", "retrieve a FunctionSignature object\n from the argspec and the annotations passed.\n<END>", "<BEGIN>\n## `split_args`", "given a dictionary of arguments, split them into\n args and kwargs", " note: this destroys the arg_dict passed. if you need it,\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_swagger API. 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 add_swagger API. 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...
a convenience method for both adding a swagger.json route, as well as adding a page showing the html documentation
"a convenience method for both adding a swagger.json route,\n as well as adding a page showing the html documentation"
100
false
toumorokoshi/transmute-core
add_swagger
8,849
LDU_FT/wilson-eft/wilson/_run_sm_scale_in
LDU_FT
[ "<BEGIN>\n## `alpha_s`", "3-loop computation of alpha_s for f flavours\n with initial condition alpha_s(MZ) = 0.1185\n<END>", "<BEGIN>\n## `m_b`", "r\"\"\"Get running b quark mass in the MSbar scheme at the scale `scale`\n in the theory with `f` dynamical quark flavours starting from $m_b(m_b)$\n<END>",...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _run_sm_scale_in API. 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 _run_sm_scale_in API. 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 SM parameters at the EW scale, using an estimate `C_out` of the Wilson coefficients at that scale, and run them to the input scale.
"Get the SM parameters at the EW scale, using an estimate `C_out`\n of the Wilson coefficients at that scale, and run them to the\n input scale."
216
false
wilson-eft/wilson
_run_sm_scale_in
8,850
LDU_FT/dasevilla/rovi-python/make_request
LDU_FT
[ "<BEGIN>\n## `make_request`", "Performs the API request. Most methods are a wrapper around this one.\n<END>", "<BEGIN>\n## `music_search`", "Search the music database", " Where ``entitiy_type`` is a comma separated list of:", " ``song``\n songs", " ``album``\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the make_request API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the make_request API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
Performs the API request. Most methods are a wrapper around this one.
"Performs the API request. Most methods are a wrapper around this one."
35
false
dasevilla/rovi-python
make_request
8,851
LDU_FT/inveniosoftware/invenio-records-files/dumps
LDU_FT
[ "<BEGIN>\n## `_writable`", "Check that record is in defined status.", " :param method: Method to be decorated.\n :returns: Function decorated.\n<END>", "<BEGIN>\n## `get_version`", "Return specific version ``ObjectVersion`` instance or HEAD.", " :param version_id: Version ID of the object.\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the dumps API. 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 dumps API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
Create a dump of the metadata associated to the record.
"Create a dump of the metadata associated to the record."
42
false
inveniosoftware/invenio-records-files
dumps
8,852
LDU_FT/sanger-pathogens/circlator/_orientation_ok_to_bridge_contigs
LDU_FT
[ "<BEGIN>\n## `run_spades`", "Runs spades on all kmers. Each a separate run because SPAdes dies if any kmer does\n not work. Chooses the 'best' assembly to be the one with the biggest N50\n<END>", "<BEGIN>\n## `aligned_read_to_read`", "Returns Fasta or Fastq sequence from pysam aligned read\n<END>", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _orientation_ok_to_bridge_contigs 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 _orientation_ok_to_bridge_contigs API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its ...
Returns True iff the orientation of the hits means that the query contig of both hits can bridge the reference contigs of the hits
"Returns True iff the orientation of the hits means that the query contig of both hits can bridge the reference contigs of the hits"
102
false
sanger-pathogens/circlator
_orientation_ok_to_bridge_contigs
8,853
LDU_FT/pricingassistant/mongokat/_param_fields
LDU_FT
[ "<BEGIN>\n## `_get_string`", "Decode a BSON string to python unicode string.\n<END>", "<BEGIN>\n## `_get_object`", "Decode a BSON subdocument to opts.document_class or bson.dbref.DBRef.\n<END>", "<BEGIN>\n## `_get_boolean`", "Decode a BSON true/false to python True/False.\n<END>", "<BEGIN>\n## `_get_dat...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _param_fields API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _param_fields API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
Normalize the "fields" argument to most find methods
"Normalize the \"fields\" argument to most find methods"
55
false
pricingassistant/mongokat
_param_fields
8,854
LDU_FT/TaurusOlson/fntools/indexesof
LDU_FT
[ "<BEGIN>\n## `use_with`", "Apply a function on the attributes of the data", " :param data: an object\n :param fn: a function\n :param attrs: some attributes of the object\n :returns: an object", " Let's create some data first::", " >>> from collections import namedtuple\n >>> Pe...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the indexesof API. 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 indexesof API. 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 all the indexes of the item in the collection :param coll: the collection :param item: a value :returns: a list of indexes >>> monties = ['Eric', 'John', 'Terry', 'Terry', 'Graham', 'Mickael'] >>> indexesof(monties, 'Terry') [2, 3]
"Return all the indexes of the item in the collection\n\n :param coll: the collection\n :param item: a value\n :returns: a list of indexes\n\n >>> monties = ['Eric', 'John', 'Terry', 'Terry', 'Graham', 'Mickael']\n >>> indexesof(monties, 'Terry')\n [2, 3]"
134
false
TaurusOlson/fntools
indexesof
8,855
LDU_FT/johnbywater/eventsourcing/get_last_array
LDU_FT
[ "<BEGIN>\n## `register_new_suffix_tree`", "Factory method, returns new suffix tree object.\n<END>", "<BEGIN>\n## `find_substring`", "Returns the index if substring in tree, otherwise -1.\n<END>", "<BEGIN>\n## `_canonize_suffix`", "This canonizes the suffix, walking along its suffix string until it\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_last_array API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_last_array API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
Returns last array in compound. :rtype: CompoundSequenceReader
"Returns last array in compound.\n\n :rtype: CompoundSequenceReader"
161
false
johnbywater/eventsourcing
get_last_array
8,856
LDU_FT/mapnik/Cascadenik/make_rule
LDU_FT
[ "<BEGIN>\n## `xindexes`", "Generate list of possible indexes into a list of slots.", " Best way to think of this is as a number where each digit might have a different radix.\n E.g.: (10, 10, 10) would return 10 x 10 x 10 = 1000 responses from (0, 0, 0) to (9, 9, 9),\n (2, 2, 2, 2) would re...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the make_rule API. 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 make_rule API. 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...
Given a Filter and some symbolizers, return a Rule prepopulated with applicable min/max scale denominator and filter.
"Given a Filter and some symbolizers, return a Rule prepopulated\n with applicable min/max scale denominator and filter."
123
false
mapnik/Cascadenik
make_rule
8,857
LDU_FT/datadesk/python-documentcloud/get_thumbnail_image
LDU_FT
[ "<BEGIN>\n## `_make_request`", "Configure a HTTP request, fire it off and return the response.\n<END>", "<BEGIN>\n## `_get_search_page`", "Retrieve one page of search results from the DocumentCloud API.\n<END>", "<BEGIN>\n## `search`", "Retrieve all objects that make a search query.", " Will loop...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_thumbnail_image API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_thumbnail_image API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
Downloads and returns the thumbnail sized image of a single page. The page kwarg specifies which page to return. One is the default.
"Downloads and returns the thumbnail sized image of a single page.\n\n The page kwarg specifies which page to return. One is the default."
107
false
datadesk/python-documentcloud
get_thumbnail_image
8,858
LDU_FT/DecBayComp/RWA-python/pokeStorable
LDU_FT
[ "<BEGIN>\n## `hdf5_storable`", "Registers a `Storable` instance in the global service.\n<END>", "<BEGIN>\n## `isreference`", "Tell whether a variable is an object reference.", " Due to garbage collection, some objects happen to get the id of a distinct variable.\n As a consequence, linking is not read...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the pokeStorable API. 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 pokeStorable API. 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...
Arguments: storable (StorableHandler): storable instance. objname (any): record reference. obj (any): object to be serialized. container (any): container. visited (dict): map of the previously serialized objects that are passed by referenc...
"Arguments:\n\n storable (StorableHandler): storable instance.\n\n objname (any): record reference.\n\n obj (any): object to be serialized.\n\n container (any): container.\n\n visited (dict): map of the previously serialized objects that are\n passed...
130
false
DecBayComp/RWA-python
pokeStorable
8,859
LDU_FT/haikuginger/beekeeper/printed_out
LDU_FT
[ "<BEGIN>\n## `merge`", "Take two copies of a variable and reconcile them. var1 is assumed\n to be the higher-level variable, and so will be overridden by var2\n where such becomes necessary.\n<END>", "<BEGIN>\n## `has_value_of_type`", "Does the variable both have the given type and\n have a varia...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the printed_out API. 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 printed_out API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
Create a string describing the APIObject and its children
"Create a string describing the APIObject and its children"
66
false
haikuginger/beekeeper
printed_out
8,860
LDU_FT/ruipgil/changepy/poisson
LDU_FT
[ "<BEGIN>\n## `pelt`", "PELT algorithm to compute changepoints in time series", " Ported from:\n https://github.com/STOR-i/Changepoints.jl\n https://github.com/rkillick/changepoint/\n Reference:\n Killick R, Fearnhead P, Eckley IA (2012) Optimal detection\n of changepoints w...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the poisson API. 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 poisson API. 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 segment cost function for a time series with a poisson distribution with changing mean Args: data (:obj:`list` of float): 1D time series data Returns: function: Function with signature (int, int) -> float where the first arg is the starting index, and t...
"Creates a segment cost function for a time series with a\n poisson distribution with changing mean\n\n Args:\n data (:obj:`list` of float): 1D time series data\n Returns:\n function: Function with signature\n (int, int) -> float\n where the first arg is the starting ind...
19
false
ruipgil/changepy
poisson
8,861
LDU_FT/frictionlessdata/tableschema-py/update_field
LDU_FT
[ "<BEGIN>\n## `primary_key`", "https://github.com/frictionlessdata/tableschema-py#schema\n<END>", "<BEGIN>\n## `foreign_keys`", "https://github.com/frictionlessdata/tableschema-py#schema\n<END>", "<BEGIN>\n## `add_field`", "https://github.com/frictionlessdata/tableschema-py#schema\n<END>", "<BEGIN>\n## `...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update_field API. 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 update_field API. 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...
https://github.com/frictionlessdata/tableschema-py#schema
"https://github.com/frictionlessdata/tableschema-py#schema"
38
false
frictionlessdata/tableschema-py
update_field
8,862
LDU_FT/jahuth/litus/snip
LDU_FT
[ "<BEGIN>\n## `create_timing_signals`", "Creates a linear list/np.array of timestamps and a list of integers, specifying the sequence \n and number of levels.", " The levels are first rotated on the first dimension, then the second and so on. If the \n last dimension is -1, the number of lev...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the snip API. 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 snip API. 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...
This function records a previously execute notebook cell into a file (default: ipython_history.py) a tag can be added to sort the cell `start` defines which cell in the history to record. Default is -2, ie. the one executed previously to the current one.
"This function records a previously execute notebook cell into a file (default: ipython_history.py)\n\n a tag can be added to sort the cell\n\n `start` defines which cell in the history to record. Default is -2, ie. the one executed previously to the current one."
190
false
jahuth/litus
snip
8,863
LDU_FT/inveniosoftware/kwalitee/check_message
LDU_FT
[ "<BEGIN>\n## `_get_files_modified`", "Get the list of modified files that are Python or Jinja2.\n<END>", "<BEGIN>\n## `_get_git_author`", "Return the git author from the git variables.\n<END>", "<BEGIN>\n## `_prepare_commit_msg`", "Prepare the commit message in tmp_file.", " It will build the commit ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the check_message API. 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 check_message API. 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...
Check the message format. Rules: - the first line must start by a component name - and a short description (52 chars), - then bullet points are expected - and finally signatures. :param components: compontents, e.g. ``('auth', 'utils', 'misc')`` :type components: `list` :param signatu...
"Check the message format.\n\n Rules:\n\n - the first line must start by a component name\n - and a short description (52 chars),\n - then bullet points are expected\n - and finally signatures.\n\n :param components: compontents, e.g. ``('auth', 'utils', 'misc')``\n :type components: `list`\n :p...
77
false
inveniosoftware/kwalitee
check_message
8,864
LDU_FT/ramses-tech/nefertari/set_override_rendered
LDU_FT
[ "<BEGIN>\n## `_import_public_names`", "Import public names from module into this module, like import *\n<END>", "<BEGIN>\n## `encrypt_password`", "Crypt :new_value: if it's not crypted yet.\n<END>", "<BEGIN>\n## `create_apikey_model`", "Generate ApiKey model class and connect it with :user_model:.", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_override_rendered 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 set_override_rendered API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Set self.request.override_renderer if needed.
"Set self.request.override_renderer if needed."
226
false
ramses-tech/nefertari
set_override_rendered
8,865
LDU_FT/holgern/pyedflib/setPhysicalMaximum
LDU_FT
[ "<BEGIN>\n## `short_path`", "Return relative or absolute path name, whichever is shortest.\n<END>", "<BEGIN>\n## `get_all_dict`", "Return a copy of the __all__ dict with irrelevant items removed.\n<END>", "<BEGIN>\n## `compare`", "Return sets of objects only in __all__, refguide, or completely missing.\n<...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the setPhysicalMaximum 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 setPhysicalMaximum 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...
Sets the physical_maximum of signal edfsignal. Parameters ---------- edfsignal: int signal number physical_maximum: float Sets the physical maximum Notes ----- This function is required for every signal and can be called only after openin...
"Sets the physical_maximum of signal edfsignal.\n\n Parameters\n ----------\n edfsignal: int\n signal number\n physical_maximum: float\n Sets the physical maximum\n\n Notes\n -----\n This function is required for every signal and can be called only ...
135
false
holgern/pyedflib
setPhysicalMaximum
8,866
LDU_FT/RRZE-HPC/pycachesim/stats
LDU_FT
[ "<BEGIN>\n## `load`", "Load one or more addresses.", " :param addr: byte address of load location\n :param length: All address from addr until addr+length (exclusive) are\n loaded (default: 1)\n<END>", "<BEGIN>\n## `store`", "Store one or more adresses.", " :para...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the stats API. 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 stats API. 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 dictionay with all stats at this level.
"Return dictionay with all stats at this level."
19
false
RRZE-HPC/pycachesim
stats
8,867
LDU_FT/dshean/pygeotools/parse_extent
LDU_FT
[ "<BEGIN>\n## `fn_check_full`", "Check for file existence", " Avoids race condition, but slower than os.path.exists.", " Parameters\n ----------\n fn : str\n Input filename string.", " Returns\n -------\n status \n True if file exists, False otherwise.\n<END>", "<BEGIN>\n...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_extent API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_extent API. 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...
Parse arbitrary input extent Parameters ---------- extent : str or gdal.Dataset or filename or list of float Arbitrary input extent src_ds_list : list of gdal.Dataset objects, optional Needed if specifying 'first', 'last', 'intersection', or 'union' t_srs : osr.SpatialReference() ob...
"Parse arbitrary input extent\n\n Parameters\n ----------\n extent : str or gdal.Dataset or filename or list of float\n Arbitrary input extent\n src_ds_list : list of gdal.Dataset objects, optional\n Needed if specifying 'first', 'last', 'intersection', or 'union'\n t_srs : osr.SpatialRefer...
322
false
dshean/pygeotools
parse_extent
8,868
LDU_FT/serhatbolsu/robotframework-appiumlibrary/install_app
LDU_FT
[ "<BEGIN>\n## `zoom`", "Zooms in on an element a certain amount.\n<END>", "<BEGIN>\n## `swipe`", "Swipe from one point to another point, for an optional duration.\r", " Args:\r\n - start_x - x-coordinate at which to start\r\n - start_y - y-coordinate at which to start\r\n - off...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the install_app API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the install_app API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
Install App via Appium Android only. - app_path - path to app - app_package - package of install app to verify
"Install App via Appium\n \n Android only.\n\n - app_path - path to app\n - app_package - package of install app to verify"
217
false
serhatbolsu/robotframework-appiumlibrary
install_app
8,869
LDU_FT/moble/spinsfast/f_extend_old
LDU_FT
[ "<BEGIN>\n## `ind_lm`", "Convert single index to corresponding (ell, m) pair\n<END>", "<BEGIN>\n## `salm2map`", "Convert mode weights of spin-weighted function to values on a grid", " Parameters\n ----------\n salm : array_like, complex, shape (..., (lmax+1)**2)\n Input array representing mo...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the f_extend_old API. 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 f_extend_old API. 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...
Extend map of function to cover sphere "twice" up to theta=2pi This introduces new points when Nphi is odd, and duplicates values when Nphi is even, making it easier to perform certain transformation operations. This is mostly an internal function, included here for backwards compatibility. See map2salm ...
"Extend map of function to cover sphere \"twice\" up to theta=2pi\n\n This introduces new points when Nphi is odd, and duplicates values when Nphi is even, making it\n easier to perform certain transformation operations.\n\n This is mostly an internal function, included here for backwards compatibility. See m...
46
false
moble/spinsfast
f_extend_old
8,870
LDU_FT/neurosnap/mudicom/VR
LDU_FT
[ "<BEGIN>\n## `validate`", "This function uses dciodvfy to generate\n a list of warnings and errors discovered within\n the DICOM file.", " :param fname: Location and filename of DICOM file.\n<END>", "<BEGIN>\n## `numpy`", "Grabs image data and converts it to a numpy array\n<END>", "<BEGIN>\n## `_...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the VR API. 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 VR API. 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...
Value Representation (VR) <-> Description lookup. :param VR: Takes the VR and returns its description :param description: Take the description of a VR and returns the VR
"Value Representation (VR) <-> Description lookup.\n\n :param VR: Takes the VR and returns its description\n :param description: Take the description of a VR and returns the VR"
35
false
neurosnap/mudicom
VR
8,871
LDU_FT/esheldon/fitsio/read_scamp_head
LDU_FT
[ "<BEGIN>\n## `is_little_endian`", "Return True if array is little endian, False otherwise.", " Parameters\n ----------\n array: numpy array\n A numerical python array.", " Returns\n -------\n Truth value:\n True for little-endian", " Notes\n -----\n Strings are neith...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the read_scamp_head API. 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 read_scamp_head API. 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...
read a SCAMP .head file as a fits header FITSHDR object parameters ---------- fname: string The path to the SCAMP .head file header: FITSHDR, optional Optionally combine the header with the input one. The input can be any object convertable to a FITSHDR object returns ...
"read a SCAMP .head file as a fits header FITSHDR object\n\n parameters\n ----------\n fname: string\n The path to the SCAMP .head file\n\n header: FITSHDR, optional\n Optionally combine the header with the input one. The input can\n be any object convertable to a FITSHDR object\n\n ...
294
false
esheldon/fitsio
read_scamp_head
8,872