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/rlabbe/filterpy/pretty_str
LDU_FT
[ "<BEGIN>\n## `reset`", "reset filter back to state at time of construction\n<END>", "<BEGIN>\n## `update`", "Update filter with new measurement `z`", " Returns\n -------", " x : np.array\n estimate for this time step (same as self.x)\n<END>", "<BEGIN>\n## `errors`", "Co...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the pretty_str API. 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 pretty_str API. 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...
Generates a pretty printed NumPy array with an assignment. Optionally transposes column vectors so they are drawn on one line. Strictly speaking arr can be any time convertible by `str(arr)`, but the output may not be what you want if the type of the variable is not a scalar or an ndarray. Examples...
"Generates a pretty printed NumPy array with an assignment. Optionally\n transposes column vectors so they are drawn on one line. Strictly speaking\n arr can be any time convertible by `str(arr)`, but the output may not\n be what you want if the type of the variable is not a scalar or an\n ndarray.\n\n E...
665
false
rlabbe/filterpy
pretty_str
23,973
LDU_FT/linkedin/luminol/average
LDU_FT
[ "<BEGIN>\n## `_analyze_root_causes`", "Conduct root cause analysis.\n The first metric of the list is taken as the root cause right now.\n<END>", "<BEGIN>\n## `_load`", "Load time series into a TimeSeries object.\n :param timeseries: a TimeSeries, a dictionary or a path to a csv file(str).\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the average API. 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 average API. 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...
Calculate the average value over the time series. :param default: Value to return as a default should the calculation not be possible. :return: Float representing the average value or `None`.
"Calculate the average value over the time series.\n\n :param default: Value to return as a default should the calculation not be possible.\n :return: Float representing the average value or `None`."
95
false
linkedin/luminol
average
23,974
LDU_FT/flowroute/txjason/startService
LDU_FT
[ "<BEGIN>\n## `addToService`", "Add this Handler's exported methods to an RPC Service instance.\n<END>", "<BEGIN>\n## `add`", "Adds a new method to the jsonrpc service.", " Arguments:\n f -- the remote function\n name -- name of the method in the jsonrpc service\n types -- list or...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the startService API. 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 startService API. 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...
Start the service and connect the JSONRPCClientFactory.
"Start the service and connect the JSONRPCClientFactory."
40
false
flowroute/txjason
startService
23,975
LDU_FT/kyan001/ping3/verbose_ping
LDU_FT
[ "<BEGIN>\n## `ones_comp_sum16`", "Calculates the 1's complement sum for 16-bit numbers.", " Args:\n num1: 16-bit number.\n num2: 16-bit number.", " Returns:\n The calculated result.\n<END>", "<BEGIN>\n## `checksum`", "Calculates the checksum of the input bytes.", " RFC1071:...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the verbose_ping API. 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 verbose_ping API. 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...
Send pings to destination address with the given timeout and display the result. Args: dest_addr: The destination address. Ex. "192.168.1.1"/"example.com" count: How many pings should be sent. Default is 4, same as Windows CMD. (default 4) *args and **kwargs: And all the other arguments ava...
"Send pings to destination address with the given timeout and display the result.\n\n Args:\n dest_addr: The destination address. Ex. \"192.168.1.1\"/\"example.com\"\n count: How many pings should be sent. Default is 4, same as Windows CMD. (default 4)\n *args and **kwargs: And all the other arg...
30
false
kyan001/ping3
verbose_ping
23,976
LDU_FT/gforcada/haproxy_log_analysis/cmd_server_load
LDU_FT
[ "<BEGIN>\n## `filter_ip_range`", "Filter :class:`.Line` objects by IP range.", " Both *192.168.1.203* and *192.168.1.10* are valid if the provided ip\n range is ``192.168.1`` whereas *192.168.2.103* is not valid (note the\n *.2.*).", " :param ip_range: IP range that you want to filter to.\n :ty...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the cmd_server_load API. 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 cmd_server_load API. 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 statistics regarding how many requests were processed by each downstream server.
"Generate statistics regarding how many requests were processed by\n each downstream server."
71
false
gforcada/haproxy_log_analysis
cmd_server_load
23,977
LDU_FT/croscon/fleaker/create_app
LDU_FT
[ "<BEGIN>\n## `install`", "Install Fleaker.", " In a function so we can protect this file so it's only run when we\n explicitly invoke it and not, say, when py.test collects all Python\n modules.\n<END>", "<BEGIN>\n## `python_value`", "Return the JSON in the database as a ``dict``.", " Retu...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_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 extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_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 extrac...
Create the standard app for ``fleaker_config`` and register the two routes required.
"Create the standard app for ``fleaker_config`` and register the two\n routes required."
259
false
croscon/fleaker
create_app
23,978
LDU_FT/codeforamerica/three/_get_keywords
LDU_FT
[ "<BEGIN>\n## `city`", "Store the city that will be queried against.", " >>> three.city('sf')\n<END>", "<BEGIN>\n## `dev`", "Use an endpoint and any additional keyword arguments rather than one\n of the pre-defined cities. Similar to the `city` function, but useful for\n development.\n<END>", "<BE...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_keywords API. 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_keywords API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
Format GET request parameters and keywords.
"Format GET request parameters and keywords."
35
false
codeforamerica/three
_get_keywords
23,979
LDU_FT/bitcraft/pyscroll/translate_rect
LDU_FT
[ "<BEGIN>\n## `hit`", "Returns the items that overlap a bounding rectangle.", " Returns the set of all items in the quad-tree that overlap with a\n bounding rectangle.", " @param rect:\n The bounding rectangle being tested against the quad-tree. This\n must possess le...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the translate_rect API. 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 translate_rect API. 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...
Translate rect position and size to screen coordinates. Respects zoom level. :rtype: Rect
"Translate rect position and size to screen coordinates. Respects zoom level.\n\n :rtype: Rect"
112
false
bitcraft/pyscroll
translate_rect
23,980
LDU_FT/nabla-c0d3/sslyze/get_long_description
LDU_FT
[ "<BEGIN>\n## `do_handshake_with_robot`", "Modified do_handshake() to send a ROBOT payload and return the result.\n<END>", "<BEGIN>\n## `get_client_key_exchange_record`", "A client key exchange record with a hardcoded pre_master_secret, and a valid or invalid padding.\n<END>", "<BEGIN>\n## `get_finished_reco...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_long_description API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_long_description 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 the README file into the long description.
"Convert the README file into the long description."
92
false
nabla-c0d3/sslyze
get_long_description
23,981
LDU_FT/saxix/django-sysinfo/humanize_bytes
LDU_FT
[ "<BEGIN>\n## `merge`", "merges b into a", " >>> a={1:{\"a\":\"A\"},2:{\"b\":\"B\"}, 8:[]}\n >>> b={2:{\"c\":\"C\"},3:{\"d\":\"D\"}}", " >>> c = merge(a, b)\n >>> c == a == {8: [], 1: {\"a\": \"A\"}, 2: {\"c\": \"C\", \"b\": \"B\"}, 3: {\"d\": \"D\"}}\n True", " >>> c = merge(a, {1: \"a\"})...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the humanize_bytes API. 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 humanize_bytes API. 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 humanized string representation of a number of bytes. >>> humanize_bytes(1) '1 byte' >>> humanize_bytes(2) '2.0 bytes' >>> humanize_bytes(1024) '1.0 kB' >>> humanize_bytes(1024*123) '123.0 kB' >>> humanize_bytes(1024*12342) '12.1 MB' >>> humanize_bytes(1024*12342, p...
"Return a humanized string representation of a number of bytes.\n\n >>> humanize_bytes(1)\n '1 byte'\n >>> humanize_bytes(2)\n '2.0 bytes'\n >>> humanize_bytes(1024)\n '1.0 kB'\n >>> humanize_bytes(1024*123)\n '123.0 kB'\n >>> humanize_bytes(1024*12342)\n '12.1 MB'\n >>> humanize_bytes(...
33
false
saxix/django-sysinfo
humanize_bytes
23,982
LDU_FT/HDI-Project/RDT/transform
LDU_FT
[ "<BEGIN>\n## `check_data_type`", "Check the type of the transformer and column match.", " Args:\n column_metadata(dict): Metadata of the column.", " Raises a ValueError if the types don't match\n<END>", "<BEGIN>\n## `fit`", "Prepare the transformer to convert data.", " Ar...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the transform API. 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 transform API. 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...
Applies an exponential to values to turn them positive numbers. Args: column (pandas.DataFrame): Data to transform. Returns: pd.DataFrame
"Applies an exponential to values to turn them positive numbers.\n\n Args:\n column (pandas.DataFrame): Data to transform.\n\n Returns:\n pd.DataFrame"
154
false
HDI-Project/RDT
transform
23,983
LDU_FT/alephdata/memorious/db
LDU_FT
[ "<BEGIN>\n## `size`", "Total operations pending for this crawler\n<END>", "<BEGIN>\n## `read_word`", "OCR a single word from an image. Useful for captchas.\n Image should be pre-processed to remove noise etc.\n<END>", "<BEGIN>\n## `read_char`", "OCR a single character from an image. Useful for capt...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the db API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted docu...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the db API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted docu...
Insert or update `data` as a row into specified db table
"Insert or update `data` as a row into specified db table"
71
false
alephdata/memorious
db
23,984
LDU_FT/instacart/jardin/insert
LDU_FT
[ "<BEGIN>\n## `index_by`", "Returns a dict with a key for each value of `field` and the first record with that value as value.\n :param field: Name of the field to index by.\n :type field: string.\n<END>", "<BEGIN>\n## `destroy`", "Deletes the record. If the model has ``soft_delete`` activated, t...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the insert API. 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 insert API. 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 ...
Performs an INSERT statement on the model's table in the master database. :param values: A dictionary containing the values to be inserted. ``datetime``, ``dict`` and ``bool`` objects can be passed as is and will be correctly serialized by psycopg2. :type values: dict
"Performs an INSERT statement on the model's table in the master database.\n\n :param values: A dictionary containing the values to be inserted. ``datetime``, ``dict`` and ``bool`` objects can be passed as is and will be correctly serialized by psycopg2.\n :type values: dict"
41
false
instacart/jardin
insert
23,985
LDU_FT/johnwheeler/flask-ask/_map_player_request_to_func
LDU_FT
[ "<BEGIN>\n## `list`", "return list of purchasable and not entitled products\n<END>", "<BEGIN>\n## `_find_tide_info`", "Algorithm to find the 2 high tides for the day, the first of which is smaller and occurs\n mid-day, the second of which is larger and typically in the evening.\n<END>", "<BEGIN>\n## `pl...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _map_player_request_to_func API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclu...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _map_player_request_to_func API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclu...
Provides appropriate parameters to the on_playback functions.
"Provides appropriate parameters to the on_playback functions."
92
false
johnwheeler/flask-ask
_map_player_request_to_func
23,986
LDU_FT/ngmarchant/oasis/_calc_F_guess
LDU_FT
[ "<BEGIN>\n## `update`", "Update the posterior and estimates after a label is sampled", " Parameters\n ----------\n ell : int\n sampled label: 0 or 1", " k : int\n index of stratum where label was sampled\n<END>", "<BEGIN>\n## `_sample_item`", "Sample an it...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _calc_F_guess API. 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 _calc_F_guess API. 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...
Calculate an estimate of the F-measure based on the scores
"Calculate an estimate of the F-measure based on the scores"
115
false
ngmarchant/oasis
_calc_F_guess
23,987
LDU_FT/Othernet-Project/conz/rvpl
LDU_FT
[ "<BEGIN>\n## `read`", "Display a prompt and ask user for input", " A function to clean the user input can be passed as ``clean`` argument.\n This function takes a single value, which is the string user entered,\n and returns a cleaned value. Default is a pass-through function, which\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the rvpl API. 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 rvpl API. 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...
Start a read-validate-print loop The RVPL will read the user input, validate it, and loop until the entered value passes the validation, then return it. Error message can be customized using the ``error`` argument. If the value is a callable, it will be called with the value and it wil...
"Start a read-validate-print loop\n\n The RVPL will read the user input, validate it, and loop until the\n entered value passes the validation, then return it.\n\n Error message can be customized using the ``error`` argument. If the\n value is a callable, it will be called with the value and...
57
false
Othernet-Project/conz
rvpl
23,988
LDU_FT/bulkan/robotframework-requests/get_request
LDU_FT
[ "<BEGIN>\n## `_create_session`", "Create Session: create a HTTP session to a server", " ``url`` Base url of the server", " ``alias`` Robot Framework alias to identify the session", " ``headers`` Dictionary of default headers", " ``cookies`` Dictionary of cookies", " ``...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_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 extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_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 extra...
Send a GET request on the session object found using the given `alias` ``alias`` that will be used to identify the Session object in the cache ``uri`` to send the GET request to ``params`` url parameters to append to the uri ``headers`` a dictionary of headers to use with the...
"Send a GET request on the session object found using the\n given `alias`\n\n ``alias`` that will be used to identify the Session object in the cache\n\n ``uri`` to send the GET request to\n\n ``params`` url parameters to append to the uri\n\n ``headers`` a dictionary of headers to us...
151
false
bulkan/robotframework-requests
get_request
23,989
LDU_FT/rh-marketingops/dwm/data_lookup_method
LDU_FT
[ "<BEGIN>\n## `get_field_list`", "Retrieve list of all fields currently configured\n<END>", "<BEGIN>\n## `data_lookup_method`", "Method to lookup the replacement value given a single input value from\n the same field.", " :param dict fields_list: Fields configurations\n :param MongoClien...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the data_lookup_method 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 data_lookup_method 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...
Method to lookup the replacement value given a single input value from the same field. :param dict fields_list: Fields configurations :param MongoClient mongo_db_obj: MongoDB collection object :param dict hist: existing input of history values object :param dict record: values t...
"Method to lookup the replacement value given a single input value from\n the same field.\n\n :param dict fields_list: Fields configurations\n :param MongoClient mongo_db_obj: MongoDB collection object\n :param dict hist: existing input of history values object\n :param dict record: v...
68
false
rh-marketingops/dwm
data_lookup_method
23,990
LDU_FT/adamrehn/ue4cli/getThirdPartyLibIncludeDirs
LDU_FT
[ "<BEGIN>\n## `findArgs`", "Extracts the list of arguments that start with any of the specified prefix values\n<END>", "<BEGIN>\n## `stripArgs`", "Removes any arguments in the supplied list that are contained in the specified blacklist\n<END>", "<BEGIN>\n## `capture`", "Executes a child process and capture...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the getThirdPartyLibIncludeDirs API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclu...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the getThirdPartyLibIncludeDirs API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclu...
Retrieves the list of include directories for building against the Unreal-bundled versions of the specified third-party libraries
"Retrieves the list of include directories for building against the Unreal-bundled versions of the specified third-party libraries"
120
false
adamrehn/ue4cli
getThirdPartyLibIncludeDirs
23,991
LDU_FT/StanfordVL/robosuite/hide_visualization
LDU_FT
[ "<BEGIN>\n## `clear_objects`", "Clears objects with name @obj out of the task space. This is useful\n for supporting task modes with single types of objects, as in\n @self.single_object_mode without changing the model definition.\n<END>", "<BEGIN>\n## `staged_rewards`", "Returns staged rewards b...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the hide_visualization 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 hide_visualization 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...
Hides all visualization geoms and sites. This should be called before rendering to agents
"Hides all visualization geoms and sites.\n This should be called before rendering to agents"
354
false
StanfordVL/robosuite
hide_visualization
23,992
LDU_FT/openeemeter/eemeter/get_intercept_only_candidate_models
LDU_FT
[ "<BEGIN>\n## `as_freq`", "Resample data to a different frequency.", " This method can be used to upsample or downsample meter data. The\n assumption it makes to do so is that meter data is constant and averaged\n over the given periods. For instance, to convert billing-period data to\n daily data, t...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_intercept_only_candidate_models API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates it...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_intercept_only_candidate_models API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates it...
Return a list of a single candidate intercept-only model. Parameters ---------- data : :any:`pandas.DataFrame` A DataFrame containing at least the column ``meter_value``. DataFrames of this form can be made using the :any:`eemeter.create_caltrack_daily_design_matrix` or :any...
"Return a list of a single candidate intercept-only model.\n\n Parameters\n ----------\n data : :any:`pandas.DataFrame`\n A DataFrame containing at least the column ``meter_value``.\n DataFrames of this form can be made using the\n :any:`eemeter.create_caltrack_daily_design_matrix` or\n ...
213
false
openeemeter/eemeter
get_intercept_only_candidate_models
23,993
LDU_FT/JIC-CSB/jicimagelib/from_array
LDU_FT
[ "<BEGIN>\n## `transformation`", "Function decorator to turn another function into a transformation.\n<END>", "<BEGIN>\n## `smooth_gaussian`", "Returns Gaussian smoothed image.", " :param image: numpy array or :class:`jicimagelib.image.Image`\n :param sigma: standard deviation\n :returns: :class:`ji...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the from_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 extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the from_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 extrac...
Return :class:`jicimagelib.image.Image` instance from an array. :param array: :class:`numpy.ndarray` :param name: name of the image :param log_in_history: whether or not to log the creation event in the image's history :returns: :class:`jicimagelib...
"Return :class:`jicimagelib.image.Image` instance from an array.\n \n :param array: :class:`numpy.ndarray`\n :param name: name of the image\n :param log_in_history: whether or not to log the creation event\n in the image's history\n :returns: :class:`jici...
91
false
JIC-CSB/jicimagelib
from_array
23,994
LDU_FT/myint/rstcheck/find_config
LDU_FT
[ "<BEGIN>\n## `check`", "Yield errors.", " Use lower report_level for noisier error output.", " Each yielded error is a tuple of the form:", " (line_number, message)", " Line numbers are indexed at 1 and are with respect to the full RST file.", " Each code block is checked asynchronous...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_config API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_config API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
Return configuration filename. If `directory_or_file` is a file, return the real-path of that file. If it is a directory, find the configuration (any file name in CONFIG_FILES) in that directory or its ancestors.
"Return configuration filename.\n\n If `directory_or_file` is a file, return the real-path of that file. If it\n is a directory, find the configuration (any file name in CONFIG_FILES) in\n that directory or its ancestors."
29
false
myint/rstcheck
find_config
23,995
LDU_FT/scopus-api/scopus/get_document_eids
LDU_FT
[ "<BEGIN>\n## `detect_id_type`", "Method that tries to infer the type of abstract ID.", " Parameters\n ----------\n sid : str\n The ID of an abstract on Scopus.", " Raises\n ------\n ValueError\n If the ID type cannot be inferred.", " Notes\n -----\n PII usually has 1...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_document_eids API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_document_eids API. 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 list of EIDs for the author using ScopusSearch.
"Return list of EIDs for the author using ScopusSearch."
174
false
scopus-api/scopus
get_document_eids
23,996
LDU_FT/ptmcg/littletable/remove_many
LDU_FT
[ "<BEGIN>\n## `copy_template`", "Create empty copy of the current table, with copies of all\n index definitions.\n<END>", "<BEGIN>\n## `clone`", "Create full copy of the current table, including table contents\n and index definitions.\n<END>", "<BEGIN>\n## `create_index`", "Create a new...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the remove_many API. 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 remove_many API. 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...
Removes a collection of objects from the table.
"Removes a collection of objects from the table."
75
false
ptmcg/littletable
remove_many
23,997
LDU_FT/blockcypher/blockcypher-python/delete_metadata
LDU_FT
[ "<BEGIN>\n## `script_to_address`", "Like script_to_address but supports altcoins\n Copied 2015-10-02 from https://github.com/mflaxman/pybitcointools/blob/faf56c53148989ea390238c3c4541a6ae1d601f5/bitcoin/transaction.py#L224-L236\n<END>", "<BEGIN>\n## `get_address_details`", "Takes an address and coin_symbol...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the delete_metadata API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the delete_metadata API. 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...
Only available for metadata that was embedded privately.
"Only available for metadata that was embedded privately."
163
false
blockcypher/blockcypher-python
delete_metadata
23,998
LDU_FT/pypyr/pypyr-cli/get_arguments
LDU_FT
[ "<BEGIN>\n## `run_step`", "Wipe the entire context.", " Args:\n Context is a dictionary or dictionary-like.\n Does not require any specific keys in context.\n<END>", "<BEGIN>\n## `get_parsed_context`", "Parse input context string and returns context as dictionary.\n<END>", "<BEGIN>\n## `r...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_arguments API. 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_arguments API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
Parse arguments for pype from context and assign default values. Args: context: pypyr.context.Context. context is mandatory. Returns: tuple (pipeline_name, #str use_parent_context, #bool pipe_arg, #str skip_parse, #bool raise_error #b...
"Parse arguments for pype from context and assign default values.\n\n Args:\n context: pypyr.context.Context. context is mandatory.\n\n Returns:\n tuple (pipeline_name, #str\n use_parent_context, #bool\n pipe_arg, #str\n skip_parse, #bool\n rai...
527
false
pypyr/pypyr-cli
get_arguments
23,999
LDU_FT/serkanyersen/underscore.py/difference
LDU_FT
[ "<BEGIN>\n## `obj`", "Returns passed object but if chain method is used\n returns the last processed result\n<END>", "<BEGIN>\n## `_wrap`", "Returns result but ig chain method is used\n returns the object itself so we can chain\n<END>", "<BEGIN>\n## `_toOriginal`", "Pitty attempt to convert ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the difference API. 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 difference API. 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...
Take the difference between one array and a number of other arrays. Only the elements present in just the first array will remain.
"Take the difference between one array and a number of other arrays.\n Only the elements present in just the first array will remain."
130
false
serkanyersen/underscore.py
difference
24,000
LDU_FT/pecan/pecan/lookup_controller
LDU_FT
[ "<BEGIN>\n## `route`", "This function is used to define an explicit route for a path segment.", " You generally only want to use this in situations where your desired path\n segment is not a valid Python variable/function name.", " For example, if you wanted to be able to route to:", " /path/wit...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the lookup_controller API. 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 lookup_controller API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Traverses the requested url path and returns the appropriate controller object, including default routes. Handles common errors gracefully.
"Traverses the requested url path and returns the appropriate controller\n object, including default routes.\n\n Handles common errors gracefully."
157
false
pecan/pecan
lookup_controller
24,001
LDU_FT/crackinglandia/pype32/_fixPe
LDU_FT
[ "<BEGIN>\n## `showSectionsHeaders`", "Prints IMAGE_SECTION_HEADER for every section present in the file.\n<END>", "<BEGIN>\n## `getFields`", "Returns all the class attributues.", " @rtype: dict\n @return: A dictionary containing all the class attributes.\n<END>", "<BEGIN>\n## `parse`", "Re...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _fixPe API. 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 _fixPe API. 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 ...
Fixes the necessary fields in the PE file instance in order to create a valid PE32. i.e. SizeOfImage.
"Fixes the necessary fields in the PE file instance in order to create a valid PE32. i.e. SizeOfImage."
428
false
crackinglandia/pype32
_fixPe
24,002
LDU_FT/manns/pyspread/_get_text_color
LDU_FT
[ "<BEGIN>\n## `add_tools`", "Adds tools from self.toolbardata to self\n<END>", "<BEGIN>\n## `_get_button_label`", "Gets Button label from user and returns string\n<END>", "<BEGIN>\n## `OnButtonCell`", "Event handler for cell button toggle button\n<END>", "<BEGIN>\n## `OnVideoCell`", "Event handler for ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_text_color API. 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_text_color API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
Returns text color rgb tuple of right line
"Returns text color rgb tuple of right line"
1,275
true
manns/pyspread
_get_text_color
24,003
LDU_FT/roamanalytics/mittens/_get_optimizer
LDU_FT
[ "<BEGIN>\n## `_apply_updates`", "Apply AdaGrad update to parameters.", " Parameters\n ----------\n gradients", " Returns\n -------\n<END>", "<BEGIN>\n## `get_step`", "Computes the 'step' to take for the next gradient descent update.", " Returns the step rather t...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_optimizer API. 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_optimizer API. 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...
Uses Adagrad to optimize the GloVe/Mittens objective, as specified in the GloVe paper.
"Uses Adagrad to optimize the GloVe/Mittens objective,\n as specified in the GloVe paper."
47
false
roamanalytics/mittens
_get_optimizer
24,004
LDU_FT/wrboyce/telegrambot/api_payload
LDU_FT
[ "<BEGIN>\n## `from_api`", "Parses a payload from the API, guided by `_api_attrs`\n<END>", "<BEGIN>\n## `api_method`", "Returns the api method to `send` the current API Object type\n<END>", "<BEGIN>\n## `api_payload`", "Generates a payload ready for submission to the API, guided by `_api_payload`\n<END>", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the api_payload API. 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 api_payload API. 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...
Generates a payload ready for submission to the API, guided by `_api_payload`
"Generates a payload ready for submission to the API, guided by `_api_payload`"
34
false
wrboyce/telegrambot
api_payload
24,005
LDU_FT/pytroll/satpy/make_day_night_masks
LDU_FT
[ "<BEGIN>\n## `_get_coarse_dataset`", "Get the coarse dataset refered to by `key` from the XML data.\n<END>", "<BEGIN>\n## `get_dataset`", "Get output data and metadata of specified dataset.\n<END>", "<BEGIN>\n## `find_coefficient_index`", "Return index in to coefficient arrays for this band's wavelength."...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the make_day_night_masks 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 make_day_night_masks API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
given information on the solarZenithAngle for each point, generate masks defining where the day, night, and mixed regions are optionally provide the highAngleCutoff and lowAngleCutoff that define the limits of the terminator region (if no cutoffs are given the DEFAULT_HIGH_ANGLE and DEFAULT_LOW_ANGLE w...
"given information on the solarZenithAngle for each point,\n generate masks defining where the day, night, and mixed regions are\n\n optionally provide the highAngleCutoff and lowAngleCutoff that define\n the limits of the terminator region (if no cutoffs are given the\n DEFAULT_HIGH_ANGLE and DEFAULT_LOW_A...
924
false
pytroll/satpy
make_day_night_masks
24,006
LDU_FT/edeposit/edeposit.amqp.ftp/_remove_quotes
LDU_FT
[ "<BEGIN>\n## `load_users`", "Read passwd file and return dict with users and all their settings.", " Args:\n path (str, default settings.LOGIN_FILE): path of the file,\n which will be loaded (default :attr:`ftp.settings.LOGIN_FILE`).", " Returns:\n (dict): username: {pass_hash, ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _remove_quotes API. 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 _remove_quotes API. 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...
Remove quotes from `word` if the word starts and ands with quotes (" or ').
"Remove quotes from `word` if the word starts and ands with quotes (\" or ')."
166
false
edeposit/edeposit.amqp.ftp
_remove_quotes
24,007
LDU_FT/buguroo/pyknow/activate_left
LDU_FT
[ "<BEGIN>\n## `changes`", "Pass the given changes to the root_node.\n<END>", "<BEGIN>\n## `build_alpha_part`", "Given a set of already adapted rules, build the alpha part of\n the RETE network starting at `root_node`.\n<END>", "<BEGIN>\n## `build_beta_part`", "Given a set of already adapted rules, a...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the activate_left API. 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 activate_left API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
Make a copy of the received token and call `_activate_left`.
"Make a copy of the received token and call `_activate_left`."
78
false
buguroo/pyknow
activate_left
24,008
LDU_FT/cqparts/cqparts/serialize_parameters
LDU_FT
[ "<BEGIN>\n## `register_exporter`", "Register an exporter to use for a :class:`Part <cqparts.Part>`,\n :class:`Assembly <cqparts.Assembly>`, or both\n (with :class:`Component <cqparts.Component>`).", " Registration is necessary to use with\n :meth:`Component.exporter() <cqparts.Component.exporter>`."...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the serialize_parameters 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 serialize_parameters API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Get the parameter data in its serialized form. Data is serialized by each parameter's :meth:`Parameter.serialize` implementation. :return: serialized parameter data in the form: ``{<name>: <serial data>, ...}`` :rtype: :class:`dict`
"Get the parameter data in its serialized form.\n\n Data is serialized by each parameter's :meth:`Parameter.serialize`\n implementation.\n\n :return: serialized parameter data in the form: ``{<name>: <serial data>, ...}``\n :rtype: :class:`dict`"
377
false
cqparts/cqparts
serialize_parameters
24,009
LDU_FT/littlemo/moear-package-mobi/filter_images_urls
LDU_FT
[ "<BEGIN>\n## `item_completed`", "在正常图片本地化处理管道业务执行完毕后,使用缩略图路径替换原 ``result[path]`` 路径,\n 从而使最终打包时使用缩略图,并根据配置,对缩略图进行灰度处理", " :param item: 爬取到的数据模型\n :type item: :class:`.MoearPackageMobiItem` or dict\n<END>", "<BEGIN>\n## `process_item`", "将从图片处理管道流过的数据模型中的缩略图链接更新到文章中的相应图片 URL 上,\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the filter_images_urls 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 filter_images_urls 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...
图片链接过滤器,根据传入的过滤器规则,对图片链接列表进行过滤并返回结果列表 :param list(str) image_urls: 图片链接字串列表 :param list(str) image_filter: 过滤器字串列表 :param list(str) common_image_filter: 可选,通用的基础过滤器, 会在定制过滤器前对传入图片应用 :return: 过滤后的结果链接列表,以及被过滤掉的链接列表 :rtype: list(str), list(str) :raises TypeErro...
"图片链接过滤器,根据传入的过滤器规则,对图片链接列表进行过滤并返回结果列表\n\n :param list(str) image_urls: 图片链接字串列表\n :param list(str) image_filter: 过滤器字串列表\n :param list(str) common_image_filter: 可选,通用的基础过滤器,\n 会在定制过滤器前对传入图片应用\n :return: 过滤后的结果链接列表,以及被过滤掉的链接列表\n :rtype: list(str), list(str)\n :raises...
19
false
littlemo/moear-package-mobi
filter_images_urls
24,010
LDU_FT/tisimst/mcerp/percentile
LDU_FT
[ "<BEGIN>\n## `correlate`", "Force a correlation matrix on a set of statistically distributed objects.\r\n This function works on objects in-place.\r", " Parameters\r\n ----------\r\n params : array\r\n An array of of uv objects.\r\n corrmat : 2d-array\r\n The correlation matrix to b...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the percentile API. 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 percentile API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
Get the distribution value at a given percentile or set of percentiles. This follows the NIST method for calculating percentiles. Parameters ---------- val : scalar or array Either a single value or an array of values between 0 and 1. Returns ...
"Get the distribution value at a given percentile or set of percentiles.\n This follows the NIST method for calculating percentiles.\n \n Parameters\n ----------\n val : scalar or array\n Either a single value or an array of values between 0 and 1.\n \n Return...
166
false
tisimst/mcerp
percentile
24,011
LDU_FT/consbio/ncdjango/proj4_to_wkt
LDU_FT
[ "<BEGIN>\n## `p_binary_operators`", "conditional : conditional AND condition\n | conditional OR condition\n condition : condition LTE expression\n | condition GTE expression\n | condition LT expression\n | condition GT expression...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the proj4_to_wkt API. 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 proj4_to_wkt API. 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...
Converts a pyproj.Proj object to a well-known text string
"Converts a pyproj.Proj object to a well-known text string"
146
false
consbio/ncdjango
proj4_to_wkt
24,012
LDU_FT/mccutchen/triangulizor/draw_triangle
LDU_FT
[ "<BEGIN>\n## `triangulize`", "Processes the given image by breaking it down into tiles of the given\n size and applying a triangular effect to each tile. Returns the processed\n image as a PIL Image object.", " The image can be given as anything suitable for passing to `Image.open`\n (ie, the path t...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the draw_triangle API. 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 draw_triangle API. 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...
Draws a triangle with the given vertices in the given color.
"Draws a triangle with the given vertices in the given color."
22
false
mccutchen/triangulizor
draw_triangle
24,013
LDU_FT/MahjongRepository/mahjong/find_valid_combinations
LDU_FT
[ "<BEGIN>\n## `calculate_scores`", "Calculate how much scores cost a hand with given han and fu\n :param han: int\n :param fu: int\n :param config: HandConfig object\n :param is_yakuman: boolean\n :return: a dictionary with main and additional cost\n for ron additional cos...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_valid_combinations 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 find_valid_combinations API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion...
Find and return all valid set combinations in given suit :param tiles_34: :param first_index: :param second_index: :param hand_not_completed: in that mode we can return just possible shi\pon sets :return: list of valid combinations
"Find and return all valid set combinations in given suit\n :param tiles_34:\n :param first_index:\n :param second_index:\n :param hand_not_completed: in that mode we can return just possible shi\\pon sets\n :return: list of valid combinations"
41
false
MahjongRepository/mahjong
find_valid_combinations
24,014
LDU_FT/devassistant/devassistant/_get_api_dependencies_of
LDU_FT
[ "<BEGIN>\n## `is_local_subsection`", "Returns True if command dict is \"local subsection\", meaning\n that it is \"if\", \"else\" or \"for\" (not a real call, but calls\n run_section recursively.\n<END>", "<BEGIN>\n## `_process_req_txt`", "Returns a processed request or raises an exception\n<END>", "<...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_api_dependencies_of 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_api_dependencies_of API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio...
Returns list of first level dependencies of the given dap from Dapi
"Returns list of first level dependencies of the given dap from Dapi"
399
false
devassistant/devassistant
_get_api_dependencies_of
24,015
LDU_FT/shi-cong/PYSTUDY/random_str
LDU_FT
[ "<BEGIN>\n## `add_view`", "增加handler\n :param view_name: 路由\n :param handler: 处理类\n :return:\n<END>", "<BEGIN>\n## `start`", "启动服务器\n :param port: 端口号\n :return:\n<END>", "<BEGIN>\n## `create_process`", "创建进程\n :param daemon: True主进程关闭而关闭, False主进程必须等待子进程结束\n :para...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the random_str API. 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 random_str API. 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...
随机生成一串密码 :param n: 密码的长度,默认为20 :return: 长度为n的随机字符串
"随机生成一串密码\n :param n: 密码的长度,默认为20\n :return: 长度为n的随机字符串"
91
false
shi-cong/PYSTUDY
random_str
24,016
LDU_FT/bfontaine/p7magma/text
LDU_FT
[ "<BEGIN>\n## `_populate`", "Populate the list, assuming ``soup`` is a ``BeautifulSoup`` object.\n<END>", "<BEGIN>\n## `_populate_small_table`", "Populate the list, given that ``trs`` is a ``BeautifulSoup`` elements\n list from a large table (5 columns).\n<END>", "<BEGIN>\n## `_populate_large_table`",...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the text API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the text API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
Return the text of a ``BeautifulSoup`` element
"Return the text of a ``BeautifulSoup`` element"
26
false
bfontaine/p7magma
text
24,017
LDU_FT/jantman/awslimitchecker/set_threshold_override
LDU_FT
[ "<BEGIN>\n## `_last_step`", "If ``self._savepath`` doesn't exist, can't be read as JSON, or doesn't\n match ``VERSION``, return 0. Otherwise, return the step which that file\n lists as the last-run step for this release.", " :return: last-run step from the release or 0\n :rtype: int\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_threshold_override 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_threshold_override API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
Override the default warning and critical thresholds used to evaluate the specified limit's usage. Theresholds can be specified as a percentage of the limit, or as a usage count, or both. :param warn_percent: new warning threshold, percentage used :type warn_percent: int :param ...
"Override the default warning and critical thresholds used to evaluate\n the specified limit's usage. Theresholds can be specified as a\n percentage of the limit, or as a usage count, or both.\n\n :param warn_percent: new warning threshold, percentage used\n :type warn_percent: int\n ...
372
false
jantman/awslimitchecker
set_threshold_override
24,018
LDU_FT/rdussurget/py-altimetry/pop
LDU_FT
[ "<BEGIN>\n## `bilinear_interpolation`", "Interpolate (x,y) from values associated with four points.\r", " The four points are a list of four triplets: (x, y, value).\r\n The four points can be in any order. They should form a rectangle.\r", " >>> bilinear_interpolation(12, 5.5,\r\n ... ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the pop API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the pop API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
pop dimensions :parameter dimlist: list of dimensions :return: popped dimensions (tuple) .. note: overrides :func:`OrderedDict.pop`
"pop dimensions\r\n :parameter dimlist: list of dimensions\r\n :return: popped dimensions (tuple)\r\n \r\n .. note: overrides :func:`OrderedDict.pop`"
320
false
rdussurget/py-altimetry
pop
24,019
LDU_FT/rene-aguirre/pywinusb/show_hids
LDU_FT
[ "<BEGIN>\n## `hid_device_path_exists`", "Test if required device_path is still valid\r\n (HID device connected to host)\n<END>", "<BEGIN>\n## `find_all_hid_devices`", "Finds all HID devices connected to the system\n<END>", "<BEGIN>\n## `show_hids`", "Check all HID devices conected to PC hosts.\n<END>",...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the show_hids API. 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 show_hids API. 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...
Check all HID devices conected to PC hosts.
"Check all HID devices conected to PC hosts."
61
false
rene-aguirre/pywinusb
show_hids
24,020
LDU_FT/thomasbiddle/Kippt-for-Python/comment
LDU_FT
[ "<BEGIN>\n## `mark_read`", "Mark notifications as read.", " CURRENT UNSUPPORTED:\n https://github.com/kippt/api-documentation/blob/master/endpoints/notifications/POST_notifications.md\n<END>", "<BEGIN>\n## `update`", "Updates a Clip.", " Parameters:\n - args Dictionary of other...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the comment API. 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 comment API. 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...
Comment on a clip. Parameters: - body (Required)
"Comment on a clip.\n\n Parameters:\n - body (Required)"
16
false
thomasbiddle/Kippt-for-Python
comment
24,021
LDU_FT/oceanprotocol/oceandb-bigchaindb-driver/list
LDU_FT
[ "<BEGIN>\n## `ed25519_generate_key_pair_from_secret`", "Generate a new key pair.\n Args:\n secret (:class:`string`): A secret that serves as a seed\n Returns:\n A tuple of (private_key, public_key) encoded in base58.\n<END>", "<BEGIN>\n## `generate_key_pair`", "Generates a cryptographic ke...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the list API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the list API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
List all the objects saved in the namespace. :param search_from: TBI :param search_to: TBI :param offset: TBI :param limit: max number of values to be shows. :return: list with transactions.
"List all the objects saved in the namespace.\n\n :param search_from: TBI\n :param search_to: TBI\n :param offset: TBI\n :param limit: max number of values to be shows.\n :return: list with transactions."
28
false
oceanprotocol/oceandb-bigchaindb-driver
list
24,022
LDU_FT/lbryio/aioupnp/get_specific_port_mapping
LDU_FT
[ "<BEGIN>\n## `get_specific_port_mapping`", ":param external_port: (int) external port to listen on\n :param protocol: (str) 'UDP' | 'TCP'\n :return: (int) <internal port>, (str) <lan ip>, (bool) <enabled>, (str) <description>, (int) <lease time>\n<END>", "<BEGIN>\n## `delete_port_mapping`", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_specific_port_mapping API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_specific_port_mapping API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi...
:param external_port: (int) external port to listen on :param protocol: (str) 'UDP' | 'TCP' :return: (int) <internal port>, (str) <lan ip>, (bool) <enabled>, (str) <description>, (int) <lease time>
":param external_port: (int) external port to listen on\n :param protocol: (str) 'UDP' | 'TCP'\n :return: (int) <internal port>, (str) <lan ip>, (bool) <enabled>, (str) <description>, (int) <lease time>"
14
false
lbryio/aioupnp
get_specific_port_mapping
24,023
LDU_FT/fhs/pyhdf/write
LDU_FT
[ "<BEGIN>\n## `end`", "Close the V interface.", " Args::", " No argument", " Returns::", " None", " C library equivalent : Vend\n<END>", "<BEGIN>\n## `attach`", "Open an existing vgroup given its name or its reference\n number, or create a new vgroup, ret...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the write API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the write API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
Write records to the vdata. Writing starts at the current record position, which is advanced by the number of records written. Args:: values: 2-level sequence. First level is a sequence of records. A second level gives the sequence of record values. ...
"Write records to the vdata. Writing starts at the current\n record position, which is advanced by the number of records\n written.\n\n Args::\n\n values: 2-level sequence. First level is a sequence of records.\n A second level gives the sequence of record values.\n ...
605
false
fhs/pyhdf
write
24,024
LDU_FT/perimosocordiae/viztricks/plot
LDU_FT
[ "<BEGIN>\n## `gradient_line`", "Plot a 2-d line with a gradient representing ordering.\n See http://stackoverflow.com/q/8500700/10601 for details.\n<END>", "<BEGIN>\n## `irregular_contour`", "Handles interpolating irregular data to a grid,\n and plots it using the given func [default: contourf]\n See http:...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the plot API. 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 plot API. 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...
General plotting function that aims to cover most common cases. X : numpy array of 1d, 2d, or 3d points, with one point per row. marker : passed to the underlying plotting function kind : one of {plot, scatter} that controls the plot type. title : if given, used as the axis title fig : a matplotlib.Figure, or...
"General plotting function that aims to cover most common cases.\n X : numpy array of 1d, 2d, or 3d points, with one point per row.\n marker : passed to the underlying plotting function\n kind : one of {plot, scatter} that controls the plot type.\n title : if given, used as the axis title\n fig : a matplotlib.Figu...
25
false
perimosocordiae/viztricks
plot
24,025
LDU_FT/spyder-ide/spyder-notebook/register_plugin
LDU_FT
[ "<BEGIN>\n## `evaluate`", "Evaluate script in page frame.", " :param script: The script to evaluate.\n<END>", "<BEGIN>\n## `click`", "Click the targeted element.", " :param selector: A CSS3 selector to targeted element.\n :param btn: The number of mouse button.\n 0 - left b...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the register_plugin API. 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 register_plugin API. 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...
Register plugin in Spyder's main window.
"Register plugin in Spyder's main window."
45
false
spyder-ide/spyder-notebook
register_plugin
24,026
LDU_FT/mkaz/termgraph/vertically
LDU_FT
[ "<BEGIN>\n## `find_max_label_length`", "Return the maximum length for the labels.\n<END>", "<BEGIN>\n## `horiz_rows`", "Prepare the horizontal graph.\n Each row is printed through the print_row function.\n<END>", "<BEGIN>\n## `print_row`", "A method to print a row for a horizontal graphs.", " i...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the vertically API. 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 vertically API. 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...
Prepare the vertical graph. The whole graph is printed through the print_vertical function.
"Prepare the vertical graph.\n The whole graph is printed through the print_vertical function."
21
false
mkaz/termgraph
vertically
24,027
LDU_FT/inveniosoftware/invenio-jsonschemas/get_schema_path
LDU_FT
[ "<BEGIN>\n## `jsonresolver_loader`", "JSON resolver plugin that loads the schema endpoint.", " Injected into Invenio-Records JSON resolver.\n<END>", "<BEGIN>\n## `resolve_schema`", "Transform JSON schemas \"allOf\".", " This is the default schema resolver.", " This function was created because ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_schema_path API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_schema_path API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
Compute the schema's absolute path from a schema relative path. :param path: relative path of the schema. :raises invenio_jsonschemas.errors.JSONSchemaNotFound: If no schema was found in the specified path. :returns: The absolute path.
"Compute the schema's absolute path from a schema relative path.\n\n :param path: relative path of the schema.\n :raises invenio_jsonschemas.errors.JSONSchemaNotFound: If no schema\n was found in the specified path.\n :returns: The absolute path."
42
false
inveniosoftware/invenio-jsonschemas
get_schema_path
24,028
LDU_FT/tensorflow/datasets/from_proto
LDU_FT
[ "<BEGIN>\n## `_decode_image`", "Reads and decodes an image from a file object as a Numpy array.", " The SUN dataset contains images in several formats (despite the fact that\n all of them have .jpg extension). Some of them are:\n - BMP (RGB)\n - PNG (grayscale, RGBA, RGB interlaced)\n - JPEG (RGB)\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the from_proto API. 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 from_proto API. 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 new SplitDict initialized from the `repeated_split_infos`.
"Returns a new SplitDict initialized from the `repeated_split_infos`."
609
false
tensorflow/datasets
from_proto
24,029
LDU_FT/praw-dev/prawtools/top_submissions
LDU_FT
[ "<BEGIN>\n## `main`", "Provide the entry point to the subreddit_stats command.\n<END>", "<BEGIN>\n## `basic_stats`", "Return a markdown representation of simple statistics.\n<END>", "<BEGIN>\n## `fetch_recent_submissions`", "Fetch recent submissions in subreddit with boundaries.", " Does not incl...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the top_submissions API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the top_submissions API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
Return a markdown representation of the top submissions.
"Return a markdown representation of the top submissions."
48
false
praw-dev/prawtools
top_submissions
24,030
LDU_FT/zblz/naima/flux
LDU_FT
[ "<BEGIN>\n## `memoize`", "Cache decorator for functions inside model classes\n<END>", "<BEGIN>\n## `lnprior`", "Return probability of parameter values according to prior knowledge.\n Parameter limits should be done here through uniform prior ditributions\n<END>", "<BEGIN>\n## `get_sampler`", "Generate ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the flux API. 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 flux API. 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...
Differential flux at a given distance from the source. Parameters ---------- photon_energy : :class:`~astropy.units.Quantity` float or array Photon energy array. distance : :class:`~astropy.units.Quantity` float, optional Distance to the source. If set to 0, the...
"Differential flux at a given distance from the source.\n\n Parameters\n ----------\n photon_energy : :class:`~astropy.units.Quantity` float or array\n Photon energy array.\n\n distance : :class:`~astropy.units.Quantity` float, optional\n Distance to the source. If set ...
279
false
zblz/naima
flux
24,031
LDU_FT/python-visualization/branca/render
LDU_FT
[ "<BEGIN>\n## `legend_scaler`", "Downsamples the number of legend values so that there isn't a collision\n of text on the legend colorbar (within reason). The colorbar seems to\n support ~10 entries as a maximum.\n<END>", "<BEGIN>\n## `linear_gradient`", "Given a list of hexcode values, will return a lis...
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 ...
Renders the HTML representation of the element.
"Renders the HTML representation of the element."
73
false
python-visualization/branca
render
24,032
LDU_FT/bloomberg/bqplot/set_lim
LDU_FT
[ "<BEGIN>\n## `register_mark`", "Returns a decorator registering a mark class in the mark type registry.", " If no key is provided, the class name is used as a key. A key is provided\n for each core bqplot mark so that the frontend can use\n this key regardless of the kernel language.\n<END>", "<BEGIN...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_lim API. 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 set_lim API. 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...
Set the domain bounds of the scale associated with the provided key. Parameters ---------- name: hashable Any variable that can be used as a key for a dictionary Raises ------ KeyError When no context figure is associated with the provided key.
"Set the domain bounds of the scale associated with the provided key.\n\n Parameters\n ----------\n name: hashable\n Any variable that can be used as a key for a dictionary\n\n Raises\n ------\n KeyError\n When no context figure is associated with the provided key."
142
false
bloomberg/bqplot
set_lim
24,033
LDU_FT/harlowja/fasteners/is_writer
LDU_FT
[ "<BEGIN>\n## `_ensure_tree`", "Create a directory (and any ancestor directories required).", " :param path: Directory to create\n<END>", "<BEGIN>\n## `interprocess_locked`", "Acquires & releases a interprocess lock around call into\n decorated function.\n<END>", "<BEGIN>\n## `acquire`", "Attemp...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_writer API. 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 is_writer API. 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 if the caller is the active writer or a pending writer.
"Returns if the caller is the active writer or a pending writer."
37
false
harlowja/fasteners
is_writer
24,034
LDU_FT/tammoippen/geohash-hilbert/rectangle
LDU_FT
[ "<BEGIN>\n## `encode_int`", "Encode int into a string preserving order", " It is using 2, 4 or 6 bits per coding character (default 6).", " Parameters:\n code: int Positive integer.\n bits_per_char: int The number of bits per coding character.", " Returns:\n str: the...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the rectangle API. 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 rectangle API. 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...
Builds a (geojson) rectangle from `code` The center of the rectangle decodes as the lng/lat for code and the rectangle corresponds to the error-margin, i.e. every lng/lat point within this rectangle will be encoded as `code`, given `precision == len(code)`. Parameters: code: str The ...
"Builds a (geojson) rectangle from `code`\n\n The center of the rectangle decodes as the lng/lat for code and\n the rectangle corresponds to the error-margin, i.e. every lng/lat\n point within this rectangle will be encoded as `code`, given `precision == len(code)`.\n\n Parameters:\n code: str ...
63
false
tammoippen/geohash-hilbert
rectangle
24,035
LDU_FT/ebroecker/canmatrix/get_base_type_of_signal
LDU_FT
[ "<BEGIN>\n## `unpack_bitstring`", "returns a value calculated from bits\n :param length: length of signal in bits\n :param is_float: value is float\n :param bits: value as bits (array/iterable)\n :param is_signed: value is signed\n :return:\n<END>", "<BEGIN>\n## `pack_bitstring`", "returns a va...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_base_type_of_signal API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_base_type_of_signal API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion...
Get signal arxml-type and size based on the Signal properties.
"Get signal arxml-type and size based on the Signal properties."
51
false
ebroecker/canmatrix
get_base_type_of_signal
24,036
LDU_FT/inveniosoftware/invenio-openaire/iter_grants
LDU_FT
[ "<BEGIN>\n## `get_text_node`", "Return a text node from given XML tree given an lxml XPath.\n<END>", "<BEGIN>\n## `iter_grants`", "Fetch grants from a remote OAI-PMH endpoint.", " Return the Sickle-provided generator object.\n<END>", "<BEGIN>\n## `dump`", "Dump the grant information to a local st...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the iter_grants API. 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 iter_grants API. 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...
Fetch grants from a remote OAI-PMH endpoint. Return the Sickle-provided generator object.
"Fetch grants from a remote OAI-PMH endpoint.\n\n Return the Sickle-provided generator object."
33
false
inveniosoftware/invenio-openaire
iter_grants
24,037
LDU_FT/rlisagor/freshen/assert_looks_like
LDU_FT
[ "<BEGIN>\n## `assert_looks_like`", "Compare two strings if all contiguous whitespace is coalesced.\n<END>", "<BEGIN>\n## `run_steps`", "Can be called by the user from within a step definition to execute other steps.\n<END>", "<BEGIN>\n## `run_steps_from_string`", "Called from within step definitions to ru...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the assert_looks_like API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the assert_looks_like API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Compare two strings if all contiguous whitespace is coalesced.
"Compare two strings if all contiguous whitespace is coalesced."
15
false
rlisagor/freshen
assert_looks_like
24,038
LDU_FT/PrefPy/prefpy/generate_mix2pl_dataset
LDU_FT
[ "<BEGIN>\n## `mse`", "Description:\r\n Calculates the Mean Squared Error (MSE) of\r\n an estimation on flat numpy ndarrays.\r\n Parameters:\r\n mean: actual value (numpy ndarray)\r\n estimator: estimated value of the mean (numpy ndarray)\n<END>", "<BEGIN>\n## `sse`", "Descr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the generate_mix2pl_dataset API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the generate_mix2pl_dataset API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion...
Description: Generate a mixture of 2 Plackett-Luce models dataset and return the parameters and votes. Parameters: n: number of votes to generate m: number of alternatives useDirichlet: boolean flag to use the Dirichlet distribution
"Description:\r\n Generate a mixture of 2 Plackett-Luce models dataset\r\n and return the parameters and votes.\r\n Parameters:\r\n n: number of votes to generate\r\n m: number of alternatives\r\n useDirichlet: boolean flag to use the Dirichlet distribution"
316
false
PrefPy/prefpy
generate_mix2pl_dataset
24,039
LDU_FT/django-parler/django-parler/get_fallback_languages
LDU_FT
[ "<BEGIN>\n## `objectlanguage`", "Template tag to switch an object language\n Example::", " {% objectlanguage object \"en\" %}\n {{ object.title }}\n {% endobjectlanguage %}", " A TranslatedObject is not affected by the ``{% language .. %}`` tag\n as it maintains it's own state....
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_fallback_languages API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_fallback_languages 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 the fallback language codes, which are used in case there is no translation for the currently active language.
"Return the fallback language codes,\n which are used in case there is no translation for the currently active language."
163
false
django-parler/django-parler
get_fallback_languages
24,040
LDU_FT/hobson/pug-invest/join_time_series
LDU_FT
[ "<BEGIN>\n## `log_loss`", "Log of the loss (error) summed over all entries", " The negative of the logarithm of the frequency (probability) of the predicted\n label given the true binary label for a category.", " Arguments:\n predicted (np.array of float): 2-D table of probabilities for each\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the join_time_series API. 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 join_time_series API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Combine a dict of pd.Series objects into a single pd.DataFrame with optional downsampling FIXME: For ignore_year and multi-year data, the index (in seconds) is computed assuming 366 days per year (leap year). So 3 out of 4 years will have a 1-day (86400 s) gap Arguments: series (dict of Seri...
"Combine a dict of pd.Series objects into a single pd.DataFrame with optional downsampling\n\n FIXME:\n For ignore_year and multi-year data, the index (in seconds) is computed assuming\n 366 days per year (leap year). So 3 out of 4 years will have a 1-day (86400 s) gap\n\n Arguments:\n series (dict...
205
false
hobson/pug-invest
join_time_series
24,041
LDU_FT/bububa/pyTOP/_prune_invalidated_entries
LDU_FT
[ "<BEGIN>\n## `ordersku_update`", "taobao.trade.ordersku.update 更新交易订单的销售属性", " 需要商家或以上权限才可调用此接口,可重复调用本接口更新交易备注,本接口同时具有添加备注的功能\n<END>", "<BEGIN>\n## `get`", "taobao.topats.result.get 获取异步任务结果", " 使用指南:http://open.taobao.com/doc/detail.htm?id=30 ", " - 1.此接口用于获取异步任务处理的结果,传入的task_id必需属...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _prune_invalidated_entries API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclus...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _prune_invalidated_entries API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclus...
Rebuild our access_log without the invalidated entries.
"Rebuild our access_log without the invalidated entries."
619
false
bububa/pyTOP
_prune_invalidated_entries
24,042
LDU_FT/pjanis/funtool/_next_lowest_integer
LDU_FT
[ "<BEGIN>\n## `_wrap_measure`", "Creates a function on a state_collection, which creates analysis_collections for each state in the collection.", " Optionally sorts the collection if the state_measure has a sort_by parameter (see funtool.lib.general.sort_states for details)\n<END>", "<BEGIN>\n## `analysis_c...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _next_lowest_integer 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 _next_lowest_integer API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
returns the lowest available integer in a set of dict keys
"returns the lowest available integer in a set of dict keys"
40
false
pjanis/funtool
_next_lowest_integer
24,043
LDU_FT/jspricke/python-icstask/replace_vobject
LDU_FT
[ "<BEGIN>\n## `task2ics`", "Command line tool to convert from Taskwarrior to iCalendar\n<END>", "<BEGIN>\n## `ics2task`", "Command line tool to convert from iCalendar to Taskwarrior\n<END>", "<BEGIN>\n## `_update`", "Reload Taskwarrior files if the mtime is newer\n<END>", "<BEGIN>\n## `to_vobjects`", "...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the replace_vobject API. 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 replace_vobject API. 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...
Update the task with the UID from the vObject uuid -- the UID of the task vtodo -- the iCalendar to add project -- the project to add (see get_filesnames() as well)
"Update the task with the UID from the vObject\n uuid -- the UID of the task\n vtodo -- the iCalendar to add\n project -- the project to add (see get_filesnames() as well)"
26
false
jspricke/python-icstask
replace_vobject
24,044
LDU_FT/Adarnof/adarnauth-esi/get_expired
LDU_FT
[ "<BEGIN>\n## `sso_redirect`", "Generates a :model:`esi.CallbackRedirect` for the specified request.\n Redirects to EVE for login.\n Accepts a view or URL name as a redirect after SSO.\n<END>", "<BEGIN>\n## `receive_callback`", "Parses SSO callback, validates, retrieves :model:`esi.Token`, and internally...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_expired API. 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_expired API. 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...
Get all tokens which have expired. :return: All expired tokens. :rtype: :class:`esi.managers.TokenQueryset`
"Get all tokens which have expired.\n :return: All expired tokens.\n :rtype: :class:`esi.managers.TokenQueryset`"
45
false
Adarnof/adarnauth-esi
get_expired
24,045
LDU_FT/crunchyroll/ef-open/ec2_vpc_subnets
LDU_FT
[ "<BEGIN>\n## `services`", "Args:\n service_group: optional name of service group\n Returns:\n if service_group is omitted or None, flattened dict of all service records in the service registry\n if service_group is present, dict of service records in that group\n<END>", "<BEGIN>\n## `iter_serv...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the ec2_vpc_subnets API. 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 ec2_vpc_subnets API. 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...
Args: lookup - the friendly name of the VPC whose subnets we want Returns: A comma-separated list of all subnets in use in the named VPC or default/None if no match found
"Args:\n lookup - the friendly name of the VPC whose subnets we want\n Returns:\n A comma-separated list of all subnets in use in the named VPC or default/None if no match found"
231
false
crunchyroll/ef-open
ec2_vpc_subnets
24,046
LDU_FT/salu133445/pypianoroll/check_validity
LDU_FT
[ "<BEGIN>\n## `plot_pianoroll`", "Plot a pianoroll given as a numpy array.", " Parameters\n ----------\n ax : matplotlib.axes.Axes object\n A :class:`matplotlib.axes.Axes` object where the pianoroll will be\n plotted on.\n pianoroll : np.ndarray\n A pianoroll to be plotted. The v...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the check_validity API. 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 check_validity API. 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...
Raise an error if any invalid attribute found. Raises ------ TypeError If an attribute has an invalid type. ValueError If an attribute has an invalid value (of the correct type).
"Raise an error if any invalid attribute found.\n\n Raises\n ------\n TypeError\n If an attribute has an invalid type.\n ValueError\n If an attribute has an invalid value (of the correct type)."
196
false
salu133445/pypianoroll
check_validity
24,047
LDU_FT/m-weigand/sip_models/response
LDU_FT
[ "<BEGIN>\n## `_set_parameters`", "Sort out the various possible parameter inputs and return a config\n object (dict)", " We have multiple input formats:", " 1) a list, tuple, or numpy.ndarray, containing the linear parameters\n in the following order:\n * for single term: rh...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the response API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the response API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
r"""Return the forward response in base dimensions :math:`\hat{\sigma }(\omega ) = \sigma _\infty \left(1 - \sum_i \frac {m_i}{1 + (j \omega \tau_i)^c_i}\right)` Parameters ---------- pars: Returns ------- response: Nx2 array, first axis denotes frequenc...
"r\"\"\"Return the forward response in base dimensions\n :math:`\\hat{\\sigma }(\\omega ) = \\sigma _\\infty \\left(1 - \\sum_i \\frac\n {m_i}{1 + (j \\omega \\tau_i)^c_i}\\right)`\n\n Parameters\n ----------\n pars:\n\n Returns\n -------\n response: Nx2 array, fi...
40
false
m-weigand/sip_models
response
24,048
LDU_FT/shichao-an/115wangpan/_req_lixian_task_lists
LDU_FT
[ "<BEGIN>\n## `send`", "Send a formatted API request", " :param request: a formatted request object\n :type request: :class:`.Request`\n :param bool expect_json: if True, raise :class:`.InvalidAPIAccess` if\n response is not in JSON format\n :param bool ignore_content: whet...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _req_lixian_task_lists 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 _req_lixian_task_lists 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 request will cause the system to create a default downloads directory if it does not exist
"This request will cause the system to create a default downloads\n directory if it does not exist"
100
false
shichao-an/115wangpan
_req_lixian_task_lists
24,049
LDU_FT/justquick/django-activity-stream/follow_url
LDU_FT
[ "<BEGIN>\n## `timesince`", "Shortcut for the ``django.utils.timesince.timesince`` function of the\n current timestamp.\n<END>", "<BEGIN>\n## `respond`", "Responds to the request with the given response code.\n If ``next`` is in the form, it will redirect instead.\n<END>", "<BEGIN>\n## `follow_unfo...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the follow_url API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the follow_url API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
Renders the URL of the follow view for a particular actor instance :: <a href="{% follow_url other_user %}"> {% if request.user|is_following:other_user %} stop following {% else %} follow {% endif %} </a> <a href="{% foll...
"Renders the URL of the follow view for a particular actor instance\n\n ::\n\n <a href=\"{% follow_url other_user %}\">\n {% if request.user|is_following:other_user %}\n stop following\n {% else %}\n follow\n {% endif %}\n </a>\n\n <...
105
false
justquick/django-activity-stream
follow_url
24,050
LDU_FT/avinassh/haxor/ask_stories
LDU_FT
[ "<BEGIN>\n## `_get_sync`", "Internal method used for GET requests", " Args:\n url (str): URL to fetch", " Returns:\n Individual URL request's response", " Raises:\n HTTPError: If HTTP request failed.\n<END>", "<BEGIN>\n## `_get_async`", "Asynchronous i...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the ask_stories API. 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 ask_stories API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
Returns list of item ids of latest Ask HN stories Args: limit (int): specifies the number of stories to be returned. raw (bool): Flag to indicate whether to transform all objects into raw json. Returns: `list` object containing ids of Ask HN stories.
"Returns list of item ids of latest Ask HN stories\n\n Args:\n limit (int): specifies the number of stories to be returned.\n raw (bool): Flag to indicate whether to transform all\n objects into raw json.\n\n Returns:\n `list` object containing ids of Ask HN...
77
false
avinassh/haxor
ask_stories
24,051
LDU_FT/InfoAgeTech/django-core/replace_url_query_values
LDU_FT
[ "<BEGIN>\n## `build_link`", "Builds an html link.", " :param href: link for the anchor element\n :param text: text for the anchor element\n :param attrs: other attribute kwargs", " >>> build_link('xyz.com', 'hello', 'big')\n u'<a href=\"xyz.com\" class=\"big\">hello</a>'\n >>> build_link('xy...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the replace_url_query_values 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 replace_url_query_values API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio...
Replace querystring values in a url string. >>> url = 'http://helloworld.com/some/path?test=5' >>> replace_vals = {'test': 10} >>> replace_url_query_values(url=url, replace_vals=replace_vals) 'http://helloworld.com/some/path?test=10'
"Replace querystring values in a url string.\n\n >>> url = 'http://helloworld.com/some/path?test=5'\n >>> replace_vals = {'test': 10}\n >>> replace_url_query_values(url=url, replace_vals=replace_vals)\n 'http://helloworld.com/some/path?test=10'"
206
false
InfoAgeTech/django-core
replace_url_query_values
24,052
LDU_FT/ejeschke/ginga/cmd_rot
LDU_FT
[ "<BEGIN>\n## `set_figure`", "Call this with the matplotlib Figure() object.\n<END>", "<BEGIN>\n## `render_image1`", "Render the image represented by (rgbobj) at dst_x, dst_y\n in the pixel space.", " NOTE: this version uses a Figure.FigImage to render the image.\n<END>", "<BEGIN>\n## `render...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the cmd_rot API. 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 cmd_rot API. 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...
rot deg=num_deg ch=chname Rotate the image for the given viewer/channel by the given number of degrees. If no value is given, reports the current rotation.
"rot deg=num_deg ch=chname\n\n Rotate the image for the given viewer/channel by the given\n number of degrees.\n If no value is given, reports the current rotation."
1,455
true
ejeschke/ginga
cmd_rot
24,053
LDU_FT/portfoliome/postpy/execute_transaction
LDU_FT
[ "<BEGIN>\n## `check_extension`", "Check to see if an extension is installed.\n<END>", "<BEGIN>\n## `generate_numeric_range`", "Generate postgresql numeric range and label for insertion.", " Parameters\n ----------\n items: iterable labels for ranges.\n lower_bound: numeric lower bound\n upper...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the execute_transaction 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 execute_transaction 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...
Execute several statements in single DB transaction.
"Execute several statements in single DB transaction."
50
false
portfoliome/postpy
execute_transaction
24,054
LDU_FT/Richienb/quilt/availchars
LDU_FT
[ "<BEGIN>\n## `userinput`", "Get the input of the user via a universally secure method.", " :type prompttext: string\n :param prompttext: The text to display while receiving the data.", " :type times: integer\n :param times: The amount of times to ask the user. If value is not 1, a list will be ret...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the availchars API. 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 availchars API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
Get all the available characters for a specific type. :type charactertype: string :param charactertype: The characters to get. Can be 'letters', 'lowercase, 'uppercase', 'digits', 'hexdigits', 'punctuation', 'printable', 'whitespace' or 'all'. >>> availchars("lowercase") 'abcdefghijklmnopqrstuvwxyz'
"Get all the available characters for a specific type.\n\n :type charactertype: string\n :param charactertype: The characters to get. Can be 'letters', 'lowercase, 'uppercase', 'digits', 'hexdigits', 'punctuation', 'printable', 'whitespace' or 'all'.\n\n >>> availchars(\"lowercase\")\n 'abcdefghijklmnopqrst...
210
false
Richienb/quilt
availchars
24,055
LDU_FT/csaez/wishlib/update
LDU_FT
[ "<BEGIN>\n## `inside_softimage`", "Returns a boolean indicating if the code is executed inside softimage.\n<END>", "<BEGIN>\n## `auto_update`", "This class method could be used as decorator on subclasses, it ensures\n update method is called after function execution.\n<END>", "<BEGIN>\n## `update`", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
This method should be called to ensure all cached attributes are in sync with the metadata at runtime. This happens because attributes could store mutable objects and be modified outside the scope of this class. The most common idiom that isn't automagically caught is mutating a list ...
"This method should be called to ensure all cached attributes\n are in sync with the metadata at runtime.\n This happens because attributes could store mutable objects and be\n modified outside the scope of this class.\n The most common idiom that isn't automagically caught is mutating a lis...
22
false
csaez/wishlib
update
24,056
LDU_FT/programa-stic/barf-project/_translate_bisz
LDU_FT
[ "<BEGIN>\n## `translate`", "Return the SMT representation of a REIL instruction.\n<END>", "<BEGIN>\n## `_translate_src_oprnd`", "Translate source operand to a SMT expression.\n<END>", "<BEGIN>\n## `_translate_dst_oprnd`", "Translate destination operand to a SMT expression.\n<END>", "<BEGIN>\n## `_transl...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _translate_bisz API. 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 _translate_bisz API. 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 a formula representation of a BISZ instruction.
"Return a formula representation of a BISZ instruction."
148
false
programa-stic/barf-project
_translate_bisz
24,057
LDU_FT/chrisjsewell/jsonextended/load_builtin_plugins
LDU_FT
[ "<BEGIN>\n## `apply_unitschema`", "apply the unit schema to the data", " Parameters\n ----------\n data : dict\n uschema : dict\n units schema to apply\n as_quantity : bool\n if true, return values as pint.Quantity objects\n raise_outerr : bool\n raise error if a unit cann...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load_builtin_plugins API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load_builtin_plugins API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
load plugins from builtin directories Parameters ---------- name: None or str category : None or str if str, apply for single plugin category Examples -------- >>> from pprint import pprint >>> pprint(view_plugins()) {'decoders': {}, 'encoders': {}, 'parsers': {}} >>>...
"load plugins from builtin directories\n\n Parameters\n ----------\n name: None or str\n category : None or str\n if str, apply for single plugin category\n\n Examples\n --------\n\n >>> from pprint import pprint\n >>> pprint(view_plugins())\n {'decoders': {}, 'encoders': {}, 'parsers'...
347
false
chrisjsewell/jsonextended
load_builtin_plugins
24,058
LDU_FT/christophertbrown/bioscripts/run_cmsearch
LDU_FT
[ "<BEGIN>\n## `six_frame`", "translate each sequence into six reading frames\n<END>", "<BEGIN>\n## `best_model`", "determine the best model: archaea, bacteria, eukarya (best score)\n<END>", "<BEGIN>\n## `check_gaps`", "check for large gaps between alignment windows\n<END>", "<BEGIN>\n## `check_overlap`",...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the run_cmsearch API. 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 run_cmsearch API. 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 cmsearch: comapre 23S sequences to ssu-align's CM
"run cmsearch: comapre 23S sequences to ssu-align's CM"
219
false
christophertbrown/bioscripts
run_cmsearch
24,059
LDU_FT/invenia/Arbiter/retry_loop
LDU_FT
[ "<BEGIN>\n## `create_task`", "Create a task object\n name: The name of the task.\n function: The actual task function. It should take no arguments,\n and return a False-y value if it fails.\n dependencies: (optional, ()) Any dependencies that this task relies\n on.\n<END>", "<BEGIN>\n## `...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the retry_loop API. 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 retry_loop API. 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...
Actually performs the retry loop used by the retry decorator and handler functions. Failures for retrying are defined by the RetryConditions passed in. If the maximum number of retries has been reached then it raises the most recent error or a ValueError on the most recent result value. Args: ...
"Actually performs the retry loop used by the retry decorator\n and handler functions. Failures for retrying are defined by\n the RetryConditions passed in. If the maximum number of\n retries has been reached then it raises the most recent\n error or a ValueError on the most recent result value.\n\n Args...
50
false
invenia/Arbiter
retry_loop
24,060
LDU_FT/CenturyLinkCloud/clc-python-sdk/Disks
LDU_FT
[ "<BEGIN>\n## `SetCredentials`", "Establish API username and password associated with APIv2 commands.\n<END>", "<BEGIN>\n## `get_session`", "Start a session with the given parameters", "\tUse instead of SetCredentials if you need a session object to avoid the use of global credentials.", "\tReturns a sessi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the Disks API. 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 Disks API. 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 disks object associated with server. >>> clc.v2.Server("WA1BTDIX01").Disks() <clc.APIv2.disk.Disks object at 0x10feea190>
"Return disks object associated with server.\n\n\t\t>>> clc.v2.Server(\"WA1BTDIX01\").Disks()\n\t\t<clc.APIv2.disk.Disks object at 0x10feea190>"
402
false
CenturyLinkCloud/clc-python-sdk
Disks
24,061
LDU_FT/mapbox/rio-color/scale_dtype
LDU_FT
[ "<BEGIN>\n## `sigmoidal`", "r\"\"\"\n Sigmoidal contrast is type of contrast control that\n adjusts the contrast without saturating highlights or shadows.\n It allows control over two factors:\n the contrast range from light to dark, and where the middle value\n of the mid-tones falls. The result i...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the scale_dtype API. 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 scale_dtype API. 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...
Convert an array from 0..1 to dtype, scaling up linearly
"Convert an array from 0..1 to dtype, scaling up linearly"
56
false
mapbox/rio-color
scale_dtype
24,062
LDU_FT/dhylands/rshell/do_rsync
LDU_FT
[ "<BEGIN>\n## `add_device`", "Adds a device to the list of devices we know about.\n<END>", "<BEGIN>\n## `is_micropython_usb_device`", "Checks a USB device to see if it looks like a MicroPython device.\n<END>", "<BEGIN>\n## `is_micropython_usb_port`", "Checks to see if the indicated portname is a MicroPytho...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the do_rsync API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the do_rsync API. 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...
rsync [-m|--mirror] [-n|--dry-run] [-q|--quiet] SRC_DIR DEST_DIR Synchronizes a destination directory tree with a source directory tree.
"rsync [-m|--mirror] [-n|--dry-run] [-q|--quiet] SRC_DIR DEST_DIR\n\n Synchronizes a destination directory tree with a source directory tree."
159
false
dhylands/rshell
do_rsync
24,063
LDU_FT/wuher/devil/_get_url_doc
LDU_FT
[ "<BEGIN>\n## `create`", "Create object from the given data.", " The given data may or may not have been validated prior to calling\n this function. This function will try its best in creating the object.\n If the resulting object cannot be produced, raises ``ValidationError``.", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_url_doc API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_url_doc API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
Return a list of URLs that map to this resource.
"Return a list of URLs that map to this resource."
193
false
wuher/devil
_get_url_doc
24,064
LDU_FT/StagPython/StagPy/init_c_overturn
LDU_FT
[ "<BEGIN>\n## `out_name`", "Return StagPy out file name.", " Args:\n stem (str): short description of file content.\n timestep (int): timestep if relevant.", " Returns:\n str: the output file name.", " Other Parameters:\n conf.core.outname (str): the generic name stem, de...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the init_c_overturn API. 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 init_c_overturn API. 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...
Initial concentration. This compute the resulting composition profile if fractional crystallization of a SMO is assumed. Args: step (:class:`~stagpy.stagyydata._Step`): a step of a StagyyData instance. Returns: tuple of :class:`numpy.array`: the composition and the radial p...
"Initial concentration.\n\n This compute the resulting composition profile if fractional\n crystallization of a SMO is assumed.\n\n Args:\n step (:class:`~stagpy.stagyydata._Step`): a step of a StagyyData\n instance.\n Returns:\n tuple of :class:`numpy.array`: the composition and th...
299
false
StagPython/StagPy
init_c_overturn
24,065
LDU_FT/numberoverzero/bloop/prepare
LDU_FT
[ "<BEGIN>\n## `ordered`", "Return sorted version of nested dicts/lists for comparing.", " Modified from:\n http://stackoverflow.com/a/25851972\n<END>", "<BEGIN>\n## `dump_key`", "dump the hash (and range, if there is one) key(s) of an object into\n a dynamo-friendly format.", " returns {dynamo_...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the prepare API. 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 prepare API. 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...
Create a new PreparedTransaction that can be committed. This is called automatically when exiting the transaction as a context: .. code-block:: python >>> engine = Engine() >>> tx = WriteTransaction(engine) >>> prepared = tx.prepare() >>> prepared.commi...
"Create a new PreparedTransaction that can be committed.\n\n This is called automatically when exiting the transaction as a context:\n\n .. code-block:: python\n\n >>> engine = Engine()\n >>> tx = WriteTransaction(engine)\n >>> prepared = tx.prepare()\n >>> prep...
288
false
numberoverzero/bloop
prepare
24,066
LDU_FT/lucapinello/Haystack/_print_p
LDU_FT
[ "<BEGIN>\n## `sample_wr`", "Chooses k random elements (with replacement) from a population\n<END>", "<BEGIN>\n## `summary`", "m.summary() -- Return a text string one-line summary of motif and its metrics\n<END>", "<BEGIN>\n## `minimal_raw_seqs`", "m.minimal_raw_seqs() -- Return minimal list of seqs that r...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _print_p API. 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 _print_p API. 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...
m._print_p() -- Print probability (frequency) matrix
"m._print_p() -- Print probability (frequency) matrix"
87
false
lucapinello/Haystack
_print_p
24,067
LDU_FT/git-afsantos/bonsai/pretty_str
LDU_FT
[ "<BEGIN>\n## `_build_for_statement`", "NOTE: this is not a complete implementation of for loop parsing.\n Turns out for loops allow a number of wacky things going on,\n such as declaring a variable in place of a condition.\n These more peculiar cases are not covered. See\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the pretty_str API. 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 pretty_str API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
Return a human-readable string representation of this object. Kwargs: indent (int): The amount of spaces to use as indentation.
"Return a human-readable string representation of this object.\n\n Kwargs:\n indent (int): The amount of spaces to use as indentation."
111
false
git-afsantos/bonsai
pretty_str
24,068
LDU_FT/LasLabs/python-helpscout/get
LDU_FT
[ "<BEGIN>\n## `create`", "Create an object on HelpScout.", " Args:\n session (requests.sessions.Session): Authenticated session.\n record (helpscout.BaseModel): The record to be created.\n endpoint_override (str, optional): Override the default\n endpoint us...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
Return a specific team. Args: session (requests.sessions.Session): Authenticated session. team_id (int): The ID of the team to get. Returns: helpscout.models.Person: A person singleton representing the team, if existing. Otherwise ``None``.
"Return a specific team.\n\n Args:\n session (requests.sessions.Session): Authenticated session.\n team_id (int): The ID of the team to get.\n\n Returns:\n helpscout.models.Person: A person singleton representing the team,\n if existing. Otherwise ``None``."
178
false
LasLabs/python-helpscout
get
24,069
LDU_FT/mrstephenneal/dirutility/directory_exists
LDU_FT
[ "<BEGIN>\n## `connect`", "Connect and login to an FTP server and return ftplib.FTP object.\n<END>", "<BEGIN>\n## `get`", "Download a remote file on the fto sever to a local directory.", " :param remote: File path of remote source file\n :param local: Directory of local destination directory\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the directory_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 ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the directory_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 ...
Check if directory exists (in current location)
"Check if directory exists (in current location)"
92
false
mrstephenneal/dirutility
directory_exists
24,070
LDU_FT/Iotic-Labs/py-IoticAgent/get_meta_rdf
LDU_FT
[ "<BEGIN>\n## `_notify_thing_lid_change`", "Used by Thing instances to indicate that a rename operation has happened\n<END>", "<BEGIN>\n## `register_catchall_feeddata`", "Registers a callback that is called for all feeddata your Thing receives", " `Example`", " #!python\n def f...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_meta_rdf API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_meta_rdf API. 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...
Get the metadata for this Thing in rdf fmt Advanced users who want to manipulate the RDF for this Thing directly without the [ThingMeta](ThingMeta.m.html#IoticAgent.IOT.ThingMeta.ThingMeta) helper object Returns the RDF in the format you specify. - OR - Raises [IOTException](./Excepti...
"Get the metadata for this Thing in rdf fmt\n\n Advanced users who want to manipulate the RDF for this Thing directly without the\n [ThingMeta](ThingMeta.m.html#IoticAgent.IOT.ThingMeta.ThingMeta) helper object\n\n Returns the RDF in the format you specify. - OR -\n\n Raises [IOTException](....
643
false
Iotic-Labs/py-IoticAgent
get_meta_rdf
24,071
LDU_FT/jantman/pypi-download-stats/_line_for_patches
LDU_FT
[ "<BEGIN>\n## `_path_for_file`", "Generate the path on disk for a specified project and date.", " :param project_name: the PyPI project name for the data\n :type project: str\n :param date: the date for the data\n :type date: datetime.datetime\n :return: path for where to store...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _line_for_patches API. 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 _line_for_patches API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Add a line along the top edge of a Patch in a stacked Area Chart; return the new Glyph for addition to HoverTool. :param data: original data for the graph :type data: dict :param chart: Chart to add the line to :type chart: bokeh.charts.Chart :param renderer: GlyphRender...
"Add a line along the top edge of a Patch in a stacked Area Chart; return\n the new Glyph for addition to HoverTool.\n\n :param data: original data for the graph\n :type data: dict\n :param chart: Chart to add the line to\n :type chart: bokeh.charts.Chart\n :param renderer: Gly...
135
false
jantman/pypi-download-stats
_line_for_patches
24,072