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/lexibank/pylexibank/add_languages
LDU_FT
[ "<BEGIN>\n## `tokenizer`", "Datasets can provide support for segmentation (aka tokenization) in two ways:\n - by providing an orthography profile at etc/orthography.tsv or\n - by overwriting this method to return a custom tokenizer callable.", " :return: A callable to do segmentation.", "...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_languages API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_languages API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
Add languages as specified in a dataset's etc/languages.csv :param id_factory: A callable taking a dict describing a language as argument and returning\ a value to be used as ID for the language. :return: The set of language IDs which have been added.
"Add languages as specified in a dataset's etc/languages.csv\n\n :param id_factory: A callable taking a dict describing a language as argument and returning\\\n a value to be used as ID for the language.\n :return: The set of language IDs which have been added."
48
false
lexibank/pylexibank
add_languages
18,473
LDU_FT/fp12/achallonge/get_matches
LDU_FT
[ "<BEGIN>\n## `report_winner`", "report scores and give a winner", " |methcoro|", " Args:\n winner: :class:Participant instance\n scores_csv: Comma separated set/game scores with player 1 score first (e.g. \"1-3,3-0,3-2\")", " Raises:\n ValueError: scores...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_matches API. 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_matches API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
get all matches (once the tournament is started) |methcoro| Args: force_update (default=False): True to force an update to the Challonge API Returns: list[Match]: Raises: APIException
"get all matches (once the tournament is started)\n\n |methcoro|\n\n Args:\n force_update (default=False): True to force an update to the Challonge API\n\n Returns:\n list[Match]:\n\n Raises:\n APIException"
173
false
fp12/achallonge
get_matches
18,474
LDU_FT/gouthambs/Flask-Blogging/process_post
LDU_FT
[ "<BEGIN>\n## `init_app`", "Initialize the engine.", " :param app: The app to use\n :type app: Object\n :param storage: The blog storage instance that implements the\n :type storage: Object\n :param cache: (Optional) A Flask-Cache object to enable caching\n :type cache: ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the process_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 extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the process_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 extr...
A high level view to create post processing. :param post: Dictionary representing the post :type post: dict :param render: Choice if the markdown text has to be converted or not :type render: bool :return:
"A high level view to create post processing.\n :param post: Dictionary representing the post\n :type post: dict\n :param render: Choice if the markdown text has to be converted or not\n :type render: bool\n :return:"
53
false
gouthambs/Flask-Blogging
process_post
18,475
LDU_FT/YuriyGuts/pygoose/save_features
LDU_FT
[ "<BEGIN>\n## `split_into_batches`", "Break the input data into smaller batches, optionally saving each one to disk.", " Args:\n input_list: An input object that has a list-like interface (indexing and slicing).\n batch_size: The maximum number of input items in each batch.\n batch_storag...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the save_features API. 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 save_features API. 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...
Save features for the training and test sets to disk, along with their metadata. Args: train_features: A NumPy array of features for the training set. test_features: A NumPy array of features for the test set. feature_names: A list containing the names of the feature columns...
"Save features for the training and test sets to disk, along with their metadata.\n\n Args:\n train_features: A NumPy array of features for the training set.\n test_features: A NumPy array of features for the test set.\n feature_names: A list containing the names of the feature c...
72
false
YuriyGuts/pygoose
save_features
18,476
LDU_FT/nrcharles/caelum/message_index
LDU_FT
[ "<BEGIN>\n## `parse_noaa_line`", "Parse NOAA stations.", " This is an old list, the format is:", " NUMBER NAME & STATE/COUNTRY LAT LON ELEV (meters)", " 010250 TROMSO NO 6941N 01855E 10\n<END>", "<BEGIN>\n## `closest_eere`", "Find closes...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the message_index API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the message_index API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
get message index of components for urllib2. Args: url(string): Returns: list: messages
"get message index of components for urllib2.\n\n Args:\n url(string):\n\n Returns:\n list: messages"
60
false
nrcharles/caelum
message_index
18,477
LDU_FT/wind-python/windpowerlib/get_wind_efficiency_curve
LDU_FT
[ "<BEGIN>\n## `reduce_wind_speed`", "r\"\"\"\n Reduces wind speed by a wind efficiency curve.", " The wind efficiency curves are provided in the windpowerlib and were\n calculated in the dena-Netzstudie II and in the work of Knorr\n (see [1]_ and [2]_).", " Parameters\n ----------\n wind_s...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_wind_efficiency_curve API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_wind_efficiency_curve API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi...
r""" Reads wind efficiency curve(s) specified in `curve_name`. Parameters ---------- curve_name : str or list Specifies the curve. Use 'all' to get all curves in a MultiIndex DataFrame or one of the curve names to retrieve a single curve. Default: 'all'. Returns -------...
"r\"\"\"\n Reads wind efficiency curve(s) specified in `curve_name`.\n\n Parameters\n ----------\n curve_name : str or list\n Specifies the curve. Use 'all' to get all curves in a MultiIndex\n DataFrame or one of the curve names to retrieve a single curve.\n Default: 'all'.\n\n Retur...
249
false
wind-python/windpowerlib
get_wind_efficiency_curve
18,478
LDU_FT/basler/pypylon/add_line_with_subsequent_indent
LDU_FT
[ "<BEGIN>\n## `shift`", "Return a list corresponding to the lines of text in the `txt` list\n indented by `indent`. Prepend instead the string given in `prepend` to the\n beginning of the first line. Note that if len(prepend) > len(indent), then\n `prepend` will be truncated (doing better is tricky!). Thi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_line_with_subsequent_indent 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_line_with_subsequent_indent API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its co...
Add line of text and wrap such that subsequent lines are indented by `indent` spaces.
"Add line of text and wrap such that subsequent lines are indented\n by `indent` spaces."
42
false
basler/pypylon
add_line_with_subsequent_indent
18,479
LDU_FT/xoolive/traffic/bounds
LDU_FT
[ "<BEGIN>\n## `closest_point_of_approach`", "Computes a CPA dataframe for all pairs of trajectories candidates for\n being separated by less than lateral_separation in vertical_separation.", " In order to be computed efficiently, the method needs the following\n parameters:", " - projection: a firs...
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 ...
Returns the bounds of the shape. Bounds are given in the following order in the origin crs: west, south, east, north
"Returns the bounds of the shape.\n Bounds are given in the following order in the origin crs:\n west, south, east, north"
147
false
xoolive/traffic
bounds
18,480
LDU_FT/mgoral/subconvert/detectFps
LDU_FT
[ "<BEGIN>\n## `__parseFormat`", "Actual parser. Please note that time_to is not required to process as not all subtitles\n provide it.\n<END>", "<BEGIN>\n## `createSubtitle`", "Returns a correct 'Subtitle' object from a text given in 'section'. If 'section' cannot\n be parsed, None is returned.\n...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the detectFps API. 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 detectFps API. 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...
Fetch movie FPS from MPlayer output or return given default.
"Fetch movie FPS from MPlayer output or return given default."
50
false
mgoral/subconvert
detectFps
18,481
LDU_FT/wishtack/pysynthetic/_consumeArgument
LDU_FT
[ "<BEGIN>\n## `syntheticMemberDecorator`", ":type memberName: str\n :type readOnly: bool\n :type privateMemberName: str|None\n :type memberDelegate: IMemberDelegate\n<END>", "<BEGIN>\n## `namingConventionDecorator`", ":type namingConvention:INamingConvention\n<END>", "<BEGIN>\n## `makeConstructor`",...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _consumeArgument API. 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 _consumeArgument API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Returns member's value from kwargs if found or from positionalArgumentKeyValueList if found or default value otherwise. :type memberName: str :type positionalArgumentKeyValueList: list(tuple) :type kwargs: dict(string:*)
"Returns member's value from kwargs if found or from positionalArgumentKeyValueList if found\nor default value otherwise.\n :type memberName: str\n :type positionalArgumentKeyValueList: list(tuple)\n :type kwargs: dict(string:*)"
66
false
wishtack/pysynthetic
_consumeArgument
18,482
LDU_FT/planetlabs/es_fluent/and_filter
LDU_FT
[ "<BEGIN>\n## `and_filter`", "Adds a list of :class:`~es_fluent.filters.core.And` clauses, automatically\n generating :class:`~es_fluent.filters.core.And` filter if it does not\n exist.\n<END>", "<BEGIN>\n## `or_filter`", "Adds a list of :class:`~es_fluent.filters.core.Or` clauses, automatically\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the and_filter API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the and_filter API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
Adds a list of :class:`~es_fluent.filters.core.And` clauses, automatically generating :class:`~es_fluent.filters.core.And` filter if it does not exist.
"Adds a list of :class:`~es_fluent.filters.core.And` clauses, automatically\n generating :class:`~es_fluent.filters.core.And` filter if it does not\n exist."
36
false
planetlabs/es_fluent
and_filter
18,483
LDU_FT/juju/charm-helpers/os_workload_status
LDU_FT
[ "<BEGIN>\n## `get_ubuntu_release_from_sentry`", "Get Ubuntu release codename from sentry unit.", " :param sentry_unit: amulet sentry/service unit pointer\n :returns: list of strings - release codename, failure message\n<END>", "<BEGIN>\n## `validate_services`", "Validate that lists of commands...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the os_workload_status API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the os_workload_status API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
Decorator to set workload status based on complete contexts
"Decorator to set workload status based on complete contexts"
1,689
true
juju/charm-helpers
os_workload_status
18,484
LDU_FT/resync/resync/link
LDU_FT
[ "<BEGIN>\n## `read`", "Read sitemap from a URI including handling sitemapindexes.", " If index_only is True then individual sitemaps references in a sitemapindex\n will not be read. This will result in no resources being returned and is\n useful only to read the metadata and links listed in...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the link API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the link API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
Look for link with specified rel, return else None.
"Look for link with specified rel, return else None."
322
false
resync/resync
link
18,485
LDU_FT/rkhleics/wagtailmodeladmin/get_permissions_for_registration
LDU_FT
[ "<BEGIN>\n## `process_request`", "Ignore unnecessary actions for static file requests, posts, or ajax\n requests. We're only interested in redirecting following a 'natural'\n request redirection to the `wagtailadmin_explore_root` or\n `wagtailadmin_explore` views.\n<END>", "<BEGIN>\n## `get...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_permissions_for_registration API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its c...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_permissions_for_registration API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its c...
Utilised by Wagtail's 'register_permissions' hook to allow permissions for a model to be assigned to groups in settings. This is only required if the model isn't a Page model, and isn't registered as a Snippet
"Utilised by Wagtail's 'register_permissions' hook to allow permissions\n for a model to be assigned to groups in settings. This is only required\n if the model isn't a Page model, and isn't registered as a Snippet"
52
false
rkhleics/wagtailmodeladmin
get_permissions_for_registration
18,486
LDU_FT/tilezen/tilequeue/tilequeue_rawr_enqueue
LDU_FT
[ "<BEGIN>\n## `merge`", "Retrieve a list of OSciMap4 tile responses and merge them into one.", " get_tiles() retrieves data and performs basic integrity checks.\n<END>", "<BEGIN>\n## `_make_valid_if_necessary`", "attempt to correct invalid shapes if necessary", " After simplification, even when p...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the tilequeue_rawr_enqueue 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 tilequeue_rawr_enqueue API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
command to take tile expiry path and enqueue for rawr tile generation
"command to take tile expiry path and enqueue for rawr tile generation"
135
false
tilezen/tilequeue
tilequeue_rawr_enqueue
18,487
LDU_FT/limpyd/redis-limpyd-extensions/get_name_for
LDU_FT
[ "<BEGIN>\n## `get_name_for`", "Return the name for the current dynamic field, accepting a limpyd\n instance for the dynamic part\n<END>", "<BEGIN>\n## `_attach_to_model`", "Check that the model can handle dynamic fields\n<END>", "<BEGIN>\n## `pattern`", "Return the pattern used to check if a field ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_name_for API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_name_for API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
Return the name for the current dynamic field, accepting a limpyd instance for the dynamic part
"Return the name for the current dynamic field, accepting a limpyd\n instance for the dynamic part"
46
false
limpyd/redis-limpyd-extensions
get_name_for
18,488
LDU_FT/numan/py-analytics/clear_all
LDU_FT
[ "<BEGIN>\n## `_get_closest_week`", "Gets the closest monday to the date provided.\n<END>", "<BEGIN>\n## `_get_daily_date_range`", "Get the range of months that we need to use as keys to scan redis.\n<END>", "<BEGIN>\n## `_get_weekly_date_range`", "Gets the range of years that we need to use as keys to get...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the clear_all API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the clear_all API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
Deletes all ``sandsnake`` related data from redis. .. warning:: Very expensive and destructive operation. Use with causion
"Deletes all ``sandsnake`` related data from redis.\n\n .. warning::\n\n Very expensive and destructive operation. Use with causion"
54
false
numan/py-analytics
clear_all
18,489
LDU_FT/llllllllll/codetransformer/normalize_tuple_slice
LDU_FT
[ "<BEGIN>\n## `_new_lnotab`", "The updated lnotab after the instructions have been transformed.", " Parameters\n ----------\n instrs : iterable[Instruction]\n The new instructions.\n lnotab : dict[Instruction -> int]\n The lnotab for the old code object.", " Returns\n -------\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the normalize_tuple_slice 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 normalize_tuple_slice API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Normalize an ast.Tuple node representing the internals of a slice. Returns the node wrapped in an ast.Index. Returns an ExtSlice node built from the tuple elements if there are any slices.
"Normalize an ast.Tuple node representing the internals of a slice.\n\n Returns the node wrapped in an ast.Index.\n Returns an ExtSlice node built from the tuple elements if there are any\n slices."
223
false
llllllllll/codetransformer
normalize_tuple_slice
18,490
LDU_FT/maxcountryman/flask-login/confirm_login
LDU_FT
[ "<BEGIN>\n## `encode_cookie`", "This will encode a ``unicode`` value into a cookie, and sign that cookie\n with the app's secret key.", " :param payload: The value to encode, as `unicode`.\n :type payload: unicode", " :param key: The key to use when creating the cookie digest. If not\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the confirm_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 ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the confirm_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 ext...
This sets the current session as fresh. Sessions become stale when they are reloaded from a cookie.
"This sets the current session as fresh. Sessions become stale when they\n are reloaded from a cookie."
62
false
maxcountryman/flask-login
confirm_login
18,491
LDU_FT/noobermin/lspreader/genhash
LDU_FT
[ "<BEGIN>\n## `nearest_indices`", "Returns indices that perform nearest interpolation given a\n set of points. Similar to scipy.interpolate.griddata with\n method set to \"nearest\". In fact, it's construction is based\n on that function and related types.", " Parameters:\n -----------", " xs...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the genhash API. 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 genhash API. 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...
Generate the hashes for the given frame for a specification given in the dictionary d returned from firsthash. Parameters: ----------- frame : frame to hash. Keywords: --------- d : hash specification generated from firsthash. new : use new hashing, which isn't rea...
"Generate the hashes for the given frame for a specification\n given in the dictionary d returned from firsthash.\n\n Parameters:\n -----------\n frame : frame to hash.\n\n Keywords:\n ---------\n d : hash specification generated from firsthash.\n new : use new hashing, whic...
81
false
noobermin/lspreader
genhash
18,492
LDU_FT/juanifioren/django-oidc-provider/cors_allow_any
LDU_FT
[ "<BEGIN>\n## `userinfo`", "Create a dictionary with all the requested claims about the End-User.\n See: http://openid.net/specs/openid-connect-core-1_0.html#UserInfoResponse", " Return a dictionary.\n<END>", "<BEGIN>\n## `create_response_dic`", "Generate the dic that will be jsonify. Checking scopes g...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the cors_allow_any API. 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 cors_allow_any API. 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...
Add headers to permit CORS requests from any origin, with or without credentials, with any headers.
"Add headers to permit CORS requests from any origin, with or without credentials,\n with any headers."
60
false
juanifioren/django-oidc-provider
cors_allow_any
18,493
LDU_FT/pudo/googlesheets/open
LDU_FT
[ "<BEGIN>\n## `docs_client`", "A DocsClient singleton, used to look up spreadsheets\n by name.\n<END>", "<BEGIN>\n## `sheets_service`", "A SpreadsheetsService singleton, used to perform\n operations on the actual spreadsheet.\n<END>", "<BEGIN>\n## `_add_column`", "Add a new column to the tabl...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the open API. 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 open API. 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...
Open the spreadsheet named ``title``. If no spreadsheet with that name exists, a new one will be created.
"Open the spreadsheet named ``title``. If no spreadsheet with\n that name exists, a new one will be created."
24
false
pudo/googlesheets
open
18,494
LDU_FT/mmp2/megaman/null_space
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 null_space API. 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 null_space API. 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...
Find the null space of a matrix M: eigenvectors associated with 0 eigenvalues Parameters ---------- M : {array, matrix, sparse matrix, LinearOperator} Input covariance matrix: should be symmetric positive semi-definite k : integer Number of eigenvalues/vectors to return k_skip : int...
"Find the null space of a matrix M: eigenvectors associated with 0 eigenvalues\n\n Parameters\n ----------\n M : {array, matrix, sparse matrix, LinearOperator}\n Input covariance matrix: should be symmetric positive semi-definite\n k : integer\n Number of eigenvalues/vectors to return\n k_s...
287
false
mmp2/megaman
null_space
18,495
LDU_FT/3ll3d00d/vibe/enableGyro
LDU_FT
[ "<BEGIN>\n## `get`", "Analyses the measurement with the given parameters\n :param measurementId:\n :return:\n<END>", "<BEGIN>\n## `start`", "Initialises the device if required then enters a read loop taking data from the provider and passing it to the\n handler. It will continue until ei...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the enableGyro API. 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 enableGyro API. 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...
Specifies the device should write gyro values to the FIFO, is not applied until enableFIFO is called. :return:
"Specifies the device should write gyro values to the FIFO, is not applied until enableFIFO is called.\n :return:"
240
false
3ll3d00d/vibe
enableGyro
18,496
LDU_FT/gwastro/pycbc-glue/find_observatories
LDU_FT
[ "<BEGIN>\n## `component_offsetvectors`", "Given an iterable of offset vectors, return the shortest list of\n\tthe unique n-instrument offset vectors from which all the vectors\n\tin the input iterable can be constructed. This can be used to\n\tdetermine the minimal set of n-instrument coincs required to\n\tconst...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_observatories 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 find_observatories 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...
Query the LDR host for observatories. Use match to restrict returned observatories to those matching the regular expression. Example: >>> connection.find_observatories() ['AGHLT', 'G', 'GHLTV', 'GHLV', 'GHT', 'H', 'HL', 'HLT', 'L', 'T', 'V', 'Z'] >>> connection...
"Query the LDR host for observatories. Use match to\n restrict returned observatories to those matching the\n regular expression.\n\n Example:\n\n >>> connection.find_observatories()\n ['AGHLT', 'G', 'GHLTV', 'GHLV', 'GHT', 'H', 'HL', 'HLT',\n 'L', 'T', 'V', 'Z']\n >>> ...
1,048
true
gwastro/pycbc-glue
find_observatories
18,497
LDU_FT/samfoo/vt102/add_event_listener
LDU_FT
[ "<BEGIN>\n## `_escape_sequence`", "Handle characters seen when in an escape sequence. Most non-vt52\n commands start with a left-bracket after the escape and then a \n stream of parameters and a command.\n<END>", "<BEGIN>\n## `_end_escape_sequence`", "Handle the end of an escape sequence. The fi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_event_listener 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 add_event_listener 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...
Add an event listen for a particular event. Depending on the event there may or may not be parameters passed to function. Most escape streams also allow for an empty set of parameters (with a default value). Providing these default values and accepting variable arguments is the responsi...
"Add an event listen for a particular event. Depending on the event\n there may or may not be parameters passed to function. Most escape \n streams also allow for an empty set of parameters (with a default\n value). Providing these default values and accepting variable arguments\n is the res...
55
false
samfoo/vt102
add_event_listener
18,498
LDU_FT/eddiejessup/spatious/sphere_volume
LDU_FT
[ "<BEGIN>\n## `R_rot_2d`", "Return a 2-dimensional rotation matrix.", " Parameters\n ----------\n th: array, shape (n, 1)\n Angles about which to rotate.", " Returns\n -------\n R: array, shape (n, 2, 2)\n<END>", "<BEGIN>\n## `R_rot_3d`", "Return a 3-dimensional rotation matrix.", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the sphere_volume API. 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 sphere_volume API. 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...
Return the volume of a sphere in an arbitrary number of dimensions. Parameters ---------- R: array-like Radius. n: array-like The number of dimensions of the space in which the sphere lives. Returns ------- V: array-like Volume.
"Return the volume of a sphere in an arbitrary number of dimensions.\n\n Parameters\n ----------\n R: array-like\n Radius.\n n: array-like\n The number of dimensions of the space in which the sphere lives.\n\n Returns\n -------\n V: array-like\n Volume."
112
false
eddiejessup/spatious
sphere_volume
18,499
LDU_FT/GibbsConsulting/django-plotly-dash/generate_liveOut_layout
LDU_FT
[ "<BEGIN>\n## `find_stateless_by_name`", "Find stateless app given its name", " First search the Django ORM, and if not found then look the app up in a local registry.\n If the app does not have an ORM entry then a StatelessApp model instance is created.\n<END>", "<BEGIN>\n## `as_dash_app`", "Return a ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the generate_liveOut_layout API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the generate_liveOut_layout API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion...
Generate the layout per-app, generating each tine a new uuid for the state_uid argument
"Generate the layout per-app, generating each tine a new uuid for the state_uid argument"
96
false
GibbsConsulting/django-plotly-dash
generate_liveOut_layout
18,500
LDU_FT/LordDarkula/chess_py/val
LDU_FT
[ "<BEGIN>\n## `_get_piece`", "Returns Piece subclass given index of piece.", " :type: index: int\n :type: loc Location", " :raise: KeyError\n<END>", "<BEGIN>\n## `incomplete_alg`", "Converts a string written in short algebraic form into an incomplete move.\n These incomplete moves do not have t...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the val API. 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 val API. 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...
Finds value of ``Piece`` :type: piece: Piece :type: ref_color: Color :rtype: int
"Finds value of ``Piece``\n\n :type: piece: Piece\n :type: ref_color: Color\n :rtype: int"
173
false
LordDarkula/chess_py
val
18,501
LDU_FT/tomduck/pandoc-xnos/join_strings
LDU_FT
[ "<BEGIN>\n## `_repeat`", "Repeats func(...) call until something other than None is returned.\n<END>", "<BEGIN>\n## `init`", "Sets or determines the pandoc version. This must be called.", " The pandoc version is needed for multi-version support.\n See: https://github.com/jgm/pandoc/issues/2640", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the join_strings API. 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 join_strings API. 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...
Joins adjacent Str elements in the 'value' list.
"Joins adjacent Str elements in the 'value' list."
63
false
tomduck/pandoc-xnos
join_strings
18,502
LDU_FT/praekeltfoundation/molo/save
LDU_FT
[ "<BEGIN>\n## `generate_slug`", "Returns a new unique slug. Object must provide a SlugField called slug.\n URL friendly slugs are generated using django.template.defaultfilters'\n slugify. Numbers are added to the end of slugs for uniqueness.", " based on implementation in jmbo.utils\n https://github...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the save API. 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 save API. 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...
Save the selected section. This will save the selected section as well as its direct child pages obtained through the ?child_of query parameter. The ?descendant_of query parameter is probably better suited because it all pages under that part of the tree will be obtained. The problem ,...
"Save the selected section. This will save the selected section\n as well as its direct child pages obtained through the ?child_of\n query parameter. The ?descendant_of query parameter is probably\n better suited because it all pages under that part of the tree will\n be obtained. The prob...
101
false
praekeltfoundation/molo
save
18,503
LDU_FT/evansde77/dockerstache/build_parser
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 build_parser API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the build_parser API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
_build_parser_ Set up CLI parser options, parse the CLI options an return the parsed results
"_build_parser_\n\n Set up CLI parser options, parse the\n CLI options an return the parsed results"
45
false
evansde77/dockerstache
build_parser
18,504
LDU_FT/mapbox/mapbox-sdk-py/Session
LDU_FT
[ "<BEGIN>\n## `_geom_points`", "GeoJSON geometry to a sequence of point tuples\n<END>", "<BEGIN>\n## `read_points`", "Iterable of features to a sequence of point tuples\n Where \"features\" can be either GeoJSON mappings\n or objects implementing the geo_interface\n<END>", "<BEGIN>\n## `encode_waypoint...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the Session API. 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 Session API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
Create an HTTP session. Parameters ---------- access_token : str Mapbox access token string (optional). env : dict, optional A dict that subsitutes for os.environ. Returns ------- requests.Session
"Create an HTTP session.\n\n Parameters\n ----------\n access_token : str\n Mapbox access token string (optional).\n env : dict, optional\n A dict that subsitutes for os.environ.\n\n Returns\n -------\n requests.Session"
212
false
mapbox/mapbox-sdk-py
Session
18,505
LDU_FT/vmware/nsxramlclient/do_request
LDU_FT
[ "<BEGIN>\n## `read`", "This method is used to read a resource using the GET HTTP Method\n :param searched_resource: A valid display name in the RAML file matching the resource\n :param uri_parameters: A dictionary with the URI Parameters expected by the resource\n :param request_body_dict: A ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the do_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 extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the do_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 extrac...
Handle API requests / responses transport :param method: HTTP method to use as string :param data: Any data as PyDict (will be converted to XML string) :param headers: Any data as PyDict :return: If response is XML then an xml.etree.ElementTree else the raw content :raise: Any u...
"Handle API requests / responses transport\n\n :param method: HTTP method to use as string\n :param data: Any data as PyDict (will be converted to XML string)\n :param headers: Any data as PyDict\n :return: If response is XML then an xml.etree.ElementTree else the raw content\n :raise...
14
false
vmware/nsxramlclient
do_request
18,506
LDU_FT/brandjon/simplestruct/get_boundargs
LDU_FT
[ "<BEGIN>\n## `normalize_kind`", "Make a kind out of a possible shorthand. If the given\n argument is a sequence of types or a singular type, it becomes\n a kind that accepts exactly those types. If the given argument\n is None, it becomes a type that accepts anything.\n<END>", "<BEGIN>\n## ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_boundargs API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_boundargs API. 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...
Return an inspect.BoundArguments object for the application of this Struct's signature to its arguments. Add missing values for default fields as keyword arguments.
"Return an inspect.BoundArguments object for the application\n of this Struct's signature to its arguments. Add missing values\n for default fields as keyword arguments."
15
false
brandjon/simplestruct
get_boundargs
18,507
LDU_FT/inveniosoftware/invenio-communities/version_id
LDU_FT
[ "<BEGIN>\n## `format_item`", "Render a template to a string with the provided item in context.\n<END>", "<BEGIN>\n## `index`", "Index page with uploader and list of existing depositions.\n<END>", "<BEGIN>\n## `generic_item`", "Index page with uploader and list of existing depositions.\n<END>", "<BEGIN>\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the version_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 extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the version_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 extrac...
Return the version of the community. :returns: hash which encodes the community id and its las update. :rtype: str
"Return the version of the community.\n\n :returns: hash which encodes the community id and its las update.\n :rtype: str"
89
false
inveniosoftware/invenio-communities
version_id
18,508
LDU_FT/dourvaris/nano-python/signature_unsafe
LDU_FT
[ "<BEGIN>\n## `signature_unsafe`", "Not safe to use with secret keys or secret data.\n See module docstring. This function should be used for testing only.\n<END>", "<BEGIN>\n## `checkvalid`", "Not safe to use when any argument is secret.\n See module docstring. This function should be used only for\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the signature_unsafe API. 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 signature_unsafe API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Not safe to use with secret keys or secret data. See module docstring. This function should be used for testing only.
"Not safe to use with secret keys or secret data.\n See module docstring. This function should be used for testing only."
574
false
dourvaris/nano-python
signature_unsafe
18,509
LDU_FT/box/rotunicode/ruencode
LDU_FT
[ "<BEGIN>\n## `encode`", "Return the encoded version of a string.", " :param string:\n The input string to encode.\n :type string:\n `basestring`", " :param errors:\n The error handling scheme. Only 'strict' is supported.\n :type errors:\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the ruencode API. 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 ruencode API. 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...
Encode a string using 'rotunicode' codec. :param string: The input string to encode. :type string: `basestring` :param extension: True if the entire input string should be encoded. False to split the input string using :func:`os.path.splitext` and encode only the fi...
"Encode a string using 'rotunicode' codec.\n\n :param string:\n The input string to encode.\n :type string:\n `basestring`\n\n :param extension:\n True if the entire input string should be encoded.\n False to split the input string using :func:`os.path.splitext` and\n encode ...
28
false
box/rotunicode
ruencode
18,510
LDU_FT/HDI-Project/MLPrimitives/resample
LDU_FT
[ "<BEGIN>\n## `resample`", "pd.DataFrame.resample adapter.", " Call the `df.resample` method on the given time_index\n and afterwards call the indicated aggregation.", " Optionally group the dataframe by the indicated columns before\n performing the resampling.", " If groupby option is used, t...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the resample API. 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 resample API. 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...
pd.DataFrame.resample adapter. Call the `df.resample` method on the given time_index and afterwards call the indicated aggregation. Optionally group the dataframe by the indicated columns before performing the resampling. If groupby option is used, the result is a multi-index datagrame. Args...
"pd.DataFrame.resample adapter.\n\n Call the `df.resample` method on the given time_index\n and afterwards call the indicated aggregation.\n\n Optionally group the dataframe by the indicated columns before\n performing the resampling.\n\n If groupby option is used, the result is a multi-index datagrame.\...
96
false
HDI-Project/MLPrimitives
resample
18,511
LDU_FT/xiyouMc/ncmbot/_build_response
LDU_FT
[ "<BEGIN>\n## `login`", "登录接口,返回 :class:'Response' 对象\n :param password: 网易云音乐的密码\n :param phone: (optional) 手机登录\n :param email: (optional) 邮箱登录\n :param rememberLogin: (optional) 是否记住密码,默认 True\n<END>", "<BEGIN>\n## `user_play_list`", "获取用户歌单,包含收藏的歌单", " :param uid: 用户的ID,可通过登录或者其他接口获取\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _build_response API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _build_response API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
Build internal Response object from given response.
"Build internal Response object from given response."
39
false
xiyouMc/ncmbot
_build_response
18,512
LDU_FT/SuLab/WikidataIntegrator/update
LDU_FT
[ "<BEGIN>\n## `on_exception`", "Returns decorator for backoff and retry triggered by exception.", " Args:\n wait_gen: A generator yielding successive wait times in\n seconds.\n exception: An exception type (or tuple of types) which triggers\n backoff.\n max_tries: Th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
This method takes data, and modifies the Wikidata item. This works together with the data already provided via the constructor or if the constructor is being instantiated with search_only=True. In the latter case, this allows for checking the item data before deciding which new data should be written to...
"This method takes data, and modifies the Wikidata item. This works together with the data already provided via\n the constructor or if the constructor is being instantiated with search_only=True. In the latter case, this\n allows for checking the item data before deciding which new data should be written...
114
false
SuLab/WikidataIntegrator
update
18,513
LDU_FT/briancappello/py-yaml-fixtures/convert_identifiers
LDU_FT
[ "<BEGIN>\n## `create_or_update`", "Create or update a model.", " :param identifier: An object with :attr:`class_name` and :attr:`key`\n attributes\n :param data: A dictionary keyed by column name, with values being the\n converted values to set on the ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the convert_identifiers 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 convert_identifiers 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...
Convert an individual :class:`Identifier` to a model instance, or a list of Identifiers to a list of model instances.
"Convert an individual :class:`Identifier` to a model instance,\n or a list of Identifiers to a list of model instances."
31
false
briancappello/py-yaml-fixtures
convert_identifiers
18,514
LDU_FT/cedrus-opensource/pyxid/get_xid_devices
LDU_FT
[ "<BEGIN>\n## `available_ports`", "Scans COM1 through COM255 for available serial ports", " returns a list of available ports\n<END>", "<BEGIN>\n## `get_current_response`", "reads the current response data from the object and returns\n it in a dict.", " Currently 'time' is reported as ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_xid_devices API. 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_xid_devices API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
Returns a list of all Xid devices connected to your computer.
"Returns a list of all Xid devices connected to your computer."
43
false
cedrus-opensource/pyxid
get_xid_devices
18,515
LDU_FT/jsommers/switchyard/to_bytes
LDU_FT
[ "<BEGIN>\n## `router_main`", "Main method for router; we stay in a loop in this method, receiving\n packets until the end of time.\n<END>", "<BEGIN>\n## `from_bytes`", "Takes a byte string as a parameter and returns a list of\n IPOption objects.\n<END>", "<BEGIN>\n## `to_bytes`", "Takes a li...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the to_bytes API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the to_bytes API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
Takes a list of ICMPv6Option objects and returns a packed byte string of options, appropriately padded if necessary.
"Takes a list of ICMPv6Option objects and returns a packed byte string\n of options, appropriately padded if necessary."
192
false
jsommers/switchyard
to_bytes
18,516
LDU_FT/crs4/hl7apy/parse_subcomponent
LDU_FT
[ "<BEGIN>\n## `check_encoding_chars`", "Validate the given encoding chars", " :type encoding_chars: ``dict``\n :param encoding_chars: the encoding chars (see :func:`hl7apy.set_default_encoding_chars`)\n :raises: :exc:`hl7apy.exceptions.InvalidEncodingChars` if the given encoding chars are not valid\n<EN...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_subcomponent API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_subcomponent API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
Parse the given ER7-encoded component and return an instance of :class:`SubComponent <hl7apy.core.SubComponent>`. :type text: ``str`` :param text: the ER7-encoded string containing the subcomponent data :type name: ``str`` :param name: the subcomponent's name (e.g. XPN_2) :type datatype: ``st...
"Parse the given ER7-encoded component and return an instance of\n :class:`SubComponent <hl7apy.core.SubComponent>`.\n\n :type text: ``str``\n :param text: the ER7-encoded string containing the subcomponent data\n\n :type name: ``str``\n :param name: the subcomponent's name (e.g. XPN_2)\n\n :type data...
289
false
crs4/hl7apy
parse_subcomponent
18,517
LDU_FT/axialmarket/fsq/wrap_io_os_err
LDU_FT
[ "<BEGIN>\n## `barf`", "Exit with a log message (usually a fatal error)\n<END>", "<BEGIN>\n## `done_item`", "Succeed or fail an item based on the return code of a program\n<END>", "<BEGIN>\n## `setenv`", "Set environment, based on item. Usually done in a baby fork\n<END>", "<BEGIN>\n## `shout`", "Log ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the wrap_io_os_err API. 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 wrap_io_os_err API. 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...
Formats IO and OS error messages for wrapping in FSQExceptions
"Formats IO and OS error messages for wrapping in FSQExceptions"
99
false
axialmarket/fsq
wrap_io_os_err
18,518
LDU_FT/crocs-muni/roca/process_tar
LDU_FT
[ "<BEGIN>\n## `error_message`", "Formats exception message + cause\n :param e:\n :param message:\n :param cause:\n :return: formatted message, includes cause if any is set\n<END>", "<BEGIN>\n## `format_pgp_key`", "Formats PGP key in 16hex digits\n :param key:\n :return:\n<END>", "<BEGIN>\n#...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the process_tar API. 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 process_tar API. 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...
Tar(gz) archive processing :param fname: :return:
"Tar(gz) archive processing\n :param fname:\n :return:"
133
false
crocs-muni/roca
process_tar
18,519
LDU_FT/great-expectations/great_expectations/expect_column_mean_to_be_between
LDU_FT
[ "<BEGIN>\n## `_setup_source_conn`", "Retrieve connection based on source_conn_id. In case of s3 it also configures the bucket.\n Validates that connection id belongs to supported connection type.\n :param source_conn_id:\n :param source_bucket_name:\n<END>", "<BEGIN>\n## `_setup_dest_conn`"...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the expect_column_mean_to_be_between API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its c...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the expect_column_mean_to_be_between API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its c...
Expect the column mean to be between a minimum value and a maximum value (inclusive). expect_column_mean_to_be_between is a :func:`column_aggregate_expectation <great_expectations.data_asset.dataset.Dataset.column_aggregate_expectation>`. Args: column (str): \ The column na...
"Expect the column mean to be between a minimum value and a maximum value (inclusive).\n\n expect_column_mean_to_be_between is a :func:`column_aggregate_expectation <great_expectations.data_asset.dataset.Dataset.column_aggregate_expectation>`.\n\n Args:\n column (str): \\\n The c...
475
false
great-expectations/great_expectations
expect_column_mean_to_be_between
18,520
LDU_FT/fhamborg/news-please/handle_logging
LDU_FT
[ "<BEGIN>\n## `rss_parse`", "Extracts all article links and initiates crawling them.", " :param obj response: The scrapy response\n<END>", "<BEGIN>\n## `article_parse`", "Checks any given response on being an article and if positiv,\n passes the response to the pipeline.", " :param obj...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the handle_logging API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the handle_logging API. 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...
To allow devs to log as early as possible, logging will already be handled here
"To allow devs to log as early as possible, logging will already be\n handled here"
277
false
fhamborg/news-please
handle_logging
18,521
LDU_FT/portfoliome/foil/readlines_bytes
LDU_FT
[ "<BEGIN>\n## `_`", "ISO 8601 format. Interprets naive datetime as UTC with zulu suffix.\n<END>", "<BEGIN>\n## `create_key_filter`", "Generate combinations of key, value pairs for each key in properties.", " Examples\n --------\n properties = {'ent': ['geo_rev', 'supply_chain'], 'own', 'fi'}\n >>...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the readlines_bytes API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the readlines_bytes API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
Read content into byte str line iterator.
"Read content into byte str line iterator."
89
false
portfoliome/foil
readlines_bytes
18,522
LDU_FT/Sheeprider/BitBucket-api/verify
LDU_FT
[ "<BEGIN>\n## `auth`", "Return credentials for current Bitbucket user.\n<END>", "<BEGIN>\n## `authorize`", "Call this with your consumer key, secret and callback URL, to\n generate a token for verification.\n<END>", "<BEGIN>\n## `verify`", "After converting the token into verifier, call this to fina...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the verify API. 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 verify API. 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 ...
After converting the token into verifier, call this to finalize the authorization.
"After converting the token into verifier, call this to finalize the\n authorization."
39
false
Sheeprider/BitBucket-api
verify
18,523
LDU_FT/blue-yonder/tsfresh/sum_of_reoccurring_values
LDU_FT
[ "<BEGIN>\n## `_function_with_partly_reduce`", "Small helper function to call a function (map_function)\n on a list of data chunks (chunk_list) and convert the results into\n a flattened list.", " This function is used to send chunks of data with a size larger than 1 to\n the workers in parallel and ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the sum_of_reoccurring_values 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 sum_of_reoccurring_values API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi...
Returns the sum of all values, that are present in the time series more than once. :param x: the time series to calculate the feature of :type x: numpy.ndarray :return: the value of this feature :return type: float
"Returns the sum of all values, that are present in the time series\n more than once.\n\n :param x: the time series to calculate the feature of\n :type x: numpy.ndarray\n :return: the value of this feature\n :return type: float"
615
false
blue-yonder/tsfresh
sum_of_reoccurring_values
18,524
LDU_FT/angr/claripy/min_and
LDU_FT
[ "<BEGIN>\n## `_align_ast`", "Aligns the AST so that the argument with the highest cardinality is on the left.", " :return: a new AST.\n<END>", "<BEGIN>\n## `_doit`", "This function processes the list of truisms and finds bounds for ASTs.\n<END>", "<BEGIN>\n## `_handleable_truism`", "Checks whethe...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the min_and API. 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 min_and API. 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...
Lower bound of result of ANDing 2-intervals. :param a: Lower bound of first interval :param b: Upper bound of first interval :param c: Lower bound of second interval :param d: Upper bound of second interval :param w: bit width :return: Lower bound of ANDing 2-intervals
"Lower bound of result of ANDing 2-intervals.\n\n :param a: Lower bound of first interval\n :param b: Upper bound of first interval\n :param c: Lower bound of second interval\n :param d: Upper bound of second interval\n :param w: bit width\n :return: Lower bound of ANDing 2-int...
453
false
angr/claripy
min_and
18,525
LDU_FT/mozilla/python_moztelemetry/where
LDU_FT
[ "<BEGIN>\n## `add_expiration_postfix`", "Formats the expiration version and adds a version postfix if needed.", " :param expiration: the expiration version string.\n :return: the modified expiration string.\n<END>", "<BEGIN>\n## `load_yaml_file`", "Load a YAML file from disk, throw a ParserError on fa...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the where API. 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 where API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
Return a new Dataset refined using the given condition :param kwargs: a map of `dimension` => `condition` to filter the elements of the dataset. `condition` can either be an exact value or a callable returning a boolean value. If `condition` is a value, it is converted to a ...
"Return a new Dataset refined using the given condition\n\n :param kwargs: a map of `dimension` => `condition` to filter the elements\n of the dataset. `condition` can either be an exact value or a\n callable returning a boolean value. If `condition` is a value, it is\n converted...
122
false
mozilla/python_moztelemetry
where
18,526
LDU_FT/moonso/ped_parser/family_check
LDU_FT
[ "<BEGIN>\n## `get_individual`", "Return a individual object based on the indata.", " Arguments:\n family_id (str): The id for this family\n sample_id (str): The id for this sample\n father_id (str): The id for this samples father\n mother_id (str): The id for t...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the family_check API. 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 family_check API. 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...
Check if the family members break the structure of the family. eg. nonexistent parent, wrong sex on parent etc. Also extracts all trios found, this is of help for many at the moment since GATK can only do phasing of trios and duos.
"Check if the family members break the structure of the family. \n \n eg. nonexistent parent, wrong sex on parent etc. \n \n Also extracts all trios found, this is of help for many at the moment \n since GATK can only do phasing of trios and duos."
79
false
moonso/ped_parser
family_check
18,527
LDU_FT/GoogleCloudPlatform/appengine-gcs-client/get_storage_class
LDU_FT
[ "<BEGIN>\n## `check_status`", "Check HTTP response status is expected.", " Args:\n status: HTTP response status. int.\n expected: a list of expected statuses. A list of ints.\n path: filename or a path prefix.\n headers: HTTP request headers.\n resp_headers: HTTP response headers.\n body: HTT...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_storage_class API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_storage_class API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Returns the storage class for the given bucket. https://cloud.google.com/storage/docs/storage-classes Args: bucket: A Google Cloud Storage bucket of form '/bucket'. retry_params: An api_utils.RetryParams for this call to GCS. If None, the default one is used. _account_id: Internal-use only. R...
"Returns the storage class for the given bucket.\n\n https://cloud.google.com/storage/docs/storage-classes\n\n Args:\n bucket: A Google Cloud Storage bucket of form '/bucket'.\n retry_params: An api_utils.RetryParams for this call to GCS. If None,\n the default one is used.\n _account_id: Internal-use o...
270
false
GoogleCloudPlatform/appengine-gcs-client
get_storage_class
18,528
LDU_FT/qwilka/vn-tree/make_file_system_tree
LDU_FT
[ "<BEGIN>\n## `add_child`", "Add a child node to the current node instance.", " :param node: the child node instance.\n :type node: Node\n :returns: The new child node instance. \n :rtype: Node\n<END>", "<BEGIN>\n## `remove_child`", "Remove a child node from the current node ins...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the make_file_system_tree 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_file_system_tree API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
This function makes a tree from folders and files.
"This function makes a tree from folders and files."
59
false
qwilka/vn-tree
make_file_system_tree
18,529
LDU_FT/wilson-eft/wilson/unscale_dict
LDU_FT
[ "<BEGIN>\n## `alpha_s`", "3-loop computation of alpha_s for f flavours\n with initial condition alpha_s(MZ) = 0.1185\n<END>", "<BEGIN>\n## `m_b`", "r\"\"\"Get running b quark mass in the MSbar scheme at the scale `scale`\n in the theory with `f` dynamical quark flavours starting from $m_b(m_b)$\n<END>",...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the unscale_dict API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the unscale_dict API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
Undo the scaling applied in `scale_dict`.
"Undo the scaling applied in `scale_dict`."
216
false
wilson-eft/wilson
unscale_dict
18,530
LDU_FT/openspending/babbage/_load_table
LDU_FT
[ "<BEGIN>\n## `count_results`", "Get the count of records matching the query.\n<END>", "<BEGIN>\n## `generate_results`", "Generate the resulting records for this query, applying pagination.\n Values will be returned by their reference.\n<END>", "<BEGIN>\n## `apply`", "Sort on a set of field specificatio...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _load_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 _load_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...
Reflect a given table from the database.
"Reflect a given table from the database."
66
false
openspending/babbage
_load_table
18,531
LDU_FT/rackerlabs/fastfood/_render_templates
LDU_FT
[ "<BEGIN>\n## `metadata`", "Return dict representation of this cookbook's metadata.rb .\n<END>", "<BEGIN>\n## `berksfile`", "Return this cookbook's Berksfile instance.\n<END>", "<BEGIN>\n## `from_dict`", "Create a MetadataRb instance from a dict.\n<END>", "<BEGIN>\n## `depends_statement`", "Return a va...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _render_templates API. 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 _render_templates API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Write template contents from filetable into files. Using filetable for the rendered templates, and the list of files, render all the templates into actual files on disk, forcing to overwrite the file as appropriate, and using the given open mode for the file.
"Write template contents from filetable into files.\n\n Using filetable for the rendered templates, and the list of files, render\n all the templates into actual files on disk, forcing to overwrite the file\n as appropriate, and using the given open mode for the file."
68
false
rackerlabs/fastfood
_render_templates
18,532
LDU_FT/lsbardel/python-stdnet/pop_front
LDU_FT
[ "<BEGIN>\n## `load_iterable`", "Load an ``iterable``.", " By default it returns a generator of data loaded via the\n :meth:`loads` method.", " :param iterable: an iterable over data to load.\n :param session: Optional :class:`stdnet.odm.Session`.\n :return: an iterable over ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the pop_front API. 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 pop_front API. 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...
Remove the first element from of the list.
"Remove the first element from of the list."
387
false
lsbardel/python-stdnet
pop_front
18,533
LDU_FT/miLibris/flask-rest-jsonapi/pagination
LDU_FT
[ "<BEGIN>\n## `_get_key_values`", "Return a dict containing key / values items for a given key, used for items like filters, page, etc.", " :param str name: name of the querystring parameter\n :return dict: a dict of key / values items\n<END>", "<BEGIN>\n## `querystring`", "Return original quer...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the pagination API. 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 pagination API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
Return all page parameters as a dict. :return dict: a dict of pagination information To allow multiples strategies, all parameters starting with `page` will be included. e.g:: { "number": '25', "size": '150', } Example with number strat...
"Return all page parameters as a dict.\n\n :return dict: a dict of pagination information\n\n To allow multiples strategies, all parameters starting with `page` will be included. e.g::\n\n {\n \"number\": '25',\n \"size\": '150',\n }\n\n Example w...
149
false
miLibris/flask-rest-jsonapi
pagination
18,534
LDU_FT/NJDFan/ctypes-bitfield/make_bf
LDU_FT
[ "<BEGIN>\n## `_createunbound`", "Create a new UnboundNode representing a given class.\n<END>", "<BEGIN>\n## `_createbound`", "Create a new BoundNode representing a given object.\n<END>", "<BEGIN>\n## `findnode`", "Returns a Node pointing to obj.", " If obj is a ctypes-derived class, an UnboundNode is...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the make_bf API. 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 make_bf API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
Create a new Bitfield class, correctly assigning the anonymous fields from the Union in order to get the desired behavior. Parameters:: name The name of the class. This is similar to the namedtuple recipe, in that you'll generally pass the same name here as ...
"Create a new Bitfield class, correctly assigning the anonymous\n fields from the Union in order to get the desired behavior.\n \n Parameters::\n \n name\n The name of the class. This is similar to the namedtuple\n recipe, in that you'll generally pass the same name here as\n ...
42
false
NJDFan/ctypes-bitfield
make_bf
18,535
LDU_FT/totalgood/nlpia/concatenate_aiml
LDU_FT
[ "<BEGIN>\n## `main`", "Train an LSTM encoder-decoder squence-to-sequence model on Anki flashcards for international translation", " >>> model = main('spa', n=400, epochs=3, batch_size=128, num_neurons=32)\n Train on 360 samples, validate on 40 samples\n Epoch 1/3\n ...\n >>> len(model.get_weights...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the concatenate_aiml API. 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 concatenate_aiml API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Strip trailing </aiml> tag and concatenate all valid AIML files found in the ZIP.
"Strip trailing </aiml> tag and concatenate all valid AIML files found in the ZIP."
471
false
totalgood/nlpia
concatenate_aiml
18,536
LDU_FT/ska-sa/hypercube/register_property
LDU_FT
[ "<BEGIN>\n## `bytes_required`", "Returns\n -------\n int\n Estimated number of bytes required by arrays registered\n on the cube, taking their extents into account.\n<END>", "<BEGIN>\n## `register_dimension`", "Registers a dimension on this cube.", " .. code-block:...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the register_property API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the register_property API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Registers a property with this Solver object .. code-block:: python cube.register_property("reference_frequency", np.float64, 1.4e9) Parameters ---------- name : str The name of this property. dtype : Numpy data type Numpy data type ...
"Registers a property with this Solver object\n\n .. code-block:: python\n\n cube.register_property(\"reference_frequency\", np.float64, 1.4e9)\n\n Parameters\n ----------\n name : str\n The name of this property.\n dtype : Numpy data type\n Numpy data...
163
false
ska-sa/hypercube
register_property
18,537
LDU_FT/willkg/socorro-siggen/normalize_rust_function
LDU_FT
[ "<BEGIN>\n## `_get_file_content`", "Return a tuple, each value being a line of the source file.", " Remove empty lines and comments (lines starting with a '#').\n<END>", "<BEGIN>\n## `main`", "Takes crash data via stdin and generates a Socorro signature\n<END>", "<BEGIN>\n## `convert_to_crash_data`", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the normalize_rust_function 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 normalize_rust_function API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion...
Normalizes a single rust frame with a function
"Normalizes a single rust frame with a function"
66
false
willkg/socorro-siggen
normalize_rust_function
18,538
LDU_FT/uogbuji/versa/jsonload
LDU_FT
[ "<BEGIN>\n## `link`", "Action function generator to create a link based on the context's current link, or on provided parameters", " :param origin: IRI/string, or list of same; origins for the created relationships.\n If None, the action context provides the parameter.", " :param rel: IRI/string, or ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the jsonload API. 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 jsonload API. 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...
Load Versa model dumped into JSON form, either raw or canonical
"Load Versa model dumped into JSON form, either raw or canonical"
146
false
uogbuji/versa
jsonload
18,539
LDU_FT/Nic30/ipCorePackager/asQuartusTcl
LDU_FT
[ "<BEGIN>\n## `tcl_add_fileset_file`", ":param filename: relative filename with .vhdl or .v", " :return: add_fileset_file command string\n<END>", "<BEGIN>\n## `_asQuartusTcl`", "Add interface to Quartus tcl by specified name map", " :param buff: line buffer for output\n :param version: Qua...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the asQuartusTcl API. 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 asQuartusTcl API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
Add interface to Quartus tcl :param buff: line buffer for output :param version: Quartus version :param intfName: name of top interface :param component: component object from ipcore generator :param packager: instance of IpPackager which is packagin current design :para...
"Add interface to Quartus tcl\n\n :param buff: line buffer for output\n :param version: Quartus version\n :param intfName: name of top interface\n :param component: component object from ipcore generator\n :param packager: instance of IpPackager which is packagin current design\n ...
33
false
Nic30/ipCorePackager
asQuartusTcl
18,540
LDU_FT/aeguana/PyFileMaker/doParseXMLData
LDU_FT
[ "<BEGIN>\n## `key_dict`", "Returns dict from_dict['unicode_save_field'] = 'original key with unicode'\n<END>", "<BEGIN>\n## `makeFMData`", "Returns FMData structure which is initialized by given dictionary\n<END>", "<BEGIN>\n## `_setMaxRecords`", "Specifies the maximum number of records you want returned ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the doParseXMLData API. 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 doParseXMLData API. 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...
This function parses the XML output of FileMaker.
"This function parses the XML output of FileMaker."
52
false
aeguana/PyFileMaker
doParseXMLData
18,541
LDU_FT/edeposit/edeposit.amqp.storage/compose_path
LDU_FT
[ "<BEGIN>\n## `render_trees`", "Render list of `trees` to HTML.", " Args:\n trees (list): List of :class:`.Tree`.\n path_composer (fn reference): Function used to compose paths from UUID.\n Look at :func:`.compose_tree_path` from :mod:`.web_tools`.", " Returns:\n str: HTML...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the compose_path API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the compose_path API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
Compose absolute path for given `pub`. Args: pub (obj): :class:`.DBPublication` instance. uuid_url (bool, default False): Compose URL using UUID. Returns: str: Absolute url-path of the publication, without server's address \ and protocol. Raises: PrivatePublic...
"Compose absolute path for given `pub`.\n\n Args:\n pub (obj): :class:`.DBPublication` instance.\n uuid_url (bool, default False): Compose URL using UUID.\n\n Returns:\n str: Absolute url-path of the publication, without server's address \\\n and protocol.\n\n Raises:\n ...
140
false
edeposit/edeposit.amqp.storage
compose_path
18,542
LDU_FT/amzn/ion-python/_timestamp_handler
LDU_FT
[ "<BEGIN>\n## `local_symbol_table`", "Constructs a local symbol table.", " Args:\n imports (Optional[SymbolTable]): Shared symbol tables to import.\n symbols (Optional[Iterable[Unicode]]): Initial local symbols to add.", " Returns:\n SymbolTable: A mutable local symbol table with the...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _timestamp_handler 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 _timestamp_handler 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...
Handles timestamp values. Entered after the year component has been completed; tokenizes the remaining components.
"Handles timestamp values. Entered after the year component has been completed; tokenizes the remaining\n components."
384
false
amzn/ion-python
_timestamp_handler
18,543
LDU_FT/jtwhite79/pyemu/prior_prediction
LDU_FT
[ "<BEGIN>\n## `_calc_delta`", "calc the scaled ensemble differences from the mean\n<END>", "<BEGIN>\n## `_calc_obs_local`", "propagate the ensemble forward using sweep.\n<END>", "<BEGIN>\n## `save_coo`", "write a PEST-compatible binary file. The data format is\n [int,int,float] for i,j,value. It is a...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the prior_prediction API. 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 prior_prediction API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
get a dict of prior prediction variances Returns ------- prior_prediction : dict dictionary of prediction name, prior variance pairs
"get a dict of prior prediction variances\n\n Returns\n -------\n prior_prediction : dict\n dictionary of prediction name, prior variance pairs"
1,496
true
jtwhite79/pyemu
prior_prediction
18,544
LDU_FT/IDSIA/sacred/post_run_hook
LDU_FT
[ "<BEGIN>\n## `open_resource`", "Open a file and also save it as a resource.", " Opens a file, reports it to the observers as a resource, and returns\n the opened file.", " In Sacred terminology a resource is a file that the experiment needed\n to access during a run. In case of a M...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the post_run_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. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the post_run_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. The ext...
Decorator to add a post-run hook to this ingredient. Post-run hooks are captured functions that are run, just after the main function is executed.
"Decorator to add a post-run hook to this ingredient.\n\n Post-run hooks are captured functions that are run, just after the\n main function is executed."
284
false
IDSIA/sacred
post_run_hook
18,545
LDU_FT/liminspace/dju-common/is_in
LDU_FT
[ "<BEGIN>\n## `is_in`", "{% if tag|is_in:'div|p|span' %}is block tag{% endif %}\n {% if tag|is_in:tags_list %}is block tag{% endif %}\n<END>", "<BEGIN>\n## `captureas`", "example: {% captureas myvar 1 %}content...{% endcaptureas %} - {{ myvar }}\n result: content... - content...", " example: {% capt...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_in API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_in API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
{% if tag|is_in:'div|p|span' %}is block tag{% endif %} {% if tag|is_in:tags_list %}is block tag{% endif %}
"{% if tag|is_in:'div|p|span' %}is block tag{% endif %}\n {% if tag|is_in:tags_list %}is block tag{% endif %}"
60
false
liminspace/dju-common
is_in
18,546
LDU_FT/shoeffner/cvloop/_init_draw
LDU_FT
[ "<BEGIN>\n## `load_hat`", "Loads the hat from a picture at path.", " Args:\n path: The path to load from", " Returns:\n The hat data.\n<END>", "<BEGIN>\n## `find_faces`", "Uses a haarcascade to detect faces inside an image.", " Args:\n image: The ima...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _init_draw API. 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 _init_draw API. 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...
Initializes the drawing of the frames by setting the images to random colors. This function is called by TimedAnimation.
"Initializes the drawing of the frames by setting the images to\n random colors.\n\n This function is called by TimedAnimation."
67
false
shoeffner/cvloop
_init_draw
18,547
LDU_FT/PyconUK/ConferenceScheduler/_events_available_in_scheduled_slot
LDU_FT
[ "<BEGIN>\n## `hill_climber`", "Implement a basic hill climbing algorithm.", " Has two stopping conditions:", " 1. Maximum number of iterations;\n 2. A known lower bound, a none is passed then this is not used.", " If acceptance_criteria (a callable) is not None then this is used to obtain\n a...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _events_available_in_scheduled_slot API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates it...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _events_available_in_scheduled_slot API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates it...
Constraint that ensures that an event is scheduled in slots for which it is available
"Constraint that ensures that an event is scheduled in slots for which it is\n available"
127
false
PyconUK/ConferenceScheduler
_events_available_in_scheduled_slot
18,548
LDU_FT/qiniu/python-sdk/get_container_inspect
LDU_FT
[ "<BEGIN>\n## `execute`", "执行持久化处理:", " Args:\n key: 待处理的源文件\n fops: 处理详细操作,规格详见 https://developer.qiniu.com/dora/manual/1291/persistent-data-processing-pfop\n force: 强制执行持久化处理开关", " Returns:\n 一个dict变量,返回持久化处理的persistentId,类似{\"persistentId\": 54...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_container_inspect 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_container_inspect API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
查看容器 查看指定IP的容器,返回容器属性。 Args: - ip: 容器ip Returns: 返回一个tuple对象,其格式为(<result>, <ResponseInfo>) - result 成功返回容器的信息,失败返回{"error": "<errMsg string>"} - ResponseInfo 请求的Response信息
"查看容器\n\n 查看指定IP的容器,返回容器属性。\n\n Args:\n - ip: 容器ip\n\n Returns:\n 返回一个tuple对象,其格式为(<result>, <ResponseInfo>)\n - result 成功返回容器的信息,失败返回{\"error\": \"<errMsg string>\"}\n - ResponseInfo 请求的Response信息"
337
false
qiniu/python-sdk
get_container_inspect
18,549
LDU_FT/capnproto/pycapnp/merge
LDU_FT
[ "<BEGIN>\n## `localpath`", "construct an absolute path from a list relative to the root pycapnp directory\n<END>", "<BEGIN>\n## `fetch_archive`", "download an archive to a specific location\n<END>", "<BEGIN>\n## `stage_platform_hpp`", "stage platform.hpp into libcapnp sources", " Tries ./configure fi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the merge API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the merge API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
merge two containers into is updated, d has priority
"merge two containers\n \n into is updated, d has priority"
44
false
capnproto/pycapnp
merge
18,550
LDU_FT/mozilla/taar/clean_promoted_guids
LDU_FT
[ "<BEGIN>\n## `flaskrun`", "Takes a flask.Flask instance and runs it. Parses\n command-line flags to configure the app.\n<END>", "<BEGIN>\n## `get_randomized_guid_sample`", "Fetch a subset of randomzied GUIDs from the whitelist\n<END>", "<BEGIN>\n## `can_recommend`", "The Curated recommender will always...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the clean_promoted_guids 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 clean_promoted_guids API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Verify that the promoted GUIDs are formatted correctly, otherwise strip it down into an empty list.
"Verify that the promoted GUIDs are formatted correctly,\n otherwise strip it down into an empty list."
45
false
mozilla/taar
clean_promoted_guids
18,551
LDU_FT/gmr/tinman/save
LDU_FT
[ "<BEGIN>\n## `main`", "Invoked by the script installed by setuptools.\n<END>", "<BEGIN>\n## `enable_debug`", "If the cli arg for foreground is set, set the configuration option\n for debug.\n<END>", "<BEGIN>\n## `insert_paths`", "Inserts a base path into the sys.path list if one is specified in\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the save API. 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 save API. 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...
Save the session for later retrieval :raises: IOError
"Save the session for later retrieval\n\n :raises: IOError"
270
false
gmr/tinman
save
18,552
LDU_FT/riga/law/which
LDU_FT
[ "<BEGIN>\n## `full_parser`", "Returns the full *ArgumentParser* used by the luigi ``CmdlineParser``. The returned instance is\n cached.\n<END>", "<BEGIN>\n## `root_task_parser`", "Returns a new *ArgumentParser* instance that only contains paremeter actions of the root task.\n The returned instance is ca...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the which API. 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 which API. 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...
Pythonic ``which`` implementation. Returns the path to an executable *prog* by searching in *PATH*, or *None* when it could not be found.
"Pythonic ``which`` implementation. Returns the path to an executable *prog* by searching in\n *PATH*, or *None* when it could not be found."
279
false
riga/law
which
18,553
LDU_FT/mschwager/cohesion/get_class_variables
LDU_FT
[ "<BEGIN>\n## `is_class_method_bound`", "Return whether a class method is bound to the class\n<END>", "<BEGIN>\n## `get_class_methods`", "Return methods associated with a given class\n<END>", "<BEGIN>\n## `get_class_variables`", "Return class variables associated with a given class\n<END>", "<BEGIN>\n## ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_class_variables API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_class_variables 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...
Return class variables associated with a given class
"Return class variables associated with a given class"
12
false
mschwager/cohesion
get_class_variables
18,554
LDU_FT/tarmstrong/nbdiff/merge
LDU_FT
[ "<BEGIN>\n## `merge`", "Generate unmerged series of changes (including conflicts).", " By diffing the two diffs, we find *changes* that are\n on the local branch, the remote branch, or both.\n We arbitrarily choose the \"local\" branch to be the \"before\"\n and the \"remote\" branch to be the \"aft...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the merge API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the merge API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
Generate unmerged series of changes (including conflicts). By diffing the two diffs, we find *changes* that are on the local branch, the remote branch, or both. We arbitrarily choose the "local" branch to be the "before" and the "remote" branch to be the "after" in the diff algorithm. Therefore: ...
"Generate unmerged series of changes (including conflicts).\n\n By diffing the two diffs, we find *changes* that are\n on the local branch, the remote branch, or both.\n We arbitrarily choose the \"local\" branch to be the \"before\"\n and the \"remote\" branch to be the \"after\" in the diff algorithm.\n\n...
41
false
tarmstrong/nbdiff
merge
18,555
LDU_FT/ixc/python-edtf/jd_to_datetime
LDU_FT
[ "<BEGIN>\n## `pre_save`", "Updates the edtf value from the value of the display_field.\n If there's a valid edtf, then set the date values.\n<END>", "<BEGIN>\n## `apply_delta`", "Apply a `relativedelta` to a `struct_time` data structure.", " `op` is an operator function, probably always `add` or `...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the jd_to_datetime API. 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 jd_to_datetime API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
Convert a Julian Day to an `jdutil.datetime` object. Parameters ---------- jd : float Julian day. Returns ------- dt : `jdutil.datetime` object `jdutil.datetime` equivalent of Julian day. Examples -------- >>> jd_to_datetime(2446113.75) datetime(1985, 2, 17, 6,...
"Convert a Julian Day to an `jdutil.datetime` object.\n\n Parameters\n ----------\n jd : float\n Julian day.\n\n Returns\n -------\n dt : `jdutil.datetime` object\n `jdutil.datetime` equivalent of Julian day.\n\n Examples\n --------\n >>> jd_to_datetime(2446113.75)\n datetime...
83
false
ixc/python-edtf
jd_to_datetime
18,556
LDU_FT/albahnsen/CostSensitiveClassification/_delete_node
LDU_FT
[ "<BEGIN>\n## `_partition_estimators`", "Private function used to partition estimators between jobs.\n<END>", "<BEGIN>\n## `_parallel_build_estimators`", "Private function used to build a batch of estimators within a job.\n<END>", "<BEGIN>\n## `_parallel_predict_proba`", "Private function used to compute (...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _delete_node API. 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 _delete_node API. 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...
Private function that eliminate node from tree. Parameters ---------- tree : object node : int node to be eliminated from tree Returns ------- pruned_tree : object
"Private function that eliminate node from tree.\n\n Parameters\n ----------\n\n tree : object\n\n node : int\n node to be eliminated from tree\n\n Returns\n -------\n\n pruned_tree : object"
334
false
albahnsen/CostSensitiveClassification
_delete_node
18,557
LDU_FT/Shapeways/coyote_framework/get_single_instance
LDU_FT
[ "<BEGIN>\n## `get_login_form_component`", "Initializes and returns the login form component", " @rtype: LoginForm\n @return: Initialized component\n<END>", "<BEGIN>\n## `objectify`", "Converts a dictionary into a named tuple (shallow)\n<END>", "<BEGIN>\n## `create_directory`", "Creates a d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_single_instance API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_single_instance API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
Returns an instance of class_type populated with attributes from the DB record; throws an error if no records are found @param sql: Sql statement to execute @param class_type: The type of class to instantiate and populate with DB record @return: Return an instance with attributes set to...
"Returns an instance of class_type populated with attributes from the DB record; throws an error if no\n records are found\n\n @param sql: Sql statement to execute\n @param class_type: The type of class to instantiate and populate with DB record\n @return: Return an instance with attributes ...
370
false
Shapeways/coyote_framework
get_single_instance
18,558
LDU_FT/jim-easterbrook/pywws/calibrate_data
LDU_FT
[ "<BEGIN>\n## `read_data`", "Receive data from the device.", " If the read fails for any reason, an :obj:`IOError` exception\n is raised.", " :param size: the number of bytes to read.", " :type size: int", " :return: the data received.", " :rtype: list(int)\n<END...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the calibrate_data API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the calibrate_data API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
Calibrate' raw data, using a user-supplied function.
"Calibrate' raw data, using a user-supplied function."
210
false
jim-easterbrook/pywws
calibrate_data
18,559
LDU_FT/mayfield/shellish/ignore_broken_pipe
LDU_FT
[ "<BEGIN>\n## `hone_cache`", "A caching decorator that follows after the style of lru_cache. Calls\n that are sharper than previous requests are returned from the cache after\n honing in on the requested results using the `refineby` technique.", " The `refineby` technique can be `startswith`, `container...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the ignore_broken_pipe 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 ignore_broken_pipe 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...
If a shellish program has redirected stdio it is subject to erroneous "ignored" exceptions during the interpretor shutdown. This essentially beats the interpretor to the punch by closing them early and ignoring any broken pipe exceptions.
"If a shellish program has redirected stdio it is subject to erroneous\n \"ignored\" exceptions during the interpretor shutdown. This essentially\n beats the interpretor to the punch by closing them early and ignoring any\n broken pipe exceptions."
172
false
mayfield/shellish
ignore_broken_pipe
18,560
LDU_FT/datascopeanalytics/scrubadub/_update_content
LDU_FT
[ "<BEGIN>\n## `iter_detector_clss`", "Iterate over all of the detectors that are included in this sub-package.\n This is a convenience method for capturing all new Detectors that are added\n over time and it is used both by the unit tests and in the\n ``Scrubber.__init__`` method.\n<END>", "<BEGIN>\n## ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _update_content API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _update_content API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
this updates the bounds, text and placeholder for the merged filth
"this updates the bounds, text and placeholder for the merged\n filth"
16
false
datascopeanalytics/scrubadub
_update_content
18,561
LDU_FT/RI-imaging/nrefocus/refocus_stack
LDU_FT
[ "<BEGIN>\n## `_get_pad_left_right`", "Compute left and right padding values.", " Here we use the convention that if the padding\n size is odd, we pad the odd part to the right\n and the even part to the left.", " Parameters\n ----------\n small : int\n Old size of original 1D array\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the refocus_stack API. 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 refocus_stack API. 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...
Refocus a stack of 1D or 2D fields Parameters ---------- fieldstack : 2d or 3d array Stack of 1D or 2D background corrected electric fields (Ex/BEx). The first axis iterates through the individual fields. d : float Distance to be propagated in pixels (negative for backwards) ...
"Refocus a stack of 1D or 2D fields\n\n\n Parameters\n ----------\n fieldstack : 2d or 3d array\n Stack of 1D or 2D background corrected electric fields (Ex/BEx).\n The first axis iterates through the individual fields.\n d : float\n Distance to be propagated in pixels (negative for bac...
71
false
RI-imaging/nrefocus
refocus_stack
18,562
LDU_FT/limpyd/redis-limpyd-jobs/compute_delayed_until
LDU_FT
[ "<BEGIN>\n## `_parse_queues`", "Parse the given parameter and return a list of queues.\n The parameter must be a list/tuple of strings, or a string with queues\n separated by a comma.\n<END>", "<BEGIN>\n## `_assert_correct_model`", "Helper that asserts the model_to_check is the model_reference o...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the compute_delayed_until API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the compute_delayed_until API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Return a datetime object based on either the `delayed_for` argument (int/float/timedelta), which wille be added to the current datetime (`datetime.utcnow`), or the `delayed_until` one which must be a datetime object. Raise a `ValueError` exception if both are set, or a invalid type is used. Retu...
"Return a datetime object based on either the `delayed_for` argument\n (int/float/timedelta), which wille be added to the current datetime\n (`datetime.utcnow`), or the `delayed_until` one which must be a\n datetime object.\n Raise a `ValueError` exception if both are set, or a invalid type is\n used.\n ...
122
false
limpyd/redis-limpyd-jobs
compute_delayed_until
18,563
LDU_FT/rtfd/sphinx-autoapi/_get_toc_reference
LDU_FT
[ "<BEGIN>\n## `load`", "Load objects from the filesystem into the ``paths`` dictionary.\n<END>", "<BEGIN>\n## `read_file`", "Read file input into memory, returning deserialized objects", " :param path: Path of file to read\n :param \\**kwargs:\n * ignore (``list``): List of file patt...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_toc_reference API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_toc_reference 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...
Logic that understands maps a specific node to it's part of the toctree. It takes a specific incoming ``node``, and returns the actual TOC Tree node that is said reference.
"Logic that understands maps a specific node to it's part of the toctree.\n\n It takes a specific incoming ``node``,\n and returns the actual TOC Tree node that is said reference."
169
false
rtfd/sphinx-autoapi
_get_toc_reference
18,564
LDU_FT/Anaconda-Platform/anaconda-client/list_files
LDU_FT
[ "<BEGIN>\n## `norm_package_version`", "Normalize a version by removing extra spaces and parentheses.\n<END>", "<BEGIN>\n## `split_spec`", "Split a spec by separator and return stripped start and end parts.\n<END>", "<BEGIN>\n## `parse_specification`", "Parse a requirement from a python distribution metada...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the list_files API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the list_files API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
List available files in a project (aka notebook). :return: list
"List available files in a project (aka notebook).\n :return: list"
111
false
Anaconda-Platform/anaconda-client
list_files
18,565
LDU_FT/mesbahamin/chronophore/undo_sign_out
LDU_FT
[ "<BEGIN>\n## `migrate_050_to_051`", "Set time_out field of all flagged\n timesheet entries to Null.\n<END>", "<BEGIN>\n## `set_up_logging`", "Configure logging settings and return a logger object.\n<END>", "<BEGIN>\n## `main`", "Run Chronophore based on the command line arguments.\n<END>", "<BEGIN>\n...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the undo_sign_out API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the undo_sign_out API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
Sign in a signed out entry. :param entry: `models.Entry` object. The entry to sign back in. :param session: (optional) SQLAlchemy session through which to access the database.
"Sign in a signed out entry.\n\n :param entry: `models.Entry` object. The entry to sign back in.\n :param session: (optional) SQLAlchemy session through which to access the database."
60
false
mesbahamin/chronophore
undo_sign_out
18,566
LDU_FT/ubernostrum/webcolors/name_to_hex
LDU_FT
[ "<BEGIN>\n## `normalize_hex`", "Normalize a hexadecimal color value to 6 digits, lowercase.\n<END>", "<BEGIN>\n## `_normalize_percent_rgb`", "Internal normalization function for clipping percent values into\n the permitted range (0%-100%, inclusive).\n<END>", "<BEGIN>\n## `name_to_hex`", "Convert a col...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the name_to_hex API. 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 name_to_hex API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
Convert a color name to a normalized hexadecimal color value. The optional keyword argument ``spec`` determines which specification's list of color names will be used; valid values are ``html4``, ``css2``, ``css21`` and ``css3``, and the default is ``css3``. When no color of that name exists in th...
"Convert a color name to a normalized hexadecimal color value.\n\n The optional keyword argument ``spec`` determines which\n specification's list of color names will be used; valid values are\n ``html4``, ``css2``, ``css21`` and ``css3``, and the default is\n ``css3``.\n\n When no color of that name exis...
31
false
ubernostrum/webcolors
name_to_hex
18,567
LDU_FT/rackerlabs/fleece/set_default_timeout
LDU_FT
[ "<BEGIN>\n## `build_wsgi_environ_from_event`", "Create a WSGI environment from the proxy integration event.\n<END>", "<BEGIN>\n## `wsgi_handler`", "lambda handler function.\n This function runs the WSGI app with it and collects its response, then\n translates the response back into the format expected b...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_default_timeout 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 set_default_timeout 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...
The purpose of this function is to install default socket timeouts that different than those used by boto3 and botocore. Clients obtained from the `fleece.boto3.client()` function will have these timeouts set, unless explicitly overriden. The default timeouts set through this option apply to the entire...
"The purpose of this function is to install default socket timeouts that\n different than those used by boto3 and botocore. Clients obtained from the\n `fleece.boto3.client()` function will have these timeouts set, unless\n explicitly overriden.\n\n The default timeouts set through this option apply to the ...
108
false
rackerlabs/fleece
set_default_timeout
18,568
LDU_FT/pawelad/pymonzo/whoami
LDU_FT
[ "<BEGIN>\n## `_parse_special_fields`", "Helper method that parses special fields to Python objects", " :param data: response from Monzo API request\n :type data: dict\n<END>", "<BEGIN>\n## `_save_token_on_disk`", "Helper function that saves the token on disk\n<END>", "<BEGIN>\n## `_get_oauth...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the whoami API. 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 whoami API. 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 ...
Get information about the access token. Official docs: https://monzo.com/docs/#authenticating-requests :returns: access token details :rtype: dict
"Get information about the access token.\n\n Official docs:\n https://monzo.com/docs/#authenticating-requests\n\n :returns: access token details\n :rtype: dict"
40
false
pawelad/pymonzo
whoami
18,569
LDU_FT/matthieugouel/gibica/visit
LDU_FT
[ "<BEGIN>\n## `append_scope`", "Create a new scope in the current frame.\n<END>", "<BEGIN>\n## `pop_scope`", "Delete the current scope in the current scope.\n<END>", "<BEGIN>\n## `visit`", "Visit the right method of the child class according to the node.\n<END>", "<BEGIN>\n## `peek`", "Get the next cha...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the visit API. 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 visit API. 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...
Visit the right method of the child class according to the node.
"Visit the right method of the child class according to the node."
56
false
matthieugouel/gibica
visit
18,570
LDU_FT/postlund/pyatv/artwork_save
LDU_FT
[ "<BEGIN>\n## `lookup_tag`", "Look up a tag based on its key. Returns a DmapTag.\n<END>", "<BEGIN>\n## `scan_for_apple_tvs`", "Scan for Apple TVs using zeroconf (bonjour) and returns them.\n<END>", "<BEGIN>\n## `add_service`", "Handle callback from zeroconf when a service has been discovered.\n<END>", "<...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the artwork_save API. 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 artwork_save API. 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...
Download artwork and save it to artwork.png.
"Download artwork and save it to artwork.png."
146
false
postlund/pyatv
artwork_save
18,571
LDU_FT/rasbt/markdown-toclify/create_toc
LDU_FT
[ "<BEGIN>\n## `read_lines`", "Returns a list of lines from a input markdown file.\n<END>", "<BEGIN>\n## `remove_lines`", "Removes existing [back to top] links and <a id> tags.\n<END>", "<BEGIN>\n## `slugify_headline`", "Takes a header line from a Markdown document and\n returns a tuple of the\n '...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_toc API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_toc API. 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...
Creates the table of contents from the headline list that was returned by the tag_and_collect function. Keyword Arguments: headlines: list of lists e.g., ['Some header lvl3', 'some-header-lvl3', 3] hyperlink: Creates hyperlinks in Markdown format if True, e.g., '- [Some ...
"Creates the table of contents from the headline list\n that was returned by the tag_and_collect function.\n\n Keyword Arguments:\n headlines: list of lists\n e.g., ['Some header lvl3', 'some-header-lvl3', 3]\n hyperlink: Creates hyperlinks in Markdown format if True,\n e.g., '...
35
false
rasbt/markdown-toclify
create_toc
18,572