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/flaviogrossi/sockjs-cyclone/close | LDU_FT | [
"<BEGIN>\n## `enable_cache`",
"Enable client-side caching for the current request\n<END>",
"<BEGIN>\n## `flush`",
"Add accumulator to the moving average queue and reset it. For\n example, called by the StatsCollector once per second to calculate\n per-second average.\n<END>",
"<BEGIN>\n## `cre... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the close API.
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 close API.
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... | Close session.
@param code: Closing code
@param message: Closing message | "Close session.\n\n @param code: Closing code\n\n @param message: Closing message" | 56 | false | flaviogrossi/sockjs-cyclone | close | 142,273 | |
LDU_FT/genialis/resolwe-runtime-utils/save_list | LDU_FT | [
"<BEGIN>\n## `_get_json`",
"Convert the given value to a JSON object.\n<END>",
"<BEGIN>\n## `save_list`",
"Convert the given list of parameters to a JSON object.",
" JSON object is of the form:\n { key: [values[0], values[1], ... ] },\n where values represent the given list of parameters.\n<END>",
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the save_list API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extract... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the save_list API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extract... | Convert the given list of parameters to a JSON object.
JSON object is of the form:
{ key: [values[0], values[1], ... ] },
where values represent the given list of parameters. | "Convert the given list of parameters to a JSON object.\n\n JSON object is of the form:\n { key: [values[0], values[1], ... ] },\n where values represent the given list of parameters." | 34 | false | genialis/resolwe-runtime-utils | save_list | 142,274 | |
LDU_FT/yt-project/unyt/simplify | LDU_FT | [
"<BEGIN>\n## `uconcatenate`",
"Concatenate a sequence of arrays.",
" This wrapper around numpy.concatenate preserves units. All input arrays\n must have the same units. See the documentation of numpy.concatenate for\n full details.",
" Examples\n --------\n >>> from unyt import cm\n >>> ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the simplify API.
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 simplify API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracte... | Return a new equivalent unit object with a simplified unit expression
>>> import unyt as u
>>> unit = (u.m**2/u.cm).simplify()
>>> unit
100*m | "Return a new equivalent unit object with a simplified unit expression\n\n >>> import unyt as u\n >>> unit = (u.m**2/u.cm).simplify()\n >>> unit\n 100*m" | 236 | false | yt-project/unyt | simplify | 142,275 | |
LDU_FT/Kozea/wdb/handle_return | LDU_FT | [
"<BEGIN>\n## `import_from_stdlib`",
"Copied from pdbpp https://bitbucket.org/antocuni/pdb\n<END>",
"<BEGIN>\n## `handle_exc`",
"Return a formated exception traceback for wdb.js use\n<END>",
"<BEGIN>\n## `_patch_tcpserver`",
"Patch shutdown_request to open blocking interaction after the end of the\n req... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the handle_return API.
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 handle_return API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | This function is called when a return trap is set here. | "This function is called when a return trap is set here." | 45 | false | Kozea/wdb | handle_return | 142,276 | |
LDU_FT/bretth/woven/deploy_static | LDU_FT | [
"<BEGIN>\n## `setupnode`",
"Install a baseline host. Can be run multiple times\n<END>",
"<BEGIN>\n## `add_repositories`",
"Adds additional sources as defined in LINUX_PACKAGE_REPOSITORIES.\n<END>",
"<BEGIN>\n## `change_ssh_port`",
"For security woven changes the default ssh port.\n<END>",
"<BEGIN>\n## `... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the deploy_static API.
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 deploy_static API.
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... | Deploy static (application) versioned media | "Deploy static (application) versioned media" | 140 | false | bretth/woven | deploy_static | 142,277 | |
LDU_FT/brandonxiang/geojson-python-utils/out_of_china | LDU_FT | [
"<BEGIN>\n## `linestrings_intersect`",
"To valid whether linestrings from geojson are intersected with each other.\n reference: http://www.kevlindev.com/gui/math/intersection/Intersection.js",
" Keyword arguments:\n line1 -- first line geojson object\n line2 -- second line geojson object",
" if... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the out_of_china API.
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 out_of_china API.
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... | 判断是否在国内,不在国内不做偏移
:param lng:
:param lat:
:return: | "判断是否在国内,不在国内不做偏移\n :param lng:\n :param lat:\n :return:" | 70 | false | brandonxiang/geojson-python-utils | out_of_china | 142,278 | |
LDU_FT/mozilla/crontabber/with_transactional_resource | LDU_FT | [
"<BEGIN>\n## `toposort`",
"Dependencies are expressed as a dictionary whose keys are items\nand whose values are a set of dependent items. Output is a list of\nsets in topological order. The first set consists of items with no\ndependences, each subsequent set consists of items that depend upon\nitems in the prec... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the with_transactional_resource 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 with_transactional_resource API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclu... | a class decorator for Crontabber Apps. This decorator will give access
to a resource connection source. Configuration will be automatically set
up and the cron app can expect to have attributes:
self.{resource_name}_connection_factory
self.{resource_name}_transaction_executor
available to ... | "a class decorator for Crontabber Apps. This decorator will give access\n to a resource connection source. Configuration will be automatically set\n up and the cron app can expect to have attributes:\n self.{resource_name}_connection_factory\n self.{resource_name}_transaction_executor\n availab... | 59 | false | mozilla/crontabber | with_transactional_resource | 142,279 | |
LDU_FT/aewallin/allantools/tdev | LDU_FT | [
"<BEGIN>\n## `set_input`",
"Set inputs after initialization",
" Parameters\n -------\n nr: integer\n length of generated time-series\n number must be power of two\n qd: float\n discrete variance\n b: float\n noise type:\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the tdev API.
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 tdev API.
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... | Time deviation.
Based on modified Allan variance.
.. math::
\\sigma^2_{TDEV}( \\tau ) = { \\tau^2 \\over 3 }
\\sigma^2_{MDEV}( \\tau )
Note that TDEV has a unit of seconds.
Parameters
----------
data: np.array
Input data. Provide either phase or frequency (fractio... | "Time deviation.\n Based on modified Allan variance.\n\n .. math::\n\n \\\\sigma^2_{TDEV}( \\\\tau ) = { \\\\tau^2 \\\\over 3 }\n \\\\sigma^2_{MDEV}( \\\\tau )\n\n Note that TDEV has a unit of seconds.\n\n Parameters\n ----------\n data: np.array\n Input data. Provide either p... | 273 | false | aewallin/allantools | tdev | 142,280 | |
LDU_FT/barrust/pyspellchecker/__edit_distance_alt | LDU_FT | [
"<BEGIN>\n## `export`",
"Export the word frequency list for import in the future",
" Args:\n filepath (str): The filepath to the exported dictionary\n encoding (str): The encoding of the resulting output\n gzipped (bool): Whether to gzip the dictionary or... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the __edit_distance_alt 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 __edit_distance_alt 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... | Compute all strings that are 1 edits away from all the words using
only the letters in the corpus
Args:
words (list): The words for which to calculate the edit distance
Returns:
set: The set of strings that are edit distance two from the \
... | "Compute all strings that are 1 edits away from all the words using\n only the letters in the corpus\n\n Args:\n words (list): The words for which to calculate the edit distance\n Returns:\n set: The set of strings that are edit distance two from the \\\n ... | 57 | false | barrust/pyspellchecker | __edit_distance_alt | 142,281 | |
LDU_FT/foremast/foremast/destroy_s3 | LDU_FT | [
"<BEGIN>\n## `create_elb_dns`",
"Create dns entries in route53.",
" Args:\n regionspecific (bool): The DNS entry should have region on it\n Returns:\n str: Auto-generated DNS name for the Elastic Load Balancer.\n<END>",
"<BEGIN>\n## `create_failover_dns`",
"Create dns ent... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the destroy_s3 API.
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 destroy_s3 API.
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... | Destroy S3 Resources for _app_ in _env_.
Args:
app (str): Application name
env (str): Deployment environment/account name
Returns:
boolean: True if destroyed sucessfully | "Destroy S3 Resources for _app_ in _env_.\n\n Args:\n app (str): Application name\n env (str): Deployment environment/account name\n\n Returns:\n boolean: True if destroyed sucessfully" | 585 | false | foremast/foremast | destroy_s3 | 142,282 | |
LDU_FT/edwards-lab/MVtest/generate_jobs | LDU_FT | [
"<BEGIN>\n## `standardize`",
"Standardize the variables within a range [-1.0 and 1.0]",
" This replaces the local copies of this data. When it's time to\n scale back, use destandardize from the datasource for that.\n<END>",
"<BEGIN>\n## `destandardize`",
"Revert the betas and variance componen... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the generate_jobs API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the generate_jobs API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | Generate actual scripts to be submitted to the cluster
:param args: argparse argument collection
:param job_list: dictionary containing each each job to be submitted
:param argument_string: string containing general arguments to be used by mvtest.py during execution
:return: None | "Generate actual scripts to be submitted to the cluster\n\n :param args: argparse argument collection\n :param job_list: dictionary containing each each job to be submitted\n :param argument_string: string containing general arguments to be used by mvtest.py during execution\n :return: None" | 44 | false | edwards-lab/MVtest | generate_jobs | 142,283 | |
LDU_FT/elsampsa/valkka-live/autoGenerateCameraCollection | LDU_FT | [
"<BEGIN>\n## `run`",
"After the fork. Now the process starts running\n<END>",
"<BEGIN>\n## `preRun_`",
"Create the shared memory client immediately after fork\n<END>",
"<BEGIN>\n## `run`",
"After the fork. Now the process starts running\n<END>",
"<BEGIN>\n## `activate_`",
"Shared mem info is given. N... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the autoGenerateCameraCollection API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its concl... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the autoGenerateCameraCollection API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its concl... | :param: base_address str, e.g. "192.168.1"
:param: nstart int, e.g. 24
:param: n int, how many ips generated | ":param: base_address str, e.g. \"192.168.1\"\n :param: nstart int, e.g. 24\n :param: n int, how many ips generated" | 135 | false | elsampsa/valkka-live | autoGenerateCameraCollection | 142,284 | |
LDU_FT/IdentityPython/pysaml2/before | LDU_FT | [
"<BEGIN>\n## `add_vo_information_about_user`",
"Add information to the knowledge I have about the user. This is\n for Virtual organizations.",
" :param name_id: The subject identifier\n :return: A possibly extended knowledge.\n<END>",
"<BEGIN>\n## `create_authn_request`",
"Creates an au... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the before API.
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 before API.
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 ... | True if point datetime specification is before now.
NOTE: If point is specified it is supposed to be in local time.
Not UTC/GMT !! This is because that is what gmtime() expects. | "True if point datetime specification is before now.\n\n NOTE: If point is specified it is supposed to be in local time.\n Not UTC/GMT !! This is because that is what gmtime() expects." | 738 | false | IdentityPython/pysaml2 | before | 142,285 | |
LDU_FT/languitar/pass-git-helper/parse_mapping | LDU_FT | [
"<BEGIN>\n## `parse_arguments`",
"Parse the command line arguments.",
" Args:\n argv:\n If not ``None``, use the provided command line arguments for\n parsing. Otherwise, extract them automatically.",
" Returns:\n The argparse object representing the parsed arguments.... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_mapping API.
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 parse_mapping API.
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... | Parse the file containing the mappings from hosts to pass entries.
Args:
mapping_file:
Name of the file to parse. If ``None``, the default file from the
XDG location is used. | "Parse the file containing the mappings from hosts to pass entries.\n\n Args:\n mapping_file:\n Name of the file to parse. If ``None``, the default file from the\n XDG location is used." | 19 | false | languitar/pass-git-helper | parse_mapping | 142,286 | |
LDU_FT/dacut/meterer/get_period_strs | LDU_FT | [
"<BEGIN>\n## `resource_to_bucket_and_key`",
"S3Meterer.resource_to_bucket_and_key(resource_name) -> (str, str)",
" Convert an S3 resource name in the form 's3://bucket/key' to a tuple\n of ('bucket', 'key').\n<END>",
"<BEGIN>\n## `allow_resource_access`",
"meterer.allow_resource_access(resourc... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_period_strs API.
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_period_strs API.
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... | meterer.get_period_strings()
Return the period strings for the specified time (defaulting to the
current time if not specified). | "meterer.get_period_strings()\n\n Return the period strings for the specified time (defaulting to the\n current time if not specified)." | 26 | false | dacut/meterer | get_period_strs | 142,287 | |
LDU_FT/ultrabug/py3status/storage_del | LDU_FT | [
"<BEGIN>\n## `load_from_file`",
"Return user-written class object from given path.\n<END>",
"<BEGIN>\n## `prepare_module`",
"Ready the module to get it ready to start.\n<END>",
"<BEGIN>\n## `error_output`",
"Something is wrong with the module so we want to output the error to\n the i3bar\n<END>",
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the storage_del API.
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 storage_del API.
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... | Remove the value stored with the key from storage.
If key is not supplied then all values for the module are removed. | "Remove the value stored with the key from storage.\n If key is not supplied then all values for the module are removed." | 514 | false | ultrabug/py3status | storage_del | 142,288 | |
LDU_FT/frnsys/broca/parallel | LDU_FT | [
"<BEGIN>\n## `train_doc2vec`",
"Train a doc2vec model on a list of files.\n<END>",
"<BEGIN>\n## `_doc2vec_doc_stream`",
"Generator to feed sentences to the dov2vec model.\n<END>",
"<BEGIN>\n## `estimate_eps`",
"Estimates possible eps values (to be used with DBSCAN)\n for a given distance matrix by look... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parallel API.
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 parallel API.
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... | Convenience wrapper around joblib's parallelization. | "Convenience wrapper around joblib's parallelization." | 125 | false | frnsys/broca | parallel | 142,289 | |
LDU_FT/aws/aws-dynamodb-encryption-python/serialize_attribute | LDU_FT | [
"<BEGIN>\n## `encrypt_item`",
"Demonstrate use of EncryptedTable to transparently encrypt an item.\n<END>",
"<BEGIN>\n## `to_str`",
"Takes an input str or bytes object and returns an equivalent str object.",
" :param data: Input data\n :type data: str or bytes\n :returns: Data normalized to str\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the serialize_attribute 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 serialize_attribute 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... | Serializes a raw attribute to a byte string as defined for the DynamoDB Client-Side Encryption Standard.
:param dict attribute: Item attribute value
:returns: Serialized attribute
:rtype: bytes | "Serializes a raw attribute to a byte string as defined for the DynamoDB Client-Side Encryption Standard.\n\n :param dict attribute: Item attribute value\n :returns: Serialized attribute\n :rtype: bytes" | 175 | false | aws/aws-dynamodb-encryption-python | serialize_attribute | 142,290 | |
LDU_FT/B2W-BIT/aiologger/compute_rollover | LDU_FT | [
"<BEGIN>\n## `format`",
"Formats a record and serializes it as a JSON str. If record message isnt\n already a dict, initializes a new dict and uses `default_msg_fieldname`\n as a key as the record msg as the value.\n<END>",
"<BEGIN>\n## `formatter_fields_for_record`",
":type record: aiologger.lo... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the compute_rollover API.
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 compute_rollover API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | Work out the rollover time based on the specified time.
If we are rolling over at midnight or weekly, then the interval is
already known. need to figure out is WHEN the next interval is.
In other words, if you are rolling over at midnight, then your base
interval is 1 day, but you want ... | "Work out the rollover time based on the specified time.\n\n If we are rolling over at midnight or weekly, then the interval is\n already known. need to figure out is WHEN the next interval is.\n In other words, if you are rolling over at midnight, then your base\n interval is 1 day, but you... | 69 | false | B2W-BIT/aiologger | compute_rollover | 142,291 | |
LDU_FT/abe-winter/pg13-py/expression_type | LDU_FT | [
"<BEGIN>\n## `names_from_exp`",
"Return a list of AttrX and NameX from the expression.\n<END>",
"<BEGIN>\n## `classify_wherex`",
"helper for wherex_to_rowlist. returns [SingleTableCond,...], [CartesianCond,...]\n<END>",
"<BEGIN>\n## `table_to_rowlist`",
"helper for wherex_to_rowlist. (table.Table, [exp, .... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the expression_type API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The e... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the expression_type API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The e... | take a BaseX descendant from sqparse2, return a type class from above | "take a BaseX descendant from sqparse2, return a type class from above" | 182 | false | abe-winter/pg13-py | expression_type | 142,292 | |
LDU_FT/cpburnz/python-path-specification/_translate_segment_glob | LDU_FT | [
"<BEGIN>\n## `from_lines`",
"Compiles the pattern lines.",
"\t\t*pattern_factory* can be either the name of a registered pattern\n\t\tfactory (:class:`str`), or a :class:`~collections.abc.Callable` used\n\t\tto compile patterns. It must accept an uncompiled pattern (:class:`str`)\n\t\tand return the compiled pa... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _translate_segment_glob 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 _translate_segment_glob API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion... | Translates the glob pattern to a regular expression. This is used in
the constructor to translate a path segment glob pattern to its
corresponding regular expression.
*pattern* (:class:`str`) is the glob pattern.
Returns the regular expression (:class:`str`). | "Translates the glob pattern to a regular expression. This is used in\n\t\tthe constructor to translate a path segment glob pattern to its\n\t\tcorresponding regular expression.\n\n\t\t*pattern* (:class:`str`) is the glob pattern.\n\n\t\tReturns the regular expression (:class:`str`)." | 78 | false | cpburnz/python-path-specification | _translate_segment_glob | 142,293 | |
LDU_FT/watson-developer-cloud/python-sdk/_from_dict | LDU_FT | [
"<BEGIN>\n## `synthesize_using_websocket`",
"Synthesizes text to spoken audio using web sockets. It supports the use of\n the SSML <mark> element to identify the location of user-specified markers in the audio.\n It can also return timing information for all strings of the input text.\n Note:... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _from_dict API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extrac... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _from_dict API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extrac... | Initialize a FeedbackDataInput object from a json dictionary. | "Initialize a FeedbackDataInput object from a json dictionary." | 1,254 | true | watson-developer-cloud/python-sdk | _from_dict | 142,294 | |
LDU_FT/javipalanca/spade/from_node | LDU_FT | [
"<BEGIN>\n## `set_available`",
"Sets the agent availability to True.",
" Args:\n show (aioxmpp.PresenceShow, optional): the show state of the presence (Default value = None)\n<END>",
"<BEGIN>\n## `set_presence`",
"Change the presence broadcast by the client.\n If the client is current... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the from_node API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extract... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the from_node API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extract... | Creates a new spade.message.Message from an aixoxmpp.stanza.Message
Args:
node (aioxmpp.stanza.Message): an aioxmpp Message
Returns:
spade.message.Message: a new spade Message | "Creates a new spade.message.Message from an aixoxmpp.stanza.Message\n\n Args:\n node (aioxmpp.stanza.Message): an aioxmpp Message\n\n Returns:\n spade.message.Message: a new spade Message" | 153 | false | javipalanca/spade | from_node | 142,295 | |
LDU_FT/louib/confirm/load_config_file | LDU_FT | [
"<BEGIN>\n## `validate`",
"Validate a configuration file against a confirm schema.\n<END>",
"<BEGIN>\n## `migrate`",
"Migrates a configuration file using a confirm schema.\n<END>",
"<BEGIN>\n## `document`",
"Generate reStructuredText documentation from a confirm schema.\n<END>",
"<BEGIN>\n## `generate`"... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load_config_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 ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load_config_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 ... | Loads a config file, whether it is a yaml file or a .INI file.
:param config_file_path: Path of the configuration file, used to infer the file format.
:returns: Dictionary representation of the configuration file. | "Loads a config file, whether it is a yaml file or a .INI file.\n\n :param config_file_path: Path of the configuration file, used to infer the file format.\n :returns: Dictionary representation of the configuration file." | 24 | false | louib/confirm | load_config_file | 142,296 | |
LDU_FT/hannorein/rebound/calculate_com | LDU_FT | [
"<BEGIN>\n## `add_outer_solar_system`",
"Add the planet of the outer Solar System as a test problem.\n Data taken from NASA Horizons.\n<END>",
"<BEGIN>\n## `OrbitPlot`",
"Convenience function for plotting instantaneous orbits.",
" Parameters\n ----------\n slices : bool, optional\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the calculate_com API.
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 calculate_com API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | Returns the center of momentum for all particles in the simulation.
Parameters
----------
first: int, optional
If ``first`` is specified, only calculate the center of momentum starting
from index=``first``.
last : int or None, optional
If ``last`` is ... | "Returns the center of momentum for all particles in the simulation.\n\n Parameters\n ----------\n first: int, optional\n If ``first`` is specified, only calculate the center of momentum starting\n from index=``first``.\n last : int or None, optional\n If ``l... | 209 | false | hannorein/rebound | calculate_com | 142,297 | |
LDU_FT/YosaiProject/yosai/save | LDU_FT | [
"<BEGIN>\n## `on_successful_login`",
"Reacts to the successful login attempt by first always\n forgetting any previously stored identity. Then if the authc_token\n is a ``RememberMe`` type of token, the associated identity\n will be remembered for later retrieval during a new user session.",... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the save API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted do... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the save API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted do... | Saves the subject's state to the subject's ``Session`` only
if session storage is enabled for the subject. If session storage is
not enabled for the specific Subject, this method does nothing.
In either case, the argument Subject is returned directly (a new
``Subject`` instance is not ... | "Saves the subject's state to the subject's ``Session`` only\n if session storage is enabled for the subject. If session storage is\n not enabled for the specific Subject, this method does nothing.\n\n In either case, the argument Subject is returned directly (a new\n ``Subject`` instance i... | 335 | false | YosaiProject/yosai | save | 142,298 | |
LDU_FT/soundcloud/soundcloud-python/_request | LDU_FT | [
"<BEGIN>\n## `exchange_token`",
"Given the value of the code parameter, request an access token.\n<END>",
"<BEGIN>\n## `_authorization_code_flow`",
"Build the the auth URL so the user can authorize the app.\n<END>",
"<BEGIN>\n## `_refresh_token_flow`",
"Given a refresh token, obtain a new access token.\n<... | 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... | Given an HTTP method, a resource name and kwargs, construct a
request and return the response. | "Given an HTTP method, a resource name and kwargs, construct a\n request and return the response." | 29 | false | soundcloud/soundcloud-python | _request | 142,299 | |
LDU_FT/improbable-research/keanu/Abs | LDU_FT | [
"<BEGIN>\n## `BooleanSlice`",
"Takes the slice along a given dimension and index of a vertex",
" :param input_vertex: the input vertex\n :param dimension: the dimension to extract along\n :param index: the index of extraction\n<END>",
"<BEGIN>\n## `BooleanTake`",
"A vertex that extracts a scalar at... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the Abs API.
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 Abs API.
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... | Takes the absolute of a vertex
:param input_vertex: the vertex | "Takes the absolute of a vertex\n \n :param input_vertex: the vertex" | 185 | false | improbable-research/keanu | Abs | 142,300 | |
LDU_FT/FujiMakoto/IPS-Vagrant/get | LDU_FT | [
"<BEGIN>\n## `dev_tools_installer`",
"Installer factory\n @param cv: Current version (The version of Developer Tools we are installing)\n @type cv: ips_vagrant.common.version.Version\n @return: Installer instance\n @rtype: ips_vagrant.installer.dev_tools.latest.DevToolsInstaller\n<END>",
"... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted doc... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted doc... | Fetch all licenses associated with our account
@rtype: list of LicenseMeta | "Fetch all licenses associated with our account\n @rtype: list of LicenseMeta" | 87 | false | FujiMakoto/IPS-Vagrant | get | 142,301 | |
LDU_FT/klen/zeta-library/_sprite_position | LDU_FT | [
"<BEGIN>\n## `watch`",
"Watch directory for changes and auto pack sources\n<END>",
"<BEGIN>\n## `pack`",
"Parse file or dir, import css, js code and save with prefix\n<END>",
"<BEGIN>\n## `_invert`",
"Returns the inverse (negative) of a color.\n The red, green, and blue values are inverted, while the o... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _sprite_position API.
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 _sprite_position API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | Returns the position for the original image in the sprite.
This is suitable for use as a value to background-position. | "Returns the position for the original image in the sprite.\n This is suitable for use as a value to background-position." | 56 | false | klen/zeta-library | _sprite_position | 142,302 | |
LDU_FT/BlueBrain/NeuroM/trunk_angles | LDU_FT | [
"<BEGIN>\n## `_get_type`",
"get the type of the soma",
" Args:\n points: Soma points\n soma_class(str): one of 'contour' or 'cylinder' to specify the type\n<END>",
"<BEGIN>\n## `make_soma`",
"Make a soma object from a set of points",
" Infers the soma type (SomaSinglePoint, SomaSimpleC... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the trunk_angles API.
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 trunk_angles API.
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... | Calculates the angles between all the trunks of the neuron.
The angles are defined on the x-y plane and the trees
are sorted from the y axis and anticlock-wise. | "Calculates the angles between all the trunks of the neuron.\n The angles are defined on the x-y plane and the trees\n are sorted from the y axis and anticlock-wise." | 706 | false | BlueBrain/NeuroM | trunk_angles | 142,303 | |
LDU_FT/DenisCarriere/geocoder/_connect | LDU_FT | [
"<BEGIN>\n## `_sign_url`",
"Sign a request URL with a Crypto Key.\n Usage:\n from urlsigner import sign_url\n signed_url = sign_url(base_url=my_url,\n params=url_params,\n client_secret=CLIENT_SECRET)\n Args:\n base_url -... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _connect API.
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 _connect API.
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... | - Query self.url (validated cls._URL)
- Analyse reponse and set status, errors accordingly
- On success:
returns the content of the response as a JSON object
This object will be passed to self._parse_json_response | "- Query self.url (validated cls._URL)\n - Analyse reponse and set status, errors accordingly\n - On success:\n\n returns the content of the response as a JSON object\n This object will be passed to self._parse_json_response" | 32 | false | DenisCarriere/geocoder | _connect | 142,304 | |
LDU_FT/BlueBrain/NeuroM/trunk_origin_azimuths | LDU_FT | [
"<BEGIN>\n## `_get_type`",
"get the type of the soma",
" Args:\n points: Soma points\n soma_class(str): one of 'contour' or 'cylinder' to specify the type\n<END>",
"<BEGIN>\n## `make_soma`",
"Make a soma object from a set of points",
" Infers the soma type (SomaSinglePoint, SomaSimpleC... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the trunk_origin_azimuths 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 trunk_origin_azimuths API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | Get a list of all the trunk origin azimuths of a neuron or population
The azimuth is defined as Angle between x-axis and the vector
defined by (initial tree point - soma center) on the x-z plane.
The range of the azimuth angle [-pi, pi] radians | "Get a list of all the trunk origin azimuths of a neuron or population\n\n The azimuth is defined as Angle between x-axis and the vector\n defined by (initial tree point - soma center) on the x-z plane.\n\n The range of the azimuth angle [-pi, pi] radians" | 706 | false | BlueBrain/NeuroM | trunk_origin_azimuths | 142,305 | |
LDU_FT/doanguyen/lasotuvi/nguHanhNapAm | LDU_FT | [
"<BEGIN>\n## `nhapDaiHan`",
"Nhap dai han",
" Args:\n cucSo (TYPE): Description\n gioiTinh (TYPE): Description",
" Returns:\n TYPE: Description\n<END>",
"<BEGIN>\n## `ngayThangNam`",
"Summary",
" Args:\n nn (TYPE): ngay\n tt (TYPE): thang\n... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the nguHanhNapAm API.
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 nguHanhNapAm API.
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... | Sử dụng Ngũ Hành nạp âm để tính Hành của năm.
Args:
diaChi (integer): Số thứ tự của địa chi (Tý=1, Sửu=2,...)
thienCan (integer): Số thứ tự của thiên can (Giáp=1, Ất=2,...)
Returns:
Trả về chữ viết tắt Hành của năm (K, T, H, O, M) | "Sử dụng Ngũ Hành nạp âm để tính Hành của năm.\n\n Args:\n diaChi (integer): Số thứ tự của địa chi (Tý=1, Sửu=2,...)\n thienCan (integer): Số thứ tự của thiên can (Giáp=1, Ất=2,...)\n\n Returns:\n Trả về chữ viết tắt Hành của năm (K, T, H, O, M)" | 47 | false | doanguyen/lasotuvi | nguHanhNapAm | 142,306 | |
LDU_FT/InformaticsMatters/pipelines-utils/convert_boolean | LDU_FT | [
"<BEGIN>\n## `round_sig`",
"Round the number to the specified number of significant figures\n<END>",
"<BEGIN>\n## `open_file`",
"Open the file gunzipping it if it ends with .gz.\n If as_text the file is opened in text mode,\n otherwise the file's opened in binary mode.\n<END>",
"<BEGIN>\n## `create_si... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the convert_boolean API.
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 convert_boolean API.
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... | Converts a string to a boolean (see CONVERTERS).
There is a converter function for each column type.
Boolean strings are independent of case. Values interpreted as True
are: "yes", "true", "on", "1". values interpreted as False are
"no", "false", "off", "0". Any other value will result in a ValueError.... | "Converts a string to a boolean (see CONVERTERS).\n There is a converter function for each column type.\n\n Boolean strings are independent of case. Values interpreted as True\n are: \"yes\", \"true\", \"on\", \"1\". values interpreted as False are\n \"no\", \"false\", \"off\", \"0\". Any other value will r... | 39 | false | InformaticsMatters/pipelines-utils | convert_boolean | 142,307 | |
LDU_FT/v1k45/django-notify-x/notification_redirect | LDU_FT | [
"<BEGIN>\n## `include_notify_js_variables`",
"Inclusion template tag to include all JS variables required by the\n notify.js file on the HTML page around <script> tags.",
" Example::\n {% include_notify_js_variables %}",
" :return: Prepares context for rendering in the inclusion file.\n<END>",... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the notification_redirect 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 notification_redirect API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | Helper to handle HTTP response after an action is performed on notification
:param request: HTTP request context of the notification
:param ctx: context to be returned when a AJAX call is made.
:returns: Either JSON for AJAX or redirects to the calculated next page. | "Helper to handle HTTP response after an action is performed on notification\n\n :param request: HTTP request context of the notification\n\n :param ctx: context to be returned when a AJAX call is made.\n\n :returns: Either JSON for AJAX or redirects to the calculated next page." | 92 | false | v1k45/django-notify-x | notification_redirect | 142,308 | |
LDU_FT/linkedin/luminol/stdev | LDU_FT | [
"<BEGIN>\n## `_analyze_root_causes`",
"Conduct root cause analysis.\n The first metric of the list is taken as the root cause right now.\n<END>",
"<BEGIN>\n## `_load`",
"Load time series into a TimeSeries object.\n :param timeseries: a TimeSeries, a dictionary or a path to a csv file(str).\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the stdev API.
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 stdev API.
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... | Calculate the standard deviation of the time series.
:param default: Value to return as a default should the calculation not be possible.
:return: Float representing the standard deviation value or `None`. | "Calculate the standard deviation of the time series.\n\n :param default: Value to return as a default should the calculation not be possible.\n :return: Float representing the standard deviation value or `None`." | 95 | false | linkedin/luminol | stdev | 142,309 | |
LDU_FT/rchatterjee/pwmodels/gen_n_random_num | LDU_FT | [
"<BEGIN>\n## `gen_n_random_num`",
"Returns @n @unique random unsigned integers (4 bytes) \\\n between 0 and @MAX_NUM.\n<END>",
"<BEGIN>\n## `sample_following_dist`",
"Samples n passwords following the distribution from the handle\n @handle_iter is an iterator that gives (pw,f) @n is the total\n numbe... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the gen_n_random_num API.
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_n_random_num API.
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 @n @unique random unsigned integers (4 bytes) \
between 0 and @MAX_NUM. | "Returns @n @unique random unsigned integers (4 bytes) \\\n between 0 and @MAX_NUM." | 48 | false | rchatterjee/pwmodels | gen_n_random_num | 142,310 | |
LDU_FT/fictorial/filesysdb/load_object_at_path | LDU_FT | [
"<BEGIN>\n## `object_path`",
"Returns path to the backing file of the object\n with the given ``id`` in the given ``collection``.\n Note that the ``id`` is made filesystem-safe by\n \"normalizing\" its string representation.\n<END>",
"<BEGIN>\n## `load_object_at_path`",
"Load an object from disk at e... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load_object_at_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.
T... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load_object_at_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.
T... | Load an object from disk at explicit path | "Load an object from disk at explicit path" | 34 | false | fictorial/filesysdb | load_object_at_path | 142,311 | |
LDU_FT/bioidiap/bob.ip.facedetect/add_from_db | LDU_FT | [
"<BEGIN>\n## `add`",
"Adds a new strong classifier with the given threshold to the cascade.",
" **Parameters:**",
" classifier : :py:class:`bob.learn.boosting.BoostedMachine`\n A strong classifier to add",
" ``threshold`` : float\n The classification threshold for this cascade step",
" ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_from_db API.
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 add_from_db API.
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... | Adds images and bounding boxes for the given files of a database that follows the :py:ref:`bob.bio.base.database.BioDatabase <bob.bio.base>` interface.
**Parameters:**
``database`` : a derivative of :py:class:`bob.bio.base.database.BioDatabase`
The database interface, which provides file names and annot... | "Adds images and bounding boxes for the given files of a database that follows the :py:ref:`bob.bio.base.database.BioDatabase <bob.bio.base>` interface.\n\n **Parameters:**\n\n ``database`` : a derivative of :py:class:`bob.bio.base.database.BioDatabase`\n The database interface, which provides file names and... | 246 | false | bioidiap/bob.ip.facedetect | add_from_db | 142,312 | |
LDU_FT/a-tal/kezmenu3/update | LDU_FT | [
"<BEGIN>\n## `_effectinit_enlarge_font_on_focus`",
"Init the effect that enlarge the focused menu entry.\n Keyword arguments can contain enlarge_time and enlarge_factor.\n<END>",
"<BEGIN>\n## `_effectupdate_enlarge_font_on_focus`",
"Gradually enlarge the font size of the focused line.\n<END>",
"<BEGI... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted ... | Update the menu and get input for the menu.
@events: the pygame catched events
@time_passed: delta time since the last call | "Update the menu and get input for the menu.\n\n @events: the pygame catched events\n @time_passed: delta time since the last call" | 17 | false | a-tal/kezmenu3 | update | 142,313 | |
LDU_FT/peterdemin/pip-compile-multi/skipper | LDU_FT | [
"<BEGIN>\n## `create_lockfile`",
"Write recursive dependencies list to outfile\n with hard-pinned versions.\n Then fix it.\n<END>",
"<BEGIN>\n## `parse_references`",
"Read filename line by line searching for pattern:",
" -r file.in\n or\n --requirement file.in",
" ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the skipper API.
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 skipper API.
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... | Decorator that memorizes base_dir, in_ext and out_ext from OPTIONS
and skips execution for duplicates. | "Decorator that memorizes base_dir, in_ext and out_ext from OPTIONS\n and skips execution for duplicates." | 61 | false | peterdemin/pip-compile-multi | skipper | 142,314 | |
LDU_FT/benvanwerkhoven/kernel_tuner/memcpy_dtoh | LDU_FT | [
"<BEGIN>\n## `tune`",
"Find the best performing kernel configuration in the parameter space",
" :params runner: A runner from kernel_tuner.runners\n :type runner: kernel_tuner.runner",
" :param kernel_options: A dictionary with all options for the kernel.\n :type kernel_options: dict",
" :par... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the memcpy_dtoh API.
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 memcpy_dtoh API.
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... | perform a device to host memory copy
:param dest: A numpy array in host memory to store the data
:type dest: numpy.ndarray
:param src: A GPU memory allocation unit
:type src: pycuda.driver.DeviceAllocation | "perform a device to host memory copy\n\n :param dest: A numpy array in host memory to store the data\n :type dest: numpy.ndarray\n\n :param src: A GPU memory allocation unit\n :type src: pycuda.driver.DeviceAllocation" | 294 | false | benvanwerkhoven/kernel_tuner | memcpy_dtoh | 142,315 | |
LDU_FT/jacebrowning/comparable/match_similar | LDU_FT | [
"<BEGIN>\n## `match_similar`",
"Get the most similar matching item from a list of items.",
" @param base: base item to locate best match\n @param items: list of items for comparison\n @return: most similar matching item or None\n<END>",
"<BEGIN>\n## `duplicates`",
"Get an iterator of items similar ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the match_similar API.
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 match_similar API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | Get the most similar matching item from a list of items.
@param base: base item to locate best match
@param items: list of items for comparison
@return: most similar matching item or None | "Get the most similar matching item from a list of items.\n\n @param base: base item to locate best match\n @param items: list of items for comparison\n @return: most similar matching item or None" | 44 | false | jacebrowning/comparable | match_similar | 142,316 | |
LDU_FT/etingof/pysnmp/getCmd | LDU_FT | [
"<BEGIN>\n## `getMibSymbol`",
"Returns MIB variable symbolic identification.",
" Returns\n -------\n str\n MIB module name\n str\n MIB variable symbolic name\n : :py:class:`~pysnmp.proto.rfc1902.ObjectName`\n class instance representing MIB ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the getCmd API.
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 getCmd API.
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 ... | Performs SNMP GET query.
Based on passed parameters, prepares SNMP GET packet
(:RFC:`1905#section-4.2.1`) and schedules its transmission by
:mod:`twisted` I/O framework at a later point of time.
Parameters
----------
snmpEngine : :class:`~pysnmp.hlapi.SnmpEngine`
Class instance represe... | "Performs SNMP GET query.\n\n Based on passed parameters, prepares SNMP GET packet\n (:RFC:`1905#section-4.2.1`) and schedules its transmission by\n :mod:`twisted` I/O framework at a later point of time.\n\n Parameters\n ----------\n snmpEngine : :class:`~pysnmp.hlapi.SnmpEngine`\n Class instan... | 708 | false | etingof/pysnmp | getCmd | 142,317 | |
LDU_FT/niklasb/webkit-server/issue_command | LDU_FT | [
"<BEGIN>\n## `xpath`",
"Finds another node by XPath originating at the current node.\n<END>",
"<BEGIN>\n## `css`",
"Finds another node by a CSS selector relative to the current node.\n<END>",
"<BEGIN>\n## `get_bool_attr`",
"Returns the value of a boolean HTML attribute like `checked` or `disabled`\n<END>"... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the issue_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 ext... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the issue_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 ext... | Sends and receives a message to/from the server | "Sends and receives a message to/from the server" | 30 | false | niklasb/webkit-server | issue_command | 142,318 | |
LDU_FT/rasguanabana/ytfs/clean | LDU_FT | [
"<BEGIN>\n## `__getChannelId`",
"Obtain channel id for channel name, if present in ``self.search_params``.\n<END>",
"<BEGIN>\n## `__searchParser`",
"Parse `query` for advanced search options.",
" Parameters\n ----------\n query : str\n Search query to parse. Besides a search ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the clean API.
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 clean API.
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... | Clear the data. For each ``YTStor`` object present in this object ``clean`` method is executed. | "Clear the data. For each ``YTStor`` object present in this object ``clean`` method is executed." | 109 | false | rasguanabana/ytfs | clean | 142,319 | |
LDU_FT/UDST/urbansim/_generate_lookup | LDU_FT | [
"<BEGIN>\n## `log_start_finish`",
"A context manager to log messages with \"start: \" and \"finish: \"\n prefixes before and after a block.",
" Parameters\n ----------\n msg : str\n Will be prefixed with \"start: \" and \"finish: \".\n logger : logging.Logger\n level : int, optional\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _generate_lookup API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _generate_lookup API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | Run the developer model on all possible inputs specified in the
configuration object - not generally called by the user. This part
computes the final cost per sqft of the building to construct and
then turns it into the yearly rent necessary to make break even on
that cost. | "Run the developer model on all possible inputs specified in the\n configuration object - not generally called by the user. This part\n computes the final cost per sqft of the building to construct and\n then turns it into the yearly rent necessary to make break even on\n that cost." | 461 | false | UDST/urbansim | _generate_lookup | 142,320 | |
LDU_FT/dls-controls/pymalcolm/_recv_loop | LDU_FT | [
"<BEGIN>\n## `camel_to_title`",
"Takes a camelCaseFieldName and returns an Title Case Field Name",
" Args:\n name (str): E.g. camelCaseFieldName",
" Returns:\n str: Title Case converted name. E.g. Camel Case Field Name\n<END>",
"<BEGIN>\n## `snake_to_camel`",
"Takes a snake_field_name ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _recv_loop API.
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 _recv_loop API.
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... | Service socket recv, returning responses to the correct queue | "Service socket recv, returning responses to the correct queue" | 332 | false | dls-controls/pymalcolm | _recv_loop | 142,321 | |
LDU_FT/Clinical-Genomics/housekeeper/files_ondisk | LDU_FT | [
"<BEGIN>\n## `include`",
"Include a bundle of files into the internal space.",
" Use bundle name if you simply want to inlcude the latest version.\n<END>",
"<BEGIN>\n## `files_ondisk`",
"Returns a list of files that are not on disk.\n<END>",
"<BEGIN>\n## `add_bundle`",
"Build a new bundle version of ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the files_ondisk API.
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 files_ondisk API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extr... | Returns a list of files that are not on disk. | "Returns a list of files that are not on disk." | 12 | false | Clinical-Genomics/housekeeper | files_ondisk | 142,322 | |
LDU_FT/undertheseanlp/underthesea/ner | LDU_FT | [
"<BEGIN>\n## `Text`",
"provide a wrapper for python string\n map byte to str (python 3)\n all string in utf-8 encoding\n normalize string to NFC\n<END>",
"<BEGIN>\n## `sent2features`",
"extract features in a sentence",
" :type sentence: list of token, each token is a list of tag\n<END>",
"<BEG... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the ner API.
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 ner API.
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... | Location and classify named entities in text
Parameters
==========
sentence: {unicode, str}
raw sentence
Returns
=======
tokens: list of tuple with word, pos tag, chunking tag, ner tag
tagged sentence
Examples
--------
>>> # -*- coding: utf-8 -*-
>>> from und... | "Location and classify named entities in text\n\n Parameters\n ==========\n\n sentence: {unicode, str}\n raw sentence\n\n Returns\n =======\n tokens: list of tuple with word, pos tag, chunking tag, ner tag\n tagged sentence\n\n Examples\n --------\n\n >>> # -*- coding: utf-8 -*-... | 62 | false | undertheseanlp/underthesea | ner | 142,323 | |
LDU_FT/dwavesystems/dwave_networkx/draw_pegasus_embedding | LDU_FT | [
"<BEGIN>\n## `traveling_salesman`",
"Returns an approximate minimum traveling salesperson route.",
" Defines a QUBO with ground states corresponding to the\n minimum routes and uses the sampler to sample\n from it.",
" A route is a cycle in the graph that reaches each node exactly once.\n A min... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the draw_pegasus_embedding 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 draw_pegasus_embedding API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.... | Draws an embedding onto the pegasus graph G, according to layout.
If interaction_edges is not None, then only display the couplers in that
list. If embedded_graph is not None, the only display the couplers between
chains with intended couplings according to embedded_graph.
Parameters
----------
... | "Draws an embedding onto the pegasus graph G, according to layout.\n\n If interaction_edges is not None, then only display the couplers in that\n list. If embedded_graph is not None, the only display the couplers between\n chains with intended couplings according to embedded_graph.\n\n Parameters\n ----... | 563 | false | dwavesystems/dwave_networkx | draw_pegasus_embedding | 142,324 | |
LDU_FT/nion-software/nionswift/set_r_value | LDU_FT | [
"<BEGIN>\n## `get_string`",
"Return a string value that the user enters. Raises exception for cancel.\n<END>",
"<BEGIN>\n## `__accept_reject`",
"Return a boolean value for accept/reject.\n<END>",
"<BEGIN>\n## `item_transaction`",
"Begin transaction state for item.",
" A transaction state is exist... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_r_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 extra... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_r_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 extra... | Used to signal changes to the ref var, which are kept in document controller. ugh. | "Used to signal changes to the ref var, which are kept in document controller. ugh." | 690 | false | nion-software/nionswift | set_r_value | 142,325 | |
LDU_FT/cloudmesh/cloudmesh-common/print | LDU_FT | [
"<BEGIN>\n## `names`",
"The names defined in ~/.ssh/config\n :return: the names\n<END>",
"<BEGIN>\n## `load`",
"list the hosts defined in the ssh config file\n<END>",
"<BEGIN>\n## `execute`",
"execute the command on the named host\n :param name: the name of the host in config\n :param... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the print API.
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 print API.
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... | prints a timer. The first argument is the label if it exists, the last is the timer
:param args: label, name
:return: | "prints a timer. The first argument is the label if it exists, the last is the timer\n :param args: label, name \n :return:" | 203 | false | cloudmesh/cloudmesh-common | print | 142,326 | |
LDU_FT/dwavesystems/dimod/data_vectors | LDU_FT | [
"<BEGIN>\n## `sample`",
"Give random samples for a binary quadratic model.",
" Variable assignments are chosen by coin flip.",
" Args:\n bqm (:obj:`.BinaryQuadraticModel`):\n Binary quadratic model to be sampled from.",
" num_reads (int, optional, default=1... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the data_vectors API.
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 data_vectors API.
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... | The per-sample data in a vector.
Returns:
dict: A dict where the keys are the fields in the record and the
values are the corresponding arrays.
Examples:
>>> sampleset = dimod.SampleSet.from_samples([[-1, 1], [1, 1]], dimod.SPIN,
... | "The per-sample data in a vector.\n\n Returns:\n dict: A dict where the keys are the fields in the record and the\n values are the corresponding arrays.\n\n Examples:\n >>> sampleset = dimod.SampleSet.from_samples([[-1, 1], [1, 1]], dimod.SPIN,\n ... | 908 | false | dwavesystems/dimod | data_vectors | 142,327 | |
LDU_FT/Pixelapse/pyglass/preview | LDU_FT | [
"<BEGIN>\n## `embedded_preview`",
"Returns path to temporary copy of embedded QuickLook preview, if it exists\n<END>",
"<BEGIN>\n## `thumbnail_preview`",
"Returns the path to small thumbnail preview.\n<END>",
"<BEGIN>\n## `export_cmd`",
"Executes a `sketchtool export` command and returns formatted output"... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the preview API.
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 preview API.
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... | Generates a preview of src_path as PNG.
:returns: A list of preview paths, one for each page. | "Generates a preview of src_path as PNG.\n :returns: A list of preview paths, one for each page." | 33 | false | Pixelapse/pyglass | preview | 142,328 | |
LDU_FT/andresriancho/w3af-api-client/from_entry_dict | LDU_FT | [
"<BEGIN>\n## `log_entry_generator`",
":yield: The next LogEntry from the REST API\n :raise: StopIteration when there are no more log entries to show, please\n note that if you call this again at a later time the REST API\n could have different results and more data could be returned\n<END... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the from_entry_dict API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The e... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the from_entry_dict API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The e... | This is a "constructor" for the LogEntry class.
:param entry_dict: A dict we get from the REST API
:return: An instance of LogEntry. | "This is a \"constructor\" for the LogEntry class.\n\n :param entry_dict: A dict we get from the REST API\n :return: An instance of LogEntry." | 15 | false | andresriancho/w3af-api-client | from_entry_dict | 142,329 | |
LDU_FT/marrow/util/flatten | LDU_FT | [
"<BEGIN>\n## `pcwd`",
"A decorator to provide the functionality of the\n PreserveWorkingDirectory context manager for functions and methods.\n<END>",
"<BEGIN>\n## `cd`",
"Change the current working directory within this context.",
" Preserves the previous working directory and can be applied to remote... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the flatten API.
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 flatten API.
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... | flatten(sequence) -> list
Returns a single, flat list which contains all elements retrieved
from the sequence and all recursively contained sub-sequences
(iterables).
Examples:
>>> [1, 2, [3,4], (5,6)]
[1, 2, [3, 4], (5, 6)]
>>> flatten([[[1,2,3], (42,None)], [4,5], [6], 7, MyVector(8,9,10... | "flatten(sequence) -> list\n\n Returns a single, flat list which contains all elements retrieved\n from the sequence and all recursively contained sub-sequences\n (iterables).\n\n Examples:\n >>> [1, 2, [3,4], (5,6)]\n [1, 2, [3, 4], (5, 6)]\n >>> flatten([[[1,2,3], (42,None)], [4,5], [6], 7, MyVec... | 73 | false | marrow/util | flatten | 142,330 | |
LDU_FT/exhuma/python-cluster/median | LDU_FT | [
"<BEGIN>\n## `getclusters`",
"Generates *count* clusters.",
" :param count: The amount of clusters that should be generated. count\n must be greater than ``1``.\n :raises ClusteringError: if *count* is out of bounds.\n<END>",
"<BEGIN>\n## `assign_item`",
"Assigns an item from a giv... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the median API.
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 median API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted ... | Return the median of the list of numbers.
see: http://mail.python.org/pipermail/python-list/2004-December/294990.html | "Return the median of the list of numbers.\n see: http://mail.python.org/pipermail/python-list/2004-December/294990.html" | 76 | false | exhuma/python-cluster | median | 142,331 | |
LDU_FT/bblfsh/client-python/properties | LDU_FT | [
"<BEGIN>\n## `parse`",
"Queries the Babelfish server and receives the UAST response for the specified\n file.",
" :param filename: The path to the file. Can be arbitrary if contents \\\n is not None.\n :param language: The programming language of the file. Refer to \... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the 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 extrac... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the 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 extrac... | Returns the properties of the current node in the iteration. | "Returns the properties of the current node in the iteration." | 25 | false | bblfsh/client-python | properties | 142,332 | |
LDU_FT/kwikteam/phy/select | LDU_FT | [
"<BEGIN>\n## `set_state`",
"Set the view state.",
" The passed object is the persisted `self.state` bunch.",
" May be overriden.\n<END>",
"<BEGIN>\n## `_fullname`",
"Return the fully-qualified name of a function.\n<END>",
"<BEGIN>\n## `_get_default_grid`",
"In the grid specification, 0 c... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the select API.
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 select API.
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 ... | Select some rows in the table.
By default, the `select` event is raised, unless `do_emit=False`. | "Select some rows in the table.\n\n By default, the `select` event is raised, unless `do_emit=False`." | 346 | false | kwikteam/phy | select | 142,333 | |
LDU_FT/vatlab/SoS/as_fstring | LDU_FT | [
"<BEGIN>\n## `process_request`",
"port is the open port at the worker, num_pending is the num_pending of stack.\n A non-zero num_pending means that the worker is pending on something while\n looking for new job, so the worker should not be killed.\n<END>",
"<BEGIN>\n## `check_workers`",
"Kill wo... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the as_fstring API.
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 as_fstring API.
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... | expansion with python f-string, usually ok, but with the case
of ' inside expressions, adding repr will add backslash to it
and cause trouble. | "expansion with python f-string, usually ok, but with the case\n of ' inside expressions, adding repr will add backslash to it\n and cause trouble." | 193 | false | vatlab/SoS | as_fstring | 142,334 | |
LDU_FT/Nachtfeuer/pipeline/process_shells_ordered | LDU_FT | [
"<BEGIN>\n## `calculate_columns`",
"Find all row names and the maximum column widths.",
" Args:\n columns (dict): the keys are the column name and the value the max length.",
" Returns:\n dict: column names (key) and widths (value).\n<END>",
"<BEGIN>\n## `calculate_row_format`",
"Calcu... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the process_shells_ordered API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the process_shells_ordered API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.... | Processing a list of shells one after the other. | "Processing a list of shells one after the other." | 196 | false | Nachtfeuer/pipeline | process_shells_ordered | 142,335 | |
LDU_FT/TkTech/Jawa/create_float | LDU_FT | [
"<BEGIN>\n## `_walk`",
"A modified os.walk with support for maximum traversal depth.\n<END>",
"<BEGIN>\n## `update`",
"Add one or more ClassFile sources to the class loader.",
" If a given source is a directory path, it is traversed up to the\n maximum set depth and all files under it are adde... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_float API.
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 create_float API.
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... | Creates a new :class:`ConstantFloat`, adding it to the pool and
returning it.
:param value: The value of the new float. | "Creates a new :class:`ConstantFloat`, adding it to the pool and\n returning it.\n\n :param value: The value of the new float." | 226 | false | TkTech/Jawa | create_float | 142,336 | |
LDU_FT/zhexiao/ezhost/reset_server_env | LDU_FT | [
"<BEGIN>\n## `install_config_kafka`",
"install and config kafka\n :return:\n<END>",
"<BEGIN>\n## `install_config_elastic`",
"install and config elasticsearch\n :return:\n<END>",
"<BEGIN>\n## `install_config_logstash`",
"install and config logstash\n :return:\n<END>",
"<BEGIN>\n## `i... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the reset_server_env API.
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 reset_server_env API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | reset server env to server-name
:param server_name:
:param configure:
:return: | "reset server env to server-name\n :param server_name:\n :param configure:\n :return:" | 22 | false | zhexiao/ezhost | reset_server_env | 142,337 | |
LDU_FT/openstack/swauth/handle_delete_user | LDU_FT | [
"<BEGIN>\n## `filter_factory`",
"Returns a WSGI filter app for use with paste.deploy.\n<END>",
"<BEGIN>\n## `make_pre_authed_request`",
"Nearly the same as swift.common.wsgi.make_pre_authed_request\n except that this also always sets the 'swift.source' and user\n agent.",
" Newer Swift ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the handle_delete_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.
Th... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the handle_delete_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.
Th... | Handles the DELETE v2/<account>/<user> call for deleting a user from an
account.
Can only be called by an account .admin.
:param req: The swob.Request to process.
:returns: swob.Response, 2xx on success. | "Handles the DELETE v2/<account>/<user> call for deleting a user from an\n account.\n\n Can only be called by an account .admin.\n\n :param req: The swob.Request to process.\n :returns: swob.Response, 2xx on success." | 133 | false | openstack/swauth | handle_delete_user | 142,338 | |
LDU_FT/seomoz/qless-py/divide | 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 divide API.
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 divide API.
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 ... | Divide up the provided jobs into count evenly-sized groups | "Divide up the provided jobs into count evenly-sized groups" | 66 | false | seomoz/qless-py | divide | 142,339 | |
LDU_FT/bastibe/PySoundCard/start | LDU_FT | [
"<BEGIN>\n## `hostapi_info`",
"Return a generator with information about each host API.",
" If index is given, only one dictionary for the given host API is\n returned.\n<END>",
"<BEGIN>\n## `device_info`",
"Return a generator with information about each device.",
" If index is given, only one di... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the start API.
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 start API.
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... | Commence audio processing.
If successful, the stream is considered active. | "Commence audio processing.\n\n If successful, the stream is considered active." | 27 | false | bastibe/PySoundCard | start | 142,340 | |
LDU_FT/turicas/rows/open_compressed | LDU_FT | [
"<BEGIN>\n## `import_from_json`",
"Import a JSON file or file-like object into a `rows.Table`.",
" If a file-like object is provided it MUST be open in text (non-binary) mode\n on Python 3 and could be open in both binary or text mode on Python 2.\n<END>",
"<BEGIN>\n## `export_to_json`",
"Export a `ro... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the open_compressed API.
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 open_compressed API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The e... | Return a text-based file object from a filename, even if compressed | "Return a text-based file object from a filename, even if compressed" | 123 | false | turicas/rows | open_compressed | 142,341 | |
LDU_FT/smarie/python-autoclass/validate_include_exclude | LDU_FT | [
"<BEGIN>\n## `autohash`",
"A decorator to makes objects of the class implement __hash__, so that they can be used correctly for example in\n sets.",
" Parameters allow to customize the list of attributes that are taken into account in the hash.",
" :param include: a tuple of explicit attribute names ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the validate_include_exclude 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 validate_include_exclude API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio... | Common validator for include and exclude arguments
:param include:
:param exclude:
:return: | "Common validator for include and exclude arguments\n :param include:\n :param exclude:\n :return:" | 94 | false | smarie/python-autoclass | validate_include_exclude | 142,342 | |
LDU_FT/hwmrocker/smtplibaio/reset_state | LDU_FT | [
"<BEGIN>\n## `read_reply`",
"Reads a reply from the server.",
" Raises:\n ConnectionResetError: If the connection with the server is lost\n (we can't read any response anymore). Or if the server\n replies without a proper return code.",
" Returns:\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the reset_state API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the reset_state API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | Resets some attributes to their default values.
This is especially useful when initializing a newly created
:class:`SMTP` instance and when closing an existing SMTP session.
It allows us to use the same SMTP instance and connect several times. | "Resets some attributes to their default values.\n\n This is especially useful when initializing a newly created\n :class:`SMTP` instance and when closing an existing SMTP session.\n\n It allows us to use the same SMTP instance and connect several times." | 140 | false | hwmrocker/smtplibaio | reset_state | 142,343 | |
LDU_FT/deep-compute/deeputil/_drop_oldest_chunk | LDU_FT | [
"<BEGIN>\n## `FunctionTimer`",
"To check execution time of a function\n borrowed from https://medium.com/pythonhive/python-decorator-to-measure-the-execution-time-of-methods-fa04cb6bb36d",
" >>> def logger(details, args, kwargs): #some function that uses the time output\n ... print(details)\n ..... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _drop_oldest_chunk 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 _drop_oldest_chunk 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... | To handle the case when the items comming in the chunk
is more than the maximum capacity of the chunk. Our intent
behind is to remove the oldest chunk. So that the items come
flowing in.
>>> s = StreamCounter(5,5)
>>> data_stream = ['a','b','c','d']
>>> for item in data_s... | "To handle the case when the items comming in the chunk\n is more than the maximum capacity of the chunk. Our intent\n behind is to remove the oldest chunk. So that the items come\n flowing in.\n >>> s = StreamCounter(5,5)\n >>> data_stream = ['a','b','c','d']\n >>> for item in... | 68 | false | deep-compute/deeputil | _drop_oldest_chunk | 142,344 | |
LDU_FT/bugra/angel-list/get_startup_roles | LDU_FT | [
"<BEGIN>\n## `get_comments`",
"commentable_type: 'Press', 'Review', 'Startup', 'StartupRole', 'StatusUpdate'\n<END>",
"<BEGIN>\n## `get_likes`",
"likable_type: 'Comment', 'Press', 'Review', 'StartupRole', 'StatusUpdate'\n likable_id: id of the object that the likes of it you are interested\n<END>",
"<BEG... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_startup_roles API.
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_startup_roles API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | user_id ->The user role you want to view
startup_id -> The startup whose roles you want to view
role -> The specific role, you'd like to filter ('founder', 'past investor', 'advisor')
direction ->Either incoming or outgoing | "user_id ->The user role you want to view\n startup_id -> The startup whose roles you want to view\n role -> The specific role, you'd like to filter ('founder', 'past investor', 'advisor')\n direction ->Either incoming or outgoing" | 20 | false | bugra/angel-list | get_startup_roles | 142,345 | |
LDU_FT/ReFirmLabs/binwalk/_magic_signature_files | LDU_FT | [
"<BEGIN>\n## `process_kwargs`",
"Convenience wrapper around binwalk.core.module.Modules.kwargs.",
" @obj - The class object (an instance of a sub-class of binwalk.core.module.Module).\n @kwargs - The kwargs provided to the object's __init__ method.",
" Returns None.\n<END>",
"<BEGIN>\n## `show_h... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _magic_signature_files API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _magic_signature_files API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.... | Find all user/system magic signature files.
@system_only - If True, only the system magic file directory will be searched.
@user_only - If True, only the user magic file directory will be searched.
Returns a list of user/system magic signature files. | "Find all user/system magic signature files.\n\n @system_only - If True, only the system magic file directory will be searched.\n @user_only - If True, only the user magic file directory will be searched.\n\n Returns a list of user/system magic signature files." | 211 | false | ReFirmLabs/binwalk | _magic_signature_files | 142,346 | |
LDU_FT/inveniosoftware/invenio-pidrelations/remove_child | LDU_FT | [
"<BEGIN>\n## `resolve_pid`",
"Retrieve the real PID given a fetched PID.",
" :param pid: fetched PID to resolve.\n<END>",
"<BEGIN>\n## `ordered`",
"Order the query result on the relations' indexes.\n<END>",
"<BEGIN>\n## `_resolved_pid`",
"Resolve self.pid if it is a fetched pid.\n<END>",
"<BEGIN>\n... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the remove_child API.
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 remove_child API.
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... | Remove a Version child PID.
Extends the base method call by redirecting from the parent to the
last child. | "Remove a Version child PID.\n\n Extends the base method call by redirecting from the parent to the\n last child." | 53 | false | inveniosoftware/invenio-pidrelations | remove_child | 142,347 | |
LDU_FT/chrisjsewell/jsonextended/_memory_usage_ps | LDU_FT | [
"<BEGIN>\n## `apply_unitschema`",
"apply the unit schema to the data",
" Parameters\n ----------\n data : dict\n uschema : dict\n units schema to apply\n as_quantity : bool\n if true, return values as pint.Quantity objects\n raise_outerr : bool\n raise error if a unit cann... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _memory_usage_ps API.
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 _memory_usage_ps API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | return memory usage of python process in MB
>>> isinstance(_memory_usage_ps(),float)
True | "return memory usage of python process in MB\n\n >>> isinstance(_memory_usage_ps(),float)\n True" | 347 | false | chrisjsewell/jsonextended | _memory_usage_ps | 142,348 | |
LDU_FT/jaseg/python-mpv/unobserve_all_properties | LDU_FT | [
"<BEGIN>\n## `_mpv_coax_proptype`",
"Intelligently coax the given python value into something that can be understood as a proptype property.\n<END>",
"<BEGIN>\n## `_make_node_str_list`",
"Take a list of python objects and make a MPV string node array from it.",
" As an example, the python list ``l = [ \"... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the unobserve_all_properties 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 unobserve_all_properties API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio... | Unregister a property observer from *all* observed properties. | "Unregister a property observer from *all* observed properties." | 66 | false | jaseg/python-mpv | unobserve_all_properties | 142,349 | |
LDU_FT/avalente/appmetrics/_put | LDU_FT | [
"<BEGIN>\n## `notify`",
"Increment or decrement the value, according to the given value's sign",
" The value should be an integer, an attempt to cast it to integer will be made\n<END>",
"<BEGIN>\n## `new_metric`",
"Create a new metric of the given class.",
" Raise DuplicateMetricError if the giv... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _put API.
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 _put API.
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... | Replace the value associated with "timestamp" or add the new value | "Replace the value associated with \"timestamp\" or add the new value" | 120 | false | avalente/appmetrics | _put | 142,350 | |
LDU_FT/christophertbrown/bioscripts/make_mashes | LDU_FT | [
"<BEGIN>\n## `six_frame`",
"translate each sequence into six reading frames\n<END>",
"<BEGIN>\n## `best_model`",
"determine the best model: archaea, bacteria, eukarya (best score)\n<END>",
"<BEGIN>\n## `check_gaps`",
"check for large gaps between alignment windows\n<END>",
"<BEGIN>\n## `check_overlap`",... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the make_mashes API.
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 make_mashes API.
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... | Create mash files for multiple fasta files
Input:
fastas <list[str]> -- paths to fasta files
mash_file <str> -- path to output mash file
threads <int> -- # threads for parallelization
kmer <int> -- kmer size for mash sketching
force <boolean> -- force ... | "Create mash files for multiple fasta files\n Input:\n fastas <list[str]> -- paths to fasta files\n mash_file <str> -- path to output mash file\n threads <int> -- # threads for parallelization\n kmer <int> -- kmer size for mash sketching\n force <boolean> --... | 219 | false | christophertbrown/bioscripts | make_mashes | 142,351 | |
LDU_FT/fridiculous/django-estimators/_extract_model_params | LDU_FT | [
"<BEGIN>\n## `filter`",
"filter lets django managers use `objects.filter` on a hashable object.\n<END>",
"<BEGIN>\n## `_extract_model_params`",
"this method allows django managers use `objects.get_or_create` and\n `objects.update_or_create` on a hashable object.\n<END>",
"<BEGIN>\n## `persist`",
"a... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _extract_model_params API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _extract_model_params API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | this method allows django managers use `objects.get_or_create` and
`objects.update_or_create` on a hashable object. | "this method allows django managers use `objects.get_or_create` and\n `objects.update_or_create` on a hashable object." | 10 | false | fridiculous/django-estimators | _extract_model_params | 142,352 | |
LDU_FT/c0ntrol-x/p4rr0t007/handle_exception | LDU_FT | [
"<BEGIN>\n## `json_response`",
"Useful for restful APIs\n :param data: a native python object, must be json serialiable, otherwise will be handled by :py:meth:`Application.json_handle_weird`\n :param code: the http status code\n :param indent: how many characters to indent when generating the... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the handle_exception API.
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 handle_exception API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | called by flask when an exception happens. p4rr0t007 always returns
a 500.html response that must exist under the given
``template_folder`` constructor param. | "called by flask when an exception happens. p4rr0t007 always returns\n a 500.html response that must exist under the given\n ``template_folder`` constructor param." | 31 | false | c0ntrol-x/p4rr0t007 | handle_exception | 142,353 | |
LDU_FT/UDST/urbansim/apply_fit_filters | LDU_FT | [
"<BEGIN>\n## `log_start_finish`",
"A context manager to log messages with \"start: \" and \"finish: \"\n prefixes before and after a block.",
" Parameters\n ----------\n msg : str\n Will be prefixed with \"start: \" and \"finish: \".\n logger : logging.Logger\n level : int, optional\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the apply_fit_filters API.
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 apply_fit_filters API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | Filter `choosers` and `alternatives` for fitting.
This is done by filtering each submodel and concatenating
the results.
Parameters
----------
choosers : pandas.DataFrame
Table describing the agents making choices, e.g. households.
alternatives : pandas.DataF... | "Filter `choosers` and `alternatives` for fitting.\n This is done by filtering each submodel and concatenating\n the results.\n\n Parameters\n ----------\n choosers : pandas.DataFrame\n Table describing the agents making choices, e.g. households.\n alternatives : pan... | 461 | false | UDST/urbansim | apply_fit_filters | 142,354 | |
LDU_FT/facelessuser/wcmatch/_match_excluded | LDU_FT | [
"<BEGIN>\n## `_compile_wildcard`",
"Compile or format the wildcard inclusion/exclusion pattern.\n<END>",
"<BEGIN>\n## `_valid_folder`",
"Return whether a folder can be searched.\n<END>",
"<BEGIN>\n## `get_case`",
"Parse flags for case sensitivity settings.\n<END>",
"<BEGIN>\n## `_fs_match`",
"Match pa... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _match_excluded API.
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 _match_excluded API.
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... | Call match real directly to skip unnecessary `exists` check. | "Call match real directly to skip unnecessary `exists` check." | 44 | false | facelessuser/wcmatch | _match_excluded | 142,355 | |
LDU_FT/SCIP-Interfaces/PySCIPOpt/scheduling_cutting_plane | LDU_FT | [
"<BEGIN>\n## `gpp`",
"gpp -- model for the graph partitioning problem\n Parameters:\n - V: set/list of nodes in the graph\n - E: set/list of edges in the graph\n Returns a model, ready to be solved.\n<END>",
"<BEGIN>\n## `gpp_soco`",
"gpp -- model for the graph partitioning problem in soco... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the scheduling_cutting_plane 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 scheduling_cutting_plane API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio... | scheduling_cutting_plane: heuristic to one machine weighted completion time based on cutting planes
Use a cutting-plane method as a heuristics for solving the
one-machine total weighted completion time problem with release
times.
Parameters:
- J: set of jobs
- p[j]: processing time of ... | "scheduling_cutting_plane: heuristic to one machine weighted completion time based on cutting planes\n\n Use a cutting-plane method as a heuristics for solving the\n one-machine total weighted completion time problem with release\n times.\n\n Parameters:\n - J: set of jobs\n - p[j]: processing... | 220 | false | SCIP-Interfaces/PySCIPOpt | scheduling_cutting_plane | 142,356 | |
LDU_FT/insanum/gcalcli/_cal_monday | LDU_FT | [
"<BEGIN>\n## `art_msg`",
"Wrapper for easy emission of the calendar borders\n<END>",
"<BEGIN>\n## `_cal_monday`",
"Shift the day number if we're doing cal monday, or cal_weekend is\n false, since that also means we're starting on day 1\n<END>",
"<BEGIN>\n## `QuickAddEvent`",
"Wrapper around Google ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _cal_monday API.
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 _cal_monday API.
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... | Shift the day number if we're doing cal monday, or cal_weekend is
false, since that also means we're starting on day 1 | "Shift the day number if we're doing cal monday, or cal_weekend is\n false, since that also means we're starting on day 1" | 16 | false | insanum/gcalcli | _cal_monday | 142,357 | |
LDU_FT/jeffknupp/sandman/from_dict | LDU_FT | [
"<BEGIN>\n## `endpoint`",
"Return the :class:`sandman.model.Model`'s endpoint.",
" :rtype: string\n<END>",
"<BEGIN>\n## `resource_uri`",
"Return the URI at which the resource can be found.",
" :rtype: string\n<END>",
"<BEGIN>\n## `primary_key`",
"Return the name of the table's primary ke... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the from_dict API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extract... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the from_dict API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extract... | Set a set of attributes which correspond to the
:class:`sandman.model.Model`'s columns.
:param dict dictionary: A dictionary of attributes to set on the
instance whose keys are the column names of
the :class:`sandman.model.Model`'s underlying database table. | "Set a set of attributes which correspond to the\n :class:`sandman.model.Model`'s columns.\n\n :param dict dictionary: A dictionary of attributes to set on the\n instance whose keys are the column names of\n the :class:`sandman.model.Model`'s underlying database table." | 126 | false | jeffknupp/sandman | from_dict | 142,358 | |
LDU_FT/openego/eDisGo/curtailment | LDU_FT | [
"<BEGIN>\n## `one_storage_per_feeder`",
"Allocates the given storage capacity to multiple smaller storages.",
" For each feeder with load or voltage issues it is checked if integrating a\n storage will reduce peaks in the feeder, starting with the feeder with\n the highest theoretical grid expansion co... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the curtailment API.
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 curtailment API.
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... | Parameters
----------
curtailment_ts : :pandas:`pandas.Series<series>`
See class definition for details.
Returns
-------
:pandas:`pandas.Series<series>`
If self._curtailment is set it returns that. Otherwise, if
curtailment in :class:`~.grid.n... | "Parameters\n ----------\n curtailment_ts : :pandas:`pandas.Series<series>`\n See class definition for details.\n\n Returns\n -------\n :pandas:`pandas.Series<series>`\n If self._curtailment is set it returns that. Otherwise, if\n curtailment in :class... | 764 | false | openego/eDisGo | curtailment | 142,359 | |
LDU_FT/AtsushiSakai/SimpleTkGUIKit/GetEntries | LDU_FT | [
"<BEGIN>\n## `GetFilePathsWithDialog`",
"Multipul File Select with dialog",
" fileTypes: you can choise file extension\n ex) fileTypes=[('Excel Files', '.xlsx')]\n<END>",
"<BEGIN>\n## `GetRadioButtonSelect`",
"Create radio button window for option selection",
" title: Window name\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the GetEntries API.
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 GetEntries API.
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... | Get entries of the list
title: Window name
mag: Label of the check button
return data dictionary like:
{'y': '5.0', 'x': '100', 'z': 'save'} | "Get entries of the list\n\n title: Window name\n mag: Label of the check button\n\n return data dictionary like:\n {'y': '5.0', 'x': '100', 'z': 'save'}" | 19 | false | AtsushiSakai/SimpleTkGUIKit | GetEntries | 142,360 | |
LDU_FT/TrafficSenseMSD/SumoTools/setShapeClass | LDU_FT | [
"<BEGIN>\n## `getDistance2D`",
"getDistance2D(double, double, double, double, boolean, boolean) -> double",
" Returns the distance between the two coordinate pairs (x1,y1) and (x2,y2)",
" If isGeo=True, coordinates are interpreted as longitude and latitude rather\n than cartesian coordina... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the setShapeClass API.
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 setShapeClass API.
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... | setShapeClass(string, string) -> None
Sets the shape class of vehicles of this type. | "setShapeClass(string, string) -> None\n\n Sets the shape class of vehicles of this type." | 475 | false | TrafficSenseMSD/SumoTools | setShapeClass | 142,361 | |
LDU_FT/mosesschwartz/scrypture/post | LDU_FT | [
"<BEGIN>\n## `hash`",
"Hash input_text with the algorithm choice\n<END>",
"<BEGIN>\n## `text_input`",
"Get multi-line text input as a strong from a textarea form element.\n<END>",
"<BEGIN>\n## `list_input`",
"Get a list parsed from newline-delimited entries from a textarea\n<END>",
"<BEGIN>\n## `line_in... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the post API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted do... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the post API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted do... | A generic method to make POST requests on the given URI. | "A generic method to make POST requests on the given URI." | 30 | false | mosesschwartz/scrypture | post | 142,362 | |
LDU_FT/stanfordnlp/stanza/log | LDU_FT | [
"<BEGIN>\n## `validate`",
"Evaluate this model on `validation_instances` during training and\n output a report.",
" :param validation_instances: The data to use to validate the model.\n :type validation_instances: list(instance.Instance)",
" :param metrics: Functions like those fou... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the log API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted doc... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the log API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted doc... | Directly log a scalar value to the event file.
:param string key: a name for the value
:param val: a float
:param step_num: the iteration number at which this value was logged | "Directly log a scalar value to the event file.\n\n :param string key: a name for the value\n :param val: a float\n :param step_num: the iteration number at which this value was logged" | 309 | false | stanfordnlp/stanza | log | 142,363 | |
LDU_FT/campbellr/smashrun-client/refresh_token | LDU_FT | [
"<BEGIN>\n## `to_timestamp`",
"Convert a datetime object to a unix timestamp.",
" Note that unlike a typical unix timestamp, this is seconds since 1970\n *local time*, not UTC.",
" If the passed in object is already a timestamp, then that value is\n simply returned unmodified.\n<END>",
"<BEGIN>\... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the refresh_token API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the refresh_token API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | Refresh the authentication token.
:param str refresh_token: The refresh token to use. May be empty if
retrieved with ``fetch_token``. | "Refresh the authentication token.\n\n :param str refresh_token: The refresh token to use. May be empty if\n retrieved with ``fetch_token``." | 41 | false | campbellr/smashrun-client | refresh_token | 142,364 | |
LDU_FT/pixelogik/NearPy/hash_vector | LDU_FT | [
"<BEGIN>\n## `store_vector`",
"Stores vector and JSON-serializable data in bucket with specified key.\n<END>",
"<BEGIN>\n## `store_many_vectors`",
"Store a batch of vectors.\n Stores vector and JSON-serializable data in bucket with specified key.\n<END>",
"<BEGIN>\n## `delete_vector`",
"Deletes vec... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the hash_vector API.
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 hash_vector API.
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... | Hashes the vector and returns the bucket key as string. | "Hashes the vector and returns the bucket key as string." | 103 | false | pixelogik/NearPy | hash_vector | 142,365 | |
LDU_FT/ayoungprogrammer/Lango/cross_context | LDU_FT | [
"<BEGIN>\n## `parse`",
"Returns tree objects from a sentence",
" Args:\n line: Sentence to be parsed into a tree",
" Returns:\n Tree object representing parsed sentence\n None if parse fails\n<END>",
"<BEGIN>\n## `match_rules`",
"Matches a Tree structure with... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the cross_context API.
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 cross_context API.
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... | Cross product of all contexts
[[a], [b], [c]] -> [[a] x [b] x [c]] | "Cross product of all contexts\n [[a], [b], [c]] -> [[a] x [b] x [c]]" | 36 | false | ayoungprogrammer/Lango | cross_context | 142,366 | |
LDU_FT/enricobacis/wos/citingArticles | LDU_FT | [
"<BEGIN>\n## `_api`",
"API decorator for common tests (sessions open, etc.) and throttle\n limitation (calls per second).\n<END>",
"<BEGIN>\n## `_premium`",
"Premium decorator for APIs that require premium access level.\n<END>",
"<BEGIN>\n## `make_retrieveParameters`",
"Create retrieve parameters d... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the citingArticles API.
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 citingArticles API.
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 citingArticles operation finds citing articles for the article
specified by unique identifier. You may specify only one identifier per
request. Web of Science Core Collection (WOS) is the only valid
database for this operation.
:uid: A unique item identifier. It cannot be None or em... | "The citingArticles operation finds citing articles for the article\n specified by unique identifier. You may specify only one identifier per\n request. Web of Science Core Collection (WOS) is the only valid\n database for this operation.\n\n :uid: A unique item identifier. It cannot be None... | 53 | false | enricobacis/wos | citingArticles | 142,367 | |
LDU_FT/ASMfreaK/habitipy/get_additional_rewards | LDU_FT | [
"<BEGIN>\n## `progressed_bar`",
"render a progressed.io like progress bar\n<END>",
"<BEGIN>\n## `prettify`",
"replace markup emoji and progressbars with actual things",
" # Example\n ```python\n from habitipy.util import prettify\n print(prettify('Write thesis :book:  | "returns list of non-user rewards (potion, armoire, gear)" | 21 | false | ASMfreaK/habitipy | get_additional_rewards | 142,368 | |
LDU_FT/paramono/duration/to_timedelta | LDU_FT | [
"<BEGIN>\n## `safe_int`",
"Tries to convert a value to int; returns 0 if conversion failed\n<END>",
"<BEGIN>\n## `_parse`",
"Preliminary duration value parser",
" strict=True (by default) raises StrictnessError if either hours,\n minutes or seconds in duration value exceed allowed values\n<END>",
"<... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the to_timedelta API.
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 to_timedelta API.
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... | converts duration string to timedelta
strict=True (by default) raises StrictnessError if either hours,
minutes or seconds in duration string exceed allowed values | "converts duration string to timedelta\n\n strict=True (by default) raises StrictnessError if either hours,\n minutes or seconds in duration string exceed allowed values" | 17 | false | paramono/duration | to_timedelta | 142,369 | |
LDU_FT/mrcagney/gtfstk/get_stops | LDU_FT | [
"<BEGIN>\n## `get_stop_times`",
"Return a subset of ``feed.stop_times``.",
" Parameters\n ----------\n feed : Feed\n date : string\n YYYYMMDD date string restricting the output to trips active\n on the date",
" Returns\n -------\n DataFrame\n Subset of ``feed.stop_tim... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_stops API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extract... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_stops API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extract... | Return a section of ``feed.stops``.
Parameters
-----------
feed : Feed
date : string
YYYYMMDD string; restricts the output to stops active
(visited by trips) on the date
trip_id : string
ID of a trip in ``feed.trips``; restricts output to stops
visited by the trip
... | "Return a section of ``feed.stops``.\n\n Parameters\n -----------\n feed : Feed\n date : string\n YYYYMMDD string; restricts the output to stops active\n (visited by trips) on the date\n trip_id : string\n ID of a trip in ``feed.trips``; restricts output to stops\n visited by ... | 474 | false | mrcagney/gtfstk | get_stops | 142,370 | |
LDU_FT/litters/shrew/__process_username_password | LDU_FT | [
"<BEGIN>\n## `unlock_keychain`",
"If the user is running via SSH, their Keychain must be unlocked first.\n<END>",
"<BEGIN>\n## `save_password`",
"Saves the given password in the user's keychain.",
" :param entry: The entry in the keychain. This is a caller specific key.\n :param password: The pass... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the __process_username_password 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 __process_username_password API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclu... | If indicated, process the username and password | "If indicated, process the username and password" | 46 | false | litters/shrew | __process_username_password | 142,371 | |
LDU_FT/odlgroup/odl/parker_weighting | LDU_FT | [
"<BEGIN>\n## `is_valid_input_array`",
"Test if ``x`` is a correctly shaped point array in R^d.\n<END>",
"<BEGIN>\n## `is_valid_input_meshgrid`",
"Test if ``x`` is a `meshgrid` sequence for points in R^d.\n<END>",
"<BEGIN>\n## `out_shape_from_meshgrid`",
"Get the broadcast output shape from a `meshgrid`.\n... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parker_weighting API.
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 parker_weighting API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | Create parker weighting for a `RayTransform`.
Parker weighting is a weighting function that ensures that oversampled
fan/cone beam data are weighted such that each line has unit weight. It is
useful in analytic reconstruction methods such as FBP to give a more
accurate result and can improve convergenc... | "Create parker weighting for a `RayTransform`.\n\n Parker weighting is a weighting function that ensures that oversampled\n fan/cone beam data are weighted such that each line has unit weight. It is\n useful in analytic reconstruction methods such as FBP to give a more\n accurate result and can improve conv... | 4,047 | true | odlgroup/odl | parker_weighting | 142,372 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.