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/ambitioninc/django-entity/remove_entity
LDU_FT
[ "<BEGIN>\n## `remove_duplicates`", "Remove any duplicates from the entity relationship table\n :param apps:\n :param schema_editor:\n :return:\n<END>", "<BEGIN>\n## `transaction_atomic_with_retry`", "This is a decorator that will wrap the decorated method in an atomic transaction and\n retry the t...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the remove_entity API. 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 remove_entity API. 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...
Remove an entity, or sub-entity group to this EntityGroup. :type entity: Entity :param entity: The entity to remove. :type sub_entity_kind: Optional EntityKind :param sub_entity_kind: If a sub_entity_kind is given, all sub_entities of the entity will be removed from this ...
"Remove an entity, or sub-entity group to this EntityGroup.\n\n :type entity: Entity\n :param entity: The entity to remove.\n\n :type sub_entity_kind: Optional EntityKind\n :param sub_entity_kind: If a sub_entity_kind is given, all\n sub_entities of the entity will be removed from...
83
false
ambitioninc/django-entity
remove_entity
18,173
LDU_FT/angvp/django-klingon/translations
LDU_FT
[ "<BEGIN>\n## `clean_translation`", "Do not allow translations longer than the max_lenght of the field to\n be translated.\n<END>", "<BEGIN>\n## `translate`", "Create all translations objects for this Translatable instance.", " @rtype: list of Translation objects\n @return: Returns a lis...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the translations API. 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 translations API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
Return the list of translation strings of a Translatable instance in a dictionary form @type lang: string @param lang: a string with the name of the language @rtype: python Dictionary @return: Returns a all fieldname / translations (key / value)
"Return the list of translation strings of a Translatable\n instance in a dictionary form\n\n @type lang: string\n @param lang: a string with the name of the language\n\n @rtype: python Dictionary\n @return: Returns a all fieldname / translations (key / value)"
31
false
angvp/django-klingon
translations
18,174
LDU_FT/wtolson/gnsq/pause_topic
LDU_FT
[ "<BEGIN>\n## `read_response`", "Read an individual response from nsqd.", " :returns: tuple of the frame type and the processed data.\n<END>", "<BEGIN>\n## `identify`", "Update client metadata on the server and negotiate features.", " :returns: nsqd response data if there was feature negotiat...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the pause_topic API. 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 pause_topic API. 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...
Pause message flow to all channels on an existing topic. Messages will queue at topic.
"Pause message flow to all channels on an existing topic.\n\n Messages will queue at topic."
96
false
wtolson/gnsq
pause_topic
18,175
LDU_FT/zlobspb/txtarantool/pack_tuple
LDU_FT
[ "<BEGIN>\n## `pack_int_base128`", "Pack integer value using LEB128 encoding\n :param value: integer value to encode\n :type value: int", " :return: encoded value\n :rtype: bytes\n<END>", "<BEGIN>\n## `pack_str`", "Pack string field\n <field> ::= <int32_varint><data>", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the pack_tuple API. 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 pack_tuple API. 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...
Pack tuple of values <tuple> ::= <cardinality><field>+ :param value: tuple to be packed :type value: tuple of scalar values (bytes, str or int) :return: packed tuple :rtype: bytes
"Pack tuple of values\n <tuple> ::= <cardinality><field>+\n\n :param value: tuple to be packed\n :type value: tuple of scalar values (bytes, str or int)\n\n :return: packed tuple\n :rtype: bytes"
43
false
zlobspb/txtarantool
pack_tuple
18,176
LDU_FT/petebachant/Nortek-Python/power_level
LDU_FT
[ "<BEGIN>\n## `sound_speed_mode`", "Sets sound speed mode; 0 or \"measured\" for measured; 1 or \"fixed\"\n for fixed.\n<END>", "<BEGIN>\n## `sound_speed`", "Sets the sound speed in m/s. Default is 1525.0. If this function is\n called, `sound_speed_mode` will be set to fixed.\n<END>", "<BEGIN>\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the power_level API. 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 power_level API. 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...
Sets the power level according to the index or string. 0 = High 1 = HighLow 2 = LowHigh 3 = Low
"Sets the power level according to the index or string.\n 0 = High\n 1 = HighLow\n 2 = LowHigh\n 3 = Low"
14
false
petebachant/Nortek-Python
power_level
18,177
LDU_FT/F5Networks/f5-common-python/_local_update
LDU_FT
[ "<BEGIN>\n## `update`", "Update the object, removing device group if inherited", " If inheritedDevicegroup is the string \"true\" we need to remove\n deviceGroup from the args before we update or we get the\n following error:", " The floating traffic-group: /Common/traffic-group-1 ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _local_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 ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _local_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 ext...
Call this with a response dictionary to update instance attrs. If the response has only valid keys, stash meta_data, replace __dict__, and reassign meta_data. :param rdict: response attributes derived from server JSON
"Call this with a response dictionary to update instance attrs.\n\n If the response has only valid keys, stash meta_data, replace __dict__,\n and reassign meta_data.\n\n :param rdict: response attributes derived from server JSON"
559
false
F5Networks/f5-common-python
_local_update
18,178
LDU_FT/wrboyce/telegrambot/from_api
LDU_FT
[ "<BEGIN>\n## `from_api`", "Parses a payload from the API, guided by `_api_attrs`\n<END>", "<BEGIN>\n## `api_method`", "Returns the api method to `send` the current API Object type\n<END>", "<BEGIN>\n## `api_payload`", "Generates a payload ready for submission to the API, guided by `_api_payload`\n<END>", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the from_api API. 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 from_api API. 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...
Parses a payload from the API, guided by `_api_attrs`
"Parses a payload from the API, guided by `_api_attrs`"
34
false
wrboyce/telegrambot
from_api
18,179
LDU_FT/gbiggs/rtsprofile/to_dict
LDU_FT
[ "<BEGIN>\n## `parse_xml_node`", "Parse an xml.dom Node object representing a message sending object\n into this object.\n<END>", "<BEGIN>\n## `parse_yaml`", "Parse a YAML speficication of a message sending object into this\n object.\n<END>", "<BEGIN>\n## `save_xml`", "Save this message_sendi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the to_dict API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the to_dict API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
Save this message sending object into a dictionary.
"Save this message sending object into a dictionary."
166
false
gbiggs/rtsprofile
to_dict
18,180
LDU_FT/myaooo/pysbrl/rule_str2rule
LDU_FT
[ "<BEGIN>\n## `print_rule`", "print the rule in a nice way\n :param rule: An instance of Rule\n :param feature_names: a list of n_features feature names,\n :param category_names: the names of the categories of each feature.\n :param label: Can take two values, 'label': just print the label as output, o...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the rule_str2rule API. 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 rule_str2rule API. 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...
A helper function that converts the resulting string returned from C function to the Rule object :param rule_str: a string representing the rule :param prob: the output probability :return: a Rule object
"A helper function that converts the resulting string returned from C function to the Rule object\n\n :param rule_str: a string representing the rule\n :param prob: the output probability\n :return: a Rule object"
29
false
myaooo/pysbrl
rule_str2rule
18,181
LDU_FT/scikit-umfpack/scikit-umfpack/lu
LDU_FT
[ "<BEGIN>\n## `symbolic`", "Perform symbolic object (symbolic LU decomposition) computation for a given\n sparsity pattern.\n<END>", "<BEGIN>\n## `numeric`", "Perform numeric object (LU decomposition) computation using the\n symbolic decomposition. The symbolic decomposition is (re)computed\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the lu API. 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 docu...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the lu API. 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 docu...
Perform LU decomposition. For a given matrix A, the decomposition satisfies:: LU = PRAQ when do_recip is true LU = P(R^-1)AQ when do_recip is false Parameters ---------- mtx : scipy.sparse.csc_matrix or scipy.sparse.csr_matrix Input...
"Perform LU decomposition.\n\n For a given matrix A, the decomposition satisfies::\n\n LU = PRAQ when do_recip is true\n LU = P(R^-1)AQ when do_recip is false\n\n Parameters\n ----------\n mtx : scipy.sparse.csc_matrix or scipy.sparse.csr_matrix\n ...
30
false
scikit-umfpack/scikit-umfpack
lu
18,182
LDU_FT/pyroscope/pyrocore/parse_route
LDU_FT
[ "<BEGIN>\n## `resolve_slashed`", "Resolve symlinked directories if they end in a '/',\n remove trailing '/' otherwise.\n<END>", "<BEGIN>\n## `guarded`", "Catch exceptions thrown by filesystem calls, and don't really\n execute them in dry-run mode.\n<END>", "<BEGIN>\n## `_make_it_so`", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_route API. 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 parse_route API. 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...
Parse a route definition, and return the compiled regex that matches it.
"Parse a route definition, and return the compiled regex that matches it."
247
false
pyroscope/pyrocore
parse_route
18,183
LDU_FT/jaysonsantos/python-binary-memcached/get
LDU_FT
[ "<BEGIN>\n## `str_to_bytes`", "Simply convert a string type to bytes if the value is a string\n and is an instance of six.string_types but not of six.binary_type\n in python2 struct.pack(\"<Q\") is both string_types and binary_type but\n in python3 struct.pack(\"<Q\") is binary_type but not a string_type...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
Get a key from server. :param key: Key's name :type key: six.string_types :param get_cas: If true, return (value, cas), where cas is the new CAS value. :type get_cas: boolean :return: Returns a key data from server. :rtype: object
"Get a key from server.\n\n :param key: Key's name\n :type key: six.string_types\n :param get_cas: If true, return (value, cas), where cas is the new CAS value.\n :type get_cas: boolean\n :return: Returns a key data from server.\n :rtype: object"
132
false
jaysonsantos/python-binary-memcached
get
18,184
LDU_FT/timothycrosley/deprecated.frosted/check_path
LDU_FT
[ "<BEGIN>\n## `node_name`", "Convenience function: Returns node.id, or node.name, or None\n<END>", "<BEGIN>\n## `names`", "Return a list of the names referenced by this binding.\n<END>", "<BEGIN>\n## `unusedAssignments`", "Return a generator for the assignments which have not been used.\n<END>", "<BEGIN>...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the check_path API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the check_path API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
Check the given path, printing out any warnings detected.
"Check the given path, printing out any warnings detected."
41
false
timothycrosley/deprecated.frosted
check_path
18,185
LDU_FT/Microsoft/nni/predict
LDU_FT
[ "<BEGIN>\n## `get_pre_compute`", ":param s: [src_sequence, batch_size, src_dim]\n :return: [src_sequence, batch_size. hidden_dim]\n<END>", "<BEGIN>\n## `get_prob`", ":param s: [src_sequence_length, batch_size, src_dim]\n :param h: [batch_size, tgt_dim] or [tgt_sequence_length, batch_size, tgt_di...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the predict API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the predict API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
predict the value of target position Parameters ---------- trial_history: list The history performance matrix of each trial. Returns ------- float expected final result performance of this hyperparameter config
"predict the value of target position\n \n Parameters\n ----------\n trial_history: list\n The history performance matrix of each trial.\n\n Returns\n -------\n float\n expected final result performance of this hyperparameter config"
587
false
Microsoft/nni
predict
18,186
LDU_FT/HumanCellAtlas/dcp-cli/download_manifest_v2
LDU_FT
[ "<BEGIN>\n## `get_checksum_metadata_tag`", "Returns a map of checksum values by the name of the hashing function that produced it.\n<END>", "<BEGIN>\n## `get_credentials`", "Return a set of credentials that may be used to access the Upload Area folder in the S3 bucket\n :return: a dict containing AWS c...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the download_manifest_v2 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 download_manifest_v2 API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Process the given manifest file in TSV (tab-separated values) format and download the files referenced by it. The files are downloaded in the version 2 format. This download format will serve as the main storage format for downloaded files. If a user specifies a different format for download (c...
"Process the given manifest file in TSV (tab-separated values) format and download the files referenced by it.\n The files are downloaded in the version 2 format.\n\n This download format will serve as the main storage format for downloaded files. If a user specifies a different\n format for downlo...
140
false
HumanCellAtlas/dcp-cli
download_manifest_v2
18,187
LDU_FT/TkTech/Jawa/grep
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 grep API. 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 grep API. 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...
Grep the constant pool of all classes in source.
"Grep the constant pool of all classes in source."
226
false
TkTech/Jawa
grep
18,188
LDU_FT/0k/shyaml/die
LDU_FT
[ "<BEGIN>\n## `tokenize`", "r\"\"\"Returns an iterable through all subparts of string splitted by '.'", " So:", " >>> list(tokenize('foo.bar.wiz'))\n ['foo', 'bar', 'wiz']", " Contrary to traditional ``.split()`` method, this function has to\n deal with any type of data in the string. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the die API. 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 die API. 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...
Convenience function to write short message to stderr and quit.
"Convenience function to write short message to stderr and quit."
30
false
0k/shyaml
die
18,189
LDU_FT/noirbizarre/django.js/rst
LDU_FT
[ "<BEGIN>\n## `run_from_argv`", "Set up any environment changes requested (e.g., Python path\n and Django settings), then run this command. If the\n command raises a ``CommandError``, intercept it and print it sensibly\n to stderr.\n<END>", "<BEGIN>\n## `create_parser`", "Create and return...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the rst API. 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 rst API. 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...
Load rst file and sanitize it for PyPI. Remove unsupported github tags: - code-block directive - travis ci build badge
"Load rst file and sanitize it for PyPI.\n Remove unsupported github tags:\n - code-block directive\n - travis ci build badge"
32
false
noirbizarre/django.js
rst
18,190
LDU_FT/hickeroar/simplebayes/calculate_bayesian_probability
LDU_FT
[ "<BEGIN>\n## `train_token`", "Trains a particular token (increases the weight/count of it)", " :param word: the token we're going to train\n :type word: str\n :param count: the number of occurances in the sample\n :type count: int\n<END>", "<BEGIN>\n## `untrain_token`", "Untrains...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the calculate_bayesian_probability API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its con...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the calculate_bayesian_probability API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its con...
Calculates the bayesian probability for a given token/category :param cat: The category we're scoring for this token :type cat: str :param token_score: The tally of this token for this category :type token_score: float :param token_tally: The tally total for this token from all ...
"Calculates the bayesian probability for a given token/category\n\n :param cat: The category we're scoring for this token\n :type cat: str\n :param token_score: The tally of this token for this category\n :type token_score: float\n :param token_tally: The tally total for this token fr...
40
false
hickeroar/simplebayes
calculate_bayesian_probability
18,191
LDU_FT/BlackEarth/bl/digest
LDU_FT
[ "<BEGIN>\n## `random_id`", "Creates a random id with the given length and charset.\r\n ## Parameters\r\n * length the number of characters in the id\r\n * charset what character set to use (a list of characters)\r\n * first_charset what character set for the first character\r\n *...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the digest API. 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 digest API. 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 a url-safe hash of the string, optionally (and by default) base64-encoded alg='sha256' = the hash algorithm, must be in hashlib b64=True = whether to base64-encode the output strip=True = whether to strip trailing '=' from the base64 output Using the...
"return a url-safe hash of the string, optionally (and by default) base64-encoded\r\n alg='sha256' = the hash algorithm, must be in hashlib\r\n b64=True = whether to base64-encode the output\r\n strip=True = whether to strip trailing '=' from the base64 output\r\n ...
54
false
BlackEarth/bl
digest
18,192
LDU_FT/saschpe/rapport/_get_config_dirs
LDU_FT
[ "<BEGIN>\n## `iso_year_start`", "The gregorian calendar date of the first day of the given ISO year\n<END>", "<BEGIN>\n## `iso_to_gregorian`", "Gregorian calendar date for the given ISO year, week and day\n<END>", "<BEGIN>\n## `week_to_datetime`", "datetime instance for the start of the given ISO year and...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_config_dirs API. 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_config_dirs API. 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 a list of directories where config files may be located. The following directories are returned:: $XDG_CONFIG_HOME/rapport/ ($XDG_CONFIG_HOME defaults to ~/.config) /etc/rapport/
"Return a list of directories where config files may be located.\n\n The following directories are returned::\n\n $XDG_CONFIG_HOME/rapport/ ($XDG_CONFIG_HOME defaults to ~/.config)\n /etc/rapport/"
44
false
saschpe/rapport
_get_config_dirs
18,193
LDU_FT/aws/aws-xray-sdk-python/calculate_sampling_decision
LDU_FT
[ "<BEGIN>\n## `middleware`", "Main middleware function, deals with all the X-Ray segment logic\n<END>", "<BEGIN>\n## `patch`", "patch the built-in `urllib/httplib/httplib.client` methods for tracing.\n<END>", "<BEGIN>\n## `unpatch`", "Unpatch any previously patched modules.\n This operation is idempoten...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the calculate_sampling_decision 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 calculate_sampling_decision API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclu...
Return 1 or the matched rule name if should sample and 0 if should not. The sampling decision coming from ``trace_header`` always has the highest precedence. If the ``trace_header`` doesn't contain sampling decision then it checks if sampling is enabled or not in the recorder. If not enbaled it returns ...
"Return 1 or the matched rule name if should sample and 0 if should not.\n The sampling decision coming from ``trace_header`` always has\n the highest precedence. If the ``trace_header`` doesn't contain\n sampling decision then it checks if sampling is enabled or not\n in the recorder. If not enbaled it ret...
198
false
aws/aws-xray-sdk-python
calculate_sampling_decision
18,194
LDU_FT/JustinLovinger/optimal/one_point_crossover
LDU_FT
[ "<BEGIN>\n## `_initial_population_gsa`", "Create a random initial population of floating point values.", " Args:\n population_size: an integer representing the number of solutions in the population.\n problem_size: the number of values in each solution.\n lower_bounds: a list, each value...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the one_point_crossover 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 one_point_crossover 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...
Perform one point crossover on two parent chromosomes. Select a random position in the chromosome. Take genes to the left from one parent and the rest from the other parent. Ex. p1 = xxxxx, p2 = yyyyy, position = 2 (starting at 0), child = xxyyy
"Perform one point crossover on two parent chromosomes.\n\n Select a random position in the chromosome.\n Take genes to the left from one parent and the rest from the other parent.\n Ex. p1 = xxxxx, p2 = yyyyy, position = 2 (starting at 0), child = xxyyy"
152
false
JustinLovinger/optimal
one_point_crossover
18,195
LDU_FT/tariqdaouda/pyGeno/__getSequenceVariants
LDU_FT
[ "<BEGIN>\n## `getGenomeList`", "Return the names of all imported genomes\n<END>", "<BEGIN>\n## `removeDuplicates`", "removes duplicated lines from a 'inFileName' CSV file, the results are witten in 'outFileName\n<END>", "<BEGIN>\n## `catCSVs`", "Concatenates all csv in 'folder' and wites the results in 'o...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the __getSequenceVariants 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 __getSequenceVariants API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
polyStop, is the polymorphisme at wixh number where the calcul of combinaisons stops
"polyStop, is the polymorphisme at wixh number where the calcul of combinaisons stops"
167
false
tariqdaouda/pyGeno
__getSequenceVariants
18,196
LDU_FT/sanger-pathogens/circlator/_load_nucmer_hits
LDU_FT
[ "<BEGIN>\n## `run_spades`", "Runs spades on all kmers. Each a separate run because SPAdes dies if any kmer does\n not work. Chooses the 'best' assembly to be the one with the biggest N50\n<END>", "<BEGIN>\n## `aligned_read_to_read`", "Returns Fasta or Fastq sequence from pysam aligned read\n<END>", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _load_nucmer_hits API. 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_nucmer_hits API. 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 two dictionaries: 1) name=>contig length. 2) Second is dictionary of nucmer hits (ignoring self matches). contig name => list of hits
"Returns two dictionaries:\n 1) name=>contig length.\n 2) Second is dictionary of nucmer hits (ignoring self matches).\n contig name => list of hits"
102
false
sanger-pathogens/circlator
_load_nucmer_hits
18,197
LDU_FT/jaraco/jaraco.functools/save_method_args
LDU_FT
[ "<BEGIN>\n## `compose`", "Compose any number of unary functions into a single unary function.", "\t>>> import textwrap\n\t>>> from six import text_type\n\t>>> stripped = text_type.strip(textwrap.dedent(compose.__doc__))\n\t>>> compose(text_type.strip, textwrap.dedent)(compose.__doc__) == stripped\n\tTrue", "\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the save_method_args API. 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 save_method_args API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Wrap a method such that when it is called, the args and kwargs are saved on the method. >>> class MyClass: ... @save_method_args ... def method(self, a, b): ... print(a, b) >>> my_ob = MyClass() >>> my_ob.method(1, 2) 1 2 >>> my_ob._saved_method.args (1, 2) >>> my_ob._saved_method.kwargs {}...
"Wrap a method such that when it is called, the args and kwargs are\n\tsaved on the method.\n\n\t>>> class MyClass:\n\t... @save_method_args\n\t... def method(self, a, b):\n\t... print(a, b)\n\t>>> my_ob = MyClass()\n\t>>> my_ob.method(1, 2)\n\t1 2\n\t>>> my_ob._saved_method.args\n\t(1, 2)\n\t>>> my_ob....
65
false
jaraco/jaraco.functools
save_method_args
18,198
LDU_FT/line/line-bot-sdk-python/get_profile
LDU_FT
[ "<BEGIN>\n## `get`", "GET request.", " :param str url: Request url\n :param dict headers: (optional) Request headers\n :param dict params: (optional) Request query parameter\n :param bool stream: (optional) get content as stream\n :param timeout: (optional), How long to wait f...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_profile API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_profile API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
Call get profile API. https://devdocs.line.me/en/#bot-api-get-profile Get user profile information. :param str user_id: User ID :param timeout: (optional) How long to wait for the server to send data before giving up, as a float, or a (connect timeout, read tim...
"Call get profile API.\n\n https://devdocs.line.me/en/#bot-api-get-profile\n\n Get user profile information.\n\n :param str user_id: User ID\n :param timeout: (optional) How long to wait for the server\n to send data before giving up, as a float,\n or a (connect timeout...
135
false
line/line-bot-sdk-python
get_profile
18,199
LDU_FT/globocom/GloboNetworkAPI-client-python/disassociate_environment_option_pool
LDU_FT
[ "<BEGIN>\n## `deploy`", "Deploy network in equipments and set column 'active = 1' in tables redeipv4", " :param id_networkv4: ID for NetworkIPv4", " :return: Equipments configuration output\n<END>", "<BEGIN>\n## `get_by_id`", "Get IPv4 network", " :param id_networkv4: ID for Network...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the disassociate_environment_option_pool API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates i...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the disassociate_environment_option_pool API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates i...
Remove a relationship of optionpool with Environment. :param id_option_pool: Identifier of the Option Pool. Integer value and greater than zero. :param id_environment: Identifier of the Environment Pool. Integer value and greater than zero. :return: { 'id': < environment_option_id> } ...
"Remove a relationship of optionpool with Environment.\n\n :param id_option_pool: Identifier of the Option Pool. Integer value and greater than zero.\n :param id_environment: Identifier of the Environment Pool. Integer value and greater than zero.\n\n :return: { 'id': < environment_option_id> }\n\n...
1,966
true
globocom/GloboNetworkAPI-client-python
disassociate_environment_option_pool
18,200
LDU_FT/thorgate/tg-react/get_catalog
LDU_FT
[ "<BEGIN>\n## `collect`", "Load all constant generators from settings.WEBPACK_CONSTANT_PROCESSORS\n and concat their values.\n<END>", "<BEGIN>\n## `phonenumber_validation`", "Validates phonenumber", " Similar to phonenumber_field.validators.validate_international_phonenumber() but uses a differ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_catalog API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_catalog API. 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 Django translation catalogue for `locale`.
"Create Django translation catalogue for `locale`."
15
false
thorgate/tg-react
get_catalog
18,201
LDU_FT/CalebBell/ht/S_isothermal_pipe_eccentric_to_isothermal_pipe
LDU_FT
[ "<BEGIN>\n## `blackbody_spectral_radiance`", "r'''Returns the spectral radiance, in units of W/m^2/sr/µm.", " .. math::\n I_{\\lambda,blackbody,e}(\\lambda,T)=\\frac{2hc_o^2}\n {\\lambda^5[\\exp(hc_o/\\lambda k T)-1]}", " Parameters\n ----------\n T : float\n Temperature of th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the S_isothermal_pipe_eccentric_to_isothermal_pipe API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> i...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the S_isothermal_pipe_eccentric_to_isothermal_pipe API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> i...
r'''Returns the Shape factor `S` of a pipe of constant outer temperature and of outer diameter `D1` which is `Z` distance from the center of another pipe of outer diameter`D2`. Length `L` must be provided, but can be set to 1 to obtain a dimensionless shape factor used in some sources. .. math:: ...
"r'''Returns the Shape factor `S` of a pipe of constant outer temperature\n and of outer diameter `D1` which is `Z` distance from the center of another\n pipe of outer diameter`D2`. Length `L` must be provided, but can be set to\n 1 to obtain a dimensionless shape factor used in some sources.\n\n .. math::\...
2,013
true
CalebBell/ht
S_isothermal_pipe_eccentric_to_isothermal_pipe
18,202
LDU_FT/MouseLand/rastermap/fit_transform
LDU_FT
[ "<BEGIN>\n## `fit_transform`", "Fit X into an embedded space and return that transformed\n output.\n Inputs\n ----------\n X : array, shape (n_samples, n_features). X contains a sample per row.", " Returns\n -------\n embedding : array, shape (n_samples, n_compon...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the fit_transform API. 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 fit_transform API. 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...
Fit X into an embedded space and return that transformed output. Inputs ---------- X : array, shape (n_samples, n_features). X contains a sample per row. Returns ------- embedding : array, shape (n_samples, n_components) Embedding of the training data...
"Fit X into an embedded space and return that transformed\n output.\n Inputs\n ----------\n X : array, shape (n_samples, n_features). X contains a sample per row.\n\n Returns\n -------\n embedding : array, shape (n_samples, n_components)\n Embedding of the tra...
27
false
MouseLand/rastermap
fit_transform
18,203
LDU_FT/mrname/haralyzer/pages
LDU_FT
[ "<BEGIN>\n## `get_load_times`", "Just a ``list`` of the load times of a certain asset type for each page", " :param asset_type: ``str`` of the asset type to return load times for\n<END>", "<BEGIN>\n## `get_stdev`", "Returns the standard deviation for a set of a certain asset type.", " :param...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the pages API. 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 pages API. 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...
The aggregate pages of all the parser objects.
"The aggregate pages of all the parser objects."
72
false
mrname/haralyzer
pages
18,204
LDU_FT/adamziel/python_translate/load_messages
LDU_FT
[ "<BEGIN>\n## `load_messages`", "Loads translation found in a directory.", " @type directory: string\n @param directory: The directory to search", " @type catalogue: MessageCatalogue\n @param catalogue: The message catalogue to dump", " @raises: ValueError\n<END>", "<BEGI...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load_messages API. 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 load_messages API. 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...
Loads translation found in a directory. @type directory: string @param directory: The directory to search @type catalogue: MessageCatalogue @param catalogue: The message catalogue to dump @raises: ValueError
"Loads translation found in a directory.\n\n @type directory: string\n @param directory: The directory to search\n\n @type catalogue: MessageCatalogue\n @param catalogue: The message catalogue to dump\n\n @raises: ValueError"
136
false
adamziel/python_translate
load_messages
18,205
LDU_FT/OCA/odoorpc/save
LDU_FT
[ "<BEGIN>\n## `commit`", "Commit dirty records to the server. This method is automatically\n called when the `auto_commit` option is set to `True` (default).\n It can be useful to set the former option to `False` to get better\n performance by reducing the number of RPC requests generated.", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the save API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the save API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
Save the `data` session configuration under the name `name` in the `rc_file` file. >>> import odoorpc >>> odoorpc.session.save( ... 'foo', ... {'type': 'ODOO', 'host': 'localhost', 'protocol': 'jsonrpc', ... 'port': 8069, 'timeout': 120, 'database': 'db_name' ... 'user': '...
"Save the `data` session configuration under the name `name`\n in the `rc_file` file.\n\n >>> import odoorpc\n >>> odoorpc.session.save(\n ... 'foo',\n ... {'type': 'ODOO', 'host': 'localhost', 'protocol': 'jsonrpc',\n ... 'port': 8069, 'timeout': 120, 'database': 'db_name'\n ... ...
264
false
OCA/odoorpc
save
18,206
LDU_FT/ivelum/djangoql/p_comparison_in_list
LDU_FT
[ "<BEGIN>\n## `apply_search`", "Applies search written in DjangoQL mini-language to given queryset\n<END>", "<BEGIN>\n## `get_options`", "Override this method to provide custom suggestion options\n<END>", "<BEGIN>\n## `get_lookup_value`", "Override this method to convert displayed values to lookup values\n...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the p_comparison_in_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. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the p_comparison_in_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. ...
comparison_in_list : IN | NOT IN
"comparison_in_list : IN\n | NOT IN"
25
false
ivelum/djangoql
p_comparison_in_list
18,207
LDU_FT/openeemeter/eemeter/get_cdd_hdd_candidate_models
LDU_FT
[ "<BEGIN>\n## `as_freq`", "Resample data to a different frequency.", " This method can be used to upsample or downsample meter data. The\n assumption it makes to do so is that meter data is constant and averaged\n over the given periods. For instance, to convert billing-period data to\n daily data, t...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_cdd_hdd_candidate_models 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 get_cdd_hdd_candidate_models API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its concl...
Return a list of candidate cdd_hdd models for a particular selection of cooling balance point and heating balance point Parameters ---------- data : :any:`pandas.DataFrame` A DataFrame containing at least the column ``meter_value`` and 1 to n columns each of the form ``hdd_<heating_bala...
"Return a list of candidate cdd_hdd models for a particular selection\n of cooling balance point and heating balance point\n\n Parameters\n ----------\n data : :any:`pandas.DataFrame`\n A DataFrame containing at least the column ``meter_value`` and 1 to n\n columns each of the form ``hdd_<heat...
213
false
openeemeter/eemeter
get_cdd_hdd_candidate_models
18,208
LDU_FT/indico/indico-plugins/get_room_config
LDU_FT
[ "<BEGIN>\n## `available_backends`", "Lists the currently available backend types\n<END>", "<BEGIN>\n## `initial_export`", "Performs the initial data export for an agent\n<END>", "<BEGIN>\n## `get_result`", "Perform the call and return the graph data", " :return: Encoded PNG graph data string to b...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_room_config API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_room_config API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
Retrieves basic data of a MUC room from the XMPP server. :return: dict containing name, description and password of the room
"Retrieves basic data of a MUC room from the XMPP server.\n\n :return: dict containing name, description and password of the room"
173
false
indico/indico-plugins
get_room_config
18,209
LDU_FT/harvard-nrg/yaxil/subjects
LDU_FT
[ "<BEGIN>\n## `splitarg`", "This function will split arguments separated by spaces or commas \n to be backwards compatible with the original ArcGet command line tool\n<END>", "<BEGIN>\n## `search`", "Search for DICOM files within a given directory and receive back a \n dictionary of {StudyInstanceUID: {S...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the subjects API. 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 subjects API. 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...
Retrieve Subject tuples for subjects returned by this function. Example: >>> import yaxil >>> auth = yaxil.XnatAuth(url='...', username='...', password='...') >>> yaxil.subjects(auth, 'AB1234C') Subject(uri=u'/data/experiments/XNAT_S0001', label=u'AB1234C', id=u'XNAT_S0001', ...
"Retrieve Subject tuples for subjects returned by this function.\n \n Example:\n >>> import yaxil\n >>> auth = yaxil.XnatAuth(url='...', username='...', password='...')\n >>> yaxil.subjects(auth, 'AB1234C')\n Subject(uri=u'/data/experiments/XNAT_S0001', label=u'AB1234C', id=u'XNAT_S000...
71
false
harvard-nrg/yaxil
subjects
18,210
LDU_FT/Rapptz/discord.py/loop
LDU_FT
[ "<BEGIN>\n## `_retrieve_messages_before_strategy`", "Retrieve messages using before parameter.\n<END>", "<BEGIN>\n## `_retrieve_messages_after_strategy`", "Retrieve messages using after parameter.\n<END>", "<BEGIN>\n## `_retrieve_messages_around_strategy`", "Retrieve messages using around parameter.\n<END...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the 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 extracted do...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the 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 extracted do...
A decorator that schedules a task in the background for you with optional reconnect logic. Parameters ------------ seconds: :class:`float` The number of seconds between every iteration. minutes: :class:`float` The number of minutes between every iteration. hours: :class:`float` ...
"A decorator that schedules a task in the background for you with\n optional reconnect logic.\n\n Parameters\n ------------\n seconds: :class:`float`\n The number of seconds between every iteration.\n minutes: :class:`float`\n The number of minutes between every iteration.\n hours: :clas...
1,325
true
Rapptz/discord.py
loop
18,211
LDU_FT/darothen/xbpch/get_timestamp
LDU_FT
[ "<BEGIN>\n## `from_model`", "Define a grid using the specifications of a given model.", " Parameters\n ----------\n model_name : string\n Name the model (see :func:`get_supported_models` for available\n model names).\n Supports multiple formats (e.g., 'GEOS5...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_timestamp API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_timestamp API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
Return the current timestamp in machine local time. Parameters: ----------- time, date : Boolean Flag to include the time or date components, respectively, in the output. fmt : str, optional If passed, will override the time/date choice and use as the format string passe...
"Return the current timestamp in machine local time.\n\n Parameters:\n -----------\n time, date : Boolean\n Flag to include the time or date components, respectively,\n in the output.\n fmt : str, optional\n If passed, will override the time/date choice and use as\n the format st...
122
false
darothen/xbpch
get_timestamp
18,212
LDU_FT/ratt-ru/PyMORESANE/fft_shift
LDU_FT
[ "<BEGIN>\n## `iuwt_decomposition`", "This function serves as a handler for the different implementations of the IUWT decomposition. It allows the\n different methods to be used almost interchangeably.", " INPUTS:\n in1 (no default): Array on which the decomposition is to be perfor...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the fft_shift API. 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 fft_shift API. 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...
This function performs the FFT shift operation on the GPU to restore the correct output shape. INPUTS: in1 (no default): Array containing data which has been FFTed and IFFTed. OUTPUTS: in1 FFT-shifted version of in1.
"This function performs the FFT shift operation on the GPU to restore the correct output shape.\n\n INPUTS:\n in1 (no default): Array containing data which has been FFTed and IFFTed.\n\n OUTPUTS:\n in1 FFT-shifted version of in1."
125
false
ratt-ru/PyMORESANE
fft_shift
18,213
LDU_FT/C4ptainCrunch/ics.py/on
LDU_FT
[ "<BEGIN>\n## `arrow_get`", "this function exists because ICS uses ISO 8601 without dashes or\n colons, i.e. not ISO 8601 at all.\n<END>", "<BEGIN>\n## `parse_duration`", "Return a timedelta object from a string in the DURATION property format\n<END>", "<BEGIN>\n## `timedelta_to_duration`", "Return a st...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the on API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted docu...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the on API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted docu...
Iterates (in chronological order) over all events that occurs on `day` Args: day (Arrow object) strict (bool): if True events will be returned only if they are\ strictly *included* in `day`.
"Iterates (in chronological order) over all events that occurs on `day`\n\n Args:\n day (Arrow object)\n strict (bool): if True events will be returned only if they are\\\n strictly *included* in `day`."
50
false
C4ptainCrunch/ics.py
on
18,214
LDU_FT/sentinel-hub/eo-learn/_to_patches
LDU_FT
[ "<BEGIN>\n## `execute`", "Execute computation of blobs on input eopatch", " :param eopatch: Input eopatch\n :type eopatch: eolearn.core.EOPatch\n :return: EOPatch instance with new key holding the blob image.\n :rtype: eolearn.core.EOPatch\n<END>", "<BEGIN>\n## `_check_classifier`"...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _to_patches API. 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 _to_patches API. 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...
Reshapes input to patches of the size of classifier's receptive field. For example: input X shape: [n_samples, n_pixels_y, n_pixels_x, n_bands] output: [n_samples * n_pixels_y/receptive_field_y * n_pixels_x/receptive_field_x, receptive_field_y, receptive_field_x, n_ban...
"Reshapes input to patches of the size of classifier's receptive field.\r\n\r\n For example:\r\n\r\n input X shape: [n_samples, n_pixels_y, n_pixels_x, n_bands]\r\n\r\n output: [n_samples * n_pixels_y/receptive_field_y * n_pixels_x/receptive_field_x,\r\n receptive_field_y, receptive...
453
false
sentinel-hub/eo-learn
_to_patches
18,215
LDU_FT/facebook/pyre-check/prev_cursor_location
LDU_FT
[ "<BEGIN>\n## `log_time`", "Log the time it takes to run a function. It's sort of like timeit, but\n prettier.\n<END>", "<BEGIN>\n## `daemonize`", "We double-fork here to detach the daemon process from the parent.\n If we were to just fork the child as a daemon, we'd have to worry about the\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the prev_cursor_location 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 prev_cursor_location API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Move cursor to the previous trace frame.
"Move cursor to the previous trace frame."
150
false
facebook/pyre-check
prev_cursor_location
18,216
LDU_FT/BrewBlox/brewblox-service/add
LDU_FT
[ "<BEGIN>\n## `create_task`", "Convenience function for calling `TaskScheduler.create(coro)`", " This will use the default `TaskScheduler` to create a new background task.", " Example:", " import asyncio\n from datetime import datetime\n from brewblox_service import scheduler, serv...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
Adds a new feature to the app. Features can either be registered as the default feature for the class, or be given an explicit name. Args: app (web.Application): The current Aiohttp application. feature (Any): The new feature that should be registered. ...
"Adds a new feature to the app.\n\n Features can either be registered as the default feature for the class,\n or be given an explicit name.\n\n Args:\n app (web.Application):\n The current Aiohttp application.\n\n feature (Any):\n The new feature that should be registered.\n...
93
false
BrewBlox/brewblox-service
add
18,217
LDU_FT/9b/google-alerts/obfuscate
LDU_FT
[ "<BEGIN>\n## `obfuscate`", "Obfuscate the auth details to avoid easy snatching.", " It's best to use a throw away account for these alerts to avoid having\n your authentication put at risk by storing it locally.\n<END>", "<BEGIN>\n## `_config_bootstrap`", "Go through and establish the defaults on the ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the obfuscate API. 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 obfuscate API. 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...
Obfuscate the auth details to avoid easy snatching. It's best to use a throw away account for these alerts to avoid having your authentication put at risk by storing it locally.
"Obfuscate the auth details to avoid easy snatching.\n\n It's best to use a throw away account for these alerts to avoid having\n your authentication put at risk by storing it locally."
23
false
9b/google-alerts
obfuscate
18,218
LDU_FT/dbkaplan/dry-rest-permissions/allow_staff_or_superuser
LDU_FT
[ "<BEGIN>\n## `allow_staff_or_superuser`", "This decorator is used to abstract common is_staff and is_superuser functionality\n out of permission checks. It determines which parameter is the request based on name.\n<END>", "<BEGIN>\n## `authenticated_users`", "This decorator is used to abstract common authe...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the allow_staff_or_superuser 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 allow_staff_or_superuser API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio...
This decorator is used to abstract common is_staff and is_superuser functionality out of permission checks. It determines which parameter is the request based on name.
"This decorator is used to abstract common is_staff and is_superuser functionality\n out of permission checks. It determines which parameter is the request based on name."
18
false
dbkaplan/dry-rest-permissions
allow_staff_or_superuser
18,219
LDU_FT/thilux/tvdb_client/__get_header_with_auth
LDU_FT
[ "<BEGIN>\n## `__get_header_with_auth`", "This private method returns the HTTP heder filled with the Authorization information with the user token.\n The token validity is monitored whenever this function is called, so according to the swagger page of TheTVDB\n (https://api.thetvdb.com/swagger) the t...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the __get_header_with_auth API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the __get_header_with_auth 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 private method returns the HTTP heder filled with the Authorization information with the user token. The token validity is monitored whenever this function is called, so according to the swagger page of TheTVDB (https://api.thetvdb.com/swagger) the tokens are valid for 24 hours, therefore if a toke...
"This private method returns the HTTP heder filled with the Authorization information with the user token.\n The token validity is monitored whenever this function is called, so according to the swagger page of TheTVDB\n (https://api.thetvdb.com/swagger) the tokens are valid for 24 hours, therefore if a t...
58
false
thilux/tvdb_client
__get_header_with_auth
18,220
LDU_FT/NuGrid/NuGridPy/kip_cont
LDU_FT
[ "<BEGIN>\n## `_obsolete_plot_iso_abund_marco`", "Interface to plot average over mass_range.", " Parameters\n ----------\n directory : string\n Location of h5 file to plot. Needed for plot_tools.\n name_h5_file : string\n Name of h5 file. Needed for plot_tools.\n mass_range : list\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the kip_cont API. 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 kip_cont API. 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...
This function creates a Kippenhahn plot with energy flux using contours. This plot uses mixing_regions and burning_regions written to your history.data or star.log. Set both variables in the log_columns.list file to 20 as a start. The output log file should then contain columns...
"This function creates a Kippenhahn plot with energy flux using\n contours.\n\n This plot uses mixing_regions and burning_regions written to\n your history.data or star.log. Set both variables in the\n log_columns.list file to 20 as a start.\n\n The output log file should then contain...
713
false
NuGrid/NuGridPy
kip_cont
18,221
LDU_FT/tBaxter/tango-comments/moderate
LDU_FT
[ "<BEGIN>\n## `next_redirect`", "Handle the \"where should I go next?\" part of comment views.", " The next value could be a\n ``?next=...`` GET arg or the URL of a given view (``fallback``). See\n the view modules for examples.", " Returns an ``HttpResponseRedirect``.\n<END>", "<BEGIN>\n## `conf...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the moderate API. 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 moderate API. 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...
Determine whether a given comment on a given object should be allowed to show up immediately, or should be marked non-public and await approval. Return ``True`` if the comment should be moderated (marked non-public), ``False`` otherwise.
"Determine whether a given comment on a given object should be\n allowed to show up immediately, or should be marked non-public\n and await approval.\n\n Return ``True`` if the comment should be moderated (marked\n non-public), ``False`` otherwise."
66
false
tBaxter/tango-comments
moderate
18,222
LDU_FT/dshean/pygeotools/getfile2
LDU_FT
[ "<BEGIN>\n## `fn_check_full`", "Check for file existence", " Avoids race condition, but slower than os.path.exists.", " Parameters\n ----------\n fn : str\n Input filename string.", " Returns\n -------\n status \n True if file exists, False otherwise.\n<END>", "<BEGIN>\n...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the getfile2 API. 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 getfile2 API. 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...
Function to fetch files using requests Works with https authentication
"Function to fetch files using requests\n\n Works with https authentication"
322
false
dshean/pygeotools
getfile2
18,223
LDU_FT/jaraco/jaraco.postgres/super_psql
LDU_FT
[ "<BEGIN>\n## `create`", "CREATE this DATABASE.", " @param sql: (Optional) A string of psql (such as might be generated\n by pg_dump); it will be executed by psql(1) after creating the\n database.\n @type sql: str", " @rtype: None\n<END>", "<BEGIN>\n## `psql_string`", "Ev...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the super_psql API. 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 super_psql API. 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...
Just like .psql(), except that we connect as the database superuser (and we connect to the superuser's database, not the user's database).
"Just like .psql(), except that we connect as the database superuser\n (and we connect to the superuser's database, not the user's database)."
45
false
jaraco/jaraco.postgres
super_psql
18,224
LDU_FT/ambitioninc/django-entity-event/get_context_hints_per_source
LDU_FT
[ "<BEGIN>\n## `get_context_hints_per_source`", "Given a list of context renderers, return a dictionary of context hints per source.\n<END>", "<BEGIN>\n## `get_querysets_for_context_hints`", "Given a list of context hint dictionaries, return a dictionary\n of querysets for efficient context loading. The retu...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_context_hints_per_source 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 get_context_hints_per_source API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its concl...
Given a list of context renderers, return a dictionary of context hints per source.
"Given a list of context renderers, return a dictionary of context hints per source."
46
false
ambitioninc/django-entity-event
get_context_hints_per_source
18,225
LDU_FT/Miserlou/Zappa/undeploy_lambda_alb
LDU_FT
[ "<BEGIN>\n## `route_sns_task`", "Gets SNS Message, deserialises the message,\n imports the function, calls the function with args\n<END>", "<BEGIN>\n## `run_message`", "Runs a function defined by a message object with keys:\n 'task_path', 'args', and 'kwargs' used by lambda routing\n and a 'command' ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the undeploy_lambda_alb 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 undeploy_lambda_alb API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
The `zappa undeploy` functionality for ALB infrastructure.
"The `zappa undeploy` functionality for ALB infrastructure."
312
false
Miserlou/Zappa
undeploy_lambda_alb
18,226
LDU_FT/DsixTools/python-smeftrunner/sm_dict2lha
LDU_FT
[ "<BEGIN>\n## `load`", "Load a parameter file in DSixTools SLHA-like format or its JSON or\n YAML representation.\n<END>", "<BEGIN>\n## `lha2matrix`", "Return a matrix given a list of values of the form\n [[1, 1, float], [1, 2, float], ...]\n referring to the (1,1)-element etc.\n `shape` is the sha...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the sm_dict2lha API. 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 sm_dict2lha API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
Convert a a dictionary of SM parameters into a dictionary that pylha can convert into a DSixTools SM output file.
"Convert a a dictionary of SM parameters into\n a dictionary that pylha can convert into a DSixTools SM output file."
58
false
DsixTools/python-smeftrunner
sm_dict2lha
18,227
LDU_FT/rigetti/quantumflow/density_angle
LDU_FT
[ "<BEGIN>\n## `load_stdgraphs`", "Load standard graph validation sets", " For each size (from 6 to 32 graph nodes) the dataset consists of\n 100 graphs drawn from the Erdős-Rényi ensemble with edge\n probability 50%.\n<END>", "<BEGIN>\n## `load_mnist`", "Download and rescale the MNIST database of ha...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the density_angle API. 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 density_angle API. 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...
The Fubini-Study angle between density matrices
"The Fubini-Study angle between density matrices"
374
false
rigetti/quantumflow
density_angle
18,228
LDU_FT/pivotal-energy-solutions/django-datatable-view/get_cached_data
LDU_FT
[ "<BEGIN>\n## `resolve_orm_path`", "Follows the queryset-style query path of ``orm_path`` starting from ``model`` class. If the\n path ends up referring to a bad field name, ``django.db.models.fields.FieldDoesNotExist`` will\n be raised.\n<END>", "<BEGIN>\n## `get_model_at_related_field`", "Looks up ``a...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_cached_data API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_cached_data API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
Returns the cached object list under the appropriate key, or None if not set.
"Returns the cached object list under the appropriate key, or None if not set."
128
false
pivotal-energy-solutions/django-datatable-view
get_cached_data
18,229
LDU_FT/calmjs/calmjs/which
LDU_FT
[ "<BEGIN>\n## `make_choice_validator`", "Returns a callable that accepts the choices provided.", " Choices should be provided as a list of 2-tuples, where the first\n element is a string that should match user input (the key); the\n second being the value associated with the key.", " The callable b...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the which API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the which API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
Figure out which binary this will execute. Returns None if the binary is not found.
"Figure out which binary this will execute.\n\n Returns None if the binary is not found."
361
false
calmjs/calmjs
which
18,230
LDU_FT/wishtack/pysynthetic/syntheticMemberDecorator
LDU_FT
[ "<BEGIN>\n## `syntheticMemberDecorator`", ":type memberName: str\n :type readOnly: bool\n :type privateMemberName: str|None\n :type memberDelegate: IMemberDelegate\n<END>", "<BEGIN>\n## `namingConventionDecorator`", ":type namingConvention:INamingConvention\n<END>", "<BEGIN>\n## `makeConstructor`",...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the syntheticMemberDecorator 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 syntheticMemberDecorator API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio...
:type memberName: str :type readOnly: bool :type privateMemberName: str|None :type memberDelegate: IMemberDelegate
":type memberName: str\n :type readOnly: bool\n :type privateMemberName: str|None\n :type memberDelegate: IMemberDelegate"
66
false
wishtack/pysynthetic
syntheticMemberDecorator
18,231
LDU_FT/totalgood/twip/interleave_skip
LDU_FT
[ "<BEGIN>\n## `lsi`", "Train an LSI model on a \"corpus\" of documnets, like tweets", " Arguments:\n tokenize (callable): Function that returns a sequence of tokens (str) when passed a document (str)\n ram (float): Portion of RAM to limit the document generator from consuming before StopIter...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the interleave_skip API. 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 interleave_skip API. 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...
Like `chain.from_iterable(zip(*iterables))` but doesn't stop at the end of shortest iterable TODO: equivalent to chain.from_iterable(izip_longest(*iterables)) if obj is not None) >>> tuple(interleave_skip(s for s in ('ABCD', 'vwxyz', '12'))) ('A', 'v', '1', 'B', 'w', '2', 'C', 'x', 'D', 'y', 'z') >>> ...
"Like `chain.from_iterable(zip(*iterables))` but doesn't stop at the end of shortest iterable\n\n TODO: equivalent to chain.from_iterable(izip_longest(*iterables)) if obj is not None)\n\n >>> tuple(interleave_skip(s for s in ('ABCD', 'vwxyz', '12')))\n ('A', 'v', '1', 'B', 'w', '2', 'C', 'x', 'D', 'y', 'z')\n ...
144
false
totalgood/twip
interleave_skip
18,232
LDU_FT/napalm-automation/napalm-ios/get_lldp_neighbors
LDU_FT
[ "<BEGIN>\n## `_create_tmp_file`", "Write temp file and for use with inline config and SCP.\n<END>", "<BEGIN>\n## `_load_candidate_wrapper`", "Transfer file to remote device for either merge or replace operations", " Returns (return_status, msg)\n<END>", "<BEGIN>\n## `load_replace_candidate`", "SC...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_lldp_neighbors API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_lldp_neighbors 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...
IOS implementation of get_lldp_neighbors.
"IOS implementation of get_lldp_neighbors."
84
false
napalm-automation/napalm-ios
get_lldp_neighbors
18,233
LDU_FT/wkentaro/pytorch-fcn/load_label
LDU_FT
[ "<BEGIN>\n## `setup`", "Setup data layer according to parameters:", " - nyud_dir: path to NYUDv2 dir\n - split: train / val / test\n - tops: list of tops to output from {color, depth, hha, label}\n - randomize: load in random order (default: True)\n - seed: seed for randomizat...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load_label API. 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 load_label API. 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...
Load label image as 1 x height x width integer array of label indices. The leading singleton dimension is required by the loss.
"Load label image as 1 x height x width integer array of label indices.\n The leading singleton dimension is required by the loss."
47
false
wkentaro/pytorch-fcn
load_label
18,234
LDU_FT/kakwa/ldapcherry/del_user
LDU_FT
[ "<BEGIN>\n## `get_param`", "Get a parameter in config (handle default value)", " :param param: name of the parameter to recover\n :type param: string\n :param default: the default value, raises an exception\n if param is not in configuration and default\n is None (whic...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the del_user API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the del_user API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
Delete a user from the backend :param username: 'key' attribute of the user :type username: string
"Delete a user from the backend\n\n :param username: 'key' attribute of the user\n :type username: string"
83
false
kakwa/ldapcherry
del_user
18,235
LDU_FT/pybel/pybel-artifactory/convert_to_annotation
LDU_FT
[ "<BEGIN>\n## `convert_to_annotation`", "Convert a namespace file to an annotation file.\n<END>", "<BEGIN>\n## `history`", "Output the hashes for the annotation resources' versions.\n<END>", "<BEGIN>\n## `convert_to_namespace`", "Convert an annotation file to a namespace file.\n<END>", "<BEGIN>\n## `get_...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the convert_to_annotation 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 convert_to_annotation API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Convert a namespace file to an annotation file.
"Convert a namespace file to an annotation file."
39
false
pybel/pybel-artifactory
convert_to_annotation
18,236
LDU_FT/pymupdf/PyMuPDF/addFreetextAnnot
LDU_FT
[ "<BEGIN>\n## `_Widget_fontdict`", "Turns the above font definitions into a dictionary. Assumes certain line breaks and spaces.\n<END>", "<BEGIN>\n## `getTextlength`", "Calculate length of a string for a given built-in font.", " Args:\n fontname: name of the font.\n fontsize: size of font in...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the addFreetextAnnot API. 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 addFreetextAnnot API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Add a 'FreeText' annotation in rectangle 'rect'.
"Add a 'FreeText' annotation in rectangle 'rect'."
282
false
pymupdf/PyMuPDF
addFreetextAnnot
18,237
LDU_FT/discontinue/django-secure-js-login/qr_code
LDU_FT
[ "<BEGIN>\n## `get_salt`", "return the user password salt.\n If the user doesn't exist return a pseudo salt.\n<END>", "<BEGIN>\n## `display_login_info`", "Create a message, after login.", " Because this signal receiver will be called **after** auth.models.update_last_login(), the\n user.last_login i...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the qr_code API. 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 qr_code API. 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...
Display picture of QR-code from used secret
"Display picture of QR-code from used secret"
30
false
discontinue/django-secure-js-login
qr_code
18,238
LDU_FT/toastdriven/alligator/cancel
LDU_FT
[ "<BEGIN>\n## `run_forever`", "Causes the worker to run either forever or until the\n ``Worker.max_tasks`` are reached.\n<END>", "<BEGIN>\n## `to_call`", "Sets the function & its arguments to be called when the task is\n processed.", " Ex::", " task.to_call(my_function, 1, '...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the cancel API. 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 cancel API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Takes an existing task & cancels it before it is processed. Returns the canceled task, as that could be useful in creating a new task. Ex:: task = gator.task(add, 18, 9) # Whoops, didn't mean to do that. gator.cancel(task.task_id) :param task_id: ...
"Takes an existing task & cancels it before it is processed.\n\n Returns the canceled task, as that could be useful in creating a new\n task.\n\n Ex::\n\n task = gator.task(add, 18, 9)\n\n # Whoops, didn't mean to do that.\n gator.cancel(task.task_id)\n\n :pa...
181
false
toastdriven/alligator
cancel
18,239
LDU_FT/Fantomas42/django-blog-zinnia/dispatch
LDU_FT
[ "<BEGIN>\n## `safe_get_user_model`", "Safe loading of the User model, customized or not.\n<END>", "<BEGIN>\n## `get_title`", "Return the title with word count and number of comments.\n<END>", "<BEGIN>\n## `get_queryset`", "Make special filtering by user's permissions.\n<END>", "<BEGIN>\n## `get_changefo...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the dispatch API. 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 dispatch API. 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...
Decorate the view dispatcher with csrf_exempt.
"Decorate the view dispatcher with csrf_exempt."
262
false
Fantomas42/django-blog-zinnia
dispatch
18,240
LDU_FT/benley/butcher/_genpath
LDU_FT
[ "<BEGIN>\n## `_metahash`", "Checksum hash of all the inputs to this rule.", " Output is invalid until collect_srcs and collect_deps have been run.", " In theory, if this hash doesn't change, the outputs won't change\n either, which makes it useful for caching.\n<END>", "<BEGIN>\n## `col...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _genpath API. 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 _genpath API. 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...
Generate the path to a file in the cache. Does not check to see if the file exists. Just constructs the path where it should be.
"Generate the path to a file in the cache.\n\n Does not check to see if the file exists. Just constructs the path\n where it should be."
118
false
benley/butcher
_genpath
18,241
LDU_FT/ihgazni2/edict/max_display_width
LDU_FT
[ "<BEGIN>\n## `pipe_shell_cmds`", "shell_CMDs = {}\n shell_CMDs[1] = 'netstat -n'\n shell_CMDs[2] = \"awk {'print $6'}\"\n<END>", "<BEGIN>\n## `_reorder_via_klist`", "d = {'scheme': 'http', 'path': '/index.php', 'params': 'params', 'query': 'username=query', 'fragment': 'frag', 'username': '', 'p...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the max_display_width API. 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 max_display_width API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
currd = {0:'你们大家好', 125:'ABCDE', 6:'1234567'} dict_get_max_word_displaywidth(currd)
"currd = {0:'你们大家好', 125:'ABCDE', 6:'1234567'}\n dict_get_max_word_displaywidth(currd)"
71
false
ihgazni2/edict
max_display_width
18,242
LDU_FT/clinicedc/edc-notification/unsubscribe
LDU_FT
[ "<BEGIN>\n## `notify`", "Overridden to only call `notify` if model matches.\n<END>", "<BEGIN>\n## `notification_on_post_create_historical_record`", "Checks and processes any notifications for this model.", " Processes if `label_lower` is in site_notifications.models.", " Note, this is the post_creat...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the unsubscribe API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the unsubscribe API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
Returns a response after attempting to unsubscribe a member from the list.
"Returns a response after attempting to unsubscribe\n a member from the list."
54
false
clinicedc/edc-notification
unsubscribe
18,243
LDU_FT/amoffat/sh/args
LDU_FT
[ "<BEGIN>\n## `encode_to_py3bytes_or_py2str`", "takes anything and attempts to return a py2 string or py3 bytes. this\n is typically used when creating command + arguments to be executed via\n os.exec*\n<END>", "<BEGIN>\n## `get_exc_from_name`", "takes an exception name, like:", " ErrorReturnCo...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the args API. 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 args API. 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...
allows us to temporarily override all the special keyword parameters in a with context
"allows us to temporarily override all the special keyword parameters in\n a with context"
83
false
amoffat/sh
args
18,244
LDU_FT/raymondEhlers/pachyderm/determine_selection_of_iterable_values_from_config
LDU_FT
[ "<BEGIN>\n## `get_histograms_in_list`", "Get histograms from the file and make them available in a dict.", " Lists are recursively explored, with all lists converted to dictionaries, such that the return\n dictionaries which only contains hists and dictionaries of hists (ie there are no ROOT ``TCollection...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the determine_selection_of_iterable_values_from_config API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <EN...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the determine_selection_of_iterable_values_from_config API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <EN...
Determine iterable values to use to create objects for a given configuration. All values of an iterable can be included be setting the value to ``True`` (Not as a single value list, but as the only value.). Alternatively, an iterator can be disabled by setting the value to ``False``. Args: config:...
"Determine iterable values to use to create objects for a given configuration.\n\n All values of an iterable can be included be setting the value to ``True`` (Not as a single value list,\n but as the only value.). Alternatively, an iterator can be disabled by setting the value to ``False``.\n\n Args:\n ...
229
false
raymondEhlers/pachyderm
determine_selection_of_iterable_values_from_config
18,245
LDU_FT/dwavesystems/dwave_embedding_utilities/discard
LDU_FT
[ "<BEGIN>\n## `embed_ising`", "Embeds a logical Ising model onto another graph via an embedding.", " Args:\n source_linear (dict): The linear biases to be embedded. Should be a dict of\n the form {v: bias, ...} where v is a variable in the source model\n and bias is the linear bia...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the discard API. 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 discard API. 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...
Discards the sample if broken. Args: sample (dict): A sample of the form {v: val, ...} where v is a variable in the target graph and val is the associated value as determined by a binary quadratic model sampler. embedding (dict): The mapping from the source graph to the targ...
"Discards the sample if broken.\n\n Args:\n sample (dict): A sample of the form {v: val, ...} where v is\n a variable in the target graph and val is the associated value as\n determined by a binary quadratic model sampler.\n embedding (dict): The mapping from the source graph to t...
33
false
dwavesystems/dwave_embedding_utilities
discard
18,246
LDU_FT/RaRe-Technologies/gensim-simserver/delete
LDU_FT
[ "<BEGIN>\n## `merge_sims`", "Merge two precomputed similarity lists, truncating the result to `clip` most similar items.\n<END>", "<BEGIN>\n## `terminate`", "Delete all files created by this index, invalidating `self`. Use with care.\n<END>", "<BEGIN>\n## `index_documents`", "Update fresh index with new d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the delete API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the delete API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Delete documents from the current session.
"Delete documents from the current session."
74
false
RaRe-Technologies/gensim-simserver
delete
18,247
LDU_FT/postlund/pyatv/repeat_str
LDU_FT
[ "<BEGIN>\n## `lookup_tag`", "Look up a tag based on its key. Returns a DmapTag.\n<END>", "<BEGIN>\n## `scan_for_apple_tvs`", "Scan for Apple TVs using zeroconf (bonjour) and returns them.\n<END>", "<BEGIN>\n## `add_service`", "Handle callback from zeroconf when a service has been discovered.\n<END>", "<...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the repeat_str API. 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 repeat_str API. 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...
Convert internal API repeat state to string.
"Convert internal API repeat state to string."
146
false
postlund/pyatv
repeat_str
18,248
LDU_FT/openid/JWTConnect-Python-OidcService/get_urlinfo
LDU_FT
[ "<BEGIN>\n## `request_object_encryption`", "Created an encrypted JSON Web token with *msg* as body.", " :param msg: The mesaqg\n :param service_context:\n :param kwargs:\n :return:\n<END>", "<BEGIN>\n## `construct_request_uri`", "Constructs a special redirect_uri to be used when communicating wi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_urlinfo API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_urlinfo API. 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...
Pick out the fragment or query part from a URL. :param info: A URL possibly containing a query or a fragment part :return: the query/fragment part
"Pick out the fragment or query part from a URL.\n\n :param info: A URL possibly containing a query or a fragment part\n :return: the query/fragment part"
159
false
openid/JWTConnect-Python-OidcService
get_urlinfo
18,249
LDU_FT/summa-tx/riemann/make_legacy_input_and_empty_witness
LDU_FT
[ "<BEGIN>\n## `addsalt`", "adds a salt to the hash function (OPTIONAL)\n should be called AFTER Init, and BEFORE update\n salt: a bytestring, length determined by hashbitlen.\n if not of sufficient length, the bytestring\n will be assumed to be a big endia...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the make_legacy_input_and_empty_witness API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates it...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the make_legacy_input_and_empty_witness API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates it...
Outpoint, byte-like, byte-like, int -> (TxIn, InputWitness)
"Outpoint, byte-like, byte-like, int -> (TxIn, InputWitness)"
132
false
summa-tx/riemann
make_legacy_input_and_empty_witness
18,250
LDU_FT/desbma/sacad/guessImageFormatFromHttpResponse
LDU_FT
[ "<BEGIN>\n## `waitAccessAsync`", "Wait the needed time before sending a request to honor rate limit.\n<END>", "<BEGIN>\n## `aiohttp_socket_timeout`", "Return a aiohttp.ClientTimeout object with only socket timeouts set.\n<END>", "<BEGIN>\n## `query`", "Send a GET/POST request or get data from cache, retry...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the guessImageFormatFromHttpResponse API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its c...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the guessImageFormatFromHttpResponse API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its c...
Guess file format from HTTP response, return format or None.
"Guess file format from HTTP response, return format or None."
63
false
desbma/sacad
guessImageFormatFromHttpResponse
18,251
LDU_FT/concordusapps/alchemist/run
LDU_FT
[ "<BEGIN>\n## `shell`", "Runs the command-line client for the specified database.\n<END>", "<BEGIN>\n## `make_module_class`", "Takes the module referenced by name and make it a full class.\n<END>", "<BEGIN>\n## `_component_of`", "Get the root package or module of the passed module.\n<END>", "<BEGIN>\n## ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the run API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the run API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
Context: A dict of namespaces as the key, and their objects as the value. Used to easily inject code into the shell's runtime env.
"Context: A dict of namespaces as the key, and their objects as the\n value. Used to easily inject code into the shell's runtime env."
27
false
concordusapps/alchemist
run
18,252
LDU_FT/yeraydiazdiaz/lunr.py/add
LDU_FT
[ "<BEGIN>\n## `get_nltk_builder`", "Returns a builder with stemmers for all languages added to it.", " Args:\n languages (list): A list of supported languages.\n<END>", "<BEGIN>\n## `register_languages`", "Register all supported languages to ensure compatibility.\n<END>", "<BEGIN>\n## `Tokenizer`...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
Add metadata for a term/field pair to this instance of match data
"Add metadata for a term/field pair to this instance of match data"
128
false
yeraydiazdiaz/lunr.py
add
18,253
LDU_FT/peterdemin/pip-compile-multi/fix_lockfile
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 fix_lockfile API. 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 fix_lockfile API. 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...
Run each line of outfile through fix_pin
"Run each line of outfile through fix_pin"
61
false
peterdemin/pip-compile-multi
fix_lockfile
18,254
LDU_FT/vtkiorg/vtki/left_button_down
LDU_FT
[ "<BEGIN>\n## `extract_geometry`", "Combines the geomertry of all blocks into a single ``PolyData``\n object. Place this filter at the end of a pipeline before a polydata\n consumer such as a polydata mapper to extract geometry from all blocks\n and append them to one polydata object.\n<END>",...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the left_button_down API. 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 left_button_down API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Register the event for a left button down click
"Register the event for a left button down click"
1,121
true
vtkiorg/vtki
left_button_down
18,255
LDU_FT/danielfrg/word2vec/get_cluster
LDU_FT
[ "<BEGIN>\n## `ix`", "Returns the index on self.vocab and self.clusters for 'word'\n<END>", "<BEGIN>\n## `get_cluster`", "Returns the cluster number for a word in the vocabulary\n<END>", "<BEGIN>\n## `distance`", "Compute the distance distance between two vectors or more (all combinations) of words", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_cluster API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_cluster API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
Returns the cluster number for a word in the vocabulary
"Returns the cluster number for a word in the vocabulary"
42
false
danielfrg/word2vec
get_cluster
18,256
LDU_FT/polyledger/lattice/to_jacobian
LDU_FT
[ "<BEGIN>\n## `inverse`", "Returns the modular inverse of an integer with respect to the field\n characteristic, P.", " Use the Extended Euclidean Algorithm:\n https://en.wikipedia.org/wiki/Extended_Euclidean_algorithm\n<END>", "<BEGIN>\n## `is_on_curve`", "Checks whether a point is on t...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the to_jacobian API. 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 to_jacobian API. 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...
Converts this point to a Jacobian representation. Returns: JacobianPoint: The Jacobian representation.
"Converts this point to a Jacobian representation.\n\n Returns:\n JacobianPoint: The Jacobian representation."
44
false
polyledger/lattice
to_jacobian
18,257
LDU_FT/ldo/dbussy/data_key
LDU_FT
[ "<BEGIN>\n## `data_key`", "returns a unique value that allows data to be used as a dict/set key.\n<END>", "<BEGIN>\n## `get_version`", "returns the libdbus library version as a tuple of integers (major, minor, micro).\n<END>", "<BEGIN>\n## `matches_rule`", "does Message message match against the specified...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the data_key API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the data_key API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
returns a unique value that allows data to be used as a dict/set key.
"returns a unique value that allows data to be used as a dict/set key."
74
false
ldo/dbussy
data_key
18,258
LDU_FT/openeemeter/eeweather/combine_ranked_stations
LDU_FT
[ "<BEGIN>\n## `get_lat_long_climate_zones`", "Get climate zones that contain lat/long coordinates.", " Parameters\n ----------\n latitude : float\n Latitude of point.\n longitude : float\n Longitude of point.", " Returns\n -------\n climate_zones: dict of str\n Region ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the combine_ranked_stations 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 combine_ranked_stations API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion...
Combine :any:`pandas.DataFrame` s of candidate weather stations to form a hybrid ranking dataframe. Parameters ---------- rankings : list of :any:`pandas.DataFrame` Dataframes of ranked weather station candidates and metadata. All ranking dataframes should have the same columns and must...
"Combine :any:`pandas.DataFrame` s of candidate weather stations to form\n a hybrid ranking dataframe.\n\n Parameters\n ----------\n rankings : list of :any:`pandas.DataFrame`\n Dataframes of ranked weather station candidates and metadata.\n All ranking dataframes should have the same columns ...
68
false
openeemeter/eeweather
combine_ranked_stations
18,259
LDU_FT/tjcsl/cslbot/random_post
LDU_FT
[ "<BEGIN>\n## `cmd`", "Babbles like a user\n Syntax: {command} [nick] [--length <1|2>] [--start <word>]\n<END>", "<BEGIN>\n## `cmd`", "Gets a random distro.", " Syntax: {command}\n<END>", "<BEGIN>\n## `cmd`", "Returns the Discordian date.", " Syntax: {command}\n<END>", "<BEGIN>\n## `cmd`", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the random_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 extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the random_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 extra...
Gets a random post from a subreddit and returns a title and shortlink to it.
"Gets a random post from a subreddit and returns a title and shortlink to it."
357
false
tjcsl/cslbot
random_post
18,260
LDU_FT/napalm-automation/napalm-base/convert
LDU_FT
[ "<BEGIN>\n## `load_template`", "Will load a templated configuration on the device.", " :param cls: Instance of the driver class.\n :param template_name: Identifies the template name.\n :param template_source (optional): Custom config template rendered and loaded on device\n :param te...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the convert API. 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 convert API. 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...
Converts data to a specific datatype. In case of error, will return a default value. :param to: datatype to be casted to. :param who: value to cast. :param default: value to return in case of error. :return: a str value.
"Converts data to a specific datatype.\n In case of error, will return a default value.\n\n :param to: datatype to be casted to.\n :param who: value to cast.\n :param default: value to return in case of error.\n :return: a str value."
47
false
napalm-automation/napalm-base
convert
18,261
LDU_FT/miccoli/pyownet/req
LDU_FT
[ "<BEGIN>\n## `main`", "parse commandline arguments and print result\n<END>", "<BEGIN>\n## `main`", "parse commandline arguments and print result\n<END>", "<BEGIN>\n## `main`", "parse commandline arguments and print result\n<END>", "<BEGIN>\n## `proxy`", "factory function that returns a proxy object fo...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the req API. 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 req API. 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...
send message to server and return response
"send message to server and return response"
23
false
miccoli/pyownet
req
18,262
LDU_FT/blockstack-packages/blockstack-gpg/gpg_verify
LDU_FT
[ "<BEGIN>\n## `make_gpg_home`", "Make GPG keyring dir for a particular application.\n Return the path.\n<END>", "<BEGIN>\n## `get_gpg_home`", "Get the GPG keyring directory for a particular application.\n Return the path.\n<END>", "<BEGIN>\n## `make_gpg_tmphome`", "Make a temporary directory to hold ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the gpg_verify API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the gpg_verify API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
Verify a file on disk was signed by the given sender. @sender_key_info should be a dict with { 'key_id': ... 'key_data': ... 'app_name'; ... } Return {'status': True} on success Return {'error': ...} on error
"Verify a file on disk was signed by the given sender.\n @sender_key_info should be a dict with\n {\n 'key_id': ...\n 'key_data': ...\n 'app_name'; ...\n }\n Return {'status': True} on success\n Return {'error': ...} on error"
54
false
blockstack-packages/blockstack-gpg
gpg_verify
18,263
LDU_FT/zmathew/django-backbone/queryset
LDU_FT
[ "<BEGIN>\n## `autodiscover`", "Auto-discover INSTALLED_APPS backbone_api.py modules.\n<END>", "<BEGIN>\n## `register`", "Registers the given backbone view class.\n<END>", "<BEGIN>\n## `queryset`", "Returns the queryset (along with ordering) to be used when retrieving object(s).\n<END>", "<BEGIN>\n## `ge...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the queryset API. 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 queryset API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
Returns the queryset (along with ordering) to be used when retrieving object(s).
"Returns the queryset (along with ordering) to be used when retrieving object(s)."
23
false
zmathew/django-backbone
queryset
18,264
LDU_FT/nion-software/nionswift-io/reorient
LDU_FT
[ "<BEGIN>\n## `imagedatadict_to_ndarray`", "Converts the ImageData dictionary, imdict, to an nd image.\n<END>", "<BEGIN>\n## `ndarray_to_imagedatadict`", "Convert the numpy array nparr into a suitable ImageList entry dictionary.\n Returns a dictionary with the appropriate Data, DataType, PixelDepth\n to ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the reorient API. 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 reorient API. 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 reoriented view of image array. Parameters ---------- image : numpy.ndarray Non-squeezed output of asarray() functions. Axes -3 and -2 must be image length and width respectively. orientation : int or str One of TIFF.ORIENTATION names or values.
"Return reoriented view of image array.\n\n Parameters\n ----------\n image : numpy.ndarray\n Non-squeezed output of asarray() functions.\n Axes -3 and -2 must be image length and width respectively.\n orientation : int or str\n One of TIFF.ORIENTATION names or values."
438
false
nion-software/nionswift-io
reorient
18,265
LDU_FT/e7dal/bubble3/step_undefined_step_snippets_should_exist_for_table
LDU_FT
[ "<BEGIN>\n## `cli`", "Show example for doing some task in bubble(experimental)\n<END>", "<BEGIN>\n## `cli`", "Bubble: command line tool for bubbling information between services", " .oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.\\n\n Making single point to point API connections:\\n\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the step_undefined_step_snippets_should_exist_for_table API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <E...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the step_undefined_step_snippets_should_exist_for_table API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <E...
Checks if undefined-step snippets are provided. EXAMPLE: Then undefined-step snippets should exist for: | Step | | When an undefined step is used | | Then another undefined step is used |
"Checks if undefined-step snippets are provided.\n\n EXAMPLE:\n Then undefined-step snippets should exist for:\n | Step |\n | When an undefined step is used |\n | Then another undefined step is used |"
171
false
e7dal/bubble3
step_undefined_step_snippets_should_exist_for_table
18,266
LDU_FT/mozilla/configman/datetime_from_ISO_string
LDU_FT
[ "<BEGIN>\n## `str_dict_keys`", "return a modified dict where all the keys that are anything but str get\n converted to str.\n E.g.", " >>> result = str_dict_keys({u'name': u'Peter', u'age': 99, 1: 2})\n >>> # can't compare whole dicts in doctests\n >>> result['name']\n u'Peter'\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the datetime_from_ISO_string 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 datetime_from_ISO_string API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio...
Take an ISO date string of the form YYYY-MM-DDTHH:MM:SS.S and convert it into an instance of datetime.datetime
"Take an ISO date string of the form YYYY-MM-DDTHH:MM:SS.S\n and convert it into an instance of datetime.datetime"
136
false
mozilla/configman
datetime_from_ISO_string
18,267
LDU_FT/fracpete/python-weka-wrapper/next
LDU_FT
[ "<BEGIN>\n## `next`", "Reads the next dataset row.", " :return: the next row\n :rtype: Instance\n<END>", "<BEGIN>\n## `main`", "Runs a associator from the command-line. Calls JVM start/stop automatically.\n Use -h to see all options.\n<END>", "<BEGIN>\n## `next`", "Returns the next rule...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the next API. 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 next API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
Returns the next attribute from the Instances object. :return: the next Attribute object :rtype: Attribute
"Returns the next attribute from the Instances object.\n\n :return: the next Attribute object\n :rtype: Attribute"
68
false
fracpete/python-weka-wrapper
next
18,268
LDU_FT/adrn/schwimmbad/map
LDU_FT
[ "<BEGIN>\n## `choose_pool`", "Choose between the different pools given options from, e.g., argparse.", " Parameters\n ----------\n mpi : bool, optional\n Use the MPI processing pool, :class:`~schwimmbad.mpi.MPIPool`. By\n default, ``False``, will use the :class:`~schwimmbad.serial.SerialP...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the map API. 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 map API. 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...
A wrapper around the built-in ``map()`` function to provide a consistent interface with the other ``Pool`` classes. Parameters ---------- worker : callable A function or callable object that is executed on each element of the specified ``tasks`` iterable. This ob...
"A wrapper around the built-in ``map()`` function to provide a\n consistent interface with the other ``Pool`` classes.\n\n Parameters\n ----------\n worker : callable\n A function or callable object that is executed on each element of\n the specified ``tasks`` iterable....
27
false
adrn/schwimmbad
map
18,269
LDU_FT/openstates/billy/activate_legislators
LDU_FT
[ "<BEGIN>\n## `decimal_format`", "Format a decimal.Decimal like to 2 decimal places.\n<END>", "<BEGIN>\n## `notification_preference`", "Display two radio buttons for turning notifications on or off.\n The default value is is have alerts_on = True.\n<END>", "<BEGIN>\n## `committee_object`", "If the commi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the activate_legislators 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 activate_legislators API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Sets the 'active' flag on legislators and populates top-level district/chamber/party fields for currently serving legislators.
"Sets the 'active' flag on legislators and populates top-level\n district/chamber/party fields for currently serving legislators."
168
false
openstates/billy
activate_legislators
18,270
LDU_FT/ioos/thredds_crawler/_yield_leaves
LDU_FT
[ "<BEGIN>\n## `request_xml`", "Returns an etree.XMLRoot object loaded from the url\n :param str url: URL for the resource to load as an XML\n<END>", "<BEGIN>\n## `_get_catalog_url`", "Returns the appropriate catalog URL by replacing html with xml in some\n cases\n :param str url: URL to the ca...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _yield_leaves API. 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 _yield_leaves API. 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...
Yields a URL corresponding to a leaf dataset for each dataset described by the catalog :param str url: URL for the current catalog :param lxml.etree.Eleemnt tree: Current XML Tree
"Yields a URL corresponding to a leaf dataset for each dataset described by the catalog\n :param str url: URL for the current catalog\n :param lxml.etree.Eleemnt tree: Current XML Tree"
12
false
ioos/thredds_crawler
_yield_leaves
18,271
LDU_FT/hayd/pep8radius/using_hg
LDU_FT
[ "<BEGIN>\n## `fix_file`", "Calls fix_code on the source code from the passed in file over the given\n line_ranges.", " - If diff then this returns the udiff for the changes, otherwise\n returns the fixed code.\n - If in_place the changes are written to the file.\n<END>", "<BEGIN>\n## `fix_code`", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the using_hg API. 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 using_hg API. 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...
Test whether the directory cwd is contained in a mercurial repository.
"Test whether the directory cwd is contained in a mercurial\n repository."
57
false
hayd/pep8radius
using_hg
18,272