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/eraclitux/ipcampy/watch
LDU_FT
[ "<BEGIN>\n## `ensure_secret`", "Check if secret key to encryot sessions exists,\n generate it otherwise.\n<END>", "<BEGIN>\n## `list_snapshots_days`", "Returns a list of (date, dir) in which snapshopts are present\n<END>", "<BEGIN>\n## `list_snapshots_hours`", "Returns a list of hour/min in which snaps...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the watch API. 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 watch API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
Get screenshots from all cams at defined intervall.
"Get screenshots from all cams at defined intervall."
18
false
eraclitux/ipcampy
watch
23,073
LDU_FT/sam-cox/pytides/_partition
LDU_FT
[ "<BEGIN>\n## `_prepare`", "Return constituent speed and equilibrium argument at a given time, and constituent node factors at given times.\n\t\tArguments:\n\t\tconstituents -- list of constituents to prepare\n\t\tt0 -- time at which to evaluate speed and equilibrium argument for each constituent\n\t\tt -- list of...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _partition API. 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 _partition API. 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...
Partition a sorted list of numbers (or in this case hours). Arguments: hours -- sorted ndarray of hours. partition -- maximum partition length (default: 3600.0)
"Partition a sorted list of numbers (or in this case hours).\n\t\tArguments:\n\t\thours -- sorted ndarray of hours.\n\t\tpartition -- maximum partition length (default: 3600.0)"
23
false
sam-cox/pytides
_partition
23,074
LDU_FT/hitchtest/hitchserve/cat
LDU_FT
[ "<BEGIN>\n## `run`", "Run subcommand.", " Args:\n shell (Optional[bool]): Run command using shell (default False)\n ignore_errors (Optional[bool]): If the command has a non-zero return code, don't raise an exception (default False)\n stdin (Optional[bool]): Plug input fro...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the cat API. 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 cat API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
Return a list of lines output by this service.
"Return a list of lines output by this service."
35
false
hitchtest/hitchserve
cat
23,075
LDU_FT/justquick/django-native-tags/calendar
LDU_FT
[ "<BEGIN>\n## `calendar`", "Creates a formatted ``HTMLCalendar``. \n Argument ``format`` can be one of ``month``, ``year``, or ``yearpage``\n Keyword arguments are collected and passed into ``HTMLCalendar.formatmonth``, \n ``HTMLCalendar.formatyear``, and ``HTMLCalendar.formatyearpage``", " Synta...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the calendar API. 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 calendar API. 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...
Creates a formatted ``HTMLCalendar``. Argument ``format`` can be one of ``month``, ``year``, or ``yearpage`` Keyword arguments are collected and passed into ``HTMLCalendar.formatmonth``, ``HTMLCalendar.formatyear``, and ``HTMLCalendar.formatyearpage`` Syntax:: {% cale...
"Creates a formatted ``HTMLCalendar``. \n Argument ``format`` can be one of ``month``, ``year``, or ``yearpage``\n Keyword arguments are collected and passed into ``HTMLCalendar.formatmonth``, \n ``HTMLCalendar.formatyear``, and ``HTMLCalendar.formatyearpage``\n \n Syntax::\n \n ...
161
false
justquick/django-native-tags
calendar
23,076
LDU_FT/mmp2/megaman/fit_geometry
LDU_FT
[ "<BEGIN>\n## `check_eigen_solver`", "Check that the selected eigensolver is valid", " Parameters\n ----------\n eigen_solver : string\n string value to validate\n size, nvec : int (optional)\n if both provided, use the specified problem size and number of vectors\n to determine ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the fit_geometry API. 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 fit_geometry API. 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...
Inputs self.geom, and produces the fitted geometry self.geom_
"Inputs self.geom, and produces the fitted geometry self.geom_"
287
false
mmp2/megaman
fit_geometry
23,077
LDU_FT/daniellawrence/graphitesend/enable_asynchronous
LDU_FT
[ "<BEGIN>\n## `init`", "Create the module instance of the GraphiteClient.\n<END>", "<BEGIN>\n## `send`", "Make sure that we have an instance of the GraphiteClient.\n Then send the metrics to the graphite server.\n User consumable method.\n<END>", "<BEGIN>\n## `send_dict`", "Make sure that we have an ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the enable_asynchronous 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 enable_asynchronous 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...
Check if socket have been monkey patched by gevent
"Check if socket have been monkey patched by gevent"
43
false
daniellawrence/graphitesend
enable_asynchronous
23,078
LDU_FT/cvxopt/chompack/perm
LDU_FT
[ "<BEGIN>\n## `symb_to_block`", "Maps a symbolic factorization to a block-diagonal structure with\n coupling constraints.", " :param symb: :py:class:`symbolic`\n :param coupling: optional \n :return dims: list of block dimensions\n :return sparse_to_block: di...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the perm API. 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 perm API. 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...
Symmetric permutation of a symmetric sparse matrix. :param A: :py:class:`spmatrix` :param p: :py:class:`matrix` or :class:`list` of length `A.size[0]`
"Symmetric permutation of a symmetric sparse matrix. \n\n :param A: :py:class:`spmatrix`\n :param p: :py:class:`matrix` or :class:`list` of length `A.size[0]`"
215
false
cvxopt/chompack
perm
23,079
LDU_FT/pennersr/django-allauth/_build_locale_table
LDU_FT
[ "<BEGIN>\n## `_stash_user`", "Now, be aware, the following is quite ugly, let me explain:", " Even if the user credentials match, the authentication can fail because\n Django's default ModelBackend calls user_can_authenticate(), which\n checks `is_active`. Now, earlier versions of allauth d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _build_locale_table 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 _build_locale_table 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...
Parses the FacebookLocales.xml file and builds a dict relating every available language ('en, 'es, 'zh', ...) with a list of available regions for that language ('en' -> 'US', 'EN') and an (arbitrary) default region.
"Parses the FacebookLocales.xml file and builds a dict relating every\n available language ('en, 'es, 'zh', ...) with a list of available regions\n for that language ('en' -> 'US', 'EN') and an (arbitrary) default region."
130
false
pennersr/django-allauth
_build_locale_table
23,080
LDU_FT/neetjn/pyselenium-js/__d2b_notation
LDU_FT
[ "<BEGIN>\n## `__type2js`", ":Description: Convert python value to executable javascript value by type.\n :param value: Value to transform.\n :type value: None, bool, int, float, string\n :return: string\n<END>", "<BEGIN>\n## `__type2python`", ":Description: Convert javascript value to pyt...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the __d2b_notation API. 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 __d2b_notation API. 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...
:Description: Transform javascript dot notation to bracket notation. :param prop: Property to transform. :type prop: string :example: 'messages.total' >> someObject['messages']['total'] :return: string
":Description: Transform javascript dot notation to bracket notation.\n :param prop: Property to transform.\n :type prop: string\n :example: 'messages.total' >> someObject['messages']['total']\n :return: string"
26
false
neetjn/pyselenium-js
__d2b_notation
23,081
LDU_FT/Grokzen/pykwalify/_handle_func
LDU_FT
[ "<BEGIN>\n## `is_float`", "Valid types are:\n - objects of float type\n - Strings that can be converted to float. For example '1e-06'\n<END>", "<BEGIN>\n## `is_timestamp`", "Yaml either have automatically converted it to a datetime object\n or it is a string that will be validated later.\n<END>", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _handle_func API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _handle_func API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
Helper function that should check if func is specified for this rule and then handle it for all cases in a generic way.
"Helper function that should check if func is specified for this rule and\n then handle it for all cases in a generic way."
22
false
Grokzen/pykwalify
_handle_func
23,082
LDU_FT/BoboTiG/python-mss/monitors
LDU_FT
[ "<BEGIN>\n## `to_png`", "Dump data to a PNG file. If `output` is `None`, create no file but return\n the whole PNG data.", " :param bytes data: RGBRGB...RGB data.\n :param tuple size: The (width, height) pair.\n :param int level: PNG compression level.\n :param str output: Output file name.\n<EN...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the monitors API. 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 monitors API. 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...
Get positions of monitors (see parent class).
"Get positions of monitors (see parent class)."
62
false
BoboTiG/python-mss
monitors
23,083
LDU_FT/pricingassistant/mongokat/_get_date
LDU_FT
[ "<BEGIN>\n## `_get_string`", "Decode a BSON string to python unicode string.\n<END>", "<BEGIN>\n## `_get_object`", "Decode a BSON subdocument to opts.document_class or bson.dbref.DBRef.\n<END>", "<BEGIN>\n## `_get_boolean`", "Decode a BSON true/false to python True/False.\n<END>", "<BEGIN>\n## `_get_dat...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_date API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_date API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
Decode a BSON datetime to python datetime.datetime.
"Decode a BSON datetime to python datetime.datetime."
55
false
pricingassistant/mongokat
_get_date
23,084
LDU_FT/vmware/pyvmomi/SmartStubAdapter
LDU_FT
[ "<BEGIN>\n## `_AddType`", "Note: Must be holding the _lazyLock, or in main init path\n<END>", "<BEGIN>\n## `GetServiceVersions`", "Get all the versions for the service with specified namespace (partially) ordered\n by compatibility (i.e. any version in the list that is compatible with some version\n v in ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the SmartStubAdapter API. 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 SmartStubAdapter API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Determine the most preferred API version supported by the specified server, then create a soap stub adapter using that version The parameters are the same as for pyVmomi.SoapStubAdapter except for version which is renamed to prefferedApiVersions @param preferredApiVersions: Acceptable API version(s) (e.g....
"Determine the most preferred API version supported by the specified server,\n then create a soap stub adapter using that version\n\n The parameters are the same as for pyVmomi.SoapStubAdapter except for\n version which is renamed to prefferedApiVersions\n\n @param preferredApiVersions: Acceptable API version(s...
128
false
vmware/pyvmomi
SmartStubAdapter
23,085
LDU_FT/mapbox/mapboxgl-jupyter/add_unique_template_variables
LDU_FT
[ "<BEGIN>\n## `generate_vector_color_map`", "Generate color stops array for use with match expression in mapbox template\n<END>", "<BEGIN>\n## `generate_vector_numeric_map`", "Generate stops array for use with match expression in mapbox template\n<END>", "<BEGIN>\n## `check_vector_template`", "Determines i...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_unique_template_variables API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_unique_template_variables API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conc...
Update map template variables specific to linestring visual
"Update map template variables specific to linestring visual"
57
false
mapbox/mapboxgl-jupyter
add_unique_template_variables
23,086
LDU_FT/elmotec/massedit/get_paths
LDU_FT
[ "<BEGIN>\n## `get_function`", "Retrieve the function defined by the function_name.", " Arguments:\n fn_name: specification of the type module:function_name.\n<END>", "<BEGIN>\n## `parse_command_line`", "Parse command line argument. See -h option.", " Arguments:\n argv: arguments on the com...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_paths API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_paths API. 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...
Retrieve files that match any of the patterns.
"Retrieve files that match any of the patterns."
43
false
elmotec/massedit
get_paths
23,087
LDU_FT/mattaustin/django-storages-s3upload/clean_bucket_name
LDU_FT
[ "<BEGIN>\n## `_generate_processed_key_name`", "Returns a key name to use after processing based on timestamp and\n upload key name.\n<END>", "<BEGIN>\n## `clean_bucket_name`", "Validates that the bucket name in the provided data matches the\n bucket name from the storage backend.\n<END>", "<BE...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the clean_bucket_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...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the clean_bucket_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...
Validates that the bucket name in the provided data matches the bucket name from the storage backend.
"Validates that the bucket name in the provided data matches the\n bucket name from the storage backend."
23
false
mattaustin/django-storages-s3upload
clean_bucket_name
23,088
LDU_FT/chrisspen/weka/write_line
LDU_FT
[ "<BEGIN>\n## `convert_weka_to_py_date_pattern`", "Converts the date format pattern used by Weka to the date format pattern used by Python's datetime.strftime().\n<END>", "<BEGIN>\n## `get_attribute_value`", "Returns the value associated with the given value index\n of the attribute with the given name....
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the write_line API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the write_line API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
Converts a single data line to a string.
"Converts a single data line to a string."
27
false
chrisspen/weka
write_line
23,089
LDU_FT/yjzhang/uncurl_python/initialize_from_assignments
LDU_FT
[ "<BEGIN>\n## `_create_m_objective`", "Creates an objective function and its derivative for M, given W and X", " Args:\n w (array): clusters x cells\n X (array): genes x cells\n<END>", "<BEGIN>\n## `initialize_from_assignments`", "Creates a weight initialization matrix from Poisson clusterin...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the initialize_from_assignments 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 initialize_from_assignments API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclu...
Creates a weight initialization matrix from Poisson clustering assignments. Args: assignments (array): 1D array of integers, of length cells k (int): number of states/clusters max_assign_weight (float, optional): between 0 and 1 - how much weight to assign to the highest cluster. Default: 0...
"Creates a weight initialization matrix from Poisson clustering assignments.\n\n Args:\n assignments (array): 1D array of integers, of length cells\n k (int): number of states/clusters\n max_assign_weight (float, optional): between 0 and 1 - how much weight to assign to the highest cluster. Defa...
265
false
yjzhang/uncurl_python
initialize_from_assignments
23,090
LDU_FT/tetframework/Tonnikala/lex
LDU_FT
[ "<BEGIN>\n## `merge_text_nodes_on`", "Merges all consecutive non-translatable text nodes into one\n<END>", "<BEGIN>\n## `push_state`", "Push a copy of the topmost state on top of the state stack,\n returns the new top.\n<END>", "<BEGIN>\n## `enter_node`", "Enter the given element; keeps track of `c...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the lex API. 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 lex API. 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...
Lexically analyze `text`. Yields pairs (`name`, `tokentext`).
"Lexically analyze `text`.\n\n Yields pairs (`name`, `tokentext`)."
39
false
tetframework/Tonnikala
lex
23,091
LDU_FT/xray7224/PyPump/lists
LDU_FT
[ "<BEGIN>\n## `verifier`", "Will ask user to click link to accept app and write code\n<END>", "<BEGIN>\n## `post_note`", "Post note and return the URL of the posted note\n<END>", "<BEGIN>\n## `get_obj_id`", "Get the id of a PumpObject.", " :param item: id string or PumpObject\n<END>", "<BEGIN>\n...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the lists API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the lists API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
:class:`Lists feed <pypump.models.feed.Lists>` with all lists owned by the person. Example: >>> for list in pump.me.lists: ... print(list) ... Acquaintances Family Coworkers Friends
":class:`Lists feed <pypump.models.feed.Lists>` with all lists\n owned by the person.\n\n Example:\n >>> for list in pump.me.lists:\n ... print(list)\n ...\n Acquaintances\n Family\n Coworkers\n Friends"
100
false
xray7224/PyPump
lists
23,092
LDU_FT/DataKitchen/DKCloudCommand/merge_kitchens_improved
LDU_FT
[ "<BEGIN>\n## `is_same`", "Compare two directory trees content.\n Return False if they differ, True is they are the same.\n :param dir2:\n :param dir1:\n<END>", "<BEGIN>\n## `phase3`", "Find out differences between common files.\n Ensure we are using content comparison with shallow=False.\n<END...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the merge_kitchens_improved 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 merge_kitchens_improved API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion...
returns a string. :param dk_api: -- api object :param from_kitchen: string :param to_kitchen: string -- kitchen name, string :rtype: DKReturnCode
"returns a string.\n :param dk_api: -- api object\n :param from_kitchen: string\n :param to_kitchen: string -- kitchen name, string\n :rtype: DKReturnCode"
70
false
DataKitchen/DKCloudCommand
merge_kitchens_improved
23,093
LDU_FT/Tivix/django-common/add_arguments
LDU_FT
[ "<BEGIN>\n## `ssl_required`", "Views decorated with this will always get redirected to https\n except when allow_non_ssl is set to true.\n<END>", "<BEGIN>\n## `anonymous_required`", "Only allow if user is NOT authenticated.\n<END>", "<BEGIN>\n## `generic_var`", "Stores generic variables in the session ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_arguments API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_arguments API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
Define optional arguments with default values
"Define optional arguments with default values"
28
false
Tivix/django-common
add_arguments
23,094
LDU_FT/balloob/pychromecast/launch_app
LDU_FT
[ "<BEGIN>\n## `new_connection_status`", "Handle reception of a new ConnectionStatus.\n<END>", "<BEGIN>\n## `register_listener`", "Register a listener for audio group changes of cast uuid.\n On update will call:\n listener.added_to_multizone(group_uuid)\n The cast has been a...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the launch_app API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the launch_app API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
Launch Spotify application. Will raise a LaunchError exception if there is no response from the Spotify app within timeout seconds.
"Launch Spotify application.\n\n Will raise a LaunchError exception if there is no response from the\n Spotify app within timeout seconds."
145
false
balloob/pychromecast
launch_app
23,095
LDU_FT/pyupio/changelogs/find_git_repo
LDU_FT
[ "<BEGIN>\n## `get_releases`", "Gets all releases from pypi meta data.\n :param data: dict, meta data\n :return: list, str releases\n<END>", "<BEGIN>\n## `get_urls`", "Gets URLs to changelogs.\n :param session: requests Session instance\n :param name: str, package name\n :param data: dict, meta ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_git_repo API. 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 find_git_repo API. 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...
Tries to find git repos on the given URL candidates :param session: requests Session instance :param name: str, project name :param candidates: list, URL candidates :return: tuple, (set(git URLs), set(repo URLs))
"Tries to find git repos on the given URL candidates\n :param session: requests Session instance\n :param name: str, project name\n :param candidates: list, URL candidates\n :return: tuple, (set(git URLs), set(repo URLs))"
58
false
pyupio/changelogs
find_git_repo
23,096
LDU_FT/pyviz/holoviews/match_spec
LDU_FT
[ "<BEGIN>\n## `initialize_plot`", "Initializes a new plot object with the last available frame.\n<END>", "<BEGIN>\n## `_get_axis_dims`", "Returns the dimensions corresponding to each axis.", " Should return a list of dimensions or list of lists of\n dimensions, which will be formatted to label ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the match_spec API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the match_spec API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
Matches the group.label specification of the supplied element against the supplied specification dictionary returning the value of the best match.
"Matches the group.label specification of the supplied\n element against the supplied specification dictionary\n returning the value of the best match."
1,961
true
pyviz/holoviews
match_spec
23,097
LDU_FT/SheffieldML/GPy/R_isrk
LDU_FT
[ "<BEGIN>\n## `pdf_link`", ":param link_f: latent variables link(f)\n :type link_f: Nx1 array\n :param y: data\n :type y: Nx1 array\n :param Y_metadata: includes censoring information in dictionary key 'censored'\n :returns: likelihood evaluated for this point\n :rtype: fl...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the R_isrk API. 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 R_isrk API. 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 ...
Function returns the inverse square root of R matrix on step k.
"Function returns the inverse square root of R matrix on step k."
1,670
true
SheffieldML/GPy
R_isrk
23,098
LDU_FT/heronotears/lazyxml/parse_full
LDU_FT
[ "<BEGIN>\n## `set_options`", "r\"\"\"Set Parser options.", " .. seealso::\n ``kw`` argument have the same meaning as in :func:`lazyxml.loads`\n<END>", "<BEGIN>\n## `xml2object`", "r\"\"\"Convert xml content to python object.", " :param content: xml content\n :rtype: dict", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_full API. 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 parse_full API. 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...
r"""Parse xml element include the node attributes. :param element: an :class:`~xml.etree.ElementTree.Element` instance :rtype: dict .. versionadded:: 1.2.1
"r\"\"\"Parse xml element include the node attributes.\n\n :param element: an :class:`~xml.etree.ElementTree.Element` instance\n :rtype: dict\n\n .. versionadded:: 1.2.1"
60
false
heronotears/lazyxml
parse_full
23,099
LDU_FT/sludgedesk/metoffer/nearest_loc_forecast
LDU_FT
[ "<BEGIN>\n## `guidance_UV`", "Return Met Office guidance regarding UV exposure based on UV index\n<END>", "<BEGIN>\n## `parse_sitelist`", "Return list of Site instances from retrieved sitelist data\n<END>", "<BEGIN>\n## `get_nearest_site`", "Return a string which can be used as \"request\" in calls to loc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the nearest_loc_forecast 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 nearest_loc_forecast API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Work out nearest possible site to lat & lon coordinates and return its forecast data for the given time step. lat: float or int. Latitude. lon: float or int. Longitude. step: metoffer.DAILY Returns daily foreca...
"Work out nearest possible site to lat & lon coordinates\n and return its forecast data for the given time step.\n \n lat: float or int. Latitude.\n lon: float or int. Longitude.\n step:\n metoffer.DAILY Returns daily...
33
false
sludgedesk/metoffer
nearest_loc_forecast
23,100
LDU_FT/tmr232/Sark/color
LDU_FT
[ "<BEGIN>\n## `get_idb_graph`", "Export IDB to a NetworkX graph.", " Use xrefs to and from functions to build a DiGraph containing all\n the functions in the IDB and all the links between them.\n The graph can later be used to perform analysis on the IDB.", " :return: nx.DiGraph()\n<END>", "<BEGI...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the color API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the color API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
Line Color in IDA View. Set color to `None` to clear the color.
"Line Color in IDA View.\n\n Set color to `None` to clear the color."
137
false
tmr232/Sark
color
23,101
LDU_FT/zendesk/connect_python_sdk/unsubscribe
LDU_FT
[ "<BEGIN>\n## `unsubscribe`", "Unsubscribe a user from some or all campaigns.", " :param str | number user_id: the id you use to identify a user. this should\n be static for the lifetime of a user.", " :param bool from_all True to unsubscribe from all campaigns. Take precedence over\n campaigns IDs...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the unsubscribe API. 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 unsubscribe API. 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...
Unsubscribe a user from some or all campaigns. :param str | number user_id: the id you use to identify a user. this should be static for the lifetime of a user. :param bool from_all True to unsubscribe from all campaigns. Take precedence over campaigns IDs if both are given. :param list of str ca...
"Unsubscribe a user from some or all campaigns.\n\n :param str | number user_id: the id you use to identify a user. this should\n be static for the lifetime of a user.\n\n :param bool from_all True to unsubscribe from all campaigns. Take precedence over\n campaigns IDs if both are given.\n\n :param list ...
69
false
zendesk/connect_python_sdk
unsubscribe
23,102
LDU_FT/ClimateImpactLab/DataFS/search
LDU_FT
[ "<BEGIN>\n## `_generate_manager`", "Generate a manager from a manager_config dictionary", " Parameters\n ----------", " manager_config : dict\n Configuration with keys class, args, and kwargs\n used to generate a new datafs.manager object", " Returns\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the search API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the search API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
List all archives matching tag search criteria
"List all archives matching tag search criteria"
318
false
ClimateImpactLab/DataFS
search
23,103
LDU_FT/noirbizarre/pelican-frontmark/image
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 image API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the image API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
Copy-pasted from upstream class until https://github.com/rtfd/CommonMark-py/pull/90 is merged
"Copy-pasted from upstream class until\n https://github.com/rtfd/CommonMark-py/pull/90 is merged"
16
false
noirbizarre/pelican-frontmark
image
23,104
LDU_FT/wandb/client/invalidate
LDU_FT
[ "<BEGIN>\n## `load_emacs_open_in_editor_bindings`", "Pressing C-X C-E will open the buffer in an external editor.\n<END>", "<BEGIN>\n## `load_extra_emacs_page_navigation_bindings`", "Key bindings, for scrolling up and down through pages.\n This are separate bindings, because GNU readline doesn't have them....
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the invalidate API. 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 invalidate API. 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...
Thread safe way of sending a repaint trigger to the input event loop.
"Thread safe way of sending a repaint trigger to the input event loop."
1,104
true
wandb/client
invalidate
23,105
LDU_FT/alerta/python-alerta-client/cli
LDU_FT
[ "<BEGIN>\n## `cli`", "Suppress alerts for specified duration based on alert attributes.\n<END>", "<BEGIN>\n## `cli`", "Add group/org/domain/role-to-customer or delete lookup entry.\n<END>", "<BEGIN>\n## `cli`", "Create user or update user details, including password reset.\n<END>", "<BEGIN>\n## `cli`", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the cli API. 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 cli API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
Add or delete role-to-permission lookup entry.
"Add or delete role-to-permission lookup entry."
30
false
alerta/python-alerta-client
cli
23,106
LDU_FT/transceptor-technology/pyleri/export_go
LDU_FT
[ "<BEGIN>\n## `export_js`", "Export the grammar to a JavaScript file which can be\n used with the js-lrparsing module.", " Two templates are available:\n Grammar.JS_WINDOW_TEMPLATE\n Grammar.JS_ES6_IMPORT_EXPORT_TEMPLATE (default)\n<END>", "<BEGIN>\n## `export_py`", "Expor...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the export_go API. 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 export_go API. 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...
Export the grammar to a Go file which can be used with the goleri module.
"Export the grammar to a Go file which can be\n used with the goleri module."
14
false
transceptor-technology/pyleri
export_go
23,107
LDU_FT/polysquare/jobstamps/_stamp_and_update_hook
LDU_FT
[ "<BEGIN>\n## `_run_cmd`", "Run command specified by :cmd: and return stdout, stderr and code.\n<END>", "<BEGIN>\n## `main`", "Entry point for jobstamp command.", " This will parse arguments and run the specified command in a subprocess. If\n the command has already been run, then the last captured std...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _stamp_and_update_hook 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 _stamp_and_update_hook API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
Write stamp and call update_stampfile_hook on method.
"Write stamp and call update_stampfile_hook on method."
17
false
polysquare/jobstamps
_stamp_and_update_hook
23,108
LDU_FT/isogeo/isogeo-api-py-minsdk/set_base_url
LDU_FT
[ "<BEGIN>\n## `set_base_url`", "Set Isogeo base URLs according to platform.", " :param str platform: platform to use. Options:", " * prod [DEFAULT]\n * qa\n * int\n<END>", "<BEGIN>\n## `convert_uuid`", "Convert a metadata UUID to its URI equivalent. And conversely.", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_base_url API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_base_url API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
Set Isogeo base URLs according to platform. :param str platform: platform to use. Options: * prod [DEFAULT] * qa * int
"Set Isogeo base URLs according to platform.\n\n :param str platform: platform to use. Options:\n\n * prod [DEFAULT]\n * qa\n * int"
154
false
isogeo/isogeo-api-py-minsdk
set_base_url
23,109
LDU_FT/auth0/auth0-python/login
LDU_FT
[ "<BEGIN>\n## `authorization_code`", "Authorization code grant", " This is the OAuth 2.0 grant that regular web apps utilize in order\n to access an API. Use this endpoint to exchange an Authorization Code\n for a Token.", " Args:\n grant_type (str): Denotes the flow you'...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the login API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the login API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
Calls oauth/token endpoint with password-realm grant type This is the OAuth 2.0 grant that highly trusted apps utilize in order to access an API. In this flow the end-user is asked to fill in credentials (username/password) typically using an interactive form in the user-agent (browser...
"Calls oauth/token endpoint with password-realm grant type\n\n\n This is the OAuth 2.0 grant that highly trusted apps utilize in order\n to access an API. In this flow the end-user is asked to fill in credentials\n (username/password) typically using an interactive form in the user-agent\n (...
337
false
auth0/auth0-python
login
23,110
LDU_FT/moonso/loqusdb/update
LDU_FT
[ "<BEGIN>\n## `update_database`", "Update a case in the database", " Args:\n adapter: Connection to database\n variant_file(str): Path to variant file\n sv_file(str): Path to sv variant file\n family_file(str): Path to family file\n family_type(str): Format of fami...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Load the variants of a case A variant is loaded if it is observed in any individual of a case If no family file is provided all individuals in vcf file will be considered.
"Load the variants of a case\n\n A variant is loaded if it is observed in any individual of a case\n If no family file is provided all individuals in vcf file will be considered."
216
false
moonso/loqusdb
update
23,111
LDU_FT/da4089/simplefix/append_tz_time_only_parts
LDU_FT
[ "<BEGIN>\n## `add_raw`", "Define the tags used for a private raw data field.", " :param length_tag: tag number of length field.\n :param value_tag: tag number of value field.", " Data fields are not terminated by the SOH character as is usual for\n FIX, but instead have a second, p...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the append_tz_time_only_parts 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 append_tz_time_only_parts API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi...
Append a field with a TZTimeOnly value from components. :param tag: Integer or string FIX tag number. :param h: Hours, in range 0 to 23. :param m: Minutes, in range 0 to 59. :param s: Optional seconds, in range 0 to 59 (60 for leap second). :param ms: Optional milliseconds, in r...
"Append a field with a TZTimeOnly value from components.\n\n :param tag: Integer or string FIX tag number.\n :param h: Hours, in range 0 to 23.\n :param m: Minutes, in range 0 to 59.\n :param s: Optional seconds, in range 0 to 59 (60 for leap second).\n :param ms: Optional millisecond...
79
false
da4089/simplefix
append_tz_time_only_parts
23,112
LDU_FT/dranjan/python-plyfile/_write_bin
LDU_FT
[ "<BEGIN>\n## `plot`", "Plot vertices and triangles from a PlyData instance. Assumptions:\n `ply' has a 'vertex' element with 'x', 'y', and 'z'\n properties;", " `ply' has a 'face' element with an integral list property\n 'vertex_indices', all of whose elements have length 3.\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _write_bin API. 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 _write_bin API. 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...
Save a PLY element to a binary PLY file. The element may contain list properties.
"Save a PLY element to a binary PLY file. The element may\n contain list properties."
34
false
dranjan/python-plyfile
_write_bin
23,113
LDU_FT/StorjOld/pyp2p/simultaneous_listen
LDU_FT
[ "<BEGIN>\n## `set_keep_alive`", "This function instructs the TCP socket to send a heart beat every n\n seconds to detect dead connections. It's the TCP equivalent of the\n IRC ping-pong protocol and allows for better cleanup / detection\n of dead TCP connections.", " It activates aft...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the simultaneous_listen 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 simultaneous_listen 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...
This function is called by passive simultaneous nodes who wish to establish themself as such. It sets up a connection to the Rendezvous Server to monitor for new hole punching requests.
"This function is called by passive simultaneous nodes who\r\n wish to establish themself as such. It sets up a connection\r\n to the Rendezvous Server to monitor for new hole punching requests."
88
false
StorjOld/pyp2p
simultaneous_listen
23,114
LDU_FT/deep-compute/logagg/_tag_and_field_maker
LDU_FT
[ "<BEGIN>\n## `start_daemon_thread`", "starts a deamon thread for a given target function and arguments.\n<END>", "<BEGIN>\n## `serialize_dict_keys`", "returns all the keys in a dictionary.", " >>> serialize_dict_keys({\"a\": {\"b\": {\"c\": 1, \"b\": 2} } })\n ['a', 'a.b', 'a.b.c', 'a.b.b']\n<END>", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _tag_and_field_maker 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 _tag_and_field_maker API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
>>> idbf = InfluxDBForwarder('no_host', '8086', 'deadpool', ... 'chimichanga', 'logs', 'collection') >>> log = {u'data': {u'_': {u'file': u'log.py', ... u'fn': u'start', ... u'ln': 8, ... ...
">>> idbf = InfluxDBForwarder('no_host', '8086', 'deadpool',\n ... 'chimichanga', 'logs', 'collection')\n >>> log = {u'data': {u'_': {u'file': u'log.py',\n ... u'fn': u'start',\n ... u'ln': 8,\n ... ...
59
false
deep-compute/logagg
_tag_and_field_maker
23,115
LDU_FT/AltSchool/dynamic-rest/_inherit_parent_kwargs
LDU_FT
[ "<BEGIN>\n## `merge_link_object`", "Add a 'links' attribute to the data that maps field names to URLs.", " NOTE: This is the format that Ember Data supports, but alternative\n implementations are possible to support other formats.\n<END>", "<BEGIN>\n## `register_post_processor`", "Register a pos...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _inherit_parent_kwargs 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 _inherit_parent_kwargs API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
Extract any necessary attributes from parent serializer to propagate down to child serializer.
"Extract any necessary attributes from parent serializer to\n propagate down to child serializer."
213
false
AltSchool/dynamic-rest
_inherit_parent_kwargs
23,116
LDU_FT/micahhausler/container-transform/_read_stream
LDU_FT
[ "<BEGIN>\n## `_read_stream`", "We override the return signature of\n ``super(BaseTransformer, self)._read_stream()`` to return extra volume\n data. This is intentional.", " :param stream: A file like object\n :returns: Return the family name, containers, and volumes. If there are\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _read_stream API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _read_stream API. 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...
We override the return signature of ``super(BaseTransformer, self)._read_stream()`` to return extra volume data. This is intentional. :param stream: A file like object :returns: Return the family name, containers, and volumes. If there are no volumes or family name, a tuple ...
"We override the return signature of\n ``super(BaseTransformer, self)._read_stream()`` to return extra volume\n data. This is intentional.\n\n :param stream: A file like object\n :returns: Return the family name, containers, and volumes. If there are\n no volumes or family name, a...
61
false
micahhausler/container-transform
_read_stream
23,117
LDU_FT/StorjOld/heartbeat/build
LDU_FT
[ "<BEGIN>\n## `generate_challenges`", "Generate the specified number of hash challenges.", " :param num: The number of hash challenges we want to generate.\n :param root_seed: Some value that we use to generate our seeds from.\n<END>", "<BEGIN>\n## `meet_challenge`", "Get the SHA256 hash of a s...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the build API. 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 build API. 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...
Builds the tree from the leaves that have been added. This function populates the tree from the leaves down non-recursively
"Builds the tree from the leaves that have been added.\n\n This function populates the tree from the leaves down non-recursively"
100
false
StorjOld/heartbeat
build
23,118
LDU_FT/rigetti/grove/expectation
LDU_FT
[ "<BEGIN>\n## `_prepare_c_jk_m`", "Prepare the coefficient matrix for state tomography. This function uses sparse matrices\n for much greater efficiency.\n The coefficient matrix is defined as:", " .. math::", " C_{(jk)m} = \\tr{\\Pi_{s_j} \\Lambda_k(P_m)} = \\sum_{r}\\pi_{jr}(\\mathcal{R}_...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the expectation API. 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 expectation API. 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...
Compute the expectation value of pauli_sum over the distribution generated from pyquil_prog. :param pyquil_prog: The state preparation Program to calculate the expectation value of. :param pauli_sum: PauliSum representing the operator of which to calculate the expectation value or a numpy m...
"Compute the expectation value of pauli_sum over the distribution generated from pyquil_prog.\n\n :param pyquil_prog: The state preparation Program to calculate the expectation value of.\n :param pauli_sum: PauliSum representing the operator of which to calculate the expectation\n value or a nu...
428
false
rigetti/grove
expectation
23,119
LDU_FT/JNRowe/jnrbase/get_configs
LDU_FT
[ "<BEGIN>\n## `parse_requires`", "Parse ``pip``-style requirements files.", " This is a *very* naïve parser, but very few packages make use of the more\n advanced features. Support for other features will be added only when\n packages in the wild depend on them.", " Args:\n __fname: Base fi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_configs API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_configs API. 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 all configs for given package. Args: __pkg: Package name __name: Configuration file name
"Return all configs for given package.\n\n Args:\n __pkg: Package name\n __name: Configuration file name"
112
false
JNRowe/jnrbase
get_configs
23,120
LDU_FT/biolink/ontobio/replaced_by
LDU_FT
[ "<BEGIN>\n## `extract_subset`", "Find all nodes in a subset.", " We assume the oboInOwl encoding of subsets, and subset IDs are IRIs\n<END>", "<BEGIN>\n## `sparql`", "Execute a SPARQL query.", " The query is specified using `select` and `body` parameters.\n The argument for the Named ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the replaced_by API. 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 replaced_by API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
Returns value of 'replaced by' (IAO_0100001) property for obsolete nodes Arguments --------- nid : str Node identifier for entity to be queried strict: bool If true, raise error if cardinality>1. If false, return list if cardinality>1 Return ----...
"Returns value of 'replaced by' (IAO_0100001) property for obsolete nodes\n\n Arguments\n ---------\n nid : str\n Node identifier for entity to be queried\n strict: bool\n If true, raise error if cardinality>1. If false, return list if cardinality>1\n\n Return\n ...
526
false
biolink/ontobio
replaced_by
23,121
LDU_FT/stanfordnlp/python-stanford-corenlp/_request
LDU_FT
[ "<BEGIN>\n## `dictstr`", "Parse a key=value string as a tuple (key, value) that can be provided as an argument to dict()\n<END>", "<BEGIN>\n## `regex_matches_to_indexed_words`", "Transforms tokensregex and semgrex matches to indexed words.\n :param matches: unprocessed regex matches\n :return: flat arra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _request API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _request API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
Send a request to the CoreNLP server. :param (str | unicode) text: raw text for the CoreNLPServer to parse :param (dict) properties: properties that the server expects :param (str) date: reference date of document, used by server to set docDate - expects YYYY-MM-DD :return: request resu...
"Send a request to the CoreNLP server.\n\n :param (str | unicode) text: raw text for the CoreNLPServer to parse\n :param (dict) properties: properties that the server expects\n :param (str) date: reference date of document, used by server to set docDate - expects YYYY-MM-DD\n :return: reques...
16
false
stanfordnlp/python-stanford-corenlp
_request
23,122
LDU_FT/edeposit/marcxml2mods/_apply_postprocessing
LDU_FT
[ "<BEGIN>\n## `postprocess_periodical`", "Some basic postprocessing of the periodical publications.", " Args:\n marc_xml (str): Original Aleph record.\n mods (str): XML string generated by XSLT template.\n uuid (str): UUID of the package.\n counter (int): Number of record, is added...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _apply_postprocessing 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 _apply_postprocessing API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Apply `func` to all ``<mods:mods>`` tags from `xml`. Insert UUID. Args: marc_xml (str): Original Aleph record. xml (str): XML which will be postprocessed. func (fn): Function, which will be used for postprocessing. uuid (str): UUID, which will be inserted to `xml`. url (str)...
"Apply `func` to all ``<mods:mods>`` tags from `xml`. Insert UUID.\n\n Args:\n marc_xml (str): Original Aleph record.\n xml (str): XML which will be postprocessed.\n func (fn): Function, which will be used for postprocessing.\n uuid (str): UUID, which will be inserted to `xml`.\n u...
93
false
edeposit/marcxml2mods
_apply_postprocessing
23,123
LDU_FT/sentinel-hub/sentinel2-cloud-detector/get_cloud_masks
LDU_FT
[ "<BEGIN>\n## `extract_pixels`", "Extract pixels from array X", " :param X: Array of images to be classified.\n :type X: numpy array, shape = [n_images, n_pixels_y, n_pixels_x, n_bands]\n :return: Reshaped 2D array\n :rtype: numpy array, [n_samples*n_pixels_y*n_pixels_x,n_bands]\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_cloud_masks API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_cloud_masks API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
The binary cloud mask is computed on the fly. Be cautious. The pixels without valid data are assigned non_valid_value. :param threshold: A float from [0,1] specifying threshold :type threshold: float :param non_valid_value: Value which will be assigned to pixels without valid data ...
"The binary cloud mask is computed on the fly. Be cautious. The pixels without valid data are assigned\n non_valid_value.\n\n :param threshold: A float from [0,1] specifying threshold\n :type threshold: float\n :param non_valid_value: Value which will be assigned to pixels without valid data...
30
false
sentinel-hub/sentinel2-cloud-detector
get_cloud_masks
23,124
LDU_FT/svven/summary/check_color
LDU_FT
[ "<BEGIN>\n## `load_raw_rules`", "Load raw rules from url or package file.\n<END>", "<BEGIN>\n## `get_image`", "Returned Image instance has response url.\r\n This might be different than the url param because of redirects.\n<END>", "<BEGIN>\n## `check_color`", "Just check if raw_image is completely ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the check_color API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the check_color API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
Just check if raw_image is completely white. http://stackoverflow.com/questions/14041562/python-pil-detect-if-an-image-is-completely-black-or-white
"Just check if raw_image is completely white.\r\n http://stackoverflow.com/questions/14041562/python-pil-detect-if-an-image-is-completely-black-or-white"
41
false
svven/summary
check_color
23,125
LDU_FT/kmerkmer/pymer/print_table
LDU_FT
[ "<BEGIN>\n## `consume_file`", "Counts all kmers in all sequences in a FASTA/FASTQ file.\n<END>", "<BEGIN>\n## `print_table`", "Prints a table of k-mer counts", " Parameters\n ----------\n sparse: bool\n Print only observed kmers\n file: IO object\n Print to ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the print_table API. 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 print_table API. 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...
Prints a table of k-mer counts Parameters ---------- sparse: bool Print only observed kmers file: IO object Print to `file` sep: str Separate k-mers and their counts with `sep`
"Prints a table of k-mer counts\n\n Parameters\n ----------\n sparse: bool\n Print only observed kmers\n file: IO object\n Print to `file`\n sep: str\n Separate k-mers and their counts with `sep`"
11
false
kmerkmer/pymer
print_table
23,126
LDU_FT/python-bonobo/bonobo/read
LDU_FT
[ "<BEGIN>\n## `run`", "Main entry point of bonobo. It takes a graph and creates all the necessary plumbing around to execute it.", " The only necessary argument is a :class:`Graph` instance, containing the logic you actually want to execute.", " By default, this graph will be executed using the \"threadp...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the read API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the read API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
Write a row on the next line of given file. Prefix is used for newlines.
"Write a row on the next line of given file.\n Prefix is used for newlines."
140
false
python-bonobo/bonobo
read
23,127
LDU_FT/aio-libs/aiohttp-devtools/import_app_factory
LDU_FT
[ "<BEGIN>\n## `modify_main_app`", "Modify the app we're serving to make development easier, eg.\n * modify responses to add the livereload snippet\n * set ``static_root_url`` on the app\n * setup the debug toolbar\n<END>", "<BEGIN>\n## `src_reload`", "prompt each connected browser to reload by sending...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the import_app_factory 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 import_app_factory 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...
Import attribute/class from from a python module. Raise AdevConfigError if the import failed. :return: (attribute, Path object for directory of file)
"Import attribute/class from from a python module. Raise AdevConfigError if the import failed.\n\n :return: (attribute, Path object for directory of file)"
32
false
aio-libs/aiohttp-devtools
import_app_factory
23,128
LDU_FT/Chilipp/psy-simple/show_colormap
LDU_FT
[ "<BEGIN>\n## `try_and_error`", "Apply multiple validation functions", " Parameters\n ----------\n ``*funcs``\n Validation functions to test", " Returns\n -------\n function\n<END>", "<BEGIN>\n## `validate_text`", "Validate a text formatoption", " Parameters\n ----------\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the show_colormap API. 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 show_colormap API. 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...
Show a colormap dialog Parameters ---------- %(show_colormaps.parameters.no_use_qt)s
"Show a colormap dialog\n\n Parameters\n ----------\n %(show_colormaps.parameters.no_use_qt)s"
183
false
Chilipp/psy-simple
show_colormap
23,129
LDU_FT/LudovicRousseau/pyscard/synchronize
LDU_FT
[ "<BEGIN>\n## `translateprotocolmask`", "Translate CardConnection protocol mask into PCSC protocol mask.\n<END>", "<BEGIN>\n## `translateprotocolheader`", "Translate protocol into PCSC protocol header.\n<END>", "<BEGIN>\n## `connect`", "Connect to the card.", " If protocol is not specified, connec...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the synchronize API. 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 synchronize API. 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...
Synchronize methods in the given class. Only synchronize the methods whose names are given, or all methods if names=None.
"Synchronize methods in the given class.\n Only synchronize the methods whose names are\n given, or all methods if names=None."
164
false
LudovicRousseau/pyscard
synchronize
23,130
LDU_FT/fedora-infra/fmn.rules/koschei_group
LDU_FT
[ "<BEGIN>\n## `pagure_specific_project_filter`", "Particular pagure projects", " Adding this rule allows you to get notifications for one or more\n `pagure.io <https://pagure.io>`_ projects. Specify multiple\n projects by separating them with a comma ','.\n<END>", "<BEGIN>\n## `pagure_specific_proj...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the koschei_group API. 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 koschei_group API. 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...
Particular Koschei package groups This rule limits message to particular `Koschei <https://apps.fedoraproject.org/koschei/>`_ groups. You can specify more groups separated by commas.
"Particular Koschei package groups\n\n This rule limits message to particular\n `Koschei <https://apps.fedoraproject.org/koschei/>`_ groups.\n You can specify more groups separated by commas."
95
false
fedora-infra/fmn.rules
koschei_group
23,131
LDU_FT/datastore/datastore/insertDatastore
LDU_FT
[ "<BEGIN>\n## `list`", "Returns the `list` representation of this Key.", " Note that this method assumes the key is immutable.\n<END>", "<BEGIN>\n## `instance`", "Returns an instance Key, by appending a name to the namespace.\n<END>", "<BEGIN>\n## `parent`", "Returns the parent Key (all namespaces exc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the insertDatastore API. 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 insertDatastore API. 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...
Inserts datastore `store` into this collection at `index`.
"Inserts datastore `store` into this collection at `index`."
180
false
datastore/datastore
insertDatastore
23,132
LDU_FT/Preston-Landers/concurrent-log-handler/doRollover
LDU_FT
[ "<BEGIN>\n## `get_all_logger_names`", "Return ``list`` of names of all loggers than have been accessed.", " Warning: this is sensitive to internal structures in the standard logging module.\n<END>", "<BEGIN>\n## `queuify_logger`", "Replace logger's handlers with a queue handler while adding existing\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the doRollover API. 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 doRollover API. 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...
Do a rollover, as described in __init__().
"Do a rollover, as described in __init__()."
24
false
Preston-Landers/concurrent-log-handler
doRollover
23,133
LDU_FT/evansde77/dockerstache/load
LDU_FT
[ "<BEGIN>\n## `run`", "_run_", " Run the dockerstache process to render templates\n based on the options provided", " If extend_context is passed as options it will be used to\n extend the context with the contents of the dictionary provided\n via context.update(extend_context)\n<END>", "<BEGI...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
_load_ Load the defaults file if specified and overlay the json file on top of that
"_load_\n\n Load the defaults file if specified\n and overlay the json file on top of that"
45
false
evansde77/dockerstache
load
23,134
LDU_FT/MacHu-GWU/angora-project/plot_one_month
LDU_FT
[ "<BEGIN>\n## `run_backup`", "The backup utility method.", " :param root_dir: the directory you want to backup\n :param ignore: file or directory defined in this list will be ignored.\n :param ignore_ext: file with extensions defined in this list will be ignored.\n :param ignore_pattern: any file or ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the plot_one_month API. 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 plot_one_month API. 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...
时间跨度为一月。 major tick = every days
"时间跨度为一月。\n \n major tick = every days"
616
false
MacHu-GWU/angora-project
plot_one_month
23,135
LDU_FT/awslabs/aws-shell/temporary_file
LDU_FT
[ "<BEGIN>\n## `_create_key_manager`", "Create and initialize the keybinding manager.", " :type get_fuzzy_match: callable\n :param get_fuzzy_match: Gets the fuzzy matching config.", " :type set_fuzzy_match: callable\n :param set_fuzzy_match: Sets the fuzzy matching config.", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the temporary_file API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the temporary_file API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
Cross platform temporary file creation. This is an alternative to ``tempfile.NamedTemporaryFile`` that also works on windows and avoids the "file being used by another process" error.
"Cross platform temporary file creation.\n\n This is an alternative to ``tempfile.NamedTemporaryFile`` that\n also works on windows and avoids the \"file being used by\n another process\" error."
109
false
awslabs/aws-shell
temporary_file
23,136
LDU_FT/jaysonsantos/python-binary-memcached/incr
LDU_FT
[ "<BEGIN>\n## `str_to_bytes`", "Simply convert a string type to bytes if the value is a string\n and is an instance of six.string_types but not of six.binary_type\n in python2 struct.pack(\"<Q\") is both string_types and binary_type but\n in python3 struct.pack(\"<Q\") is binary_type but not a string_type...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the incr API. 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 incr API. 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...
Increment a key, if it exists, returns it's actual value, if it don't, return 0. :param key: Key's name :type key: six.string_types :param value: Number to be incremented :type value: int :return: Actual value of the key on server :rtype: int
"Increment a key, if it exists, returns it's actual value, if it don't, return 0.\n\n :param key: Key's name\n :type key: six.string_types\n :param value: Number to be incremented\n :type value: int\n :return: Actual value of the key on server\n :rtype: int"
132
false
jaysonsantos/python-binary-memcached
incr
23,137
LDU_FT/amirziai/flatten/unflatten_list
LDU_FT
[ "<BEGIN>\n## `_construct_key`", "Returns the new_key if no previous key exists, otherwise concatenates\n previous key, separator, and new_key\n :param previous_key:\n :param separator:\n :param new_key:\n :return: a string if previous_key exists and simply passes through the\n new_key otherwise\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the unflatten_list API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the unflatten_list API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
Unflattens a dictionary, first assuming no lists exist and then tries to identify lists and replaces them This is probably not very efficient and has not been tested extensively Feel free to add test cases or rewrite the logic Issues that stand out to me: - Sorting all the keys in the dictionary, wh...
"Unflattens a dictionary, first assuming no lists exist and then tries to\n identify lists and replaces them\n This is probably not very efficient and has not been tested extensively\n Feel free to add test cases or rewrite the logic\n Issues that stand out to me:\n - Sorting all the keys in the dictiona...
13
false
amirziai/flatten
unflatten_list
23,138
LDU_FT/spencerahill/aospy/submit_mult_calcs
LDU_FT
[ "<BEGIN>\n## `_preprocess_and_rename_grid_attrs`", "Call a custom preprocessing method first then rename grid attrs.", " This wrapper is needed to generate a single function to pass to the\n ``preprocesss`` of xr.open_mfdataset. It makes sure that the\n user-specified preprocess function is called on ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the submit_mult_calcs API. 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 submit_mult_calcs API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Generate and execute all specified computations. Once the calculations are prepped and submitted for execution, any calculation that triggers any exception or error is skipped, and the rest of the calculations proceed unaffected. This prevents an error in a single calculation from crashing a large sui...
"Generate and execute all specified computations.\n\n Once the calculations are prepped and submitted for execution, any\n calculation that triggers any exception or error is skipped, and the rest\n of the calculations proceed unaffected. This prevents an error in a single\n calculation from crashing a lar...
323
false
spencerahill/aospy
submit_mult_calcs
23,139
LDU_FT/sananth12/ImageScraper/process_download_path
LDU_FT
[ "<BEGIN>\n## `download_worker_fn`", "Stnadalone function that downloads images.\n<END>", "<BEGIN>\n## `get_arguments`", "Gets the arguments from the command line.\n<END>", "<BEGIN>\n## `get_html`", "Downloads HTML content of page given the page_url\n<END>", "<BEGIN>\n## `process_download_path`", "Proc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the process_download_path API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the process_download_path API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Processes the download path. It checks if the path exists and the scraper has write permissions.
"Processes the download path.\n\n It checks if the path exists and the scraper has\n write permissions."
18
false
sananth12/ImageScraper
process_download_path
23,140
LDU_FT/rstoneback/pysatMagVect/add_mag_drift_unit_vectors_ecef
LDU_FT
[ "<BEGIN>\n## `add_mag_drift_unit_vectors_ecef`", "Adds unit vectors expressing the ion drift coordinate system\n organized by the geomagnetic field. Unit vectors are expressed\n in ECEF coordinates.", " Parameters\n ----------\n inst : pysat.Instrument\n Instrument object that will get uni...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_mag_drift_unit_vectors_ecef API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its co...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_mag_drift_unit_vectors_ecef API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its co...
Adds unit vectors expressing the ion drift coordinate system organized by the geomagnetic field. Unit vectors are expressed in ECEF coordinates. Parameters ---------- inst : pysat.Instrument Instrument object that will get unit vectors max_steps : int Maximum number of steps...
"Adds unit vectors expressing the ion drift coordinate system\n organized by the geomagnetic field. Unit vectors are expressed\n in ECEF coordinates.\n \n Parameters\n ----------\n inst : pysat.Instrument\n Instrument object that will get unit vectors\n max_steps : int\n Maximum numbe...
108
false
rstoneback/pysatMagVect
add_mag_drift_unit_vectors_ecef
23,141
LDU_FT/coleifer/walrus/interstore
LDU_FT
[ "<BEGIN>\n## `get`", "Retreive a value from the cache. In the event the value\n does not exist, return the ``default``.\n<END>", "<BEGIN>\n## `set`", "Cache the given ``value`` in the specified ``key``. If no\n timeout is specified, the default timeout will be used.\n<END>", "<BEGIN>\n## `flus...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the interstore API. 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 interstore API. 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...
Store the intersection of the current set and one or more others in a new key. :param dest: the name of the key to store intersection :param others: One or more :py:class:`Set` instances :returns: A :py:class:`Set` referencing ``dest``.
"Store the intersection of the current set and one or more\n others in a new key.\n\n :param dest: the name of the key to store intersection\n :param others: One or more :py:class:`Set` instances\n :returns: A :py:class:`Set` referencing ``dest``."
363
false
coleifer/walrus
interstore
23,142
LDU_FT/mfitzp/padua/modifiedaminoacids
LDU_FT
[ "<BEGIN>\n## `remove_rows_matching`", "Return a ``DataFrame`` with rows where `column` values match `match` are removed.", " The selected `column` series of values from the supplied Pandas ``DataFrame`` is compared\n to `match`, and those rows that match are removed from the DataFrame.", " :param df:...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the modifiedaminoacids 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 modifiedaminoacids 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...
Calculate the number of modified amino acids in supplied ``DataFrame``. Returns the total of all modifications and the total for each amino acid individually, as an ``int`` and a ``dict`` of ``int``, keyed by amino acid, respectively. :param df: Pandas ``DataFrame`` containing processed data. :return:...
"Calculate the number of modified amino acids in supplied ``DataFrame``.\n\n Returns the total of all modifications and the total for each amino acid individually, as an ``int`` and a\n ``dict`` of ``int``, keyed by amino acid, respectively.\n\n :param df: Pandas ``DataFrame`` containing processed data.\n :...
266
false
mfitzp/padua
modifiedaminoacids
23,143
LDU_FT/PyMySQL/PyMySQL/_parse_field_descriptor
LDU_FT
[ "<BEGIN>\n## `close`", "Closing a cursor just exhausts all remaining data.\n<END>", "<BEGIN>\n## `mogrify`", "Returns the exact string that is sent to the database by calling the\n execute() method.", " This method follows the extension to the DB API 2.0 followed by Psycopg.\n<END>", "<BEGIN...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _parse_field_descriptor 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 _parse_field_descriptor API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion...
Parse the 'Field Descriptor' (Metadata) packet. This is compatible with MySQL 4.1+ (not compatible with MySQL 4.0).
"Parse the 'Field Descriptor' (Metadata) packet.\n\n This is compatible with MySQL 4.1+ (not compatible with MySQL 4.0)."
88
false
PyMySQL/PyMySQL
_parse_field_descriptor
23,144
LDU_FT/DallasMorningNews/django-datafreezer/generate_page_title
LDU_FT
[ "<BEGIN>\n## `clean`", "Verifies that beginning date is before ending date.\n<END>", "<BEGIN>\n## `get_success_url`", "Ensure the user-originating redirection URL is safe.\n<END>", "<BEGIN>\n## `form_valid`", "Security check complete. Log the user in.\n<END>", "<BEGIN>\n## `map_hubs_to_verticals`", "R...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the generate_page_title 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 generate_page_title 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...
Generates remainder of page title specific to data_slug (tag).
"Generates remainder of page title specific to data_slug (tag)."
63
false
DallasMorningNews/django-datafreezer
generate_page_title
23,145
LDU_FT/pydanny-archive/django-wysiwyg/wysiwyg_static_url
LDU_FT
[ "<BEGIN>\n## `get_settings`", "Utility function to retrieve settings.py values with defaults\n<END>", "<BEGIN>\n## `wysiwyg_setup`", "Create the <style> and <script> tags needed to initialize the rich text editor.", " Create a local django_wysiwyg/includes.html template if you don't want to use Yahoo's C...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the wysiwyg_static_url API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the wysiwyg_static_url API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
Automatically use an prefix if a given application is installed. For example, if django-ckeditor is installed, use it's STATIC_URL/ckeditor folder to find the CKEditor distribution. When the application does not available, fallback to the default path. This is a function for the internal templates of *djan...
"Automatically use an prefix if a given application is installed.\n For example, if django-ckeditor is installed, use it's STATIC_URL/ckeditor folder to find the CKEditor distribution.\n When the application does not available, fallback to the default path.\n\n This is a function for the internal templates of ...
14
false
pydanny-archive/django-wysiwyg
wysiwyg_static_url
23,146
LDU_FT/click-contrib/sphinx-click/_format_argument
LDU_FT
[ "<BEGIN>\n## `_get_usage`", "Alternative, non-prefixed version of 'get_usage'.\n<END>", "<BEGIN>\n## `_get_help_record`", "Re-implementation of click.Opt.get_help_record.", " The variant of 'get_help_record' found in Click makes uses of slashes to\n separate multiple opts, and formats option arguments...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _format_argument API. 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 _format_argument API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Format the output of a `click.Argument`.
"Format the output of a `click.Argument`."
25
false
click-contrib/sphinx-click
_format_argument
23,147
LDU_FT/hyperledger/indy-plenum/prettyDateDifference
LDU_FT
[ "<BEGIN>\n## `set_status`", "Set the status of the motor to the specified value if not already set.\n<END>", "<BEGIN>\n## `stop`", "Set the status to Status.stopping and also call `onStopping`\n with the provided args and kwargs.\n<END>", "<BEGIN>\n## `next_primary_replica_name_for_master`", "Retur...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the prettyDateDifference 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 prettyDateDifference API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Get a datetime object or a int() Epoch timestamp and return a pretty string like 'an hour ago', 'Yesterday', '3 months ago', 'just now', etc
"Get a datetime object or a int() Epoch timestamp and return a\n pretty string like 'an hour ago', 'Yesterday', '3 months ago',\n 'just now', etc"
773
false
hyperledger/indy-plenum
prettyDateDifference
23,148
LDU_FT/cogeotiff/rio-tiler/bounds
LDU_FT
[ "<BEGIN>\n## `_meters_per_pixel`", "Return the pixel resolution for a given mercator tile zoom and lattitude.", " Parameters\n ----------\n zoom: int\n Mercator zoom level\n lat: float, optional\n Latitude in decimal degree (default: 0)\n tilesize: int, optional\n Mercator ti...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the bounds API. 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 bounds API. 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 ...
Retrieve image bounds. Attributes ---------- sceneid : str Sentinel-2 sceneid. Returns ------- out : dict dictionary with image bounds.
"Retrieve image bounds.\n\n Attributes\n ----------\n sceneid : str\n Sentinel-2 sceneid.\n\n Returns\n -------\n out : dict\n dictionary with image bounds."
137
false
cogeotiff/rio-tiler
bounds
23,149
LDU_FT/Arvedui/picuplib/gen_user_agent
LDU_FT
[ "<BEGIN>\n## `gen_user_agent`", "generating the user agent witch will be used for most requests", " monkey patching system and release functions from platform module\n to prevent disclosure of the OS and it's version\n<END>", "<BEGIN>\n## `check_rotation`", "checks rotation parameter if illegal value ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the gen_user_agent API. 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 gen_user_agent API. 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...
generating the user agent witch will be used for most requests monkey patching system and release functions from platform module to prevent disclosure of the OS and it's version
"generating the user agent witch will be used for most requests\n\n monkey patching system and release functions from platform module\n to prevent disclosure of the OS and it's version"
27
false
Arvedui/picuplib
gen_user_agent
23,150
LDU_FT/volafiled/python-volapi/filedict
LDU_FT
[ "<BEGIN>\n## `register_callback`", "Register callback that we will have to wait for\n<END>", "<BEGIN>\n## `_handle_callback`", "Handle lain's callback. Only used with getFileinfo so far\n<END>", "<BEGIN>\n## `_handle_config`", "Handle initial config push and config changes\n<END>", "<BEGIN>\n## `find_ve...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the filedict API. 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 filedict API. 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...
Updates filedict with single file entry or deletes given key if the value is False. Shouldn't be used by the user.
"Updates filedict with single file entry or deletes given\n key if the value is False. Shouldn't be used by the user."
78
false
volafiled/python-volapi
filedict
23,151
LDU_FT/django-leonardo/django-leonardo/get_form
LDU_FT
[ "<BEGIN>\n## `sort_dependencies`", "Sort a list of (app_config, models) pairs into a single list of models.\n The single list of models is sorted so that any model with a natural key\n is serialized before a normal model, and any model with a natural key\n dependency has it's dependencies serialized firs...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_form API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_form API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
Returns an instance of the form to be used in this view.
"Returns an instance of the form to be used in this view."
267
false
django-leonardo/django-leonardo
get_form
23,152
LDU_FT/kyuupichan/aiorpcX/batch_message_from_parts
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 batch_message_from_parts 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 batch_message_from_parts API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio...
Convert messages, one per batch item, into a batch message. At least one message must be passed.
"Convert messages, one per batch item, into a batch message. At\n least one message must be passed."
118
false
kyuupichan/aiorpcX
batch_message_from_parts
23,153
LDU_FT/lobocv/crashreporter/get_local_references
LDU_FT
[ "<BEGIN>\n## `setup_smtp`", "Set up the crash reporter to send reports via email using SMTP", " :param host: SMTP host\n :param port: SMTP port\n :param user: sender email address\n :param passwd: sender email password\n :param recipients: list or comma separated string of rec...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_local_references 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_local_references API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Find the values of the local variables within the traceback scope. :param tb: traceback :return: list of tuples containing (variable name, value)
"Find the values of the local variables within the traceback scope.\n\n :param tb: traceback\n :return: list of tuples containing (variable name, value)"
59
false
lobocv/crashreporter
get_local_references
23,154
LDU_FT/fjwCode/cerium/find_elements_by_name
LDU_FT
[ "<BEGIN>\n## `version`", "Show the version number of Android Debug Bridge.\n<END>", "<BEGIN>\n## `devices_l`", "List connected devices (-l for long output).\n<END>", "<BEGIN>\n## `connect`", "Connect to a device via TCP/IP directly.\n<END>", "<BEGIN>\n## `disconnect`", "Disconnect from given TCP/IP de...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_elements_by_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. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_elements_by_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. ...
Finds multiple elements by name. Args: name: The name of the elements to be found. update: If the interface has changed, this option should be True. Returns: A list with elements if any was found. An empty list if not. Raises: NoSuchElementExcep...
"Finds multiple elements by name.\n\n Args:\n name: The name of the elements to be found.\n update: If the interface has changed, this option should be True.\n\n Returns:\n A list with elements if any was found. An empty list if not.\n\n Raises:\n NoSuchE...
95
false
fjwCode/cerium
find_elements_by_name
23,155
LDU_FT/vladimarius/pyap/_normalize_string
LDU_FT
[ "<BEGIN>\n## `parse`", "Returns a list of addresses found in text\n together with parsed address parts\n<END>", "<BEGIN>\n## `_combine_results`", "Combine results from different parsed parts:\n we look for non-empty results in values like\n 'postal_code_b' or 'postal_code_c' and s...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _normalize_string API. 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 _normalize_string API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Prepares incoming text for parsing: removes excessive spaces, tabs, newlines, etc.
"Prepares incoming text for parsing:\n removes excessive spaces, tabs, newlines, etc."
11
false
vladimarius/pyap
_normalize_string
23,156
LDU_FT/mcocdawc/chemcoord/check_absolute_refs
LDU_FT
[ "<BEGIN>\n## `_check_construction_table`", "Checks if a construction table uses valid references.\n Raises an exception (UndefinedCoordinateSystem) otherwise.\n<END>", "<BEGIN>\n## `_get_frag_constr_table`", "Create a construction table for a Zmatrix.", " A construction table is basically a Zm...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the check_absolute_refs API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the check_absolute_refs API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
Checks first three rows of ``construction_table`` for linear references Checks for each index from first to third row of the ``construction_table``, if the references are colinear. This case has to be specially treated, because the references are not only atoms (to fix internal degrees ...
"Checks first three rows of ``construction_table`` for linear references\n\n Checks for each index from first to third row of the\n ``construction_table``, if the references are colinear.\n This case has to be specially treated, because the references\n are not only atoms (to fix internal de...
503
false
mcocdawc/chemcoord
check_absolute_refs
23,157
LDU_FT/ikalnytskyi/dooku/chunk_by
LDU_FT
[ "<BEGIN>\n## `to_iso8601`", "Returns an ISO-8601 representation of a given datetime instance.", " >>> to_iso8601(datetime.datetime.now())\n '2014-10-01T23:21:33.718508Z'", " :param dt: a :class:`~datetime.datetime` instance\n :param tz: a :class:`~datetime.tzinfo` to use; if None - use a d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the chunk_by API. 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 chunk_by API. 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...
Iterate over a given ``iterable`` by ``n`` elements at a time. >>> for x, y in chunk_by(2, [1, 2, 3, 4, 5]): ... # iteration no 1: x=1, y=2 ... # iteration no 2: x=3, y=4 ... # iteration no 3: x=5, y=None :param n: (int) a chunk size number :param iterable: (iterator) an input ...
"Iterate over a given ``iterable`` by ``n`` elements at a time.\n\n >>> for x, y in chunk_by(2, [1, 2, 3, 4, 5]):\n ... # iteration no 1: x=1, y=2\n ... # iteration no 2: x=3, y=4\n ... # iteration no 3: x=5, y=None\n\n :param n: (int) a chunk size number\n :param iterable: (iterator) ...
36
false
ikalnytskyi/dooku
chunk_by
23,158
LDU_FT/jciskey/pygraph/new_edge
LDU_FT
[ "<BEGIN>\n## `build_cycle_graph`", "Builds a cycle graph with the specified number of nodes.\n Ref: http://mathworld.wolfram.com/CycleGraph.html\n<END>", "<BEGIN>\n## `build_wheel_graph`", "Builds a wheel graph with the specified number of nodes.\n Ref: http://mathworld.wolfram.com/WheelGraph.html...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the new_edge API. 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 new_edge API. 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...
Adds a new edge from node_a to node_b that has a cost. Returns the edge id of the new edge.
"Adds a new edge from node_a to node_b that has a cost.\n Returns the edge id of the new edge."
189
false
jciskey/pygraph
new_edge
23,159
LDU_FT/aws/chalice/to_cfn_resource_name
LDU_FT
[ "<BEGIN>\n## `create_from_lambda_arn`", "Create a LogRetriever from a client and lambda arn.", " :type client: botocore.client.Logs\n :param client: A ``logs`` client.", " :type lambda_arn: str\n :param lambda_arn: The ARN of the lambda function.", " :return: An instance o...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the to_cfn_resource_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. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the to_cfn_resource_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. ...
Transform a name to a valid cfn name. This will convert the provided name to a CamelCase name. It's possible that the conversion to a CFN resource name can result in name collisions. It's up to the caller to handle name collisions appropriately.
"Transform a name to a valid cfn name.\n\n This will convert the provided name to a CamelCase name.\n It's possible that the conversion to a CFN resource name\n can result in name collisions. It's up to the caller\n to handle name collisions appropriately."
96
false
aws/chalice
to_cfn_resource_name
23,160
LDU_FT/diamondman/proteusisc/count
LDU_FT
[ "<BEGIN>\n## `_get_adv_trans_stats`", "Utility function to fetch the transfer statistics for the last\n advanced transfer. Checking the stats appears to sync the\n controller. For details on the advanced transfer please refer\n to the documentation at\n http://diamondman.github.io/Adap...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the count API. 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 count API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
Get the number of bits in the array with the specified value. Args: val: A boolean value to check against the array's value. Returns: An integer of the number of bits in the array equal to val.
"Get the number of bits in the array with the specified value.\n\n Args:\n val: A boolean value to check against the array's value.\n\n Returns:\n An integer of the number of bits in the array equal to val."
114
false
diamondman/proteusisc
count
23,161
LDU_FT/bjmorgan/lattice_mc/site_specific_nn_occupation
LDU_FT
[ "<BEGIN>\n## `collective_dr_squared`", "Squared sum of total displacements for these atoms.", " Args:\n None", " Returns:\n (Float): The square of the summed total displacements for these atoms.\n<END>", "<BEGIN>\n## `occupations`", "Number of these atoms occupying a sp...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the site_specific_nn_occupation 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 site_specific_nn_occupation API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclu...
Returns the number of occupied nearest neighbour sites, classified by site type. Args: None Returns: (Dict(Str:Int)): Dictionary of nearest-neighbour occupied site numbers, classified by site label, e.g. { 'A' : 2, 'B' : 1 }.
"Returns the number of occupied nearest neighbour sites, classified by site type.\n\n Args:\n None\n\n Returns:\n (Dict(Str:Int)): Dictionary of nearest-neighbour occupied site numbers, classified by site label, e.g. { 'A' : 2, 'B' : 1 }."
213
false
bjmorgan/lattice_mc
site_specific_nn_occupation
23,162
LDU_FT/mila/pyoo/str_repr
LDU_FT
[ "<BEGIN>\n## `str_repr`", "Implements string conversion methods for the given class.", " The given class must implement the __str__ method. This decorat\n will add __repr__ and __unicode__ (for Python 2).\n<END>", "<BEGIN>\n## `_clean_slice`", "Validates and normalizes a cell range slice.", " >>>...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the str_repr API. 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 str_repr API. 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...
Implements string conversion methods for the given class. The given class must implement the __str__ method. This decorat will add __repr__ and __unicode__ (for Python 2).
"Implements string conversion methods for the given class.\n\n The given class must implement the __str__ method. This decorat\n will add __repr__ and __unicode__ (for Python 2)."
70
false
mila/pyoo
str_repr
23,163
LDU_FT/cthorey/pdsimage/lat_id
LDU_FT
[ "<BEGIN>\n## `_category`", "Type of the image: LOLA or WAC", " Note: Specify the attribute ``grid``, ``img`` and ``lbl`\n<END>", "<BEGIN>\n## `_user_yes_no_query`", "Helper asking if the user want to download the file", " Note:\n Dowloading huge file can take a while\n<END>", "<...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the lat_id API. 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 lat_id API. 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 the corresponding latitude Args: line (int): Line number Returns: Correponding latitude in degree
"Return the corresponding latitude\n\n Args:\n line (int): Line number\n\n Returns:\n Correponding latitude in degree"
106
false
cthorey/pdsimage
lat_id
23,164
LDU_FT/mandiant/ioc_writer/make_fileitem_fullpath
LDU_FT
[ "<BEGIN>\n## `get_embedded_yara`", "Extract YARA signatures embedded in Yara/Yara indicatorItem nodes.\n This is done regardless of logic structure in the OpenIOC.\n<END>", "<BEGIN>\n## `get_yara_condition_string`", "get_yara_condition_string", " input\n indicator_node: this is the ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the make_fileitem_fullpath API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the make_fileitem_fullpath API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
Create a node for FileItem/FullPath :return: A IndicatorItem represented as an Element node
"Create a node for FileItem/FullPath\n \n :return: A IndicatorItem represented as an Element node"
320
false
mandiant/ioc_writer
make_fileitem_fullpath
23,165
LDU_FT/lacava/few/fit_predict
LDU_FT
[ "<BEGIN>\n## `survival`", "routes to the survival method, returns survivors\n<END>", "<BEGIN>\n## `tournament`", "conducts tournament selection of size tourn_size\n<END>", "<BEGIN>\n## `lexicase`", "conducts lexicase selection for de-aggregated fitness vectors\n<END>", "<BEGIN>\n## `epsilon_lexicase`", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the fit_predict API. 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 fit_predict API. 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...
Convenience function that fits a pipeline then predicts on the provided features Parameters ---------- features: array-like {n_samples, n_features} Feature matrix labels: array-like {n_samples} List of class labels for prediction Returns ...
"Convenience function that fits a pipeline then predicts on the\n provided features\n\n Parameters\n ----------\n features: array-like {n_samples, n_features}\n Feature matrix\n labels: array-like {n_samples}\n List of class labels for prediction\n\n Retur...
54
false
lacava/few
fit_predict
23,166
LDU_FT/ucsb-cs/submit/points_possible
LDU_FT
[ "<BEGIN>\n## `compute_diff`", "Associate the diff (if exists) with the TestCaseResult.", " Return whether or not the outputs match.\n<END>", "<BEGIN>\n## `json_exception`", "Always return json content in the body of Exceptions to xhr requests.\n<END>", "<BEGIN>\n## `merge_users`", "Merge a non-umail ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the points_possible API. 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 points_possible API. 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 total points possible for this project.
"Return the total points possible for this project."
102
false
ucsb-cs/submit
points_possible
23,167
LDU_FT/dw/mitogen/stream_by_method_name
LDU_FT
[ "<BEGIN>\n## `setup`", "Install handlers for Mitogen loggers to redirect them into the Ansible\n display framework. Ansible installs its own logging framework handlers when\n C.DEFAULT_LOG_PATH is set, therefore disable propagation for our handlers.\n<END>", "<BEGIN>\n## `dict_diff`", "Return a dict rep...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the stream_by_method_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. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the stream_by_method_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. ...
Given the name of a Mitogen connection method, import its implementation module and return its Stream subclass.
"Given the name of a Mitogen connection method, import its implementation\n module and return its Stream subclass."
843
false
dw/mitogen
stream_by_method_name
23,168
LDU_FT/garnaat/placebo/get_serializer
LDU_FT
[ "<BEGIN>\n## `_serialize_json`", "Serialize ``obj`` as a JSON formatted stream to ``fp``\n<END>", "<BEGIN>\n## `get_serializer`", "Get the serializer for a specific format\n<END>", "<BEGIN>\n## `get_deserializer`", "Get the deserializer for a specific format\n<END>", "<BEGIN>\n## `_set_logger`", "Conv...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_serializer API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_serializer API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
Get the serializer for a specific format
"Get the serializer for a specific format"
18
false
garnaat/placebo
get_serializer
23,169
LDU_FT/praekeltfoundation/seed-auth-api/post
LDU_FT
[ "<BEGIN>\n## `get_true_false_both`", "Tries to get and return a valid of true, false, or both from the field\n name in the query string, raises a ValidationError for invalid values.\n<END>", "<BEGIN>\n## `get_queryset`", "We want to still be able to modify archived organizations, but they\n shouldn'...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the post API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the post API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
Create a token, given an email and password. Removes all other tokens for that user.
"Create a token, given an email and password. Removes all other\n tokens for that user."
34
false
praekeltfoundation/seed-auth-api
post
23,170
LDU_FT/teepark/junction/publish_receiver_count
LDU_FT
[ "<BEGIN>\n## `wait_connected`", "Wait for connections to be made and their handshakes to finish", " :param conns:\n a single or list of (host, port) tuples with the connections that\n must be finished before the method will return. defaults to all the\n peers the :class:`...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the publish_receiver_count 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 publish_receiver_count API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
Get the number of peers that would handle a particular publish :param service: the service name :type service: anything hash-able :param routing_id: the id used for limiting the service handlers :type routing_id: int
"Get the number of peers that would handle a particular publish\n\n :param service: the service name\n :type service: anything hash-able\n :param routing_id: the id used for limiting the service handlers\n :type routing_id: int"
131
false
teepark/junction
publish_receiver_count
23,171
LDU_FT/ratcave/ratcave/_init_coord_properties
LDU_FT
[ "<BEGIN>\n## `add_child`", "Adds an object as a child in the scene graph.\n<END>", "<BEGIN>\n## `add_children`", "Conveniience function: Adds objects as children in the scene graph.\n<END>", "<BEGIN>\n## `match_aspect_to_viewport`", "Updates Camera.aspect to match the viewport's aspect ratio.\n<END>", "...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _init_coord_properties 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 _init_coord_properties API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
Generates combinations of named coordinate values, mapping them to the internal array. For Example: x, xy, xyz, y, yy, zyx, etc
"Generates combinations of named coordinate values, mapping them to the internal array.\n For Example: x, xy, xyz, y, yy, zyx, etc"
79
false
ratcave/ratcave
_init_coord_properties
23,172