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/meejah/txtorcon/maybe_call_closing_deferred
LDU_FT
[ "<BEGIN>\n## `tor_agent`", "This is the low-level method used by\n :meth:`txtorcon.Tor.web_agent` and\n :meth:`txtorcon.Circuit.web_agent` -- probably you should call one\n of those instead.", " :returns: a Deferred that fires with an object that implements\n :class:`twisted.web.iweb.IAgent` ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the maybe_call_closing_deferred API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclu...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the maybe_call_closing_deferred API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclu...
Used internally to callback on the _closing_deferred if it exists.
"Used internally to callback on the _closing_deferred if it\n exists."
289
false
meejah/txtorcon
maybe_call_closing_deferred
36,973
LDU_FT/mkorpela/pabot/set_parallel_value_for_key
LDU_FT
[ "<BEGIN>\n## `run_only_once`", "Runs a keyword only once in one of the parallel processes.\n As the keyword will be called\n only in one process and the return value could basically be anything.\n The \"Run Only Once\" can't return the actual return value.\n If the keyword fails, \"Run...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_parallel_value_for_key API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclus...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_parallel_value_for_key API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclus...
Set a globally available key and value that can be accessed from all the pabot processes.
"Set a globally available key and value that can be accessed\n from all the pabot processes."
17
false
mkorpela/pabot
set_parallel_value_for_key
36,974
LDU_FT/awslabs/aws-sam-cli/_get_invoke_config
LDU_FT
[ "<BEGIN>\n## `invoke_common_options`", "Common CLI options shared by \"local invoke\" and \"local start-api\" commands", " :param f: Callback passed by Click\n<END>", "<BEGIN>\n## `get_or_default_template_file_name`", "Default value for the template file name option is more complex than what Click can ha...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_invoke_config API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_invoke_config API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
Returns invoke configuration to pass to Lambda Runtime to invoke the given function :param samcli.commands.local.lib.provider.Function function: Lambda function to generate the configuration for :return samcli.local.lambdafn.config.FunctionConfig: Function configuration to pass to Lambda runtime
"Returns invoke configuration to pass to Lambda Runtime to invoke the given function\n\n :param samcli.commands.local.lib.provider.Function function: Lambda function to generate the configuration for\n :return samcli.local.lambdafn.config.FunctionConfig: Function configuration to pass to Lambda runtime"
708
false
awslabs/aws-sam-cli
_get_invoke_config
36,975
LDU_FT/juju/python-libjuju/dns_name
LDU_FT
[ "<BEGIN>\n## `get_charm_series`", "Inspects the charm directory at ``path`` and returns a default\n series from its metadata.yaml (the first item in the 'series' list).", " Returns None if no series can be determined.\n<END>", "<BEGIN>\n## `cares_about`", "Return True if this observer \"cares about\" ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the dns_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 extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the dns_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 extracte...
Get the DNS name for this machine. This is a best guess based on the addresses available in current data. May return None if no suitable address is found.
"Get the DNS name for this machine. This is a best guess based on the\n addresses available in current data.\n\n May return None if no suitable address is found."
672
false
juju/python-libjuju
dns_name
36,976
LDU_FT/dshean/demcoreg/get_modis_tile_list
LDU_FT
[ "<BEGIN>\n## `get_nlcd_fn`", "Calls external shell script `get_nlcd.sh` to fetch:", " 2011 Land Use Land Cover (nlcd) grids, 30 m", " http://www.mrlc.gov/nlcd11_leg.php\n<END>", "<BEGIN>\n## `get_bareground_fn`", "Calls external shell script `get_bareground.sh` to fetch:", " ~2010 global bare g...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_modis_tile_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. T...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_modis_tile_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. T...
Helper function to identify MODIS tiles that intersect input geometry modis_gird.py contains dictionary of tile boundaries (tile name and WKT polygon ring from bbox) See: https://modis-land.gsfc.nasa.gov/MODLAND_grid.html
"Helper function to identify MODIS tiles that intersect input geometry\n\n modis_gird.py contains dictionary of tile boundaries (tile name and WKT polygon ring from bbox)\n\n See: https://modis-land.gsfc.nasa.gov/MODLAND_grid.html"
63
false
dshean/demcoreg
get_modis_tile_list
36,977
LDU_FT/bureaucratic-labs/models/train
LDU_FT
[ "<BEGIN>\n## `char2features`", "Returns features of char at position `i` in given sentence\n When it possible, result features list also includes features for 2 characters\n ahead and behind current position (like bigrams, or something like it)\n Currently, used features is:\n 1. lower-cased value of ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the train API. 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 train API. 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...
>>> corpus = CorpusReader('annot.opcorpora.xml') >>> X_train, x_test, y_train, y_test = get_train_data(corpus, test_size=0.33, random_state=42) >>> crf = train(X_train, X_test, y_train, y_test)
">>> corpus = CorpusReader('annot.opcorpora.xml')\n >>> X_train, x_test, y_train, y_test = get_train_data(corpus, test_size=0.33, random_state=42)\n >>> crf = train(X_train, X_test, y_train, y_test)"
10
false
bureaucratic-labs/models
train
36,978
LDU_FT/django-auth-ldap/django-auth-ldap/get_or_build_user
LDU_FT
[ "<BEGIN>\n## `get_or_build_user`", "This must return a (User, built) 2-tuple for the given LDAP user.", " username is the Django-friendly username of the user. ldap_user.dn is\n the user's DN and ldap_user.attrs contains all of their LDAP\n attributes.", " The returned User object ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_or_build_user API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_or_build_user API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
This must return a (User, built) 2-tuple for the given LDAP user. username is the Django-friendly username of the user. ldap_user.dn is the user's DN and ldap_user.attrs contains all of their LDAP attributes. The returned User object may be an unsaved model instance.
"This must return a (User, built) 2-tuple for the given LDAP user.\n\n username is the Django-friendly username of the user. ldap_user.dn is\n the user's DN and ldap_user.attrs contains all of their LDAP\n attributes.\n\n The returned User object may be an unsaved model instance."
65
false
django-auth-ldap/django-auth-ldap
get_or_build_user
36,979
LDU_FT/tryolabs/requestium/is_cookie_in_driver
LDU_FT
[ "<BEGIN>\n## `_ensure_click`", "Ensures a click gets made, because Selenium can be a bit buggy about clicks", " This method gets added to the selenium element returned in '__ensure_element_by_xpath'.\n We should probably add it to more selenium methods, such as all the 'find**' methods though.", " I ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_cookie_in_driver 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 is_cookie_in_driver 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...
We check that the cookie is correctly added to the driver We only compare name, value and domain, as the rest can produce false negatives. We are a bit lenient when comparing domains.
"We check that the cookie is correctly added to the driver\n\n We only compare name, value and domain, as the rest can produce false negatives.\n We are a bit lenient when comparing domains."
26
false
tryolabs/requestium
is_cookie_in_driver
36,980
LDU_FT/materialsproject/custodian/file_delete
LDU_FT
[ "<BEGIN>\n## `from_spec`", "Load a Custodian instance where the jobs are specified from a\n structure and a spec dict. This allows simple\n custom job sequences to be constructed quickly via a YAML file.", " Args:\n spec (dict): A dict specifying job. A sample of the dict in\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the file_delete API. 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 file_delete API. 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...
Deletes a file. {'_file_delete': {'mode': "actual"}} Args: filename (str): Filename. settings (dict): Must be {"mode": actual/simulated}. Simulated mode only prints the action without performing it.
"Deletes a file. {'_file_delete': {'mode': \"actual\"}}\n\n Args:\n filename (str): Filename.\n settings (dict): Must be {\"mode\": actual/simulated}. Simulated\n mode only prints the action without performing it."
90
false
materialsproject/custodian
file_delete
36,981
LDU_FT/seomoz/qless-py/failed
LDU_FT
[ "<BEGIN>\n## `clone`", "Clone the redis client to be slowlog-compatible\n<END>", "<BEGIN>\n## `stop`", "Set everything back to normal and collect our data\n<END>", "<BEGIN>\n## `class_string`", "Return a string representative of the class\n<END>", "<BEGIN>\n## `put`", "Either create a new job in the p...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the failed API. 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 failed API. 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 ...
If no group is provided, this returns a JSON blob of the counts of the various types of failures known. If a type is provided, returns paginated job objects affected by that kind of failure.
"If no group is provided, this returns a JSON blob of the counts of\n the various types of failures known. If a type is provided, returns\n paginated job objects affected by that kind of failure."
66
false
seomoz/qless-py
failed
36,982
LDU_FT/joshleeb/creditcard/is_valid
LDU_FT
[ "<BEGIN>\n## `is_visa`", "Checks if credit card number fits the visa format.\n<END>", "<BEGIN>\n## `is_visa_electron`", "Checks if credit card number fits the visa electron format.\n<END>", "<BEGIN>\n## `is_mastercard`", "Checks if credit card number fits the mastercard format.\n<END>", "<BEGIN>\n## `is...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_valid API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_valid API. 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...
determines whether the card number is valid.
"determines whether the card number is valid."
18
false
joshleeb/creditcard
is_valid
36,983
LDU_FT/pytroll/pyspectral/_load
LDU_FT
[ "<BEGIN>\n## `radiance2tb`", "Get the Tb from the radiance using the Planck function", " rad:\n Radiance in SI units\n wavelength:\n Wavelength in SI units (meter)\n<END>", "<BEGIN>\n## `_get_rsr`", "Get the relative spectral responses from file, find the bandname, and\n convert t...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _load API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _load API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
Load the VIIRS RSR data for the band requested
"Load the VIIRS RSR data for the band requested"
129
false
pytroll/pyspectral
_load
36,984
LDU_FT/jmcarp/betfair.py/requires_login
LDU_FT
[ "<BEGIN>\n## `get_chunks`", "Split sequence into chunks.", " :param list sequence:\n :param int chunk_size:\n<END>", "<BEGIN>\n## `get_kwargs`", "Get all keys and values from dictionary where key is not `self`.", " :param dict kwargs: Input parameters\n<END>", "<BEGIN>\n## `check_status_code`",...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the requires_login API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the requires_login API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
Decorator to check that the user is logged in. Raises `BetfairError` if instance variable `session_token` is absent.
"Decorator to check that the user is logged in. Raises `BetfairError`\n if instance variable `session_token` is absent."
68
false
jmcarp/betfair.py
requires_login
36,985
LDU_FT/ajslater/picopt/_optimize_image_external
LDU_FT
[ "<BEGIN>\n## `_get_timestamp`", "Get the timestamp from the timestamp file.", " Optionally mark it for removal if we're going to write another one.\n<END>", "<BEGIN>\n## `_get_timestamp_cached`", "Get the timestamp from the cache or fill the cache\n Much quicker than reading the same files over and ov...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _optimize_image_external API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _optimize_image_external API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio...
Optimize the file with the external function.
"Optimize the file with the external function."
86
false
ajslater/picopt
_optimize_image_external
36,986
LDU_FT/mathandy/svgpathtools/cropped
LDU_FT
[ "<BEGIN>\n## `big_bounding_box`", "Finds a BB containing a collection of paths, Bezier path segments, and\n points (given as complex numbers).\n<END>", "<BEGIN>\n## `disvg`", "Takes in a list of paths and creates an SVG file containing said paths.\n REQUIRED INPUTS:\n :param paths - a list of pat...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the cropped API. 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 cropped API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
returns a cropped copy of this segment which starts at self.point(t0) and ends at self.point(t1).
"returns a cropped copy of this segment which starts at\n self.point(t0) and ends at self.point(t1)."
252
false
mathandy/svgpathtools
cropped
36,987
LDU_FT/array-split/array_split/set_split_extents_by_indices_per_axis
LDU_FT
[ "<BEGIN>\n## `read_readme`", "Reads part of the README.rst for use as long_description in setup().\n<END>", "<BEGIN>\n## `pad_with_object`", "Returns :samp:`sequence` :obj:`list` end-padded with :samp:`{obj}`\n elements so that the length of the returned list equals :samp:`{new_length}`.", " :type seq...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_split_extents_by_indices_per_axis API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_split_extents_by_indices_per_axis API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates ...
Sets split shape :attr:`split_shape` and split extents (:attr:`split_begs` and :attr:`split_ends`) from values in :attr:`indices_per_axis`.
"Sets split shape :attr:`split_shape` and\n split extents (:attr:`split_begs` and :attr:`split_ends`)\n from values in :attr:`indices_per_axis`."
67
false
array-split/array_split
set_split_extents_by_indices_per_axis
36,988
LDU_FT/mrcagney/make_gtfs/get_duration
LDU_FT
[ "<BEGIN>\n## `make_gtfs`", "Create a GTFS feed from the files in the directory SOURCE_PATH.\n See the project README for a description of the required source\n files.\n Save the feed to the file or directory TARGET_PATH.\n If the target path ends in '.zip', then write the feed as a zip\n archive.\n...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_duration API. 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_duration API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
Return the duration of the time period between the first and second time string in the given units. Allowable units are 's' (seconds), 'min' (minutes), 'h' (hours). Assume ``timestr1 < timestr2``.
"Return the duration of the time period between the first and second\n time string in the given units.\n Allowable units are 's' (seconds), 'min' (minutes), 'h' (hours).\n Assume ``timestr1 < timestr2``."
67
false
mrcagney/make_gtfs
get_duration
36,989
LDU_FT/IBM-Cloud/gp-python-client/__get_return_value
LDU_FT
[ "<BEGIN>\n## `__get_user_env_vars`", "Return the user defined environment variables\n<END>", "<BEGIN>\n## `__parse_vcap_services_env_var`", "Parse the ``VCAP_SERVICES`` env var and search for the necessary\r\n values\n<END>", "<BEGIN>\n## `__get_language_match`", "Compares ``languageCode`` to the p...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the __get_return_value API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the __get_return_value API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
Determines the return value; used to prevent code duplication
"Determines the return value; used to prevent code duplication"
71
false
IBM-Cloud/gp-python-client
__get_return_value
36,990
LDU_FT/Aluriak/ACCC/_next_condition_lexems
LDU_FT
[ "<BEGIN>\n## `constructSpec`", "Return a language specification based on parameters.\n<END>", "<BEGIN>\n## `translated`", "Return code associated to given structure and values, \n translate with given language specification.\n<END>", "<BEGIN>\n## `cpp_spec`", "C++ specification, provided for example, a...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _next_condition_lexems 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 _next_condition_lexems API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
Return condition lexem readed in source_code
"Return condition lexem readed in source_code"
22
false
Aluriak/ACCC
_next_condition_lexems
36,991
LDU_FT/intelligenia/modeltranslation/_load_source_model
LDU_FT
[ "<BEGIN>\n## `_get_fieldtranslations`", "Get all the translations for this object.\n<END>", "<BEGIN>\n## `_load_translations`", "Loads all translations as dynamic attributes:\n\t\t<attr>_<lang_code>\n\t\t<attr>_<lang_code>_is_fuzzy\n<END>", "<BEGIN>\n## `_set_dict_translations`", "Establece los atributos ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _load_source_model API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _load_source_model API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
Loads and gets the source model of the FieldTranslation as a dynamic attribute. It is used only when deleting orphan translations (translations without a parent object associated).
"Loads and gets the source model of the FieldTranslation as a dynamic attribute. It is used only when deleting\n\t\torphan translations (translations without a parent object associated)."
36
false
intelligenia/modeltranslation
_load_source_model
36,992
LDU_FT/Metatab/metatab/all_terms
LDU_FT
[ "<BEGIN>\n## `split_term`", "Split a term in to parent and record term components\n :param term: combined term text\n :return: Tuple of parent and record term\n<END>", "<BEGIN>\n## `split_term_lower`", "Like split_term, but also lowercases both parent and record term\n :param term: combin...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the all_terms API. 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 all_terms API. 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...
Iterate over all of the terms. The self.terms property has only root level terms. This iterator iterates over all terms
"Iterate over all of the terms. The self.terms property has only root level terms. This iterator\n iterates over all terms"
102
false
Metatab/metatab
all_terms
36,993
LDU_FT/jenisys/parse_type/with_zero_or_one
LDU_FT
[ "<BEGIN>\n## `build_type_dict`", "Builds type dictionary for user-defined type converters,\n used by :mod:`parse` module.\n This requires that each type converter has a \"name\" attribute.", " :param converters: List of type converters (parse_types)\n :return: Type converter dictionary\n<END>", "<...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the with_zero_or_one API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the with_zero_or_one API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Creates a type converter for a T with 0..1 times by using the type converter for one item of T. :param converter: Type converter (function) for data type T. :param pattern: Regexp pattern for an item (=converter.pattern). :return: type-converter for optional<T> (T or None).
"Creates a type converter for a T with 0..1 times\n by using the type converter for one item of T.\n\n :param converter: Type converter (function) for data type T.\n :param pattern: Regexp pattern for an item (=converter.pattern).\n :return: type-converter for optional<T> (T or None)."
115
false
jenisys/parse_type
with_zero_or_one
36,994
LDU_FT/humangeo/rawes/_get_connection_from_url
LDU_FT
[ "<BEGIN>\n## `_dict_to_map_str_str`", "Thrift requires the params and headers dict values to only contain str values.\n<END>", "<BEGIN>\n## `_get_connection_from_url`", "Returns a connection object given a string url\n<END>", "<BEGIN>\n## `mark_dead`", "Mark the connection as dead (failed). Remove it from...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_connection_from_url API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_connection_from_url API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio...
Returns a connection object given a string url
"Returns a connection object given a string url"
14
false
humangeo/rawes
_get_connection_from_url
36,995
LDU_FT/PSU-OIT-ARC/django-cloak/uncloak
LDU_FT
[ "<BEGIN>\n## `login`", "Automatically logs in a user based on a signed PK of a user object. The\n signature should be generated with the `login` management command.", " The signature will only work for 60 seconds.\n<END>", "<BEGIN>\n## `cloak`", "Masquerade as a particular user and redirect based on t...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the uncloak API. 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 uncloak API. 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...
Undo a masquerade session and redirect the user back to where they started cloaking from (or where ever the "next" POST parameter points)
"Undo a masquerade session and redirect the user back to where they started\n cloaking from (or where ever the \"next\" POST parameter points)"
14
false
PSU-OIT-ARC/django-cloak
uncloak
36,996
LDU_FT/jesford/cluster-lensing/deltasigma_nfw
LDU_FT
[ "<BEGIN>\n## `calc_delta_c`", "Calculate characteristic overdensity from concentration.", " Parameters\n ----------\n c200 : ndarray or float\n Cluster concentration parameter.", " Returns\n ----------\n ndarray or float\n Cluster characteristic overdensity, of same type as c20...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the deltasigma_nfw API. 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 deltasigma_nfw API. 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...
Calculate NFW differential surface mass density profile. Generate the differential surface mass density profiles of each cluster halo, assuming a spherical NFW model. Optionally includes the effect of cluster miscentering offsets, if the parent object was initialized with offsets. ...
"Calculate NFW differential surface mass density profile.\n\n Generate the differential surface mass density profiles of each cluster\n halo, assuming a spherical NFW model. Optionally includes the effect of\n cluster miscentering offsets, if the parent object was initialized\n with offsets....
55
false
jesford/cluster-lensing
deltasigma_nfw
36,997
LDU_FT/spyder-ide/spyder/tunnel_to_kernel
LDU_FT
[ "<BEGIN>\n## `set_bracket_matcher_color_scheme`", "Set color scheme for matched parentheses.\n<END>", "<BEGIN>\n## `long_banner`", "Banner for IPython widgets with pylab message\n<END>", "<BEGIN>\n## `reset_namespace`", "Reset the namespace by removing all names defined by the user.\n<END>", "<BEGIN>\n#...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the tunnel_to_kernel API. 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 tunnel_to_kernel API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Tunnel connections to a kernel via ssh. Remote ports are specified in the connection info ci.
"Tunnel connections to a kernel via ssh.\r\n\r\n Remote ports are specified in the connection info ci."
2,144
true
spyder-ide/spyder
tunnel_to_kernel
36,998
LDU_FT/IBMStreams/pypi.streamsx/main
LDU_FT
[ "<BEGIN>\n## `get_application_configuration`", "Get a named application configuration.", " An application configuration is a named set of securely stored properties\n where each key and its value in the property set is a string.", " An application configuration object is used to store information tha...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the main API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the main API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
Performs an action against a Streaming Analytics service.
"Performs an action against a Streaming Analytics service."
651
false
IBMStreams/pypi.streamsx
main
36,999
LDU_FT/taddeus/wspy/parse_digest_response
LDU_FT
[ "<BEGIN>\n## `conflicts`", "Check if the extension conflicts with an already accepted extension.\n This may be the case when the two extensions use the same reserved\n bits, or have the same name (when the same extension is negotiated\n multiple times with different parameters).\n<END>", "<...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_digest_response API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_digest_response API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Parse the parameters of a Digest response. The input is a comma separated list of token=(token|quoted-string). See RFCs 2616 and 2617 for details. Known issue: this implementation will fail if there are commas embedded in quoted-strings.
"Parse the parameters of a Digest response. The input is a comma separated list of\n token=(token|quoted-string). See RFCs 2616 and 2617 for details.\n\n Known issue: this implementation will fail if there are commas embedded in quoted-strings."
72
false
taddeus/wspy
parse_digest_response
37,000
LDU_FT/pacificclimate/cfmeta/get_cmor_fname_meta
LDU_FT
[ "<BEGIN>\n## `get_dir_meta`", "Pop path information and map to supplied atts\n<END>", "<BEGIN>\n## `get_fp_meta`", "Processes a CMIP3 style file path.", " The standard CMIP3 directory structure:", " <experiment>/<variable_name>/<model>/<ensemble_member>/<CMOR filename>.nc", " Filename is of...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_cmor_fname_meta API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_cmor_fname_meta 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...
Processes a CMOR style file name. Section 3.3 of the `Data Reference Syntax`_ details: filename = <variable name>_<mip_table>_<model>_<experiment>_ <ensemble_member>[_<temporal_subset>][_<geographical_info>].nc Temporal subsets are detailed in section 2.4: Time instants or period...
"Processes a CMOR style file name.\n\n Section 3.3 of the `Data Reference Syntax`_ details:\n\n filename = <variable name>_<mip_table>_<model>_<experiment>_\n <ensemble_member>[_<temporal_subset>][_<geographical_info>].nc\n\n Temporal subsets are detailed in section 2.4:\n\n Time instants...
56
false
pacificclimate/cfmeta
get_cmor_fname_meta
37,001
LDU_FT/nugget/python-insteonplm/add_all_link_done_callback
LDU_FT
[ "<BEGIN>\n## `data_received`", "Receive data from the protocol.", " Called when asyncio.Protocol detects received data from network.\n<END>", "<BEGIN>\n## `connection_lost`", "Reestablish the connection to the transport.", " Called when asyncio.Protocol loses the network connection.\n<END>",...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_all_link_done_callback API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclus...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_all_link_done_callback API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclus...
Register a callback to be invoked when the ALDB is loaded.
"Register a callback to be invoked when the ALDB is loaded."
375
false
nugget/python-insteonplm
add_all_link_done_callback
37,002
LDU_FT/timstaley/voeventdb/ivorn_prefix_present
LDU_FT
[ "<BEGIN>\n## `setup_logging`", "Set up basic (INFO level) and debug logfiles\n<END>", "<BEGIN>\n## `_list_class_vars`", "Return a dict of all 'regular' (i.e. not prefixed ``_``) class attributes.\n<END>", "<BEGIN>\n## `apiv1_root_view`", "API root url. Shows a list of active endpoints.\n<END>", "<BEGIN>...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the ivorn_prefix_present 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 ivorn_prefix_present API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Predicate, returns whether there is an entry in the database with matching IVORN prefix.
"Predicate, returns whether there is an entry in the database with matching\n IVORN prefix."
56
false
timstaley/voeventdb
ivorn_prefix_present
37,003
LDU_FT/pyviz/param/param_keywords
LDU_FT
[ "<BEGIN>\n## `get_setup_version`", "Helper for use in setup.py to get the current version from either\n git describe or the .version file (if available).", " Set pkgname to the package name if it is different from the\n repository name.", " To ensure git information is included in a git archive, a...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the param_keywords API. 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 param_keywords API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
Return a dictionary containing items from the originally supplied dict_ whose names are parameters of the overridden object (i.e. not extra keywords/parameters).
"Return a dictionary containing items from the originally\n supplied dict_ whose names are parameters of the\n overridden object (i.e. not extra keywords/parameters)."
258
false
pyviz/param
param_keywords
37,004
LDU_FT/ValvePython/steam/store_sentry
LDU_FT
[ "<BEGIN>\n## `generate_twofactor_code_for_time`", "Generate Steam 2FA code for timestamp", " :param shared_secret: authenticator shared secret\n :type shared_secret: bytes\n :param timestamp: timestamp to use, if left out uses current time\n :type timestamp: int\n :return: steam two factor code\n...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the store_sentry API. 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 store_sentry API. 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...
Store sentry bytes under a username :param username: username :type username: :class:`str` :return: Whenver the operation succeed :rtype: :class:`bool`
"Store sentry bytes under a username\n\n :param username: username\n :type username: :class:`str`\n :return: Whenver the operation succeed\n :rtype: :class:`bool`"
385
false
ValvePython/steam
store_sentry
37,005
LDU_FT/anomaly/prestans/register_serializers
LDU_FT
[ "<BEGIN>\n## `_setup_serializers`", "Auto set the return serializer based on Accept headers\n http://docs.webob.org/en/latest/reference.html#header-getters", " Intersection of requested types and supported types tells us if we\n can in fact respond in one of the request formats\n<END>", "...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the register_serializers 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 register_serializers API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Adds extra serializers; generally registered during the handler lifecycle
"Adds extra serializers; generally registered during the handler lifecycle"
99
false
anomaly/prestans
register_serializers
37,006
LDU_FT/eng-tools/sfsimodels/add_inputs_to_object
LDU_FT
[ "<BEGIN>\n## `set_beam_prop`", "Specify the properties of the beams", " :param values:\n :param repeat: if 'up' then duplicate up the structure\n :return:\n<END>", "<BEGIN>\n## `set_column_prop`", "Specify the properties of the columns", " :param values:\n :param repeat:...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_inputs_to_object 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 add_inputs_to_object API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
A generic function to load object parameters based on a dictionary list. :param obj: Object :param values: Dictionary :return:
"A generic function to load object parameters based on a dictionary list.\n :param obj: Object\n :param values: Dictionary\n :return:"
126
false
eng-tools/sfsimodels
add_inputs_to_object
37,007
LDU_FT/theirc/rapidsms-multitenancy/get_user_groups
LDU_FT
[ "<BEGIN>\n## `get_queryset`", "Limit to TenantGroups that this user can access.\n<END>", "<BEGIN>\n## `get_queryset`", "Limit to Tenants that this user can access.\n<END>", "<BEGIN>\n## `get_user_groups`", "Return the set of associated TenantGroups for the given user.\n<END>", "<BEGIN>\n## `get_user_ten...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_user_groups API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_user_groups API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
Return the set of associated TenantGroups for the given user.
"Return the set of associated TenantGroups for the given user."
16
false
theirc/rapidsms-multitenancy
get_user_groups
37,008
LDU_FT/ambitioninc/django-manager-utils/sync
LDU_FT
[ "<BEGIN>\n## `configure_settings`", "Configures settings for manage.py and for run_tests.py.\n<END>", "<BEGIN>\n## `_get_update_fields`", "Get the fields to be updated in an upsert.", " Always exclude auto_now_add, auto_created fields, and unique fields in an update\n<END>", "<BEGIN>\n## `_fill_auto_fi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the sync API. 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 sync API. 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...
Performs a sync operation on a queryset, making the contents of the queryset match the contents of model_objs. This function calls bulk_upsert underneath the hood with sync=True. :type model_objs: list of :class:`Models<django:django.db.models.Model>` :param model_objs: The models to sync :type u...
"Performs a sync operation on a queryset, making the contents of the\n queryset match the contents of model_objs.\n\n This function calls bulk_upsert underneath the hood with sync=True.\n\n :type model_objs: list of :class:`Models<django:django.db.models.Model>`\n :param model_objs: The models to sync\n\n ...
110
false
ambitioninc/django-manager-utils
sync
37,009
LDU_FT/jdrumgoole/mongodbshell/database
LDU_FT
[ "<BEGIN>\n## `database`", "Set the default database for this Proxy object.\n :param database_name: A string naming the database\n<END>", "<BEGIN>\n## `find`", "Run the pymongo find command against the default database and collection\n and paginate the output to the screen.\n<END>", "<BEGIN>\n#...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the database API. 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 database API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
Set the default database for this Proxy object. :param database_name: A string naming the database
"Set the default database for this Proxy object.\n :param database_name: A string naming the database"
33
false
jdrumgoole/mongodbshell
database
37,010
LDU_FT/twisted/vertex/get
LDU_FT
[ "<BEGIN>\n## `enregister`", "Register a new account and return a Deferred that fires if it worked.", " @param svc: a Q2QService", " @param newAddress: a Q2QAddress object", " @param password: a shared secret (str)\n<END>", "<BEGIN>\n## `connectCached`", "See module docstring", " @param...
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...
Issue a GET command Return a Deferred which fires with the size of the name being requested
"Issue a GET command\n\n Return a Deferred which fires with the size of the name being requested"
191
false
twisted/vertex
get
37,011
LDU_FT/ctuning/ck/find_path_to_repo
LDU_FT
[ "<BEGIN>\n## `call_ck`", "Input: {\n Input for CK\n }", " Output: {\n return - return code = 0, if successful\n > 0, if error\n (error) - error text if return > 0", " (stdout) - stdout, ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_path_to_repo API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_path_to_repo API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Input: { (repo_uoa) - repo UOA; if empty, get the default repo } Output: { return - return code = 0, if successful 16, if repo not found (may be warning) > 0, if error ...
"Input: {\n (repo_uoa) - repo UOA; if empty, get the default repo\n }\n\n Output: {\n return - return code = 0, if successful\n 16, if repo not found (may be warning)\n > 0, if error\n ...
640
false
ctuning/ck
find_path_to_repo
37,012
LDU_FT/hthiery/python-lacrosse/set_frequency
LDU_FT
[ "<BEGIN>\n## `_parse_info`", "The output can be:\n - [LaCrosseITPlusReader.10.1s (RFM12B f:0 r:17241)]\n - [LaCrosseITPlusReader.10.1s (RFM12B f:0 t:10~3)]\n<END>", "<BEGIN>\n## `get_info`", "Get current configuration info from 'v' command.\n<END>", "<BEGIN>\n## `set_frequency`", "Set freque...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_frequency API. 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 set_frequency API. 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...
Set frequency in kHz. The frequency can be set in 5kHz steps.
"Set frequency in kHz.\n\n The frequency can be set in 5kHz steps."
12
false
hthiery/python-lacrosse
set_frequency
37,013
LDU_FT/pydata/numexpr/stringToExpression
LDU_FT
[ "<BEGIN>\n## `set_vml_accuracy_mode`", "Set the accuracy mode for VML operations.", " The `mode` parameter can take the values:\n - 'high': high accuracy mode (HA), <1 least significant bit\n - 'low': low accuracy mode (LA), typically 1-2 least significant bits\n - 'fast': enhanced performance mode ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the stringToExpression 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 stringToExpression 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 string, convert it to a tree of ExpressionNode's.
"Given a string, convert it to a tree of ExpressionNode's."
69
false
pydata/numexpr
stringToExpression
37,014
LDU_FT/ShadowBlip/Neteria/event
LDU_FT
[ "<BEGIN>\n## `listen`", "Starts the client listener to listen for server responses.", " Args:\n None", " Returns:\n None\n<END>", "<BEGIN>\n## `retransmit`", "Processes messages that have been delivered from the transport\n protocol.", " Args:\n dat...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the event API. 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 event API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
This function will send event packets to the server. This is the main method you would use to send data from your application to the server. Whenever an event is sent to the server, a universally unique event id (euuid) is created for each event and stored in the "event_uuids" d...
"This function will send event packets to the server. This is the\n main method you would use to send data from your application to the\n server.\n\n Whenever an event is sent to the server, a universally unique event id\n (euuid) is created for each event and stored in the \"event_uuids\"\n...
122
false
ShadowBlip/Neteria
event
37,015
LDU_FT/kejbaly2/metrique/get_cube
LDU_FT
[ "<BEGIN>\n## `filtered`", "Decorator function that wraps functions returning pandas\n dataframes, such that the dataframe is filtered\n according to left and right bounds set.\n<END>", "<BEGIN>\n## `to_datetime`", "This function converts epoch timestamps to datetimes.", " :param column: column ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_cube API. 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_cube API. 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...
wrapper for :func:`metrique.utils.get_cube` Locates and loads a metrique cube :param cube: name of cube to load :param init: (bool) initialize cube before returning? :param name: override the name of the cube :param copy_config: apply config of calling cube to new? ...
"wrapper for :func:`metrique.utils.get_cube`\n\n Locates and loads a metrique cube\n\n :param cube: name of cube to load\n :param init: (bool) initialize cube before returning?\n :param name: override the name of the cube\n :param copy_config: apply config of calling cube to new?\n ...
224
false
kejbaly2/metrique
get_cube
37,016
LDU_FT/thombashi/pytablereader/to_table_data
LDU_FT
[ "<BEGIN>\n## `load`", "Extract tabular data as |TableData| instances from a CSV file.\n |load_source_desc_file|", " :return:\n Loaded table data.\n |load_table_name_desc|", " =================== ========================================\n Format specif...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the to_table_data API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the to_table_data API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
:raises ValueError: :raises pytablereader.error.ValidationError:
":raises ValueError:\n :raises pytablereader.error.ValidationError:"
140
false
thombashi/pytablereader
to_table_data
37,017
LDU_FT/StanfordBioinformatics/scgpm_seqresults_dnanexus/get_fastq_files_props
LDU_FT
[ "<BEGIN>\n## `log_file_name`", "Function : Creates a logfile name, named after this script and includes the number of seconds since the Epoch.\n An optional extension can be specified to make the logfile name more meaningful regarding its purpose.\n Args : ext - The extension to add to the log fi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_fastq_files_props 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_fastq_files_props 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 DNAnexus file properties for all FASTQ files in the project that match the specified barcode, or all FASTQ files if not barcode is specified. Args: barcode: `str`. If set, then only FASTQ file properties for FASTQ files having the specified barcode are returned. Re...
"Returns the DNAnexus file properties for all FASTQ files in the project that match the \n specified barcode, or all FASTQ files if not barcode is specified.\n \n Args:\n barcode: `str`. If set, then only FASTQ file properties for FASTQ files having the specified barcode are returned.\n \n ...
63
false
StanfordBioinformatics/scgpm_seqresults_dnanexus
get_fastq_files_props
37,018
LDU_FT/sbjorn/vici/list_policies
LDU_FT
[ "<BEGIN>\n## `initiate`", "Initiate an SA.", " :param sa: the SA to initiate\n :type sa: dict\n :return: logs emitted by command, with `errmsg` given on failure\n :rtype: :py:class:`vici.session.CommandResult`\n<END>", "<BEGIN>\n## `terminate`", "Terminate an SA.", " :pa...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the list_policies API. 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 list_policies API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
Retrieve installed trap, drop and bypass policies. :param filters: retrieve only matching policies (optional) :type filters: dict :return: list of installed trap, drop and bypass policies :rtype: list
"Retrieve installed trap, drop and bypass policies.\n\n :param filters: retrieve only matching policies (optional)\n :type filters: dict\n :return: list of installed trap, drop and bypass policies\n :rtype: list"
30
false
sbjorn/vici
list_policies
37,019
LDU_FT/miLibris/flask-rest-jsonapi/filter_query
LDU_FT
[ "<BEGIN>\n## `_get_key_values`", "Return a dict containing key / values items for a given key, used for items like filters, page, etc.", " :param str name: name of the querystring parameter\n :return dict: a dict of key / values items\n<END>", "<BEGIN>\n## `querystring`", "Return original quer...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the filter_query API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the filter_query API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
Filter query according to jsonapi 1.0 :param Query query: sqlalchemy query to sort :param filter_info: filter information :type filter_info: dict or None :param DeclarativeMeta model: an sqlalchemy model :return Query: the sorted query
"Filter query according to jsonapi 1.0\n\n :param Query query: sqlalchemy query to sort\n :param filter_info: filter information\n :type filter_info: dict or None\n :param DeclarativeMeta model: an sqlalchemy model\n :return Query: the sorted query"
149
false
miLibris/flask-rest-jsonapi
filter_query
37,020
LDU_FT/mapnik/Cascadenik/output_path
LDU_FT
[ "<BEGIN>\n## `xindexes`", "Generate list of possible indexes into a list of slots.", " Best way to think of this is as a number where each digit might have a different radix.\n E.g.: (10, 10, 10) would return 10 x 10 x 10 = 1000 responses from (0, 0, 0) to (9, 9, 9),\n (2, 2, 2, 2) would re...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the output_path API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the output_path API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
Modify a path so it fits expectations. Avoid returning relative paths that start with '../' and possibly return relative paths when output and cache directories match.
"Modify a path so it fits expectations.\n \n Avoid returning relative paths that start with '../' and possibly\n return relative paths when output and cache directories match."
123
false
mapnik/Cascadenik
output_path
37,021
LDU_FT/knipknap/exscript/set_username_prompt
LDU_FT
[ "<BEGIN>\n## `get_protocol_from_name`", "Returns the protocol class for the protocol with the given name.", " :type name: str\n :param name: The name of the protocol.\n :rtype: Protocol\n :return: The protocol class.\n<END>", "<BEGIN>\n## `create_protocol`", "Returns an instance of the protoco...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_username_prompt API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_username_prompt 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...
Defines a pattern that is used to monitor the response of the connected host for a username prompt. :type regex: RegEx :param regex: The pattern that, when matched, causes an error.
"Defines a pattern that is used to monitor the response of the\n connected host for a username prompt.\n\n :type regex: RegEx\n :param regex: The pattern that, when matched, causes an error."
683
false
knipknap/exscript
set_username_prompt
37,022
LDU_FT/anayjoshi/platypus/get_cfg
LDU_FT
[ "<BEGIN>\n## `get_cfg`", "Traverses the AST and returns the corresponding CFG", " :param ast_func: The AST representation of function\n :type ast_func: ast.Function", " :returns: The CFG representation of the function\n :rtype: cfg.Function\n<END>", "<BEGIN>\n## `get_ir`", "Converts the given ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_cfg API. 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 get_cfg API. 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...
Traverses the AST and returns the corresponding CFG :param ast_func: The AST representation of function :type ast_func: ast.Function :returns: The CFG representation of the function :rtype: cfg.Function
"Traverses the AST and returns the corresponding CFG\n\n :param ast_func: The AST representation of function\n :type ast_func: ast.Function\n\n :returns: The CFG representation of the function\n :rtype: cfg.Function"
26
false
anayjoshi/platypus
get_cfg
37,023
LDU_FT/ardydedase/pycouchbase/touch
LDU_FT
[ "<BEGIN>\n## `_add_err`", "Sets the error on this MultiResult. Will be ignored if an error is\n already set.\n :param exinfo: Return value from ``sys.exc_info()``\n<END>", "<BEGIN>\n## `_add_bad_rc`", "Sets an error with a bad return code. Handles 'quiet' logic\n :param rc: The error code...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the touch API. 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 touch API. 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...
Updates the current document's expiration value. :param expiration: Expiration in seconds for the document to be removed by couchbase server, defaults to 0 - will never expire. :type expiration: int :returns: Response from CouchbaseClient. :rtype: unicode :raises: :e...
"Updates the current document's expiration value.\n\n :param expiration: Expiration in seconds for the document to be removed by\n couchbase server, defaults to 0 - will never expire.\n :type expiration: int\n :returns: Response from CouchbaseClient.\n :rtype: unicode\n :ra...
76
false
ardydedase/pycouchbase
touch
37,024
LDU_FT/slackapi/python-slackclient/typing
LDU_FT
[ "<BEGIN>\n## `run_on`", "A decorator to store and link a callback to an event.\n<END>", "<BEGIN>\n## `on`", "Stores and links the callback(s) to the event.", " Args:\n event (str): A string that specifies a Slack or websocket event.\n e.g. 'channel_joined' or 'open'\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the typing API. 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 typing API. 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 ...
Sends a typing indicator to the specified channel. This indicates that this app is currently writing a message to send to a channel. Args: channel (str): The channel id. e.g. 'C024BE91L' Raises: SlackClientNotConnectedError: Websocket connection is closed.
"Sends a typing indicator to the specified channel.\n\n This indicates that this app is currently\n writing a message to send to a channel.\n\n Args:\n channel (str): The channel id. e.g. 'C024BE91L'\n\n Raises:\n SlackClientNotConnectedError: Websocket connection is cl...
222
false
slackapi/python-slackclient
typing
37,025
LDU_FT/joyent/python-manta/_format_linedata
LDU_FT
[ "<BEGIN>\n## `_request`", "Make a Manta request", " ...\n @returns (res, content)\n<END>", "<BEGIN>\n## `put_directory`", "PutDirectory\n https://apidocs.joyent.com/manta/api.html#PutDirectory", " @param mdir {str} A manta path, e.g. '/trent/stor/mydir'.\n<END>", "<BEGIN>\n##...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _format_linedata API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _format_linedata API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Format specific linedata into a pleasant layout. "linedata" is a list of 2-tuples of the form: (<item-display-string>, <item-docstring>) "indent" is a string to use for one level of indentation "indent_width" is a number of columns by which the formatted data will be ind...
"Format specific linedata into a pleasant layout.\n\n \"linedata\" is a list of 2-tuples of the form:\n (<item-display-string>, <item-docstring>)\n \"indent\" is a string to use for one level of indentation\n \"indent_width\" is a number of columns by which the\n formatted dat...
203
false
joyent/python-manta
_format_linedata
37,026
LDU_FT/nschloe/meshplex/cell_centroids
LDU_FT
[ "<BEGIN>\n## `create_cell_volumes`", "Computes the volumes of the \"cells\" in the mesh.\n<END>", "<BEGIN>\n## `create_control_volumes`", "Compute the control volumes of all nodes in the mesh.\n<END>", "<BEGIN>\n## `get_signed_simplex_volumes`", "Signed volume of a simplex in nD. Note that signing only ma...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the cell_centroids API. 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 cell_centroids API. 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...
The centroids (barycenters) of all triangles.
"The centroids (barycenters) of all triangles."
44
false
nschloe/meshplex
cell_centroids
37,027
LDU_FT/log2timeline/dfvfs/ScanForWindowsVolume
LDU_FT
[ "<BEGIN>\n## `comparable`", "str: comparable representation of the path specification.\n<END>", "<BEGIN>\n## `GetFormatSpecification`", "Retrieves the format specification.", " Returns:\n FormatSpecification: format specification or None if the format cannot\n be defined by a specification ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the ScanForWindowsVolume 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 ScanForWindowsVolume API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Scans for a Windows volume. Args: source_path (str): source path. Returns: bool: True if a Windows volume was found. Raises: ScannerError: if the source path does not exists, or if the source path is not a file or directory, or if the format of or within the source f...
"Scans for a Windows volume.\n\n Args:\n source_path (str): source path.\n\n Returns:\n bool: True if a Windows volume was found.\n\n Raises:\n ScannerError: if the source path does not exists, or if the source path\n is not a file or directory, or if the format of or within the source\...
1,933
true
log2timeline/dfvfs
ScanForWindowsVolume
37,028
LDU_FT/bdcht/grandalf/_rank_init
LDU_FT
[ "<BEGIN>\n## `_meanvalueattr`", "find new position of vertex v according to adjacency in prevlayer.\n position is given by the mean value of adjacent positions.\n experiments show that meanvalue heuristic performs better than median.\n<END>", "<BEGIN>\n## `_medianindex`", "find new position of v...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _rank_init API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _rank_init API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
Computes rank of provided unranked list of vertices and all their children. A vertex will be asign a rank when all its inward edges have been *scanned*. When a vertex is asigned a rank, its outward edges are marked *scanned*.
"Computes rank of provided unranked list of vertices and all\n their children. A vertex will be asign a rank when all its \n inward edges have been *scanned*. When a vertex is asigned\n a rank, its outward edges are marked *scanned*."
41
false
bdcht/grandalf
_rank_init
37,029
LDU_FT/toumorokoshi/sprinter/__recursive_import
LDU_FT
[ "<BEGIN>\n## `whitespace_smart_split`", "Split a command by whitespace, taking care to not split on\n whitespace within quotes.", " >>> whitespace_smart_split(\"test this \\\\\\\"in here\\\\\\\" again\")\n ['test', 'this', '\"in here\"', 'again']\n<END>", "<BEGIN>\n## `sync`", "execute the steps re...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the __recursive_import 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 __recursive_import 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...
Recursively looks for and imports the names, returning the module desired >>> __recursive_import("sprinter.formula.unpack") # doctest: +ELLIPSIS <module 'unpack' from '...'> currently module with relative imports don't work.
"Recursively looks for and imports the names, returning the\n module desired\n\n >>> __recursive_import(\"sprinter.formula.unpack\") # doctest: +ELLIPSIS\n <module 'unpack' from '...'>\n\n currently module with relative imports don't work."
150
false
toumorokoshi/sprinter
__recursive_import
37,030
LDU_FT/MacHu-GWU/uszipcode-project/create_postgresql_pypostgresql
LDU_FT
[ "<BEGIN>\n## `from_query`", "Execute an ORM style query, and return the result in\n :class:`prettytable.PrettyTable`.", " :param query: an ``sqlalchemy.orm.Query`` object.\n :param engine: an ``sqlalchemy.engine.base.Engine`` object.\n :param limit: int, limit rows to return.", " :return: a ``p...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_postgresql_pypostgresql API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its con...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_postgresql_pypostgresql API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its con...
create an engine connected to a postgresql database using pypostgresql.
"create an engine connected to a postgresql database using pypostgresql."
208
false
MacHu-GWU/uszipcode-project
create_postgresql_pypostgresql
37,031
LDU_FT/Iotic-Labs/py-IoticAgent/rename
LDU_FT
[ "<BEGIN>\n## `_notify_thing_lid_change`", "Used by Thing instances to indicate that a rename operation has happened\n<END>", "<BEGIN>\n## `register_catchall_feeddata`", "Registers a callback that is called for all feeddata your Thing receives", " `Example`", " #!python\n def f...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the rename API. 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 rename API. 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 ...
Rename the Thing. `ADVANCED USERS ONLY` This can be confusing. You are changing the local id of a Thing to `new_lid`. If you create another Thing using the "old_lid", the system will oblige, but it will be a completely _new_ Thing. Raises [IOTException](./Exceptions.m.html#IoticAgent.IOT.Ex...
"Rename the Thing.\n\n `ADVANCED USERS ONLY` This can be confusing. You are changing the local id of a Thing to `new_lid`. If you\n create another Thing using the \"old_lid\", the system will oblige, but it will be a completely _new_ Thing.\n\n Raises [IOTException](./Exceptions.m.html#IoticAgen...
643
false
Iotic-Labs/py-IoticAgent
rename
37,032
LDU_FT/qacafe/cdrouter.py/power_on
LDU_FT
[ "<BEGIN>\n## `list`", "Get a list of configs.", " :param filter: (optional) Filters to apply as a string list.\n :param type: (optional) `union` or `inter` as string.\n :param sort: (optional) Sort fields to apply as string list.\n :param limit: (optional) Limit returned list length....
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the power_on API. 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 power_on API. 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...
Power on a device using it's power on command. :param id: Device ID as an int. :return: :class:`devices.PowerCmd <devices.PowerCmd>` object :rtype: devices.PowerCmd
"Power on a device using it's power on command.\n\n :param id: Device ID as an int.\n :return: :class:`devices.PowerCmd <devices.PowerCmd>` object\n :rtype: devices.PowerCmd"
282
false
qacafe/cdrouter.py
power_on
37,033
LDU_FT/Kyria/EsiPy/_request
LDU_FT
[ "<BEGIN>\n## `make_cache_key`", "Generate a cache key from request object data\n<END>", "<BEGIN>\n## `check_cache`", "check if a cache fits esipy needs or not\n<END>", "<BEGIN>\n## `get_cache_time_left`", "return the time left in second for an expires header\n<END>", "<BEGIN>\n## `generate_code_verifier...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _request API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _request API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
Take a request_and_response object from pyswagger.App and check auth, token, headers, prepare the actual request and fill the response Note on performance : if you need more performance (because you are using this in a batch) you'd rather set raw_body_only=True, as parsed ...
"Take a request_and_response object from pyswagger.App and\r\n check auth, token, headers, prepare the actual request and fill the\r\n response\r\n\r\n Note on performance : if you need more performance (because you are\r\n using this in a batch) you'd rather set raw_body_only=True, as parse...
87
false
Kyria/EsiPy
_request
37,034
LDU_FT/frascoweb/frasco-users/check_unique_attr
LDU_FT
[ "<BEGIN>\n## `generate_user_token`", "Generates a unique token associated to the user\n<END>", "<BEGIN>\n## `find_by_token`", "Loads a user instance identified by the token generated using generate_user_token()\n<END>", "<BEGIN>\n## `_login`", "Updates user attributes and login the user in flask-login\n<E...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the check_unique_attr API. 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 check_unique_attr API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Checks that an attribute of the current user is unique amongst all users. If no value is provided, the current form will be used.
"Checks that an attribute of the current user is unique amongst all users.\n If no value is provided, the current form will be used."
24
false
frascoweb/frasco-users
check_unique_attr
37,035
LDU_FT/PonteIneptique/flask-github-proxy/default_branch
LDU_FT
[ "<BEGIN>\n## `AdvancedJsonify`", "Advanced Jsonify Response Maker", " :param data: Data\n :param status_code: Status_code\n :return: Response\n<END>", "<BEGIN>\n## `response`", "View representation of the object", " :param callback: Function to represent the error in view. Defa...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the default_branch API. 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 default_branch API. 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...
Decide the name of the default branch given the file and the configuration :param file: File with informations about it :return: Branch Name
"Decide the name of the default branch given the file and the configuration\n\n :param file: File with informations about it\n :return: Branch Name"
52
false
PonteIneptique/flask-github-proxy
default_branch
37,036
LDU_FT/ssato/python-anyconfig/_do_get
LDU_FT
[ "<BEGIN>\n## `_load_plugins_itr`", ".. seealso:: the doc of :func:`load_plugins`\n<END>", "<BEGIN>\n## `select_by_key`", ":param items: A list of tuples of keys and values, [([key], val)]\n :return: A list of tuples of key and values, [(key, [val])]", " >>> select_by_key([([\"a\", \"aaa\"], 1), ([\"b\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _do_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...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _do_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...
:param cnf: Configuration object to print out :param get_path: key path given in --get option :return: updated Configuration object if no error
":param cnf: Configuration object to print out\n :param get_path: key path given in --get option\n :return: updated Configuration object if no error"
534
false
ssato/python-anyconfig
_do_get
37,037
LDU_FT/polysquare/polysquare-generic-file-linter/_comment_type_from_line
LDU_FT
[ "<BEGIN>\n## `create`", "Create a Dictionary at spellchecker_cache_path with technical words.\n<END>", "<BEGIN>\n## `_comment_type_from_line`", "Return the \"comment header\" (' * ', '# ', 'rem ', '// ', '/* ').", " This header goes before the content of a start of the\n line in a replacement.\n<END>"...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _comment_type_from_line API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _comment_type_from_line API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion...
Return the "comment header" (' * ', '# ', 'rem ', '// ', '/* '). This header goes before the content of a start of the line in a replacement.
"Return the \"comment header\" (' * ', '# ', 'rem ', '// ', '/* ').\n\n This header goes before the content of a start of the\n line in a replacement."
143
false
polysquare/polysquare-generic-file-linter
_comment_type_from_line
37,038
LDU_FT/wiheto/teneto/graphlet_stack_plot
LDU_FT
[ "<BEGIN>\n## `temporal_betweenness_centrality`", "Returns temporal betweenness centrality per node.", " Parameters\n -----------", " Input should be *either* tnet or paths.", " data : array or dict", " Temporal network input (graphlet or contact). nettype: 'bu', 'bd'.", " calc : st...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the graphlet_stack_plot 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 graphlet_stack_plot 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...
r''' Returns matplotlib axis handle for graphlet_stack_plot. This is a row of transformed connectivity matrices to look like a 3D stack. Parameters ---------- netin : array, dict network input (graphlet or contact) ax : matplotlib ax handles. q : int Quality. Increaseing this w...
"r'''\n Returns matplotlib axis handle for graphlet_stack_plot. This is a row of transformed connectivity matrices to look like a 3D stack.\n\n Parameters\n ----------\n\n netin : array, dict\n network input (graphlet or contact)\n ax : matplotlib ax handles.\n q : int\n Quality. Increas...
649
false
wiheto/teneto
graphlet_stack_plot
37,039
LDU_FT/acutesoftware/virtual-AI-simulator/command
LDU_FT
[ "<BEGIN>\n## `calc_basics`", "calculate various aspects of the structure\n<END>", "<BEGIN>\n## `bld_rafter_deflection`", "calculate rafter deflections - see test_calc_building_design.py for \n Sample values for equations below from Structures II course\n<END>", "<BEGIN>\n## `main`", "Prototype to see h...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the command API. 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 command API. 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...
takes a command from a source 'src' and if access is allowed (future implementation) then execute the command on the 'agent'
"takes a command from a source 'src' and if \n access is allowed (future implementation) \n then execute the command on the 'agent'"
86
false
acutesoftware/virtual-AI-simulator
command
37,040
LDU_FT/swistakm/graceful/validated_value
LDU_FT
[ "<BEGIN>\n## `authentication_required`", "Ensure that user is authenticated otherwise return ``401 Unauthorized``.", " If request fails to authenticate this authorization hook will also\n include list of ``WWW-Athenticate`` challenges.", " Args:\n req (falcon.Request): the request object.\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the validated_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 e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the validated_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 e...
Return parsed parameter value and run validation handlers. Error message included in exception will be included in http error response Args: value: raw parameter value to parse validate Returns: None Note: Concept of validation for params i...
"Return parsed parameter value and run validation handlers.\n\n Error message included in exception will be included in http error\n response\n\n Args:\n value: raw parameter value to parse validate\n\n Returns:\n None\n\n Note:\n Concept of validation...
209
false
swistakm/graceful
validated_value
37,041
LDU_FT/django-userena-ce/django-userena-ce/send_mail
LDU_FT
[ "<BEGIN>\n## `activate`", "Activate a user with an activation key.", " The key is a SHA1 string. When the SHA1 is found with an\n :class:`UserenaSignup`, the :class:`User` of that account will be\n activated. After a successful activation the view will redirect to\n ``success_url``. If the SHA1 is...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the send_mail API. 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 send_mail API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
Build the email as a multipart message containing a multipart alternative for text (plain, HTML) plus all the attached files.
"Build the email as a multipart message containing\n a multipart alternative for text (plain, HTML) plus\n all the attached files."
241
false
django-userena-ce/django-userena-ce
send_mail
37,042
LDU_FT/crypto101/arthur/undisplay
LDU_FT
[ "<BEGIN>\n## `_unhandledInput`", "Handles input events that weren't handled anywhere else.\n<END>", "<BEGIN>\n## `_runPopUp`", "Displays the pop-up on the workbench and gets a completion\n notification deferred. When that fires, undisplay the pop-up and\n return the result of the notification deferred v...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the undisplay API. 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 undisplay API. 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...
Undisplays the top tool. This actually forces a complete re-render.
"Undisplays the top tool.\n\n This actually forces a complete re-render."
40
false
crypto101/arthur
undisplay
37,043
LDU_FT/minrk/findspark/edit_ipython_profile
LDU_FT
[ "<BEGIN>\n## `find`", "Find a local spark installation.", " Will first check the SPARK_HOME env variable, and otherwise\n search common installation locations, e.g. from homebrew\n<END>", "<BEGIN>\n## `change_rc`", "Persists changes to environment by changing shell config.", " Adds lines to .bash...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the edit_ipython_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. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the edit_ipython_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. ...
Adds a startup file to the current IPython profile to import pyspark. The startup file sets the required environment variables and imports pyspark. Parameters ---------- spark_home : str Path to Spark installation. spark_python : str Path to python subdirectory of Spark installatio...
"Adds a startup file to the current IPython profile to import pyspark.\n\n The startup file sets the required environment variables and imports pyspark.\n\n Parameters\n ----------\n spark_home : str\n Path to Spark installation.\n spark_python : str\n Path to python subdirectory of Spark i...
25
false
minrk/findspark
edit_ipython_profile
37,044
LDU_FT/lavr/flask-emails/smtp_options
LDU_FT
[ "<BEGIN>\n## `init_app`", "'Initialize' flask application.\n It creates EmailsConfig object and saves it in app.extensions.", " You don't have to call this method directly.", " :param app: Flask application object\n :return: Just created :meth:`~EmailsConfig` object\n<END>", "<BEGIN>\n## `send`"...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the smtp_options API. 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 smtp_options API. 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 config namespace to emails.backend.SMTPBackend namespace Returns dict for SMTPFactory
"Convert config namespace to emails.backend.SMTPBackend namespace\n Returns dict for SMTPFactory"
15
false
lavr/flask-emails
smtp_options
37,045
LDU_FT/pzs741/TEDT/normalized
LDU_FT
[ "<BEGIN>\n## `get_url`", "获取url地址并根据网页编码格式自动解析", " Keyword arguments:\n url -- 用户传入地址,头部必须含有http://\n Return:\n 网页源代码(为了下一步预处理方便,所有英文字母转换为小写)\n 网页编解码\n<END>", "<BEGIN>\n## `html_clean`", "获取网页源代码并进行预处理", " Keyword arguments:\n html_code -- 网页源代码,字符...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the normalized API. 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 normalized API. 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...
归一化函数 Keyword arguments: beta -- 当前文本行的beta值,float类型 beta_list -- 标题候选队列的beta队列,list类型 Return: result -- 归一化结果,区间【0,1】
"归一化函数\n\n Keyword arguments:\n beta -- 当前文本行的beta值,float类型\n beta_list -- 标题候选队列的beta队列,list类型\n Return:\n result -- 归一化结果,区间【0,1】"
91
false
pzs741/TEDT
normalized
37,046
LDU_FT/nanoporetech/ont_fast5_api/get_channel_info
LDU_FT
[ "<BEGIN>\n## `_clean`", "Convert numpy numeric types to their python equivalents.\n<END>", "<BEGIN>\n## `get_prior_alignment`", "Return the prior alignment that was used for 2D basecalling.", " :return: Alignment data table.\n<END>", "<BEGIN>\n## `get_2d_call_alignment`", "Return the alignment an...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_channel_info API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_channel_info API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Returns a dictionary of channel information key/value pairs.
"Returns a dictionary of channel information key/value pairs."
159
false
nanoporetech/ont_fast5_api
get_channel_info
37,047
LDU_FT/svenkreiss/databench/emit
LDU_FT
[ "<BEGIN>\n## `color`", "triangles.", " Colors:\n - http://paletton.com/#uid=70l150klllletuehUpNoMgTsdcs shade 2\n<END>", "<BEGIN>\n## `on`", "Decorator for action handlers.", " The action name is inferred from the function name.", " This also decorates the method with `tornado.gen.coroutine`...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the emit API. 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 emit API. 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...
Emit signal to main. Args: signal: Name of the signal to be emitted. message: Message to be sent. analysis_id: Identifies the instance of this analysis.
"Emit signal to main.\n\n Args:\n signal: Name of the signal to be emitted.\n message: Message to be sent.\n analysis_id: Identifies the instance of this analysis."
86
false
svenkreiss/databench
emit
37,048
LDU_FT/PyFilesystem/pyfilesystem2/match
LDU_FT
[ "<BEGIN>\n## `install`", "Install an opener.", " Arguments:\n opener (`Opener`): an `Opener` instance, or a callable that\n returns an opener instance.", " Note:\n May be used as a class decorator. For example::\n registry = Registry()\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the match API. 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 match API. 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...
Test whether a name matches a wildcard pattern. Arguments: pattern (str): A wildcard pattern, e.g. ``"*.py"``. name (str): A filename. Returns: bool: `True` if the filename matches the pattern.
"Test whether a name matches a wildcard pattern.\n\n Arguments:\n pattern (str): A wildcard pattern, e.g. ``\"*.py\"``.\n name (str): A filename.\n\n Returns:\n bool: `True` if the filename matches the pattern."
320
false
PyFilesystem/pyfilesystem2
match
37,049
LDU_FT/sentinel-hub/sentinelhub-py/size
LDU_FT
[ "<BEGIN>\n## `_get_utm_code`", "Get UTM code given a zone and direction", " Direction is encoded as NORTH=6, SOUTH=7, while zone is the UTM zone number zero-padded.\n For instance, the code 32604 is returned for zone number 4, north direction.", " :param zone: UTM zone number\n :type zone: int\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the size API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the size API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
Returns size of a file or folder in Bytes :param pathname: path to file or folder to be sized :type pathname: str :return: size of file or folder in Bytes :rtype: int :raises: os.error if file is not accessible
"Returns size of a file or folder in Bytes\n\n :param pathname: path to file or folder to be sized\n :type pathname: str\n :return: size of file or folder in Bytes\n :rtype: int\n :raises: os.error if file is not accessible"
559
false
sentinel-hub/sentinelhub-py
size
37,050
LDU_FT/fhcrc/taxtastic/update_file
LDU_FT
[ "<BEGIN>\n## `action`", "Roll back commands on a refpkg.", " *args* should be an argparse object with fields refpkg (giving the\n path to the refpkg to operate on) and n (giving the number of\n operations to roll back).\n<END>", "<BEGIN>\n## `taxtable_to_tree`", "Read a CSV taxonomy from *handle* i...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update_file API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update_file API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
Insert file *new_path* into the refpkg under *key*. The filename of *new_path* will be preserved in the refpkg unless it would conflict with a previously existing file, in which case a suffix is appended which makes it unique. The previous file, if there was one, is left in the refpkg....
"Insert file *new_path* into the refpkg under *key*.\n\n The filename of *new_path* will be preserved in the refpkg\n unless it would conflict with a previously existing file, in\n which case a suffix is appended which makes it unique. The\n previous file, if there was one, is left in the r...
197
false
fhcrc/taxtastic
update_file
37,051
LDU_FT/rbarrois/confutils/update
LDU_FT
[ "<BEGIN>\n## `update`", "Replace all lines matching `old_line` with `new_line`.", " If ``once`` is set to True, remove only the first instance.\n<END>", "<BEGIN>\n## `update`", "Replace all lines matching `old_line` with `new_line`.", " If ``once`` is set to True, remove only the first insta...
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 ...
Replace all lines matching `old_line` with `new_line`. If ``once`` is set to True, remove only the first instance.
"Replace all lines matching `old_line` with `new_line`.\n\n If ``once`` is set to True, remove only the first instance."
42
false
rbarrois/confutils
update
37,052
LDU_FT/secure-systems-lab/securesystemslib/unix_timestamp_to_datetime
LDU_FT
[ "<BEGIN>\n## `get_password`", "<Purpose>\n Return the password entered by the user. If 'confirm' is True, the user is\n asked to enter the previously entered password once again. If they match,\n the password is returned to the caller.", " <Arguments>\n prompt:\n The text of the password pro...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the unix_timestamp_to_datetime API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclus...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the unix_timestamp_to_datetime API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclus...
<Purpose> Convert 'unix_timestamp' (i.e., POSIX time, in UNIX_TIMESTAMP_SCHEMA format) to a datetime.datetime() object. 'unix_timestamp' is the number of seconds since the epoch (January 1, 1970.) >>> datetime_object = unix_timestamp_to_datetime(1445455680) >>> datetime_object datetime.datetim...
"<Purpose>\n Convert 'unix_timestamp' (i.e., POSIX time, in UNIX_TIMESTAMP_SCHEMA format)\n to a datetime.datetime() object. 'unix_timestamp' is the number of seconds\n since the epoch (January 1, 1970.)\n\n >>> datetime_object = unix_timestamp_to_datetime(1445455680)\n >>> datetime_object\n datetime...
663
false
secure-systems-lab/securesystemslib
unix_timestamp_to_datetime
37,053
LDU_FT/openpermissions/koi/gen_cert_request
LDU_FT
[ "<BEGIN>\n## `define_options`", "Define the options from default.conf dynamically\n<END>", "<BEGIN>\n## `log_config`", "Logs the config used to start the application\n<END>", "<BEGIN>\n## `ssl_server_options`", "ssl options for tornado https server\n these options are defined in each application's defa...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the gen_cert_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 ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the gen_cert_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 ...
generate certificate request :param filepath: file path to the certificate request :param keyfile: file path to the private key :param silent: whether to suppress output
"generate certificate request\n :param filepath: file path to the certificate request\n :param keyfile: file path to the private key\n :param silent: whether to suppress output"
122
false
openpermissions/koi
gen_cert_request
37,054
LDU_FT/Telefonica/toolium/update_properties
LDU_FT
[ "<BEGIN>\n## `create_driver`", "Create a selenium driver using specified config properties", " :returns: a new selenium driver\n :rtype: selenium.webdriver.remote.webdriver.WebDriver\n<END>", "<BEGIN>\n## `_create_remote_driver`", "Create a driver in a remote server\n View valid capabil...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update_properties API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update_properties API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Update config properties values Property name must be equal to 'Section_option' of config property :param new_properties: dict with new properties values
"Update config properties values\n Property name must be equal to 'Section_option' of config property\n\n :param new_properties: dict with new properties values"
381
false
Telefonica/toolium
update_properties
37,055
LDU_FT/flashashen/flange/obj
LDU_FT
[ "<BEGIN>\n## `search`", "find matches for the given path expression in the data", " :param path_expression: path tuple or string\n :return:\n<END>", "<BEGIN>\n## `split_iter`", "Splits an iterable based on a separator, *sep*, a max of\n *maxsplit* times (no max by default). *sep* can be:", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the obj API. 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 obj API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
Return single model object instance matching given criteria :param path: tuple or dpath expression representing the hierarchy/chain of parent keys :param values: single value or list of values to match. If exact is False then .contains method is used as filter :param raise_absent: if True then rais...
"Return single model object instance matching given criteria\n :param path: tuple or dpath expression representing the hierarchy/chain of parent keys\n :param values: single value or list of values to match. If exact is False then .contains method is used as filter\n :param raise_absent: if True then ...
132
false
flashashen/flange
obj
37,056
LDU_FT/lark-parser/lark/lex
LDU_FT
[ "<BEGIN>\n## `dedup_list`", "Given a list (l) will removing duplicates from the list,\n preserving the original order of the list. Assumes that\n the list entrie are hashable.\n<END>", "<BEGIN>\n## `_parse`", "Parses sentence 's' using CNF grammar 'g'.\n<END>", "<BEGIN>\n## `get_any_nt_unit_rule...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the lex API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the lex API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
Only lex (and postlex) the text, without parsing it. Only relevant when lexer='standard
"Only lex (and postlex) the text, without parsing it. Only relevant when lexer='standard"
55
false
lark-parser/lark
lex
37,057
LDU_FT/sckott/pygbif/datasets
LDU_FT
[ "<BEGIN>\n## `name_suggest`", "A quick and simple autocomplete service that returns up to 20 name usages by\n doing prefix matching against the scientific name. Results are ordered by relevance.", " :param q: [str] Simple search parameter. The value for this parameter can be a\n simple word or a phrase. W...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the datasets API. 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 datasets API. 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...
Search for datasets and dataset metadata. :param data: [str] The type of data to get. Default: ``all`` :param type: [str] Type of dataset, options include ``OCCURRENCE``, etc. :param uuid: [str] UUID of the data node provider. This must be specified if data is anything other than ``all``. :param query: [str] Qu...
"Search for datasets and dataset metadata.\n\n\t:param data: [str] The type of data to get. Default: ``all``\n\t:param type: [str] Type of dataset, options include ``OCCURRENCE``, etc.\n\t:param uuid: [str] UUID of the data node provider. This must be specified if data\n\t\t is anything other than ``all``.\n\t:param qu...
300
false
sckott/pygbif
datasets
37,058
LDU_FT/pricingassistant/mongokat/find_by_id
LDU_FT
[ "<BEGIN>\n## `_get_string`", "Decode a BSON string to python unicode string.\n<END>", "<BEGIN>\n## `_get_object`", "Decode a BSON subdocument to opts.document_class or bson.dbref.DBRef.\n<END>", "<BEGIN>\n## `_get_boolean`", "Decode a BSON true/false to python True/False.\n<END>", "<BEGIN>\n## `_get_dat...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_by_id API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_by_id API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
Pass me anything that looks like an _id : str, ObjectId, {"_id": str}, {"_id": ObjectId}
"Pass me anything that looks like an _id : str, ObjectId, {\"_id\": str}, {\"_id\": ObjectId}"
55
false
pricingassistant/mongokat
find_by_id
37,059
LDU_FT/soasme/rio/get_instance_by_bin_uuid
LDU_FT
[ "<BEGIN>\n## `urlopen`", "A slightly safer version of ``urlib2.urlopen`` which prevents redirection\n and ensures the URL isn't attempting to hit a blacklisted IP range.\n<END>", "<BEGIN>\n## `extract_response`", "Extract requests response object.", " only extract those status_code in [200, 300).", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_instance_by_bin_uuid API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_instance_by_bin_uuid API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio...
Get an instance by binary uuid. :param model: a string, model name in rio.models. :param bin_uuid: a 16-bytes binary string. :return: None or a SQLAlchemy instance.
"Get an instance by binary uuid.\n\n :param model: a string, model name in rio.models.\n :param bin_uuid: a 16-bytes binary string.\n :return: None or a SQLAlchemy instance."
88
false
soasme/rio
get_instance_by_bin_uuid
37,060
LDU_FT/alorence/pysvg-py3/getElementsByType
LDU_FT
[ "<BEGIN>\n## `getAllElementsOfHirarchy`", "returns ALL elements of the complete hirarchy as a flat list\n<END>", "<BEGIN>\n## `getElementByID`", "returns an element with the specific id and the position of that element within the svg elements array\n<END>", "<BEGIN>\n## `getElementsByType`", "retrieves al...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the getElementsByType API. 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 getElementsByType API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
retrieves all Elements that are of type type @type type: class @param type: type of the element
"retrieves all Elements that are of type type\n @type type: class \n @param type: type of the element"
75
false
alorence/pysvg-py3
getElementsByType
37,061
LDU_FT/astrocatalogs/astrocats/main
LDU_FT
[ "<BEGIN>\n## `main`", "Primary entry point for all AstroCats catalogs.", " From this entry point, all internal catalogs can be accessed and their\n public methods executed (for example: import scripts).\n<END>", "<BEGIN>\n## `setup_user_config`", "Setup a configuration file in the user's home director...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the main API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the main API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
Primary entry point for all AstroCats catalogs. From this entry point, all internal catalogs can be accessed and their public methods executed (for example: import scripts).
"Primary entry point for all AstroCats catalogs.\n\n From this entry point, all internal catalogs can be accessed and their\n public methods executed (for example: import scripts)."
243
false
astrocatalogs/astrocats
main
37,062
LDU_FT/jpgxs/pyopsview/_get_schema_loader
LDU_FT
[ "<BEGIN>\n## `_get_schema_loader`", "Gets a closure for schema.load_schema with the correct/current\n Opsview version\n<END>", "<BEGIN>\n## `_resolve_definitions`", "Interpolates definitions from the top-level definitions key into the\n schema. This is performed in a cut-down way similar to JSON...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_schema_loader 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_schema_loader 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...
Gets a closure for schema.load_schema with the correct/current Opsview version
"Gets a closure for schema.load_schema with the correct/current\n Opsview version"
26
false
jpgxs/pyopsview
_get_schema_loader
37,063
LDU_FT/delfick/nose-of-yeti/setup
LDU_FT
[ "<BEGIN>\n## `normalise_key`", "Make sure key is a valid python attribute\n<END>", "<BEGIN>\n## `use_options`", "If extractor isn't specified, then just update self.values with options.", " Otherwise update values with whatever the result of calling extractor with\n our template and th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the setup API. 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 setup API. 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...
Put options onto the config and put anything from a config file onto the config. If extractor is specified, it is used to extract values from the options dictionary
"Put options onto the config and put anything from a config file onto the config.\n\n If extractor is specified, it is used to extract values from the options dictionary"
59
false
delfick/nose-of-yeti
setup
37,064
LDU_FT/release-engineering/productmd/add
LDU_FT
[ "<BEGIN>\n## `parse_nvra`", "Parse RPM N-E:V-R.A string to a dict.", " :param nvra: N-E:V-R.A string. This can be a file name or a file path including the '.rpm' suffix.\n :type nvra: str\n :rtype: dict, with \"name\", \"epoch\", \"version\", \"release\", and \"arch\" elements.\n<END>", "<BEGIN>\n## ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
Map RPM to to variant and arch. :param variant: compose variant UID :type variant: str :param arch: compose architecture :type arch: str :param nevra: name-epoch:version-release.arch :type nevra: str :param sigkey: sigkey hash :type sigkey:...
"Map RPM to to variant and arch.\n\n :param variant: compose variant UID\n :type variant: str\n :param arch: compose architecture\n :type arch: str\n :param nevra: name-epoch:version-release.arch\n :type nevra: str\n :param sigkey: sigkey hash\n :typ...
61
false
release-engineering/productmd
add
37,065
LDU_FT/dlecocq/nsq-py/fin
LDU_FT
[ "<BEGIN>\n## `pack_iterable`", "Pack an iterable of messages in the TCP protocol format\n<END>", "<BEGIN>\n## `hexify`", "Print out printable characters, but others in hex\n<END>", "<BEGIN>\n## `distribute`", "Generator for (count, object) tuples that distributes count evenly among\n the provided objec...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the fin API. 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 fin API. 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...
Indicate that this message is finished processing
"Indicate that this message is finished processing"
54
false
dlecocq/nsq-py
fin
37,066
LDU_FT/raphaelm/python-sepaxml/get_rand_string
LDU_FT
[ "<BEGIN>\n## `check_payment`", "Check the payment for required fields and validity.\n @param payment: The payment dict\n @return: True if valid, error string if invalid paramaters where\n encountered.\n<END>", "<BEGIN>\n## `add_payment`", "Function to add payments\n @param payment:...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_rand_string API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_rand_string API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
Returns a securely generated random string. Taken from the Django project The default length of 12 with the a-z, A-Z, 0-9 character set returns a 71-bit value. log_2((26+26+10)^12) =~ 71 bits
"Returns a securely generated random string. Taken from the Django project\n\n The default length of 12 with the a-z, A-Z, 0-9 character set returns\n a 71-bit value. log_2((26+26+10)^12) =~ 71 bits"
45
false
raphaelm/python-sepaxml
get_rand_string
37,067
LDU_FT/edx/django-user-tasks/_get_or_create_group_parent
LDU_FT
[ "<BEGIN>\n## `on_init`", "Run sphinx-apidoc and swg2rst after Sphinx initialization.", " Read the Docs won't run tox or custom shell commands, so we need this to\n avoid checking in the generated reStructuredText files.\n<END>", "<BEGIN>\n## `create_user_task`", "Create a :py:class:`UserTaskStatus` re...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_or_create_group_parent API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclu...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_or_create_group_parent API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclu...
Determine if the given task belongs to a group or not, and if so, get or create a status record for the group. Arguments: message_body (dict): The body of the before_task_publish signal for the task in question user_id (int): The primary key of the user model record for the user who triggered the t...
"Determine if the given task belongs to a group or not, and if so, get or create a status record for the group.\n\n Arguments:\n message_body (dict): The body of the before_task_publish signal for the task in question\n user_id (int): The primary key of the user model record for the user who triggered ...
43
false
edx/django-user-tasks
_get_or_create_group_parent
37,068
LDU_FT/timmahrt/ProMo/reintegrate
LDU_FT
[ "<BEGIN>\n## `plotF0`", "Plots the original data in a graph above the plot of the dtw'ed data\n<END>", "<BEGIN>\n## `f0Morph`", "Resynthesizes the pitch track from a source to a target wav file", " fromPitchData and toPitchData should be segmented according to the\n portions that you want to morph. T...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the reintegrate API. 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 reintegrate API. 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...
Integrates the pitch values of the accent into a larger pitch contour
"Integrates the pitch values of the accent into a larger pitch contour"
75
false
timmahrt/ProMo
reintegrate
37,069
LDU_FT/bgyori/pykqml/push
LDU_FT
[ "<BEGIN>\n## `translate_argv`", "Enables conversion from system arguments.", " Parameters\n ----------\n raw_args : list\n Arguments taken raw from the system input.", " Returns\n -------\n kwargs : dict\n The input arguments formatted as a kwargs dict.\n To use as input...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the push API. 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 push API. 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...
Prepend an element to the beginnging of the list. Parameters ---------- obj : KQMLObject or str If a string is passed, it is instantiated as a KQMLToken before being added to the list.
"Prepend an element to the beginnging of the list.\n\n Parameters\n ----------\n obj : KQMLObject or str\n If a string is passed, it is instantiated as a\n KQMLToken before being added to the list."
30
false
bgyori/pykqml
push
37,070
LDU_FT/edx/edx-submissions/get_all_course_submission_information
LDU_FT
[ "<BEGIN>\n## `validate_answer`", "Check that the answer is JSON-serializable and not too long.\n<END>", "<BEGIN>\n## `get_annotations`", "Inspect ScoreAnnotations to attach all relevant annotations.\n<END>", "<BEGIN>\n## `create_reset_score`", "Create a \"reset\" score (a score with a null submission).", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_all_course_submission_information API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_all_course_submission_information API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates ...
For the given course, get all student items of the given item type, all the submissions for those itemes, and the latest scores for each item. If a submission was given a score that is not the latest score for the relevant student item, it will still be included but without score. Args: course_id (...
"For the given course, get all student items of the given item type, all the submissions for those itemes,\n and the latest scores for each item. If a submission was given a score that is not the latest score for the\n relevant student item, it will still be included but without score.\n\n Args:\n cours...
118
false
edx/edx-submissions
get_all_course_submission_information
37,071
LDU_FT/ihgazni2/edict/is_leaf
LDU_FT
[ "<BEGIN>\n## `pipe_shell_cmds`", "shell_CMDs = {}\n shell_CMDs[1] = 'netstat -n'\n shell_CMDs[2] = \"awk {'print $6'}\"\n<END>", "<BEGIN>\n## `_reorder_via_klist`", "d = {'scheme': 'http', 'path': '/index.php', 'params': 'params', 'query': 'username=query', 'fragment': 'frag', 'username': '', 'p...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_leaf API. 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 is_leaf API. 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 below is for nested-dict any type is not dict will be treated as a leaf empty dict will be treated as a leaf from edict.edict import * is_leaf(1) is_leaf({1:2}) is_leaf({})
"the below is for nested-dict\n any type is not dict will be treated as a leaf\n empty dict will be treated as a leaf\n from edict.edict import *\n is_leaf(1)\n is_leaf({1:2})\n is_leaf({})"
71
false
ihgazni2/edict
is_leaf
37,072