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/ionelmc/python-aspectlib/weave_instance
LDU_FT
[ "<BEGIN>\n## `weave`", "Send a message to a recipient", " Args:\n target (string, class, instance, function or builtin):\n The object to weave.\n aspects (:py:obj:`aspectlib.Aspect`, function decorator or list of):\n The aspects to apply to the object.\n subclasses ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the weave_instance API. 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 weave_instance API. 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...
Low-level weaver for instances. .. warning:: You should not use this directly. :returns: An :obj:`aspectlib.Rollback` object.
"Low-level weaver for instances.\n\n .. warning:: You should not use this directly.\n\n :returns: An :obj:`aspectlib.Rollback` object."
48
false
ionelmc/python-aspectlib
weave_instance
9,573
LDU_FT/droope/droopescan/fatal
LDU_FT
[ "<BEGIN>\n## `_convert_to_folder`", "Silverstripe's page contains a list of composer packages. This\n function converts those to folder names. These may be different due\n to installer-name.", " Implemented exponential backoff in order to prevent packager from\n being...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the fatal API. Each 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 fatal API. Each 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...
For errors so grave that the program (or thread) cannot continue.
"For errors so grave that the program (or thread) cannot continue."
84
false
droope/droopescan
fatal
9,574
LDU_FT/rochacbruno/flask_simplelogin/is_logged_in
LDU_FT
[ "<BEGIN>\n## `default_login_checker`", "user must be a dictionary here default is\n checking username/password\n if login is ok returns True else False", " :param user: dict {'username':'', 'password': ''}\n<END>", "<BEGIN>\n## `is_logged_in`", "Checks if user is logged in if `username`\n is pas...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_logged_in API. 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 is_logged_in API. 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...
Checks if user is logged in if `username` is passed check if specified user is logged in username can be a list
"Checks if user is logged in if `username`\n is passed check if specified user is logged in\n username can be a list"
17
false
rochacbruno/flask_simplelogin
is_logged_in
9,575
LDU_FT/nschloe/colorio/white_point
LDU_FT
[ "<BEGIN>\n## `build_grad_matrices`", "Build the sparse m-by-n matrices that map a coefficient set for a function in V\n to the values of dx and dy at a number m of points.\n<END>", "<BEGIN>\n## `apply_M`", "Linear operator that converts ax, ay to abcd.\n<END>", "<BEGIN>\n## `cost_min2`", "Residual form...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the white_point API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the white_point API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
From <https://en.wikipedia.org/wiki/White_point>: The white point of an illuminant is the chromaticity of a white object under the illuminant.
"From <https://en.wikipedia.org/wiki/White_point>:\n The white point of an illuminant is the chromaticity of a white object\n under the illuminant."
35
false
nschloe/colorio
white_point
9,576
LDU_FT/ltworf/typedload/index
LDU_FT
[ "<BEGIN>\n## `uniontypes`", "Returns the types of a Union.", " Raises ValueError if the argument is not a Union\n and AttributeError when running on an unsupported\n Python version.\n<END>", "<BEGIN>\n## `index`", "Returns the index in the handlers list\n that matches the given value.", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the index API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the index API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
Returns the index in the handlers list that matches the given value. If no condition matches, ValueError is raised.
"Returns the index in the handlers list\n that matches the given value.\n\n If no condition matches, ValueError is raised."
55
false
ltworf/typedload
index
9,577
LDU_FT/xflr6/graphviz/save
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 save API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the save API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
Save the DOT source to file. Ensure the file ends with a newline. Args: filename: Filename for saving the source (defaults to ``name`` + ``'.gv'``) directory: (Sub)directory for source saving and rendering. Returns: The (possibly relative) path of the saved source fi...
"Save the DOT source to file. Ensure the file ends with a newline.\n\n Args:\n filename: Filename for saving the source (defaults to ``name`` + ``'.gv'``)\n directory: (Sub)directory for source saving and rendering.\n Returns:\n The (possibly relative) path of the saved so...
93
false
xflr6/graphviz
save
9,578
LDU_FT/pyGrowler/Growler/router
LDU_FT
[ "<BEGIN>\n## `create`", "Create a new prototype object with the argument as the source\n prototype.", " .. Note:", " This does not `initialize` the newly created object any\n more than setting its prototype.\n Calling the __init__ method is usually unnecessary as...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the router API. Each 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 router API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Property returning the router at the top of the middleware chain's stack (the last item in the list). If the list is empty OR the item is not an instance of growler.Router, one is created and added to the middleware chain, matching all requests.
"Property returning the router at the top of the middleware\n chain's stack (the last item in the list). If the list is empty\n OR the item is not an instance of growler.Router, one is created\n and added to the middleware chain, matching all requests."
203
false
pyGrowler/Growler
router
9,579
LDU_FT/Yelp/venv-update/venv_update
LDU_FT
[ "<BEGIN>\n## `parseargs`", "handle --help, --version and our double-equal ==options\n<END>", "<BEGIN>\n## `timid_relpath`", "convert an argument to a relative path, carefully\n<END>", "<BEGIN>\n## `exec_`", "Wrapper to os.execv which shows the command and runs any atexit handlers (for coverage's sake).\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the venv_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 extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the venv_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 extra...
we have an arbitrary python interpreter active, (possibly) outside the virtualenv we want. make a fresh venv at the right spot, make sure it has pip-faster, and use it
"we have an arbitrary python interpreter active, (possibly) outside the virtualenv we want.\n\n make a fresh venv at the right spot, make sure it has pip-faster, and use it"
36
false
Yelp/venv-update
venv_update
9,580
LDU_FT/nwilming/ocupy/DirectoryStimuliFactory
LDU_FT
[ "<BEGIN>\n## `path`", "Constructs the path to categories, images and features.", " This path function assumes that the following storage scheme is used on\n the hard disk to access categories, images and features:\n - categories: /impath/category\n - images: /impath/categ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the DirectoryStimuliFactory 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 DirectoryStimuliFactory API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion...
Takes an input path to the images folder of an experiment and generates automatically the category - filenumber list needed to construct an appropriate _categories object. Parameters : loader : Loader object which contains impath : string path to the input, i.e. ima...
"Takes an input path to the images folder of an experiment and generates\n automatically the category - filenumber list needed to construct an\n appropriate _categories object.\n \n Parameters :\n loader : Loader object which contains \n impath : string\n path to the input, ...
310
false
nwilming/ocupy
DirectoryStimuliFactory
9,581
LDU_FT/gmichaeljaison/cv-utils/match_template
LDU_FT
[ "<BEGIN>\n## `match_one`", "Match template and find exactly one match in the Image using specified features.", " :param template: Template Image\n :param image: Search Image\n :param options: Options include\n - features: List of options for each feature\n :return: (Box, Score) Bounding box o...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the match_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 ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the match_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 ex...
Multi channel template matching using simple correlation distance :param template: Template image :param image: Search image :param options: Other options: - distance: Distance measure to use. Default: 'correlation' - normalize: Heatmap values will be in the range of 0 to 1. Default: True ...
"Multi channel template matching using simple correlation distance\n\n :param template: Template image\n :param image: Search image\n :param options: Other options:\n - distance: Distance measure to use. Default: 'correlation'\n - normalize: Heatmap values will be in the range of 0 to 1. Default:...
91
false
gmichaeljaison/cv-utils
match_template
9,582
LDU_FT/payplug/payplug-python/treat
LDU_FT
[ "<BEGIN>\n## `map_http_status_to_exception`", "Bind a HTTP status to an HttpError.", " :param http_code: The HTTP code\n :type http_code: int", " :return The HttpError that fits to the http_code or HttpError.\n :rtype Any subclass of HttpError or HttpError\n<END>", "<BEGIN>\n## `...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the treat API. Each 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 treat API. Each 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...
Treat a notification and guarantee its authenticity. :param request_body: The request body in plain text. :type request_body: string :return: A safe APIResource :rtype: APIResource
"Treat a notification and guarantee its authenticity.\n\n :param request_body: The request body in plain text.\n :type request_body: string\n\n :return: A safe APIResource\n :rtype: APIResource"
108
false
payplug/payplug-python
treat
9,583
LDU_FT/DsixTools/python-smeftrunner/beta
LDU_FT
[ "<BEGIN>\n## `load`", "Load a parameter file in DSixTools SLHA-like format or its JSON or\n YAML representation.\n<END>", "<BEGIN>\n## `lha2matrix`", "Return a matrix given a list of values of the form\n [[1, 1, float], [1, 2, float], ...]\n referring to the (1,1)-element etc.\n `shape` is the sha...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the beta API. Each 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 beta API. Each 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...
Return the beta functions of all SM parameters and SMEFT Wilson coefficients.
"Return the beta functions of all SM parameters and SMEFT Wilson\n coefficients."
58
false
DsixTools/python-smeftrunner
beta
9,584
LDU_FT/ivilata/pymultihash/digest
LDU_FT
[ "<BEGIN>\n## `reset`", "Reset the registry to the standard codecs.\n<END>", "<BEGIN>\n## `register`", "Add a codec to the registry.", " Registers a codec with the given `name` (a string) to be used with the\n given `encode` and `decode` functions, which take a `bytes` object and\n retur...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the digest API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the digest API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Hash the given `data` into a new `Multihash`. The given hash function `func` is used to perform the hashing. It must be a registered hash function (see `FuncReg`). >>> data = b'foo' >>> mh = digest(data, Func.sha1) >>> mh.encode('base64') b'ERQL7se16j8P28ldDdR/PFvCddqKMw=='
"Hash the given `data` into a new `Multihash`.\n\n The given hash function `func` is used to perform the hashing. It must be\n a registered hash function (see `FuncReg`).\n\n >>> data = b'foo'\n >>> mh = digest(data, Func.sha1)\n >>> mh.encode('base64')\n b'ERQL7se16j8P28ldDdR/PFvCddqKMw=='"
59
false
ivilata/pymultihash
digest
9,585
LDU_FT/sixty-north/python-transducers/element_at
LDU_FT
[ "<BEGIN>\n## `coroutine`", "Decorator for priming generator-based coroutines.\n<END>", "<BEGIN>\n## `ticker`", "Yield numbers from 0 to `to` every `delay` seconds.\n<END>", "<BEGIN>\n## `rprint`", "A coroutine sink which prints received items stdout", " Args:\n sep: Optional separator to be pr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the element_at API. 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 element_at API. 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...
Create a transducer which obtains the item at the specified index.
"Create a transducer which obtains the item at the specified index."
38
false
sixty-north/python-transducers
element_at
9,586
LDU_FT/redhat-cip/dci-control-server/createCertRequest
LDU_FT
[ "<BEGIN>\n## `get_user_and_check_auth`", "Check the combination username/password that is valid on the\n database.\n<END>", "<BEGIN>\n## `retrieve_info`", "Query the Github API to retrieve the needed infos.\n<END>", "<BEGIN>\n## `get_last_rconfiguration_id`", "Get the rconfiguration_id of the last ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the createCertRequest API. 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 createCertRequest API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Create a certificate request. Arguments: pkey - The key to associate with the request digest - Digestion method to use for signing, default is sha256 **name - The name of the subject of the request, possible arguments are: C - Cou...
"Create a certificate request.\n Arguments: pkey - The key to associate with the request\n digest - Digestion method to use for signing, default is sha256\n **name - The name of the subject of the request, possible\n arguments are:\n C ...
86
false
redhat-cip/dci-control-server
createCertRequest
9,587
LDU_FT/VitorRamos/cpufreq/set_frequencies
LDU_FT
[ "<BEGIN>\n## `reset`", "Enable all offline cpus, and reset max and min frequencies files", " rg: range or list of threads to reset\n<END>", "<BEGIN>\n## `disable_hyperthread`", "Disable all threads attached to the same core\n<END>", "<BEGIN>\n## `disable_cpu`", "Disable cpus", " rg: rang...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_frequencies API. 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 set_frequencies API. 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...
Set cores frequencies freq: int frequency in KHz rg: list of range of cores setMaxfeq: set the maximum frequency, default to true setMinfreq: set the minimum frequency, default to true setSpeed: only set the frequency, default to true
"Set cores frequencies\n\n freq: int frequency in KHz\n rg: list of range of cores\n setMaxfeq: set the maximum frequency, default to true\n setMinfreq: set the minimum frequency, default to true\n setSpeed: only set the frequency, default to true"
17
false
VitorRamos/cpufreq
set_frequencies
9,588
LDU_FT/smarie/python-autoclass/_get_getter_fun
LDU_FT
[ "<BEGIN>\n## `autohash`", "A decorator to makes objects of the class implement __hash__, so that they can be used correctly for example in\n sets.", " Parameters allow to customize the list of attributes that are taken into account in the hash.", " :param include: a tuple of explicit attribute names ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_getter_fun API. 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_getter_fun API. 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...
Utility method to find the overridden getter function for a given property, or generate a new one :param object_type: :param property_name: :param private_property_name: :return:
"Utility method to find the overridden getter function for a given property, or generate a new one\n\n :param object_type:\n :param property_name:\n :param private_property_name:\n :return:"
94
false
smarie/python-autoclass
_get_getter_fun
9,589
LDU_FT/DecBayComp/RWA-python/peek
LDU_FT
[ "<BEGIN>\n## `hdf5_storable`", "Registers a `Storable` instance in the global service.\n<END>", "<BEGIN>\n## `isreference`", "Tell whether a variable is an object reference.", " Due to garbage collection, some objects happen to get the id of a distinct variable.\n As a consequence, linking is not read...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the peek API. Each 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 peek API. Each 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...
Default deserializer factory. Arguments: init (callable): type constructor. exposes (iterable): attributes to be peeked and passed to `init`. Returns: callable: deserializer (`peek` routine).
"Default deserializer factory.\n\n Arguments:\n\n init (callable): type constructor.\n\n exposes (iterable): attributes to be peeked and passed to `init`.\n\n Returns:\n\n callable: deserializer (`peek` routine)."
130
false
DecBayComp/RWA-python
peek
9,590
LDU_FT/frictionlessdata/datapackage-pipelines/find_projects
LDU_FT
[ "<BEGIN>\n## `_filehash`", "Return the hash object for the file `filepath', processing the file\n by chunk of `blocksize'.", " :type filepath: str\n :param filepath: Path to file", " :type blocksize: int\n :param blocksize: Size of the chunk when processing the file\n<END>", "<BEGIN>\n## `com...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_projects API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_projects API. 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...
Search all directory recursively for subdirs with `file_identifier' in it. :type file_identifier: str :param file_identifier: File identier, .project by default. :rtype: list :return: The list of subdirs with a `file_identifier' in it.
"Search all directory recursively for subdirs\n with `file_identifier' in it.\n\n :type file_identifier: str\n :param file_identifier: File identier, .project by default.\n\n :rtype: list\n :return: The list of subdirs with a `file_identifier' in it."
51
false
frictionlessdata/datapackage-pipelines
find_projects
9,591
LDU_FT/rwl/pylon/save_csv
LDU_FT
[ "<BEGIN>\n## `performAction`", "perform an action on the world that changes it's internal state\n (maybe stochastically).", " All you have to do is pull one of the arm and receive a payout. Each\n arm has a distribution of different payouts that are delivered with\n different probabi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the save_csv API. 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 save_csv API. 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...
Saves the case as a series of Comma-Separated Values.
"Saves the case as a series of Comma-Separated Values."
527
false
rwl/pylon
save_csv
9,592
LDU_FT/StorjOld/heartbeat/get_next_seed
LDU_FT
[ "<BEGIN>\n## `generate_challenges`", "Generate the specified number of hash challenges.", " :param num: The number of hash challenges we want to generate.\n :param root_seed: Some value that we use to generate our seeds from.\n<END>", "<BEGIN>\n## `meet_challenge`", "Get the SHA256 hash of a s...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_next_seed API. 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_next_seed API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
This takes a seed and generates the next seed in the sequence. it simply calculates the hmac of the seed with the key. It returns the next seed :param key: the key to use for the HMAC :param seed: the seed to permutate
"This takes a seed and generates the next seed in the sequence.\n it simply calculates the hmac of the seed with the key. It returns\n the next seed\n\n :param key: the key to use for the HMAC\n :param seed: the seed to permutate"
100
false
StorjOld/heartbeat
get_next_seed
9,593
LDU_FT/mk-fg/txu1/log_web_failure
LDU_FT
[ "<BEGIN>\n## `log_web_failure`", "Try to print meaningful info about wrapped twisted.web exceptions.\n<END>", "<BEGIN>\n## `force_bytes`", "Convert passed string type to bytes, if necessary.\n<END>", "<BEGIN>\n## `request`", "Make HTTP(S) request.\n\t\t\theaders can be either dict or callable(url, method,...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the log_web_failure API. 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 log_web_failure API. 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...
Try to print meaningful info about wrapped twisted.web exceptions.
"Try to print meaningful info about wrapped twisted.web exceptions."
12
false
mk-fg/txu1
log_web_failure
9,594
LDU_FT/sammchardy/python-binance/_process_depth_message
LDU_FT
[ "<BEGIN>\n## `add_bid`", "Add a bid to the cache", " :param bid:\n :return:\n<END>", "<BEGIN>\n## `add_ask`", "Add an ask to the cache", " :param ask:\n :return:\n<END>", "<BEGIN>\n## `_init_cache`", "Initialise the depth cache calling REST endpoint", " :return:\n<...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _process_depth_message API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _process_depth_message API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
Process a depth event message. :param msg: Depth event message. :return:
"Process a depth event message.\n\n :param msg: Depth event message.\n :return:"
233
false
sammchardy/python-binance
_process_depth_message
9,595
LDU_FT/inveniosoftware-contrib/invenio-classifier/_get_fieldcodes
LDU_FT
[ "<BEGIN>\n## `get_acronyms`", "Find acronyms and expansions from the fulltext.", " If needed, acronyms can already contain a dictionary of previously found\n acronyms that will be merged with the current results.\n<END>", "<BEGIN>\n## `_add_expansion_to_acronym_dict`", "Add an acronym to the dictiona...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_fieldcodes API. 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_fieldcodes API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
Return the output for the field codes. :var skw_matches: dict of {keyword: [info,...]} :var ckw_matches: dict of {keyword: [info,...]} :keyword spires: bool, to get the spires output :return: list of tuples with (fieldcodes, keywords)
"Return the output for the field codes.\n\n :var skw_matches: dict of {keyword: [info,...]}\n :var ckw_matches: dict of {keyword: [info,...]}\n :keyword spires: bool, to get the spires output\n :return: list of tuples with (fieldcodes, keywords)"
178
false
inveniosoftware-contrib/invenio-classifier
_get_fieldcodes
9,596
LDU_FT/roanuz/py-cricket/get_overs_summary
LDU_FT
[ "<BEGIN>\n## `set_value`", "Set key value to the file.", " The fuction will be make the key and value to dictinary formate.\n If its exist then it will update the current new key value to\n the file.\n Arg:\n key : cache key\n value : cache value\n<END>", "<BEGIN>\n##...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_overs_summary API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_overs_summary API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Calling Overs Summary API Arg: match_key: key of the match Return: json data
"Calling Overs Summary API\n\n Arg:\n match_key: key of the match\n Return:\n json data"
72
false
roanuz/py-cricket
get_overs_summary
9,597
LDU_FT/ga4gh/ga4gh-client/search_continuous_sets
LDU_FT
[ "<BEGIN>\n## `_run_search_request`", "Runs the specified request at the specified object_name and\n instantiates an object of the specified class. We yield each object in\n listAttr. If pages of results are present, repeat this process\n until the pageToken is null.\n<END>", "<BEGIN>\n## `...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the search_continuous_sets 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 search_continuous_sets API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
Returns an iterator over the ContinuousSets fulfilling the specified conditions from the specified Dataset. :param str dataset_id: The ID of the :class:`ga4gh.protocol.Dataset` of interest. :return: An iterator over the :class:`ga4gh.protocol.ContinuousSet` objects defin...
"Returns an iterator over the ContinuousSets fulfilling the specified\n conditions from the specified Dataset.\n\n :param str dataset_id: The ID of the\n :class:`ga4gh.protocol.Dataset` of interest.\n :return: An iterator over the :class:`ga4gh.protocol.ContinuousSet`\n object...
104
false
ga4gh/ga4gh-client
search_continuous_sets
9,598
LDU_FT/has2k1/plotnine/compute_statistic
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 compute_statistic API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the compute_statistic API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Compute & return statistics for this layer
"Compute & return statistics for this layer"
719
false
has2k1/plotnine
compute_statistic
9,599
LDU_FT/andrewramsay/sk8-drivers/update
LDU_FT
[ "<BEGIN>\n## `update`", "Update the device name and/or RSSI.", " During an ongoing scan, multiple records from the same device can be \n received during the scan. Each time that happens this method is \n called to update the :attr:`name` and/or :attr:`rssi` attributes.\n<END>", "<BEGIN>\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 collection of results with a newly received scan response. Args: addr (str): Device hardware address in xx:xx:xx:xx:xx:xx format. raw_addr (bytearray): Device hardware address as raw bytes. name (str): Device name (if available) as ASCII text. May be None. ...
"Updates the collection of results with a newly received scan response.\n\n Args:\n addr (str): Device hardware address in xx:xx:xx:xx:xx:xx format.\n raw_addr (bytearray): Device hardware address as raw bytes.\n name (str): Device name (if available) as ASCII text. May be None.\...
193
false
andrewramsay/sk8-drivers
update
9,600
LDU_FT/mbj4668/pyang/_default_format
LDU_FT
[ "<BEGIN>\n## `emit`", "Main control function.", " Set up the top-level parts of the stylesheet, then process\n recursively all nodes in all data trees, and finally emit the\n serialized stylesheet.\n<END>", "<BEGIN>\n## `process_module`", "Process data nodes, RPCs and notifications in a...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _default_format API. 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 _default_format API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
Return the default serialization format.
"Return the default serialization format."
291
false
mbj4668/pyang
_default_format
9,601
LDU_FT/zeromake/aiko/run
LDU_FT
[ "<BEGIN>\n## `fresh`", "根据 req_headers, res_headers 判断改消息是否为 304\n<END>", "<BEGIN>\n## `get`", "Return the first value, either the default or actual\n<END>", "<BEGIN>\n## `schema`", "返回请求协议,“https” 或 “http”。\n 当 app.proxy 是 true 时支持 X-Forwarded-Proto。\n<END>", "<BEGIN>\n## `host`", "获取 host + p...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the run API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the run API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
debug run :param host: the hostname to listen on, default is ``'0.0.0.0'`` :param port: the port of the server, default id ``5000``
"debug run\n :param host: the hostname to listen on, default is ``'0.0.0.0'``\n :param port: the port of the server, default id ``5000``"
16
false
zeromake/aiko
run
9,602
LDU_FT/thunder-project/thunder/select_by_index
LDU_FT
[ "<BEGIN>\n## `fromrdd`", "Load images from a Spark RDD.", " Input RDD must be a collection of key-value pairs\n where keys are singleton tuples indexing images,\n and values are 2d or 3d ndarrays.", " Parameters\n ----------\n rdd : SparkRDD\n An RDD containing the images.", " di...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the select_by_index API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the select_by_index API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
Select or filter elements of the Series by index values (across levels, if multi-index). The index is a property of a Series object that assigns a value to each position within the arrays stored in the records of the Series. This function returns a new Series where, within each record, only the...
"Select or filter elements of the Series by index values (across levels, if multi-index).\n\n The index is a property of a Series object that assigns a value to each position within\n the arrays stored in the records of the Series. This function returns a new Series where,\n within each record, onl...
420
false
thunder-project/thunder
select_by_index
9,603
LDU_FT/pyout/pyout/ids
LDU_FT
[ "<BEGIN>\n## `validate`", "Check `style` against pyout.styling.schema.", " Parameters\n ----------\n style : dict\n Style object to validate.", " Raises\n ------\n StyleValidationError if `style` is not valid.\n<END>", "<BEGIN>\n## `value_type`", "Classify `value` of bold, color, ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the ids API. Each 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 ids API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
A list of unique IDs used to identify a row. If not explicitly set, it defaults to the first column name.
"A list of unique IDs used to identify a row.\n\n If not explicitly set, it defaults to the first column name."
92
false
pyout/pyout
ids
9,604
LDU_FT/vertexproject/synapse/genCaCert
LDU_FT
[ "<BEGIN>\n## `openDatFile`", "Open a file-like object using a pkg relative path.", " Example:", " fd = openDatFile('foopkg.barpkg/wootwoot.bin')\n<END>", "<BEGIN>\n## `scrape`", "Scrape types from a blob of text and return node tuples.", " Args:\n text (str): Text to scrape.\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the genCaCert API. 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 genCaCert API. 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...
Generates a CA keypair. Args: name (str): The name of the CA keypair. signas (str): The CA keypair to sign the new CA with. outp (synapse.lib.output.Output): The output buffer. Examples: Make a CA named "myca": mycakey, mycacert = cdir.g...
"Generates a CA keypair.\n\n Args:\n name (str): The name of the CA keypair.\n signas (str): The CA keypair to sign the new CA with.\n outp (synapse.lib.output.Output): The output buffer.\n\n Examples:\n Make a CA named \"myca\":\n\n mycakey, myca...
1,135
true
vertexproject/synapse
genCaCert
9,605
LDU_FT/trombastic/PyScada/query_apsupsd_status
LDU_FT
[ "<BEGIN>\n## `_reinit_daq_daemons`", "update the daq daemon configuration when changes be applied in the models\n<END>", "<BEGIN>\n## `connect`", "establish a connection to the Instrument\n<END>", "<BEGIN>\n## `find_gap`", "try to find a address gap in the list of modbus registers\n<END>", "<BEGIN>\n## ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the query_apsupsd_status 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 query_apsupsd_status API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
(100, 'STATUS'), # True/False (101, 'LINEV'), # Volts (102, 'BATTV'), # Volts (103, 'BCHARGE'), # % (104, 'TIMELEFT'), # Minutes (105, 'LOADPCT'), # %
"(100, 'STATUS'), # True/False\n (101, 'LINEV'), # Volts\n (102, 'BATTV'), # Volts\n (103, 'BCHARGE'), # %\n (104, 'TIMELEFT'), # Minutes\n (105, 'LOADPCT'), # %"
60
false
trombastic/PyScada
query_apsupsd_status
9,606
LDU_FT/zeaphoo/reston/get_access_flags_string
LDU_FT
[ "<BEGIN>\n## `get_access_flags_string`", "Transform an access flags to the corresponding string", " :param value: the value of the access flags\n :type value: int", " :rtype: string\n<END>", "<BEGIN>\n## `get_shorty_idx_value`", "Return the string associated to the shorty_idx", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_access_flags_string API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_access_flags_string API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion...
Transform an access flags to the corresponding string :param value: the value of the access flags :type value: int :rtype: string
"Transform an access flags to the corresponding string\n\n :param value: the value of the access flags\n :type value: int\n\n :rtype: string"
152
false
zeaphoo/reston
get_access_flags_string
9,607
LDU_FT/openfisca/openfisca-core/encode
LDU_FT
[ "<BEGIN>\n## `apply_thresholds`", "Return one of the choices depending on the input position compared to thresholds, for each input.", " >>> apply_thresholds(np.array([4]), [5, 7], [10, 15, 20])\n array([10])\n >>> apply_thresholds(np.array([5]), [5, 7], [10, 15, 20])\n array([10])\n >>> apply_th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the encode API. Each 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 encode API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Encode a string numpy array, or an enum item numpy array, into an :any:`EnumArray`. See :any:`EnumArray.decode` for decoding. :param numpy.ndarray array: Numpy array of string identifiers, or of enum items, to encode. :returns: An :any:`EnumArray` encoding the input array values. :...
"Encode a string numpy array, or an enum item numpy array, into an :any:`EnumArray`. See :any:`EnumArray.decode` for decoding.\n\n :param numpy.ndarray array: Numpy array of string identifiers, or of enum items, to encode.\n\n :returns: An :any:`EnumArray` encoding the input array values.\n ...
322
false
openfisca/openfisca-core
encode
9,608
LDU_FT/cimatosa/progression/_show_stat_wrapper_multi_Progress
LDU_FT
[ "<BEGIN>\n## `_get_callargs`", "Retrieve all arguments that `self.func` needs and\n return a dictionary with call arguments.\n<END>", "<BEGIN>\n## `get_terminal_size`", "Checks various methods to determine the terminal size", " Methods:\n - shutil.get_terminal_size (only Python3)\n - fcntl.i...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _show_stat_wrapper_multi_Progress API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _show_stat_wrapper_multi_Progress API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its ...
call the static method show_stat_wrapper for each process
"call the static method show_stat_wrapper for each process"
48
false
cimatosa/progression
_show_stat_wrapper_multi_Progress
9,609
LDU_FT/moonso/vcftoolbox/replace_vcf_info
LDU_FT
[ "<BEGIN>\n## `get_vcf_header`", "Get the header lines of a vcf file", " Args:\n source(iterable): A vcf file", " Returns:\n head (HeaderParser): A headerparser object\n<END>", "<BEGIN>\n## `get_variant_dict`", "Parse a variant line", " Split a variant line and ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the replace_vcf_info API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the replace_vcf_info API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Replace the information of a info field of a vcf variant line or a variant dict. Arguments: variant_line (str): A vcf formatted variant line variant_dict (dict): A variant dictionary keyword (str): The info field key annotation (str): If the annotation is a key, value p...
"Replace the information of a info field of a vcf variant line or a \n variant dict.\n \n Arguments:\n variant_line (str): A vcf formatted variant line\n variant_dict (dict): A variant dictionary\n keyword (str): The info field key\n annotation (str): If the annotation is a key,...
81
false
moonso/vcftoolbox
replace_vcf_info
9,610
LDU_FT/agoragames/haigha/set_return_listener
LDU_FT
[ "<BEGIN>\n## `commit`", "Commit the current transaction. Caller can specify a callback to use\n when the transaction is committed.\n<END>", "<BEGIN>\n## `rollback`", "Abandon all message publications and acks in the current transaction.\n Caller can specify a callback to use when the transactio...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_return_listener API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_return_listener 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...
Set a callback for basic.return listening. Will be called with a single Message argument. The return_info attribute of the Message will have the following properties: 'channel': Channel instance 'reply_code': reply code (int) 'reply_text': reply text ...
"Set a callback for basic.return listening. Will be called with a single\n Message argument.\n\n The return_info attribute of the Message will have the following\n properties:\n 'channel': Channel instance\n 'reply_code': reply code (int)\n 'reply_text': reply text\...
200
false
agoragames/haigha
set_return_listener
9,611
LDU_FT/quantopian/alphalens/create_turnover_tear_sheet
LDU_FT
[ "<BEGIN>\n## `factor_information_coefficient`", "Computes the Spearman Rank Correlation based Information Coefficient (IC)\n between factor values and N period forward returns for each period in\n the factor index.", " Parameters\n ----------\n factor_data : pd.DataFrame - MultiIndex\n A M...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_turnover_tear_sheet API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclus...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_turnover_tear_sheet API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclus...
Creates a tear sheet for analyzing the turnover properties of a factor. Parameters ---------- factor_data : pd.DataFrame - MultiIndex A MultiIndex DataFrame indexed by date (level 0) and asset (level 1), containing the values for a single alpha factor, forward returns for each perio...
"Creates a tear sheet for analyzing the turnover properties of a factor.\n\n Parameters\n ----------\n factor_data : pd.DataFrame - MultiIndex\n A MultiIndex DataFrame indexed by date (level 0) and asset (level 1),\n containing the values for a single alpha factor, forward returns for\n ea...
243
false
quantopian/alphalens
create_turnover_tear_sheet
9,612
LDU_FT/clusterpoint/python-client-api/etree_to_dict
LDU_FT
[ "<BEGIN>\n## `_handle_response`", "Initialize the corect Response object from the response string based on the API command type.\n<END>", "<BEGIN>\n## `_parse_for_errors`", "Look for an error tag and raise APIError for fatal errors or APIWarning for nonfatal ones.\n<END>", "<BEGIN>\n## `get_content_string`"...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the etree_to_dict API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the etree_to_dict API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
Recursively load dict/list representation of an XML tree into an etree representation. Args: source -- An etree Element or ElementTree. Returns: A dictionary representing sorce's xml structure where tags with multiple identical childrens contain list of all their ch...
"Recursively load dict/list representation of an XML tree into an etree representation.\n\n Args:\n source -- An etree Element or ElementTree.\n\n Returns:\n A dictionary representing sorce's xml structure where tags with multiple identical childrens\n contain list of all ...
120
false
clusterpoint/python-client-api
etree_to_dict
9,613
LDU_FT/mogproject/mog-commons-python/copy
LDU_FT
[ "<BEGIN>\n## `_detect_encoding`", "Detect the default encoding for the terminal's output.\n :return: string: encoding string\n<END>", "<BEGIN>\n## `_get_restore_function`", "Return the binary function for restoring terminal attributes.\n :return: function (signal, frame) => None:\n<END>", "<BE...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the copy API. Each 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 copy API. Each 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...
:param kwargs: :return: copy of this object modifying the kwargs
":param kwargs:\n :return: copy of this object modifying the kwargs"
49
false
mogproject/mog-commons-python
copy
9,614
LDU_FT/pseudo-lang/pseudo/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 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 extracted do...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the 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 extracted do...
A shortcut for a call with an identifier callee
"A shortcut for a call with an identifier callee"
34
false
pseudo-lang/pseudo
call
9,615
LDU_FT/CygnusNetworks/pypureomapi/add_net32string
LDU_FT
[ "<BEGIN>\n## `parse_chain`", "Creates a new parser that executes the passed parsers (args) with the\n\tprevious results and yields a tuple of the results.", "\t>>> list(parse_chain(lambda: (None, 1), lambda one: (None, 2)))\n\t[None, None, (1, 2)]", "\t@param args: parsers\n\t@returns: parser\n<END>", "<BEG...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_net32string API. 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 add_net32string API. 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...
>>> r = b'\\x00\\x00\\x00\\x01x' >>> OutBuffer().add_net32string(b"x").getvalue() == r True @type string: bytes @param string: maximum length must fit in a 32bit integer @returns: self @raises OmapiSizeLimitError:
">>> r = b'\\\\x00\\\\x00\\\\x00\\\\x01x'\n\t\t>>> OutBuffer().add_net32string(b\"x\").getvalue() == r\n\t\tTrue\n\n\t\t@type string: bytes\n\t\t@param string: maximum length must fit in a 32bit integer\n\t\t@returns: self\n\t\t@raises OmapiSizeLimitError:"
114
false
CygnusNetworks/pypureomapi
add_net32string
9,616
LDU_FT/lingfeiwang/findr-python/gassist
LDU_FT
[ "<BEGIN>\n## `gassists_pv`", "Calculates p-values of gene i regulating gene j with genotype data assisted method with multiple tests.\n\tdg:\tnumpy.ndarray(nt,ns,dtype=gtype(='u1' by default)) Genotype data.\n\t\tEntry dg[i,j] is genotype i's value for sample j.\n\t\tEach value must be among 0,1,...,na.\n\t\tGeno...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the gassist API. Each 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 gassist API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
Calculates probability of gene i regulating gene j with genotype data assisted method, with the recommended combination of multiple tests. Probabilities are converted from likelihood ratios separately for each A. This gives better predictions when the number of secondary targets (dt2) is large. (Check program warnin...
"Calculates probability of gene i regulating gene j with genotype data assisted method,\n\twith the recommended combination of multiple tests.\n\tProbabilities are converted from likelihood ratios separately for each A. This gives better\n\tpredictions when the number of secondary targets (dt2) is large. (Check program...
50
false
lingfeiwang/findr-python
gassist
9,617
LDU_FT/Chilipp/psy-simple/add2format_coord
LDU_FT
[ "<BEGIN>\n## `try_and_error`", "Apply multiple validation functions", " Parameters\n ----------\n ``*funcs``\n Validation functions to test", " Returns\n -------\n function\n<END>", "<BEGIN>\n## `validate_text`", "Validate a text formatoption", " Parameters\n ----------\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add2format_coord API. 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 add2format_coord API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Additional information for the :meth:`format_coord`
"Additional information for the :meth:`format_coord`"
183
false
Chilipp/psy-simple
add2format_coord
9,618
LDU_FT/googlefonts/ufo2ft/openTypeNameVersionFallback
LDU_FT
[ "<BEGIN>\n## `isValidFeatureWriter`", "Return True if 'klass' is a valid feature writer class.\n A valid feature writer class is a class (of type 'type'), that has\n two required attributes:\n 1) 'tableTag' (str), which can be \"GSUB\", \"GPOS\", or other similar tags.\n 2) 'write' (bound method), wit...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the openTypeNameVersionFallback API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclu...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the openTypeNameVersionFallback API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclu...
Fallback to *versionMajor.versionMinor* in the form 0.000.
"Fallback to *versionMajor.versionMinor* in the form 0.000."
224
false
googlefonts/ufo2ft
openTypeNameVersionFallback
9,619
LDU_FT/FreekingDean/insteon-hub/_update_details
LDU_FT
[ "<BEGIN>\n## `refresh_devices`", "Queries hub for list of devices, and creates new device objects\n<END>", "<BEGIN>\n## `refresh_details`", "Query hub and refresh all details of a device,\n but NOT status, includes grouplist not present in\n refresh_all_devices\n<END>", "<BEGIN>\n## `_update_d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _update_details API. 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 _update_details API. 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...
Intakes dict of details, and sets necessary properties in device
"Intakes dict of details, and sets necessary properties\n in device"
10
false
FreekingDean/insteon-hub
_update_details
9,620
LDU_FT/priestc/moneywagon/get_hex
LDU_FT
[ "<BEGIN>\n## `supported_currencies`", "Returns a list of all currencies that are supported by the passed in project.\n and support level. Support level can be: \"block\", \"transaction\", \"address\"\n or \"full\".\n<END>", "<BEGIN>\n## `not_supported_currencies`", "Returns a list of all currenc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_hex API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_hex API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
Given all the data the user has given so far, make the hex using pybitcointools
"Given all the data the user has given so far, make the hex using pybitcointools"
135
false
priestc/moneywagon
get_hex
9,621
LDU_FT/larsmans/seqlearn/array2d
LDU_FT
[ "<BEGIN>\n## `fit`", "Fit HMM model to data.", " Parameters\n ----------\n X : {array-like, sparse matrix}, shape (n_samples, n_features)\n Feature matrix of individual samples.", " y : array-like, shape (n_samples,)\n Target labels.", " lengths : arr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the array2d API. Each 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 array2d API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
Returns at least 2-d array with data from X
"Returns at least 2-d array with data from X"
60
false
larsmans/seqlearn
array2d
9,622
LDU_FT/ethereum/py-evm/get_ancestors
LDU_FT
[ "<BEGIN>\n## `new_transaction`", "Create and return a transaction sending amount from <from_> to <to>.", " The transaction will be signed with the given private key.\n<END>", "<BEGIN>\n## `idfn`", "Function for pytest to produce uniform names for fixtures.\n<END>", "<BEGIN>\n## `get_fixtures_file_hash`...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_ancestors API. 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_ancestors API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
Return `limit` number of ancestor blocks from the current canonical head.
"Return `limit` number of ancestor blocks from the current canonical head."
422
false
ethereum/py-evm
get_ancestors
9,623
LDU_FT/hirokiky/uiro/get_base_wrappers
LDU_FT
[ "<BEGIN>\n## `setup_lookup`", "Registering template directories of apps to Lookup.", " Lookups will be set up as dictionary, app name\n as key and lookup for this app will be it's value.\n Each lookups is correspond to each template directories of apps._lookups.\n The directory should be named 'temp...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_base_wrappers API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_base_wrappers API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
basic View Wrappers used by view_config.
"basic View Wrappers used by view_config."
37
false
hirokiky/uiro
get_base_wrappers
9,624
LDU_FT/spacetelescope/acstools/run
LDU_FT
[ "<BEGIN>\n## `extract_dark`", "Extract superdark data from ``DARKFILE`` or ``DRKCFILE``.", " Parameters\n ----------\n prihdr : obj\n FITS primary header HDU.", " scihdu : obj\n Extension HDU of the science image.\n This is only used to extract subarray data.", " Returns\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the run API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the run API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
TEAL interface for the `clean` function.
"TEAL interface for the `clean` function."
319
false
spacetelescope/acstools
run
9,625
LDU_FT/hyperledger/indy-crypto/verify_pop
LDU_FT
[ "<BEGIN>\n## `from_bytes`", "Creates and Bls entity from bytes representation.\n :param xbytes: Bytes representation of Bls entity\n :return: BLS entity intance\n<END>", "<BEGIN>\n## `as_bytes`", "Returns BLS entity bytes representation.\n :return: BLS entity bytes representation\n<END>",...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the verify_pop API. 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 verify_pop API. 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...
Verifies the proof of possession and returns true - if signature valid or false otherwise. :param: pop - Proof of possession :param: ver_key - Verification key :param: gen - Generator point :return: true if signature valid
"Verifies the proof of possession and returns true - if signature valid or false otherwise.\n\n :param: pop - Proof of possession\n :param: ver_key - Verification key\n :param: gen - Generator point\n :return: true if signature valid"
26
false
hyperledger/indy-crypto
verify_pop
9,626
LDU_FT/arkottke/pysra/comp_shear_mod
LDU_FT
[ "<BEGIN>\n## `_calc_strain_ref`", "Compute the reference strain using Equation (6).\n<END>", "<BEGIN>\n## `_calc_mod_reduc`", "Compute the shear modulus reduction using Equation (1).\n<END>", "<BEGIN>\n## `_calc_damping`", "Compute the damping ratio using Equation (16).\n<END>", "<BEGIN>\n## `relative_e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the comp_shear_mod API. 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 comp_shear_mod API. 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...
Strain-compatible complex shear modulus [kN/m²].
"Strain-compatible complex shear modulus [kN/m²]."
111
false
arkottke/pysra
comp_shear_mod
9,627
LDU_FT/noirbizarre/django.js/handle_user
LDU_FT
[ "<BEGIN>\n## `run_from_argv`", "Set up any environment changes requested (e.g., Python path\n and Django settings), then run this command. If the\n command raises a ``CommandError``, intercept it and print it sensibly\n to stderr.\n<END>", "<BEGIN>\n## `create_parser`", "Create and return...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the handle_user API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the handle_user API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
Insert user informations in data Override it to add extra user attributes.
"Insert user informations in data\n\n Override it to add extra user attributes."
32
false
noirbizarre/django.js
handle_user
9,628
LDU_FT/jilljenn/tryalgo/binom
LDU_FT
[ "<BEGIN>\n## `three_partition`", "partition a set of integers in 3 parts of same total value", " :param x: table of non negative values\n :returns: triplet of the integers encoding the sets, or None otherwise\n :complexity: :math:`O(2^{2n})`\n<END>", "<BEGIN>\n## `freivalds`", "Tests matrix product...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the binom API. Each 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 binom API. Each 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...
Binomial coefficients for :math:`n \choose k` :param n,k: non-negative integers :complexity: O(k)
"Binomial coefficients for :math:`n \\choose k`\n\n :param n,k: non-negative integers\n :complexity: O(k)"
423
false
jilljenn/tryalgo
binom
9,629
LDU_FT/SethMMorton/natsort/keep_entry_range
LDU_FT
[ "<BEGIN>\n## `fast_float`", "Convert a string to a float quickly, return input as-is if not possible.", " We don't need to accept all input that the real fast_int accepts because\n natsort is controlling what is passed to this function.", " Parameters\n ----------\n x : str\n String to a...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the keep_entry_range API. 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 keep_entry_range API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Check if an entry falls into a desired range. Every number in the entry will be extracted using *regex*, if any are within a given low to high range the entry will be kept. Parameters ---------- entry : str lows : iterable Collection of low values against which to compare the entry...
"Check if an entry falls into a desired range.\n\n Every number in the entry will be extracted using *regex*,\n if any are within a given low to high range the entry will\n be kept.\n\n Parameters\n ----------\n entry : str\n lows : iterable\n Collection of low values against which to compar...
190
false
SethMMorton/natsort
keep_entry_range
9,630
LDU_FT/thespacedoctor/HMpTy/_execute_query
LDU_FT
[ "<BEGIN>\n## `add_htm_ids_to_mysql_database_table`", "*Given a database connection, a name of a table and the column names for RA and DEC, generates ID for one or more HTM level in the table*", " **Key Arguments:**\n - ``raColName`` -- ra in sexegesimal\n - ``declColName`` -- dec in sexegesimal...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _execute_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 ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _execute_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 ex...
* execute query and trim results* **Key Arguments:** - ``sqlQuery`` -- the sql database query to grab low-resolution results. **Return:** - ``databaseRows`` -- the database rows found on HTM trixles with requested IDs
"* execute query and trim results*\n\n **Key Arguments:**\n - ``sqlQuery`` -- the sql database query to grab low-resolution results.\n\n **Return:**\n - ``databaseRows`` -- the database rows found on HTM trixles with requested IDs"
81
false
thespacedoctor/HMpTy
_execute_query
9,631
LDU_FT/singnet/snet-cli/print_agi_and_mpe_balances
LDU_FT
[ "<BEGIN>\n## `list_my`", "Find organization that has the current identity as the owner or as the member\n<END>", "<BEGIN>\n## `is_group_name_exists`", "check if group with given name is already exists\n<END>", "<BEGIN>\n## `get_group_by_group_id`", "return group with given group_id (return None if doesn't...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the print_agi_and_mpe_balances API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclus...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the print_agi_and_mpe_balances API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclus...
Print balance of ETH, AGI, and MPE wallet
"Print balance of ETH, AGI, and MPE wallet"
65
false
singnet/snet-cli
print_agi_and_mpe_balances
9,632
LDU_FT/dnouri/nolearn/make_pydot_graph
LDU_FT
[ "<BEGIN>\n## `plot_conv_weights`", "Plot the weights of a specific layer.", " Only really makes sense with convolutional layers.", " Parameters\n ----------\n layer : lasagne.layers.Layer\n<END>", "<BEGIN>\n## `plot_conv_activity`", "Plot the acitivities of a specific layer.", " Only real...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the make_pydot_graph API. 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 make_pydot_graph API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
:parameters: - layers : list List of the layers, as obtained from lasagne.layers.get_all_layers - output_shape: (default `True`) If `True`, the output shape of each layer will be displayed. - verbose: (default `False`) If `True`, layer attributes like filter s...
":parameters:\n - layers : list\n List of the layers, as obtained from lasagne.layers.get_all_layers\n - output_shape: (default `True`)\n If `True`, the output shape of each layer will be displayed.\n - verbose: (default `False`)\n If `True`, layer attributes like f...
64
false
dnouri/nolearn
make_pydot_graph
9,633
LDU_FT/sods/paramz/_offset_for
LDU_FT
[ "<BEGIN>\n## `adjust_name_for_printing`", "Make sure a name can be printed, alongside used as a variable name.\n<END>", "<BEGIN>\n## `name`", "Set the name of this object.\n Tell the parent if the name has changed.\n<END>", "<BEGIN>\n## `hierarchy_name`", "return the name for this object with the p...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _offset_for API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _offset_for API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
Return the offset of the param inside this parameterized object. This does not need to account for shaped parameters, as it basically just sums up the parameter sizes which come before param.
"Return the offset of the param inside this parameterized object.\n This does not need to account for shaped parameters, as it\n basically just sums up the parameter sizes which come before param."
225
false
sods/paramz
_offset_for
9,634
LDU_FT/inveniosoftware/invenio-oaiserver/serializer
LDU_FT
[ "<BEGIN>\n## `_schema_from_verb`", "Return an instance of schema for given verb.\n<END>", "<BEGIN>\n## `load`", "Deserialize a data structure to an object.\n<END>", "<BEGIN>\n## `make_request_validator`", "Validate arguments in incomming request.\n<END>", "<BEGIN>\n## `from_iso_permissive`", "Parse an...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the serializer API. 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 serializer API. 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...
Return etree_dumper instances. :param metadata_prefix: One of the metadata identifiers configured in ``OAISERVER_METADATA_FORMATS``.
"Return etree_dumper instances.\n\n :param metadata_prefix: One of the metadata identifiers configured in\n ``OAISERVER_METADATA_FORMATS``."
78
false
inveniosoftware/invenio-oaiserver
serializer
9,635
LDU_FT/EconForge/dolo/numdiff2
LDU_FT
[ "<BEGIN>\n## `multidot_old`", "Implements tensor operation : tensor-times-matrices.\n If last dimensions of ten represent multilinear operations of the type : [X1,...,Xk]->B[X1,...,Xk]\n and mats contains matrices or vectors [A1,...Ak] the function returns an array representing operators :\n [X1,...,Xk]-...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the numdiff2 API. 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 numdiff2 API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
Returns the derivative of f w.r.t. to multidimensional vector x0 If x0 is of dimension R1 x ... x Rd dimension of f is assumed to be in the form S1 x ... x Sf x Rn. The last dimension corresponds to various observations. The value returned is of dimension : S1 x ... x Sf x R1 x ... x Rd x Rn
"Returns the derivative of f w.r.t. to multidimensional vector x0\nIf x0 is of dimension R1 x ... x Rd dimension of f is assumed to be\nin the form S1 x ... x Sf x Rn. The last dimension corresponds to various\nobservations. The value returned is of dimension :\nS1 x ... x Sf x R1 x ... x Rd x Rn"
221
false
EconForge/dolo
numdiff2
9,636
LDU_FT/ethereum/py-evm/apply_all_transactions
LDU_FT
[ "<BEGIN>\n## `new_transaction`", "Create and return a transaction sending amount from <from_> to <to>.", " The transaction will be signed with the given private key.\n<END>", "<BEGIN>\n## `idfn`", "Function for pytest to produce uniform names for fixtures.\n<END>", "<BEGIN>\n## `get_fixtures_file_hash`...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the apply_all_transactions 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 apply_all_transactions API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
Determine the results of applying all transactions to the base header. This does *not* update the current block or header of the VM. :param transactions: an iterable of all transactions to apply :param base_header: the starting header to apply transactions to :return: the final header, ...
"Determine the results of applying all transactions to the base header.\n This does *not* update the current block or header of the VM.\n\n :param transactions: an iterable of all transactions to apply\n :param base_header: the starting header to apply transactions to\n :return: the final he...
422
false
ethereum/py-evm
apply_all_transactions
9,637
LDU_FT/xsleonard/pystmark/get
LDU_FT
[ "<BEGIN>\n## `send`", "Send a message.", " :param message: Message to send.\n :type message: `dict` or :class:`Message`\n :param api_key: Your Postmark API key. Required, if `test` is not `True`.\n :param secure: Use the https scheme for the Postmark API.\n Defaults to `True`\n :param test...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
Builds query string params from inputs. It handles offset and count defaults and validation. :param bounce_type: The type of bounces retrieve. See `bounce_types` for a list of types, or read the Postmark API docs. Defaults to `None`. :param inactive: If `True`, retrieves...
"Builds query string params from inputs. It handles offset and\n count defaults and validation.\n\n :param bounce_type: The type of bounces retrieve. See `bounce_types`\n for a list of types, or read the Postmark API docs. Defaults to\n `None`.\n :param inactive: If `True`, re...
113
false
xsleonard/pystmark
get
9,638
LDU_FT/snowblink14/smatch/rename_node
LDU_FT
[ "<BEGIN>\n## `build_arg_parser`", "Build an argument parser using argparse. Use it when python version is 2.7 or later.\n<END>", "<BEGIN>\n## `build_arg_parser2`", "Build an argument parser using optparse. Use it when python version is 2.5 or 2.6.\n<END>", "<BEGIN>\n## `get_best_match`", "Get the highest ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the rename_node API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the rename_node API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
Rename AMR graph nodes to prefix + node_index to avoid nodes with the same name in two different AMRs.
"Rename AMR graph nodes to prefix + node_index to avoid nodes with the same name in two different AMRs."
54
false
snowblink14/smatch
rename_node
9,639
LDU_FT/bwesterb/mirte/_get_or_create_a
LDU_FT
[ "<BEGIN>\n## `get_a_manager`", "On first call, creates and returns a @mirte.core.Manager. On\n subsequent calls, returns the previously created instance.", " If it is the first call, it will initialize the threadPool\n with @threadPool_settings.\n<END>", "<BEGIN>\n## `parse_cmdLine_instr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_or_create_a API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_or_create_a API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Gets or creates an instance of type <_type>
"Gets or creates an instance of type <_type>"
37
false
bwesterb/mirte
_get_or_create_a
9,640
LDU_FT/universalcore/unicore.distribute/format_content_type_object
LDU_FT
[ "<BEGIN>\n## `get_repositories`", "Return an array of tuples with the name and path for\n repositories found in a directory.", " :param str path:\n The path to find repositories in\n :returns: tuple\n<END>", "<BEGIN>\n## `get_repository_names`", "Return an array of the path name for\n rep...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the format_content_type_object API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclus...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the format_content_type_object API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclus...
Return a content object from a repository for a given content_type and uuid :param Repo repo: The git repository. :param str content_type: The content type to list :returns: dict
"Return a content object from a repository for a given content_type\n and uuid\n\n :param Repo repo:\n The git repository.\n :param str content_type:\n The content type to list\n :returns: dict"
54
false
universalcore/unicore.distribute
format_content_type_object
9,641
LDU_FT/argaen/aiocache/add
LDU_FT
[ "<BEGIN>\n## `loads`", "Deserialize value using ``msgpack.loads``.", " :param value: bytes\n :returns: obj\n<END>", "<BEGIN>\n## `parse_uri_path`", "Given a uri path, return the Redis specific configuration\n options in that path string according to iana definition\n http://www.i...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
Add a cache to the current config. If the key already exists, it will overwrite it:: >>> caches.add('default', { 'cache': "aiocache.SimpleMemoryCache", 'serializer': { 'class': "aiocache.serializers.StringSerializer" ...
"Add a cache to the current config. If the key already exists, it\n will overwrite it::\n\n >>> caches.add('default', {\n 'cache': \"aiocache.SimpleMemoryCache\",\n 'serializer': {\n 'class': \"aiocache.serializers.StringSerializer\"\n ...
77
false
argaen/aiocache
add
9,642
LDU_FT/msoulier/tftpy/sethost
LDU_FT
[ "<BEGIN>\n## `parse`", "This method is used to parse an existing datagram into its\n corresponding TftpPacket object. The buffer is the raw bytes off of\n the network.\n<END>", "<BEGIN>\n## `__create`", "This method returns the appropriate class object corresponding to\n the passed opcode...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the sethost API. Each 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 sethost API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
Setter method that also sets the address property as a result of the host that is set.
"Setter method that also sets the address property as a result\n of the host that is set."
70
false
msoulier/tftpy
sethost
9,643
LDU_FT/srittau/python-asserts/assert_json_subset
LDU_FT
[ "<BEGIN>\n## `assert_true`", "Fail the test unless the expression is truthy.", " >>> assert_true(\"Hello World!\")\n >>> assert_true(\"\")\n Traceback (most recent call last):\n ...\n AssertionError: '' is not truthy", " The following msg_fmt arguments are supported:\n * msg - the def...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the assert_json_subset 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 assert_json_subset 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...
Assert that a JSON object or array is a subset of another JSON object or array. The first JSON object or array must be supplied as a JSON-compatible dict or list, the JSON object or array to check must be a string, an UTF-8 bytes object, or a JSON-compatible list or dict. A JSON non-object, non-ar...
"Assert that a JSON object or array is a subset of another JSON object\n or array.\n\n The first JSON object or array must be supplied as a JSON-compatible\n dict or list, the JSON object or array to check must be a string, an\n UTF-8 bytes object, or a JSON-compatible list or dict.\n\n A JSON non-object...
131
false
srittau/python-asserts
assert_json_subset
9,644
LDU_FT/nwilming/ocupy/kldiv
LDU_FT
[ "<BEGIN>\n## `path`", "Constructs the path to categories, images and features.", " This path function assumes that the following storage scheme is used on\n the hard disk to access categories, images and features:\n - categories: /impath/category\n - images: /impath/categ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the kldiv API. Each 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 kldiv API. Each 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...
Computes the Kullback-Leibler divergence between two distributions. Parameters p : Matrix The first probability distribution q : Matrix The second probability distribution distp : fixmat If p is None, distp is used to compute a FDM which is th...
"Computes the Kullback-Leibler divergence between two distributions.\n\n Parameters\n p : Matrix\n The first probability distribution\n q : Matrix\n The second probability distribution\n distp : fixmat\n If p is None, distp is used to compute a FDM which\n ...
310
false
nwilming/ocupy
kldiv
9,645
LDU_FT/adamziel/python_translate/lower_items
LDU_FT
[ "<BEGIN>\n## `load_messages`", "Loads translation found in a directory.", " @type directory: string\n @param directory: The directory to search", " @type catalogue: MessageCatalogue\n @param catalogue: The message catalogue to dump", " @raises: ValueError\n<END>", "<BEGI...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the lower_items API. 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 lower_items API. 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...
Like iteritems(), but with all lowercase keys.
"Like iteritems(), but with all lowercase keys."
136
false
adamziel/python_translate
lower_items
9,646
LDU_FT/last-partizan/pytils/sum_string
LDU_FT
[ "<BEGIN>\n## `choose_plural`", "Choose proper form for plural.", " Value is a amount, parameters are forms of noun.\n Forms are variants for 1, 2, 5 nouns. It may be tuple\n of elements, or string where variants separates each other\n by comma.", " Examples::\n {{ some_int|choose_plural:...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the sum_string API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the sum_string API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
Get sum in words @param amount: amount of objects @type amount: C{integer types} @param gender: gender of object (MALE, FEMALE or NEUTER) @type gender: C{int} @param items: variants of object in three forms: for one object, for two objects and for five objects @type items: 3-element C...
"Get sum in words\n\n @param amount: amount of objects\n @type amount: C{integer types}\n\n @param gender: gender of object (MALE, FEMALE or NEUTER)\n @type gender: C{int}\n\n @param items: variants of object in three forms:\n for one object, for two objects and for five objects\n @type items: ...
134
false
last-partizan/pytils
sum_string
9,647
LDU_FT/wndhydrnt/python-oauth2/fetch_by_client_id
LDU_FT
[ "<BEGIN>\n## `fetch_by_code`", "Returns data belonging to an authorization code from redis or\n ``None`` if no data was found.", " See :class:`oauth2.store.AuthCodeStore`.\n<END>", "<BEGIN>\n## `save_code`", "Stores the data belonging to an authorization code token in redis.", " See :...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the fetch_by_client_id API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the fetch_by_client_id API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
Retrieve a client by its identifier. :param client_id: Identifier of a client app. :return: An instance of :class:`oauth2.Client`. :raises: ClientNotFoundError
"Retrieve a client by its identifier.\n\n :param client_id: Identifier of a client app.\n :return: An instance of :class:`oauth2.Client`.\n :raises: ClientNotFoundError"
165
false
wndhydrnt/python-oauth2
fetch_by_client_id
9,648
LDU_FT/quantmind/agile-toolkit/manifest
LDU_FT
[ "<BEGIN>\n## `upload`", "Upload a file to a release", " :param filename: filename to upload\n :param content_type: optional content type\n :return: json object from github\n<END>", "<BEGIN>\n## `validate_tag`", "Validate ``tag_name`` with the latest tag from github", " If ``tag...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the manifest API. 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 manifest API. 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...
Load a manifest file and apply template values
"Load a manifest file and apply template values"
23
false
quantmind/agile-toolkit
manifest
9,649
LDU_FT/ishepard/pydriller/get_head
LDU_FT
[ "<BEGIN>\n## `get_head`", "Get the head commit.", " :return: Commit of the head commit\n<END>", "<BEGIN>\n## `get_list_commits`", "Return a generator of commits of all the commits in the repo.", " :return: Generator[Commit], the generator of all the commits in the\n repo\n<END>", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_head API. 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_head API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
Get the head commit. :return: Commit of the head commit
"Get the head commit.\n\n :return: Commit of the head commit"
62
false
ishepard/pydriller
get_head
9,650
LDU_FT/skoczen/will/main
LDU_FT
[ "<BEGIN>\n## `talk_back`", "that's what she said: Tells you some things she actually said. :)\n<END>", "<BEGIN>\n## `auto_key`", "This method attempts to auto-generate a unique cryptographic key based on the hardware ID.\n It should *NOT* be used in production, or to replace a proper key, but it can help g...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the main API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the main API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
Creates the following structure: /plugins __init__.py hello.py /templates blank.html .gitignore run_will.py requirements.txt Procfile README.md
"Creates the following structure:\n /plugins\n __init__.py\n hello.py\n /templates\n blank.html\n .gitignore\n run_will.py\n requirements.txt\n Procfile\n README.md"
40
false
skoczen/will
main
9,651
LDU_FT/maximtrp/scikit-posthocs/posthoc_vanwaerden
LDU_FT
[ "<BEGIN>\n## `outliers_iqr`", "Simple detection of potential outliers based on interquartile range (IQR).", " Data that lie within the lower and upper limits are considered\n non-outliers. The lower limit is the number that lies 1.5 IQRs below\n (coefficient may be changed with an argument, see Paramet...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the posthoc_vanwaerden 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 posthoc_vanwaerden 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...
Van der Waerden's test for pairwise multiple comparisons between group levels. See references for additional information [1]_, [2]_. Parameters ---------- a : array_like or pandas DataFrame object An array, any object exposing the array interface or a pandas DataFrame. val_col : st...
"Van der Waerden's test for pairwise multiple comparisons between group\n levels. See references for additional information [1]_, [2]_.\n\n Parameters\n ----------\n a : array_like or pandas DataFrame object\n An array, any object exposing the array interface or a pandas\n DataFrame.\n\n va...
285
false
maximtrp/scikit-posthocs
posthoc_vanwaerden
9,652
LDU_FT/jrief/django-sass-processor/traverse_tree
LDU_FT
[ "<BEGIN>\n## `traverse_tree`", "traverse the static folders an look for at least one file ending in .scss/.sass\n<END>", "<BEGIN>\n## `find_sources`", "Look for Python sources available for the current configuration.\n<END>", "<BEGIN>\n## `parse_source`", "Extract the statements from the given file, look ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the traverse_tree API. 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 traverse_tree API. 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...
traverse the static folders an look for at least one file ending in .scss/.sass
"traverse the static folders an look for at least one file ending in .scss/.sass"
14
false
jrief/django-sass-processor
traverse_tree
9,653
LDU_FT/jsvine/spectra/ColorWithSaturation
LDU_FT
[ "<BEGIN>\n## `cmyk`", "Create a spectra.Color object in the CMYK color space.", " :param float c: c coordinate.\n :param float m: m coordinate.\n :param float y: y coordinate.\n :param float k: k coordinate.", " :rtype: Color\n :returns: A spectra.Color object in the CMYK color space.\n<END>...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the ColorWithSaturation 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 ColorWithSaturation 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...
Create a new instance based on this one with a new saturation value. .. note:: The saturation is defined for the HSL mode. Parameters: :saturation: The saturation of the new color [0...1]. Returns: A grapefruit.Color instance. >>> Color.NewFromHsl(30, 1, 0.5).ColorWithSat...
"Create a new instance based on this one with a new saturation value.\n\n .. note::\n\n The saturation is defined for the HSL mode.\n\n Parameters:\n :saturation:\n The saturation of the new color [0...1].\n\n Returns:\n A grapefruit.Color instance.\n\n >>> Color.NewFromHsl(30, 1, 0.5...
265
false
jsvine/spectra
ColorWithSaturation
9,654
LDU_FT/prometheus/client_python/merge
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 merge API. Each 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 merge API. Each 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...
Merge metrics from given mmap files. By default, histograms are accumulated, as per prometheus wire format. But if writing the merged data back to mmap files, use accumulate=False to avoid compound accumulation.
"Merge metrics from given mmap files.\n\n By default, histograms are accumulated, as per prometheus wire format.\n But if writing the merged data back to mmap files, use\n accumulate=False to avoid compound accumulation."
100
false
prometheus/client_python
merge
9,655
LDU_FT/fermiPy/fermipy/select_from_clusters
LDU_FT
[ "<BEGIN>\n## `build_srcdict`", "Build a dictionary that maps from source name to the value of a source property", " Parameters\n ----------", " gta : `fermipy.GTAnalysis`\n The analysis object", " prop : str\n The name of the property we are mapping", " Returns\n -------", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the select_from_clusters 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 select_from_clusters API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Select a single source from each cluster and make it the new cluster key cluster_dict : dict(int:[int,]) A dictionary of clusters. Each cluster is a source index and the list of other source in the cluster. measure_vect : np.narray((nsrc),float) vector of the measure used to select ...
"Select a single source from each cluster and make it the new cluster key\n\n cluster_dict : dict(int:[int,]) \n A dictionary of clusters. Each cluster is a source index and the list of other source in the cluster. \n\n measure_vect : np.narray((nsrc),float)\n vector of the measure used to ...
2,597
true
fermiPy/fermipy
select_from_clusters
9,656
LDU_FT/tjvr/kurt/has_conversion
LDU_FT
[ "<BEGIN>\n## `_workaround_no_stage_specific_variables`", "Make Stage-specific variables global (move them to Project).\n<END>", "<BEGIN>\n## `register`", "Register a new :class:`KurtPlugin`.", " Once registered, the plugin can be used by :class:`Project`, when:", " * :attr:`Project.load` see...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the has_conversion API. 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 has_conversion API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
Return True if the plugin supports this block.
"Return True if the plugin supports this block."
171
false
tjvr/kurt
has_conversion
9,657
LDU_FT/SergeySatskiy/cdm-pythonparser/niceStringify
LDU_FT
[ "<BEGIN>\n## `trim_docstring`", "Taken from http://www.python.org/dev/peps/pep-0257/\n<END>", "<BEGIN>\n## `getBriefModuleInfoFromMemory`", "Builds the brief module info from memory\n<END>", "<BEGIN>\n## `getDisplayName`", "Provides a name for display purpose respecting the alias\n<END>", "<BEGIN>\n## `...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the niceStringify API. 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 niceStringify API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
Returns a string representation with new lines and shifts
"Returns a string representation with new lines and shifts"
22
false
SergeySatskiy/cdm-pythonparser
niceStringify
9,658
LDU_FT/mozilla/configman/assign
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 assign API. Each 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 assign API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
an alternative method for assigning values to nested DotDict instances. It accepts keys in the form of X.Y.Z. If any nested DotDict instances don't yet exist, they will be created.
"an alternative method for assigning values to nested DotDict\n instances. It accepts keys in the form of X.Y.Z. If any nested\n DotDict instances don't yet exist, they will be created."
136
false
mozilla/configman
assign
9,659
LDU_FT/hyperledger/indy-node/containerIsRunning
LDU_FT
[ "<BEGIN>\n## `init_domain_ledger`", "This is usually an implementation of Ledger\n<END>", "<BEGIN>\n## `update_txn_with_extra_data`", "All the data of the transaction might not be stored in ledger so the\n extra data that is omitted from ledger needs to be fetched from the\n appropriate data sto...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the containerIsRunning 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 containerIsRunning 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...
Check if container with the given name or ID (str) is running. No side effects. Idempotent. Returns True if running, False if not.
"Check if container with the given name or ID (str) is running. No side\n effects. Idempotent. Returns True if running, False if not."
109
false
hyperledger/indy-node
containerIsRunning
9,660
LDU_FT/inveniosoftware/invenio-rest/check_etag
LDU_FT
[ "<BEGIN>\n## `init_app`", "Flask application initialization.", " Initialize the Rate-Limiter, CORS and error handlers.", " :param app: An instance of :class:`flask.Flask`.\n<END>", "<BEGIN>\n## `init_config`", "Initialize configuration.", " .. note:: Change Flask-CORS and Flask-Limi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the check_etag API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the check_etag API. 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...
Validate the given ETag with current request conditions. Compare the given ETag to the ones in the request header If-Match and If-None-Match conditions. The result is unspecified for requests having If-Match and If-None-Match being both set. :param str etag: The ETag of the cu...
"Validate the given ETag with current request conditions.\n\n Compare the given ETag to the ones in the request header If-Match\n and If-None-Match conditions.\n\n The result is unspecified for requests having If-Match and\n If-None-Match being both set.\n\n :param str etag: The ETag ...
41
false
inveniosoftware/invenio-rest
check_etag
9,661
LDU_FT/petrjasek/eve-elastic/parallel_bulk
LDU_FT
[ "<BEGIN>\n## `get_dates`", "Return list of datetime fields for given schema.\n<END>", "<BEGIN>\n## `set_filters`", "Put together all filters we have and set them as 'and' filter\n within filtered query.", " :param query: elastic query being constructed\n :param base_filters: all filters set outside...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parallel_bulk API. 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 parallel_bulk API. 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...
Parallel version of the bulk helper run in multiple threads at once. :arg client: instance of :class:`~elasticsearch.Elasticsearch` to use :arg actions: iterator containing the actions :arg thread_count: size of the threadpool to use for the bulk requests :arg chunk_size: number of docs in one chunk sen...
"Parallel version of the bulk helper run in multiple threads at once.\n :arg client: instance of :class:`~elasticsearch.Elasticsearch` to use\n :arg actions: iterator containing the actions\n :arg thread_count: size of the threadpool to use for the bulk requests\n :arg chunk_size: number of docs in one chun...
106
false
petrjasek/eve-elastic
parallel_bulk
9,662
LDU_FT/pyokagan/pyglreg/get_removes
LDU_FT
[ "<BEGIN>\n## `import_type`", "Import Type `name` and its dependencies from Registry `src`\n to Registry `dest`.", " :param Registry dest: Destination Registry\n :param Registry src: Source Registry\n :param str name: Name of type to import\n :param str api: Prefer to import Types with api Name `a...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_removes API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_removes API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
Returns filtered list of Remove objects in this registry :param str api: Return Remove objects with this api name or None to return all Remove objects. :param str profile: Return Remove objects with this profile or None to return all Remove objects. ...
"Returns filtered list of Remove objects in this registry\n\n :param str api: Return Remove objects with this api name or None to\n return all Remove objects.\n :param str profile: Return Remove objects with this profile or None\n to return all Remove obje...
84
false
pyokagan/pyglreg
get_removes
9,663
LDU_FT/chibisov/drf-extensions/evaluate_preconditions
LDU_FT
[ "<BEGIN>\n## `get_etags_and_matchers`", "Get the etags from the header and perform a validation against the required preconditions.\n<END>", "<BEGIN>\n## `evaluate_preconditions`", "Evaluate whether the precondition for the request is met.\n<END>", "<BEGIN>\n## `_regex_from_encoded_pattern`", "foo' -> ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the evaluate_preconditions 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 evaluate_preconditions API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
Evaluate whether the precondition for the request is met.
"Evaluate whether the precondition for the request is met."
55
false
chibisov/drf-extensions
evaluate_preconditions
9,664
LDU_FT/ajk8/microcache/items
LDU_FT
[ "<BEGIN>\n## `init_logging`", "Setup logging for the microcache module, but only do it once!", " :param stream: stream to log to (defaults to sys.stderr)\n :param filepath: path to a file to log to as well (defaults to None)\n :param format: override the default format with whatever you like\n<END>", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the items API. Each 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 items API. Each 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...
Returns a list of key / value pairs of the non-expired items in the cache, optionally filtered by a root path. :param path_root: path to filter by :return: list(tuple(key, value))
"Returns a list of key / value pairs of the non-expired items in the cache, optionally filtered by a root path.\n\n :param path_root: path to filter by\n :return: list(tuple(key, value))"
35
false
ajk8/microcache
items
9,665
LDU_FT/GNS3/gns3-server/get
LDU_FT
[ "<BEGIN>\n## `_asyncio_open_serial_windows`", "Open a windows named pipe", " :returns: An IO like object\n<END>", "<BEGIN>\n## `_asyncio_open_serial_unix`", "Open a unix socket or a windows named pipe", " :returns: An IO like object\n<END>", "<BEGIN>\n## `_choose_capture_side`", "Run capture on ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
When timeout is expire we send a ping notification with server information
"When timeout is expire we send a ping notification with server information"
1,412
true
GNS3/gns3-server
get
9,666
LDU_FT/splitkeycoffee/pyhottop/_read_settings
LDU_FT
[ "<BEGIN>\n## `_generate_config`", "Generate a configuration that can be sent to the Hottop roaster.", " Configuration settings need to be represented inside of a byte array\n that is then written to the serial interface. Much of the configuration\n is static, but control settings are also i...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _read_settings API. 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 _read_settings API. 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...
Read the information from the Hottop. Read the settings from the serial interface and convert them into a human-readable format that can be shared back to the end-user. Reading from the serial interface will occasionally produce strange results or blank reads, so a retry process has bee...
"Read the information from the Hottop.\n\n Read the settings from the serial interface and convert them into a\n human-readable format that can be shared back to the end-user. Reading\n from the serial interface will occasionally produce strange results or\n blank reads, so a retry process h...
89
false
splitkeycoffee/pyhottop
_read_settings
9,667
LDU_FT/wonambi-python/wonambi/set_value
LDU_FT
[ "<BEGIN>\n## `write_mnefiff`", "Export data to MNE using FIFF format.", " Parameters\n ----------\n data : instance of ChanTime\n data with only one trial\n filename : path to file\n file to export to (include '.mat')", " Notes\n -----\n It cannot store data larger than 2 GB...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_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 extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_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 extract...
Set value of the checkbox. Parameters ---------- value : bool value for the checkbox
"Set value of the checkbox.\n\n Parameters\n ----------\n value : bool\n value for the checkbox"
1,345
true
wonambi-python/wonambi
set_value
9,668
LDU_FT/smartfile/client-python/download
LDU_FT
[ "<BEGIN>\n## `_request`", "Handles retrying failed requests and error handling.\n<END>", "<BEGIN>\n## `download`", "file_to_be_downloaded is a file-like object that has already\n been uploaded, you cannot download folders\n<END>", "<BEGIN>\n## `signature`", "Requests a signature for remote file via...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the download API. 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 download API. 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...
file_to_be_downloaded is a file-like object that has already been uploaded, you cannot download folders
"file_to_be_downloaded is a file-like object that has already\n been uploaded, you cannot download folders"
17
false
smartfile/client-python
download
9,669
LDU_FT/AnthonyBloomer/daftlistings/set_min_beds
LDU_FT
[ "<BEGIN>\n## `set_address`", "Set the address.\n :param address:\n<END>", "<BEGIN>\n## `set_min_lease`", "Set the minimum lease period in months.\n :param min_lease: int\n<END>", "<BEGIN>\n## `set_added_since`", "Set this to retrieve ads that are a given number of days old.\n For exam...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_min_beds API. 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 set_min_beds API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
The minimum number of beds. :param min_beds: :return:
"The minimum number of beds.\n :param min_beds:\n :return:"
96
false
AnthonyBloomer/daftlistings
set_min_beds
9,670
LDU_FT/rkhleics/wagtailmenus/_get_render_prepared_object
LDU_FT
[ "<BEGIN>\n## `_get_specified_sub_menu_template_name`", "Called by get_sub_menu_template(). Iterates through the various ways in\n which developers can specify potential sub menu templates for a menu,\n and returns the name of the most suitable template for the\n ``current_level``. Values are ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_render_prepared_object API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclu...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_render_prepared_object API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclu...
Returns a fully prepared, request-aware menu object that can be used for rendering. ``context`` could be a ``django.template.Context`` object passed to ``render_from_tag()`` by a menu tag.
"Returns a fully prepared, request-aware menu object that can be used\n for rendering. ``context`` could be a ``django.template.Context``\n object passed to ``render_from_tag()`` by a menu tag."
95
false
rkhleics/wagtailmenus
_get_render_prepared_object
9,671
LDU_FT/uuazed/numerapi/user_activities
LDU_FT
[ "<BEGIN>\n## `_unzip_file`", "unzips file located at src_path into destination_path\n<END>", "<BEGIN>\n## `get_dataset_url`", "Fetch url of the current dataset.", " Args:\n tournament (int, optional): ID of the tournament, defaults to 1", " Returns:\n str: url of the cu...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the user_activities API. 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 user_activities API. 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...
Get user activities (works for all users!)
"Get user activities (works for all users!)"
163
false
uuazed/numerapi
user_activities
9,672