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/openvax/varlens/filter | LDU_FT | [
"<BEGIN>\n## `load_from_args`",
"Return a Loci object giving the loci specified on the command line.",
" If no loci-related arguments are specified, return None. This makes it\n possible to distinguish an empty set of loci, for example due to filters\n removing all loci, from the case where the user di... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the filter API.
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 filter API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted ... | Return a new PileupCollection that includes only pileup elements
satisfying the specified criteria.
Parameters
----------
drop_duplicates (optional, default False) : boolean
Remove alignments with the is_duplicate flag.
drop_improper_mate_pairs (optional, default Fa... | "Return a new PileupCollection that includes only pileup elements\n satisfying the specified criteria.\n\n Parameters\n ----------\n drop_duplicates (optional, default False) : boolean\n Remove alignments with the is_duplicate flag.\n\n drop_improper_mate_pairs (optional, d... | 130 | false | openvax/varlens | filter | 28,773 | |
LDU_FT/stefanfoulis/django-sendsms/_send | LDU_FT | [
"<BEGIN>\n## `_send`",
"Private method for send one message.",
" :param SmsMessage message: SmsMessage class instance.\n :returns: True if message is sended else False\n :rtype: bool\n<END>",
"<BEGIN>\n## `send_messages`",
"Sends one or more SmsMessage objects and returns the number of ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _send API.
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 _send API.
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... | A helper method that does the actual sending
:param SmsMessage message: SmsMessage class instance.
:returns: True if message is sent else False
:rtype: bool | "A helper method that does the actual sending\n\n :param SmsMessage message: SmsMessage class instance.\n :returns: True if message is sent else False\n :rtype: bool" | 43 | false | stefanfoulis/django-sendsms | _send | 28,774 | |
LDU_FT/etgalloway/newtabmagic/_get_object_pydoc_page_name | LDU_FT | [
"<BEGIN>\n## `_get_object_pydoc_page_name`",
"Returns fully qualified name, including module name, except for the\n built-in module.\n<END>",
"<BEGIN>\n## `_remove_builtin_prefix`",
"Strip name of builtin module from start of name.\n<END>",
"<BEGIN>\n## `_get_user_ns_object`",
"Get object from the user... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_object_pydoc_page_name 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 _get_object_pydoc_page_name API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclu... | Returns fully qualified name, including module name, except for the
built-in module. | "Returns fully qualified name, including module name, except for the\n built-in module." | 16 | false | etgalloway/newtabmagic | _get_object_pydoc_page_name | 28,775 | |
LDU_FT/imu-hupeng/cos-python3-sdk/list_folder | LDU_FT | [
"<BEGIN>\n## `create_folder`",
"创建目录(https://www.qcloud.com/document/product/436/6061)",
" :param dir_name:要创建的目录的目录的名称\n :return 返回True创建成功,返回False创建失败\n<END>",
"<BEGIN>\n## `list_folder`",
"列目录(https://www.qcloud.com/document/product/436/6062)",
" :param dir_name:文件夹名称\n :par... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the list_folder API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the list_folder API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | 列目录(https://www.qcloud.com/document/product/436/6062)
:param dir_name:文件夹名称
:param prefix:前缀
:param num:查询的文件的数量,最大支持1000,默认查询数量为1000
:param context:翻页标志,将上次查询结果的context的字段传入,即可实现翻页的功能
:return 查询结果,为json格式 | "列目录(https://www.qcloud.com/document/product/436/6062)\n\n :param dir_name:文件夹名称\n :param prefix:前缀\n :param num:查询的文件的数量,最大支持1000,默认查询数量为1000\n :param context:翻页标志,将上次查询结果的context的字段传入,即可实现翻页的功能\n :return 查询结果,为json格式" | 24 | false | imu-hupeng/cos-python3-sdk | list_folder | 28,776 | |
LDU_FT/MakerReduxCorp/PLOD/get_index | LDU_FT | [
"<BEGIN>\n## `dropKey`",
"Drop an attribute/element/key-value pair from all the dictionaries.",
" If the dictionary key does not exist in a particular dictionary, then\n that dictionary is left unchanged.",
" Side effect: if the key is a number and it matches a list (interpreted\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_index API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extract... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_index API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extract... | Returns the index of the first list entry that matches. If no matches
are found, it returns None
NOTE: it is not returning a list. It is returning an integer in range 0..LEN(target)
NOTE: both 'None' and 0 evaluate as False in python. So, if you are checking for a
None being returned, be explicit. "i... | "Returns the index of the first list entry that matches. If no matches\n are found, it returns None\n NOTE: it is not returning a list. It is returning an integer in range 0..LEN(target)\n NOTE: both 'None' and 0 evaluate as False in python. So, if you are checking for a\n None being returned, be explici... | 199 | false | MakerReduxCorp/PLOD | get_index | 28,777 | |
LDU_FT/phuijse/P4J/draw_noisy_time_series | LDU_FT | [
"<BEGIN>\n## `set_data`",
"Saves the light curve data, where \n mjd: modified julian date (time instants)\n mag: stellar magnitude \n err: photometric error",
" If whitten is True the data is normalized to have zero\n mean and unit standard deviation. Note that robust \n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the draw_noisy_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.... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the draw_noisy_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.... | A function to draw a noisy time series based on the clean model
such that
y_noisy = y + yw + yr,
where yw is white noise, yr is red noise and y will be rescaled
so that y_noisy complies with the specified signal-to-noise
ratio (SNR).
Parameters
-... | "A function to draw a noisy time series based on the clean model \n such that \n y_noisy = y + yw + yr,\n where yw is white noise, yr is red noise and y will be rescaled \n so that y_noisy complies with the specified signal-to-noise \n ratio (SNR). \n \n Parameters\n... | 52 | false | phuijse/P4J | draw_noisy_time_series | 28,778 | |
LDU_FT/openstax/cnx-archive/get_file_info | LDU_FT | [
"<BEGIN>\n## `redirect_legacy_content`",
"Redirect from legacy /content/id/version to new /contents/uuid@version.",
" Handles collection context (book) as well.\n<END>",
"<BEGIN>\n## `robots`",
"Return a simple \"don't index me\" robots.txt file.\n<END>",
"<BEGIN>\n## `_get_sql`",
"Returns the conten... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_file_info API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_file_info API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | Returns information about the file, identified by ``hash``.
If the `context` (an ident-hash) is supplied,
the information returned will be specific to that context. | "Returns information about the file, identified by ``hash``.\n If the `context` (an ident-hash) is supplied,\n the information returned will be specific to that context." | 208 | false | openstax/cnx-archive | get_file_info | 28,779 | |
LDU_FT/dwavesystems/dwave-cloud-client/load_config | LDU_FT | [
"<BEGIN>\n## `ls`",
"List configuration files detected (and/or examined paths).\n<END>",
"<BEGIN>\n## `create`",
"Create and/or update cloud client configuration file.\n<END>",
"<BEGIN>\n## `_ping`",
"Helper method for the ping command that uses `output()` for info output\n and raises `CLIError()` on h... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load_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 load_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... | Load D-Wave Cloud Client configuration based on a configuration file.
Configuration values can be specified in multiple ways, ranked in the following
order (with 1 the highest ranked):
1. Values specified as keyword arguments in :func:`load_config()`. These values replace
values read from a configu... | "Load D-Wave Cloud Client configuration based on a configuration file.\n\n Configuration values can be specified in multiple ways, ranked in the following\n order (with 1 the highest ranked):\n\n 1. Values specified as keyword arguments in :func:`load_config()`. These values replace\n values read from a ... | 339 | false | dwavesystems/dwave-cloud-client | load_config | 28,780 | |
LDU_FT/astorfi/speechpy/zero_handling | LDU_FT | [
"<BEGIN>\n## `preemphasis`",
"preemphasising on the signal.",
" Args:\n signal (array): The input signal.\n shift (int): The shift step.\n cof (float): The preemphasising coefficient. 0 equals to no filtering.",
" Returns:\n array: The pre-emphasized signal.\n<END>",
"<B... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the zero_handling API.
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 zero_handling API.
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... | This function handle the issue with zero values if the are exposed
to become an argument for any log function.
:param x: The vector.
:return: The vector with zeros substituted with epsilon values. | "This function handle the issue with zero values if the are exposed\n to become an argument for any log function.\n :param x: The vector.\n :return: The vector with zeros substituted with epsilon values." | 52 | false | astorfi/speechpy | zero_handling | 28,781 | |
LDU_FT/wind-python/windpowerlib/run_model | LDU_FT | [
"<BEGIN>\n## `reduce_wind_speed`",
"r\"\"\"\n Reduces wind speed by a wind efficiency curve.",
" The wind efficiency curves are provided in the windpowerlib and were\n calculated in the dena-Netzstudie II and in the work of Knorr\n (see [1]_ and [2]_).",
" Parameters\n ----------\n wind_s... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the run_model API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extract... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the run_model API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extract... | r"""
Runs the model.
Parameters
----------
weather_df : pandas.DataFrame
DataFrame with time series for wind speed `wind_speed` in m/s, and
roughness length `roughness_length` in m, as well as optionally
temperature `temperature` in K, pressure `press... | "r\"\"\"\n Runs the model.\n\n Parameters\n ----------\n weather_df : pandas.DataFrame\n DataFrame with time series for wind speed `wind_speed` in m/s, and\n roughness length `roughness_length` in m, as well as optionally\n temperature `temperature` in K, pre... | 249 | false | wind-python/windpowerlib | run_model | 28,782 | |
LDU_FT/bmuller/kademlia/get_bucket_for | LDU_FT | [
"<BEGIN>\n## `add_node`",
"Add a C{Node} to the C{KBucket}. Return True if successful,\n False if the bucket is full.",
" If the bucket is full, keep track of node in a replacement list,\n per section 4.1 of the paper.\n<END>",
"<BEGIN>\n## `lonely_buckets`",
"Get all of the buckets th... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_bucket_for API.
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_bucket_for API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ex... | Get the index of the bucket that the given node would fall into. | "Get the index of the bucket that the given node would fall into." | 62 | false | bmuller/kademlia | get_bucket_for | 28,783 | |
LDU_FT/CityOfZion/neo-python-rpc/get_block_header | LDU_FT | [
"<BEGIN>\n## `get_account`",
"Look up an account on the blockchain. Sample output:",
" Args:\n address: (str) address to lookup ( in format 'AXjaFSP23Jkbe6Pk9pPGT6NBDs1HVdqaXK')\n id: (int, optional) id to use for response tracking\n endpoint: (RPCEndpoint, optional) end... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_block_header API.
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_block_header API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | Get the corresponding block header information according to the specified script hash.
Args:
block_hash: (str) the block scripthash (e.g. 'a5508c9b6ed0fc09a531a62bc0b3efcb6b8a9250abaf72ab8e9591294c1f6957')
id: (int, optional) id to use for response tracking
endpoint: (RPCEndp... | "Get the corresponding block header information according to the specified script hash.\n Args:\n block_hash: (str) the block scripthash (e.g. 'a5508c9b6ed0fc09a531a62bc0b3efcb6b8a9250abaf72ab8e9591294c1f6957')\n id: (int, optional) id to use for response tracking\n endpoint: (RP... | 76 | false | CityOfZion/neo-python-rpc | get_block_header | 28,784 | |
LDU_FT/playpauseandstop/rororo/from_env | LDU_FT | [
"<BEGIN>\n## `str_to_timedelta`",
"Convert string value to timedelta instance according to the given format.",
" If format not set function tries to load timedelta using default\n ``TIMEDELTA_FORMAT`` and then both of magic \"full\" formats.",
" You should also specify list of formats and function tr... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the from_env API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracte... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the from_env API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracte... | Shortcut for safely reading environment variable.
:param key: Environment var key.
:param default:
Return default value if environment var not found by given key. By
default: ``None`` | "Shortcut for safely reading environment variable.\n\n :param key: Environment var key.\n :param default:\n Return default value if environment var not found by given key. By\n default: ``None``" | 128 | false | playpauseandstop/rororo | from_env | 28,785 | |
LDU_FT/jgillick/LendingClub/__analyze | LDU_FT | [
"<BEGIN>\n## `set_logger`",
"Set a logger to send debug messages to",
" Parameters\n ----------\n logger : `Logger <http://docs.python.org/2/library/logging.html>`_\n A python logger used to get debugging output from this module.\n<END>",
"<BEGIN>\n## `version`",
"Return the ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the __analyze API.
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 __analyze API.
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... | Analyze the filter JSON and attempt to parse out the individual filters. | "Analyze the filter JSON and attempt to parse out the individual filters." | 133 | false | jgillick/LendingClub | __analyze | 28,786 | |
LDU_FT/maartenbreddels/ipyvolume/_make_triangles_lines | LDU_FT | [
"<BEGIN>\n## `volshow`",
"Deprecated: please use ipyvolume.quickvolshow or use the ipyvolume.pylab interface.\n<END>",
"<BEGIN>\n## `quickvolshow`",
"Visualize a 3d array using volume rendering.",
" :param data: 3d numpy array\n :param lighting: boolean, to use lighting or not, if set to false, lighti... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _make_triangles_lines API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _make_triangles_lines API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | Transform rectangular regular grid into triangles.
:param x: {x2d}
:param y: {y2d}
:param z: {z2d}
:param bool wrapx: when True, the x direction is assumed to wrap, and polygons are drawn between the end end begin points
:param bool wrapy: simular for the y coordinate
:return: triangles and lin... | "Transform rectangular regular grid into triangles.\n\n :param x: {x2d}\n :param y: {y2d}\n :param z: {z2d}\n :param bool wrapx: when True, the x direction is assumed to wrap, and polygons are drawn between the end end begin points\n :param bool wrapy: simular for the y coordinate\n :return: triangles... | 141 | false | maartenbreddels/ipyvolume | _make_triangles_lines | 28,787 | |
LDU_FT/jamescooke/flake8-aaa/check_block_spacing | LDU_FT | [
"<BEGIN>\n## `do_command_line`",
"Currently a small stub to create an instance of Checker for the passed\n ``infile`` and run its test functions through linting.",
" Args:\n infile",
" Returns:\n int: Number of flake8 errors raised.\n<END>",
"<BEGIN>\n## `run`",
"Yields:\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the check_block_spacing 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 check_block_spacing API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
T... | Checks there is a clear single line between ``first_block_type`` and
``second_block_type``.
Note:
Is tested via ``check_arrange_act_spacing()`` and
``check_act_assert_spacing()``. | "Checks there is a clear single line between ``first_block_type`` and\n ``second_block_type``.\n\n Note:\n Is tested via ``check_arrange_act_spacing()`` and\n ``check_act_assert_spacing()``." | 66 | false | jamescooke/flake8-aaa | check_block_spacing | 28,788 | |
LDU_FT/amueller/word_cloud/random_color_func | LDU_FT | [
"<BEGIN>\n## `process_tokens`",
"Normalize cases and remove plurals.",
" Each word is represented by the most common case.\n If a word appears with an \"s\" on the end and without an \"s\" on the end,\n the version with \"s\" is assumed to be a plural and merged with the\n version without \"s\" (exc... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the random_color_func API.
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 random_color_func API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | Random hue color generation.
Default coloring method. This just picks a random hue with value 80% and
lumination 50%.
Parameters
----------
word, font_size, position, orientation : ignored.
random_state : random.Random object or None, (default=None)
If a random object is given, this ... | "Random hue color generation.\n\n Default coloring method. This just picks a random hue with value 80% and\n lumination 50%.\n\n Parameters\n ----------\n word, font_size, position, orientation : ignored.\n\n random_state : random.Random object or None, (default=None)\n If a random object is g... | 45 | false | amueller/word_cloud | random_color_func | 28,789 | |
LDU_FT/NoviceLive/intellicoder/query_func_module | LDU_FT | [
"<BEGIN>\n## `format`",
"Format the record using the corresponding formatter.\n<END>",
"<BEGIN>\n## `make_c_header`",
"Build a C header from the front and body.\n<END>",
"<BEGIN>\n## `reloc_var`",
"Build C source code to relocate a variable.\n<END>",
"<BEGIN>\n## `make_c_args`",
"Build a C argument li... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the query_func_module API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the query_func_module API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | Query the module name of the specified function. | "Query the module name of the specified function." | 117 | false | NoviceLive/intellicoder | query_func_module | 28,790 | |
LDU_FT/GoogleCloudPlatform/datastore-ndb-python/_get_hierarchy | LDU_FT | [
"<BEGIN>\n## `get_event_loop`",
"Return a EventLoop instance.",
" A new instance is created for each new HTTP request. We determine\n that we're in a new request by inspecting os.environ, which is reset\n at the start of each request. Also, each thread gets its own loop.\n<END>",
"<BEGIN>\n## `clear`",
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_hierarchy API.
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_hierarchy API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ex... | Internal helper to return the list of polymorphic base classes.
This returns a list of class objects, e.g. [Animal, Feline, Cat]. | "Internal helper to return the list of polymorphic base classes.\n\n This returns a list of class objects, e.g. [Animal, Feline, Cat]." | 569 | false | GoogleCloudPlatform/datastore-ndb-python | _get_hierarchy | 28,791 | |
LDU_FT/spencerahill/aospy/to_plot_units | LDU_FT | [
"<BEGIN>\n## `_preprocess_and_rename_grid_attrs`",
"Call a custom preprocessing method first then rename grid attrs.",
" This wrapper is needed to generate a single function to pass to the\n ``preprocesss`` of xr.open_mfdataset. It makes sure that the\n user-specified preprocess function is called on ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the to_plot_units API.
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 to_plot_units API.
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... | Convert the given data to plotting units. | "Convert the given data to plotting units." | 323 | false | spencerahill/aospy | to_plot_units | 28,792 | |
LDU_FT/thanethomson/statik/generate_yaml_file | LDU_FT | [
"<BEGIN>\n## `list_files`",
"Lists all of the files in the given base directory, optionally only\n including whose extension(s) match the ext string/list of strings.\n This is non-recursive.",
" Args:\n base_path: The directory in which to search.\n ext: The extension(s) to match in the g... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the generate_yaml_file API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
Th... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the generate_yaml_file API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
Th... | Creates a yaml file with the given content. | "Creates a yaml file with the given content." | 117 | false | thanethomson/statik | generate_yaml_file | 28,793 | |
LDU_FT/xingjiepan/cylinder_fitting/r | LDU_FT | [
"<BEGIN>\n## `direction`",
"Return the direction vector of a cylinder defined\n by the spherical coordinates theta and phi.\n<END>",
"<BEGIN>\n## `projection_matrix`",
"Return the projection matrix of a direction w.\n<END>",
"<BEGIN>\n## `skew_matrix`",
"Return the skew matrix of a direction w.\n<END>... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the r API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted docum... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the r API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted docum... | Calculate the radius given the cylinder direction and a list
of data points. | "Calculate the radius given the cylinder direction and a list\n of data points." | 30 | false | xingjiepan/cylinder_fitting | r | 28,794 | |
LDU_FT/fronzbot/blinkpy/request_motion_detection_enable | LDU_FT | [
"<BEGIN>\n## `refresh`",
"Get all blink cameras and pulls their most recent status.\n<END>",
"<BEGIN>\n## `attributes`",
"Return dictionary of all camera attributes.\n<END>",
"<BEGIN>\n## `snap_picture`",
"Take a picture with camera to create a new thumbnail.\n<END>",
"<BEGIN>\n## `image_to_file`",
"W... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the request_motion_detection_enable API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its co... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the request_motion_detection_enable API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its co... | Enable motion detection for a camera.
:param blink: Blink instance.
:param network: Sync module network id.
:param camera_id: Camera ID of camera to enable. | "Enable motion detection for a camera.\n\n :param blink: Blink instance.\n :param network: Sync module network id.\n :param camera_id: Camera ID of camera to enable." | 71 | false | fronzbot/blinkpy | request_motion_detection_enable | 28,795 | |
LDU_FT/cloudendpoints/endpoints-management-python/merge | LDU_FT | [
"<BEGIN>\n## `convert_response`",
"Computes a http status code and message `CheckResponse`",
" The return value a tuple (code, message, api_key_is_bad) where",
" code: is the http status code\n message: is the message to return\n api_key_is_bad: indicates that a given api_key is bad",
" Args:... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the merge API.
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 merge API.
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... | Merge `prior` into `latest`.
N.B, this mutates latest. It ensures that the statistics and histogram are
updated to correctly include the original values from both instances.
Args:
prior (:class:`endpoints_management.gen.servicecontrol_v1_messages.Distribution`):
an instance
latest (:cl... | "Merge `prior` into `latest`.\n\n N.B, this mutates latest. It ensures that the statistics and histogram are\n updated to correctly include the original values from both instances.\n\n Args:\n prior (:class:`endpoints_management.gen.servicecontrol_v1_messages.Distribution`):\n an instance\n la... | 308 | false | cloudendpoints/endpoints-management-python | merge | 28,796 | |
LDU_FT/uw-it-aca/uw-restclients/post_tac_resource | LDU_FT | [
"<BEGIN>\n## `new_regid_custom_field`",
"Return a BridgeCustomField object for REGID\n to be used in a POST, PATCH request\n<END>",
"<BEGIN>\n## `get_reservations`",
"Return a list of reservations matching the passed filter.\n Supported kwargs are listed at\n http://knowledge25.collegenet.com/display... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the post_tac_resource API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the post_tac_resource API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | Get the requested resource of Tacoma calendars
:returns: http response with content in json | "Get the requested resource of Tacoma calendars\n :returns: http response with content in json" | 129 | false | uw-it-aca/uw-restclients | post_tac_resource | 28,797 | |
LDU_FT/FujiMakoto/AgentML/add | LDU_FT | [
"<BEGIN>\n## `value`",
"Return the value of the redirect response\n<END>",
"<BEGIN>\n## `get`",
"Evaluate and return the current active topic\n :param user: The active user object\n :type user: agentml.User or None",
" :param agentml: The active AgentML instance\n :type agentml... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted doc... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted doc... | Add a new log entry
:param message: The request message
:type message: str
:param request: The Request associated with this response
:type request: Request or None
:return: The logged Response instance
:rtype : Response | "Add a new log entry\n :param message: The request message\n :type message: str\n\n :param request: The Request associated with this response\n :type request: Request or None\n\n :return: The logged Response instance\n :rtype : Response" | 183 | false | FujiMakoto/AgentML | add | 28,798 | |
LDU_FT/aganezov/bg/edges | LDU_FT | [
"<BEGIN>\n## `add_edge`",
"Adds a new edge to the current tree with specified characteristics",
" Forbids addition of an edge, if a parent node is not present\n Forbids addition of an edge, if a child node already exists",
" :param node1_name: name of the parent node, to which an edge sha... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the edges API.
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 edges API.
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... | Iterates over edges in current :class:`BreakpointGraph` instance.
Proxies a call to :meth:`BreakpointGraph._BreakpointGraph__edges`.
:param nbunch: a vertex to iterate over edges outgoing from, if not provided,iteration over all edges is performed.
:type nbuch: any hashable python object
... | "Iterates over edges in current :class:`BreakpointGraph` instance.\n\n Proxies a call to :meth:`BreakpointGraph._BreakpointGraph__edges`.\n\n :param nbunch: a vertex to iterate over edges outgoing from, if not provided,iteration over all edges is performed.\n :type nbuch: any hashable python object... | 226 | false | aganezov/bg | edges | 28,799 | |
LDU_FT/tus/tus-py-client/set_item | LDU_FT | [
"<BEGIN>\n## `headers`",
"Return headers of the uploader instance. This would include the headers of the\n client instance.\n<END>",
"<BEGIN>\n## `headers_as_list`",
"Does the same as 'headers' except it is returned as a list.\n<END>",
"<BEGIN>\n## `get_offset`",
"Return offset from tus server.",
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_item API.
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 set_item API.
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... | Store the url value under the unique key.
:Args:
- key[str]: The unique id to which the item (in this case, url) would be stored.
- value[str]: The actual url value to be stored. | "Store the url value under the unique key.\n\n :Args:\n - key[str]: The unique id to which the item (in this case, url) would be stored.\n - value[str]: The actual url value to be stored." | 34 | false | tus/tus-py-client | set_item | 28,800 | |
LDU_FT/zyga/guacamole/added | LDU_FT | [
"<BEGIN>\n## `added`",
"Ingredient method called before anything else.",
" Here this method just builds the full command tree and stores it inside\n the context as the ``cmd_tree`` attribute. The structure of the tree is\n explained by the :func:`build_cmd_tree()` function.\n<END>",
"<BEG... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the added API.
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 added API.
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... | Configure generic application logging.
This method just calls ``:meth:`configure_logging()`` which sets up
everything else. This allows other components to use logging without
triggering implicit configuration. | "Configure generic application logging.\n\n This method just calls ``:meth:`configure_logging()`` which sets up\n everything else. This allows other components to use logging without\n triggering implicit configuration." | 104 | false | zyga/guacamole | added | 28,801 | |
LDU_FT/dropseed/configyaml/_validate_type | LDU_FT | [
"<BEGIN>\n## `_key_name`",
"Return the key referring to this object",
" The default value is the lower case version of the class name",
" :rtype: str\n<END>",
"<BEGIN>\n## `_path`",
"Return the dotted path representation of this object",
" :rtype: str\n<END>",
"<BEGIN>\n## `_add_e... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _validate_type API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ex... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _validate_type API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ex... | Validation to ensure value is the correct type | "Validation to ensure value is the correct type" | 20 | false | dropseed/configyaml | _validate_type | 28,802 | |
LDU_FT/kakwa/ldapcherry/get_groups | LDU_FT | [
"<BEGIN>\n## `get_param`",
"Get a parameter in config (handle default value)",
" :param param: name of the parameter to recover\n :type param: string\n :param default: the default value, raises an exception\n if param is not in configuration and default\n is None (whic... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_groups API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extrac... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_groups API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extrac... | Get a user's groups
:param username: 'key' attribute of the user
:type username: string
:rtype: list of groups | "Get a user's groups\n\n :param username: 'key' attribute of the user\n :type username: string\n :rtype: list of groups" | 83 | false | kakwa/ldapcherry | get_groups | 28,803 | |
LDU_FT/SpikeInterface/spikeextractors/set_channel_property | LDU_FT | [
"<BEGIN>\n## `write_recording`",
"Save recording extractor to MEArec format.\n Parameters\n ----------\n recording: RecordingExtractor\n Recording extractor object to be saved\n save_path: str\n .h5 or .hdf5 path\n<END>",
"<BEGIN>\n## `write_sorting`",
"Save s... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_channel_property API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_channel_property API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | This function adds a property dataset to the given channel under the
property name.
Parameters
----------
channel_id: int
The channel id for which the property will be added
property_name: str
A property stored by the RecordingExtractor (location, etc.)
... | "This function adds a property dataset to the given channel under the\n property name.\n\n Parameters\n ----------\n channel_id: int\n The channel id for which the property will be added\n property_name: str\n A property stored by the RecordingExtractor (location... | 115 | false | SpikeInterface/spikeextractors | set_channel_property | 28,804 | |
LDU_FT/Chilipp/model-organization/_archive_extensions | LDU_FT | [
"<BEGIN>\n## `dir_contains`",
"Check if a file of directory is contained in another.",
" Parameters\n ----------\n dirname: str\n The base directory that should contain `path`\n path: str\n The name of a directory or file that should be in `dirname`\n exists: bool\n If True, ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _archive_extensions 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 _archive_extensions 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... | Create translations from file extension to archive format
Returns
-------
dict
The mapping from file extension to archive format
dict
The mapping from archive format to default file extension | "Create translations from file extension to archive format\n\n Returns\n -------\n dict\n The mapping from file extension to archive format\n dict\n The mapping from archive format to default file extension" | 161 | false | Chilipp/model-organization | _archive_extensions | 28,805 | |
LDU_FT/kevinconway/confpy/configuration_from_paths | LDU_FT | [
"<BEGIN>\n## `configfile_from_path`",
"Get a ConfigFile object based on a file path.",
" This method will inspect the file extension and return the appropriate\n ConfigFile subclass initialized with the given path.",
" Args:\n path (str): The file path which represents the configuration file.\... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the configuration_from_paths 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 configuration_from_paths API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio... | Get a Configuration object based on multiple file paths.
Args:
paths (iter of str): An iterable of file paths which identify config
files on the system.
strict (bool): Whether or not to parse the files in strict mode.
Returns:
confpy.core.config.Configuration: The loaded co... | "Get a Configuration object based on multiple file paths.\n\n Args:\n paths (iter of str): An iterable of file paths which identify config\n files on the system.\n strict (bool): Whether or not to parse the files in strict mode.\n\n Returns:\n confpy.core.config.Configuration: The ... | 104 | false | kevinconway/confpy | configuration_from_paths | 28,806 | |
LDU_FT/davidchua/pymessenger/send_video | LDU_FT | [
"<BEGIN>\n## `send_attachment`",
"Send an attachment to the specified recipient using local path.\n Input:\n recipient_id: recipient id to send to\n attachment_type: type of attachment (image, video, audio, file)\n attachment_path: Path of attachment\n Output:\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the send_video API.
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 send_video API.
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... | Send video to the specified recipient.
Video should be MP4 or MOV, but supports more (https://www.facebook.com/help/218673814818907).
https://developers.facebook.com/docs/messenger-platform/send-api-reference/video-attachment
Input:
recipient_id: recipient id to send to
v... | "Send video to the specified recipient.\n Video should be MP4 or MOV, but supports more (https://www.facebook.com/help/218673814818907).\n https://developers.facebook.com/docs/messenger-platform/send-api-reference/video-attachment\n Input:\n recipient_id: recipient id to send to\n ... | 31 | false | davidchua/pymessenger | send_video | 28,807 | |
LDU_FT/snare/voltron/server_side | LDU_FT | [
"<BEGIN>\n## `cancel_queue`",
"Cancel all requests in the queue so we can exit.\n<END>",
"<BEGIN>\n## `dispatch_queue`",
"Dispatch any queued requests.",
" Called by the debugger when it stops.\n<END>",
"<BEGIN>\n## `send_request`",
"Send a request to the server.",
" `request` is an APIR... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the server_side API.
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 server_side API.
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... | Decorator to designate an API method applicable only to server-side
instances.
This allows us to use the same APIRequest and APIResponse subclasses on the
client and server sides without too much confusion. | "Decorator to designate an API method applicable only to server-side\n instances.\n\n This allows us to use the same APIRequest and APIResponse subclasses on the\n client and server sides without too much confusion." | 80 | false | snare/voltron | server_side | 28,808 | |
LDU_FT/gmr/helper/_write_pidfile | LDU_FT | [
"<BEGIN>\n## `operating_system`",
"Return a string identifying the operating system the application\n is running on.",
" :rtype: str\n<END>",
"<BEGIN>\n## `start`",
"Daemonize if the process is not already running.\n<END>",
"<BEGIN>\n## `gid`",
"Return the group id that the daemon will run with",
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _write_pidfile API.
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 _write_pidfile API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ex... | Write the pid file out with the process number in the pid file | "Write the pid file out with the process number in the pid file" | 77 | false | gmr/helper | _write_pidfile | 28,809 | |
LDU_FT/SeattleTestbed/seash/getkeypress | LDU_FT | [
"<BEGIN>\n## `_bind_key`",
"u\"\"\"setup the mapping from key to call the function.\n<END>",
"<BEGIN>\n## `_bind_exit_key`",
"u\"\"\"setup the mapping from key to call the function.\n<END>",
"<BEGIN>\n## `_get_completions`",
"Return a list of possible completions for the string ending at the point.\r\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the getkeypress API.
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 getkeypress API.
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... | u'''Return next key press event from the queue, ignoring others. | "u'''Return next key press event from the queue, ignoring others." | 281 | false | SeattleTestbed/seash | getkeypress | 28,810 | |
LDU_FT/pyparsing/pyparsing/lookup_id_action | LDU_FT | [
"<BEGIN>\n## `parse`",
"Accepts an input string containing an LA equation, e.g.,\r\n \"M3_mymatrix = M3_anothermatrix^-1\" returns C code function\r\n calls that implement the expression.\n<END>",
"<BEGIN>\n## `fprocess`",
"Scans an input file for LA equations between double square brackets,\r\n e.g. ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the lookup_id_action API.
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_id_action API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | Code executed after recognising an identificator in expression | "Code executed after recognising an identificator in expression" | 132 | false | pyparsing/pyparsing | lookup_id_action | 28,811 | |
LDU_FT/rootpy/rootpy/SetColor | LDU_FT | [
"<BEGIN>\n## `total`",
"Return the total yield and its associated statistical uncertainty.\n<END>",
"<BEGIN>\n## `sys_names`",
"Return a list of unique systematic names from OverallSys and HistoSys\n<END>",
"<BEGIN>\n## `iter_sys`",
"Iterate over sys_name, overall_sys, histo_sys.\n overall_sys or h... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the SetColor API.
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 SetColor API.
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... | *color* may be any color understood by ROOT or matplotlib.
Set all color attributes with one method call.
For full documentation of accepted *color* arguments, see
:class:`rootpy.plotting.style.Color`. | "*color* may be any color understood by ROOT or matplotlib.\n\n Set all color attributes with one method call.\n\n For full documentation of accepted *color* arguments, see\n :class:`rootpy.plotting.style.Color`." | 878 | false | rootpy/rootpy | SetColor | 28,812 | |
LDU_FT/codeinthehole/purl/password | LDU_FT | [
"<BEGIN>\n## `to_utf8`",
"Encode a string as a UTF8 bytestring. This function could be passed a\n bytestring or unicode string so must distinguish between the two.\n<END>",
"<BEGIN>\n## `dict_to_unicode`",
"Ensure all keys and values in a dict are unicode.",
" The passed dict is assumed to have lists... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the password API.
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 password API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracte... | Return or set the password
:param string value: the new password to use
:returns: string or new :class:`URL` instance | "Return or set the password\n\n :param string value: the new password to use\n :returns: string or new :class:`URL` instance" | 75 | false | codeinthehole/purl | password | 28,813 | |
LDU_FT/meyersj/geotweet/mapper_init | LDU_FT | [
"<BEGIN>\n## `validate_geotweet`",
"check that stream record is actual tweet with coordinates\n<END>",
"<BEGIN>\n## `get_object`",
"lookup object based on point as [longitude, latitude]\n<END>",
"<BEGIN>\n## `_build_from_geojson`",
"Build a RTree index to disk using bounding box of each feature\n<END>",
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the mapper_init API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the mapper_init API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | build local spatial index of US metro areas | "build local spatial index of US metro areas" | 30 | false | meyersj/geotweet | mapper_init | 28,814 | |
LDU_FT/chukysoria/pyspotify-connect/call | LDU_FT | [
"<BEGIN>\n## `load_application_key_file`",
"Load your libspotify application key file.",
" If called without arguments, it tries to read ``spotify_appkey.key``\n from the current working directory.",
" This is an alternative to setting :attr:`application_key` yourself. The\n file m... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the call API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted do... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the call API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted do... | Call the single registered listener for ``event``.
The listener will be called with any extra arguments passed to
:meth:`call` first, and then the extra arguments passed to :meth:`on`
Raises :exc:`AssertionError` if there is none or multiple listeners for
``event``. Returns the listene... | "Call the single registered listener for ``event``.\n\n The listener will be called with any extra arguments passed to\n :meth:`call` first, and then the extra arguments passed to :meth:`on`\n\n Raises :exc:`AssertionError` if there is none or multiple listeners for\n ``event``. Returns the ... | 65 | false | chukysoria/pyspotify-connect | call | 28,815 | |
LDU_FT/craft-ai/craft-ai-client-python/_decode_response_bulk | LDU_FT | [
"<BEGIN>\n## `to_dict`",
"Returns the Time instance as a usable dictionary for craftai\n<END>",
"<BEGIN>\n## `create_agent`",
"Create an agent.",
" :param dict configuration: Form given by the craftai documentation.\n :param str agent_id: Optional. The id of the agent to create. It\n must be an str... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _decode_response_bulk 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 _decode_response_bulk API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | Decode the response of each agent given by a bulk function.
:param list response_bulk: list of dictionnary which represents
the response for an agent.
:return: decoded response.
:rtype: list of dict. | "Decode the response of each agent given by a bulk function.\n\n :param list response_bulk: list of dictionnary which represents\n the response for an agent.\n\n :return: decoded response.\n :rtype: list of dict." | 80 | false | craft-ai/craft-ai-client-python | _decode_response_bulk | 28,816 | |
LDU_FT/ui/django-post_office/send_messages | LDU_FT | [
"<BEGIN>\n## `get_upload_path`",
"Overriding to store the original filename\n<END>",
"<BEGIN>\n## `get_prep_value`",
"We need to accomodate queries where a single email,\n or list of email addresses is supplied as arguments. For example:",
" - Email.objects.filter(to='mail@example.com')\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the send_messages API.
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 send_messages API.
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... | Queue one or more EmailMessage objects and returns the number of
email messages sent. | "Queue one or more EmailMessage objects and returns the number of\n email messages sent." | 40 | false | ui/django-post_office | send_messages | 28,817 | |
LDU_FT/andela-sjames/paystack-python/get | LDU_FT | [
"<BEGIN>\n## `_request`",
"Perform a method on a resource.",
" Args:\n method: requests.`method`\n resource_uri: resource endpoint\n Raises:\n HTTPError\n Returns:\n JSON Response\n<END>",
"<BEGIN>\n## `get`",
"Get a resource.",
" Arg... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted doc... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted doc... | Get a resource.
Args:
endpoint: resource endpoint. | "Get a resource.\n\n Args:\n endpoint: resource endpoint." | 16 | false | andela-sjames/paystack-python | get | 28,818 | |
LDU_FT/maxcountryman/flask-login/_load_user | LDU_FT | [
"<BEGIN>\n## `encode_cookie`",
"This will encode a ``unicode`` value into a cookie, and sign that cookie\n with the app's secret key.",
" :param payload: The value to encode, as `unicode`.\n :type payload: unicode",
" :param key: The key to use when creating the cookie digest. If not\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _load_user API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extrac... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _load_user API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extrac... | Loads user from session or remember_me cookie as applicable | "Loads user from session or remember_me cookie as applicable" | 62 | false | maxcountryman/flask-login | _load_user | 28,819 | |
LDU_FT/theonion/django-bulbs/has_pinned_content | LDU_FT | [
"<BEGIN>\n## `save`",
"Kicks off celery task to re-save associated special coverages to percolator",
" :param args: inline arguments (optional)\n :param kwargs: keyword arguments\n :return: `bulbs.campaigns.Campaign`\n<END>",
"<BEGIN>\n## `get_field_info`",
"This method is basically a m... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the has_pinned_content 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 has_pinned_content 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... | determines if the there is a pinned object in the search | "determines if the there is a pinned object in the search" | 277 | false | theonion/django-bulbs | has_pinned_content | 28,820 | |
LDU_FT/kontron/python-aardvark/i2c_slave_read | LDU_FT | [
"<BEGIN>\n## `find_devices`",
"Return a list of dictionaries. Each dictionary represents one device.",
" The dictionary contains the following keys: port, unique_id and in_use.\n `port` can be used with :func:`open`. `serial_number` is the serial number\n of the device (and can also be used with :func:... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the i2c_slave_read API.
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 i2c_slave_read API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ex... | Read the bytes from an I2C slave reception.
The bytes are returned as a string object. | "Read the bytes from an I2C slave reception.\n\n The bytes are returned as a string object." | 72 | false | kontron/python-aardvark | i2c_slave_read | 28,821 | |
LDU_FT/twisted/txmongo/read | LDU_FT | [
"<BEGIN>\n## `configure`",
"Configures the protocol using the information gathered from the\n remote Mongo instance. Such information may contain the max\n BSON document size, replica set configuration, and the master\n status of the instance.\n<END>",
"<BEGIN>\n## `notifyReady`... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the read API.
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 read API.
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... | Read at most `size` bytes from the file (less if there
isn't enough data).
The bytes are returned as an instance of :class:`str`. If
`size` is negative or omitted all data is read.
:Parameters:
- `size` (optional): the number of bytes to read | "Read at most `size` bytes from the file (less if there\n isn't enough data).\n\n The bytes are returned as an instance of :class:`str`. If\n `size` is negative or omitted all data is read.\n\n :Parameters:\n - `size` (optional): the number of bytes to read" | 64 | false | twisted/txmongo | read | 28,822 | |
LDU_FT/CityOfZion/neo-python-core/VerifySignature | LDU_FT | [
"<BEGIN>\n## `PrivateKeyFromWIF`",
"Get the private key from a WIF key",
" Args:\n wif (str): The wif key",
" Returns:\n bytes: The private key\n<END>",
"<BEGIN>\n## `PrivateKeyFromNEP2`",
"Gets the private key from a NEP-2 encrypted private key",
" Args:\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the VerifySignature API.
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 VerifySignature API.
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... | Verify the integrity of the message.
Args:
message (str): the message to verify.
signature (bytearray): the signature belonging to the message.
public_key (ECPoint): the public key to use for verifying the signature.
unhex (bool): whether the message should be un... | "Verify the integrity of the message.\n\n Args:\n message (str): the message to verify.\n signature (bytearray): the signature belonging to the message.\n public_key (ECPoint): the public key to use for verifying the signature.\n unhex (bool): whether the message shoul... | 175 | false | CityOfZion/neo-python-core | VerifySignature | 28,823 | |
LDU_FT/Bouke/django-two-factor-auth/post | LDU_FT | [
"<BEGIN>\n## `mask_phone_number`",
"Masks a phone number, only first 3 and last 2 digits visible.",
" Examples:",
" * `+31 * ******58`",
" :param number: str or phonenumber object\n :return: str\n<END>",
"<BEGIN>\n## `format_phone_number`",
"Formats a phone number in international notation.\... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the post API.
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 post API.
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... | Check if the current step is still available. It might not be if
conditions have changed. | "Check if the current step is still available. It might not be if\n conditions have changed." | 31 | false | Bouke/django-two-factor-auth | post | 28,824 | |
LDU_FT/hMatoba/Piexif/transplant | LDU_FT | [
"<BEGIN>\n## `dump`",
"py:function:: piexif.load(data)",
" Return exif as bytes.",
" :param dict exif: Exif data({\"0th\":dict, \"Exif\":dict, \"GPS\":dict, \"Interop\":dict, \"1st\":dict, \"thumbnail\":bytes})\n :return: Exif\n :rtype: bytes\n<END>",
"<BEGIN>\n## `insert`",
"py:function:: pie... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the transplant API.
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 transplant API.
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... | py:function:: piexif.transplant(filename1, filename2)
Transplant exif from filename1 to filename2.
:param str filename1: JPEG
:param str filename2: JPEG | "py:function:: piexif.transplant(filename1, filename2)\n\n Transplant exif from filename1 to filename2.\n\n :param str filename1: JPEG\n :param str filename2: JPEG" | 32 | false | hMatoba/Piexif | transplant | 28,825 | |
LDU_FT/PyconUK/ConferenceScheduler/slot_availability_array | LDU_FT | [
"<BEGIN>\n## `hill_climber`",
"Implement a basic hill climbing algorithm.",
" Has two stopping conditions:",
" 1. Maximum number of iterations;\n 2. A known lower bound, a none is passed then this is not used.",
" If acceptance_criteria (a callable) is not None then this is used to obtain\n a... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the slot_availability_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... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the slot_availability_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... | Return a numpy array mapping events to slots
- Rows corresponds to events
- Columns correspond to stags
Array has value 0 if event cannot be scheduled in a given slot
(1 otherwise) | "Return a numpy array mapping events to slots\n\n - Rows corresponds to events\n - Columns correspond to stags\n\n Array has value 0 if event cannot be scheduled in a given slot\n (1 otherwise)" | 127 | false | PyconUK/ConferenceScheduler | slot_availability_array | 28,826 | |
LDU_FT/robgolding/django-radius/_get_client | LDU_FT | [
"<BEGIN>\n## `_get_auth_packet`",
"Get the pyrad authentication packet for the username/password and the\n given pyrad client.\n<END>",
"<BEGIN>\n## `_get_client`",
"Get the pyrad client for a given server. RADIUS server is described by\n a 3-tuple: (<hostname>, <port>, <secret>).\n<END>",
"<B... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_client API.
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_client API.
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 the pyrad client for a given server. RADIUS server is described by
a 3-tuple: (<hostname>, <port>, <secret>). | "Get the pyrad client for a given server. RADIUS server is described by\n a 3-tuple: (<hostname>, <port>, <secret>)." | 14 | false | robgolding/django-radius | _get_client | 28,827 | |
LDU_FT/spookylukey/django-paypal/is_mod10 | LDU_FT | [
"<BEGIN>\n## `render_payment_form`",
"Display the DirectPayment for entering payment information.\n<END>",
"<BEGIN>\n## `validate_payment_form`",
"Try to validate and then process the DirectPayment form.\n<END>",
"<BEGIN>\n## `redirect_to_express`",
"First step of ExpressCheckout. Redirect the request to ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_mod10 API.
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 is_mod10 API.
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... | Returns True if number is valid according to mod10. | "Returns True if number is valid according to mod10." | 65 | false | spookylukey/django-paypal | is_mod10 | 28,828 | |
LDU_FT/thetarkus/django-semanticui-forms/render_booleanfield | LDU_FT | [
"<BEGIN>\n## `render_form`",
"Render an entire form with Semantic UI wrappers for each field\r",
"\tArgs:\r\n\t\tform (form): Django Form\r\n\t\texclude (string): exclude fields by name, separated by commas\r\n\t\tkwargs (dict): other attributes will be passed to fields\r",
"\tReturns:\r\n\t\tstring: HTML of ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the render_booleanfield 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 render_booleanfield 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... | Render BooleanField with label next to instead of above. | "Render BooleanField with label next to instead of above." | 28 | false | thetarkus/django-semanticui-forms | render_booleanfield | 28,829 | |
LDU_FT/bigchaindb/bigchaindb-driver/get | LDU_FT | [
"<BEGIN>\n## `info`",
"Retrieves information of the node being connected to via the\n root endpoint ``'/'``.",
" Args:\n headers (dict): Optional headers to pass to the request.",
" Returns:\n dict: Details of the node that this instance is connected\n to.... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted doc... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted doc... | Get transaction outputs by public key. The public_key parameter
must be a base58 encoded ed25519 public key associated with
transaction output ownership.
Args:
public_key (str): Public key for which unfulfilled
conditions are sought.
spent (bool): Indicat... | "Get transaction outputs by public key. The public_key parameter\n must be a base58 encoded ed25519 public key associated with\n transaction output ownership.\n\n Args:\n public_key (str): Public key for which unfulfilled\n conditions are sought.\n spent (bool):... | 169 | false | bigchaindb/bigchaindb-driver | get | 28,830 | |
LDU_FT/silenc3r/dikicli/save_file | LDU_FT | [
"<BEGIN>\n## `_parse_html`",
"Parse html string.",
" Parameters\n ----------\n html_dump : str\n HTML content.\n native : bool, optional\n Whether to translate from native to foreign language.",
" Returns\n -------\n translations : list\n Translations list.",
" R... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the save_file API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extract... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the save_file API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extract... | Save file to disk.
Paramaters
----------
filename : pathlib.Path
Path to the file.
data : str
File contents.
mk_parents : bool, optional
If to create parent directories. | "Save file to disk.\n\n Paramaters\n ----------\n filename : pathlib.Path\n Path to the file.\n data : str\n File contents.\n mk_parents : bool, optional\n If to create parent directories." | 62 | false | silenc3r/dikicli | save_file | 28,831 | |
LDU_FT/brentp/cruzdb/ncbi_blast | LDU_FT | [
"<BEGIN>\n## `relate`",
"Produce a relationship between this mapped table and another\n one. ",
" This makes usage of SQLAlchemy's :func:`sqlalchemy.orm.relationship`\n construct.\n<END>",
"<BEGIN>\n## `execute`",
"Execute a SQL statement.",
" The statement may be a string SQL ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the ncbi_blast API.
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 ncbi_blast API.
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... | perform an NCBI blast against the sequence of this feature | "perform an NCBI blast against the sequence of this feature" | 169 | false | brentp/cruzdb | ncbi_blast | 28,832 | |
LDU_FT/cjdrake/pyeda/_bin_zfill | LDU_FT | [
"<BEGIN>\n## `ripple_carry_add`",
"Return symbolic logic for an N-bit ripple carry adder.\n<END>",
"<BEGIN>\n## `kogge_stone_add`",
"Return symbolic logic for an N-bit Kogge-Stone adder.\n<END>",
"<BEGIN>\n## `brent_kung_add`",
"Return symbolic logic for an N-bit Brent-Kung adder.\n<END>",
"<BEGIN>\n## ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _bin_zfill API.
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 _bin_zfill API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extrac... | Convert a base-10 number to a binary string.
Parameters
num: int
width: int, optional
Zero-extend the string to this width.
Examples
--------
>>> _bin_zfill(42)
'101010'
>>> _bin_zfill(42, 8)
'00101010' | "Convert a base-10 number to a binary string.\n\n Parameters\n num: int\n width: int, optional\n Zero-extend the string to this width.\n Examples\n --------\n\n >>> _bin_zfill(42)\n '101010'\n >>> _bin_zfill(42, 8)\n '00101010'" | 410 | false | cjdrake/pyeda | _bin_zfill | 28,833 | |
LDU_FT/saltant-org/saltant-py/validate_request_success | LDU_FT | [
"<BEGIN>\n## `sync`",
"Sync this model with latest data on the saltant server.",
" Note that in addition to returning the updated object, it also\n updates the existing object.",
" Returns:\n :class:`saltant.models.base_task_type.BaseTaskType`:\n This task type i... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the validate_request_success 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 validate_request_success API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio... | Validates that a request was successful.
Args:
response_text (str): The response body of the request.
request_url (str): The URL the request was made at.
status_code (int): The status code of the response.
expected_status_code (int): The expected status code of t... | "Validates that a request was successful.\n\n Args:\n response_text (str): The response body of the request.\n request_url (str): The URL the request was made at.\n status_code (int): The status code of the response.\n expected_status_code (int): The expected status co... | 134 | false | saltant-org/saltant-py | validate_request_success | 28,834 | |
LDU_FT/kkroening/ffmpeg-python/filter_ | LDU_FT | [
"<BEGIN>\n## `get_args`",
"Build command-line arguments to be passed to ffmpeg.\n<END>",
"<BEGIN>\n## `compile`",
"Build command-line for invoking ffmpeg.",
" The :meth:`run` function uses this to build the commnad line\n arguments and should work in most cases, but calling this function\n directly... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the filter_ API.
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 filter_ API.
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... | Alternate name for ``filter``, so as to not collide with the
built-in python ``filter`` operator. | "Alternate name for ``filter``, so as to not collide with the\n built-in python ``filter`` operator." | 149 | false | kkroening/ffmpeg-python | filter_ | 28,835 | |
LDU_FT/argaen/aiocache/raw | LDU_FT | [
"<BEGIN>\n## `loads`",
"Deserialize value using ``msgpack.loads``.",
" :param value: bytes\n :returns: obj\n<END>",
"<BEGIN>\n## `parse_uri_path`",
"Given a uri path, return the Redis specific configuration\n options in that path string according to iana definition\n http://www.i... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the raw API.
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 raw API.
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... | Send the raw command to the underlying client. Note that by using this CMD you
will lose compatibility with other backends.
Due to limitations with aiomcache client, args have to be provided as bytes.
For rest of backends, str.
:param command: str with the command.
:param timeo... | "Send the raw command to the underlying client. Note that by using this CMD you\n will lose compatibility with other backends.\n\n Due to limitations with aiomcache client, args have to be provided as bytes.\n For rest of backends, str.\n\n :param command: str with the command.\n :par... | 77 | false | argaen/aiocache | raw | 28,836 | |
LDU_FT/kajala/django-jacc/calculate_simple_interest | LDU_FT | [
"<BEGIN>\n## `balance`",
"Returns account balance after this entry.\n :return: Decimal\n<END>",
"<BEGIN>\n## `get_balance`",
"Returns account balance before specified datetime (excluding entries on the datetime).\n :param t: datetime\n :return: Decimal\n<END>",
"<BEGIN>\n## `needs_settl... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the calculate_simple_interest 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 calculate_simple_interest API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi... | Calculates simple interest of specified entries over time.
Does not accumulate interest to interest.
:param entries: AccountEntry iterable (e.g. list/QuerySet) ordered by timestamp (ascending)
:param rate_pct: Interest rate %, e.g. 8.00 for 8%
:param interest_date: Interest end date. Default is current ... | "Calculates simple interest of specified entries over time.\n Does not accumulate interest to interest.\n :param entries: AccountEntry iterable (e.g. list/QuerySet) ordered by timestamp (ascending)\n :param rate_pct: Interest rate %, e.g. 8.00 for 8%\n :param interest_date: Interest end date. Default is cur... | 31 | false | kajala/django-jacc | calculate_simple_interest | 28,837 | |
LDU_FT/jrief/djangocms-cascade/_get_previous_open_tag | LDU_FT | [
"<BEGIN>\n## `_enrich_link`",
"Enrich the dict glossary['link'] with an identifier onto the model\n<END>",
"<BEGIN>\n## `get_form`",
"Extend the form for the given plugin with the form SharableCascadeForm\n<END>",
"<BEGIN>\n## `get_picture_elements`",
"Create a context, used to render a <picture> together... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_previous_open_tag 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_previous_open_tag 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 open tag of the previous sibling | "Return the open tag of the previous sibling" | 78 | false | jrief/djangocms-cascade | _get_previous_open_tag | 28,838 | |
LDU_FT/jay-johnson/network-pipeline/process_ether_frame | LDU_FT | [
"<BEGIN>\n## `publish_processed_network_packets`",
"# Redis/RabbitMQ/SQS messaging endpoints for pub-sub\n routing_key = ev(\"PUBLISH_EXCHANGE\",\n \"reporting.accounts\")\n queue_name = ev(\"PUBLISH_QUEUE\",\n \"reporting.accounts\")\n auth_url = ev(\"PUB_BROKER_UR... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the process_ether_frame API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
T... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the process_ether_frame API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
T... | process_ether_frame
Convert a complex nested json dictionary
to a flattened dictionary and capture
all unique keys for table construction
:param id: key for this msg
:param msg: ether frame for packet | "process_ether_frame\n\n Convert a complex nested json dictionary\n to a flattened dictionary and capture\n all unique keys for table construction\n\n :param id: key for this msg\n :param msg: ether frame for packet" | 140 | false | jay-johnson/network-pipeline | process_ether_frame | 28,839 | |
LDU_FT/DallasMorningNews/django-datafreezer/get_success_url | LDU_FT | [
"<BEGIN>\n## `clean`",
"Verifies that beginning date is before ending date.\n<END>",
"<BEGIN>\n## `get_success_url`",
"Ensure the user-originating redirection URL is safe.\n<END>",
"<BEGIN>\n## `form_valid`",
"Security check complete. Log the user in.\n<END>",
"<BEGIN>\n## `map_hubs_to_verticals`",
"R... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_success_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 e... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_success_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 e... | Ensure the user-originating redirection URL is safe. | "Ensure the user-originating redirection URL is safe." | 63 | false | DallasMorningNews/django-datafreezer | get_success_url | 28,840 | |
LDU_FT/zero-os/zerotier_client/_calculate_offset | LDU_FT | [
"<BEGIN>\n## `deleteMember`",
"Delete member from network\n It is method for DELETE /network/{id}/member/{address}\n<END>",
"<BEGIN>\n## `getMember`",
"Get network member settings\n It is method for GET /network/{id}/member/{address}\n<END>",
"<BEGIN>\n## `updateMember`",
"Update member sett... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _calculate_offset API.
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 _calculate_offset API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | input :
date : date type
local_tz : if true, use system timezone, otherwise return 0
return the date of UTC offset.
If date does not have any timezone info, we use local timezone,
otherwise return 0 | "input :\n date : date type\n local_tz : if true, use system timezone, otherwise return 0\n\n return the date of UTC offset.\n If date does not have any timezone info, we use local timezone,\n otherwise return 0" | 47 | false | zero-os/zerotier_client | _calculate_offset | 28,841 | |
LDU_FT/jazzband/django-axes/get_client_parameters | LDU_FT | [
"<BEGIN>\n## `get_cool_off`",
"Return the login cool off time interpreted from settings.AXES_COOLOFF_TIME.",
" The return value is either None or timedelta.",
" Notice that the settings.AXES_COOLOFF_TIME is either None, timedelta, or integer of hours,\n and this function offers a unified _timedelta o... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_client_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 get_client_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 query parameters for filtering AccessAttempt queryset.
This method returns a dict that guarantees iteration order for keys and values,
and can so be used in e.g. the generation of hash keys or other deterministic functions. | "Get query parameters for filtering AccessAttempt queryset.\n\n This method returns a dict that guarantees iteration order for keys and values,\n and can so be used in e.g. the generation of hash keys or other deterministic functions." | 94 | false | jazzband/django-axes | get_client_parameters | 28,842 | |
LDU_FT/amaas-fintech/amaas-core-sdk-python/business_date | LDU_FT | [
"<BEGIN>\n## `deactivate`",
"Is is only possible to deactivate an asset manager if your client_id is also the client_id that was used\n to originally create the asset manager.",
" :param asset_manager_id:\n :return:\n<END>",
"<BEGIN>\n## `quote_datetime`",
"Force the quote_datetime to a... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the business_date API.
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 business_date API.
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... | Force the business_date to always be a date
:param business_date:
:return: | "Force the business_date to always be a date\n :param business_date:\n :return:" | 109 | false | amaas-fintech/amaas-core-sdk-python | business_date | 28,843 | |
LDU_FT/openvax/datacache/connect_if_correct_version | LDU_FT | [
"<BEGIN>\n## `connect_if_correct_version`",
"Return a sqlite3 database connection if the version in the database's\n metadata matches the version argument.",
" Also implicitly checks for whether the data in this database has\n been completely filled, since we set the version last.",
" TODO: Make a... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the connect_if_correct_version 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 connect_if_correct_version API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclus... | Return a sqlite3 database connection if the version in the database's
metadata matches the version argument.
Also implicitly checks for whether the data in this database has
been completely filled, since we set the version last.
TODO: Make an explicit 'complete' flag to the metadata. | "Return a sqlite3 database connection if the version in the database's\n metadata matches the version argument.\n\n Also implicitly checks for whether the data in this database has\n been completely filled, since we set the version last.\n\n TODO: Make an explicit 'complete' flag to the metadata." | 101 | false | openvax/datacache | connect_if_correct_version | 28,844 | |
LDU_FT/ARMmbed/autoversion/read_targets | LDU_FT | [
"<BEGIN>\n## `get_current_semver`",
"Given a dictionary of all version data available, determine the current version\n<END>",
"<BEGIN>\n## `make_new_semver`",
"Defines how to increment semver based on which significant figure is triggered\n<END>",
"<BEGIN>\n## `main`",
"Tags the current repository",
" ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the read_targets API.
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 read_targets API.
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... | Reads generic key-value pairs from input files | "Reads generic key-value pairs from input files" | 37 | false | ARMmbed/autoversion | read_targets | 28,845 | |
LDU_FT/reingart/pyafipws/CrearAjuste | LDU_FT | [
"<BEGIN>\n## `__analizar_errores`",
"Comprueba y extrae errores si existen en la respuesta XML\n<END>",
"<BEGIN>\n## `__analizar_controles`",
"Comprueba y extrae controles si existen en la respuesta XML\n<END>",
"<BEGIN>\n## `Dummy`",
"Obtener el estado de los servidores de la AFIP\n<END>",
"<BEGIN>\n##... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the CrearAjuste API.
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 CrearAjuste API.
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... | Inicializa internamente los datos de una liquidación para ajustar | "Inicializa internamente los datos de una liquidación para ajustar" | 334 | false | reingart/pyafipws | CrearAjuste | 28,846 | |
LDU_FT/oanda/v20-python/from_dict | LDU_FT | [
"<BEGIN>\n## `from_dict`",
"Instantiate a new Trade from a dict (generally from loading a JSON\n response). The data used to instantiate the Trade is a shallow copy of\n the dict passed in, with any complex child types instantiated\n appropriately.\n<END>",
"<BEGIN>\n## `from_dict`",
"Ins... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the from_dict API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extract... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the from_dict API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extract... | Instantiate a new CandlestickData from a dict (generally from loading a
JSON response). The data used to instantiate the CandlestickData is a
shallow copy of the dict passed in, with any complex child types
instantiated appropriately. | "Instantiate a new CandlestickData from a dict (generally from loading a\n JSON response). The data used to instantiate the CandlestickData is a\n shallow copy of the dict passed in, with any complex child types\n instantiated appropriately." | 225 | false | oanda/v20-python | from_dict | 28,847 | |
LDU_FT/nkavaldj/myhdl_lib/ls_demux | LDU_FT | [
"<BEGIN>\n## `convert_ram_sp_ar`",
"Convert RAM: Single-Port, Asynchronous Read\n<END>",
"<BEGIN>\n## `convert_ram_sdp_rf`",
"Convert RAM: Simple-Dual-Port, Read-First\n<END>",
"<BEGIN>\n## `convert_ram_sdp_wf`",
"Convert RAM: Simple-Dual-Port, Write-First\n<END>",
"<BEGIN>\n## `convert_ram_sdp_ar`",
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the ls_demux API.
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 ls_demux API.
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... | Demultiplexes an input signal structure to list of output structures.
A structure is represented by a list of signals: [signal_1, signal_2, ..., signal_n]
lsls_do[sel][0] = ls_di[0]
lsls_do[sel][1] = ls_di[1]
...
lsls_do[sel][n] = ls_di[n]
sel - sele... | "Demultiplexes an input signal structure to list of output structures. \n A structure is represented by a list of signals: [signal_1, signal_2, ..., signal_n]\n lsls_do[sel][0] = ls_di[0]\n lsls_do[sel][1] = ls_di[1]\n ...\n lsls_do[sel][n] = ls_di[n]\n\n se... | 111 | false | nkavaldj/myhdl_lib | ls_demux | 28,848 | |
LDU_FT/Archived-Object/ligament/verify_valid_dependencies | LDU_FT | [
"<BEGIN>\n## `register_dependency`",
"registers a dependency of data_src -> data_sink\n by placing appropriate entries in provides_for and depends_on\n<END>",
"<BEGIN>\n## `build_task`",
"Builds a task by name, resolving any dependencies on the way\n<END>",
"<BEGIN>\n## `is_build_needed`",
"ret... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the verify_valid_dependencies 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 verify_valid_dependencies API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi... | Checks if the assigned dependencies are valid
valid dependency graphs are:
- noncyclic (i.e. no `A -> B -> ... -> A`)
- Contain no undefined dependencies
(dependencies referencing undefined tasks) | "Checks if the assigned dependencies are valid\n valid dependency graphs are:\n\n - noncyclic (i.e. no `A -> B -> ... -> A`)\n - Contain no undefined dependencies\n (dependencies referencing undefined tasks)" | 66 | false | Archived-Object/ligament | verify_valid_dependencies | 28,849 | |
LDU_FT/jlesquembre/autopilot/get_header | LDU_FT | [
"<BEGIN>\n## `should_skip_file`",
"Checks if a file should be skipped based on its name.",
" If it should be skipped, returns the reason, otherwise returns\n None.\n<END>",
"<BEGIN>\n## `_parse_license_name`",
"Check if the license name on the PyPI licenses list. Prepends 'OSI\n Approved :: ' if re... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_header API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extrac... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_header API.
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 line number of the first version-like header. We check for
patterns like '2.10 (unreleased)', so with either 'unreleased' or a date
between parenthesis as that's the format we're using. As an alternative,
we support an alternative format used by some zope/plone paster templates:
'2.10 - unrelea... | "Return line number of the first version-like header. We check for\n patterns like '2.10 (unreleased)', so with either 'unreleased' or a date\n between parenthesis as that's the format we're using. As an alternative,\n we support an alternative format used by some zope/plone paster templates:\n '2.10 - un... | 11 | false | jlesquembre/autopilot | get_header | 28,850 | |
LDU_FT/icometrix/dicom2nifti/is_ge | LDU_FT | [
"<BEGIN>\n## `_get_gdcmconv`",
"Get the full path to gdcmconv.\n If not found raise error\n<END>",
"<BEGIN>\n## `compress_directory`",
"This function can be used to convert a folder of jpeg compressed images to an uncompressed ones",
" :param dicom_directory: directory of dicom files to compress\n<END... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_ge API.
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 is_ge API.
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... | Use this function to detect if a dicom series is a GE dataset
:param dicom_input: list with dicom objects | "Use this function to detect if a dicom series is a GE dataset\n\n :param dicom_input: list with dicom objects" | 243 | false | icometrix/dicom2nifti | is_ge | 28,851 | |
LDU_FT/vladsaveliev/TargQC/PushSection | LDU_FT | [
"<BEGIN>\n## `main`",
"Annotating BED file based on reference features annotations.\n<END>",
"<BEGIN>\n## `downsample`",
"get N random headers from a fastq file without reading the\n whole thing into memory\n modified from: http://www.biostars.org/p/6544/\n<END>",
"<BEGIN>\n## `AddIndex`",
"Recursiv... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the PushSection API.
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 PushSection API.
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... | Given a section name, push it on the top of the stack.
Returns:
The new section, or None if there is no such section. | "Given a section name, push it on the top of the stack.\n\n Returns:\n The new section, or None if there is no such section." | 184 | false | vladsaveliev/TargQC | PushSection | 28,852 | |
LDU_FT/openvax/varlens/load_from_args | LDU_FT | [
"<BEGIN>\n## `load_from_args`",
"Return a Loci object giving the loci specified on the command line.",
" If no loci-related arguments are specified, return None. This makes it\n possible to distinguish an empty set of loci, for example due to filters\n removing all loci, from the case where the user di... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load_from_args API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ex... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load_from_args API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ex... | Given parsed commandline arguments, returns a list of ReadSource objects | "Given parsed commandline arguments, returns a list of ReadSource objects" | 130 | false | openvax/varlens | load_from_args | 28,853 | |
LDU_FT/woolfson-group/isambard/from_polymers | LDU_FT | [
"<BEGIN>\n## `covalent_bonds`",
"Returns all the covalent bonds in a list of `Atom` pairs.",
" Notes\n -----\n Uses information `element_data`, which can be accessed directly\n through this module i.e. `isambard.ampal.interactions.element_data`.",
" Parameters\n ----------\n atoms : [(`At... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the from_polymers API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the from_polymers API.
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... | Creates a `CoiledCoil` from a list of `HelicalHelices`.
Parameters
----------
polymers : [HelicalHelix]
List of `HelicalHelices`. | "Creates a `CoiledCoil` from a list of `HelicalHelices`.\n\n Parameters\n ----------\n polymers : [HelicalHelix]\n List of `HelicalHelices`." | 880 | false | woolfson-group/isambard | from_polymers | 28,854 | |
LDU_FT/hozn/keepassdb/move_entry | LDU_FT | [
"<BEGIN>\n## `to_struct`",
"Initialize properties of the appropriate struct class from this model class.\n<END>",
"<BEGIN>\n## `move`",
"Move this group to a new parent.",
" :param parent: The new parent group; if None will be root group.\n :type parent: :class:`keepassdb.model.Group`\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the move_entry API.
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 move_entry API.
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... | Move an entry to another group.
:param entry: The Entry object to move.
:type entry: :class:`keepassdb.model.Entry`
:param group: The new parent Group object for the entry.
:type group: :class:`keepassdb.model.Group`
:param index: The 0-based index with... | "Move an entry to another group.\n \n :param entry: The Entry object to move.\n :type entry: :class:`keepassdb.model.Entry`\n \n :param group: The new parent Group object for the entry.\n :type group: :class:`keepassdb.model.Group`\n \n :param index: The 0-based i... | 89 | false | hozn/keepassdb | move_entry | 28,855 | |
LDU_FT/jenisys/parse_type/extract_format_spec | LDU_FT | [
"<BEGIN>\n## `build_type_dict`",
"Builds type dictionary for user-defined type converters,\n used by :mod:`parse` module.\n This requires that each type converter has a \"name\" attribute.",
" :param converters: List of type converters (parse_types)\n :return: Type converter dictionary\n<END>",
"<... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the extract_format_spec API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
T... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the extract_format_spec API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
T... | Pull apart the format: [[fill]align][0][width][.precision][type] | "Pull apart the format: [[fill]align][0][width][.precision][type]" | 115 | false | jenisys/parse_type | extract_format_spec | 28,856 | |
LDU_FT/IntegralDefense/critsapi/get_events | LDU_FT | [
"<BEGIN>\n## `connect`",
"Starts the mongodb connection. Must be called before anything else\n will work.\n<END>",
"<BEGIN>\n## `find`",
"Search a collection for the query provided. Just a raw interface to\n mongo to do any query you want.",
" Args:\n collection: The db colle... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_events API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extrac... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_events API.
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... | Search for events with the provided title
Args:
event_title: The title of the event
Returns:
An event JSON object returned from the server with the following:
{
"meta":{
"limit": 20, "next": null, "offset": 0,
... | "Search for events with the provided title\n\n Args:\n event_title: The title of the event\n Returns:\n An event JSON object returned from the server with the following:\n {\n \"meta\":{\n \"limit\": 20, \"next\": null, \"offse... | 67 | false | IntegralDefense/critsapi | get_events | 28,857 | |
LDU_FT/pioneers/python-grizzly/limit_acceleration | LDU_FT | [
"<BEGIN>\n## `get_all_usb_devices`",
"Returns a list of all the usb devices matching the provided vendor ID and product ID.\n<END>",
"<BEGIN>\n## `get_device_address`",
"Returns the grizzly's internal address value. Returns a negative error value in case of error.\n<END>",
"<BEGIN>\n## `exchange_bytes`",
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the limit_acceleration 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 limit_acceleration API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
Th... | Sets the acceleration limit on the Grizzly. The max value is
143. Units are change in pwm per millisecond. Internally, the pwm is in
the range [-0x7f, 0x7f] or [-127, 127]. So in one millisecond the maximum
acceleration limit possible is 127 - -127 = 142. The internal default
value is 4*... | "Sets the acceleration limit on the Grizzly. The max value is\n 143. Units are change in pwm per millisecond. Internally, the pwm is in\n the range [-0x7f, 0x7f] or [-127, 127]. So in one millisecond the maximum\n acceleration limit possible is 127 - -127 = 142. The internal default\n value ... | 35 | false | pioneers/python-grizzly | limit_acceleration | 28,858 | |
LDU_FT/AmesCornish/buttersink/measureSize | LDU_FT | [
"<BEGIN>\n## `update`",
"Update self and parent with intermediate progress.\n<END>",
"<BEGIN>\n## `close`",
"Stop overwriting display, or update parent.\n<END>",
"<BEGIN>\n## `transfer`",
"Transfer (large) data from sender to receiver.\n<END>",
"<BEGIN>\n## `display`",
"Friendly string for volume, usi... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the measureSize API.
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 measureSize API.
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... | Spend some time to get an accurate size. | "Spend some time to get an accurate size." | 148 | false | AmesCornish/buttersink | measureSize | 28,859 | |
LDU_FT/tsroten/fcache/_all_filenames | LDU_FT | [
"<BEGIN>\n## `create`",
"Create the write buffer and cache directory.\n<END>",
"<BEGIN>\n## `delete`",
"Delete the write buffer and cache directory.\n<END>",
"<BEGIN>\n## `close`",
"Sync the write buffer, then close the cache.",
" If a closed :class:`FileCache` object's methods are called, a\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _all_filenames API.
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 _all_filenames API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ex... | Return a list of absolute cache filenames | "Return a list of absolute cache filenames" | 18 | false | tsroten/fcache | _all_filenames | 28,860 | |
LDU_FT/Valassis-Digital-Media/spylon/with_sql_context | LDU_FT | [
"<BEGIN>\n## `as_iterable`",
"Utility for converting an object to an iterable.",
" Parameters\n ----------\n iterable_or_scalar : anything",
" Returns\n -------\n l : iterable\n If `obj` was None, return the empty tuple.\n If `obj` was not iterable returns a 1-tuple containing ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the with_sql_context API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the with_sql_context API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | Context manager for a spark context
Returns
-------
sc : SparkContext
sql_context: SQLContext
Examples
--------
Used within a context manager
>>> with with_sql_context("MyApplication") as (sc, sql_context):
... import pyspark
... # Do stuff
... pass | "Context manager for a spark context\n\n Returns\n -------\n sc : SparkContext\n sql_context: SQLContext\n\n Examples\n --------\n Used within a context manager\n >>> with with_sql_context(\"MyApplication\") as (sc, sql_context):\n ... import pyspark\n ... # Do stuff\n ... p... | 96 | false | Valassis-Digital-Media/spylon | with_sql_context | 28,861 | |
LDU_FT/openvax/topiary/predict_epitopes_from_args | LDU_FT | [
"<BEGIN>\n## `transcript_sort_key`",
"Key function used to sort transcripts. Taking the negative of\n protein sequence length and nucleotide sequence length so that\n the transcripts with longest sequences come first in the list. This couldn't\n be accomplished with `reverse=True` since we're also sortin... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the predict_epitopes_from_args 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 predict_epitopes_from_args API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclus... | Returns an epitope collection from the given commandline arguments.
Parameters
----------
args : argparse.Namespace
Parsed commandline arguments for Topiary | "Returns an epitope collection from the given commandline arguments.\n\n Parameters\n ----------\n args : argparse.Namespace\n Parsed commandline arguments for Topiary" | 91 | false | openvax/topiary | predict_epitopes_from_args | 28,862 | |
LDU_FT/nugget/python-insteonplm/_status_message_received | LDU_FT | [
"<BEGIN>\n## `data_received`",
"Receive data from the protocol.",
" Called when asyncio.Protocol detects received data from network.\n<END>",
"<BEGIN>\n## `connection_lost`",
"Reestablish the connection to the transport.",
" Called when asyncio.Protocol loses the network connection.\n<END>",... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _status_message_received 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 _status_message_received API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio... | Receive confirmation that the status message is coming.
The real status message is the extended direct message. | "Receive confirmation that the status message is coming.\n\n The real status message is the extended direct message." | 375 | false | nugget/python-insteonplm | _status_message_received | 28,863 | |
LDU_FT/heronotears/lazyxml/guess_xml_encoding | LDU_FT | [
"<BEGIN>\n## `set_options`",
"r\"\"\"Set Parser options.",
" .. seealso::\n ``kw`` argument have the same meaning as in :func:`lazyxml.loads`\n<END>",
"<BEGIN>\n## `xml2object`",
"r\"\"\"Convert xml content to python object.",
" :param content: xml content\n :rtype: dict",
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the guess_xml_encoding 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 guess_xml_encoding 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... | r"""Guess encoding from xml header declaration.
:param content: xml content
:rtype: str or None | "r\"\"\"Guess encoding from xml header declaration.\n\n :param content: xml content\n :rtype: str or None" | 60 | false | heronotears/lazyxml | guess_xml_encoding | 28,864 | |
LDU_FT/ilevkivskyi/typing_inspect/_gorg | LDU_FT | [
"<BEGIN>\n## `_gorg`",
"This function exists for compatibility with old typing versions.\n<END>",
"<BEGIN>\n## `is_callable_type`",
"Test if the type is a generic callable type, including subclasses\n excluding non-generic types and callables.\n Examples::",
" is_callable_type(int) == False\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _gorg API.
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 _gorg API.
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... | This function exists for compatibility with old typing versions. | "This function exists for compatibility with old typing versions." | 36 | false | ilevkivskyi/typing_inspect | _gorg | 28,865 | |
LDU_FT/childsish/sofia/iter_pest | LDU_FT | [
"<BEGIN>\n## `consume_input`",
"Make a copy of the input for the run function and consume the input to free up the queue for more input. If all\n input is consumed, there is no need to overload this function. Input is provided as lists. To copy and consume\n input the following commands can be run:"... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the iter_pest API.
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 iter_pest API.
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... | Algorithm copied from EMBOSS:
https://github.com/pjotrp/EMBOSS/blob/master/emboss/epestfind.c:278 | "Algorithm copied from EMBOSS:\n https://github.com/pjotrp/EMBOSS/blob/master/emboss/epestfind.c:278" | 32 | false | childsish/sofia | iter_pest | 28,866 | |
LDU_FT/exosite-labs/pyonep/create | LDU_FT | [
"<BEGIN>\n## `request`",
"Wraps HTTPConnection.request. On exception it calls exception_fn\n with the exception object. If exception_fn is None, it re-raises the\n exception. If notimeout is True, create a new connection (regardless of\n self.reuseconnection setting) that uses the global defa... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted ... | Create something in Exosite.
Args:
auth: <cik>
type: What thing to create.
desc: Information about thing. | "Create something in Exosite.\n\n Args:\n auth: <cik>\n type: What thing to create.\n desc: Information about thing." | 199 | false | exosite-labs/pyonep | create | 28,867 | |
LDU_FT/1flow/python-ftr/ftr_string_to_instance | LDU_FT | [
"<BEGIN>\n## `reset`",
"(re)set all instance attributes to default.",
" Every attribute is set to ``None``, except :attr:`author`\n and :attr:`failures` which are set to ``[]``.\n<END>",
"<BEGIN>\n## `_process_replacements`",
"Do raw string replacements on :param:`html`.\n<END>",
"<BEGIN>\n#... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the ftr_string_to_instance 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 ftr_string_to_instance API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.... | Return a :class:`SiteConfig` built from a ``config_string``.
Simple syntax errors are just plainly ignored, and logged as warnings.
:param config_string: a full site config file, raw-loaded from storage
with something like
``config_string = open('path/to/site/config.txt', 'r').read()``.
:t... | "Return a :class:`SiteConfig` built from a ``config_string``.\n\n Simple syntax errors are just plainly ignored, and logged as warnings.\n\n :param config_string: a full site config file, raw-loaded from storage\n with something like\n ``config_string = open('path/to/site/config.txt', 'r').read()``.... | 65 | false | 1flow/python-ftr | ftr_string_to_instance | 28,868 | |
LDU_FT/biocore-ntnu/epic/create_matrixes | LDU_FT | [
"<BEGIN>\n## `multiple_files_count_reads_in_windows`",
"Use count_reads on multiple files and store result in dict.",
" Untested since does the same thing as count reads.\n<END>",
"<BEGIN>\n## `_merge_files`",
"Merge lists of chromosome bin df chromosome-wise.",
" windows is an OrderedDict where the... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_matrixes API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The e... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_matrixes API.
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... | Creates matrixes which can be written to file as is (matrix) or as bedGraph. | "Creates matrixes which can be written to file as is (matrix) or as bedGraph." | 36 | false | biocore-ntnu/epic | create_matrixes | 28,869 | |
LDU_FT/manns/pyspread/_add_submenu | 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 _add_submenu API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extr... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _add_submenu API.
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... | Adds items in data as a submenu to parent | "Adds items in data as a submenu to parent" | 1,275 | true | manns/pyspread | _add_submenu | 28,870 | |
LDU_FT/zeroSteiner/smoke-zephyr/get_if_exists | LDU_FT | [
"<BEGIN>\n## `normalize_job_id`",
"Convert a value to a job id.",
"\t:param job_id: Value to convert.\n\t:type job_id: int, str\n\t:return: The job id.\n\t:rtype: :py:class:`uuid.UUID`\n<END>",
"<BEGIN>\n## `now`",
"Return a :py:class:`datetime.datetime` instance representing the current time.",
"\t\t:rty... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_if_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 ext... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_if_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 ext... | Retrieve the value of an option if it exists, otherwise
return *default_value* instead of raising an error:
:param str item_name: The name of the option to retrieve.
:param default_value: The value to return if *item_name* does not exist.
:return: The value of *item_name* in the configuration. | "Retrieve the value of an option if it exists, otherwise\n\t\treturn *default_value* instead of raising an error:\n\n\t\t:param str item_name: The name of the option to retrieve.\n\t\t:param default_value: The value to return if *item_name* does not exist.\n\t\t:return: The value of *item_name* in the configuration." | 116 | false | zeroSteiner/smoke-zephyr | get_if_exists | 28,871 | |
LDU_FT/FreshXOpenSource/wallaby-frontend-qt/install | LDU_FT | [
"<BEGIN>\n## `_add`",
"Private method for adding a descriptor from the event loop.",
" It takes care of adding it if new or modifying it if already added\n for another state (read -> read/write for example).\n<END>",
"<BEGIN>\n## `addReader`",
"Add a FileDescriptor for notification of data av... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the install API.
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 install API.
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... | Configure the twisted mainloop to be run using the select() reactor. | "Configure the twisted mainloop to be run using the select() reactor." | 34 | false | FreshXOpenSource/wallaby-frontend-qt | install | 28,872 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.