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/tomplus/kubernetes_asyncio/replace_initializer_configuration | LDU_FT | [
"<BEGIN>\n## `raw`",
"Sets the raw of this RuntimeRawExtension.",
" Raw is the underlying serialization of this object. # noqa: E501",
" :param raw: The raw of this RuntimeRawExtension. # noqa: E501\n :type: str\n<END>",
"<BEGIN>\n## `delete_namespaced_cron_job`",
"delete_namespaced... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the replace_initializer_configuration API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the replace_initializer_configuration API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its ... | replace_initializer_configuration # noqa: E501
replace the specified InitializerConfiguration # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.replace_initializer_configuration(name,... | "replace_initializer_configuration # noqa: E501\n\n replace the specified InitializerConfiguration # noqa: E501\n This method makes a synchronous HTTP request by default. To make an\n asynchronous HTTP request, please pass async_req=True\n >>> thread = api.replace_initializer_configuration... | 1,540 | true | tomplus/kubernetes_asyncio | replace_initializer_configuration | 36,273 | |
LDU_FT/faide/py3o.template/handle_link | LDU_FT | [
"<BEGIN>\n## `detect_keep_boundary`",
"a helper to inspect a link and see if we should keep the link boundary\n<END>",
"<BEGIN>\n## `move_siblings`",
"a helper function that will replace a start/end node pair\n by a new containing element, effectively moving all in-between siblings\n This is particularl... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the handle_link API.
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 handle_link API.
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... | transform a py3o link into a proper Genshi statement
rebase a py3o link at a proper place in the tree
to be ready for Genshi replacement | "transform a py3o link into a proper Genshi statement\n rebase a py3o link at a proper place in the tree\n to be ready for Genshi replacement" | 46 | false | faide/py3o.template | handle_link | 36,274 | |
LDU_FT/CLARIAH/grlc/get_yaml_decorators | LDU_FT | [
"<BEGIN>\n## `project`",
"Programs may make use of data in the `dataIn` variable and should\n produce data on the `dataOut` variable.\n<END>",
"<BEGIN>\n## `init_prov_graph`",
"Initialize PROV graph with all we know at the start of the recording\n<END>",
"<BEGIN>\n## `add_used_entity`",
"Add the provid... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_yaml_decorators API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
T... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_yaml_decorators 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... | Returns the yaml decorator metadata only (this is needed by triple pattern fragments) | "Returns the yaml decorator metadata only (this is needed by triple pattern fragments)" | 37 | false | CLARIAH/grlc | get_yaml_decorators | 36,275 | |
LDU_FT/nanoporetech/ont_fast5_api/get_event_data | LDU_FT | [
"<BEGIN>\n## `_clean`",
"Convert numpy numeric types to their python equivalents.\n<END>",
"<BEGIN>\n## `get_prior_alignment`",
"Return the prior alignment that was used for 2D basecalling.",
" :return: Alignment data table.\n<END>",
"<BEGIN>\n## `get_2d_call_alignment`",
"Return the alignment an... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_event_data API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ex... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_event_data API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ex... | Get the template or complement event data.
:param section: Either template, complement, or both.
:param time_in_seconds: Return the start and length fields
in seconds, rather than samples.
:return: The event dataset for the section. If section=both
then it return... | "Get the template or complement event data.\n \n :param section: Either template, complement, or both.\n :param time_in_seconds: Return the start and length fields\n in seconds, rather than samples.\n :return: The event dataset for the section. If section=both\n then it... | 159 | false | nanoporetech/ont_fast5_api | get_event_data | 36,276 | |
LDU_FT/geertj/gruvi/get_unique_name | LDU_FT | [
"<BEGIN>\n## `from_errno`",
"Create a new instance from a :mod:`pyuv.errno` error code.\n<END>",
"<BEGIN>\n## `start`",
"Bind to *protocol* and start calling callbacks on it.\n<END>",
"<BEGIN>\n## `set_write_buffer_limits`",
"Set the low and high watermark for the write buffer.\n<END>",
"<BEGIN>\n## `cl... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_unique_name API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The e... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_unique_name API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The e... | Return the unique name of the D-BUS connection. | "Return the unique name of the D-BUS connection." | 402 | false | geertj/gruvi | get_unique_name | 36,277 | |
LDU_FT/jsvine/spectra/RybToRgb | LDU_FT | [
"<BEGIN>\n## `cmyk`",
"Create a spectra.Color object in the CMYK color space.",
" :param float c: c coordinate.\n :param float m: m coordinate.\n :param float y: y coordinate.\n :param float k: k coordinate.",
" :rtype: Color\n :returns: A spectra.Color object in the CMYK color space.\n<END>... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the RybToRgb API.
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 RybToRgb API.
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... | Maps a hue on Itten's RYB color wheel to the standard RGB wheel.
Parameters:
:hue:
The hue on Itten's RYB color wheel [0...360]
Returns:
An approximation of the corresponding hue on the standard RGB wheel.
>>> Color.RybToRgb(15)
8.0 | "Maps a hue on Itten's RYB color wheel to the standard RGB wheel.\n\n Parameters:\n :hue:\n The hue on Itten's RYB color wheel [0...360]\n\n Returns:\n An approximation of the corresponding hue on the standard RGB wheel.\n\n >>> Color.RybToRgb(15)\n 8.0" | 265 | false | jsvine/spectra | RybToRgb | 36,278 | |
LDU_FT/mnooner256/pyqrcode/terminal | LDU_FT | [
"<BEGIN>\n## `create`",
"When creating a QR code only the content to be encoded is required,\n all the other properties of the code will be guessed based on the\n contents given. This function will return a :class:`QRCode` object.",
" Unless you are familiar with QR code's inner workings\n it is rec... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the terminal API.
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 terminal API.
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... | This method returns a string containing ASCII escape codes,
such that if printed to a compatible terminal, it will display
a vaild QR code. The code is printed using ASCII escape
codes that alter the coloring of the background.
The *module_color* parameter sets what color to
use... | "This method returns a string containing ASCII escape codes,\n such that if printed to a compatible terminal, it will display\n a vaild QR code. The code is printed using ASCII escape\n codes that alter the coloring of the background.\n\n The *module_color* parameter sets what color to\n ... | 143 | false | mnooner256/pyqrcode | terminal | 36,279 | |
LDU_FT/numan/py-analytics/_get_weekly_date_range | LDU_FT | [
"<BEGIN>\n## `_get_closest_week`",
"Gets the closest monday to the date provided.\n<END>",
"<BEGIN>\n## `_get_daily_date_range`",
"Get the range of months that we need to use as keys to scan redis.\n<END>",
"<BEGIN>\n## `_get_weekly_date_range`",
"Gets the range of years that we need to use as keys to get... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_weekly_date_range 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_weekly_date_range API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.... | Gets the range of years that we need to use as keys to get metrics from redis. | "Gets the range of years that we need to use as keys to get metrics from redis." | 54 | false | numan/py-analytics | _get_weekly_date_range | 36,280 | |
LDU_FT/lucasmaystre/choix/objective | LDU_FT | [
"<BEGIN>\n## `_init_lsr`",
"Initialize the LSR Markov chain and the weights.\n<END>",
"<BEGIN>\n## `_ilsr`",
"Iteratively refine LSR estimates until convergence.",
" Raises\n ------\n RuntimeError\n If the algorithm does not converge after ``max_iter`` iterations.\n<END>",
"<BEGIN>\n## `ls... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the objective API.
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 objective API.
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... | Compute the negative penalized log-likelihood. | "Compute the negative penalized log-likelihood." | 211 | false | lucasmaystre/choix | objective | 36,281 | |
LDU_FT/kxgames/glooey/__yield_handlers | LDU_FT | [
"<BEGIN>\n## `make_grid`",
"Return rectangles for each cell in the specified grid. The rectangles are \n returned in a dictionary where the keys are (row, col) tuples.\n<END>",
"<BEGIN>\n## `lorem_ipsum`",
"Return the given amount of \"Lorem ipsum...\" text.\n<END>",
"<BEGIN>\n## `relay_events_from`",
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the __yield_handlers API.
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 __yield_handlers API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | Yield all the handlers registered for the given event type. | "Yield all the handlers registered for the given event type." | 21 | false | kxgames/glooey | __yield_handlers | 36,282 | |
LDU_FT/fabiocaccamo/django-maintenance-mode/set_maintenance_mode | LDU_FT | [
"<BEGIN>\n## `read_file`",
"Read file at the specified path.\n If file doesn't exist, it will be created with default-content.\n Returns the file content.\n<END>",
"<BEGIN>\n## `write_file`",
"Write file at the specified path with content.\n If file exists, it will be overwritten.\n<END>",
"<BEGIN>... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_maintenance_mode API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_maintenance_mode API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | Set maintenance_mode state to state file. | "Set maintenance_mode state to state file." | 10 | false | fabiocaccamo/django-maintenance-mode | set_maintenance_mode | 36,283 | |
LDU_FT/Lagg/steamodd/full_name | LDU_FT | [
"<BEGIN>\n## `get`",
"Returns context data for a given app, can be an ID or a case insensitive name\n<END>",
"<BEGIN>\n## `hash_name`",
"The URL-friendly identifier for the item. Generates its own approximation if one isn't available\n<END>",
"<BEGIN>\n## `quality`",
"Can't really trust presence of a sche... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the full_name API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extract... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the full_name API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extract... | The full name of the item, generated depending
on things such as its quality, rank, the schema language,
and so on. | "The full name of the item, generated depending\n on things such as its quality, rank, the schema language,\n and so on." | 49 | false | Lagg/steamodd | full_name | 36,284 | |
LDU_FT/bitshares/python-bitshares/adjust_collateral_ratio | LDU_FT | [
"<BEGIN>\n## `decodeRPCErrorMsg`",
"Helper function to decode the raised Exception and give it a\n python Exception class\n<END>",
"<BEGIN>\n## `transfer`",
"Transfer an asset to another account.",
" :param str to: Recipient\n :param float amount: Amount to transfer\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the adjust_collateral_ratio 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 adjust_collateral_ratio API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion... | Adjust the collataral ratio of a debt position
:param Asset amount: Amount to borrow (denoted in 'asset')
:param float new_collateral_ratio: desired collateral ratio
:param float target_collateral_ratio: Tag the call order so that in
case of margin call, only enough ... | "Adjust the collataral ratio of a debt position\n\n :param Asset amount: Amount to borrow (denoted in 'asset')\n :param float new_collateral_ratio: desired collateral ratio\n :param float target_collateral_ratio: Tag the call order so that in\n case of margin call, only e... | 116 | false | bitshares/python-bitshares | adjust_collateral_ratio | 36,285 | |
LDU_FT/JoseAntFer/pyny3d/move | LDU_FT | [
"<BEGIN>\n## `run`",
"Run the shadowing computation with the values stored in \r\n ``self.arg_``. Precomputed information is stored in:\r",
" * **.diff_t** (*ndarray*): ``np.diff(t)``\r\n * **.integral** (*ndarray*): Trapezoidal data integration \r\n over time.\r",
" ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the move API.
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 move API.
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... | Translate the Surface in x, y and z coordinates.
:param d_xyz: displacement in x, y(, and z).
:type d_xyz: tuple (len=2 or 3)
:returns: ``pyny.Surface`` | "Translate the Surface in x, y and z coordinates.\r\n \r\n :param d_xyz: displacement in x, y(, and z).\r\n :type d_xyz: tuple (len=2 or 3)\r\n :returns: ``pyny.Surface``" | 298 | false | JoseAntFer/pyny3d | move | 36,286 | |
LDU_FT/jwhitlock/drf-cached-instances/field_to_json | LDU_FT | [
"<BEGIN>\n## `user_default_serializer`",
"Convert a User to a cached instance representation.\n<END>",
"<BEGIN>\n## `user_default_add_related_pks`",
"Add related primary keys to a User instance.\n<END>",
"<BEGIN>\n## `group_default_invalidator`",
"Invalidated cached items when the Group changes.\n<END>",
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the field_to_json API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the field_to_json API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | Convert a field to a JSON-serializable representation. | "Convert a field to a JSON-serializable representation." | 75 | false | jwhitlock/drf-cached-instances | field_to_json | 36,287 | |
LDU_FT/django-fluent/fluentcms-emailtemplates/_get_dummy_request | LDU_FT | [
"<BEGIN>\n## `replace_fields`",
"Allow simple field replacements, using the python str.format() syntax.",
" When a string is passed that is tagged with :func:`~django.utils.safestring.mark_safe`,\n the context variables will be escaped before replacement.",
" This function is used instead of lazily u... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_dummy_request API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
Th... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_dummy_request API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
Th... | Create a dummy request.
Use the ``base_url``, so code can use ``request.build_absolute_uri()`` to create absolute URLs. | "Create a dummy request.\n Use the ``base_url``, so code can use ``request.build_absolute_uri()`` to create absolute URLs." | 21 | false | django-fluent/fluentcms-emailtemplates | _get_dummy_request | 36,288 | |
LDU_FT/GearPlug/payu-python/create_customer | LDU_FT | [
"<BEGIN>\n## `create_single_token`",
"Using this feature you can register a customer’s credit card data and get a token sequential number.",
" Args:\n payer_id:\n name:\n identification_number:\n payment_method:\n number:\n expiration_date... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_customer API.
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_customer API.
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... | Creation of a customer in the system.
Args:
full_name: Customer's complete name.
Alphanumeric. Max: 255.
email: Customer's email address.
Alphanumeric. Max: 255.
Returns: | "Creation of a customer in the system.\n\n Args:\n full_name: Customer's complete name.\n Alphanumeric. Max: 255.\n\n email: Customer's email address.\n Alphanumeric. Max: 255.\n\n Returns:" | 153 | false | GearPlug/payu-python | create_customer | 36,289 | |
LDU_FT/siemens/django-dingos/set_dict | LDU_FT | [
"<BEGIN>\n## `set_dict`",
"set_dict takes a dictionary, the value to\n enter into the dictionary, a command of what\n to do with the value, and a sequence of keys.",
" d = {}",
" set_dict(d,1,'append','level 1','level 2')",
" -> d['level 1']['level 2'] = [1]",
" set_dict(d,2,'append','le... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_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 extracte... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_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 extracte... | set_dict takes a dictionary, the value to
enter into the dictionary, a command of what
to do with the value, and a sequence of keys.
d = {}
set_dict(d,1,'append','level 1','level 2')
-> d['level 1']['level 2'] = [1]
set_dict(d,2,'append','level 1','level 2')
-> d['level 1']['level 2'] =... | "set_dict takes a dictionary, the value to\n enter into the dictionary, a command of what\n to do with the value, and a sequence of keys.\n\n d = {}\n\n set_dict(d,1,'append','level 1','level 2')\n\n -> d['level 1']['level 2'] = [1]\n\n set_dict(d,2,'append','level 1','level 2')\n\n -> d['level 1']... | 139 | false | siemens/django-dingos | set_dict | 36,290 | |
LDU_FT/xapple/plumbing/logs | LDU_FT | [
"<BEGIN>\n## `plot_and_save`",
"Used when the plot method defined does not create a figure nor calls save_plot\n Then the plot method has to use self.fig\n<END>",
"<BEGIN>\n## `plot`",
"An example plot function. You have to subclass this method.\n<END>",
"<BEGIN>\n## `count_processors`",
"How many ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the logs API.
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 logs API.
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... | Find the log directory and return all the logs sorted. | "Find the log directory and return all the logs sorted." | 150 | false | xapple/plumbing | logs | 36,291 | |
LDU_FT/ooici/elasticpy/list_types | LDU_FT | [
"<BEGIN>\n## `ids`",
"http://www.elasticsearch.org/guide/reference/query-dsl/ids-filter.html\nFilters documents that only have the provided ids. Note, this filter does not require the _id field to be indexed since it works using the _uid field.\n<END>",
"<BEGIN>\n## `geo_bounding_box`",
"http://www.elasticsea... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the list_types API.
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 list_types API.
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... | Lists the context types available in an index | "Lists the context types available in an index" | 89 | false | ooici/elasticpy | list_types | 36,292 | |
LDU_FT/mugurbil/gnm/sample | LDU_FT | [
"<BEGIN>\n## `update_params`",
"Update parameters\n updates mean and precision to the step size\n Inputs:\n state :\n mu :\n mean\n L :\n cholesky factor of the precision matrix\n t : \n step size\n Outputs:\n mu :\n... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the sample API.
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 sample API.
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 ... | Sample
Sampling
Inputs :
n_samples :
number of samples to generate
Optional Inputs :
divs : (1)
number of divisions
visual :
show progress
safe :
save the chain at every division | "Sample\n Sampling \n Inputs : \n n_samples :\n number of samples to generate\n Optional Inputs : \n divs : (1)\n number of divisions\n visual : \n show progress \n safe : \n save the chain at every division" | 42 | false | mugurbil/gnm | sample | 36,293 | |
LDU_FT/jazzband/inflect/_string_to_substitute | LDU_FT | [
"<BEGIN>\n## `bysize`",
"take a list of words and return a dict of sets sorted by word length\n e.g.\n ret[3]=set(['ant', 'cat', 'dog', 'pig'])\n ret[4]=set(['frog', 'goat'])\n ret[5]=set(['horse'])\n ret[8]=set(['elephant'])\n<END>",
"<BEGIN>\n## `make_pl_si_lists`",
"given a list of singular ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _string_to_substitute 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 _string_to_substitute 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 string to be substituted for the match. | "Return the string to be substituted for the match." | 90 | false | jazzband/inflect | _string_to_substitute | 36,294 | |
LDU_FT/mugurbil/gnm/_proposal_params | LDU_FT | [
"<BEGIN>\n## `update_params`",
"Update parameters\n updates mean and precision to the step size\n Inputs:\n state :\n mu :\n mean\n L :\n cholesky factor of the precision matrix\n t : \n step size\n Outputs:\n mu :\n... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _proposal_params API.
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 _proposal_params API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | Proposal parameters
Calculate parameters needed for the proposal.
Inputs :
state :
x :
the present sample, the place to linearize around
f : f(x),
function value at x
J : f'(x),
the jacobian of the functio... | "Proposal parameters\n Calculate parameters needed for the proposal. \n Inputs :\n state : \n x : \n the present sample, the place to linearize around\n f : f(x), \n function value at x\n J : f'(x), \n the jacobian of t... | 42 | false | mugurbil/gnm | _proposal_params | 36,295 | |
LDU_FT/frasertweedale/ledgertools/scores | LDU_FT | [
"<BEGIN>\n## `apply`",
"Manufacture decorator that filters return value with given function.",
" ``filter``:\n Callable that takes a single parameter.\n<END>",
"<BEGIN>\n## `format_outpat`",
"Format an outpat for the given transaction.",
" Format the given output filename pattern. The pattern ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the scores API.
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 scores API.
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 list of the items with their final scores.
The final score of each item is its average score multiplied by the
square root of its length. This reduces to sum * len^(-1/2). | "Return a list of the items with their final scores.\n\n The final score of each item is its average score multiplied by the\n square root of its length. This reduces to sum * len^(-1/2)." | 82 | false | frasertweedale/ledgertools | scores | 36,296 | |
LDU_FT/hannes-brt/hebel/cublasZtrmm | LDU_FT | [
"<BEGIN>\n## `parameters`",
"A property that returns all of the model's parameters.\n<END>",
"<BEGIN>\n## `parameters`",
"Used to set all of the model's parameters to new values.",
" **Parameters:**",
" value : array_like\n New values for the model parameters. Must be of length\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the cublasZtrmm API.
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 cublasZtrmm API.
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... | Matrix-matrix product for complex triangular matrix. | "Matrix-matrix product for complex triangular matrix." | 372 | false | hannes-brt/hebel | cublasZtrmm | 36,297 | |
LDU_FT/rochacbruno/flasgger/get | LDU_FT | [
"<BEGIN>\n## `get`",
"Colors API using schema\n This example is using marshmallow schemas\n<END>",
"<BEGIN>\n## `drop_id_validate`",
"Custom validation function which drops parameter '_id' if present\n in data\n<END>",
"<BEGIN>\n## `timestamping_validate`",
"Custom validation function which inse... | 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... | Colors API using schema
This example is using marshmallow schemas | "Colors API using schema\n This example is using marshmallow schemas" | 71 | false | rochacbruno/flasgger | get | 36,298 | |
LDU_FT/ramses-tech/nefertari/_get_least_permissions_aces | LDU_FT | [
"<BEGIN>\n## `_import_public_names`",
"Import public names from module into this module, like import *\n<END>",
"<BEGIN>\n## `encrypt_password`",
"Crypt :new_value: if it's not crypted yet.\n<END>",
"<BEGIN>\n## `create_apikey_model`",
"Generate ApiKey model class and connect it with :user_model:.",
" ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_least_permissions_aces 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_least_permissions_aces API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclu... | Get ACEs with the least permissions that fit all resources.
To have access to polymorph on N collections, user MUST have
access to all of them. If this is true, ACEs are returned, that
allows 'view' permissions to current request principals.
Otherwise None is returned thus blocking all... | "Get ACEs with the least permissions that fit all resources.\n\n To have access to polymorph on N collections, user MUST have\n access to all of them. If this is true, ACEs are returned, that\n allows 'view' permissions to current request principals.\n\n Otherwise None is returned thus block... | 226 | false | ramses-tech/nefertari | _get_least_permissions_aces | 36,299 | |
LDU_FT/census-instrumentation/opencensus-python/check_ascii_256 | LDU_FT | [
"<BEGIN>\n## `get_node`",
"Generates Node message from params and system information.\n<END>",
"<BEGIN>\n## `proto_ts_from_datetime_str`",
"Converts string datetime in ISO format to protobuf timestamp.\n :type dt: str\n :param dt: string with datetime in ISO format\n :rtype: :class:`~google.protobuf.... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the check_ascii_256 API.
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 check_ascii_256 API.
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... | Check that `string` is printable ASCII and at most 256 chars.
Raise a `ValueError` if this check fails. Note that `string` itself doesn't
have to be ASCII-encoded.
:type string: str
:param string: The string to check. | "Check that `string` is printable ASCII and at most 256 chars.\n\n Raise a `ValueError` if this check fails. Note that `string` itself doesn't\n have to be ASCII-encoded.\n\n :type string: str\n :param string: The string to check." | 528 | false | census-instrumentation/opencensus-python | check_ascii_256 | 36,300 | |
LDU_FT/Azure/msrestazure-for-python/_convert_token | LDU_FT | [
"<BEGIN>\n## `get_msi_token`",
"Get MSI token if MSI_ENDPOINT is set.",
" IF MSI_ENDPOINT is not set, will try legacy access through 'http://localhost:{}/oauth2/token'.format(port).",
" If msi_conf is used, must be a dict of one key in [\"client_id\", \"object_id\", \"msi_res_id\"]",
" :param str r... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _convert_token API.
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 _convert_token API.
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... | Convert token fields from camel case.
:param dict token: An authentication token.
:rtype: dict | "Convert token fields from camel case.\n\n :param dict token: An authentication token.\n :rtype: dict" | 167 | false | Azure/msrestazure-for-python | _convert_token | 36,301 | |
LDU_FT/jmoiron/humanize/fractional | LDU_FT | [
"<BEGIN>\n## `abs_timedelta`",
"Returns an \"absolute\" value for a timedelta, always representing a\n time distance.\n<END>",
"<BEGIN>\n## `date_and_delta`",
"Turn a value into a date and a timedelta which represents how long ago\n it was. If that's not possible, return (None, value).\n<END>",
"<BEG... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the fractional API.
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 fractional API.
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... | There will be some cases where one might not want to show
ugly decimal places for floats and decimals.
This function returns a human readable fractional number
in form of fractions and mixed fractions.
Pass in a string, or a number or a float, and this function returns
a string represent... | "There will be some cases where one might not want to show\n ugly decimal places for floats and decimals.\n This function returns a human readable fractional number\n in form of fractions and mixed fractions.\n Pass in a string, or a number or a float, and this function returns\n a string rep... | 28 | false | jmoiron/humanize | fractional | 36,302 | |
LDU_FT/ska-sa/purr/zap_horizontally | LDU_FT | [
"<BEGIN>\n## `rotate`",
"Rotate a coordinate around point (0,0).\n - x and y specify the coordinate.\n - degree is a number from 0 to 360.\n Returns a new coordinate.\n<END>",
"<BEGIN>\n## `_compute_bounding_box`",
"Given the list of coordinates (x,y), this procedure computes\n the smallest rectan... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the zap_horizontally API.
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 zap_horizontally API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | Draw a horizontal "zapping" symbol on the canvas that shows
that a graph is ripped in the middle.
Parameter <fill_style> specifies the style for the zig-zag lines.
PAT specifies the pattern with which the area is filled.
The symbol is drawn in the rectangle (<x1>, <y1>) - (<x2>, <y2>).
Each "zigzag... | "Draw a horizontal \"zapping\" symbol on the canvas that shows\n that a graph is ripped in the middle.\n\n Parameter <fill_style> specifies the style for the zig-zag lines.\n PAT specifies the pattern with which the area is filled.\n The symbol is drawn in the rectangle (<x1>, <y1>) - (<x2>, <y2>).\n Eac... | 265 | false | ska-sa/purr | zap_horizontally | 36,303 | |
LDU_FT/UDST/orca/merge_tables | LDU_FT | [
"<BEGIN>\n## `import_file`",
"Import a file that will trigger the population of Orca.",
" Parameters\n ----------\n filename : str\n<END>",
"<BEGIN>\n## `check_is_table`",
"Decorator that will check whether the \"table_name\" keyword argument\n to the wrapped function matches a registered Orca t... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the merge_tables API.
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 merge_tables API.
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... | Merge a number of tables onto a target table. Tables must have
registered merge rules via the `broadcast` function.
Parameters
----------
target : str, DataFrameWrapper, or TableFuncWrapper
Name of the table (or wrapped table) onto which tables will be merged.
tables : list of `DataFrameWra... | "Merge a number of tables onto a target table. Tables must have\n registered merge rules via the `broadcast` function.\n\n Parameters\n ----------\n target : str, DataFrameWrapper, or TableFuncWrapper\n Name of the table (or wrapped table) onto which tables will be merged.\n tables : list of `Data... | 223 | false | UDST/orca | merge_tables | 36,304 | |
LDU_FT/DLR-RM/RAFCON/value_edited | LDU_FT | [
"<BEGIN>\n## `modify_origin`",
"Set both from_state and from_key at the same time to modify data flow origin",
" :param str from_state: State id of the origin state\n :param int from_key: Data port id of the origin port\n :raises exceptions.ValueError: If parameters have wrong types or the ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the value_edited API.
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 value_edited API.
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 the value of the semantic data entry
:param path: The path inside the tree store to the target entry
:param str new_value_str: The new value of the target cell
:return: | "Adds the value of the semantic data entry\n\n :param path: The path inside the tree store to the target entry\n :param str new_value_str: The new value of the target cell\n :return:" | 2,325 | true | DLR-RM/RAFCON | value_edited | 36,305 | |
LDU_FT/mjirik/imtools/set_resize_parameters | LDU_FT | [
"<BEGIN>\n## `get_superpxl_intensities`",
"Calculates mean intensities of pixels in superpixels\n inputs:\n im ... grayscale image, ndarray [MxN]\n suppxls ... image with suppxls labels, ndarray -same shape as im\n outputs:\n suppxl_intens ... vector with suppxls mean intensities\n<END>... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_resize_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 set_resize_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.
... | set_input_data() should be called before
:param degrad:
:param labels:
:param resize_mm:
:param resize_voxel_number:
:return: | "set_input_data() should be called before\n :param degrad:\n :param labels:\n :param resize_mm:\n :param resize_voxel_number:\n :return:" | 75 | false | mjirik/imtools | set_resize_parameters | 36,306 | |
LDU_FT/developmentseed/landsat-util/fetch | LDU_FT | [
"<BEGIN>\n## `_read_cmap`",
"reads the colormap from a text file given in settings.py.\n See colormap_cubehelix.txt. File must contain 256 RGB values\n<END>",
"<BEGIN>\n## `data_collector`",
"Buffers n bytes of data.",
" :param iterable:\n Could be a list, generator or string\n :type ite... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the fetch API.
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 fetch API.
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... | Downloads the given url.
:param url:
The url to be downloaded.
:type url:
String
:param path:
The directory path to where the image should be stored
:type path:
String
:param filename:
The filename that has to be downlo... | "Downloads the given url.\n\n :param url:\n The url to be downloaded.\n :type url:\n String\n :param path:\n The directory path to where the image should be stored\n :type path:\n String\n :param filename:\n The filename that has ... | 152 | false | developmentseed/landsat-util | fetch | 36,307 | |
LDU_FT/sprockets/sprockets.mixins.amqp/on_channel_flow | LDU_FT | [
"<BEGIN>\n## `install`",
"Call this to install AMQP for the Tornado application. Additional\n keyword arguments are passed through to the constructor of the AMQP\n object.",
" :param tornado.web.Application application: The tornado application\n :param tornado.ioloop.IOLoop io_loop: The current IOLo... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the on_channel_flow API.
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 on_channel_flow API.
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... | When RabbitMQ indicates the connection is unblocked, set the state
appropriately.
:param pika.spec.Channel.Flow method: The Channel flow frame | "When RabbitMQ indicates the connection is unblocked, set the state\n appropriately.\n\n :param pika.spec.Channel.Flow method: The Channel flow frame" | 50 | false | sprockets/sprockets.mixins.amqp | on_channel_flow | 36,308 | |
LDU_FT/jaraco/irc/clear_mode | LDU_FT | [
"<BEGIN>\n## `handle_nick`",
"Handle the initial setting of the user's nickname and nick changes.\n<END>",
"<BEGIN>\n## `handle_user`",
"Handle the USER command which identifies the user to the server.\n<END>",
"<BEGIN>\n## `handle_join`",
"Handle the JOINing of a user to a channel. Valid channel names st... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the clear_mode API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extrac... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the clear_mode API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extrac... | Clear mode on the channel.
Arguments:
mode -- The mode (a single-character string).
value -- Value | "Clear mode on the channel.\n\n Arguments:\n\n mode -- The mode (a single-character string).\n\n value -- Value" | 193 | false | jaraco/irc | clear_mode | 36,309 | |
LDU_FT/croscon/fleaker/_discover_ideal_backend | LDU_FT | [
"<BEGIN>\n## `install`",
"Install Fleaker.",
" In a function so we can protect this file so it's only run when we\n explicitly invoke it and not, say, when py.test collects all Python\n modules.\n<END>",
"<BEGIN>\n## `python_value`",
"Return the JSON in the database as a ``dict``.",
" Retu... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _discover_ideal_backend 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 _discover_ideal_backend API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion... | Auto-discover the ideal backend based on what is installed.
Right now, handles discovery of:
* PeeWee
* SQLAlchemy
Args:
orm_backend (str): The ``orm_backend`` value that was passed to the
``create_app`` function. That is, the ORM Backend the User
indicated they wan... | "Auto-discover the ideal backend based on what is installed.\n\n Right now, handles discovery of:\n * PeeWee\n * SQLAlchemy\n\n Args:\n orm_backend (str): The ``orm_backend`` value that was passed to the\n ``create_app`` function. That is, the ORM Backend the User\n indicate... | 259 | false | croscon/fleaker | _discover_ideal_backend | 36,310 | |
LDU_FT/sporsh/carnifex/requestEnv | LDU_FT | [
"<BEGIN>\n## `attr_string`",
"Build a string consisting of 'key=value' substrings for each keyword\n argument in :kwargs:",
" @param filterKeys: list of key names to ignore\n @param filterValues: list of values to ignore (e.g. None will ignore all\n key=value pairs that has that... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the requestEnv API.
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 requestEnv API.
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 requests to set the environment variables for the channel | "Send requests to set the environment variables for the channel" | 61 | false | sporsh/carnifex | requestEnv | 36,311 | |
LDU_FT/OnroerendErfgoed/oe_utils/get_file_size | LDU_FT | [
"<BEGIN>\n## `after_commit_listener`",
"Processing the changes.\n All new or changed items are now indexed. All deleted items are now removed from the index.\n<END>",
"<BEGIN>\n## `_queue_job`",
"creates a new job on the queue\n :param redis: redis\n :param delegate: method to be ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_file_size API.
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_size API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | Get the file size of a given file
:param filename: string: pathname of a file
:return: human readable filesize | "Get the file size of a given file\n\n :param filename: string: pathname of a file\n :return: human readable filesize" | 100 | false | OnroerendErfgoed/oe_utils | get_file_size | 36,312 | |
LDU_FT/mickybart/python-atlasapi/fetch | LDU_FT | [
"<BEGIN>\n## `answer`",
"Answer will provide all necessary feedback for the caller",
" Args:\n c (int): HTTP Code\n details (dict): Response payload",
" Returns:\n dict: Response payload",
" Raises:\n ErrAtlasBadRequest\n ErrAtlasUn... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the fetch API.
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 fetch API.
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... | Intermediate fetching
Args:
pageNum (int): Page number
itemsPerPage (int): Number of Users per Page
Returns:
dict: Response payload | "Intermediate fetching\n \n Args:\n pageNum (int): Page number\n itemsPerPage (int): Number of Users per Page\n \n Returns:\n dict: Response payload" | 42 | false | mickybart/python-atlasapi | fetch | 36,313 | |
LDU_FT/LabKey/labkey-api-python/post_message | LDU_FT | [
"<BEGIN>\n## `create`",
"Create a domain\n :param server_context: A LabKey server context. See utils.create_server_context.\n :param domain_definition: A domain definition.\n :param container_path: labkey container path if not already set in context\n :return: Domain\n<END>",
"<BEGIN>\n## `drop`",
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the post_message API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extr... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the post_message API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extr... | Post a message to a message board on a LabKey instance.
:param server_context: A LabKey server context. See utils.create_server_context.
:param message_title: The title of the message.
:param message_body: The content of the message.
:param render_as: The content of the message.
:param container_pat... | "Post a message to a message board on a LabKey instance.\n :param server_context: A LabKey server context. See utils.create_server_context.\n :param message_title: The title of the message.\n :param message_body: The content of the message.\n :param render_as: The content of the message.\n :param contain... | 60 | false | LabKey/labkey-api-python | post_message | 36,314 | |
LDU_FT/Robpol86/sphinxcontrib-versioning/build_all | LDU_FT | [
"<BEGIN>\n## `setup_logging`",
"Configure console logging. Info and below go to stdout, others go to stderr.",
" :param int verbose: Verbosity level. > 0 print debug statements. > 1 passed to sphinx-build.\n :param bool colors: Print color text in non-verbose mode.\n :param str name: Which logger name ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the build_all API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extract... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the build_all API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extract... | Build all versions.
:param str exported_root: Tempdir path with exported commits as subdirectories.
:param str destination: Destination directory to copy/overwrite built docs to. Does not delete old files.
:param sphinxcontrib.versioning.versions.Versions versions: Versions class instance. | "Build all versions.\n\n :param str exported_root: Tempdir path with exported commits as subdirectories.\n :param str destination: Destination directory to copy/overwrite built docs to. Does not delete old files.\n :param sphinxcontrib.versioning.versions.Versions versions: Versions class instance." | 172 | false | Robpol86/sphinxcontrib-versioning | build_all | 36,315 | |
LDU_FT/carpedm20/fbchat/_pullMessage | LDU_FT | [
"<BEGIN>\n## `_generatePayload`",
"Adds the following defaults to the payload:\n __rev, __user, __a, ttstamp, fb_dtsg, __req\n<END>",
"<BEGIN>\n## `_fix_fb_errors`",
"This fixes \"Please try closing and re-opening your browser window\" errors (1357004)\n This error usually happens after 1-2 da... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _pullMessage API.
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 _pullMessage API.
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... | Call pull api with seq value to get message data. | "Call pull api with seq value to get message data." | 337 | false | carpedm20/fbchat | _pullMessage | 36,316 | |
LDU_FT/steffann/pylisp/from_bytes | LDU_FT | [
"<BEGIN>\n## `from_bytes`",
"Look at the type of the message, instantiate the correct class and\n let it parse the message.\n<END>",
"<BEGIN>\n## `sanitize`",
"Check if the current settings conform to the LISP specifications and\n fix them where possible.\n<END>",
"<BEGIN>\n## `calculate_authe... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the from_bytes API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extrac... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the from_bytes API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extrac... | Parse the given packet and update properties accordingly | "Parse the given packet and update properties accordingly" | 85 | false | steffann/pylisp | from_bytes | 36,317 | |
LDU_FT/KarchinLab/probabilistic2020/__set_indel_status | LDU_FT | [
"<BEGIN>\n## `compute_indel_length`",
"Computes the indel length accounting for wether it is an insertion or\n deletion.",
" Parameters\n ----------\n fs_df : pd.DataFrame\n mutation input as dataframe only containing indel mutations",
" Returns\n -------\n indel_len : pd.Series\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the __set_indel_status API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
Th... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the __set_indel_status API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
Th... | Sets flags related to the mutation being an indel. | "Sets flags related to the mutation being an indel." | 281 | false | KarchinLab/probabilistic2020 | __set_indel_status | 36,318 | |
LDU_FT/jmurty/xml4h/document | LDU_FT | [
"<BEGIN>\n## `ignore_whitespace_text_nodes`",
"Find and delete any text nodes containing nothing but whitespace in\n in the given node and its descendents.",
" This is useful for cleaning up excess low-value text nodes in a\n document DOM after parsing a pretty-printed XML document.\n<END>"... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the document API.
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 document API.
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: the :class:`Document` node that contains this node,
or ``self`` if this node is the document. | ":return: the :class:`Document` node that contains this node,\n or ``self`` if this node is the document." | 155 | false | jmurty/xml4h | document | 36,319 | |
LDU_FT/taborlab/FlowCal/add_samples_stats | LDU_FT | [
"<BEGIN>\n## `clustering_gmm`",
"Find clusters in an array using a Gaussian Mixture Model.",
" Before clustering, `data` can be automatically rescaled as specified by\n the `scale` argument.",
" Parameters\n ----------\n data : FCSData or array_like\n Data to cluster.\n n_clusters : i... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_samples_stats API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_samples_stats API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | Add stats fields to samples table.
The following information is added to each row:
- Notes (warnings, errors) resulting from the analysis
- Number of Events
- Acquisition Time (s)
The following information is added for each row, for each channel in
which fluorescence units have be... | "Add stats fields to samples table.\n\n The following information is added to each row:\n\n - Notes (warnings, errors) resulting from the analysis\n - Number of Events\n - Acquisition Time (s)\n\n The following information is added for each row, for each channel in\n which fluorescence uni... | 418 | false | taborlab/FlowCal | add_samples_stats | 36,320 | |
LDU_FT/burnash/gspread/range | LDU_FT | [
"<BEGIN>\n## `authorize`",
"Login to Google API using OAuth2 credentials.\n This is a shortcut function which\n instantiates :class:`gspread.client.Client`\n and performs login right away.",
" :returns: :class:`gspread.Client` instance.\n<END>",
"<BEGIN>\n## `batch_update`",
"Lower-level method ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the range API.
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 range API.
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... | Returns a list of :class:`Cell` objects from a specified range.
:param name: A string with range value in A1 notation, e.g. 'A1:A5'.
:type name: str
Alternatively, you may specify numeric boundaries. All values
index from 1 (one):
:param first_row: Row number
:type fir... | "Returns a list of :class:`Cell` objects from a specified range.\n\n :param name: A string with range value in A1 notation, e.g. 'A1:A5'.\n :type name: str\n\n Alternatively, you may specify numeric boundaries. All values\n index from 1 (one):\n\n :param first_row: Row number\n ... | 226 | false | burnash/gspread | range | 36,321 | |
LDU_FT/deshima-dev/decode/savefits | LDU_FT | [
"<BEGIN>\n## `xarrayfunc`",
"Make a function compatible with xarray.DataArray.",
" This function is intended to be used as a decorator like::",
" >>> @dc.xarrayfunc\n >>> def func(array):\n ... # do something\n ... return newarray\n >>>\n >>> result = func(... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the savefits API.
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 savefits API.
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... | Save a cube to a 3D-cube FITS file.
Args:
cube (xarray.DataArray): Cube to be saved.
fitsname (str): Name of output FITS file.
kwargs (optional): Other arguments common with astropy.io.fits.writeto(). | "Save a cube to a 3D-cube FITS file.\n\n Args:\n cube (xarray.DataArray): Cube to be saved.\n fitsname (str): Name of output FITS file.\n kwargs (optional): Other arguments common with astropy.io.fits.writeto()." | 137 | false | deshima-dev/decode | savefits | 36,322 | |
LDU_FT/Azure/msrestazure-for-python/parse_resource | LDU_FT | [
"<BEGIN>\n## `get_msi_token`",
"Get MSI token if MSI_ENDPOINT is set.",
" IF MSI_ENDPOINT is not set, will try legacy access through 'http://localhost:{}/oauth2/token'.format(port).",
" If msi_conf is used, must be a dict of one key in [\"client_id\", \"object_id\", \"msi_res_id\"]",
" :param str r... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_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 ex... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_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 ex... | Assuming this response is a resource, use the deserialization callback to parse it.
If body is empty, assuming no resource to return. | "Assuming this response is a resource, use the deserialization callback to parse it.\n If body is empty, assuming no resource to return." | 167 | false | Azure/msrestazure-for-python | parse_resource | 36,323 | |
LDU_FT/collectiveacuity/labPack/update_bucket | LDU_FT | [
"<BEGIN>\n## `_delete`",
"a helper method for non-blocking deletion of files\r",
" :param _file_path: string with path to file to remove \r\n :param _method_title: string with name of method calling _delete\r\n :param _record_key: string with name of record key to delete\r\n :return:... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update_bucket API.
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 update_bucket API.
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... | a method for updating the properties of a bucket in S3
:param bucket_name: string with name of bucket
:param access_control: string with type of access control policy
:param version_control: [optional] boolean to enable versioning of records
:param log_destination: [optional] dictionary... | "a method for updating the properties of a bucket in S3\n\n :param bucket_name: string with name of bucket\n :param access_control: string with type of access control policy\n :param version_control: [optional] boolean to enable versioning of records\n :param log_destination: [optional] dict... | 886 | false | collectiveacuity/labPack | update_bucket | 36,324 | |
LDU_FT/NORDUnet/python-norduniclient/create_location_relationship | LDU_FT | [
"<BEGIN>\n## `get_db_driver`",
":param uri: Bolt uri\n :type uri: str\n :param username: Neo4j username\n :type username: str\n :param password: Neo4j password\n :type password: str\n :param encrypted: Use TLS\n :type encrypted: Boolean\n :param max_pool_size: Maximum number of idle sessio... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_location_relationship API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its concl... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_location_relationship API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its concl... | Makes relationship between the two nodes and returns the relationship.
If a relationship is not possible NoRelationshipPossible exception is
raised. | "Makes relationship between the two nodes and returns the relationship.\n If a relationship is not possible NoRelationshipPossible exception is\n raised." | 71 | false | NORDUnet/python-norduniclient | create_location_relationship | 36,325 | |
LDU_FT/guaix-ucm/pyemir/check_photometry_categorize | LDU_FT | [
"<BEGIN>\n## `merge2images`",
"Merge 2 EMIR images, averaging the common region.",
" Parameters\n ----------\n hdu1 : HDUList object\n Input image #1.\n hdu2 : HDUList object\n Input image #2.\n debugplot : int\n Determines whether intermediate computations and/or plots\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the check_photometry_categorize 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 check_photometry_categorize API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclu... | Put every point in its category.
levels must be sorted. | "Put every point in its category.\n\n levels must be sorted." | 282 | false | guaix-ucm/pyemir | check_photometry_categorize | 36,326 | |
LDU_FT/LordDarkula/chess_py/generate_move | LDU_FT | [
"<BEGIN>\n## `_get_piece`",
"Returns Piece subclass given index of piece.",
" :type: index: int\n :type: loc Location",
" :raise: KeyError\n<END>",
"<BEGIN>\n## `incomplete_alg`",
"Converts a string written in short algebraic form into an incomplete move.\n These incomplete moves do not have t... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the generate_move API.
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 generate_move API.
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 valid and legal move given position
:type: position: Board
:rtype: Move | "Returns valid and legal move given position\n\n :type: position: Board\n :rtype: Move" | 173 | false | LordDarkula/chess_py | generate_move | 36,327 | |
LDU_FT/bfrog/whizzer/closed | LDU_FT | [
"<BEGIN>\n## `remote`",
"Decorator that adds a remote attribute to a function.",
" fn -- function being decorated\n name -- aliased name of the function, used for remote proxies\n types -- a argument type specifier, can be used to ensure\n arguments are of the correct type\n<END>",
"<BEGI... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the closed API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the closed API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted ... | Callback performed when the transport is closed. | "Callback performed when the transport is closed." | 107 | false | bfrog/whizzer | closed | 36,328 | |
LDU_FT/mikemaccana/python-docx/AdvSearch | LDU_FT | [
"<BEGIN>\n## `opendocx`",
"Open a docx file, return a document XML tree\n<END>",
"<BEGIN>\n## `pagebreak`",
"Insert a break, default 'page'.\n See http://openxmldeveloper.org/forums/thread/4075.aspx\n Return our page break element.\n<END>",
"<BEGIN>\n## `paragraph`",
"Return a new paragraph element ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the AdvSearch API.
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 AdvSearch API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extract... | Return set of all regex matches
This is an advanced version of python-docx.search() that takes into
account blocks of <bs> elements at a time.
What it does:
It searches the entire document body for text blocks.
Since the text to search could be spawned across multiple text blocks,
we need to a... | "Return set of all regex matches\n\n This is an advanced version of python-docx.search() that takes into\n account blocks of <bs> elements at a time.\n\n What it does:\n It searches the entire document body for text blocks.\n Since the text to search could be spawned across multiple text blocks,\n we ... | 51 | false | mikemaccana/python-docx | AdvSearch | 36,329 | |
LDU_FT/spacetelescope/synphot_refactor/efficiency | LDU_FT | [
"<BEGIN>\n## `overlap_status`",
"Check overlap between two arrays.",
" Parameters\n ----------\n a, b : array-like\n Arrays to check. Assumed to be in the same unit.",
" Returns\n -------\n result : {'full', 'partial', 'none'}\n * 'full' - ``a`` is within or same as ``b``\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the efficiency API.
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 efficiency API.
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... | Calculate :ref:`dimensionless efficiency <synphot-formula-qtlam>`.
Parameters
----------
wavelengths : array-like, `~astropy.units.quantity.Quantity`, or `None`
Wavelength values for sampling.
If not a Quantity, assumed to be in Angstrom.
If `None`, ``self.wa... | "Calculate :ref:`dimensionless efficiency <synphot-formula-qtlam>`.\n\n Parameters\n ----------\n wavelengths : array-like, `~astropy.units.quantity.Quantity`, or `None`\n Wavelength values for sampling.\n If not a Quantity, assumed to be in Angstrom.\n If `None`, `... | 519 | false | spacetelescope/synphot_refactor | efficiency | 36,330 | |
LDU_FT/PGower/PyCanvas/get_single_group_membership_users | LDU_FT | [
"<BEGIN>\n## `get_all_quiz_submissions`",
"Get all quiz submissions.\r",
" Get a list of all submissions for this quiz. Users who can view or manage\r\n grades for a course will have submissions from multiple users returned. A\r\n user who can only submit will have only their own submission... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_single_group_membership_users API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_single_group_membership_users API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its ... | Get a single group membership.
Returns the group membership with the given membership id or user id. | "Get a single group membership.\r\n\r\n Returns the group membership with the given membership id or user id." | 833 | false | PGower/PyCanvas | get_single_group_membership_users | 36,331 | |
LDU_FT/Esri/ArcREST/editLogSettings | LDU_FT | [
"<BEGIN>\n## `trace`",
"trace finds the line, the filename\n and error message and returns it\n to the user\n<END>",
"<BEGIN>\n## `merge_dicts`",
"Merge a list of dictionaries.",
" Args:\n dicts (list): a list of dictionary objects\n op (operator): an operator item used to mer... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the editLogSettings API.
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 editLogSettings API.
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... | edits the log settings for the portal site
Inputs:
logLocation - file path to where you want the log files saved
on disk
logLevel - this is the level of detail saved in the log files
Levels are: OFF, SEVERE, WARNING, INFO, FINE, VERBOSE, and
... | "edits the log settings for the portal site\n\n Inputs:\n logLocation - file path to where you want the log files saved\n on disk\n logLevel - this is the level of detail saved in the log files\n Levels are: OFF, SEVERE, WARNING, INFO, FINE, VERBOSE, and\... | 1,240 | true | Esri/ArcREST | editLogSettings | 36,332 | |
LDU_FT/ghukill/pyfc4/siblings | LDU_FT | [
"<BEGIN>\n## `_post_create`",
"resource.create() hook",
"\t\tFor PCDM Collections, post creation, also create\n<END>",
"<BEGIN>\n## `get_related`",
"get ore:aggregates for this resource, optionally retrieving resource payload",
"\t\tArgs:\n\t\t\tretrieve (bool): if True, issue .refresh() on resource there... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the siblings API.
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 siblings API.
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... | method to return hierarchical siblings of this resource.
Args:
as_resources (bool): if True, opens each as appropriate resource type instead of return URI only
Returns:
(list): list of resources | "method to return hierarchical siblings of this resource.\n\n\t\tArgs:\n\t\t\tas_resources (bool): if True, opens each as appropriate resource type instead of return URI only\n\n\t\tReturns:\n\t\t\t(list): list of resources" | 203 | false | ghukill/pyfc4 | siblings | 36,333 | |
LDU_FT/liip/taxi/get_timesheet_collection_for_context | LDU_FT | [
"<BEGIN>\n## `round_to_quarter`",
"Return the duration between `start_time` and `end_time` :class:`datetime.time` objects, rounded to 15 minutes.\n<END>",
"<BEGIN>\n## `_timesheets_callback`",
"Call a method on all the timesheets, aggregate the return values in a\n list and return it.\n<END>",
"<BEGI... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_timesheet_collection_for_context API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates i... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_timesheet_collection_for_context API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates i... | Return a :class:`~taxi.timesheet.TimesheetCollection` object with the current timesheet(s). Since this depends on
the settings (to get the entries files path, the number of previous files, etc) this uses the settings object from
the current command context. If `entries_file` is set, this forces the path of the ... | "Return a :class:`~taxi.timesheet.TimesheetCollection` object with the current timesheet(s). Since this depends on\n the settings (to get the entries files path, the number of previous files, etc) this uses the settings object from\n the current command context. If `entries_file` is set, this forces the path of t... | 131 | false | liip/taxi | get_timesheet_collection_for_context | 36,334 | |
LDU_FT/openstates/billy/context_role | LDU_FT | [
"<BEGIN>\n## `decimal_format`",
"Format a decimal.Decimal like to 2 decimal places.\n<END>",
"<BEGIN>\n## `notification_preference`",
"Display two radio buttons for turning notifications on or off.\n The default value is is have alerts_on = True.\n<END>",
"<BEGIN>\n## `committee_object`",
"If the commi... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the context_role API.
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 context_role API.
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... | Tell this legislator object which session to use when calculating
the legisator's context_role for a given bill or vote. | "Tell this legislator object which session to use when calculating\n the legisator's context_role for a given bill or vote." | 168 | false | openstates/billy | context_role | 36,335 | |
LDU_FT/ARMmbed/mbed-connector-api-python/getPreSubscription | LDU_FT | [
"<BEGIN>\n## `getConnectorVersion`",
"GET the current Connector version.",
"\t\t:returns: asyncResult object, populates error and result fields\n\t\t:rtype: asyncResult\n<END>",
"<BEGIN>\n## `getEndpoints`",
"Get list of all endpoints on the domain.",
"\t\t:param str typeOfEndpoint: Optional filter endpo... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the getPreSubscription 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 getPreSubscription 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... | Get the current pre-subscription data from connector
:return: JSON that represents the pre-subscription data in the ``.result`` field
:rtype: asyncResult | "Get the current pre-subscription data from connector\n\t\t\n\t\t:return: JSON that represents the pre-subscription data in the ``.result`` field\n\t\t:rtype: asyncResult" | 56 | false | ARMmbed/mbed-connector-api-python | getPreSubscription | 36,336 | |
LDU_FT/linkhub-sdk/popbill.py/getURL | LDU_FT | [
"<BEGIN>\n## `getSenderNumberMgtURL`",
"팩스 전송내역 팝업 URL\n args\n CorpNum : 회원 사업자번호\n UserID : 회원 팝빌아이디\n return\n 30초 보안 토큰을 포함한 url\n raise\n PopbillException\n<END>",
"<BEGIN>\n## `getUnitCost`",
"팩스 전송 단가 확인\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the getURL API.
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 getURL API.
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 ... | :param CorpNum: 팝빌회원 사업자번호
:param UserID: 팝빌회원 아이디
:param ToGo: [PLUSFRIEND-플러스친구계정관리, SENDER-발신번호관리, TEMPLATE-알림톡템플릿관리, BOX-카카오톡전송내용]
:return: 팝빌 URL | ":param CorpNum: 팝빌회원 사업자번호\n :param UserID: 팝빌회원 아이디\n :param ToGo: [PLUSFRIEND-플러스친구계정관리, SENDER-발신번호관리, TEMPLATE-알림톡템플릿관리, BOX-카카오톡전송내용]\n :return: 팝빌 URL" | 216 | false | linkhub-sdk/popbill.py | getURL | 36,337 | |
LDU_FT/hotdoc/hotdoc/symlink | LDU_FT | [
"<BEGIN>\n## `connect`",
"@slot: The method to be called on signal emission",
" Connects to @slot\n<END>",
"<BEGIN>\n## `connect_after`",
"@slot: The method to be called at last stage of signal emission",
" Connects to the signal after the signals has been handled by other\n connect c... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the symlink API.
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 symlink API.
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... | Method to allow creating symlinks on Windows | "Method to allow creating symlinks on Windows" | 266 | false | hotdoc/hotdoc | symlink | 36,338 | |
LDU_FT/pythongssapi/python-gssapi/import_gssapi_extension | LDU_FT | [
"<BEGIN>\n## `name`",
"Get the name associated with these credentials\n<END>",
"<BEGIN>\n## `acquire`",
"Acquire GSSAPI credentials",
" This method acquires credentials. If the `store` argument is\n used, the credentials will be acquired from the given\n credential store (if supported)... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the import_gssapi_extension 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 import_gssapi_extension API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion... | Import a GSSAPI extension module
This method imports a GSSAPI extension module based
on the name of the extension (not including the
'ext_' prefix). If the extension is not available,
the method retuns None.
Args:
name (str): the name of the extension
Returns:
module: Either ... | "Import a GSSAPI extension module\n\n This method imports a GSSAPI extension module based\n on the name of the extension (not including the\n 'ext_' prefix). If the extension is not available,\n the method retuns None.\n\n Args:\n name (str): the name of the extension\n\n Returns:\n mod... | 97 | false | pythongssapi/python-gssapi | import_gssapi_extension | 36,339 | |
LDU_FT/trombastic/PyScada/kill_process | LDU_FT | [
"<BEGIN>\n## `_reinit_daq_daemons`",
"update the daq daemon configuration when changes be applied in the models\n<END>",
"<BEGIN>\n## `connect`",
"establish a connection to the Instrument\n<END>",
"<BEGIN>\n## `find_gap`",
"try to find a address gap in the list of modbus registers\n<END>",
"<BEGIN>\n## ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the kill_process API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extr... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the kill_process API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extr... | restarts a dedicated process
:return: | "restarts a dedicated process\n :return:" | 60 | false | trombastic/PyScada | kill_process | 36,340 | |
LDU_FT/pbrod/numdifftools/epsalg_demo | LDU_FT | [
"<BEGIN>\n## `approx_fprime`",
"Gradient of function, or Jacobian if function fun returns 1d array",
" Parameters\n ----------\n x : array\n parameters at which the derivative is evaluated\n fun : function\n `fun(*((x,)+args), **kwargs)` returning either one value or 1d array\n epsi... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the epsalg_demo API.
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 epsalg_demo API.
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... | >>> epsalg_demo()
NO. PANELS TRAP. APPROX APPROX W/EA abserr
1 0.78539816 0.78539816 0.21460184
2 0.94805945 0.94805945 0.05194055
4 0.98711580 0.99945672 0.00054328
... | ">>> epsalg_demo()\n NO. PANELS TRAP. APPROX APPROX W/EA abserr\n 1 0.78539816 0.78539816 0.21460184\n 2 0.94805945 0.94805945 0.05194055\n 4 0.98711580 0.99945672 0.00054328\n... | 107 | false | pbrod/numdifftools | epsalg_demo | 36,341 | |
LDU_FT/kyuupichan/aiorpcX/resume_writing | LDU_FT | [
"<BEGIN>\n## `timeout_after`",
"Execute the specified coroutine and return its result. However,\n issue a cancellation request to the calling task after seconds\n have elapsed. When this happens, a TaskTimeout exception is\n raised. If coro is None, the result of this function serves\n as an asynchr... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the resume_writing API.
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 resume_writing API.
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... | Transport calls when the send buffer has room. | "Transport calls when the send buffer has room." | 118 | false | kyuupichan/aiorpcX | resume_writing | 36,342 | |
LDU_FT/crossbario/txaio/add_callbacks | LDU_FT | [
"<BEGIN>\n## `guess_stream_needs_encoding`",
"Guess the type (bytes/unicode) of this stream, and return whether or not it\n requires text to be encoded before written into it.\n<END>",
"<BEGIN>\n## `with_config`",
":return: an instance of the txaio API with the given\n configuration. This won't affe... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_callbacks API.
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 add_callbacks API.
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... | callback or errback may be None, but at least one must be
non-None. | "callback or errback may be None, but at least one must be\n non-None." | 62 | false | crossbario/txaio | add_callbacks | 36,343 | |
LDU_FT/yougov/solr-doc-manager/upsert | LDU_FT | [
"<BEGIN>\n## `_parse_fields`",
"If Schema access, parse fields and build respective lists\n<END>",
"<BEGIN>\n## `_clean_doc`",
"Reformats the given document before insertion into Solr.",
" This method reformats the document in the following ways:\n - removes extraneous fields that aren't def... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the upsert API.
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 upsert API.
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 ... | Update or insert a document into Solr
This method should call whatever add/insert/update method exists for
the backend engine and add the document in there. The input will
always be one mongo document, represented as a Python dictionary. | "Update or insert a document into Solr\n\n This method should call whatever add/insert/update method exists for\n the backend engine and add the document in there. The input will\n always be one mongo document, represented as a Python dictionary." | 26 | false | yougov/solr-doc-manager | upsert | 36,344 | |
LDU_FT/mandeep/Travis-Encrypt/retrieve_public_key | LDU_FT | [
"<BEGIN>\n## `cli`",
"Encrypt passwords and environment variables for use with Travis CI.",
" Travis Encrypt requires as arguments the user's GitHub username and repository name.\n Once the arguments are passed, a password prompt will ask for the password that needs\n to be encrypted. The given passwor... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the retrieve_public_key API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
T... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the retrieve_public_key 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... | Retrieve the public key from the Travis API.
The Travis API response is accessed as JSON so that Travis-Encrypt
can easily find the public key that is to be passed to cryptography's
load_pem_public_key function. Due to issues with some public keys being
returned from the Travis API as PKCS8 encoded, th... | "Retrieve the public key from the Travis API.\n\n The Travis API response is accessed as JSON so that Travis-Encrypt\n can easily find the public key that is to be passed to cryptography's\n load_pem_public_key function. Due to issues with some public keys being\n returned from the Travis API as PKCS8 encod... | 23 | false | mandeep/Travis-Encrypt | retrieve_public_key | 36,345 | |
LDU_FT/GoogleCloudPlatform/appengine-pipelines/_dereference_args | LDU_FT | [
"<BEGIN>\n## `_get_task_target`",
"Get the default target for a pipeline task.",
" Current version id format is: user_defined_version.minor_version_number\n Current module id is just the module's name. It could be \"default\"",
" Returns:\n A complete target name is of format version.module. If module i... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _dereference_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... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _dereference_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... | Dereference a Pipeline's arguments that are slots, validating them.
Each argument value passed in is assumed to be a dictionary with the format:
{'type': 'value', 'value': 'serializable'} # A resolved value.
{'type': 'slot', 'slot_key': 'str() on a db.Key'} # A pending Slot.
Args:
pipeline_name: The... | "Dereference a Pipeline's arguments that are slots, validating them.\n\n Each argument value passed in is assumed to be a dictionary with the format:\n {'type': 'value', 'value': 'serializable'} # A resolved value.\n {'type': 'slot', 'slot_key': 'str() on a db.Key'} # A pending Slot.\n\n Args:\n pipeline_n... | 222 | false | GoogleCloudPlatform/appengine-pipelines | _dereference_args | 36,346 | |
LDU_FT/CLARIAH/grlc/get_repo_info | LDU_FT | [
"<BEGIN>\n## `project`",
"Programs may make use of data in the `dataIn` variable and should\n produce data on the `dataOut` variable.\n<END>",
"<BEGIN>\n## `init_prov_graph`",
"Initialize PROV graph with all we know at the start of the recording\n<END>",
"<BEGIN>\n## `add_used_entity`",
"Add the provid... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_repo_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_repo_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... | Generate swagger information from the repo being used. | "Generate swagger information from the repo being used." | 37 | false | CLARIAH/grlc | get_repo_info | 36,347 | |
LDU_FT/jupyterhub/kubespawner/_list_and_update | LDU_FT | [
"<BEGIN>\n## `make_pod`",
"Make a k8s pod specification for running a user notebook.",
" Parameters\n ----------\n name:\n Name of pod. Must be unique within the namespace the object is\n going to be created in. Must be a valid DNS label.\n image:\n Image specification - usually... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _list_and_update API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _list_and_update API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | Update current list of resources by doing a full fetch.
Overwrites all current resource info. | "Update current list of resources by doing a full fetch.\n\n Overwrites all current resource info." | 98 | false | jupyterhub/kubespawner | _list_and_update | 36,348 | |
LDU_FT/lemieuxl/pyGenClean/main | LDU_FT | [
"<BEGIN>\n## `main`",
"The main function of the module.",
" :param argString: the options.",
" :type argString: list",
" These are the steps:",
" 1. Prints the options.\n 2. If there are ``summarized_intensities`` provided, reads the files\n (:py:func:`read_summarized_intensities`) an... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the main API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted do... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the main API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted do... | The main function.
:param argString: the options.
:type argString: list
These are the steps of this module:
1. Prints the options.
2. Finds the overlapping markers between the three reference panels and
the source panel (:py:func:`findOverlappingSNPsWithReference`).
3. Extract the... | "The main function.\n\n :param argString: the options.\n\n :type argString: list\n\n These are the steps of this module:\n\n 1. Prints the options.\n 2. Finds the overlapping markers between the three reference panels and\n the source panel (:py:func:`findOverlappingSNPsWithReference`).\n 3. ... | 1,109 | true | lemieuxl/pyGenClean | main | 36,349 | |
LDU_FT/MacHu-GWU/docfly-project/_tree_view_builder | LDU_FT | [
"<BEGIN>\n## `is_valid_package_module_name`",
"Test whether it's a valid package or module name.",
" - a-z, 0-9, and underline\n - starts with underline or alpha letter",
" valid:",
" - ``a``\n - ``a.b.c``\n - ``_a``\n - ``_a._b._c``",
" invalid:",
" - ``A``\n - ``0``\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _tree_view_builder 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 _tree_view_builder 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... | Build a text to represent the package structure. | "Build a text to represent the package structure." | 47 | false | MacHu-GWU/docfly-project | _tree_view_builder | 36,350 | |
LDU_FT/nyaruka/smartmin/get_permissions_app_name | LDU_FT | [
"<BEGIN>\n## `_read_requirements`",
"Parses a file for pip installation requirements.\n<END>",
"<BEGIN>\n## `get_list_class`",
"Returns the class to use for the passed in list. We just build something up\n from the object type for the list.\n<END>",
"<BEGIN>\n## `format_datetime`",
"Formats a date, co... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_permissions_app_name API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_permissions_app_name API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio... | Gets the app after which smartmin permissions should be installed. This can be specified by PERMISSIONS_APP in the
Django settings or defaults to the last app with models | "Gets the app after which smartmin permissions should be installed. This can be specified by PERMISSIONS_APP in the\n Django settings or defaults to the last app with models" | 118 | false | nyaruka/smartmin | get_permissions_app_name | 36,351 | |
LDU_FT/se-esss-litterbox/Pynac/pynac_in_sub_directory | LDU_FT | [
"<BEGIN>\n## `from_dynacRepr`",
"Construct a ``Quad`` instance from the Pynac lattice element\n<END>",
"<BEGIN>\n## `scaleField`",
"Adjust the field of the magnet by the value of ``scalingFactor``. The adjustment\n is multiplicative, so a value of ``scalingFactor = 1.0`` will result in no change\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the pynac_in_sub_directory 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 pynac_in_sub_directory 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 context manager to create a new directory, move the files listed in ``file_list``
to that directory, and change to that directory before handing control back to
context. The closing action is to change back to the original directory.
The directory name is based on the ``num`` input, and if i... | "A context manager to create a new directory, move the files listed in ``file_list``\n to that directory, and change to that directory before handing control back to\n context. The closing action is to change back to the original directory.\n\n The directory name is based on the ``num`` input, and... | 52 | false | se-esss-litterbox/Pynac | pynac_in_sub_directory | 36,352 | |
LDU_FT/pymacaron/pymacaron-core/model_to_json | LDU_FT | [
"<BEGIN>\n## `merge`",
"Try merging all the bravado_core models across all loaded APIs. If\n duplicates occur, use the same bravado-core model to represent each, so\n bravado-core won't treat them as different models when passing them\n from one PyMacaron client stub to an other or when retur... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the model_to_json API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the model_to_json API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | Take a model instance and return it as a json struct | "Take a model instance and return it as a json struct" | 33 | false | pymacaron/pymacaron-core | model_to_json | 36,353 | |
LDU_FT/PlaidWeb/Publ/render_transparent_chit | LDU_FT | [
"<BEGIN>\n## `load_metafile`",
"Load a metadata file from the filesystem\n<END>",
"<BEGIN>\n## `description`",
"Get the textual description of the category\n<END>",
"<BEGIN>\n## `breadcrumb`",
"Get the category hierarchy leading up to this category, including\n root and self.",
" For examp... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the render_transparent_chit 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 render_transparent_chit API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion... | Render a transparent chit for external, sized images | "Render a transparent chit for external, sized images" | 285 | false | PlaidWeb/Publ | render_transparent_chit | 36,354 | |
LDU_FT/CalebBell/fpi/V_hollow_cylinder | LDU_FT | [
"<BEGIN>\n## `Rizk`",
"r'''Calculates saltation velocity of the gas for pneumatic conveying,\n according to [1]_ as described in [2]_ and many others.",
" .. math::\n \\mu=\\left(\\frac{1}{10^{1440d_p+1.96}}\\right)\\left(Fr_s\\right)^{1100d_p+2.5}",
" Fr_s = \\frac{V_{salt}}{\\sqrt{gD}}",... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the V_hollow_cylinder API.
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 V_hollow_cylinder API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | r'''Returns the volume of a hollow cylinder.
.. math::
V = \frac{\pi D_o^2}{4}L - L\frac{\pi D_i^2}{4}
Parameters
----------
Di : float
Diameter of the hollow in the cylinder, [m]
Do : float
Diameter of the exterior of the cylinder, [m]
L : float
Length of the c... | "r'''Returns the volume of a hollow cylinder.\n\n .. math::\n V = \\frac{\\pi D_o^2}{4}L - L\\frac{\\pi D_i^2}{4}\n\n Parameters\n ----------\n Di : float\n Diameter of the hollow in the cylinder, [m]\n Do : float\n Diameter of the exterior of the cylinder, [m]\n L : float\n ... | 121 | false | CalebBell/fpi | V_hollow_cylinder | 36,355 | |
LDU_FT/heitzmann/gdspy/_eight_byte_real_to_float | LDU_FT | [
"<BEGIN>\n## `_eight_byte_real`",
"Convert a number into the GDSII 8 byte real format.",
" Parameters\n ----------\n value : number\n The number to be converted.",
" Returns\n -------\n out : string\n The GDSII binary string that represents ``value``.\n<END>",
"<BEGIN>\n## `_... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _eight_byte_real_to_float 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 _eight_byte_real_to_float API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi... | Convert a number from GDSII 8 byte real format to float.
Parameters
----------
value : string
The GDSII binary string representation of the number.
Returns
-------
out : float
The number represented by ``value``. | "Convert a number from GDSII 8 byte real format to float.\n\n Parameters\n ----------\n value : string\n The GDSII binary string representation of the number.\n\n Returns\n -------\n out : float\n The number represented by ``value``." | 254 | false | heitzmann/gdspy | _eight_byte_real_to_float | 36,356 | |
LDU_FT/adamchainz/django-mysql/_parse_index_value | LDU_FT | [
"<BEGIN>\n## `settings_to_cmd_args`",
"Copied from django 1.8 MySQL backend DatabaseClient - where the runshell\n commandline creation has been extracted and made callable like so.\n<END>",
"<BEGIN>\n## `pt_fingerprint`",
"Takes a query (in a string) and returns its 'fingerprint'\n<END>",
"<BEGIN>\n## `i... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _parse_index_value API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
Th... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _parse_index_value API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
Th... | Parse the HANDLER-supported subset of django's __ expression syntax | "Parse the HANDLER-supported subset of django's __ expression syntax" | 33 | false | adamchainz/django-mysql | _parse_index_value | 36,357 | |
LDU_FT/cfusting/fastgp/generate_next_population | LDU_FT | [
"<BEGIN>\n## `find_pareto_front`",
"Finds a subset of nondominated individuals in a given list",
" :param population: a list of individuals\n :return: a set of indices corresponding to nondominated individuals\n<END>",
"<BEGIN>\n## `from_string`",
"Try to convert a string expression into a PrimitiveTr... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the generate_next_population 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 generate_next_population API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio... | Perform truncated selection with elitism.
:param individuals:
:param toolbox:
:return: | "Perform truncated selection with elitism.\n :param individuals:\n :param toolbox:\n :return:" | 12 | false | cfusting/fastgp | generate_next_population | 36,358 | |
LDU_FT/amol-/depot/permissions | LDU_FT | [
"<BEGIN>\n## `set_default`",
"Replaces the current application default depot\n<END>",
"<BEGIN>\n## `get`",
"Gets the application wide depot instance.",
" Might return ``None`` if :meth:`configure` has not been\n called yet.\n<END>",
"<BEGIN>\n## `get_file`",
"Retrieves a file by storage na... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the permissions API.
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 permissions API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | Return a set with all permissions granted to the user. | "Return a set with all permissions granted to the user." | 51 | false | amol-/depot | permissions | 36,359 | |
LDU_FT/secdev/scapy/guess_payload_class | LDU_FT | [
"<BEGIN>\n## `_get_npcap_config`",
"Get a Npcap parameter matching key in the registry.",
" List:\n AdminOnly, DefaultFilterSettings, DltNull, Dot11Adapters, Dot11Support\n LoopbackAdapter, LoopbackSupport, NdisImPlatformBindingOptions, VlanSupport\n WinPcapCompatible\n<END>",
"<BEGIN>\n## `_exec_... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the guess_payload_class 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 guess_payload_class 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... | Handles NTPv4 extensions and MAC part (when authentication is used.) | "Handles NTPv4 extensions and MAC part (when authentication is used.)" | 1,329 | true | secdev/scapy | guess_payload_class | 36,360 | |
LDU_FT/tensorflow/mesh/check_image_file_header | LDU_FT | [
"<BEGIN>\n## `make_layer_stack`",
"Configurable layer stack.",
" Args:\n layers: a list of subclasses of TransformerLayer\n num_layers: an integer\n Returns:\n a LayerStack\n<END>",
"<BEGIN>\n## `make_bitransformer`",
"Gin-configurable bitransformer constructor.",
" In your config file you nee... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the check_image_file_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... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the check_image_file_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... | Validate that filename corresponds to images for the MNIST dataset. | "Validate that filename corresponds to images for the MNIST dataset." | 958 | false | tensorflow/mesh | check_image_file_header | 36,361 | |
LDU_FT/adamchainz/django-mysql/_is_simple_query | LDU_FT | [
"<BEGIN>\n## `settings_to_cmd_args`",
"Copied from django 1.8 MySQL backend DatabaseClient - where the runshell\n commandline creation has been extracted and made callable like so.\n<END>",
"<BEGIN>\n## `pt_fingerprint`",
"Takes a query (in a string) and returns its 'fingerprint'\n<END>",
"<BEGIN>\n## `i... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _is_simple_query API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _is_simple_query API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | Inspect the internals of the Query and say if we think its WHERE clause
can be used in a HANDLER statement | "Inspect the internals of the Query and say if we think its WHERE clause\n can be used in a HANDLER statement" | 33 | false | adamchainz/django-mysql | _is_simple_query | 36,362 | |
LDU_FT/twisted/axiom/createSQL | LDU_FT | [
"<BEGIN>\n## `upgradeProcessor1to2`",
"Batch processors stopped polling at version 2, so they no longer needed the\n idleInterval attribute. They also gained a scheduled attribute which\n tracks their interaction with the scheduler. Since they stopped polling,\n we also set them up as a timed event her... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the createSQL API.
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 createSQL API.
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... | For use with auto-committing statements such as CREATE TABLE or CREATE
INDEX. | "For use with auto-committing statements such as CREATE TABLE or CREATE\n INDEX." | 479 | false | twisted/axiom | createSQL | 36,363 | |
LDU_FT/robinandeer/puzzle/delete_individual | LDU_FT | [
"<BEGIN>\n## `individual_dict`",
"Return a dict with ind_id as key and Individual as values.\n<END>",
"<BEGIN>\n## `_get_genes`",
"Add the genes for a variant",
" Get the hgnc symbols from all transcripts and add them\n to the variant.",
" Args:\n variant (dict): A variant ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the delete_individual API.
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 delete_individual API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | Delete a case from the database
Args:
ind_obj (puzzle.models.Individual): initialized individual model | "Delete a case from the database\n\n Args:\n ind_obj (puzzle.models.Individual): initialized individual model" | 306 | false | robinandeer/puzzle | delete_individual | 36,364 | |
LDU_FT/noirbizarre/pelican-frontmark/_parse | LDU_FT | [
"<BEGIN>\n## `image`",
"Copy-pasted from upstream class until\n https://github.com/rtfd/CommonMark-py/pull/90 is merged\n<END>",
"<BEGIN>\n## `code_block`",
"Output Pygments if required else use default html5 output\n<END>",
"<BEGIN>\n## `_parse`",
"Parse text with frontmatter, return metadata and ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _parse API.
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 _parse API.
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 ... | Parse text with frontmatter, return metadata and content.
If frontmatter is not found, returns an empty metadata dictionary and original text content. | "Parse text with frontmatter, return metadata and content.\n If frontmatter is not found, returns an empty metadata dictionary and original text content." | 16 | false | noirbizarre/pelican-frontmark | _parse | 36,365 | |
LDU_FT/observermedia/django-wordpress-rest/get_or_create_media | LDU_FT | [
"<BEGIN>\n## `load_post_webhook`",
"Webhook to insert/update a WordPress.com post on the local Django site.\n Call this after making changes to the post in WP Admin.\n The post is processed asynchronously so that a response can be returned to WordPress.com immediately.",
" :param request: Should contai... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_or_create_media API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
T... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_or_create_media API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
T... | Find or create a Media object given API data.
:param api_media: the API data for the Media
:return: a tuple of an Media instance and a boolean indicating whether the Media was created or not | "Find or create a Media object given API data.\n\n :param api_media: the API data for the Media\n :return: a tuple of an Media instance and a boolean indicating whether the Media was created or not" | 100 | false | observermedia/django-wordpress-rest | get_or_create_media | 36,366 | |
LDU_FT/Gbps/fastlog/_log | LDU_FT | [
"<BEGIN>\n## `addHandler`",
"Setups a new internal logging handler. For fastlog loggers,\n handlers are kept track of in the self._handlers list\n<END>",
"<BEGIN>\n## `setStyle`",
"Adjusts the output format of messages based on the style name provided",
" Styles are loaded like python modules,... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _log API.
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 _log API.
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... | Internal method to filter into the formatter before being passed to the main Python logger | "Internal method to filter into the formatter before being passed to the main Python logger" | 63 | false | Gbps/fastlog | _log | 36,367 | |
LDU_FT/praekelt/panya/_resolve_view_params | LDU_FT | [
"<BEGIN>\n## `smart_query_string`",
"Outputs current GET query string with additions appended.\n Additions are provided in token pairs.\n<END>",
"<BEGIN>\n## `_resolve_view_params`",
"Resolves view params with least ammount of resistance.\n Firstly check for params on urls passed args, then on class... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _resolve_view_params 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 _resolve_view_params API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | Resolves view params with least ammount of resistance.
Firstly check for params on urls passed args, then on class init args or members,
and lastly on class get methods . | "Resolves view params with least ammount of resistance.\n Firstly check for params on urls passed args, then on class init args or members, \n and lastly on class get methods ." | 22 | false | praekelt/panya | _resolve_view_params | 36,368 | |
LDU_FT/fedora-infra/fedmsg/init | LDU_FT | [
"<BEGIN>\n## `set_high_water_mark`",
"Set a high water mark on the zmq socket. Do so in a way that is\n cross-compatible with zeromq2 and zeromq3.\n<END>",
"<BEGIN>\n## `set_tcp_keepalive`",
"Set a series of TCP keepalive options on the socket if\n and only if\n 1) they are specified explicitly in... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the init API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted do... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the init API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted do... | Initialize an instance of :class:`fedmsg.core.FedMsgContext`.
The config is loaded with :func:`fedmsg.config.load_config` and updated
by any keyword arguments. This config is used to initialize the context
object.
The object is stored in a thread local as
:data:`fedmsg.__local.__context`. | "Initialize an instance of :class:`fedmsg.core.FedMsgContext`.\n\n The config is loaded with :func:`fedmsg.config.load_config` and updated\n by any keyword arguments. This config is used to initialize the context\n object.\n\n The object is stored in a thread local as\n :data:`fedmsg.__local.__context`.... | 248 | false | fedora-infra/fedmsg | init | 36,369 | |
LDU_FT/secnot/rectpack/fitness | LDU_FT | [
"<BEGIN>\n## `_add_section`",
"Adds a new section to the free section list, but before that and if \n section merge is enabled, tries to join the rectangle with all existing \n sections, if successful the resulting section is again merged with the \n remaining sections until the operation fai... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the fitness API.
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 fitness API.
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... | Metric used to rate how much space is wasted if a rectangle is placed.
Returns a value greater or equal to zero, the smaller the value the more
'fit' is the rectangle. If the rectangle can't be placed, returns None.
Arguments:
width (int, float): Rectangle width
height ... | "Metric used to rate how much space is wasted if a rectangle is placed.\n Returns a value greater or equal to zero, the smaller the value the more \n 'fit' is the rectangle. If the rectangle can't be placed, returns None.\n\n Arguments:\n width (int, float): Rectangle width\n ... | 103 | false | secnot/rectpack | fitness | 36,370 | |
LDU_FT/ptmcg/littletable/dump | LDU_FT | [
"<BEGIN>\n## `copy_template`",
"Create empty copy of the current table, with copies of all\n index definitions.\n<END>",
"<BEGIN>\n## `clone`",
"Create full copy of the current table, including table contents\n and index definitions.\n<END>",
"<BEGIN>\n## `create_index`",
"Create a new... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the dump API.
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 dump API.
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... | Dump out the contents of this table in a nested listing.
@param out: output stream to write to
@param row_fn: function to call to display individual rows
@param limit: number of records to show at deepest level of pivot (-1=show all)
@param indent: current nesting level | "Dump out the contents of this table in a nested listing.\n @param out: output stream to write to\n @param row_fn: function to call to display individual rows\n @param limit: number of records to show at deepest level of pivot (-1=show all)\n @param indent: current nesting level" | 75 | false | ptmcg/littletable | dump | 36,371 | |
LDU_FT/pjuren/pyokit/__read_seq_data | LDU_FT | [
"<BEGIN>\n## `__trim_extensions_dot`",
"trim leading dots from extensions and drop any empty strings.\n<END>",
"<BEGIN>\n## `__split_genomic_interval_filename`",
"Split a filename of the format chrom:start-end.ext or chrom.ext (full chrom).",
" :return: tuple of (chrom, start, end) -- 'start' and 'end' are... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the __read_seq_data API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The e... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the __read_seq_data API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The e... | :return: a tuple of the sequence data and the last line that was read from
the file handle/stream | ":return: a tuple of the sequence data and the last line that was read from\n the file handle/stream" | 519 | false | pjuren/pyokit | __read_seq_data | 36,372 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.