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/mass-project/mass_api_client/process_analyses
LDU_FT
[ "<BEGIN>\n## `create`", "Create a new report.", " For convenience :func:`~mass_api_client.resources.scheduled_analysis.ScheduledAnalysis.create_report`\n of class :class:`.ScheduledAnalysis` can be used instead.", " :param scheduled_analysis: The :class:`.ScheduledAnalysis` this report wa...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the process_analyses API. 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 process_analyses API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Process all analyses which are scheduled for the analysis system instance. This function does not terminate on its own, give it a SIGINT or Ctrl+C to stop. :param analysis_system_instance: The analysis system instance for which the analyses are scheduled. :param analysis_method: A function or method which...
"Process all analyses which are scheduled for the analysis system instance.\n\n This function does not terminate on its own, give it a SIGINT or Ctrl+C to stop.\n\n :param analysis_system_instance: The analysis system instance for which the analyses are scheduled.\n :param analysis_method: A function or method...
65
false
mass-project/mass_api_client
process_analyses
3,473
LDU_FT/nathforge/pydentifier/upper_camel
LDU_FT
[ "<BEGIN>\n## `lower_underscore`", "Generate an underscore-separated lower-case identifier, given English text,\n a prefix, and an optional suffix.", " Useful for function names and variable names.", " `prefix` can be set to `''`, though be careful - without a prefix, the\n function will throw `Inv...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the upper_camel API. 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 upper_camel API. 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...
Generate a camel-case identifier with the first word capitalised. Useful for class names. Takes a string, prefix, and optional suffix. `prefix` can be set to `''`, though be careful - without a prefix, the function will throw `InvalidIdentifier` when your string starts with a number. Example:...
"Generate a camel-case identifier with the first word capitalised.\n Useful for class names.\n\n Takes a string, prefix, and optional suffix.\n\n `prefix` can be set to `''`, though be careful - without a prefix, the\n function will throw `InvalidIdentifier` when your string starts with a\n number.\n\n ...
22
false
nathforge/pydentifier
upper_camel
3,474
LDU_FT/ranaroussi/ezibpy/contract_to_dict
LDU_FT
[ "<BEGIN>\n## `registerContract`", "used for when callback receives a contract\n that isn't found in local database\n<END>", "<BEGIN>\n## `handleConnectionState`", ":Return: True if IBPy message `msg` indicates the connection is unavailable for any reason, else False.\n<END>", "<BEGIN>\n## `handleCont...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the contract_to_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 ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the contract_to_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 ...
Convert an IBPy Contract object to a dict containing any non-default values.
"Convert an IBPy Contract object to a dict containing any non-default values."
58
false
ranaroussi/ezibpy
contract_to_dict
3,475
LDU_FT/michaelaye/pyciss/create_polynoms
LDU_FT
[ "<BEGIN>\n## `get_config`", "Read the configfile and return config dict.", " Returns\n -------\n dict\n Dictionary with the content of the configpath file.\n<END>", "<BEGIN>\n## `set_database_path`", "Use to write the database path into the config.", " Parameters\n ----------\n db...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_polynoms API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_polynoms API. 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...
Create and return poly1d objects. Uses the parameters from Morgan to create poly1d objects for calculations.
"Create and return poly1d objects.\n\n Uses the parameters from Morgan to create poly1d objects for\n calculations."
83
false
michaelaye/pyciss
create_polynoms
3,476
LDU_FT/fedora-infra/fedmsg/conglomerate
LDU_FT
[ "<BEGIN>\n## `set_high_water_mark`", "Set a high water mark on the zmq socket. Do so in a way that is\n cross-compatible with zeromq2 and zeromq3.\n<END>", "<BEGIN>\n## `set_tcp_keepalive`", "Set a series of TCP keepalive options on the socket if\n and only if\n 1) they are specified explicitly in...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the conglomerate API. 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 conglomerate API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
Return a list of messages with some of them grouped into conglomerate messages. Conglomerate messages represent several other messages. For example, you might pass this function a list of 40 messages. 38 of those are git.commit messages, 1 is a bodhi.update message, and 1 is a badge.award message. Th...
"Return a list of messages with some of them grouped into conglomerate\n messages. Conglomerate messages represent several other messages.\n\n For example, you might pass this function a list of 40 messages.\n 38 of those are git.commit messages, 1 is a bodhi.update message, and 1 is\n a badge.award messag...
248
false
fedora-infra/fedmsg
conglomerate
3,477
LDU_FT/Turbo87/aerofiles/write_fix
LDU_FT
[ "<BEGIN>\n## `write_waypoint`", "Write a waypoint::", " writer.write_waypoint(\n 'Meiersberg',\n 'MEIER',\n 'DE',\n (51 + 7.345 / 60.),\n (6 + 24.765 / 60.),\n )\n # -> \"Meiersberg\",\"MEIER\",DE,5107.34...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the write_fix API. 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 write_fix API. 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...
Write a fix record:: writer.write_fix( datetime.time(12, 34, 56), latitude=51.40375, longitude=6.41275, valid=True, pressure_alt=1234, gps_alt=1432, ) # -> B1234565124225N00624765EA012340...
"Write a fix record::\n\n writer.write_fix(\n datetime.time(12, 34, 56),\n latitude=51.40375,\n longitude=6.41275,\n valid=True,\n pressure_alt=1234,\n gps_alt=1432,\n )\n # -> B1234565124225N00624...
129
false
Turbo87/aerofiles
write_fix
3,478
LDU_FT/maaku/python-bitcoin/b58encode
LDU_FT
[ "<BEGIN>\n## `script`", "Returns a Script object representing a contract script portion of a\n payment to the destination.\n<END>", "<BEGIN>\n## `compress_amount`", "\\\n Compress 64-bit integer values, preferring a smaller size for whole\n numbers (base-10), so as to achieve run-length encoding ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the b58encode API. 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 b58encode API. 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...
Encode bytes to a base58-encoded string.
"Encode bytes to a base58-encoded string."
55
false
maaku/python-bitcoin
b58encode
3,479
LDU_FT/fitnr/twitter_bot_utils/queryize
LDU_FT
[ "<BEGIN>\n## `read_csv`", "Scrape a twitter archive csv, yielding tweet text.", " Args:\n directory (str): CSV file or (directory containing tweets.csv).\n field (str): Field with the tweet's text (default: text).\n fieldnames (list): The column names for a csv with no header. Must conta...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the queryize API. 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 queryize API. 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...
Create query from list of terms, using OR but intelligently excluding terms beginning with '-' (Twitter's NOT operator). Optionally add -from:exclude_screen_name. >>> helpers.queryize(['apple', 'orange', '-peach']) u'apple OR orange -peach' Args: terms (list): Search terms. exclude...
"Create query from list of terms, using OR\n but intelligently excluding terms beginning with '-' (Twitter's NOT operator).\n Optionally add -from:exclude_screen_name.\n\n >>> helpers.queryize(['apple', 'orange', '-peach'])\n u'apple OR orange -peach'\n\n Args:\n terms (list): Search terms.\n ...
56
false
fitnr/twitter_bot_utils
queryize
3,480
LDU_FT/quadrismegistus/prosodic/iparse
LDU_FT
[ "<BEGIN>\n## `loadLanguage`", "This function loads up a language configuration file and returns\n\tthe configuration to be passed to the syllabify function.\n<END>", "<BEGIN>\n## `syllabify`", "Syllabifies the word, given a language configuration loaded with loadLanguage.\n\t word is either a string of phon...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the iparse API. 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 iparse API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Parse this text metrically, yielding it line by line.
"Parse this text metrically, yielding it line by line."
80
false
quadrismegistus/prosodic
iparse
3,481
LDU_FT/ucsb-cs-education/hairball/attribute_state
LDU_FT
[ "<BEGIN>\n## `main`", "The entrypoint for the hairball command installed via setup.py.\n<END>", "<BEGIN>\n## `path_to_key`", "Return the sha1sum (key) belonging to the file at filepath.\n<END>", "<BEGIN>\n## `key_to_path`", "Return the fullpath to the file with sha1sum key.\n<END>", "<BEGIN>\n## `load`"...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the attribute_state API. 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 attribute_state API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
Return the state of the scripts for the given attribute. If there is more than one 'when green flag clicked' script and they both modify the attribute, then the attribute is considered to not be initialized.
"Return the state of the scripts for the given attribute.\n\n If there is more than one 'when green flag clicked' script and they\n both modify the attribute, then the attribute is considered to not be\n initialized."
90
false
ucsb-cs-education/hairball
attribute_state
3,482
LDU_FT/projectatomic/atomic-reactor/get_digests
LDU_FT
[ "<BEGIN>\n## `_build`", "build image from provided build_args", " :return: BuildResults\n<END>", "<BEGIN>\n## `_load_results`", "load results from recent build", " :return: BuildResults\n<END>", "<BEGIN>\n## `commit_buildroot`", "create image from buildroot", " :return:\n<END>",...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_digests API. 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_digests API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
Returns a map of repositories to digests
"Returns a map of repositories to digests"
440
false
projectatomic/atomic-reactor
get_digests
3,483
LDU_FT/mattrobenolt/ec2/filter
LDU_FT
[ "<BEGIN>\n## `from_file`", "Load ACCESS_KEY_ID and SECRET_ACCESS_KEY from csv\n generated by Amazon's IAM.", " >>> ec2.credentials.from_file('credentials.csv')\n<END>", "<BEGIN>\n## `make_compare`", "Map a key name to a specific comparison function\n<END>", "<BEGIN>\n## `all`", "Wrapper ar...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the filter API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the filter API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
The meat. Filtering using Django model style syntax. All kwargs are translated into attributes on the underlying objects. If the attribute is not found, it looks for a similar key in the tags. There are a couple comparisons to check against as well: exact: check strict equa...
"The meat. Filtering using Django model style syntax.\n\n All kwargs are translated into attributes on the underlying objects.\n If the attribute is not found, it looks for a similar key\n in the tags.\n\n There are a couple comparisons to check against as well:\n exact: check str...
16
false
mattrobenolt/ec2
filter
3,484
LDU_FT/ulule/django-linguist/_get_concrete_fields_with_model
LDU_FT
[ "<BEGIN>\n## `_filter_or_exclude`", "Overrides default behavior to handle linguist fields.\n<END>", "<BEGIN>\n## `_get_concrete_fields_with_model`", "For compatibility with Django<=1.10. Replace old\n `_meta.get_concrete_fields_with_model`.\n https://docs.djangoproject.com/en/1.10/ref/models/met...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_concrete_fields_with_model 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 _get_concrete_fields_with_model API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its co...
For compatibility with Django<=1.10. Replace old `_meta.get_concrete_fields_with_model`. https://docs.djangoproject.com/en/1.10/ref/models/meta/
"For compatibility with Django<=1.10. Replace old\n `_meta.get_concrete_fields_with_model`.\n https://docs.djangoproject.com/en/1.10/ref/models/meta/"
62
false
ulule/django-linguist
_get_concrete_fields_with_model
3,485
LDU_FT/theislab/scvelo/moments
LDU_FT
[ "<BEGIN>\n## `strings_to_categoricals`", "Transform string annotations to categoricals.\n<END>", "<BEGIN>\n## `velocity_graph`", "\\\n Plot of the velocity graph.", " Arguments\n ---------\n adata: :class:`~anndata.AnnData`\n Annotated data matrix.\n vkey: `str` or `None` (default: `No...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the moments API. 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 moments API. 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...
Computes moments for velocity estimation. Arguments --------- data: :class:`~anndata.AnnData` Annotated data matrix. n_neighbors: `int` (default: 30) Number of neighbors to use. n_pcs: `int` (default: 30) Number of principal components to use. mode: `'connectivities'` or...
"Computes moments for velocity estimation.\n\n Arguments\n ---------\n data: :class:`~anndata.AnnData`\n Annotated data matrix.\n n_neighbors: `int` (default: 30)\n Number of neighbors to use.\n n_pcs: `int` (default: 30)\n Number of principal components to use.\n mode: `'connecti...
200
false
theislab/scvelo
moments
3,486
LDU_FT/danilobellini/audiolazy/rint
LDU_FT
[ "<BEGIN>\n## `deprecate`", "A deprecation warning emmiter as a decorator.\n<END>", "<BEGIN>\n## `get_module_names`", "All names in the package directory that matches the given glob, without\n their extension. Repeated names should appear only once.\n<END>", "<BEGIN>\n## `get_modules`", "List of module ob...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the rint API. 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 rint API. 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...
Round to integer. Parameters ---------- x : Input number (integer or float) to be rounded. step : Quantization level (defaults to 1). If set to 2, the output will be the "best" even number. Result ------ The step multiple nearest to x. When x is exactly halfway between two possible outputs...
"Round to integer.\n\n Parameters\n ----------\n x :\n Input number (integer or float) to be rounded.\n step :\n Quantization level (defaults to 1). If set to 2, the output will be the\n \"best\" even number.\n\n Result\n ------\n The step multiple nearest to x. When x is exactly halfway between two\n ...
578
false
danilobellini/audiolazy
rint
3,487
LDU_FT/houtianze/bypy/cdl_add
LDU_FT
[ "<BEGIN>\n## `human_time`", "DocTests:\n\t>>> human_time(0) == ''\n\tTrue\n\t>>> human_time(122.1) == '2m2s'\n\tTrue\n\t>>> human_time(133) == '2m13s'\n\tTrue\n\t>>> human_time(12345678) == '20W2D21h21m18s'\n\tTrue\n<END>", "<BEGIN>\n## `limit_unit`", "DocTests:\n\t>>> limit_unit('1m2s', 1) == '1m'\n\tTrue\n\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the cdl_add API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the cdl_add API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
Usage: cdl_add <source_url> [save_path] [timeout] - add an offline (cloud) download task source_url - the URL to download file from. save_path - path on PCS to save file to. default is to save to root directory '/'. timeout - timeout in seconds. default is 3600 seconds.
"Usage: cdl_add <source_url> [save_path] [timeout] - add an offline (cloud) download task\n source_url - the URL to download file from.\n save_path - path on PCS to save file to. default is to save to root directory '/'.\n timeout - timeout in seconds. default is 3600 seconds."
55
false
houtianze/bypy
cdl_add
3,488
LDU_FT/dschien/PyExcelModelingHelper/growth_coefficients
LDU_FT
[ "<BEGIN>\n## `growth_coefficients`", "Build a matrix of growth factors according to the CAGR formula y'=y0 (1+a)^(t'-t0).", " a growth rate alpha\n t0 start date\n t' end date\n y' output\n y0 start value\n<END>", "<BEGIN>\n## `get_mean`", "Get the mean value for a distribution.\n If ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the growth_coefficients 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 growth_coefficients 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...
Build a matrix of growth factors according to the CAGR formula y'=y0 (1+a)^(t'-t0). a growth rate alpha t0 start date t' end date y' output y0 start value
"Build a matrix of growth factors according to the CAGR formula y'=y0 (1+a)^(t'-t0).\n\n a growth rate alpha\n t0 start date\n t' end date\n y' output\n y0 start value"
39
false
dschien/PyExcelModelingHelper
growth_coefficients
3,489
LDU_FT/sendgrid/sendgrid-python/name
LDU_FT
[ "<BEGIN>\n## `threshold`", "Threshold used to determine if your content qualifies as spam.\n On a scale from 1 to 10, with 10 being most strict, or most likely to\n be considered as spam.", " :param value: Threshold used to determine if your content qualifies as\n spam....
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the name API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the name API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
Name associated with this email. :param value: Name associated with this email. :type value: string
"Name associated with this email.\n\n :param value: Name associated with this email.\n :type value: string"
229
false
sendgrid/sendgrid-python
name
3,490
LDU_FT/ml31415/numpy-groupies/c_func
LDU_FT
[ "<BEGIN>\n## `aggregate_group_loop`", "wraps func in lambda which prevents aggregate_numpy from\n recognising and optimising it. Instead it groups and loops.\n<END>", "<BEGIN>\n## `step_count`", "Return the amount of index changes within group_idx.\n<END>", "<BEGIN>\n## `step_indices`", "Return the edg...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the c_func API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the c_func API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Fill c_funcs with constructed code from the templates
"Fill c_funcs with constructed code from the templates"
56
false
ml31415/numpy-groupies
c_func
3,491
LDU_FT/ThreatResponse/margaritashotgun/cleanup
LDU_FT
[ "<BEGIN>\n## `configure`", "Connect paramiko transport", " :type auth: :py:class`margaritashotgun.auth.AuthMethods`\n :param auth: authentication object\n :type address: str\n :param address: remote server ip or hostname\n :type port: int\n :param port: remote server po...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the cleanup API. 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 cleanup API. 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...
Release resources used during shell execution
"Release resources used during shell execution"
134
false
ThreatResponse/margaritashotgun
cleanup
3,492
LDU_FT/castelao/oceansdb/cars_profile
LDU_FT
[ "<BEGIN>\n## `cropIndices`", "Return the indices to crop dataset", " Assuming that the dataset have the dimensions given by\n dims, this function return the indices to conform with\n the given coordinates (lat, lon, ...)\n<END>", "<BEGIN>\n## `dbsource`", "Return which file(s) to us...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the cars_profile API. 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 cars_profile API. 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...
For now only the nearest value For now only for one position, not an array of positions longitude 0-360
"For now only the nearest value\n For now only for one position, not an array of positions\n longitude 0-360"
39
false
castelao/oceansdb
cars_profile
3,493
LDU_FT/maxcountryman/flask-login/login_url
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 login_url API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the login_url API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
Creates a URL for redirecting to a login page. If only `login_view` is provided, this will just return the URL for it. If `next_url` is provided, however, this will append a ``next=URL`` parameter to the query string so that the login view can redirect back to that URL. Flask-Login's default unauthorize...
"Creates a URL for redirecting to a login page. If only `login_view` is\n provided, this will just return the URL for it. If `next_url` is provided,\n however, this will append a ``next=URL`` parameter to the query string\n so that the login view can redirect back to that URL. Flask-Login's default\n unauth...
62
false
maxcountryman/flask-login
login_url
3,494
LDU_FT/last-partizan/pytils/distance_of_time
LDU_FT
[ "<BEGIN>\n## `choose_plural`", "Choose proper form for plural.", " Value is a amount, parameters are forms of noun.\n Forms are variants for 1, 2, 5 nouns. It may be tuple\n of elements, or string where variants separates each other\n by comma.", " Examples::\n {{ some_int|choose_plural:...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the distance_of_time API. 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 distance_of_time API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Display distance of time from current time. Parameter is an accuracy level (deafult is 1). Value must be numeral (i.e. time.time() result) or datetime.datetime (i.e. datetime.datetime.now() result). Examples:: {{ some_time|distance_of_time }} {{ some_dtime|distance_of_time:2 }}
"Display distance of time from current time.\n\n Parameter is an accuracy level (deafult is 1).\n Value must be numeral (i.e. time.time() result) or\n datetime.datetime (i.e. datetime.datetime.now()\n result).\n\n Examples::\n {{ some_time|distance_of_time }}\n {{ some_dtime|distance_of_tim...
134
false
last-partizan/pytils
distance_of_time
3,495
LDU_FT/FlorianRhiem/pyGLFW/get_window_user_pointer
LDU_FT
[ "<BEGIN>\n## `_find_library_candidates`", "Finds and returns filenames which might be the library you are looking for.\n<END>", "<BEGIN>\n## `_load_library`", "Finds, loads and returns the most recent version of the library.\n<END>", "<BEGIN>\n## `_get_library_search_paths`", "Returns a list of library se...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_window_user_pointer 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_window_user_pointer API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion...
Returns the user pointer of the specified window. Wrapper for: void* glfwGetWindowUserPointer(GLFWwindow* window);
"Returns the user pointer of the specified window.\n\n Wrapper for:\n void* glfwGetWindowUserPointer(GLFWwindow* window);"
105
false
FlorianRhiem/pyGLFW
get_window_user_pointer
3,496
LDU_FT/canonical-ols/acceptable/render_value
LDU_FT
[ "<BEGIN>\n## `metadata_lint`", "Run the linter over the new metadata, comparing to the old.\n<END>", "<BEGIN>\n## `bind`", "Bind the service API urls to a flask app.\n<END>", "<BEGIN>\n## `serialize`", "Serialize into JSONable dict, and associated locations data.\n<END>", "<BEGIN>\n## `api`", "Add an ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the render_value API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the render_value API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
Render a value, ensuring that any nested dicts are sorted by key.
"Render a value, ensuring that any nested dicts are sorted by key."
61
false
canonical-ols/acceptable
render_value
3,497
LDU_FT/viralogic/py-enumerable/concat
LDU_FT
[ "<BEGIN>\n## `select`", "Transforms data into different form\n :param func: lambda expression on how to perform transformation\n :return: new Enumerable object containing transformed data\n<END>", "<BEGIN>\n## `min`", "Returns the min value of data elements\n :param func: lambda expressio...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the concat API. 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 concat API. 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 ...
Adds enumerable to an enumerable :param enumerable: An iterable object :return: new Enumerable object
"Adds enumerable to an enumerable\n :param enumerable: An iterable object\n :return: new Enumerable object"
65
false
viralogic/py-enumerable
concat
3,498
LDU_FT/intake/intake/pretty_describe
LDU_FT
[ "<BEGIN>\n## `expand_defaults`", "Compile env, client_env, shell and client_shell commands\n<END>", "<BEGIN>\n## `get`", "Instantiate the DataSource for the given parameters\n<END>", "<BEGIN>\n## `_load`", "Load text of fcatalog file and pass to parse", " Will do nothing if autoreload is off and ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the pretty_describe API. 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 pretty_describe API. 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...
Maintain dict ordering - but make string version prettier
"Maintain dict ordering - but make string version prettier"
280
false
intake/intake
pretty_describe
3,499
LDU_FT/igorcoding/asynctnt/eval
LDU_FT
[ "<BEGIN>\n## `close`", "Same as disconnect, but not a coroutine, i.e. it does not wait\n for disconnect to finish.\n<END>", "<BEGIN>\n## `call`", "Call request coroutine. It is a call with a new behaviour\n (return result of a Tarantool procedure is not wrapped into\n an extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the eval API. 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 eval API. 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...
Eval request coroutine. Examples: .. code-block:: pycon >>> await conn.eval('return 42') <Response sync=3 rowcount=1 data=[42]> >>> await conn.eval('return box.info.version') <Response sync=3 rowcount=1 data=['2.1.1-7-gd381a45b...
"Eval request coroutine.\n\n Examples:\n\n .. code-block:: pycon\n\n >>> await conn.eval('return 42')\n <Response sync=3 rowcount=1 data=[42]>\n\n\n >>> await conn.eval('return box.info.version')\n <Response sync=3 rowcount=1 data=['2.1.1...
74
false
igorcoding/asynctnt
eval
3,500
LDU_FT/glitchassassin/lackey/type
LDU_FT
[ "<BEGIN>\n## `_check_count`", "Private function to return ctypes errors cleanly\n<END>", "<BEGIN>\n## `getScreenBounds`", "Returns the screen size of the specified monitor (0 being the main monitor).\n<END>", "<BEGIN>\n## `getScreenDetails`", "Return list of attached monitors", " For each monitor...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the type API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the type API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
Translates a string into a series of keystrokes. Respects Sikuli special codes, like "{ENTER}".
"Translates a string into a series of keystrokes.\n\n Respects Sikuli special codes, like \"{ENTER}\"."
378
false
glitchassassin/lackey
type
3,501
LDU_FT/Yelp/kafka-utils/_validate_plan_base
LDU_FT
[ "<BEGIN>\n## `get_assignment`", "Parse the given json plan in dict format.\n<END>", "<BEGIN>\n## `_send_consumer_aware_request`", "Send a list of requests to the consumer coordinator for the group\n specified using the supplied encode/decode functions. As the payloads\n that use consumer-aware r...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _validate_plan_base 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 _validate_plan_base 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...
Validate if given plan is valid comparing with given base-plan. Validate following assertions: - Partition-check: New partition-set should be subset of base-partition set - Replica-count check: Replication-factor for each partition remains same - Broker-check: New broker-set should be subset of base br...
"Validate if given plan is valid comparing with given base-plan.\n\n Validate following assertions:\n - Partition-check: New partition-set should be subset of base-partition set\n - Replica-count check: Replication-factor for each partition remains same\n - Broker-check: New broker-set should be subset of b...
538
false
Yelp/kafka-utils
_validate_plan_base
3,502
LDU_FT/aws/aws-encryption-sdk-python/serialize_wrapped_key
LDU_FT
[ "<BEGIN>\n## `_encryption_context_hash`", "Generates the expected hash for the provided encryption context.", " :param hasher: Existing hasher to use\n :type hasher: cryptography.hazmat.primitives.hashes.Hash\n :param dict encryption_context: Encryption context to hash\n :returns: Complete hash\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the serialize_wrapped_key API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the serialize_wrapped_key API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Serializes EncryptedData into a Wrapped EncryptedDataKey. :param key_provider: Info for Wrapping MasterKey :type key_provider: aws_encryption_sdk.structures.MasterKeyInfo :param wrapping_algorithm: Wrapping Algorithm with which to wrap plaintext_data_key :type wrapping_algorithm: aws_encryption_sdk.ide...
"Serializes EncryptedData into a Wrapped EncryptedDataKey.\n\n :param key_provider: Info for Wrapping MasterKey\n :type key_provider: aws_encryption_sdk.structures.MasterKeyInfo\n :param wrapping_algorithm: Wrapping Algorithm with which to wrap plaintext_data_key\n :type wrapping_algorithm: aws_encryption_s...
364
false
aws/aws-encryption-sdk-python
serialize_wrapped_key
3,503
LDU_FT/peterwittek/ncpol2sdpa/get_monomials
LDU_FT
[ "<BEGIN>\n## `read_sdpa_out`", "Helper function to parse the output file of SDPA.", " :param filename: The name of the SDPA output file.\n :type filename: str.\n :param solutionmatrix: Optional parameter for retrieving the solution.\n :type solutionmatrix: bool.\n :param status: Optional paramete...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_monomials API. 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_monomials API. 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...
Generates all noncommutative monomials up to a degree :param variables: The noncommutative variables to generate monomials from :type variables: list of :class:`sympy.physics.quantum.operator.Operator` or :class:`sympy.physics.quantum.operator.HermitianOperator`. :...
"Generates all noncommutative monomials up to a degree\n\n :param variables: The noncommutative variables to generate monomials from\n :type variables: list of :class:`sympy.physics.quantum.operator.Operator`\n or\n :class:`sympy.physics.quantum.operator.HermitianOperator`....
217
false
peterwittek/ncpol2sdpa
get_monomials
3,504
LDU_FT/brutasse/graphite-api/movingSum
LDU_FT
[ "<BEGIN>\n## `_find_paths`", "Recursively generates absolute paths whose components\n underneath current_dir match the corresponding pattern in\n patterns\n<END>", "<BEGIN>\n## `union_overlapping`", "Union any overlapping intervals in the given set.\n<END>", "<BEGIN>\n## `recurse`", "Recursi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the movingSum API. 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 movingSum API. 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...
Graphs the moving sum of a metric (or metrics) over a fixed number of past points, or a time interval. Takes one metric or a wildcard seriesList followed by a number N of datapoints or a quoted string with a length of time like '1hour' or '5min' (See ``from / until`` in the render\_api_ for examples of...
"Graphs the moving sum of a metric (or metrics) over a fixed number of\n past points, or a time interval.\n\n Takes one metric or a wildcard seriesList followed by a number N of\n datapoints or a quoted string with a length of time like '1hour' or '5min'\n (See ``from / until`` in the render\\_api_ for exam...
519
false
brutasse/graphite-api
movingSum
3,505
LDU_FT/AllTheWayDown/turgles/remove
LDU_FT
[ "<BEGIN>\n## `shape`", "We need to shift buffers in order to change shape\n<END>", "<BEGIN>\n## `new`", "Return the last currently unused chunk, resizing if needed.", " If init is passed, chunk will be initialised to that data\n<END>", "<BEGIN>\n## `resize`", "Create a new larger array, and copy ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the remove API. 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 remove API. 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 ...
Remove chunk at index. Doesn't actually delete data, copies last chunk's data over data to be removed, and decreases the count
"Remove chunk at index.\n\n Doesn't actually delete data, copies last chunk's data over data to be\n removed, and decreases the count"
22
false
AllTheWayDown/turgles
remove
3,506
LDU_FT/h2oai/datatable/find_includes
LDU_FT
[ "<BEGIN>\n## `_parse_row`", "Scan a single row from an Excel file, and return the list of ranges\n corresponding to each consecutive span of non-empty cells in this row.\n If all cells are empty, return an empty list. Each \"range\" in the list\n is a tuple of the form `(startcol, endcol)`.", " For ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_includes API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_includes API. 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...
Find user includes (no system includes) requested from given source file. All .h files will be given relative to the current folder, e.g. ["c/rowindex.h", "c/column.h"].
"Find user includes (no system includes) requested from given source file.\n\n All .h files will be given relative to the current folder, e.g.\n [\"c/rowindex.h\", \"c/column.h\"]."
49
false
h2oai/datatable
find_includes
3,507
LDU_FT/hadrianl/huobi/batchcancel_orders
LDU_FT
[ "<BEGIN>\n## `async_request`", "异步并发请求\n :param reqs: 请求列表\n :return:\n<END>", "<BEGIN>\n## `get_kline`", "获取KLine\n :param symbol\n :param period: 可选值:{1min, 5min, 15min, 30min, 60min, 1day, 1mon, 1week, 1year }\n :param size: 可选值: [1,2000]\n :return:\n<END>", "<BE...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the batchcancel_orders 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 batchcancel_orders API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
批量撤销订单 :param order_id: :return:
"批量撤销订单\n :param order_id:\n :return:"
108
false
hadrianl/huobi
batchcancel_orders
3,508
LDU_FT/gforcada/haproxy_log_analysis/filter_time_frame
LDU_FT
[ "<BEGIN>\n## `filter_ip_range`", "Filter :class:`.Line` objects by IP range.", " Both *192.168.1.203* and *192.168.1.10* are valid if the provided ip\n range is ``192.168.1`` whereas *192.168.2.103* is not valid (note the\n *.2.*).", " :param ip_range: IP range that you want to filter to.\n :ty...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the filter_time_frame API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the filter_time_frame API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Filter :class:`.Line` objects by their connection time. :param start: a time expression (see -s argument on --help for its format) to filter log lines that are before this time. :type start: string :param delta: a relative time expression (see -s argument on --help for its format) to limit the ...
"Filter :class:`.Line` objects by their connection time.\n\n :param start: a time expression (see -s argument on --help for its format)\n to filter log lines that are before this time.\n :type start: string\n :param delta: a relative time expression (see -s argument on --help for\n its format) to lim...
71
false
gforcada/haproxy_log_analysis
filter_time_frame
3,509
LDU_FT/hazelcast/hazelcast-python-client/execute_on_members
LDU_FT
[ "<BEGIN>\n## `add`", "Adds the specified item to this queue if there is available space.", " :param item: (object), the specified item.\n :return: (bool), ``true`` if element is successfully added, ``false`` otherwise.\n<END>", "<BEGIN>\n## `add_all`", "Adds the elements in the specified colle...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the execute_on_members 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 execute_on_members 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...
Executes a task on each of the specified members. :param members: (Collection), the specified members. :param task: (Task), the task executed on the specified members. :return: (Map), :class:`~hazelcast.future.Future` tuples representing pending completion of the task on each member.
"Executes a task on each of the specified members.\n\n :param members: (Collection), the specified members.\n :param task: (Task), the task executed on the specified members.\n :return: (Map), :class:`~hazelcast.future.Future` tuples representing pending completion of the task on each member."
666
false
hazelcast/hazelcast-python-client
execute_on_members
3,510
LDU_FT/gophish/api-client-python/complete
LDU_FT
[ "<BEGIN>\n## `get`", "Gets the details for one or more resources by ID", " Args:\n cls - gophish.models.Model - The resource class\n resource_id - str - The endpoint (URL path) for the resource\n resource_action - str - An action to perform on the resource\n re...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the complete API. 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 complete API. 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...
Complete an existing campaign (Stop processing events)
"Complete an existing campaign (Stop processing events)"
21
false
gophish/api-client-python
complete
3,511
LDU_FT/MacHu-GWU/pyknackhq-project/convert_values
LDU_FT
[ "<BEGIN>\n## `get_field_key`", "Given a field key or name, return it's field key.\n<END>", "<BEGIN>\n## `get_object_key`", "Given a object key or name, return it's object key.\n<END>", "<BEGIN>\n## `install`", "Install your package to all Python version you have installed on Windows.\n<END>", "<BEGIN>\n...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the convert_values API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the convert_values API. 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 knackhq data type instance to json friendly data.
"Convert knackhq data type instance to json friendly data."
122
false
MacHu-GWU/pyknackhq-project
convert_values
3,512
LDU_FT/Microsoft/azure-devops-python-api/delete_agent_queue
LDU_FT
[ "<BEGIN>\n## `create_attachment`", "CreateAttachment.\n Creates an attachment in the wiki.\n :param object upload_stream: Stream to upload\n :param str project: Project ID or project name\n :param str wiki_identifier: Wiki Id or name.\n :param str name: Wiki attachment name.\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the delete_agent_queue 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 delete_agent_queue 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...
DeleteAgentQueue. [Preview API] Removes an agent queue from a project. :param int queue_id: The agent queue to remove :param str project: Project ID or project name
"DeleteAgentQueue.\n [Preview API] Removes an agent queue from a project.\n :param int queue_id: The agent queue to remove\n :param str project: Project ID or project name"
1,304
true
Microsoft/azure-devops-python-api
delete_agent_queue
3,513
LDU_FT/dpgaspar/Flask-AppBuilder/_edit
LDU_FT
[ "<BEGIN>\n## `dict_to_json`", "Converts a list of dicts from datamodel query results\n to google chart json data.", " :param xcol:\n The name of a string column to be used has X axis on chart\n :param ycols:\n A list with the names of series cols, that can be used as n...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _edit API. 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 _edit API. 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...
Edit function logic, override to implement different logic returns Edit widget and related list or None
"Edit function logic, override to implement different logic\n returns Edit widget and related list or None"
393
false
dpgaspar/Flask-AppBuilder
_edit
3,514
LDU_FT/rstoneback/pysatMagVect/ecef_to_geodetic
LDU_FT
[ "<BEGIN>\n## `add_mag_drift_unit_vectors_ecef`", "Adds unit vectors expressing the ion drift coordinate system\n organized by the geomagnetic field. Unit vectors are expressed\n in ECEF coordinates.", " Parameters\n ----------\n inst : pysat.Instrument\n Instrument object that will get uni...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the ecef_to_geodetic API. 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 ecef_to_geodetic API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Convert ECEF into Geodetic WGS84 coordinates Parameters ---------- x : float or array_like ECEF-X in km y : float or array_like ECEF-Y in km z : float or array_like ECEF-Z in km method : 'iterative' or 'closed' ('closed' is deafult) String selects method of c...
"Convert ECEF into Geodetic WGS84 coordinates\n \n Parameters\n ----------\n x : float or array_like\n ECEF-X in km\n y : float or array_like\n ECEF-Y in km\n z : float or array_like\n ECEF-Z in km\n method : 'iterative' or 'closed' ('closed' is deafult)\n String selects...
108
false
rstoneback/pysatMagVect
ecef_to_geodetic
3,515
LDU_FT/undertheseanlp/underthesea/tokenize
LDU_FT
[ "<BEGIN>\n## `Text`", "provide a wrapper for python string\n map byte to str (python 3)\n all string in utf-8 encoding\n normalize string to NFC\n<END>", "<BEGIN>\n## `sent2features`", "extract features in a sentence", " :type sentence: list of token, each token is a list of tag\n<END>", "<BEG...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the tokenize API. 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 tokenize API. 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...
tokenize text for word segmentation :param text: raw text input :return: tokenize text
"tokenize text for word segmentation\n\n :param text: raw text input\n :return: tokenize text"
62
false
undertheseanlp/underthesea
tokenize
3,516
LDU_FT/jorahn/icy/to_df
LDU_FT
[ "<BEGIN>\n## `ae`", "Computes the absolute error.", " This function computes the absolute error between two numbers,\n or for element between a pair of lists or numpy arrays.", " Parameters\n ----------\n actual : int, float, list of numbers, numpy array\n The ground truth value\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the to_df API. 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 to_df API. 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...
Convert obj to pandas.DataFrame, determine parser from filename. Falls back to odo, esp. for database uri's.
"Convert obj to pandas.DataFrame, determine parser from filename.\n Falls back to odo, esp. for database uri's."
86
false
jorahn/icy
to_df
3,517
LDU_FT/MakersF/LoLScraper/slice_time
LDU_FT
[ "<BEGIN>\n## `slice_time`", ":param begin: datetime\n :param end: datetime\n :param duration: timedelta\n :return: a generator for a set of timeslices of the given duration\n<END>", "<BEGIN>\n## `store`", "Writes text to the underlying Store mapped at tier. If the store doesn't exists, yet, it create...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the slice_time API. 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 slice_time API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
:param begin: datetime :param end: datetime :param duration: timedelta :return: a generator for a set of timeslices of the given duration
":param begin: datetime\n :param end: datetime\n :param duration: timedelta\n :return: a generator for a set of timeslices of the given duration"
18
false
MakersF/LoLScraper
slice_time
3,518
LDU_FT/pyout/pyout/validate
LDU_FT
[ "<BEGIN>\n## `validate`", "Check `style` against pyout.styling.schema.", " Parameters\n ----------\n style : dict\n Style object to validate.", " Raises\n ------\n StyleValidationError if `style` is not valid.\n<END>", "<BEGIN>\n## `value_type`", "Classify `value` of bold, color, ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the validate API. 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 validate API. 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...
Check `style` against pyout.styling.schema. Parameters ---------- style : dict Style object to validate. Raises ------ StyleValidationError if `style` is not valid.
"Check `style` against pyout.styling.schema.\n\n Parameters\n ----------\n style : dict\n Style object to validate.\n\n Raises\n ------\n StyleValidationError if `style` is not valid."
92
false
pyout/pyout
validate
3,519
LDU_FT/bennylope/pygeocodio/reverse_point
LDU_FT
[ "<BEGIN>\n## `error_response`", "Raises errors matching the response code\n<END>", "<BEGIN>\n## `_req`", "Method to wrap all request building", " :return: a Response object based on the specified method and request values.\n<END>", "<BEGIN>\n## `parse`", "Returns an Address dictionary with the co...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the reverse_point API. 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 reverse_point API. 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...
Method for identifying an address from a geographic point
"Method for identifying an address from a geographic point"
28
false
bennylope/pygeocodio
reverse_point
3,520
LDU_FT/quiltdata/quilt/tag_add
LDU_FT
[ "<BEGIN>\n## `create_s3_session`", "Creates a session with automatic retries on 5xx errors.\n<END>", "<BEGIN>\n## `load_module`", "Returns an object that lazily looks up tables and groups.\n<END>", "<BEGIN>\n## `find_module`", "Looks up the table based on the module path.\n<END>", "<BEGIN>\n## `_path_ha...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the tag_add API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the tag_add API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
Add a new tag for a given package hash. Unlike versions, tags can have an arbitrary format, and can be modified and deleted. When a package is pushed, it gets the "latest" tag.
"Add a new tag for a given package hash.\n\n Unlike versions, tags can have an arbitrary format, and can be modified\n and deleted.\n\n When a package is pushed, it gets the \"latest\" tag."
202
false
quiltdata/quilt
tag_add
3,521
LDU_FT/clement-alexandre/TotemBionet/sub_state_by_gene_name
LDU_FT
[ "<BEGIN>\n## `pick_a_model_randomly`", "Naive picking function, return one of the models chosen randomly.\n<END>", "<BEGIN>\n## `as_data_frame`", "Create a panda DataFrame representation of the resource table.\n<END>", "<BEGIN>\n## `is_active`", "Return True if the multiplex is active in the given state, ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the sub_state_by_gene_name API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the sub_state_by_gene_name API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
Create a sub state with only the gene passed in arguments. Example ------- >>> state.sub_state_by_gene_name('operon') {operon: 2} >>> state.sub_state_by_gene_name('mucuB') {mucuB: 0}
"Create a sub state with only the gene passed in arguments.\n\n Example\n -------\n\n >>> state.sub_state_by_gene_name('operon')\n {operon: 2}\n >>> state.sub_state_by_gene_name('mucuB')\n {mucuB: 0}"
49
false
clement-alexandre/TotemBionet
sub_state_by_gene_name
3,522
LDU_FT/jut-io/jut-python-tools/get_deployment_id
LDU_FT
[ "<BEGIN>\n## `_print_jobs`", "internal method to print the provided jobs array in a nice tabular\n format\n<END>", "<BEGIN>\n## `debug`", "debug output goes to stderr so you can still redirect the stdout to a file\n or another program. Controlled by the JUT_DEBUG environment variable being\n present\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_deployment_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...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_deployment_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...
return the deployment id for the deployment with the specified name
"return the deployment id for the deployment with the specified name"
72
false
jut-io/jut-python-tools
get_deployment_id
3,523
LDU_FT/openclimatedata/pyhector/run
LDU_FT
[ "<BEGIN>\n## `read_hector_input`", "Reads a Hector CSV file and returns it as a Pandas DataFrame.\n<END>", "<BEGIN>\n## `write_hector_input`", "Writes a scenario DataFrame to a CSV emissions file as used in Hector.", " Parameters\n ----------\n scenario : DataFrame\n DataFrame with emissions...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the run API. 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 run API. 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...
Runs a scenario through the Hector climate model. Parameters ---------- scenario : DataFrame DataFrame with emissions. See ``pyhector.rcp26`` for an example and :mod:`pyhector.units` for units of emissions values. config : dictionary, default ``None`` Additional config options t...
"Runs a scenario through the Hector climate model.\n\n Parameters\n ----------\n scenario : DataFrame\n DataFrame with emissions. See ``pyhector.rcp26`` for an\n example and :mod:`pyhector.units` for units of emissions values.\n config : dictionary, default ``None``\n Additional config ...
19
false
openclimatedata/pyhector
run
3,524
LDU_FT/ga4gh/ga4gh-client/run
LDU_FT
[ "<BEGIN>\n## `_run_search_request`", "Runs the specified request at the specified object_name and\n instantiates an object of the specified class. We yield each object in\n listAttr. If pages of results are present, repeat this process\n until the pageToken is null.\n<END>", "<BEGIN>\n## `...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the run API. 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 run API. 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...
Iterate passed read group ids, or go through all available read groups
"Iterate passed read group ids, or go through all available read groups"
104
false
ga4gh/ga4gh-client
run
3,525
LDU_FT/python-odin/odinweb/dispatch_operation
LDU_FT
[ "<BEGIN>\n## `action`", "Decorator to apply an action to a resource. An action is applied to a `detail` operation.\n<END>", "<BEGIN>\n## `listing`", "Decorator to configure an operation that returns a list of resources.\n<END>", "<BEGIN>\n## `create`", "Decorator to configure an operation that creates a r...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the dispatch_operation 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 dispatch_operation 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...
Dispatch and handle exceptions from operation.
"Dispatch and handle exceptions from operation."
139
false
python-odin/odinweb
dispatch_operation
3,526
LDU_FT/dylanaraps/pywal/disown
LDU_FT
[ "<BEGIN>\n## `get_desktop_env`", "Identify the current running desktop environment.\n<END>", "<BEGIN>\n## `set_wm_wallpaper`", "Set the wallpaper for non desktop environments.\n<END>", "<BEGIN>\n## `set_desktop_wallpaper`", "Set the wallpaper for the desktop environment.\n<END>", "<BEGIN>\n## `disown`",...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the disown API. 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 disown API. 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 ...
Call a system command in the background, disown it and hide it's output.
"Call a system command in the background,\n disown it and hide it's output."
28
false
dylanaraps/pywal
disown
3,527
LDU_FT/DataONEorg/d1_python/update_module_file
LDU_FT
[ "<BEGIN>\n## `wrap`", "Work with the AccessPolicy in a SystemMetadata PyXB object.", " Args:\n access_pyxb : AccessPolicy PyXB object\n The AccessPolicy to modify.", " read_only: bool\n Do not update the wrapped AccessPolicy.", " When only a single AccessPolicy operation is nee...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update_module_file API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update_module_file API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
Set show_diff to False to overwrite module_path with a new file generated from ``redbaron_tree``. Returns True if tree is different from source.
"Set show_diff to False to overwrite module_path with a new file generated from\n ``redbaron_tree``.\n\n Returns True if tree is different from source."
1,937
true
DataONEorg/d1_python
update_module_file
3,528
LDU_FT/jtwhite79/pyemu/kl_apply
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 kl_apply API. 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 kl_apply API. 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...
Applies a KL parameterization transform from basis factors to model input arrays. Companion function to kl_setup() Parameters ---------- par_file : str the csv file to get factor values from. Must contain the following columns: name, new_val, org_val basis_file : str the b...
"Applies a KL parameterization transform from basis factors to model\n input arrays. Companion function to kl_setup()\n\n Parameters\n ----------\n par_file : str\n the csv file to get factor values from. Must contain\n the following columns: name, new_val, org_val\n basis_file : str\n ...
1,496
true
jtwhite79/pyemu
kl_apply
3,529
LDU_FT/doconix/django-mako-plus/template_links
LDU_FT
[ "<BEGIN>\n## `run_command`", "Runs a command, piping all output to the DMP log.\n The args should be separate arguments so paths and subcommands can have spaces in them:", " ret = run_command('ls', '-l', '/Users/me/My Documents')\n print(ret.code)\n print(ret.stdout)\n print(ret.s...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the template_links API. 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 template_links API. 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...
Returns the HTML for the given provider group, using an app and template name. This method should not normally be used (use links() instead). The use of this method is when provider need to be called from regular python code instead of from within a rendering template environment.
"Returns the HTML for the given provider group, using an app and template name.\n This method should not normally be used (use links() instead). The use of\n this method is when provider need to be called from regular python code instead\n of from within a rendering template environment."
207
false
doconix/django-mako-plus
template_links
3,530
LDU_FT/LesPatamechanix/patalib/generate_clinamen
LDU_FT
[ "<BEGIN>\n## `generate_clinamen`", "Generate a clinamen. Here we\n looks for words via the damerau levenshtein distance\n with a distance of 2.\n<END>", "<BEGIN>\n## `damerau_levenshtein_distance`", "Dervied algorithm from the following website:\n https://www.guyrutenberg.com/2008/12/15/d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the generate_clinamen API. 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 generate_clinamen API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Generate a clinamen. Here we looks for words via the damerau levenshtein distance with a distance of 2.
"Generate a clinamen. Here we\n looks for words via the damerau levenshtein distance\n with a distance of 2."
12
false
LesPatamechanix/patalib
generate_clinamen
3,531
LDU_FT/cnschema/cdata/file2abspath
LDU_FT
[ "<BEGIN>\n## `wikidata_get`", "https://www.wikidata.org/wiki/Special:EntityData/P248.json\n<END>", "<BEGIN>\n## `wikidata_search`", "wikification: search wikipedia pages for the given query\n https://www.wikidata.org/w/api.php?action=help&modules=wbsearchentities", " result format\n {\n...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the file2abspath API. 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 file2abspath API. 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...
generate absolute path for the given file and base dir
"generate absolute path for the given file and base dir"
29
false
cnschema/cdata
file2abspath
3,532
LDU_FT/jelmer/python-fastimport/_adjust_for_new_root
LDU_FT
[ "<BEGIN>\n## `check_path`", "Check that a path is legal.", " :return: the path if all is OK\n :raise ValueError: if the path is illegal\n<END>", "<BEGIN>\n## `format_path`", "Format a path in utf8, quoting it if necessary.\n<END>", "<BEGIN>\n## `format_who_when`", "Format a tuple of name,email,sec...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _adjust_for_new_root API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _adjust_for_new_root API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Adjust a path given the new root directory of the output.
"Adjust a path given the new root directory of the output."
100
false
jelmer/python-fastimport
_adjust_for_new_root
3,533
LDU_FT/learningequality/ricecooker/prompt_yes_or_no
LDU_FT
[ "<BEGIN>\n## `_write_to_zip`", "_write_to_zip: Write file to zip\n Args:\n path: (str) where in zip to write file\n contents: (str) contents of file to write\n Returns: None\n<END>", "<BEGIN>\n## `_commit`", "_commit: Adds folder/file to map\n Arg...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the prompt_yes_or_no API. 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 prompt_yes_or_no API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
prompt_yes_or_no: Prompt user to reply with a y/n response Args: None Returns: None
"prompt_yes_or_no: Prompt user to reply with a y/n response\n Args: None\n Returns: None"
364
false
learningequality/ricecooker
prompt_yes_or_no
3,534
LDU_FT/jgorset/fandjango/synchronize
LDU_FT
[ "<BEGIN>\n## `facebook_authorization_required`", "Require the user to authorize the application.", " :param redirect_uri: A string describing an URL to redirect to after authorization is complete.\n If ``None``, redirects to the current URL in the Facebook canvas\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the synchronize API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the synchronize API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
Synchronize ``facebook_username``, ``first_name``, ``middle_name``, ``last_name`` and ``birthday`` with Facebook. :param graph_data: Optional pre-fetched graph data
"Synchronize ``facebook_username``, ``first_name``, ``middle_name``,\n ``last_name`` and ``birthday`` with Facebook.\n\n :param graph_data: Optional pre-fetched graph data"
34
false
jgorset/fandjango
synchronize
3,535
LDU_FT/MisterWil/abodepy/_on_timeline_update
LDU_FT
[ "<BEGIN>\n## `map_event_code`", "Map a specific event_code to an event group.\n<END>", "<BEGIN>\n## `desc`", "Get a short description of the automation.\n<END>", "<BEGIN>\n## `_get_numeric_status`", "Extract the numeric value from the statuses object.\n<END>", "<BEGIN>\n## `is_on`", "Get sensor state....
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _on_timeline_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. T...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _on_timeline_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. T...
Timeline update broadcast from Abode SocketIO server.
"Timeline update broadcast from Abode SocketIO server."
53
false
MisterWil/abodepy
_on_timeline_update
3,536
LDU_FT/wesleybeckner/salty/check_name
LDU_FT
[ "<BEGIN>\n## `assign_category`", "Identifies IL type based on name/str", " Parameters\n ----------\n salts: pandas DataFrame\n dataframe containing column with cation name", " Returns\n ----------\n salts: pandas DataFrame\n returns the same dataframe with categories\n<END>", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the check_name API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the check_name API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
checkName uses a database to return either SMILES or IUPAC names of cations/anions. Default behavior is to return the SMILES encoding of an ion given the ion name as input. Parameters ------------------ user_query : str string that will be used to query the database. Returns -...
"checkName uses a database to return either SMILES or IUPAC\n names of cations/anions.\n\n Default behavior is to return the SMILES encoding of an ion given\n the ion name as input.\n\n Parameters\n ------------------\n user_query : str\n string that will be used to query the database.\n\n R...
27
false
wesleybeckner/salty
check_name
3,537
LDU_FT/mikeboers/sitetools/get_environ_list
LDU_FT
[ "<BEGIN>\n## `_process_pth`", "Process a ``.pth`` file similar to site.addpackage(...).\n<END>", "<BEGIN>\n## `add_site_list`", "Add a list of pseudo site-packages to :data:`python:sys.path`.", " This centers the list on ``sys.path`` around the current environment.\n I.e. if this environment is in the...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_environ_list API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_environ_list API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Return the split colon-delimited list from an environment variable. Returns an empty list if the variable didn't exist.
"Return the split colon-delimited list from an environment variable.\n\n Returns an empty list if the variable didn't exist."
43
false
mikeboers/sitetools
get_environ_list
3,538
LDU_FT/cedrus-opensource/pyxid/device_at_index
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 device_at_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 e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the device_at_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 e...
Returns the device at the specified index
"Returns the device at the specified index"
43
false
cedrus-opensource/pyxid
device_at_index
3,539
LDU_FT/jbasko/configmanager/yaml
LDU_FT
[ "<BEGIN>\n## `values`", "Returns a mapping of items to their new values. The mapping includes only items whose value or raw string value\n has changed in the context.\n<END>", "<BEGIN>\n## `changes`", "Returns a mapping of items to their effective change objects which include the old values\n an...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the yaml API. 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 yaml API. 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...
Adapter to dump/load YAML format strings and files. Returns: ConfigPersistenceAdapter
"Adapter to dump/load YAML format strings and files.\n \n Returns:\n ConfigPersistenceAdapter"
120
false
jbasko/configmanager
yaml
3,540
LDU_FT/openid/python-openid/split
LDU_FT
[ "<BEGIN>\n## `queryURL`", "Build a URL to query the proxy resolver.", " @param xri: An XRI to resolve.\n @type xri: unicode", " @param service_type: The service type to resolve, if you desire\n service endpoint selection. A service type is a URI.\n @type service_type: s...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the split API. 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 split API. 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...
Extract a timestamp from the given nonce string @param nonce_string: the nonce from which to extract the timestamp @type nonce_string: str @returns: A pair of a Unix timestamp and the salt characters @returntype: (int, str) @raises ValueError: if the nonce does not start with a correctly ...
"Extract a timestamp from the given nonce string\n\n @param nonce_string: the nonce from which to extract the timestamp\n @type nonce_string: str\n\n @returns: A pair of a Unix timestamp and the salt characters\n @returntype: (int, str)\n\n @raises ValueError: if the nonce does not start with a correctly...
828
false
openid/python-openid
split
3,541
LDU_FT/Dallinger/Dallinger/extend_hit
LDU_FT
[ "<BEGIN>\n## `setup`", "Setup the networks.", " Setup only does stuff if there are no networks, this is so it only\n runs once at the start of the experiment. It first calls the same\n function in the super (see experiments.py in dallinger). Then it adds a\n source to each network.\n...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the extend_hit API. 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 extend_hit API. 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...
Extend an existing HIT and return an updated description
"Extend an existing HIT and return an updated description"
425
false
Dallinger/Dallinger
extend_hit
3,542
LDU_FT/fulfilio/python-magento/addtrack
LDU_FT
[ "<BEGIN>\n## `info`", "Retrieve customer data", " :param id: ID of customer\n :param attributes: `List` of attributes needed\n<END>", "<BEGIN>\n## `search`", "Retrieve order list by options using search api. Using this result can\n be paginated", " :param options: Dictionary of...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the addtrack API. 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 addtrack API. 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...
Add new tracking number :param shipment_increment_id: Shipment ID :param carrier: Carrier Code :param title: Tracking title :param track_number: Tracking Number
"Add new tracking number\n\n :param shipment_increment_id: Shipment ID\n :param carrier: Carrier Code\n :param title: Tracking title\n :param track_number: Tracking Number"
143
false
fulfilio/python-magento
addtrack
3,543
LDU_FT/catherinedevlin/ddl-generator/_id_fieldname
LDU_FT
[ "<BEGIN>\n## `precision_and_scale`", "From a float, decide what precision and scale are needed to represent it.", " >>> precision_and_scale(54.2)\n (3, 1)\n >>> precision_and_scale(9)\n (1, 0)", " Thanks to Mark Ransom,\n http://stackoverflow.com/questions/3018758/determine-precision-and-sca...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _id_fieldname API. 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 _id_fieldname API. 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...
Finds the field name from a dict likeliest to be its unique ID >>> _id_fieldname({'bar': True, 'id': 1}, 'foo') 'id' >>> _id_fieldname({'bar': True, 'foo_id': 1, 'goo_id': 2}, 'foo') 'foo_id' >>> _id_fieldname({'bar': True, 'baz': 1, 'baz_id': 3}, 'foo')
"Finds the field name from a dict likeliest to be its unique ID\n\n >>> _id_fieldname({'bar': True, 'id': 1}, 'foo')\n 'id'\n >>> _id_fieldname({'bar': True, 'foo_id': 1, 'goo_id': 2}, 'foo')\n 'foo_id'\n >>> _id_fieldname({'bar': True, 'baz': 1, 'baz_id': 3}, 'foo')"
63
false
catherinedevlin/ddl-generator
_id_fieldname
3,544
LDU_FT/infobloxopen/infoblox-netmri/api_request
LDU_FT
[ "<BEGIN>\n## `_make_request`", "Prepares the request, checks for authentication and retries in case of issues", " Args:\n url (str): URL of the request\n method (str): Any of \"get\", \"post\", \"delete\"\n data (any): Possible extra data to send with the request\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the api_request API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the api_request API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
Execute an arbitrary method. Args: method_name (str): include the controller name: 'devices/search' params (dict): the method parameters Returns: A dict with the response Raises: requests.exceptions.HTTPError
"Execute an arbitrary method.\n\n Args:\n method_name (str): include the controller name: 'devices/search'\n params (dict): the method parameters\n Returns:\n A dict with the response\n Raises:\n requests.exceptions.HTTPError"
29
false
infobloxopen/infoblox-netmri
api_request
3,545
LDU_FT/davidhuser/dhis2.py/get
LDU_FT
[ "<BEGIN>\n## `_set_log_format`", "Set log format\n :param color: Log message is colored\n :param include_caller: At the end, put a [caller:line-of-code], e.g. [script:123]\n :return: string of log format\n<END>", "<BEGIN>\n## `setup_logger`", "Setup logzero logger. if logfile is specified, create add...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
GET from DHIS2 :param endpoint: DHIS2 API endpoint :param file_type: DHIS2 API File Type (json, xml, csv), defaults to JSON :param params: HTTP parameters :param stream: use requests' stream parameter :return: requests.Response object
"GET from DHIS2\n :param endpoint: DHIS2 API endpoint\n :param file_type: DHIS2 API File Type (json, xml, csv), defaults to JSON\n :param params: HTTP parameters\n :param stream: use requests' stream parameter\n :return: requests.Response object"
52
false
davidhuser/dhis2.py
get
3,546
LDU_FT/CityOfZion/neo-python-rpc/get_contract_state
LDU_FT
[ "<BEGIN>\n## `get_account`", "Look up an account on the blockchain. Sample output:", " Args:\n address: (str) address to lookup ( in format 'AXjaFSP23Jkbe6Pk9pPGT6NBDs1HVdqaXK')\n id: (int, optional) id to use for response tracking\n endpoint: (RPCEndpoint, optional) end...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_contract_state 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_contract_state API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
Get a contract state object by its hash Args: contract_hash: (str) the hash of the contract to lookup, for example 'd7678dd97c000be3f33e9362e673101bac4ca654' id: (int, optional) id to use for response tracking endpoint: (RPCEndpoint, optional) endpoint to specify to use ...
"Get a contract state object by its hash\n Args:\n contract_hash: (str) the hash of the contract to lookup, for example 'd7678dd97c000be3f33e9362e673101bac4ca654'\n id: (int, optional) id to use for response tracking\n endpoint: (RPCEndpoint, optional) endpoint to specify to use\...
76
false
CityOfZion/neo-python-rpc
get_contract_state
3,547
LDU_FT/anthill/koala/xirr
LDU_FT
[ "<BEGIN>\n## `max_dimension`", "This function calculates the maximum dimension of the workbook or optionally the worksheet. It returns a tupple\n of two integers, the first being the rows and the second being the columns.", " :param cellmap: all the cells that should be used to calculate the maximum.\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the xirr API. 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 xirr API. 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...
Function to calculate the internal rate of return (IRR) using payments and non-periodic dates. It resembles the excel function XIRR(). Excel reference: https://support.office.com/en-ie/article/xirr-function-de1242ec-6477-445b-b11b-a303ad9adc9d :param values: the payments of which at least one has to be ne...
"Function to calculate the internal rate of return (IRR) using payments and non-periodic dates. It resembles the\n excel function XIRR().\n\n Excel reference: https://support.office.com/en-ie/article/xirr-function-de1242ec-6477-445b-b11b-a303ad9adc9d\n\n :param values: the payments of which at least one has to...
38
false
anthill/koala
xirr
3,548
LDU_FT/openknowledge-archive/flexidate/as_datetime
LDU_FT
[ "<BEGIN>\n## `parse`", "Parse a `date` into a `FlexiDate`.", " @param date: the date to parse - may be a string, datetime.date,\n datetime.datetime or FlexiDate.", " TODO: support for quarters e.g. Q4 1980 or 1954 Q3\n TODO: support latin stuff like M.DCC.LIII\n TODO: convert '-' to '?' when us...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the as_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 extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the as_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 extra...
Get as python datetime.datetime. Require year to be a valid datetime year. Default month and day to 1 if do not exist. @return: datetime.datetime object.
"Get as python datetime.datetime.\n\n Require year to be a valid datetime year. Default month and day to 1 if\n do not exist.\n\n @return: datetime.datetime object."
17
false
openknowledge-archive/flexidate
as_datetime
3,549
LDU_FT/ocaballeror/LyricFetch/musixmatch
LDU_FT
[ "<BEGIN>\n## `load_from_file`", "Load a list of filenames from an external text file.\n<END>", "<BEGIN>\n## `parse_argv`", "Parse command line arguments. Settings will be stored in the global\n variables declared above.\n<END>", "<BEGIN>\n## `exclude_sources`", "Returns a narrower list of sources.", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the musixmatch API. 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 musixmatch API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
Returns the lyrics found in musixmatch for the specified mp3 file or an empty string if not found.
"Returns the lyrics found in musixmatch for the specified mp3 file or an\n empty string if not found."
69
false
ocaballeror/LyricFetch
musixmatch
3,550
LDU_FT/pmorissette/ffn/get
LDU_FT
[ "<BEGIN>\n## `memoize`", "Memoize decorator. The refresh keyword is the keyword\n used to bypass the cache (in the function call).\n<END>", "<BEGIN>\n## `parse_arg`", "Parses arguments for convenience. Argument can be a\n csv list ('a,b,c'), a string, a list, a tuple.", " Returns a list.\n<END>", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
Helper function for retrieving data as a DataFrame. Args: * tickers (list, string, csv string): Tickers to download. * provider (function): Provider to use for downloading data. By default it will be ffn.DEFAULT_PROVIDER if not provided. * common_dates (bool): Keep common dates ...
"Helper function for retrieving data as a DataFrame.\n\n Args:\n * tickers (list, string, csv string): Tickers to download.\n * provider (function): Provider to use for downloading data.\n By default it will be ffn.DEFAULT_PROVIDER if not provided.\n * common_dates (bool): Keep common...
176
false
pmorissette/ffn
get
3,551
LDU_FT/arneb/django-messages/inbox_count_for
LDU_FT
[ "<BEGIN>\n## `save_model`", "Saves the message for the recipient and looks in the form instance\n for other possible recipients. Prevents duplication by excludin the\n original recipient from the list of optional recipients.", " When changing an existing message and choosing optional recipi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the inbox_count_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 e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the inbox_count_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 e...
returns the number of unread messages for the given user but does not mark them seen
"returns the number of unread messages for the given user but does not\n mark them seen"
35
false
arneb/django-messages
inbox_count_for
3,552
LDU_FT/pyokagan/pyglreg/get_profiles
LDU_FT
[ "<BEGIN>\n## `import_type`", "Import Type `name` and its dependencies from Registry `src`\n to Registry `dest`.", " :param Registry dest: Destination Registry\n :param Registry src: Source Registry\n :param str name: Name of type to import\n :param str api: Prefer to import Types with api Name `a...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_profiles API. 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_profiles API. 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...
Returns set of profile names referenced in this Extension :return: set of profile name strings
"Returns set of profile names referenced in this Extension\n\n :return: set of profile name strings"
84
false
pyokagan/pyglreg
get_profiles
3,553
LDU_FT/alorence/django-modern-rpc/http_basic_auth_permissions_required
LDU_FT
[ "<BEGIN>\n## `_generic_convert_string`", "Generic method to convert any argument type (string type, list, set, tuple, dict) to an equivalent,\n with string values converted to given 'to_type' (str or unicode).\n This method must be used with Python 2 interpreter only.", " :param v: The value to convert...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the http_basic_auth_permissions_required API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates i...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the http_basic_auth_permissions_required API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates i...
Decorator. Use it to specify a RPC method is available only to logged users with given permissions
"Decorator. Use it to specify a RPC method is available only to logged users with given permissions"
86
false
alorence/django-modern-rpc
http_basic_auth_permissions_required
3,554
LDU_FT/chimpler/pyhocon/get_list
LDU_FT
[ "<BEGIN>\n## `to_json`", "Convert HOCON input into a JSON output", " :return: JSON string representation\n :type return: basestring\n<END>", "<BEGIN>\n## `to_hocon`", "Convert HOCON input into a HOCON output", " :return: JSON string representation\n :type return: basestring\n<E...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_list API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_list API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
Return list representation of value found at key :param key: key to use (dot separated). E.g., a.b.c :type key: basestring :param default: default value if key not found :type default: list :return: list value :type return: list
"Return list representation of value found at key\n\n :param key: key to use (dot separated). E.g., a.b.c\n :type key: basestring\n :param default: default value if key not found\n :type default: list\n :return: list value\n :type return: list"
80
false
chimpler/pyhocon
get_list
3,555
LDU_FT/danielfrg/datasciencebox/update
LDU_FT
[ "<BEGIN>\n## `managed`", "Create and install python requirements in a conda enviroment\n pip is installed by default in the new enviroment", " name : path to the enviroment to be created\n packages : None\n single package or list of packages to install i.e. numpy, scipy=0.13.3, pandas\n requi...
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 ...
Update conda packages in a conda env Attributes ---------- packages: list of packages comma delimited
"Update conda packages in a conda env\n\n Attributes\n ----------\n packages: list of packages comma delimited"
45
false
danielfrg/datasciencebox
update
3,556
LDU_FT/lemieuxl/pyGenClean/addToTPEDandTFAM
LDU_FT
[ "<BEGIN>\n## `main`", "The main function of the module.", " :param argString: the options.", " :type argString: list", " These are the steps:", " 1. Prints the options.\n 2. If there are ``summarized_intensities`` provided, reads the files\n (:py:func:`read_summarized_intensities`) an...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the addToTPEDandTFAM API. 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 addToTPEDandTFAM API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Append a tfile to another, creating a new one. :param tped: the ``tped`` that will be appended to the other one. :param tfam: the ``tfam`` that will be appended to the other one. :param prefix: the prefix of all the files. :param toAddPrefix: the prefix of the final file. :type tped: :py:class:`nu...
"Append a tfile to another, creating a new one.\n\n :param tped: the ``tped`` that will be appended to the other one.\n :param tfam: the ``tfam`` that will be appended to the other one.\n :param prefix: the prefix of all the files.\n :param toAddPrefix: the prefix of the final file.\n\n :type tped: :py:c...
1,109
true
lemieuxl/pyGenClean
addToTPEDandTFAM
3,557
LDU_FT/etalab/cada/error
LDU_FT
[ "<BEGIN>\n## `pip`", "Parse pip requirement file and transform it to setuptools requirements\n<END>", "<BEGIN>\n## `echo`", "Wraps click.echo, handles formatting and check encoding\n<END>", "<BEGIN>\n## `error`", "Display an error message with optionnal details\n<END>", "<BEGIN>\n## `load`", "Load one...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the error API. 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 error API. 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...
Display an error message with optionnal details
"Display an error message with optionnal details"
10
false
etalab/cada
error
3,558
LDU_FT/spotify/gordon-gcp/validate
LDU_FT
[ "<BEGIN>\n## `validate`", "Validate a message given a schema.", " Args:\n message (dict): Loaded JSON of pulled message from Google\n PubSub.\n schema_name (str): Name of schema to validate ``message``\n against. ``schema_name`` will be used to look up\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the validate API. 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 validate API. 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...
Validate a message given a schema. Args: message (dict): Loaded JSON of pulled message from Google PubSub. schema_name (str): Name of schema to validate ``message`` against. ``schema_name`` will be used to look up schema from :py:attr:`.Me...
"Validate a message given a schema.\n\n Args:\n message (dict): Loaded JSON of pulled message from Google\n PubSub.\n schema_name (str): Name of schema to validate ``message``\n against. ``schema_name`` will be used to look up\n schema from :py:a...
72
false
spotify/gordon-gcp
validate
3,559
LDU_FT/beregond/jsonmodels/compare_schemas
LDU_FT
[ "<BEGIN>\n## `compare_schemas`", "Compare two structures that represents JSON schemas.", " For comparison you can't use normal comparison, because in JSON schema\n lists DO NOT keep order (and Python lists do), so this must be taken into\n account during comparison.", " Note this wont check all co...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the compare_schemas API. 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 compare_schemas API. 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...
Compare two structures that represents JSON schemas. For comparison you can't use normal comparison, because in JSON schema lists DO NOT keep order (and Python lists do), so this must be taken into account during comparison. Note this wont check all configurations, only first one that seems to mat...
"Compare two structures that represents JSON schemas.\n\n For comparison you can't use normal comparison, because in JSON schema\n lists DO NOT keep order (and Python lists do), so this must be taken into\n account during comparison.\n\n Note this wont check all configurations, only first one that seems to\...
32
false
beregond/jsonmodels
compare_schemas
3,560
LDU_FT/limdauto/drf_openapi/_get_parameters
LDU_FT
[ "<BEGIN>\n## `get_links`", "Return a dictionary containing all the links that should be\n included in the API schema.\n<END>", "<BEGIN>\n## `get_path_fields`", "Return a list of `coreapi.Field` instances corresponding to any\n templated path variables.\n<END>", "<BEGIN>\n## `get_serializer_cla...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_parameters API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_parameters API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
Generates Swagger Parameter Item object.
"Generates Swagger Parameter Item object."
14
false
limdauto/drf_openapi
_get_parameters
3,561
LDU_FT/sanger-pathogens/pymummer/update_indel
LDU_FT
[ "<BEGIN>\n## `_swap`", "Swaps the alignment so that the reference becomes the query and vice-versa. Swaps their names, coordinates etc. The frame is not changed\n<END>", "<BEGIN>\n## `qry_coords`", "Returns a pyfastaq.intervals.Interval object of the start and end coordinates in the query sequence\n<END>", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update_indel API. 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 update_indel API. 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...
Indels are reported over multiple lines, 1 base insertion or deletion per line. This method extends the current variant by 1 base if it's an indel and adjacent to the new SNP and returns True. If the current variant is a SNP, does nothing and returns False
"Indels are reported over multiple lines, 1 base insertion or deletion per line. This method extends the current variant by 1 base if it's an indel and adjacent to the new SNP and returns True. If the current variant is a SNP, does nothing and returns False"
26
false
sanger-pathogens/pymummer
update_indel
3,562
LDU_FT/cslarsen/crianza/native_types
LDU_FT
[ "<BEGIN>\n## `xcompile`", "Parses Crianza source code and returns a native Python function.", " Args:\n args: The resulting function's number of input parameters.", " Returns:\n A callable Python function.\n<END>", "<BEGIN>\n## `xeval`", "Compiles to native Python bytecode and runs pro...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the native_types API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the native_types API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
Convert code elements from strings to native Python types.
"Convert code elements from strings to native Python types."
106
false
cslarsen/crianza
native_types
3,563
LDU_FT/jmcarp/robobrowser/_traverse
LDU_FT
[ "<BEGIN>\n## `parsed`", "Lazily parse response content, using HTML parser specified by the\n browser.\n<END>", "<BEGIN>\n## `_build_send_args`", "Merge optional arguments with defaults.", " :param kwargs: Keyword arguments to `Session::send`\n<END>", "<BEGIN>\n## `open`", "Open a URL.", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _traverse API. 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 _traverse API. 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...
Traverse state history. Used by `back` and `forward` methods. :param int n: Cursor increment. Positive values move forward in the browser history; negative values move backward.
"Traverse state history. Used by `back` and `forward` methods.\n\n :param int n: Cursor increment. Positive values move forward in the\n browser history; negative values move backward."
73
false
jmcarp/robobrowser
_traverse
3,564
LDU_FT/stephenmcd/django-socketio/get_handler
LDU_FT
[ "<BEGIN>\n## `socketio`", "Socket.IO handler - maintains the lifecycle of a Socket.IO\n request, sending the each of the events. Also handles\n adding/removing request/socket pairs to the CLIENTS dict\n which is used for sending on_finish events when the server\n stops.\n<END>", "<BEGIN>\n## `client...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_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. The extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_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. The extra...
Returns the django.contrib.staticfiles handler.
"Returns the django.contrib.staticfiles handler."
33
false
stephenmcd/django-socketio
get_handler
3,565
LDU_FT/owncloud/pyocclient/get_file_contents
LDU_FT
[ "<BEGIN>\n## `get_expiration`", "Returns the expiration date.", " :returns: expiration date\n :rtype: datetime object\n<END>", "<BEGIN>\n## `login`", "Authenticate to ownCloud.\n This will create a session on the server.", " :param user_id: user id\n :param password: pas...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_file_contents API. 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_file_contents API. 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 contents of a remote file :param path: path to the remote file :returns: file contents :rtype: binary data :raises: HTTPResponseError in case an HTTP error status was returned
"Returns the contents of a remote file\n\n :param path: path to the remote file\n :returns: file contents\n :rtype: binary data\n :raises: HTTPResponseError in case an HTTP error status was returned"
139
false
owncloud/pyocclient
get_file_contents
3,566
LDU_FT/MartinThoma/mpu/indices2one_hot
LDU_FT
[ "<BEGIN>\n## `timing`", "Measure the execution time of a function call and print the result.\n<END>", "<BEGIN>\n## `deprecated`", "Mark functions as deprecated.", " It will result in a warning being emitted when the function is used.\n<END>", "<BEGIN>\n## `get_currency`", "Convert an identifier for a...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the indices2one_hot API. 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 indices2one_hot API. 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...
Convert an iterable of indices to one-hot encoded list. You might also be interested in sklearn.preprocessing.OneHotEncoder Parameters ---------- indices : iterable iterable of indices nb_classes : int Number of classes dtype : type Returns ------- one_hot : list ...
"Convert an iterable of indices to one-hot encoded list.\n\n You might also be interested in sklearn.preprocessing.OneHotEncoder\n\n Parameters\n ----------\n indices : iterable\n iterable of indices\n nb_classes : int\n Number of classes\n dtype : type\n\n Returns\n -------\n o...
255
false
MartinThoma/mpu
indices2one_hot
3,567
LDU_FT/RedHatInsights/insights-core/parse_non_selinux
LDU_FT
[ "<BEGIN>\n## `get_shared_data`", "Returns the actual list of component data based on how data is\n stored in component, either from the `data` attribute or from the\n `data['content']` attribute.", " Returns:\n list: List of component data.\n<END>", "<BEGIN>\n## `merge_lvm_data`", "Returns a...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_non_selinux API. 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 parse_non_selinux API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Parse part of an ls output line that isn't selinux. Args: parts (list): A four element list of strings representing the initial parts of an ls line after the permission bits. The parts are link count, owner, group, and everything else. Returns: A dict containing links, ...
"Parse part of an ls output line that isn't selinux.\n\n Args:\n parts (list): A four element list of strings representing the initial\n parts of an ls line after the permission bits. The parts are link\n count, owner, group, and everything else.\n\n Returns:\n A dict containin...
912
false
RedHatInsights/insights-core
parse_non_selinux
3,568
LDU_FT/majerteam/sqla_inspect/_get_related_exporter
LDU_FT
[ "<BEGIN>\n## `get_info_field`", "Return the info attribute of the given property\n<END>", "<BEGIN>\n## `add_formatter`", "Add a formatter to the registry\n if key_specific is provided, this formatter will only be used for some\n specific exports\n<END>", "<BEGIN>\n## `render`", "Write to the...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_related_exporter 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_related_exporter API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
returns an SqlaOdsExporter for the given related object and stores it in the column object as a cache
"returns an SqlaOdsExporter for the given related object and stores it in\n the column object as a cache"
132
false
majerteam/sqla_inspect
_get_related_exporter
3,569
LDU_FT/b-loyola/itglue-py/update
LDU_FT
[ "<BEGIN>\n## `set_attributes`", "Set the value of multiple attributes.\n :param attributes_dict dict: a dictionary containing key-value pairs as attribute names and values to be set\n :returns: the resource itself\n<END>", "<BEGIN>\n## `save`", "Either creates a resource or updates it (if it alr...
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 ...
Updates the resource. This will trigger an api PATCH request. :param parent ResourceBase: the parent of the resource - used for nesting the request url, optional :raises ResourceError: if the resource does not have an id (does not exist yet) :returns: the resource itself
"Updates the resource. This will trigger an api PATCH request.\n :param parent ResourceBase: the parent of the resource - used for nesting the request url, optional\n :raises ResourceError: if the resource does not have an id (does not exist yet)\n :returns: the resource itself"
22
false
b-loyola/itglue-py
update
3,570
LDU_FT/ARMmbed/autoversion/get_current_semver
LDU_FT
[ "<BEGIN>\n## `get_current_semver`", "Given a dictionary of all version data available, determine the current version\n<END>", "<BEGIN>\n## `make_new_semver`", "Defines how to increment semver based on which significant figure is triggered\n<END>", "<BEGIN>\n## `main`", "Tags the current repository", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_current_semver 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_current_semver 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...
Given a dictionary of all version data available, determine the current version
"Given a dictionary of all version data available, determine the current version"
37
false
ARMmbed/autoversion
get_current_semver
3,571
LDU_FT/cbrand/vpnchooser/_parse
LDU_FT
[ "<BEGIN>\n## `check`", "Checks the given password with the one stored\n in the database\n<END>", "<BEGIN>\n## `connect`", "Connects the client to the server and\n returns it.\n<END>", "<BEGIN>\n## `server_rules`", "Reads the server rules from the client\n and returns it.\n<END>", "<...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _parse API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _parse API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Parses the given data string and returns a list of rule objects.
"Parses the given data string and returns\n a list of rule objects."
38
false
cbrand/vpnchooser
_parse
3,572