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/jbloomlab/phydms/_dM
LDU_FT
[ "<BEGIN>\n## `maximizeLikelihood`", "Maximize the log likelihood.", " Maximizes log likelihood with respect to model parameters\n and potentially branch lengths depending on `optimize_brlen`.\n If optimizing the branch lengths, iterates between optimizing\n the model parameters and b...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _dM API. 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 _dM API. 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...
Returns derivative of matrix exponential.
"Returns derivative of matrix exponential."
294
false
jbloomlab/phydms
_dM
38,373
LDU_FT/scivision/histutils/arbanglemap
LDU_FT
[ "<BEGIN>\n## `cp_parents`", "This function requires Python >= 3.6.", " This acts like bash cp --parents in Python\n inspiration from\n http://stackoverflow.com/questions/15329223/copy-a-file-into-a-directory-with-its-original-leading-directories-appended", " example\n source: /tmp/e/f\n dest...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the arbanglemap API. 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 arbanglemap API. 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...
here's the center angle of each pixel ( + then - to go from biggest to smallest angle) (e.g. 94.5 deg to 85.5 deg. -- sweeping left to right)
"here's the center angle of each pixel ( + then - to go from biggest to\n smallest angle) (e.g. 94.5 deg to 85.5 deg. -- sweeping left to right)"
58
false
scivision/histutils
arbanglemap
38,374
LDU_FT/theosysbio/means/quick_solve
LDU_FT
[ "<BEGIN>\n## `simulate_system`", "Perform Gillespie SSA simulations and returns trajectories for of each species.\n Each trajectory is interpolated at the given time points.\n By default, the average amounts of species for all simulations is returned.", " :param parameters: list of the init...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the quick_solve API. 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 quick_solve API. 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...
r""" A function that tries to solve a very simple equation in the quickest way. For instance, an expression like :math: `2*a + 3*b + c == 0` needed to be solved for :math: `c` may be simply solved by stating :math: `c = -(2*a + 3*b)`. The function checks if the right hand side does not c...
"r\"\"\"\n A function that tries to solve a very simple equation in the quickest way.\n For instance, an expression like :math: `2*a + 3*b + c == 0` needed to be solved for :math: `c`\n may be simply solved by stating :math: `c = -(2*a + 3*b)`.\n The function checks if the right hand side do...
244
false
theosysbio/means
quick_solve
38,375
LDU_FT/wooga/play-deliver/list_dir_abspath
LDU_FT
[ "<BEGIN>\n## `list`", "convinent access method for list.", " service_name describes the endpoint to call\n the `list` function on.", " images.list or apks.list.\n<END>", "<BEGIN>\n## `build_params`", "build a params dictionary with current editId and packageName.", " use opti...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the list_dir_abspath API. 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 list_dir_abspath API. 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 absolute file paths. see mkdir_p os.listdir.
"Return a list absolute file paths.\n\n see mkdir_p os.listdir."
27
false
wooga/play-deliver
list_dir_abspath
38,376
LDU_FT/marrow/WebCore/render_generator
LDU_FT
[ "<BEGIN>\n## `_promote`", "Create a new subclass of Context which incorporates instance attributes and new descriptors.", "\t\tThis promotes an instance and its instance attributes up to being a class with class attributes, then\n\t\treturns an instance of that class.\n<END>", "<BEGIN>\n## `register`", "Reg...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the render_generator API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the render_generator API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Attempt to serve generator responses through stream encoding. This allows for direct use of cinje template functions, which are generators, as returned views.
"Attempt to serve generator responses through stream encoding.\n\t\t\n\t\tThis allows for direct use of cinje template functions, which are generators, as returned views."
90
false
marrow/WebCore
render_generator
38,377
LDU_FT/tipsi/tipsi_tools/update_gitlab_loop
LDU_FT
[ "<BEGIN>\n## `log_mon_value`", "simplest monitoring function to be aggregated with sum\n<END>", "<BEGIN>\n## `use_form`", "Validate request (query_params or request body with args from url) with serializer and pass\n validated data dict to the view function instead of request object.\n<END>", "<BEGIN>\n#...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update_gitlab_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. Th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update_gitlab_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. Th...
app = Sanic() mserver = MetricsServer(app) mserver.add_task(update_gitlab_loop, params={'url': GITLAB_URL, 'token': token})
"app = Sanic()\n mserver = MetricsServer(app)\n mserver.add_task(update_gitlab_loop, params={'url': GITLAB_URL, 'token': token})"
30
false
tipsi/tipsi_tools
update_gitlab_loop
38,378
LDU_FT/scott-maddox/openbandparams/Eg
LDU_FT
[ "<BEGIN>\n## `GaP_Eg_Gamma`", "Returns the Gamma-valley bandgap, Eg_Gamma, in electron Volts at a\n given temperature, T, in Kelvin (default: 300 K).", " GaP has a unique Gamma-gap temperature dependence.\n<END>", "<BEGIN>\n## `_has_x`", "Returns True if x is explicitly defined in kwargs\n<END>", "<...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the Eg API. 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 Eg API. 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...
Returns the strain-shifted bandgap, ``Eg``.
"Returns the strain-shifted bandgap, ``Eg``."
68
false
scott-maddox/openbandparams
Eg
38,379
LDU_FT/facebookresearch/fastText/get_line
LDU_FT
[ "<BEGIN>\n## `cpp_flag`", "Return the -std=c++[0x/11/14] compiler flag.\n The c++14 is preferred over c++0x/11 (when it is available).\n<END>", "<BEGIN>\n## `find_nearest_neighbor`", "query is a 1d numpy array corresponding to the vector to which you want to\n find the closest vector\n vectors is a 2...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_line API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_line API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
Split a line of text into words and labels. Labels must start with the prefix used to create the model (__label__ by default).
"Split a line of text into words and labels. Labels must start with\n the prefix used to create the model (__label__ by default)."
32
false
facebookresearch/fastText
get_line
38,380
LDU_FT/IS-ENES-Data/esgf-pid/logtrace
LDU_FT
[ "<BEGIN>\n## `logtrace`", "If esgfpid.defaults.LOG_TRACE_TO_DEBUG, messages are treated\n like debug messages (with an added [trace]).\n Otherwise, they are ignored.\n<END>", "<BEGIN>\n## `logdebug`", "Logs messages as DEBUG,\n unless show=True and esgfpid.defaults.LOG_SHOW_TO_INFO=True,\n (then i...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the logtrace API. 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 logtrace API. 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...
If esgfpid.defaults.LOG_TRACE_TO_DEBUG, messages are treated like debug messages (with an added [trace]). Otherwise, they are ignored.
"If esgfpid.defaults.LOG_TRACE_TO_DEBUG, messages are treated\n like debug messages (with an added [trace]).\n Otherwise, they are ignored."
67
false
IS-ENES-Data/esgf-pid
logtrace
38,381
LDU_FT/linkhub-sdk/popbill.py/getChargeInfo
LDU_FT
[ "<BEGIN>\n## `getSenderNumberMgtURL`", "팩스 전송내역 팝업 URL\n args\n CorpNum : 회원 사업자번호\n UserID : 회원 팝빌아이디\n return\n 30초 보안 토큰을 포함한 url\n raise\n PopbillException\n<END>", "<BEGIN>\n## `getUnitCost`", "팩스 전송 단가 확인\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the getChargeInfo API. 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 getChargeInfo API. 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...
과금정보 확인 args CorpNum : 회원 사업자번호 ItemCode : 전자명세서 종류코드 UserID : 팝빌 회원아이디 return 과금정보 객체 raise PopbillException
"과금정보 확인\r\n args\r\n CorpNum : 회원 사업자번호\r\n ItemCode : 전자명세서 종류코드\r\n UserID : 팝빌 회원아이디\r\n return\r\n 과금정보 객체\r\n raise\r\n PopbillException"
216
false
linkhub-sdk/popbill.py
getChargeInfo
38,382
LDU_FT/PatrikValkovic/grammpy/_create_class
LDU_FT
[ "<BEGIN>\n## `reverse_cyk_transforms`", "Reverse transformation made to grammar before CYK.\n Performs following steps:\n - transform from chomsky normal form\n - restore unit rules\n - restore epsilon rules\n :param root: Root node of the parsed tree.\n :return: Restored...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _create_class API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _create_class API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
Create subtype of SplitRule based on rule. :param rule: Rule from which the SplitRule derive. :param index: Index of the rule (in original Rule class) to use for SplitRule. :return: Class inherited from SplitRule representing rule at index.
"Create subtype of SplitRule based on rule.\n :param rule: Rule from which the SplitRule derive.\n :param index: Index of the rule (in original Rule class) to use for SplitRule.\n :return: Class inherited from SplitRule representing rule at index."
126
false
PatrikValkovic/grammpy
_create_class
38,383
LDU_FT/iterative/dvc/load
LDU_FT
[ "<BEGIN>\n## `_get_remote`", "The config file is stored in a way that allows you to have a\n cache for each remote.", " This is needed when specifying external outputs\n (as they require you to have an external cache location).", " Imagine a config file like the following:", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
Loads analytics report from json file specified by path. Args: path (str): path to json file with analytics report.
"Loads analytics report from json file specified by path.\n\n Args:\n path (str): path to json file with analytics report."
269
false
iterative/dvc
load
38,384
LDU_FT/mozilla/configman/create_key_translating_dot_dict
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 create_key_translating_dot_dict API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its co...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_key_translating_dot_dict API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its co...
this function will generate a DotDict derivative class that has key translation built in. If the key is not found, translations (as specified by the translation_tuples) are performed on the key and the lookup is tried again. Only on failure of this second lookup will the KeyError exception be raised. ...
"this function will generate a DotDict derivative class that has key\n translation built in. If the key is not found, translations (as specified\n by the translation_tuples) are performed on the key and the lookup is\n tried again. Only on failure of this second lookup will the KeyError\n exception be rai...
136
false
mozilla/configman
create_key_translating_dot_dict
38,385
LDU_FT/mirceaulinic/pypluribus/compare
LDU_FT
[ "<BEGIN>\n## `open`", "Opens a SSH connection with a Pluribus machine.\n<END>", "<BEGIN>\n## `close`", "Closes the SSH connection if the connection is UP.\n<END>", "<BEGIN>\n## `cli`", "Executes a command and returns raw output from the CLI.", " :param command: Command to be executed on the CLI.\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the compare API. 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 compare API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
Computes the difference between the candidate config and the running config.
"Computes the difference between the candidate config and the running config."
35
false
mirceaulinic/pypluribus
compare
38,386
LDU_FT/475Cumulus/TBone/create
LDU_FT
[ "<BEGIN>\n## `request_args`", "Returns the arguments passed with the request in a dictionary.\n Returns both URL resolved arguments and query string arguments.\n<END>", "<BEGIN>\n## `connect`", "Connects a signal to a receiver function", " :param receiver:\n The callback function wh...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create API. 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 create API. 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 ...
Override the create method to add the user's id to the request data
"Override the create method to add the user's id to the request data"
100
false
475Cumulus/TBone
create
38,387
LDU_FT/klavinslab/coral/subopt
LDU_FT
[ "<BEGIN>\n## `sequence_type`", "Validates a coral.sequence data type.", " :param sequence_in: input DNA sequence.\n :type sequence_in: any\n :returns: The material - 'dna', 'rna', or 'peptide'.\n :rtype: str\n :raises: ValueError\n<END>", "<BEGIN>\n## `pcr`", "Simulate a PCR.", " :param ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the subopt API. 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 subopt API. 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 ...
Compute the suboptimal structures within a defined energy gap of the MFE. Runs the \'subopt\' command. :param strand: Strand on which to run subopt. Strands must be either coral.DNA or coral.RNA). :type strand: coral.DNA or coral.RNA :param gap: Energy gap within ...
"Compute the suboptimal structures within a defined energy gap of the\n MFE. Runs the \\'subopt\\' command.\n\n :param strand: Strand on which to run subopt. Strands must be either\n coral.DNA or coral.RNA).\n :type strand: coral.DNA or coral.RNA\n :param gap: Energy ga...
364
false
klavinslab/coral
subopt
38,388
LDU_FT/django-salesforce/django-salesforce/transform_except_subquery
LDU_FT
[ "<BEGIN>\n## `db_for_write`", "If given some hints['instance'] that is saved in a db, use related\n fields from the same db. Otherwise if passed a class or instance to\n model, return the salesforce alias if it's a subclass of SalesforceModel.\n<END>", "<BEGIN>\n## `allow_migrate`", "Don't attem...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the transform_except_subquery API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the transform_except_subquery API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi...
Call a func on every part of SOQL query except nested (SELECT ...)
"Call a func on every part of SOQL query except nested (SELECT ...)"
138
false
django-salesforce/django-salesforce
transform_except_subquery
38,389
LDU_FT/staggerpkg/stagger/xread
LDU_FT
[ "<BEGIN>\n## `_in_version`", "Returns true if this frame is in any of the specified versions of ID3.\n<END>", "<BEGIN>\n## `check_tag_data`", "Raise a ValueError if DATA doesn't seem to be a well-formed ID3 tag.\n<END>", "<BEGIN>\n## `get_raw_tag_data`", "Return the ID3 tag in FILENAME as a raw byte strin...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the xread API. 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 xread API. 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...
Read exactly length bytes from file; raise EOFError if file ends sooner.
"Read exactly length bytes from file; raise EOFError if file ends sooner."
47
false
staggerpkg/stagger
xread
38,390
LDU_FT/payu-org/payu/um_date_to_date
LDU_FT
[ "<BEGIN>\n## `set_model_pathnames`", "Define the paths associated with this model.\n<END>", "<BEGIN>\n## `archive`", "Store model output to laboratory archive.\n<END>", "<BEGIN>\n## `parse`", "Parse the command line inputs and execute the subcommand.\n<END>", "<BEGIN>\n## `get_model_type`", "Determine...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the um_date_to_date API. 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 um_date_to_date API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
Convert a string with format 'year, month, day, hour, minute, second' to a datetime date.
"Convert a string with format 'year, month, day, hour, minute, second'\n to a datetime date."
78
false
payu-org/payu
um_date_to_date
38,391
LDU_FT/druids/django-chamber/get_group_permissions
LDU_FT
[ "<BEGIN>\n## `get_class_method`", "Returns a method from a given class or instance. When the method doest not exist, it returns `None`. Also works with\n properties and cached properties.\n<END>", "<BEGIN>\n## `model_to_dict`", "The same implementation as django model_to_dict but editable fields are allowe...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_group_permissions 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_group_permissions API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Returns a set of permission strings that this user has through his/her groups.
"Returns a set of permission strings that this user has through his/her\n groups."
38
false
druids/django-chamber
get_group_permissions
38,392
LDU_FT/chop-dbhi/varify/set_cell_value
LDU_FT
[ "<BEGIN>\n## `set_cell_value`", "Convenience method for setting the value of an openpyxl cell", " This is necessary since the value property changed from internal_value\n to value between version 1.* and 2.*.\n<END>", "<BEGIN>\n## `get_change_type`", "Given ref, allele1, and allele2, returns the type ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_cell_value API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_cell_value API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
Convenience method for setting the value of an openpyxl cell This is necessary since the value property changed from internal_value to value between version 1.* and 2.*.
"Convenience method for setting the value of an openpyxl cell\n\n This is necessary since the value property changed from internal_value\n to value between version 1.* and 2.*."
27
false
chop-dbhi/varify
set_cell_value
38,393
LDU_FT/shreyaspotnis/rampage/set_output
LDU_FT
[ "<BEGIN>\n## `updateAllKeys`", "Update times for all keys in the layout.\n<END>", "<BEGIN>\n## `set_output`", "Sets whether the function generator is outputting a voltage.\n<END>", "<BEGIN>\n## `set_fm_ext`", "Sets the func generator to frequency modulation with external modulation.\n freq is the c...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_output API. 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 set_output API. 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...
Sets whether the function generator is outputting a voltage.
"Sets whether the function generator is outputting a voltage."
90
false
shreyaspotnis/rampage
set_output
38,394
LDU_FT/Valassis-Digital-Media/spylon/keyfilter
LDU_FT
[ "<BEGIN>\n## `as_iterable`", "Utility for converting an object to an iterable.", " Parameters\n ----------\n iterable_or_scalar : anything", " Returns\n -------\n l : iterable\n If `obj` was None, return the empty tuple.\n If `obj` was not iterable returns a 1-tuple containing ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the keyfilter API. 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 keyfilter API. 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...
Filter items in dictionary by key >>> iseven = lambda x: x % 2 == 0 >>> d = {1: 2, 2: 3, 3: 4, 4: 5} >>> keyfilter(iseven, d) {2: 3, 4: 5} See Also: valfilter itemfilter keymap
"Filter items in dictionary by key\n\n >>> iseven = lambda x: x % 2 == 0\n >>> d = {1: 2, 2: 3, 3: 4, 4: 5}\n >>> keyfilter(iseven, d)\n {2: 3, 4: 5}\n\n See Also:\n valfilter\n itemfilter\n keymap"
96
false
Valassis-Digital-Media/spylon
keyfilter
38,395
LDU_FT/summa-tx/riemann/find
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 find API. 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 find API. 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...
byte-like -> int Finds the index of substring
"byte-like -> int\n Finds the index of substring"
132
false
summa-tx/riemann
find
38,396
LDU_FT/marcharper/python-ternary/simplex_iterator
LDU_FT
[ "<BEGIN>\n## `normalize`", "Normalizes input list.", " Parameters\n ----------\n l: list\n The list to be normalized", " Returns\n -------\n The normalized list or numpy array", " Raises\n ------\n ValueError, if the list sums to zero\n<END>", "<BEGIN>\n## `simplex_iterat...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the simplex_iterator API. 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 simplex_iterator API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Systematically iterates through a lattice of points on the 2-simplex. Parameters ---------- scale: Int The normalized scale of the simplex, i.e. N such that points (x,y,z) satisify x + y + z == N boundary: bool, True Include the boundary points (tuples where at least one ...
"Systematically iterates through a lattice of points on the 2-simplex.\n\n Parameters\n ----------\n scale: Int\n The normalized scale of the simplex, i.e. N such that points (x,y,z)\n satisify x + y + z == N\n\n boundary: bool, True\n Include the boundary points (tuples where at least ...
179
false
marcharper/python-ternary
simplex_iterator
38,397
LDU_FT/RudolfCardinal/pythonlib/atoi
LDU_FT
[ "<BEGIN>\n## `pdb_run`", "Calls ``func(*args, **kwargs)``; if it raises an exception, break into\n the ``pdb`` debugger.\n<END>", "<BEGIN>\n## `get_class_name_from_frame`", "A frame contains information about a specific call in the Python call\n stack; see https://docs.python.org/3/library/inspect.html....
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the atoi API. 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 atoi API. 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...
Converts strings to integers if they're composed of digits; otherwise returns the strings unchanged. One way of sorting strings with numbers; it will mean that ``"11"`` is more than ``"2"``.
"Converts strings to integers if they're composed of digits; otherwise\n returns the strings unchanged. One way of sorting strings with numbers;\n it will mean that ``\"11\"`` is more than ``\"2\"``."
2,517
true
RudolfCardinal/pythonlib
atoi
38,398
LDU_FT/etingof/pyasn1/getComponent
LDU_FT
[ "<BEGIN>\n## `isSameTypeWith`", "Examine |ASN.1| type for equality with other ASN.1 type.", " ASN.1 tags (:py:mod:`~pyasn1.type.tag`) and constraints\n (:py:mod:`~pyasn1.type.constraint`) are examined when carrying\n out ASN.1 types comparison.", " Python class inheritance relation...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the getComponent API. 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 getComponent API. 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 currently assigned component of the |ASN.1| object. Returns ------- : :py:class:`~pyasn1.type.base.PyAsn1Item` a PyASN1 object
"Return currently assigned component of the |ASN.1| object.\n\n Returns\n -------\n : :py:class:`~pyasn1.type.base.PyAsn1Item`\n a PyASN1 object"
239
false
etingof/pyasn1
getComponent
38,399
LDU_FT/chainer/chainerui/create
LDU_FT
[ "<BEGIN>\n## `create`", "Initialize an instance and save it to db.\n<END>", "<BEGIN>\n## `sampled_logs`", "Return up to `logs_limit` logs.", " If `logs_limit` is -1, this function will return all logs that belong\n to the result.\n<END>", "<BEGIN>\n## `serialize_with_sampled_logs`", "seria...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create API. 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 create API. 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 ...
initialize an instance and save it to db.
"initialize an instance and save it to db."
53
false
chainer/chainerui
create
38,400
LDU_FT/joferkington/mplstereonet/density_contour
LDU_FT
[ "<BEGIN>\n## `subplots`", "Identical to matplotlib.pyplot.subplots, except that this will default to\n producing equal-area stereonet axes.", " This prevents constantly doing:", " >>> fig, ax = plt.subplot(subplot_kw=dict(projection='stereonet'))", " or", " >>> fig = plt.figure()\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the density_contour API. 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 density_contour API. 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...
Estimates point density of the given linear orientation measurements (Interpreted as poles, lines, rakes, or "raw" longitudes and latitudes based on the `measurement` keyword argument.) and plots contour lines of the resulting density distribution. Parameters ---------- ...
"Estimates point density of the given linear orientation measurements\n (Interpreted as poles, lines, rakes, or \"raw\" longitudes and latitudes\n based on the `measurement` keyword argument.) and plots contour lines of\n the resulting density distribution.\n\n Parameters\n ----------...
362
false
joferkington/mplstereonet
density_contour
38,401
LDU_FT/limix/limix-core/solve_chol
LDU_FT
[ "<BEGIN>\n## `addFixedEffect`", "set sample and trait designs\n F: NxK sample design\n A: LxP sample design\n REML: REML for this term?\n index: index of which fixed effect to replace. If None, just append.\n<END>", "<BEGIN>\n## `removeFixedEffect`", "set sample and tr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the solve_chol API. 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 solve_chol API. 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...
Solve cholesky decomposition:: return A\(A'\B)
"Solve cholesky decomposition::\n\n return A\\(A'\\B)"
61
false
limix/limix-core
solve_chol
38,402
LDU_FT/morngrar/betterdialogs/buttons
LDU_FT
[ "<BEGIN>\n## `load_image`", "Takes a tk.Canvas and a filepath, loads image into canvas\n<END>", "<BEGIN>\n## `load_image`", "Loads new image into canvas, updating size if needed.\n<END>", "<BEGIN>\n## `parse_geometry`", "Takes a geometry string, returns map of parameters.\n<END>", "<BEGIN>\n## `buttons`...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the buttons API. 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 buttons API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
Adds 'OK' and 'Cancel' buttons to standard button frame. Override if need for different configuration.
"Adds 'OK' and 'Cancel' buttons to standard button frame.\n\n Override if need for different configuration."
20
false
morngrar/betterdialogs
buttons
38,403
LDU_FT/noahbenson/neuropythy/calc_initial_state
LDU_FT
[ "<BEGIN>\n## `guess_import_format`", "guess_import_format(filename) attempts to guess the file format for the given filename; it does\n this guessing by looking at the file extension and using registered sniff-tests from\n importers. It will not attempt to load the file, so if the extension of the filen...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the calc_initial_state API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the calc_initial_state API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
calc_initial_state is a calculator that prepares the initial state of the registration process. The initial state consists of a flattened 2D mesh ('native_map') that has been made from the initial cortex, and a 'registration_map', on which registration is to be performed. The former of these two meshes will...
"calc_initial_state is a calculator that prepares the initial state of the registration process.\n The initial state consists of a flattened 2D mesh ('native_map') that has been made from the\n initial cortex, and a 'registration_map', on which registration is to be performed. The former\n of these two meshes ...
815
false
noahbenson/neuropythy
calc_initial_state
38,404
LDU_FT/Nixiware/viper/getModel
LDU_FT
[ "<BEGIN>\n## `send`", "Sends an email using the SMTP connection.", " :param recipient: <tuple> recipient's email address as the first element and their name as an optional second\n element\n :param subject: <str> mail subject\n :param message: <str> mail content (...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the getModel API. 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 getModel API. 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 the requested model. :param modelIdentifier: <str> model identifier :return: <object> model instance
"Return the requested model.\n\n :param modelIdentifier: <str> model identifier\n :return: <object> model instance"
72
false
Nixiware/viper
getModel
38,405
LDU_FT/jaijuneja/PyTLDR/_compute_matrix
LDU_FT
[ "<BEGIN>\n## `summarize`", "Implements the TextRank summarization algorithm, which follows closely to the PageRank algorithm for ranking\n web pages.", " :param text: a string of text to be summarized, path to a text file, or URL starting with http\n :param length: the length of the output ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _compute_matrix API. 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 _compute_matrix API. 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...
Compute the matrix of term frequencies given a list of sentences
"Compute the matrix of term frequencies given a list of sentences"
30
false
jaijuneja/PyTLDR
_compute_matrix
38,406
LDU_FT/foutaise/texttable/_fmt_float
LDU_FT
[ "<BEGIN>\n## `obj2unicode`", "Return a unicode representation of a python object\n<END>", "<BEGIN>\n## `len`", "Redefining len here so it will be able to work with non-ASCII characters\n<END>", "<BEGIN>\n## `set_chars`", "Set the characters used to draw lines between rows and columns", " - the ar...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _fmt_float API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _fmt_float API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
Float formatting class-method. - x parameter is ignored. Instead kw-argument f being x float-converted will be used. - precision will be taken from `n` kw-argument.
"Float formatting class-method.\n\n - x parameter is ignored. Instead kw-argument f being x float-converted\n will be used.\n\n - precision will be taken from `n` kw-argument."
65
false
foutaise/texttable
_fmt_float
38,407
LDU_FT/eddiejessup/agaro/run_model
LDU_FT
[ "<BEGIN>\n## `get_average_measure`", "Calculate a measure of a model in an output directory, averaged over\n all times when the model is at steady-state.", " Parameters\n ----------\n dirname: str\n Output directory\n measure_func: function\n Function which takes a :class:`Model` in...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the run_model API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the run_model API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
Convenience function to combine making a Runner object, and running it for some time. Parameters ---------- m: Model Model to run. iterate_args: Arguments to pass to :meth:`Runner.iterate`. Others: see :class:`Runner`. Returns ------- r: Runner runne...
"Convenience function to combine making a Runner object, and\n running it for some time.\n\n Parameters\n ----------\n m: Model\n Model to run.\n iterate_args:\n Arguments to pass to :meth:`Runner.iterate`.\n Others:\n see :class:`Runner`.\n\n Returns\n -------\n r: Runne...
62
false
eddiejessup/agaro
run_model
38,408
LDU_FT/jcrist/skein/update
LDU_FT
[ "<BEGIN>\n## `add_page`", "Add a new proxied page to the Web UI.", " Parameters\n ----------\n route : str\n The route for the proxied page. Must be a valid path *segment* in a\n url (e.g. ``foo`` in ``/foo/bar/baz``). Routes must be unique\n across the appl...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Compute the next element in the stream, and update the plot data
"Compute the next element in the stream, and update the plot data"
153
false
jcrist/skein
update
38,409
LDU_FT/debrouwere/google-analytics/complete
LDU_FT
[ "<BEGIN>\n## `serialize`", "Greedy serialization requires the value to either be a column\n or convertible to a column, whereas non-greedy serialization\n will pass through any string as-is and will only serialize\n Column objects.", " Non-greedy serialization is useful when preparin...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the complete API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the complete API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
Complete credentials are valid and are either two-legged or include a token.
"Complete credentials are valid and are either two-legged or include a token."
76
false
debrouwere/google-analytics
complete
38,410
LDU_FT/abhinav/reversible/backwards
LDU_FT
[ "<BEGIN>\n## `gen`", "Allows using a generator to chain together reversible actions.", " This decorator may be added to a generator that yields reversible actions\n (any object with a ``.forwards()`` and ``.backwards()`` method). These may\n be constructed manually or via :py:func:`reversible.action`. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the backwards API. 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 backwards API. 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...
Decorator to specify the ``backwards`` action.
"Decorator to specify the ``backwards`` action."
60
false
abhinav/reversible
backwards
38,411
LDU_FT/Basic-Components/msgpack-rpc-protocol/_make_query
LDU_FT
[ "<BEGIN>\n## `add_status_code`", "用于将mprpc的标准异常注册到`_mprpc_exceptions`的装饰器.", " Parameters:\n code (int): - 标准状态码\n Return:\n (Callable): - 装饰函数\n<END>", "<BEGIN>\n## `abort`", "根据状态码创建一个异常.", " Parameters:\n status_code (int): - 错误的状态码\n ID (str): - 任务的ID号,通常是一个uuid,默认...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _make_query API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _make_query API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
将调用请求的ID,方法名,参数包装为请求数据. Parameters: ID (str): - 任务ID methodname (str): - 要调用的方法名 args (Any): - 要调用的方法的位置参数 kwargs (Any): - 要调用的方法的关键字参数 Return: (Dict[str, Any]) : - 请求的python字典形式
"将调用请求的ID,方法名,参数包装为请求数据.\n\n Parameters:\n ID (str): - 任务ID\n methodname (str): - 要调用的方法名\n args (Any): - 要调用的方法的位置参数\n kwargs (Any): - 要调用的方法的关键字参数\n\n Return:\n (Dict[str, Any]) : - 请求的python字典形式"
202
false
Basic-Components/msgpack-rpc-protocol
_make_query
38,412
LDU_FT/fishtown-analytics/dbt/add_queue_handler
LDU_FT
[ "<BEGIN>\n## `patch`", "Given a ParsedNodePatch, add the new information to the node.\n<END>", "<BEGIN>\n## `build_edges`", "Build the forward and backward edges on the given list of ParsedNodes\n and return them as two separate dictionaries, each mapping unique IDs to\n lists of edges.\n<END>", "<BEG...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_queue_handler API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_queue_handler API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Add a queue log handler to the global logger.
"Add a queue log handler to the global logger."
419
false
fishtown-analytics/dbt
add_queue_handler
38,413
LDU_FT/jaijuneja/PyTLDR/tokenize_paragraphs
LDU_FT
[ "<BEGIN>\n## `summarize`", "Implements the TextRank summarization algorithm, which follows closely to the PageRank algorithm for ranking\n web pages.", " :param text: a string of text to be summarized, path to a text file, or URL starting with http\n :param length: the length of the output ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the tokenize_paragraphs 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 tokenize_paragraphs API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
Convert an input string into a list of paragraphs.
"Convert an input string into a list of paragraphs."
30
false
jaijuneja/PyTLDR
tokenize_paragraphs
38,414
LDU_FT/callowayproject/django-categories/get_category_drilldown
LDU_FT
[ "<BEGIN>\n## `_process_registry`", "Given a dictionary, and a registration function, process the registry\n<END>", "<BEGIN>\n## `register_model`", "Process for Django 1.7 +\n app: app name/label\n model_name: name of the model\n field_definitions: a string, tuple or list of field configur...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_category_drilldown 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_category_drilldown API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
Retrieves the specified category, its ancestors and its immediate children as an iterable. Syntax:: {% get_category_drilldown "category name" [using "app.Model"] as varname %} Example:: {% get_category_drilldown "/Grandparent/Parent" [using "app.Model"] as family %} or :: {...
"Retrieves the specified category, its ancestors and its immediate children\n as an iterable.\n\n Syntax::\n\n {% get_category_drilldown \"category name\" [using \"app.Model\"] as varname %}\n\n Example::\n\n {% get_category_drilldown \"/Grandparent/Parent\" [using \"app.Model\"] as family %}\n\n...
73
false
callowayproject/django-categories
get_category_drilldown
38,415
LDU_FT/gboeing/osmnx/get_polygons_coordinates
LDU_FT
[ "<BEGIN>\n## `config`", "Configure osmnx by setting the default global vars to desired values.", " Parameters\n ---------\n data_folder : string\n where to save and load data files\n logs_folder : string\n where to write the log files\n imgs_folder : string\n where to save fi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_polygons_coordinates API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_polygons_coordinates API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio...
Extract exterior coordinates from polygon(s) to pass to OSM in a query by polygon. Ignore the interior ("holes") coordinates. Parameters ---------- geometry : shapely Polygon or MultiPolygon the geometry to extract exterior coordinates from Returns ------- polygon_coord_strs : list
"Extract exterior coordinates from polygon(s) to pass to OSM in a query by\n polygon. Ignore the interior (\"holes\") coordinates.\n\n Parameters\n ----------\n geometry : shapely Polygon or MultiPolygon\n the geometry to extract exterior coordinates from\n\n Returns\n -------\n polygon_coor...
479
false
gboeing/osmnx
get_polygons_coordinates
38,416
LDU_FT/mbakker7/timml/headgrid2
LDU_FT
[ "<BEGIN>\n## `plot`", "Plot layout", " Parameters\n ----------", " win : list or tuple\n [x1, x2, y1, y2]\n<END>", "<BEGIN>\n## `contour`", "Contour plot", " Parameters\n ----------", " win : list or tuple\n [x1, x2, y1, y2]\n ngr ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the headgrid2 API. 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 headgrid2 API. 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...
Grid of heads Parameters ---------- x1, x2, nx : x values are generated as linspace(x1, x2, nx) y1, y2, ny : y values are generated as linspace(y1, y2, ny) layers : integer, list or array, optional layers for which grid is returned ...
"Grid of heads\n \n Parameters\n ----------\n x1, x2, nx : \n x values are generated as linspace(x1, x2, nx)\n y1, y2, ny : \n y values are generated as linspace(y1, y2, ny)\n layers : integer, list or array, optional\n layers for which grid is ...
82
false
mbakker7/timml
headgrid2
38,417
LDU_FT/NLeSC/scriptcwl/to_obj
LDU_FT
[ "<BEGIN>\n## `load_steps`", "Return a dictionary containing Steps read from file.", " Args:\n steps_dir (str, optional): path to directory containing CWL files.\n step_file (str, optional): path or http(s) url to a single CWL file.\n step_list (list, optional): a list of directories, url...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the to_obj API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the to_obj API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Return the created workflow as a dict. The dict can be written to a yaml file. Returns: A yaml-compatible dict representing the workflow.
"Return the created workflow as a dict.\n\n The dict can be written to a yaml file.\n\n Returns:\n A yaml-compatible dict representing the workflow."
85
false
NLeSC/scriptcwl
to_obj
38,418
LDU_FT/jazzband/sorl-thumbnail/get_image_ratio
LDU_FT
[ "<BEGIN>\n## `is_valid_image`", "Wand library makes sure when opening any image that is fine, when\n the image is corrupted raises an exception.\n<END>", "<BEGIN>\n## `parse_geometry`", "Parses a geometry string syntax and returns a (width, height) tuple\n<END>", "<BEGIN>\n## `parse_crop`", "Return...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_image_ratio API. 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_image_ratio API. 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...
Calculates the image ratio. If cropbox option is used, the ratio may have changed.
"Calculates the image ratio. If cropbox option is used, the ratio\n may have changed."
68
false
jazzband/sorl-thumbnail
get_image_ratio
38,419
LDU_FT/scikit-hep/root_numpy/generate_file_rst
LDU_FT
[ "<BEGIN>\n## `matrix`", "Convert a ROOT TMatrix into a NumPy matrix.", " Parameters\n ----------\n mat : ROOT TMatrixT\n A ROOT TMatrixD or TMatrixF", " Returns\n -------\n mat : numpy.matrix\n A NumPy matrix", " Examples\n --------\n >>> from root_numpy import matri...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the generate_file_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...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the generate_file_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...
Generate the rst file for a given example.
"Generate the rst file for a given example."
180
false
scikit-hep/root_numpy
generate_file_rst
38,420
LDU_FT/saeschdivara/ArangoPy/retrieve
LDU_FT
[ "<BEGIN>\n## `all`", "Returns all documents of the collection", " :param collection Collection instance\n :param skip The number of documents to skip in the query\n :param limit The maximal amount of documents to return. The skip is applied before the limit restriction.", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the retrieve API. 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 retrieve API. 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...
Retrieves all data for this document and saves it.
"Retrieves all data for this document and saves it."
115
false
saeschdivara/ArangoPy
retrieve
38,421
LDU_FT/alfredodeza/notario/key_leaf
LDU_FT
[ "<BEGIN>\n## `create_store`", "A helper for setting the _proxy and slapping the store\n object for us.", " :return: A thread-local storage as a dictionary\n<END>", "<BEGIN>\n## `string`", "Validates a given input is of type string.", " Example usage::", " data = {'a' : 21}\n schem...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the key_leaf API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the key_leaf API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
The deepest validation we can make in any given circumstance for a key. Does not recurse, it will just receive both values and the tree, passing them on to the :fun:`enforce` function.
"The deepest validation we can make in any given circumstance for a key.\n Does not recurse, it will just receive both values and the tree,\n passing them on to the :fun:`enforce` function."
86
false
alfredodeza/notario
key_leaf
38,422
LDU_FT/xflr6/graphviz/edges
LDU_FT
[ "<BEGIN>\n## `command`", "Return args list for ``subprocess.Popen`` and name of the rendered file.\n<END>", "<BEGIN>\n## `run`", "Run the command described by cmd and return its (stdout, stderr) tuple.\n<END>", "<BEGIN>\n## `render`", "Render file with Graphviz ``engine`` into ``format``, return result f...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the edges API. 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 edges API. 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...
Create a bunch of edges. Args: tail_head_iter: Iterable of ``(tail_name, head_name)`` pairs.
"Create a bunch of edges.\n\n Args:\n tail_head_iter: Iterable of ``(tail_name, head_name)`` pairs."
93
false
xflr6/graphviz
edges
38,423
LDU_FT/nitely/django-hooks/send
LDU_FT
[ "<BEGIN>\n## `register`", "Register a new hook. Not required (see :py:func:`.connect` method)", " :param str name: The hook name\n :return: Django signal\n :rtype: :py:class:`django.dispatch.Signal`\n<END>", "<BEGIN>\n## `connect`", "Connects a function to a hook.\\\n Creates the...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the send API. 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 send API. 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...
Sends the signal. Return every function response\ that was hooked to hook-name as a list: [(func, response), ] :param str name: The hook name :param class sender: Optional sender __class__ to which\ registered callback should match (see :py:func:`.connect` method) :return: Signa...
"Sends the signal. Return every function response\\\n that was hooked to hook-name as a list: [(func, response), ]\n\n :param str name: The hook name\n :param class sender: Optional sender __class__ to which\\\n registered callback should match (see :py:func:`.connect` method)\n :retu...
39
false
nitely/django-hooks
send
38,424
LDU_FT/bear/parsedatetime/_buildTime
LDU_FT
[ "<BEGIN>\n## `_parse_date_rfc822`", "Parse an RFC822, RFC1123, RFC2822, or asctime-style date\n<END>", "<BEGIN>\n## `_initSymbols`", "Initialize symbols and single character constants.\n<END>", "<BEGIN>\n## `_convertUnitAsWords`", "Converts text units into their number value.", " @type unitText:...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _buildTime API. 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 _buildTime API. 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...
Take C{quantity}, C{modifier} and C{unit} strings and convert them into values. After converting, calcuate the time and return the adjusted sourceTime. @type source: time @param source: time to use as the base (or source) @type quantity: string @param quantity: qua...
"Take C{quantity}, C{modifier} and C{unit} strings and convert them\n into values. After converting, calcuate the time and return the\n adjusted sourceTime.\n\n @type source: time\n @param source: time to use as the base (or source)\n @type quantity: string\n @param quant...
131
false
bear/parsedatetime
_buildTime
38,425
LDU_FT/apetrynet/pyfilemail/add_files
LDU_FT
[ "<BEGIN>\n## `not_completed`", "Decorator function to check if user is loged in.", " :raises: :class:`FMBaseError` if not logged in\n<END>", "<BEGIN>\n## `_parse_recipients`", "Make sure we have a \",\" separated list of recipients", " :param to: Recipient(s)\n :type to: (str,\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_files API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_files API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
Add files and/or folders to transfer. If :class:`Transfer.compress` attribute is set to ``True``, files will get packed into a zip file before sending. :param files: Files or folders to send :type files: str, list
"Add files and/or folders to transfer.\n If :class:`Transfer.compress` attribute is set to ``True``, files\n will get packed into a zip file before sending.\n\n :param files: Files or folders to send\n :type files: str, list"
116
false
apetrynet/pyfilemail
add_files
38,426
LDU_FT/noxdafox/clipspy/cardinality
LDU_FT
[ "<BEGIN>\n## `accessible`", "True if the Slot is directly accessible.\n<END>", "<BEGIN>\n## `types`", "A tuple containing the value types for this Slot.", " The Python equivalent of the CLIPS slot-types function.\n<END>", "<BEGIN>\n## `sources`", "A tuple containing the names of the Class sources...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the cardinality API. 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 cardinality API. 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...
A tuple containing the cardinality for this Slot. The Python equivalent of the CLIPS deftemplate-slot-cardinality function.
"A tuple containing the cardinality for this Slot.\n\n The Python equivalent\n of the CLIPS deftemplate-slot-cardinality function."
209
false
noxdafox/clipspy
cardinality
38,427
LDU_FT/NearHuscarl/py-currency/read
LDU_FT
[ "<BEGIN>\n## `read`", "parameter: file_path - path to cache file\n\treturn: data after parsing json file\n<END>", "<BEGIN>\n## `write`", "write data to cache file\n\tparameters:\n\t\tcache_path - path to cache file\n\t\tcontent - a data structure to save into cache file\n<END>", "<BEGIN>\n## `validate_curre...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the read API. 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 read API. 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...
parameter: file_path - path to cache file return: data after parsing json file
"parameter: file_path - path to cache file\n\treturn: data after parsing json file"
18
false
NearHuscarl/py-currency
read
38,428
LDU_FT/elsampsa/valkka-live/getDevicesById
LDU_FT
[ "<BEGIN>\n## `run`", "After the fork. Now the process starts running\n<END>", "<BEGIN>\n## `preRun_`", "Create the shared memory client immediately after fork\n<END>", "<BEGIN>\n## `run`", "After the fork. Now the process starts running\n<END>", "<BEGIN>\n## `activate_`", "Shared mem info is given. N...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the getDevicesById API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the getDevicesById API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
rows = self.camera_collection.get(query) devices_by_id = {} for row in rows: row.pop("classname") device = DataModel.RTSPCameraDevice(**row) devices_by_id[device._id] = device return devices_by_id
"rows = self.camera_collection.get(query)\n devices_by_id = {}\n for row in rows:\n row.pop(\"classname\")\n device = DataModel.RTSPCameraDevice(**row)\n devices_by_id[device._id] = device\n return devices_by_id"
135
false
elsampsa/valkka-live
getDevicesById
38,429
LDU_FT/bitesofcode/projex/pad
LDU_FT
[ "<BEGIN>\n## `add`", "Adds the new key to this enumerated type.", " :param key | <str>\n<END>", "<BEGIN>\n## `all`", "Returns all the values joined together.", " :return <int>\n<END>", "<BEGIN>\n## `base`", "Returns the root base for the given value from this enumeration.", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the pad API. 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 pad API. 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...
Pads the inputted text to ensure it fits the proper block length for encryption. :param text | <str> bits | <int> :return <str>
"Pads the inputted text to ensure it fits the proper block length\n for encryption.\n \n :param text | <str>\n bits | <int>\n \n :return <str>"
676
false
bitesofcode/projex
pad
38,430
LDU_FT/jorahn/icy/elem2json
LDU_FT
[ "<BEGIN>\n## `ae`", "Computes the absolute error.", " This function computes the absolute error between two numbers,\n or for element between a pair of lists or numpy arrays.", " Parameters\n ----------\n actual : int, float, list of numbers, numpy array\n The ground truth value\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the elem2json API. 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 elem2json API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
Convert an ElementTree or Element into a JSON string.
"Convert an ElementTree or Element into a JSON string."
86
false
jorahn/icy
elem2json
38,431
LDU_FT/bambinos/bambi/_add
LDU_FT
[ "<BEGIN>\n## `reset`", "Reset PyMC3 model and all tracked distributions and parameters.\n<END>", "<BEGIN>\n## `build`", "Compile the PyMC3 model from an abstract model specification.\n Args:\n spec (Model): A bambi Model instance containing the abstract\n specification of the ...
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 do...
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 do...
Internal version of add(), with the same arguments. Runs during Model.build()
"Internal version of add(), with the same arguments.\n\n Runs during Model.build()"
88
false
bambinos/bambi
_add
38,432
LDU_FT/dsoprea/PySecure/open
LDU_FT
[ "<BEGIN>\n## `recurse`", "Recursively iterate a directory. Invoke callbacks for directories \n and entries (both are optional, but it doesn't make sense unless one is \n provided). \"max_listing_size\" will allow for the file-listing to be \n chunked into manageable pieces. \"max_depth\" limi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the open API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the open API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
This is the only way to open a file resource.
"This is the only way to open a file resource."
35
false
dsoprea/PySecure
open
38,433
LDU_FT/crossbario/txaio-etcd/watch
LDU_FT
[ "<BEGIN>\n## `status`", "Get etcd status.", " :param timeout: Request timeout in seconds.\n :type timeout: int", " :returns: The current etcd cluster status.\n :rtype: instance of :class:`txaioetcd.Status`\n<END>", "<BEGIN>\n## `set`", "Set the value for the key in the key-valu...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the watch API. 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 watch API. 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...
Watch one or more keys or key sets and invoke a callback. Watch watches for events happening or that have happened. The entire event history can be watched starting from the last compaction revision. :param keys: Watch these keys / key sets. :type keys: list of bytes or list of instanc...
"Watch one or more keys or key sets and invoke a callback.\n\n Watch watches for events happening or that have happened. The entire event history\n can be watched starting from the last compaction revision.\n\n :param keys: Watch these keys / key sets.\n :type keys: list of bytes or list of ...
110
false
crossbario/txaio-etcd
watch
38,434
LDU_FT/astropy/regions/image
LDU_FT
[ "<BEGIN>\n## `ds9_objects_to_string`", "Converts a `list` of `~regions.Region` to DS9 region string.", " Parameters\n ----------\n regions : `list`\n List of `~regions.Region` objects\n coordsys : `str`, optional\n This overrides the coordinate system frame for all regions.\n De...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the image API. 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 image API. 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...
Counts image (`~astropy.io.fits.ImageHDU`).
"Counts image (`~astropy.io.fits.ImageHDU`)."
237
false
astropy/regions
image
38,435
LDU_FT/TUT-ARG/sed_eval/evaluate
LDU_FT
[ "<BEGIN>\n## `result_report_overall`", "Report overall results", " Returns\n -------\n str\n result report in string format\n<END>", "<BEGIN>\n## `result_report_class_wise_average`", "Report class-wise averages", " Returns\n -------\n str\n r...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the evaluate API. 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 evaluate API. 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...
Evaluate estimated against reference Parameters ---------- reference_tag_list : list of dict or dcase_util.containers.MetaDataContainer Reference tag list estimated_tag_list : list of dict or dcase_util.containers.MetaDataContainer Estimated tag list e...
"Evaluate estimated against reference\n\n Parameters\n ----------\n\n reference_tag_list : list of dict or dcase_util.containers.MetaDataContainer\n Reference tag list\n\n estimated_tag_list : list of dict or dcase_util.containers.MetaDataContainer\n Estimated tag list\...
268
false
TUT-ARG/sed_eval
evaluate
38,436
LDU_FT/jahuth/litus/find_labels
LDU_FT
[ "<BEGIN>\n## `create_timing_signals`", "Creates a linear list/np.array of timestamps and a list of integers, specifying the sequence \n and number of levels.", " The levels are first rotated on the first dimension, then the second and so on. If the \n last dimension is -1, the number of lev...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_labels API. 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 find_labels API. 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...
Takes a string or a function to find a set of label indizes that match. If the string starts with a '~', the label only has to contain the string.
"Takes a string or a function to find a set of label indizes \n that match.\n If the string starts with a '~', the label only has to contain the string."
190
false
jahuth/litus
find_labels
38,437
LDU_FT/synw/dataswim/relation_
LDU_FT
[ "<BEGIN>\n## `ndlayout_`", "Create a Holoview NdLayout from a dictionnary of chart objects\n<END>", "<BEGIN>\n## `layout_`", "Returns a Holoview Layout from chart objects\n<END>", "<BEGIN>\n## `_hline_bokeh_`", "Returns an horizontal line from a column mean value\n<END>", "<BEGIN>\n## `_sline_bokeh`", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the relation_ API. 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 relation_ API. 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...
Returns a DataSwim instance with a column filled from a relation foreign key
"Returns a DataSwim instance with a column filled from a relation foreign key"
393
false
synw/dataswim
relation_
38,438
LDU_FT/houtianze/bypy/human_time
LDU_FT
[ "<BEGIN>\n## `human_time`", "DocTests:\n\t>>> human_time(0) == ''\n\tTrue\n\t>>> human_time(122.1) == '2m2s'\n\tTrue\n\t>>> human_time(133) == '2m13s'\n\tTrue\n\t>>> human_time(12345678) == '20W2D21h21m18s'\n\tTrue\n<END>", "<BEGIN>\n## `limit_unit`", "DocTests:\n\t>>> limit_unit('1m2s', 1) == '1m'\n\tTrue\n\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the human_time API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the human_time API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
DocTests: >>> human_time(0) == '' True >>> human_time(122.1) == '2m2s' True >>> human_time(133) == '2m13s' True >>> human_time(12345678) == '20W2D21h21m18s' True
"DocTests:\n\t>>> human_time(0) == ''\n\tTrue\n\t>>> human_time(122.1) == '2m2s'\n\tTrue\n\t>>> human_time(133) == '2m13s'\n\tTrue\n\t>>> human_time(12345678) == '20W2D21h21m18s'\n\tTrue"
55
false
houtianze/bypy
human_time
38,439
LDU_FT/mdsol/rwslib/build
LDU_FT
[ "<BEGIN>\n## `format_date_argument`", "Take a date as either a datetime.date/datetime or a string and return it as a iso8601 formatted value\n :param Union[datetime.date, datetime.datetime] date_element: passed argument\n :rtype str\n :return:\n<END>", "<BEGIN>\n## `dataset`", "Qualify the dataset_na...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the build API. 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 build API. 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...
Build XML by appending to builder :Example: <FormData FormOID="MH" TransactionType="Update">
"Build XML by appending to builder\n :Example:\n <FormData FormOID=\"MH\" TransactionType=\"Update\">"
120
false
mdsol/rwslib
build
38,440
LDU_FT/ryanmcgrath/twython/site
LDU_FT
[ "<BEGIN>\n## `update_status_with_media`", "Updates the authenticating user's current status and attaches media\n for upload. In other words, it creates a Tweet with a picture attached.", " Docs:\n https://developer.twitter.com/en/docs/tweets/post-and-engage/api-reference/post-statuses-updat...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the site API. 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 site API. 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...
Stream site Accepted params found at: https://dev.twitter.com/docs/api/1.1/get/site
"Stream site\n\n Accepted params found at:\n https://dev.twitter.com/docs/api/1.1/get/site"
80
false
ryanmcgrath/twython
site
38,441
LDU_FT/sv0/django-markdown-app/markdown_safe
LDU_FT
[ "<BEGIN>\n## `markdown`", "Render markdown over a given value, optionally using varios extensions.", " Default extensions could be defined which MARKDOWN_EXTENSIONS option.", " :returns: A rendered markdown\n<END>", "<BEGIN>\n## `editor_js_initialization`", "Return script tag with initialization cod...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the markdown_safe API. 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 markdown_safe API. 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...
Render markdown over a given value, optionally using varios extensions. Default extensions could be defined which MARKDOWN_EXTENSIONS option. Enables safe mode, which strips raw HTML and only returns HTML generated by markdown. :returns: A rendered markdown.
"Render markdown over a given value, optionally using varios extensions.\n\n Default extensions could be defined which MARKDOWN_EXTENSIONS option.\n\n Enables safe mode, which strips raw HTML and only returns HTML generated\n by markdown.\n\n :returns: A rendered markdown."
37
false
sv0/django-markdown-app
markdown_safe
38,442
LDU_FT/pseudo-lang/pseudo/method_call
LDU_FT
[ "<BEGIN>\n## `safe_serialize_type`", "serialize only with letters, numbers and _\n<END>", "<BEGIN>\n## `generate`", "generates code based on templates and gen functions\n defined in the <x> lang generator\n<END>", "<BEGIN>\n## `_parse_template`", "Pare smart indented templates", " Takes a ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the method_call API. 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 method_call API. 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...
A shortcut for a method call, expands a str receiver to a identifier
"A shortcut for a method call, expands a str receiver to a identifier"
34
false
pseudo-lang/pseudo
method_call
38,443
LDU_FT/pudo/googlesheets/sheets_service
LDU_FT
[ "<BEGIN>\n## `docs_client`", "A DocsClient singleton, used to look up spreadsheets\n by name.\n<END>", "<BEGIN>\n## `sheets_service`", "A SpreadsheetsService singleton, used to perform\n operations on the actual spreadsheet.\n<END>", "<BEGIN>\n## `_add_column`", "Add a new column to the tabl...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the sheets_service API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the sheets_service API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
A SpreadsheetsService singleton, used to perform operations on the actual spreadsheet.
"A SpreadsheetsService singleton, used to perform\n operations on the actual spreadsheet."
24
false
pudo/googlesheets
sheets_service
38,444
LDU_FT/Robpol86/libnl/nlmsg_append
LDU_FT
[ "<BEGIN>\n## `nla_ok`", "Check if the attribute header and payload can be accessed safely.", " https://github.com/thom311/libnl/blob/libnl3_2_25/lib/attr.c#L148", " Verifies that the header and payload do not exceed the number of bytes left in the attribute stream. This function\n must be called befo...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the nlmsg_append API. 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 nlmsg_append API. 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...
Append data to tail of a Netlink message. https://github.com/thom311/libnl/blob/libnl3_2_25/lib/msg.c#L442 Extends the Netlink message as needed and appends the data of given length to the message. Positional arguments: n -- Netlink message (nl_msg class instance). data -- data to add. len_ -...
"Append data to tail of a Netlink message.\n\n https://github.com/thom311/libnl/blob/libnl3_2_25/lib/msg.c#L442\n\n Extends the Netlink message as needed and appends the data of given length to the message.\n\n Positional arguments:\n n -- Netlink message (nl_msg class instance).\n data -- data to add.\n...
702
false
Robpol86/libnl
nlmsg_append
38,445
LDU_FT/horejsek/python-fastjsonschema/generate_contains
LDU_FT
[ "<BEGIN>\n## `indent`", "Decorator for allowing to use method as normal method or with\n context manager for auto-indenting code blocks.\n<END>", "<BEGIN>\n## `resolve_path`", "Return definition from path.\r", " Path is unescaped according https://tools.ietf.org/html/rfc6901\n<END>", "<BEGIN>\n## `r...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the generate_contains API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the generate_contains API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Means that array must contain at least one defined item. .. code-block:: python { 'contains': { 'type': 'number', }, } Valid array is any with at least one number.
"Means that array must contain at least one defined item.\n\n .. code-block:: python\n\n {\n 'contains': {\n 'type': 'number',\n },\n }\n\n Valid array is any with at least one number."
157
false
horejsek/python-fastjsonschema
generate_contains
38,446
LDU_FT/proycon/pynlpl/sentences
LDU_FT
[ "<BEGIN>\n## `auc`", "Compute Area Under the Curve (AUC) using the trapezoidal rule", " This is a general fuction, given points on a curve. For computing the area\n under the ROC-curve, see :func:`auc_score`.", " Parameters\n ----------\n x : array, shape = [n]\n x coordinates.", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the sentences API. 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 sentences API. 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...
Returns a generator of Sentence elements found (recursively) under this element Arguments: index (int or None): If set to an integer, will retrieve and return the n'th element (starting at 0) instead of returning a generator of all
"Returns a generator of Sentence elements found (recursively) under this element\n\n Arguments:\n index (int or None): If set to an integer, will retrieve and return the n'th element (starting at 0) instead of returning a generator of all"
533
false
proycon/pynlpl
sentences
38,447
LDU_FT/RI-imaging/qpformat/storage_type
LDU_FT
[ "<BEGIN>\n## `qpinfo`", "Print information of a quantitative phase imaging dataset\n<END>", "<BEGIN>\n## `_get_cropped_file_names`", "self.files with common path prefix/suffix removed\n<END>", "<BEGIN>\n## `_identifier_data`", "Return a unique identifier for the folder data\n<END>", "<BEGIN>\n## `_searc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the storage_type API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the storage_type API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
Depending on input data type, the storage type is either "field" (complex) or "phase" (real).
"Depending on input data type, the storage type is either\n \"field\" (complex) or \"phase\" (real)."
93
false
RI-imaging/qpformat
storage_type
38,448
LDU_FT/Azure/azure-cosmos-table-python/update_entity
LDU_FT
[ "<BEGIN>\n## `generate_account_shared_access_signature`", "Generates a shared access signature for the table service.\n Use the returned signature with the sas_token parameter of TableService.", " :param ResourceTypes resource_types:\n Specifies the resource types that are accessible wi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update_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 update_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...
Adds an update entity operation to the batch. See :func:`~azure.storage.table.tableservice.TableService.update_entity` for more information on updates. The operation will not be executed until the batch is committed. :param entity: The entity to update. Could be a...
"Adds an update entity operation to the batch. See \n :func:`~azure.storage.table.tableservice.TableService.update_entity` for more \n information on updates.\n \n The operation will not be executed until the batch is committed.\n\n :param entity:\n The entity to update. Co...
142
false
Azure/azure-cosmos-table-python
update_entity
38,449
LDU_FT/Erotemic/utool/unload_module
LDU_FT
[ "<BEGIN>\n## `comparison`", "r\"\"\"\n CommandLine:\n python -m utool.experimental.dynamic_connectivity comparison --profile\n python -m utool.experimental.dynamic_connectivity comparison\n<END>", "<BEGIN>\n## `join`", "r\"\"\"\n Args:\n other (?):", " CommandLine:\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the unload_module API. 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 unload_module API. 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...
WARNING POTENTIALLY DANGEROUS AND MAY NOT WORK References: http://stackoverflow.com/questions/437589/how-do-i-unload-reload-a-python-module CommandLine: python -m utool.util_cplat --test-unload_module Example: >>> # DISABLE_DOCTEST >>> import sys, gc # NOQA >>> im...
"WARNING POTENTIALLY DANGEROUS AND MAY NOT WORK\n\n References:\n http://stackoverflow.com/questions/437589/how-do-i-unload-reload-a-python-module\n\n CommandLine:\n python -m utool.util_cplat --test-unload_module\n\n Example:\n >>> # DISABLE_DOCTEST\n >>> import sys, gc # NOQA\n ...
3,376
true
Erotemic/utool
unload_module
38,450
LDU_FT/MinchinWeb/colourettu/blend
LDU_FT
[ "<BEGIN>\n## `other_dependancies`", "Installs things that need to be in place before installing the main package\n<END>", "<BEGIN>\n## `update_version_number`", "Update version number", " Returns a semantic_version object\n<END>", "<BEGIN>\n## `add_release_to_changelog`", "Add release line at the top...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the blend API. 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 blend API. 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...
r"""Takes two :py:class:`Colour` s and returns the 'average' Colour. Args: colour1 (colourettu.Colour): a colour colour2 (colourettu.Colour): a second colour .. note:: Uses the formula: \\[ r_{blended} = \\sqrt \\frac{r_1^2 + r_2^2}{2} \\] It is hown here for the re...
"r\"\"\"Takes two :py:class:`Colour` s and returns the 'average' Colour.\n\n Args:\n colour1 (colourettu.Colour): a colour\n colour2 (colourettu.Colour): a second colour\n\n .. note::\n\n Uses the formula:\n\n \\\\[ r_{blended} = \\\\sqrt \\\\frac{r_1^2 + r_2^2}{2} \\\\]\n\n\n I...
90
false
MinchinWeb/colourettu
blend
38,451
LDU_FT/openstax/cnxml/_parse_jing_line
LDU_FT
[ "<BEGIN>\n## `_parse_jing_line`", "Parse a line of jing output to a list of line, column, type\n and message.\n<END>", "<BEGIN>\n## `_parse_jing_output`", "Parse the jing output into a tuple of line, column, type and message.\n<END>", "<BEGIN>\n## `jing`", "Run jing.jar using the RNG file against the g...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _parse_jing_line API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _parse_jing_line API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Parse a line of jing output to a list of line, column, type and message.
"Parse a line of jing output to a list of line, column, type\n and message."
15
false
openstax/cnxml
_parse_jing_line
38,452
LDU_FT/MacHu-GWU/uszipcode-project/_resolve_sort_by
LDU_FT
[ "<BEGIN>\n## `from_query`", "Execute an ORM style query, and return the result in\n :class:`prettytable.PrettyTable`.", " :param query: an ``sqlalchemy.orm.Query`` object.\n :param engine: an ``sqlalchemy.engine.base.Engine`` object.\n :param limit: int, limit rows to return.", " :return: a ``p...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _resolve_sort_by API. 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 _resolve_sort_by API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Result ``sort_by`` argument. :param sort_by: str, or sqlalchemy ORM attribute. :param flag_radius_query: :return:
"Result ``sort_by`` argument.\n\n :param sort_by: str, or sqlalchemy ORM attribute.\n :param flag_radius_query:\n :return:"
208
false
MacHu-GWU/uszipcode-project
_resolve_sort_by
38,453
LDU_FT/jasonrbriggs/stomp.py/attempt_connection
LDU_FT
[ "<BEGIN>\n## `attempt_connection`", "Establish a multicast connection - uses 2 sockets (one for sending, the other for receiving)\n<END>", "<BEGIN>\n## `process_frame`", ":param Frame f: Frame object\n :param bytes frame_str: Raw frame content\n<END>", "<BEGIN>\n## `connect`", ":param str username:...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the attempt_connection 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 attempt_connection 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...
Establish a multicast connection - uses 2 sockets (one for sending, the other for receiving)
"Establish a multicast connection - uses 2 sockets (one for sending, the other for receiving)"
154
false
jasonrbriggs/stomp.py
attempt_connection
38,454
LDU_FT/has2k1/plotnine/_ordered_categories
LDU_FT
[ "<BEGIN>\n## `iqr`", "Calculate the IQR for an array of numbers.\n<END>", "<BEGIN>\n## `freedman_diaconis_bins`", "Calculate number of hist bins using Freedman-Diaconis rule.\n<END>", "<BEGIN>\n## `breaks_from_binwidth`", "Calculate breaks given binwidth", " Parameters\n ----------\n x_range : ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _ordered_categories 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 _ordered_categories 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...
Make the columns in df categorical Parameters: ----------- categories: dict Of the form {str: list}, where the key the column name and the value is the ordered category list
"Make the columns in df categorical\n\n Parameters:\n -----------\n categories: dict\n Of the form {str: list},\n where the key the column name and the value is\n the ordered category list"
719
false
has2k1/plotnine
_ordered_categories
38,455
LDU_FT/cnt-dev/cnt.rulebase/normalize_cjk_fullwidth_ascii
LDU_FT
[ "<BEGIN>\n## `result`", "Generate intervals indicating the valid sentences.\n<END>", "<BEGIN>\n## `build_re_pattern_from_intervals`", "Convert intervals to regular expression pattern.", " :param intervals: Unicode codepoint intervals.\n<END>", "<BEGIN>\n## `result`", "Execute the workflow.", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the normalize_cjk_fullwidth_ascii API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the normalize_cjk_fullwidth_ascii API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conc...
Conver fullwith ASCII to halfwidth ASCII. See https://en.wikipedia.org/wiki/Halfwidth_and_fullwidth_forms
"Conver fullwith ASCII to halfwidth ASCII.\n See https://en.wikipedia.org/wiki/Halfwidth_and_fullwidth_forms"
12
false
cnt-dev/cnt.rulebase
normalize_cjk_fullwidth_ascii
38,456
LDU_FT/joferkington/mpldatacursor/_formatter
LDU_FT
[ "<BEGIN>\n## `_event_ignored`", "Decide whether or not to ignore a click/hover event.\n<END>", "<BEGIN>\n## `_show_annotation_box`", "Update an existing box or create an annotation box for an event.\n<END>", "<BEGIN>\n## `event_info`", "Get a dict of info for the artist selected by \"event\".\n<END>", "...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _formatter API. 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 _formatter API. 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...
Default formatter function, if no `formatter` kwarg is specified. Takes information about the pick event as a series of kwargs and returns the string to be displayed.
"Default formatter function, if no `formatter` kwarg is specified. Takes\n information about the pick event as a series of kwargs and returns the\n string to be displayed."
80
false
joferkington/mpldatacursor
_formatter
38,457
LDU_FT/pjamesjoyce/lcopt/forwast_autodownload
LDU_FT
[ "<BEGIN>\n## `write`", "write the current settings to the config file\n<END>", "<BEGIN>\n## `hierarchy_pos`", "If there is a cycle that is reachable from root, then this will see infinite recursion.\n G: the graph\n root: the root node of current branch\n width: horizontal space allocated fo...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the forwast_autodownload 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 forwast_autodownload API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Autodownloader for forwast database package for brightway. Used by `lcopt_bw2_forwast_setup` to get the database data. Not designed to be used on its own
"Autodownloader for forwast database package for brightway. Used by `lcopt_bw2_forwast_setup` to get the database data. Not designed to be used on its own"
73
false
pjamesjoyce/lcopt
forwast_autodownload
38,458
LDU_FT/seequent/properties/validate
LDU_FT
[ "<BEGIN>\n## `serialize`", "Serialize Singleton instance to a dictionary.", " This behaves identically to HasProperties.serialize, except it also\n saves the identifying name in the dictionary as well.\n<END>", "<BEGIN>\n## `deserialize`", "Create a Singleton instance from a serialized diction...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the validate API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the validate API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
Determine if array is valid based on shape and dtype
"Determine if array is valid based on shape and dtype"
252
false
seequent/properties
validate
38,459
LDU_FT/prometheus/client_python/add_sample
LDU_FT
[ "<BEGIN>\n## `add_sample`", "Add a sample to the metric.", " Internal-only, do not use.\n<END>", "<BEGIN>\n## `add_metric`", "Add a metric to the metric family.", " Args:\n labels: A list of label values\n value: The value of the metric\n created: Optional unix tim...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_sample API. 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 add_sample API. 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...
Add a sample to the metric. Internal-only, do not use.
"Add a sample to the metric.\n\n Internal-only, do not use."
100
false
prometheus/client_python
add_sample
38,460
LDU_FT/MarcoFavorito/pythomata/to_dot
LDU_FT
[ "<BEGIN>\n## `from_transitions`", "Initialize a DFA without explicitly specifying the set of states and the alphabet.", " :param initial_state: the initial state.\n :param accepting_states: the accepting state.\n :param transition_function: the transition function.\n :return: the DFA...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the to_dot API. 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_dot API. 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 ...
Print the automaton to a dot file :param path: the path where to save the file. :param title: :return:
"Print the automaton to a dot file\n\n :param path: the path where to save the file.\n :param title:\n :return:"
16
false
MarcoFavorito/pythomata
to_dot
38,461
LDU_FT/csurfer/gitsuggest/minus
LDU_FT
[ "<BEGIN>\n## `main`", "Starting point for the program execution.\n<END>", "<BEGIN>\n## `get_html`", "Method to convert the repository list to a search results page.\n<END>", "<BEGIN>\n## `to_html`", "Method to convert the repository list to a search results page and\n write it to a HTML file.", "...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the minus API. 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 minus API. 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...
Method to create a list of repositories such that the repository belongs to repo list a but not repo list b. In an ideal scenario we should be able to do this by set(a) - set(b) but as GithubRepositories have shown that set() on them is not reliable resort to this until it is all sorted...
"Method to create a list of repositories such that the repository\n belongs to repo list a but not repo list b.\n\n In an ideal scenario we should be able to do this by set(a) - set(b)\n but as GithubRepositories have shown that set() on them is not reliable\n resort to this until it is all ...
38
false
csurfer/gitsuggest
minus
38,462
LDU_FT/v1k45/python-qBittorrent/download_from_file
LDU_FT
[ "<BEGIN>\n## `_post`", "Method to perform POST request on the API.", " :param endpoint: Endpoint of the API.\n :param data: POST DATA for the request.\n :param kwargs: Other keyword arguments for requests.", " :return: Response of the POST request.\n<END>", "<BEGIN>\n## `_request...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the download_from_file API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the download_from_file API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
Download torrent using a file. :param file_buffer: Single file() buffer or list of. :param save_path: Path to download the torrent. :param label: Label of the torrent(s). :return: Empty JSON data.
"Download torrent using a file.\n\n :param file_buffer: Single file() buffer or list of.\n :param save_path: Path to download the torrent.\n :param label: Label of the torrent(s).\n\n :return: Empty JSON data."
98
false
v1k45/python-qBittorrent
download_from_file
38,463
LDU_FT/rycus86/ghost-client/login
LDU_FT
[ "<BEGIN>\n## `get_page`", ":param page_number: The page number to fetch (1-indexed)\n :return: The requested page fetched from the API for the query\n<END>", "<BEGIN>\n## `list`", "Fetch a list of resources from the API.", " :param kwargs: Parameters for the request\n (see from and ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the login API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the login API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
Authenticate with the server. :param username: The username of an existing user :param password: The password for the user :return: The authentication response from the REST endpoint
"Authenticate with the server.\n\n :param username: The username of an existing user\n :param password: The password for the user\n :return: The authentication response from the REST endpoint"
55
false
rycus86/ghost-client
login
38,464
LDU_FT/wuher/devil/select_parser
LDU_FT
[ "<BEGIN>\n## `create`", "Create object from the given data.", " The given data may or may not have been validated prior to calling\n this function. This function will try its best in creating the object.\n If the resulting object cannot be produced, raises ``ValidationError``.", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the select_parser API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the select_parser API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
Select appropriate parser based on the request. :param request: the HTTP request :param resource: the invoked resource
"Select appropriate parser based on the request.\n\n :param request: the HTTP request\n :param resource: the invoked resource"
193
false
wuher/devil
select_parser
38,465
LDU_FT/Projectplace/basepage/wait_for_element_to_disappear
LDU_FT
[ "<BEGIN>\n## `click`", "Click web element.", " :param locator: locator tuple or WebElement instance\n :param params: (optional) locator parameters\n :param timeout: (optional) time to wait for element\n :return: None\n<END>", "<BEGIN>\n## `alt_click`", "Alt-click web element.", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the wait_for_element_to_disappear API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the wait_for_element_to_disappear API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conc...
Waits until the element is not visible (hidden) or no longer attached to the DOM. Raises TimeoutException if element does not become invisible. :param locator: locator tuple or WebElement instance :param params: (optional) locator params :param timeout: (optional) time to wait for elem...
"Waits until the element is not visible (hidden) or no longer attached to the DOM.\n\n Raises TimeoutException if element does not become invisible.\n\n :param locator: locator tuple or WebElement instance\n :param params: (optional) locator params\n :param timeout: (optional) time to wait f...
138
false
Projectplace/basepage
wait_for_element_to_disappear
38,466
LDU_FT/MycroftAI/mycroft-precise/_wrap_stream_read
LDU_FT
[ "<BEGIN>\n## `load_precise_model`", "Loads a Keras model from file, handling custom loss function\n<END>", "<BEGIN>\n## `create_model`", "Load or create a precise model", " Args:\n model_name: Name of model\n params: Parameters used to create the model", " Returns:\n model: Load...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _wrap_stream_read API. 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 _wrap_stream_read API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
pyaudio.Stream.read takes samples as n, not bytes so read(n) should be read(n // sample_depth)
"pyaudio.Stream.read takes samples as n, not bytes\n so read(n) should be read(n // sample_depth)"
79
false
MycroftAI/mycroft-precise
_wrap_stream_read
38,467
LDU_FT/mardix/ses-mailer/_get_template
LDU_FT
[ "<BEGIN>\n## `_get_template`", "Retrieve the cached version of the template\n<END>", "<BEGIN>\n## `render_blocks`", "To render all the blocks\n :param template_name: The template file name\n :param context: **kwargs context to render\n :retuns dict: of all the blocks with block_name as ke...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_template API. 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_template API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
Retrieve the cached version of the template
"Retrieve the cached version of the template"
28
false
mardix/ses-mailer
_get_template
38,468
LDU_FT/OCA/openupgradelib/disable_invalid_filters
LDU_FT
[ "<BEGIN>\n## `_adjust_merged_values_orm`", "This method deals with the values on the records to be merged +\n the target record, performing operations that makes sense on the meaning\n of the model.", " :param field_spec: Dictionary with field names as keys and forced operation\n to perform as val...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the disable_invalid_filters API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the disable_invalid_filters API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion...
It analyzes all the existing active filters to check if they are still correct. If not, they are disabled for avoiding errors when clicking on them, or worse, if they are default filters when opening the model/action. To be run at the base end-migration script for having a general scope. Only assured t...
"It analyzes all the existing active filters to check if they are still\n correct. If not, they are disabled for avoiding errors when clicking on\n them, or worse, if they are default filters when opening the model/action.\n\n To be run at the base end-migration script for having a general scope. Only\n ass...
190
false
OCA/openupgradelib
disable_invalid_filters
38,469
LDU_FT/tadashi-aikawa/owlmixin/from_csvf
LDU_FT
[ "<BEGIN>\n## `from_dict`", "From dict to instance", " :param d: Dict\n :param force_snake_case: Keys are transformed to snake case in order to compliant PEP8 if True\n :param force_cast: Cast forcibly if True\n :param restrict: Prohibit extra parameters if True\n :return: Inst...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the from_csvf API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the from_csvf API. 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...
From csv file path to list of instance :param fpath: Csv file path :param fieldnames: Specify csv header names if not included in the file :param encoding: Csv file encoding :param force_snake_case: Keys are transformed to snake case in order to compliant PEP8 if True :param res...
"From csv file path to list of instance\n\n :param fpath: Csv file path\n :param fieldnames: Specify csv header names if not included in the file\n :param encoding: Csv file encoding\n :param force_snake_case: Keys are transformed to snake case in order to compliant PEP8 if True\n :pa...
248
false
tadashi-aikawa/owlmixin
from_csvf
38,470
LDU_FT/grahambell/pymoc/read_moc
LDU_FT
[ "<BEGIN>\n## `run`", "Main run method for PyMOC tool.", " Takes a list of command line arguments to process.", " Each operation is performed on a current \"running\" MOC\n object.\n<END>", "<BEGIN>\n## `read_moc`", "Read a file into the current running MOC object.", " If the ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the read_moc API. 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 read_moc API. 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...
Read a file into the current running MOC object. If the running MOC object has not yet been created, then it is created by reading the file, which will import the MOC metadata. Otherwise the metadata are not imported.
"Read a file into the current running MOC object.\n\n If the running MOC object has not yet been created, then\n it is created by reading the file, which will import the\n MOC metadata. Otherwise the metadata are not imported."
165
false
grahambell/pymoc
read_moc
38,471
LDU_FT/ClimateImpactLab/DataFS/_update
LDU_FT
[ "<BEGIN>\n## `_generate_manager`", "Generate a manager from a manager_config dictionary", " Parameters\n ----------", " manager_config : dict\n Configuration with keys class, args, and kwargs\n used to generate a new datafs.manager object", " Returns\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _update API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _update API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
Updates the version specific metadata attribute in DynamoDB In DynamoDB this is simply a list append on this attribute value Parameters ---------- archive_name: str unique '_id' primary key version_metadata: dict dictionary of version metadata values ...
"Updates the version specific metadata attribute in DynamoDB\n In DynamoDB this is simply a list append on this attribute value\n\n Parameters\n ----------\n archive_name: str\n unique '_id' primary key\n\n version_metadata: dict\n dictionary of version metadata ...
318
false
ClimateImpactLab/DataFS
_update
38,472