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/jupyterhub/nbgitpuller/reset_deleted_files
LDU_FT
[ "<BEGIN>\n## `execute_cmd`", "Call given command, yielding output line by line\n<END>", "<BEGIN>\n## `main`", "Synchronizes a github repository with a local repository.\n<END>", "<BEGIN>\n## `pull`", "Pull selected repo from a remote git repository,\n while preserving user changes\n<END>", "<BEGI...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the reset_deleted_files API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the reset_deleted_files API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
Runs the equivalent of git checkout -- <file> for each file that was deleted. This allows us to delete a file, hit an interact link, then get a clean version of the file again.
"Runs the equivalent of git checkout -- <file> for each file that was\n deleted. This allows us to delete a file, hit an interact link, then get a\n clean version of the file again."
15
false
jupyterhub/nbgitpuller
reset_deleted_files
24,673
LDU_FT/klmitch/policies/resolve
LDU_FT
[ "<BEGIN>\n## `rule`", "Allows evaluation of another rule while evaluating a rule.", " :param ctxt: The evaluation context for the rule.\n :param name: The name of the rule to evaluate.\n<END>", "<BEGIN>\n## `resolve`", "Resolve a symbol encountered during a rule evaluation into the\n actual val...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the resolve API. Each 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 resolve API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
Resolve a symbol using the entrypoint group. :param symbol: The symbol being resolved. :returns: The value of that symbol. If the symbol cannot be found, or if no entrypoint group was passed to the constructor, will return ``None``.
"Resolve a symbol using the entrypoint group.\n\n :param symbol: The symbol being resolved.\n\n :returns: The value of that symbol. If the symbol cannot be\n found, or if no entrypoint group was passed to the\n constructor, will return ``None``."
50
false
klmitch/policies
resolve
24,674
LDU_FT/msiemens/PyGitUp/version_info
LDU_FT
[ "<BEGIN>\n## `_run`", "Run a git command specified by name and args/kwargs.\n<END>", "<BEGIN>\n## `change_count`", "The number of changes in the working directory.\n<END>", "<BEGIN>\n## `uniq`", "Return a copy of seq without duplicates.\n<END>", "<BEGIN>\n## `execute`", "Execute a command and return i...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the version_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 extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the version_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 extr...
Tell, what version we're running at and if it's up to date.
"Tell, what version we're running at and if it's up to date."
30
false
msiemens/PyGitUp
version_info
24,675
LDU_FT/twisted/epsilon/connectionLost
LDU_FT
[ "<BEGIN>\n## `main`", "Create a private key and a certificate and write them to a file.\n<END>", "<BEGIN>\n## `setTimeout`", "Change the timeout period", " @type period: C{int} or C{NoneType}\n @param period: The period, in seconds, to change the timeout to, or\n C{None} to disable the ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the connectionLost API. 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 connectionLost API. 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...
If a login has happened, perform a logout.
"If a login has happened, perform a logout."
217
false
twisted/epsilon
connectionLost
24,676
LDU_FT/skulumani/kinematics/ang_veltoaxisangledot
LDU_FT
[ "<BEGIN>\n## `rand`", "Random vector from the n-Sphere", " This function will return a random vector which is an element of the n-Sphere.\n The n-Sphere is defined as a vector in R^n+1 with a norm of one. ", " Basically, we'll find a random vector in R^n+1 and normalize it. \n This uses the method...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the ang_veltoaxisangledot 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 ang_veltoaxisangledot API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Compute kinematics for axis angle representation
"Compute kinematics for axis angle representation"
59
false
skulumani/kinematics
ang_veltoaxisangledot
24,677
LDU_FT/StanfordBioinformatics/loom/get_by_value
LDU_FT
[ "<BEGIN>\n## `get_by_value`", "Converts a value into a corresponding data object.\n For files, this looks up a file DataObject by name, uuid, and/or md5.\n For other types, it creates a new DataObject.\n<END>", "<BEGIN>\n## `_get_file_by_value`", "Look up a file DataObject by name, uuid, and/or...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_by_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 extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_by_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 extr...
Converts a value into a corresponding data object. For files, this looks up a file DataObject by name, uuid, and/or md5. For other types, it creates a new DataObject.
"Converts a value into a corresponding data object.\n For files, this looks up a file DataObject by name, uuid, and/or md5.\n For other types, it creates a new DataObject."
93
false
StanfordBioinformatics/loom
get_by_value
24,678
LDU_FT/marcotcr/lime/as_html
LDU_FT
[ "<BEGIN>\n## `generate_lars_path`", "Generates the lars path for weighted data.", " Args:\n weighted_data: data that has been weighted by kernel\n weighted_label: labels, weighted by kernel", " Returns:\n (alphas, coefs), both are arrays corresponding to the\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the as_html API. Each 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 as_html API. Each 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 the explanation as an html page. Args: labels: desired labels to show explanations for (as barcharts). If you ask for a label for which an explanation wasn't computed, will throw an exception. If None, will show explanations for all available ...
"Returns the explanation as an html page.\n\n Args:\n labels: desired labels to show explanations for (as barcharts).\n If you ask for a label for which an explanation wasn't\n computed, will throw an exception. If None, will show\n explanations for all ava...
113
false
marcotcr/lime
as_html
24,679
LDU_FT/gem/oq-engine/from_model_files
LDU_FT
[ "<BEGIN>\n## `_compute_term_3`", "Compute term 3 in equation 2 page 462.\n Distances are clipped at 15 km (as per Ezio Faccioli's personal\n communication.)\n<END>", "<BEGIN>\n## `_compute_site_term`", "Compute site term as a function of vs30: 4th, 5th and 6th terms in\n equation 2 page 4...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the from_model_files API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the from_model_files API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Reads the hazard model from a file :param list limits: Grid configuration [west, east, xspc, south, north, yspc, upper, lower, zspc] :param str input_model: Path to input source model :param float investigation_time: Investig...
"Reads the hazard model from a file\n\n :param list limits:\n Grid configuration [west, east, xspc, south, north, yspc,\n upper, lower, zspc]\n :param str input_model:\n Path to input source model\n :param float investigation_time:\n ...
4,544
true
gem/oq-engine
from_model_files
24,680
LDU_FT/costastf/locationsharinglib/patch_stream
LDU_FT
[ "<BEGIN>\n## `get_shared_people`", "Retrieves all people that share their location with this account\n<END>", "<BEGIN>\n## `get_authenticated_person`", "Retrieves the person associated with this account\n<END>", "<BEGIN>\n## `get_coordinates_by_nickname`", "Retrieves a person's coordinates by nickname\n<E...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the patch_stream API. 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 patch_stream API. 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...
Generator that yields stream patched with hunks iterable Converts lineends in hunk lines to the best suitable format autodetected from input
"Generator that yields stream patched with hunks iterable\n\n Converts lineends in hunk lines to the best suitable format\n autodetected from input"
61
false
costastf/locationsharinglib
patch_stream
24,681
LDU_FT/aio-libs/aioredis/geopos
LDU_FT
[ "<BEGIN>\n## `create_sentinel`", "Creates Redis Sentinel client.", " `sentinels` is a list of sentinel nodes.\n<END>", "<BEGIN>\n## `execute`", "Execute Sentinel command.", " It will be prefixed with SENTINEL automatically.\n<END>", "<BEGIN>\n## `master`", "Returns a dictionary containing th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the geopos API. Each 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 geopos API. Each 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 longitude and latitude of members of a geospatial index. :rtype: list[GeoPoint or None]
"Returns longitude and latitude of members of a geospatial index.\n\n :rtype: list[GeoPoint or None]"
496
false
aio-libs/aioredis
geopos
24,682
LDU_FT/JohnDoee/thomas/makeProducer
LDU_FT
[ "<BEGIN>\n## `_get_rar_version`", "Check quickly whether file is rar archive.\n<END>", "<BEGIN>\n## `_find_all_first_files`", "Does not support the full range of ways rar can split\n as it'd require reading the file to ensure you are using the\n correct way.\n<END>", "<BEGIN>\n## `query_yes_no...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the makeProducer API. 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 makeProducer API. 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...
Make a L{StaticProducer} that will produce the body of this response. This method will also set the response code and Content-* headers. @param request: The L{Request} object. @param fileForReading: The file object containing the resource. @return: A L{StaticProducer}. Calling C{.star...
"Make a L{StaticProducer} that will produce the body of this response.\n\n This method will also set the response code and Content-* headers.\n\n @param request: The L{Request} object.\n @param fileForReading: The file object containing the resource.\n @return: A L{StaticProducer}. Calling ...
18
false
JohnDoee/thomas
makeProducer
24,683
LDU_FT/objectrocket/python-client/calculate_tree_differences
LDU_FT
[ "<BEGIN>\n## `register_extension_class`", "Instantiate the given extension class and register as a public attribute of the given base.", " README: The expected protocol here is to instantiate the given extension and pass the base\n object as the first positional argument, then unpack args and kwargs as ad...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the calculate_tree_differences 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 calculate_tree_differences API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclus...
Calculate the differences between the given trees. :param dict pytree: The dictionary of the parsed Python tree. :param dict doctree: The dictionary of the parsed documentation tree. :rtype: tuple :returns: A two-tuple of sets, where the first is the missing Python files, and the second...
"Calculate the differences between the given trees.\n\n :param dict pytree: The dictionary of the parsed Python tree.\n :param dict doctree: The dictionary of the parsed documentation tree.\n :rtype: tuple\n :returns: A two-tuple of sets, where the first is the missing Python files, and the ...
118
false
objectrocket/python-client
calculate_tree_differences
24,684
LDU_FT/NeuroanatomyAndConnectivity/surfdist/translate_src
LDU_FT
[ "<BEGIN>\n## `calc_surfdist`", "inputs:\n surface - surface file (e.g. lh.pial, with full path)\n labels - label file (e.g. lh.cortex.label, with full path)\n annot - annot file (e.g. lh.aparc.a2009s.annot, with full path)\n reg - registration file (lh.sphere.reg)\n origin - the label from which we calculate...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the translate_src API. 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 translate_src API. 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...
Convert source nodes to new surface (without medial wall).
"Convert source nodes to new surface (without medial wall)."
32
false
NeuroanatomyAndConnectivity/surfdist
translate_src
24,685
LDU_FT/dlintott/gns3-converter/generate_notes
LDU_FT
[ "<BEGIN>\n## `setup_argparse`", "Setup the argparse argument parser", " :return: instance of argparse\n :rtype: ArgumentParser\n<END>", "<BEGIN>\n## `do_conversion`", "Convert the topology", " :param dict topology_def: Dict containing topology file and snapshot bool.\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the generate_notes API. 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 generate_notes API. 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...
Generate the notes list :param dict notes: A dict of converted notes from the old topology :return: List of notes for the the topology :rtype: list
"Generate the notes list\n\n :param dict notes: A dict of converted notes from the old topology\n :return: List of notes for the the topology\n :rtype: list"
140
false
dlintott/gns3-converter
generate_notes
24,686
LDU_FT/slaveofcode/pycrawler/text
LDU_FT
[ "<BEGIN>\n## `extract_favicon`", "Extracting favicon url from BeautifulSoup object", " :param bs4: `BeautifulSoup`\n :return: `list` List of favicon urls\n<END>", "<BEGIN>\n## `extract_metas`", "Extracting meta tags from BeautifulSoup object", " :param bs4: `BeautifulSoup`\n :return: `list` Li...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the text API. Each 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 text API. Each 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 text result that executed by given css selector :param selector: `str` css selector :return: `list` or `None`
"Return text result that executed by given css selector\n\n :param selector: `str` css selector\n :return: `list` or `None`"
33
false
slaveofcode/pycrawler
text
24,687
LDU_FT/tkarabela/pysubs2/frames_to_ms
LDU_FT
[ "<BEGIN>\n## `make_time`", "Convert time to milliseconds.", " See :func:`pysubs2.time.times_to_ms()`. When both frames and fps are specified,\n :func:`pysubs2.time.frames_to_ms()` is called instead.", " Raises:\n ValueError: Invalid fps, or one of frames/fps is missing.", " Example:\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the frames_to_ms API. 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 frames_to_ms API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
Convert frame-based duration to milliseconds. Arguments: frames: Number of frames (should be int). fps: Framerate (must be a positive number, eg. 23.976). Returns: Number of milliseconds (rounded to int). Raises: ValueError: fps was negative or zero.
"Convert frame-based duration to milliseconds.\n \n Arguments:\n frames: Number of frames (should be int).\n fps: Framerate (must be a positive number, eg. 23.976).\n \n Returns:\n Number of milliseconds (rounded to int).\n \n Raises:\n ValueError: fps was negative or z...
94
false
tkarabela/pysubs2
frames_to_ms
24,688
LDU_FT/what-studio/gauge/snap_momentum_by_name
LDU_FT
[ "<BEGIN>\n## `render`", "try:\n move_in = self.gauge.momenta[0].move_in(self.gauge, at)\n except (AttributeError, IndexError):\n pass\n else:\n if move_in:\n move_in = math.ceil(move_in)\n text = font.render('{0:02.0f}:{1:02.0f}'.format(...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the snap_momentum_by_name API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the snap_momentum_by_name API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Changes the velocity of a momentum named `name`. :param name: the momentum name. :param velocity: a new velocity. :param at: the time to snap. (default: now) :returns: a momentum updated. :raises TypeError: `name` is ``None``. :raises KeyError: failed to find a momentu...
"Changes the velocity of a momentum named `name`.\n\n :param name: the momentum name.\n :param velocity: a new velocity.\n :param at: the time to snap. (default: now)\n\n :returns: a momentum updated.\n\n :raises TypeError: `name` is ``None``.\n :raises KeyError: failed to find...
22
false
what-studio/gauge
snap_momentum_by_name
24,689
LDU_FT/alan-turing-institute/topic-modelling-tools/tt_comp
LDU_FT
[ "<BEGIN>\n## `set_priors`", "Override default values for Dirichlet hyperparameters.\n alpha: hyperparameter for distribution of topics within documents.\n beta: hyperparameter for distribution of tokens within topics.\n<END>", "<BEGIN>\n## `set_sampled_topics`", "Allocate sampled topics to the d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the tt_comp API. Each 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 tt_comp API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
Compute term-topic matrix from sampled_topics.
"Compute term-topic matrix from sampled_topics."
44
false
alan-turing-institute/topic-modelling-tools
tt_comp
24,690
LDU_FT/jasonbot/arcrest/_json_struct
LDU_FT
[ "<BEGIN>\n## `_get_subfolder`", "Return an object of the requested type with the path relative\n to the current object's URL. Optionally, query parameters\n may be set.\n<END>", "<BEGIN>\n## `_contents`", "The raw contents of the URL as fetched, this is done lazily.\n For non-laz...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _json_struct API. 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 _json_struct API. 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 json data structure in the URL contents, it will cache this if it makes sense so it doesn't parse over and over.
"The json data structure in the URL contents, it will cache this\n if it makes sense so it doesn't parse over and over."
66
false
jasonbot/arcrest
_json_struct
24,691
LDU_FT/tensorflow/hub/create_image_lists
LDU_FT
[ "<BEGIN>\n## `export`", "Exports a ModuleSpec with weights taken from a checkpoint.", " This is an helper to export modules directly from a ModuleSpec\n without having to create a session and set the variables to the\n intended values.", " Example usage:", " ```python\n spec = hub.create_m...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_image_lists 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 create_image_lists 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...
Builds a list of training images from the file system. Analyzes the sub folders in the image directory, splits them into stable training, testing, and validation sets, and returns a data structure describing the lists of images for each label and their paths. Args: image_dir: String path to a folder conta...
"Builds a list of training images from the file system.\n\n Analyzes the sub folders in the image directory, splits them into stable\n training, testing, and validation sets, and returns a data structure\n describing the lists of images for each label and their paths.\n\n Args:\n image_dir: String path to a fold...
488
false
tensorflow/hub
create_image_lists
24,692
LDU_FT/TracyWebTech/django-revproxy/required_header
LDU_FT
[ "<BEGIN>\n## `should_stream`", "Function to verify if the proxy_response must be converted into\n a stream.This will be done by checking the proxy_response content-length\n and verify if its length is bigger than one stipulated\n by MIN_STREAMING_LENGTH.", " :param proxy_response: An Instance of url...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the required_header API. 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 required_header API. 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...
Function that verify if the header parameter is a essential header :param header: A string represented a header :returns: A boolean value that represent if the header is required
"Function that verify if the header parameter is a essential header\n\n :param header: A string represented a header\n :returns: A boolean value that represent if the header is required"
41
false
TracyWebTech/django-revproxy
required_header
24,693
LDU_FT/sigsep/sigsep-mus-eval/_bss_crit
LDU_FT
[ "<BEGIN>\n## `_load_track_estimates`", "load estimates from disk instead of processing\n<END>", "<BEGIN>\n## `eval_dir`", "Compute bss_eval metrics for two given directories assuming file\n names are identical for both, reference source and estimates.", " Parameters\n ----------\n reference_dir ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _bss_crit API. 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 _bss_crit API. 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...
Measurement of the separation quality for a given source in terms of filtered true source, interference and artifacts.
"Measurement of the separation quality for a given source in terms of\n filtered true source, interference and artifacts."
69
false
sigsep/sigsep-mus-eval
_bss_crit
24,694
LDU_FT/razor-x/scipy-data_fitting/fitted_function
LDU_FT
[ "<BEGIN>\n## `add_symbol`", "Add a symbol with key `name` to `scipy_data_fitting.Model.symbols`.\n Optionally, specify an alternative `string` to pass to [`sympy.Symbol`][1],\n otherwise `name` is used.", " [1]: http://docs.sympy.org/dev/modules/core.html#id4\n<END>", "<BEGIN>\n## `replac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the fitted_function API. 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 fitted_function API. 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...
A function of the single independent variable after partially evaluating `scipy_data_fitting.Fit.function` at the `scipy_data_fitting.Fit.fitted_parameters`.
"A function of the single independent variable after\n partially evaluating `scipy_data_fitting.Fit.function` at\n the `scipy_data_fitting.Fit.fitted_parameters`."
163
false
razor-x/scipy-data_fitting
fitted_function
24,695
LDU_FT/dfm/george/compute
LDU_FT
[ "<BEGIN>\n## `computed`", "Has the processes been computed since the last update of the kernel?\n<END>", "<BEGIN>\n## `parse_samples`", "Parse a list of samples to make sure that it has the correct\n dimensions.", " :param t: ``(nsamples,)`` or ``(nsamples, ndim)``\n The list of sam...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the compute API. Each 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 compute API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
Pre-compute the covariance matrix and factorize it for a set of times and uncertainties. :param x: ``(nsamples,)`` or ``(nsamples, ndim)`` The independent coordinates of the data points. :param yerr: (optional) ``(nsamples,)`` or scalar The Gaussian uncertainties on the...
"Pre-compute the covariance matrix and factorize it for a set of times\n and uncertainties.\n\n :param x: ``(nsamples,)`` or ``(nsamples, ndim)``\n The independent coordinates of the data points.\n\n :param yerr: (optional) ``(nsamples,)`` or scalar\n The Gaussian uncertaintie...
111
false
dfm/george
compute
24,696
LDU_FT/horazont/aioxmpp/is_attrsignal_handler
LDU_FT
[ "<BEGIN>\n## `get_commands`", "Return the list of commands offered by the peer.", " :param peer_jid: JID of the peer to query\n :type peer_jid: :class:`~aioxmpp.JID`\n :rtype: :class:`list` of :class:`~.disco.xso.Item`\n :return: List of command items", " In the returned lis...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_attrsignal_handler API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_attrsignal_handler API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Return true if `cb` has been decorated with :func:`attrsignal` for the given signal, descriptor and connection mode.
"Return true if `cb` has been decorated with :func:`attrsignal` for the\n given signal, descriptor and connection mode."
1,660
true
horazont/aioxmpp
is_attrsignal_handler
24,697
LDU_FT/WhyNotHugo/python-barcode/write
LDU_FT
[ "<BEGIN>\n## `build`", "Builds the barcode pattern from `self.ean`.", " :returns: The pattern as string\n :rtype: String\n<END>", "<BEGIN>\n## `build`", "Builds the barcode pattern from `self.ean`.", " :returns: The pattern as string\n :rtype: String\n<END>", "<BEGIN>\n## `ca...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the write API. Each 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 write API. Each 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...
Renders the barcode and writes it to the file like object `fp`. :parameters: fp : File like object Object to write the raw data in. options : Dict The same as in `self.render`. text : str (unicode on Python 2) Text to r...
"Renders the barcode and writes it to the file like object\n `fp`.\n\n :parameters:\n fp : File like object\n Object to write the raw data in.\n options : Dict\n The same as in `self.render`.\n text : str (unicode on Python 2)\n ...
30
false
WhyNotHugo/python-barcode
write
24,698
LDU_FT/meraki-analytics/datapipelines-python/get_many
LDU_FT
[ "<BEGIN>\n## `_transform`", "Transform data to a new type.", " Args:\n transformer_chain: A sequence of (transformer, type) pairs to convert the data.\n data: The data to be transformed.\n context: The context of the transformations (mutable).", " Returns:\n The transformed d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_many API. 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_many API. 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...
Gets a query from the data source, which contains a request for multiple objects. Args: query: The query being requested (contains a request for multiple objects). context: The context for the extraction (mutable). Returns: The requested objects.
"Gets a query from the data source, which contains a request for multiple objects.\n\n Args:\n query: The query being requested (contains a request for multiple objects).\n context: The context for the extraction (mutable).\n\n Returns:\n The requested objects."
54
false
meraki-analytics/datapipelines-python
get_many
24,699
LDU_FT/CybOXProject/mixbox/namespace_for_prefix
LDU_FT
[ "<BEGIN>\n## `__make_id`", "Generate an identifier for a callable signal receiver.", " This is used when disconnecting receivers, where we need to correctly\n establish equivalence between the input receiver and the receivers assigned\n to a signal.", " Args:\n receiver: A callable object."...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the namespace_for_prefix 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 namespace_for_prefix API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Get the namespace the given prefix maps to. Args: prefix (str): The prefix Returns: str: The namespace, or None if the prefix isn't mapped to anything in this set.
"Get the namespace the given prefix maps to.\n\n Args:\n prefix (str): The prefix\n\n Returns:\n str: The namespace, or None if the prefix isn't mapped to\n anything in this set."
249
false
CybOXProject/mixbox
namespace_for_prefix
24,700
LDU_FT/althonos/InstaLooter/wrap_warnings
LDU_FT
[ "<BEGIN>\n## `pages`", "Obtain an iterator over Instagram post pages.", " Returns:\n PageIterator: an iterator over the instagram post pages.", " Raises:\n ValueError: when the requested user does not exist.\n RuntimeError: when the user is a private account\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the wrap_warnings API. 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 wrap_warnings API. 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...
Have the function patch `warnings.showwarning` with the given logger. Arguments: logger (~logging.logger): the logger to wrap warnings with when the decorated function is called. Returns: `function`: a decorator function.
"Have the function patch `warnings.showwarning` with the given logger.\n\n Arguments:\n logger (~logging.logger): the logger to wrap warnings with when\n the decorated function is called.\n\n Returns:\n `function`: a decorator function."
44
false
althonos/InstaLooter
wrap_warnings
24,701
LDU_FT/vowatchka/palindromus/checkstring
LDU_FT
[ "<BEGIN>\n## `check`", "Checks that some string, word or text are palindrome. Checking performs case-insensitive", "\t\t:param str somestr:\n\t\t It is some string that will be checked for palindrome", "\t\t:keyword int check:\n\t\t It is mode of checking. Follows modes are available:", "\t\t - ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the checkstring API. 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 checkstring API. 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...
Checks that some string is palindrome. Checking performs case-insensitive :param str somestr: It is some string that will be checked for palindrome as string. The string is any string that you want. The string also can be multiline. If the checked string does not contains any alphabetic c...
"Checks that some string is palindrome. Checking performs case-insensitive\n\t\t\n\t\t:param str somestr:\n\t\t It is some string that will be checked for palindrome as string.\n\t\t\t\n\t\t The string is any string that you want. The string also can be multiline.\n\t\t\t\n\t\t If the checked string does not c...
71
false
vowatchka/palindromus
checkstring
24,702
LDU_FT/mikedh/trimesh/_create_topple_graph
LDU_FT
[ "<BEGIN>\n## `face_adjacency`", "Returns an (n,2) list of face indices.\n Each pair of faces in the list shares an edge, making them adjacent.", " Parameters\n ----------\n faces : (n, 3) int, or None\n List of vertex indices representing triangles\n mesh : Trimesh object\n If passe...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _create_topple_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. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _create_topple_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. ...
Constructs a toppling digraph for the given convex hull mesh and center of mass. Each node n_i in the digraph corresponds to a face f_i of the mesh and is labelled with the probability that the mesh will land on f_i if dropped randomly. Not all faces are stable, and node n_i has a directed edge to ...
"Constructs a toppling digraph for the given convex hull mesh and\n center of mass.\n\n Each node n_i in the digraph corresponds to a face f_i of the mesh and is\n labelled with the probability that the mesh will land on f_i if dropped\n randomly. Not all faces are stable, and node n_i has a directed edge t...
2,650
true
mikedh/trimesh
_create_topple_graph
24,703
LDU_FT/ARMmbed/mbed-cloud-sdk-python/api_key
LDU_FT
[ "<BEGIN>\n## `add_resource_subscription`", "Subscribe to a resource path # noqa: E501", "The Device Management Connect eventing model consists of observable resources. This means that endpoints can deliver updated resource content, periodically or with a more sophisticated solution-dependent logic. The OMA LwM...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the api_key API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the api_key API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
Sets the api_key of this GlobalSignCredentials. Unique ID for API client (provided by GlobalSign). :param api_key: The api_key of this GlobalSignCredentials. :type: str
"Sets the api_key of this GlobalSignCredentials.\n Unique ID for API client (provided by GlobalSign). \n\n :param api_key: The api_key of this GlobalSignCredentials.\n :type: str"
1,479
true
ARMmbed/mbed-cloud-sdk-python
api_key
24,704
LDU_FT/kronenthaler/mod-pbxproj/remove_library_search_paths
LDU_FT
[ "<BEGIN>\n## `has_child`", "Checks if the given child id\n :param child: The id to check if it's a child of the group\n :return: True if the given id it's a child of this group, False otherwise\n<END>", "<BEGIN>\n## `add_file`", "Adds a file to the project, taking care of the type of the file an...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the remove_library_search_paths 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 remove_library_search_paths API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclu...
Removes the given search paths from the LIBRARY_SEARCH_PATHS section of the target on the configurations :param paths: A string or array of strings :param target_name: Target name or list of target names to remove the flag from or None for every target :param configuration_name: Configuration na...
"Removes the given search paths from the LIBRARY_SEARCH_PATHS section of the target on the configurations\n :param paths: A string or array of strings\n :param target_name: Target name or list of target names to remove the flag from or None for every target\n :param configuration_name: Configuratio...
71
false
kronenthaler/mod-pbxproj
remove_library_search_paths
24,705
LDU_FT/ajslater/picopt/optipng
LDU_FT
[ "<BEGIN>\n## `_get_timestamp`", "Get the timestamp from the timestamp file.", " Optionally mark it for removal if we're going to write another one.\n<END>", "<BEGIN>\n## `_get_timestamp_cached`", "Get the timestamp from the cache or fill the cache\n Much quicker than reading the same files over and ov...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the optipng API. Each 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 optipng API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
Run the external program optipng on the file.
"Run the external program optipng on the file."
86
false
ajslater/picopt
optipng
24,706
LDU_FT/chaoss/grimoirelab-sortinghat/add_unique_identity
LDU_FT
[ "<BEGIN>\n## `run`", "List, add or delete entries from the blacklist.", " By default, it prints the list of entries available on\n the blacklist.\n<END>", "<BEGIN>\n## `add`", "Add entries to the blacklist.", " This method adds the given 'entry' to the blacklist.", " :param e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_unique_identity 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 add_unique_identity 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...
Add a unique identity to the registry. This function adds a unique identity to the registry. First, it checks if the unique identifier (uuid) used to create the identity is already on the registry. When it is not found, a new unique identity is created. Otherwise, it raises a 'AlreadyExistError' except...
"Add a unique identity to the registry.\n\n This function adds a unique identity to the registry.\n First, it checks if the unique identifier (uuid) used to create the\n identity is already on the registry. When it is not found, a new unique\n identity is created. Otherwise, it raises a 'AlreadyExistError' ...
700
false
chaoss/grimoirelab-sortinghat
add_unique_identity
24,707
LDU_FT/kissmetrics/py-KISSmetrics/alias
LDU_FT
[ "<BEGIN>\n## `record`", "Record event for identity with any properties.", " :param action: event performed\n :param props: any additional data to include\n :type props: dict\n :param resp: indicate whether to return response\n :type resp: boolean", " :returns: an HTTP...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the alias API. Each 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 alias API. Each 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...
Map `name` to `alias_to`; actions done by one resolve to other. :param name: consider as same individual as ``alias_to`` :param alias_to: consider an alias of ``name`` :param path: endpoint path; defaults to ``KISSmetrics.ALIAS_PATH`` :param resp: indicate whether to return response ...
"Map `name` to `alias_to`; actions done by one resolve to other.\n\n :param name: consider as same individual as ``alias_to``\n :param alias_to: consider an alias of ``name``\n :param path: endpoint path; defaults to ``KISSmetrics.ALIAS_PATH``\n :param resp: indicate whether to return respon...
37
false
kissmetrics/py-KISSmetrics
alias
24,708
LDU_FT/splitkeycoffee/pyhottop/set_solenoid
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 set_solenoid API. 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_solenoid API. 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...
Set the solenoid config. :param solenoid: Value to set the solenoid :type solenoid: bool :returns: None :raises: InvalidInput
"Set the solenoid config.\n\n :param solenoid: Value to set the solenoid\n :type solenoid: bool\n :returns: None\n :raises: InvalidInput"
89
false
splitkeycoffee/pyhottop
set_solenoid
24,709
LDU_FT/Genida/archan/load_installed_plugins
LDU_FT
[ "<BEGIN>\n## `validate_rows_length`", "Validate that all rows have the same length.\n<END>", "<BEGIN>\n## `validate_square`", "Validate that the matrix has equal number of rows and columns.\n<END>", "<BEGIN>\n## `validate_categories_equal_entities`", "Validate that the matrix has equal number of entities ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load_installed_plugins 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 load_installed_plugins API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
Search and load every installed plugin through entry points.
"Search and load every installed plugin through entry points."
127
false
Genida/archan
load_installed_plugins
24,710
LDU_FT/zsethna/OLGA/choose_random_recomb_events
LDU_FT
[ "<BEGIN>\n## `nt2aa`", "Translate a nucleotide sequence into an amino acid sequence.", " Parameters\n ----------\n ntseq : str\n Nucleotide sequence composed of A, C, G, or T (uppercase or lowercase)", " Returns\n -------\n aaseq : str\n Amino acid sequence", " Example\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the choose_random_recomb_events 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 choose_random_recomb_events API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclu...
Sample the genomic model for VDJ recombination events. Returns ------- recomb_events : dict Dictionary of the VDJ recombination events. These are integers determining gene choice, deletions, and number of insertions. Example -------- >>> sequence...
"Sample the genomic model for VDJ recombination events.\n\n Returns\n -------\n recomb_events : dict\n Dictionary of the VDJ recombination events. These are\n integers determining gene choice, deletions, and number of insertions.\n\n Example\n --------\n >...
287
false
zsethna/OLGA
choose_random_recomb_events
24,711
LDU_FT/bjodah/pyodesys/integrate
LDU_FT
[ "<BEGIN>\n## `_is_autonomous`", "Whether the expressions for the dependent variables are autonomous.", " Note that the system may still behave as an autonomous system on the interface\n of :meth:`integrate` due to use of pre-/post-processors.\n<END>", "<BEGIN>\n## `symmetricsys`", "A factory function ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the integrate API. 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 integrate API. 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...
Integrate the system of ordinary differential equations. Solves the initial value problem (IVP). Parameters ---------- x : array_like or pair (start and final time) or float if float: make it a pair: (0, x) if pair or length-2 array: ...
"Integrate the system of ordinary differential equations.\n\n Solves the initial value problem (IVP).\n\n Parameters\n ----------\n x : array_like or pair (start and final time) or float\n if float:\n make it a pair: (0, x)\n if pair or length-2 array:\n ...
113
false
bjodah/pyodesys
integrate
24,712
LDU_FT/dunovank/jupyter-themes/figsize
LDU_FT
[ "<BEGIN>\n## `install_theme`", "Install theme to jupyter_customcss with specified font, fontsize,\n md layout, and toolbar pref\n<END>", "<BEGIN>\n## `infer_theme`", "checks jupyter_config_dir() for text file containing theme name\n (updated whenever user installs a new theme)\n<END>", "<BEGIN>\n## `s...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the figsize API. Each 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 figsize API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
manually set the default figure size of plots ::Arguments:: x (float): x-axis size y (float): y-axis size aspect (float): aspect ratio scalar
"manually set the default figure size of plots\n ::Arguments::\n x (float): x-axis size\n y (float): y-axis size\n aspect (float): aspect ratio scalar"
38
false
dunovank/jupyter-themes
figsize
24,713
LDU_FT/ShenggaoZhu/midict/od_reorder_keys
LDU_FT
[ "<BEGIN>\n## `cvt_iter`", "Convert an iterator/generator to a tuple so that it can be iterated again.", " E.g., convert zip in PY3.\n<END>", "<BEGIN>\n## `convert_dict`", "recursively convert a normal Mapping `d` and it's values to a specified type\n (defaults to AttrDict)\n<END>", "<BEGIN>\n## `_ke...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the od_reorder_keys API. 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 od_reorder_keys API. 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...
Reorder the keys in an OrderedDict ``od`` in-place.
"Reorder the keys in an OrderedDict ``od`` in-place."
66
false
ShenggaoZhu/midict
od_reorder_keys
24,714
LDU_FT/Loudr/pale/_validate_type
LDU_FT
[ "<BEGIN>\n## `py_doc_trim`", "Trim a python doc string.", " This example is nipped from https://www.python.org/dev/peps/pep-0257/,\n which describes how to conventionally format and trim docstrings.", " It has been modified to replace single newlines with a space, but leave\n multiple consecutive ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _validate_type API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _validate_type API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
Validate the item against `allowed_types`.
"Validate the item against `allowed_types`."
107
false
Loudr/pale
_validate_type
24,715
LDU_FT/mediawiki-utilities/python-mwreverts/check_archive
LDU_FT
[ "<BEGIN>\n## `revdocs2reverts`", "Converts a sequence of page-partitioned revision documents into a sequence\n of reverts.", " :Params:\n rev_docs : `iterable` ( `dict` )\n a page-partitioned sequence of revision documents\n radius : `int`\n The maximum number of revisi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the check_archive API. 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 check_archive API. 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...
Checks the revert status of an archived revision (from a deleted page). With this method, you can determine whether an edit is a 'reverting' edit, was 'reverted' by another edit and/or was 'reverted_to' by another edit. :Parameters: session : :class:`mwapi.Session` An API session to...
"Checks the revert status of an archived revision (from a deleted page).\n With this method, you can determine whether an edit is a 'reverting'\n edit, was 'reverted' by another edit and/or was 'reverted_to' by\n another edit.\n\n :Parameters:\n session : :class:`mwapi.Session`\n An API se...
47
false
mediawiki-utilities/python-mwreverts
check_archive
24,716
LDU_FT/Element-34/py.saunter/randomRow
LDU_FT
[ "<BEGIN>\n## `get_random_user`", "Gets a random user from the provider", " :returns: Dictionary\n<END>", "<BEGIN>\n## `is_element_available`", "Synchronization method for making sure the element we're looking for is not only on the page,\n but also visible -- since Se will happily deal with th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the randomRow API. 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 randomRow API. 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...
Gets a random row from the provider :returns: List
"Gets a random row from the provider\n\n :returns: List"
81
false
Element-34/py.saunter
randomRow
24,717
LDU_FT/Gbps/fastlog/separator
LDU_FT
[ "<BEGIN>\n## `addHandler`", "Setups a new internal logging handler. For fastlog loggers,\n handlers are kept track of in the self._handlers list\n<END>", "<BEGIN>\n## `setStyle`", "Adjusts the output format of messages based on the style name provided", " Styles are loaded like python modules,...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the separator API. 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 separator API. 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...
Prints a separator to the log. This can be used to separate blocks of log messages. The separator will default its log level to the level of the last message printed unless specified with the level= kwarg. The length and type of the separator string is determined by the current style. ...
"Prints a separator to the log. This can be used to separate blocks of log messages.\n\n The separator will default its log level to the level of the last message printed unless\n specified with the level= kwarg.\n\n The length and type of the separator string is determined\n by the current ...
63
false
Gbps/fastlog
separator
24,718
LDU_FT/ethpm/py-ethpm/link_bytecode
LDU_FT
[ "<BEGIN>\n## `fetch_uri_contents`", "Return content-addressed URI stored at registry URI.\n<END>", "<BEGIN>\n## `pin_assets`", "Return a dict containing the IPFS hash, file name, and size of a file.\n<END>", "<BEGIN>\n## `create_content_addressed_github_uri`", "Returns a content-addressed Github \"git_url...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the link_bytecode API. 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 link_bytecode API. 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 a cloned contract factory with the deployment / runtime bytecode linked. :attr_dict: Dict[`ContractType`: `Address`] for all deployment and runtime link references.
"Return a cloned contract factory with the deployment / runtime bytecode linked.\n\n :attr_dict: Dict[`ContractType`: `Address`] for all deployment and runtime link references."
133
false
ethpm/py-ethpm
link_bytecode
24,719
LDU_FT/lepture/flask-weixin/validate
LDU_FT
[ "<BEGIN>\n## `validate`", "Validate request signature.", " :param signature: A string signature parameter sent by weixin.\n :param timestamp: A int timestamp parameter sent by weixin.\n :param nonce: A int nonce parameter sent by weixin.\n<END>", "<BEGIN>\n## `parse`", "Parse xml body s...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the validate API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the validate API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
Validate request signature. :param signature: A string signature parameter sent by weixin. :param timestamp: A int timestamp parameter sent by weixin. :param nonce: A int nonce parameter sent by weixin.
"Validate request signature.\n\n :param signature: A string signature parameter sent by weixin.\n :param timestamp: A int timestamp parameter sent by weixin.\n :param nonce: A int nonce parameter sent by weixin."
29
false
lepture/flask-weixin
validate
24,720
LDU_FT/push-things/django-th/callback
LDU_FT
[ "<BEGIN>\n## `available_services`", "get the available services to be activated", " read the models dir to find the services installed\n to be added to the system by the administrator\n<END>", "<BEGIN>\n## `handle`", "get all the triggers that need to be handled\n<END>", "<BEGIN>\n## `read_d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the callback API. 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 callback API. 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...
Called from the Service when the user accept to activate it the url to go back after the external service call :param request: contains the current session :param kwargs: keyword args :type request: dict :type kwargs: dict :rtype: string
"Called from the Service when the user accept to activate it\n the url to go back after the external service call\n :param request: contains the current session\n :param kwargs: keyword args\n :type request: dict\n :type kwargs: dict\n :rtype: string"
277
false
push-things/django-th
callback
24,721
LDU_FT/CSchoel/nolds/plot_hurst_hist
LDU_FT
[ "<BEGIN>\n## `weron_2002_figure2`", "Recreates figure 2 of [w]_ comparing the reported values by Weron to the\n values obtained by the functions in this package.", " The experiment consists of n iterations where the hurst exponent of randomly\n generated gaussian noise is calculated. This is done with differ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the plot_hurst_hist API. 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 plot_hurst_hist API. 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...
Plots a histogram of values obtained for the hurst exponent of uniformly distributed white noise. This function requires the package ``matplotlib``.
"Plots a histogram of values obtained for the hurst exponent of uniformly\n distributed white noise.\n\n This function requires the package ``matplotlib``."
236
false
CSchoel/nolds
plot_hurst_hist
24,722
LDU_FT/martinblech/xmltodict/_download_args
LDU_FT
[ "<BEGIN>\n## `parse`", "Parse the given XML input and convert it into a dictionary.", " `xml_input` can either be a `string`, a file-like object, or a generator of strings.", " If `xml_attribs` is `True`, element attributes are put in the dictionary\n among regular child elements, using `@` as a pref...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _download_args API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _download_args API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
Return args for download_setuptools function from cmdline args.
"Return args for download_setuptools function from cmdline args."
37
false
martinblech/xmltodict
_download_args
24,723
LDU_FT/marrow/mongo/P
LDU_FT
[ "<BEGIN>\n## `process_fields`", "Process a list of simple string field definitions and assign their order based on prefix.\n<END>", "<BEGIN>\n## `create`", "Create this index in the specified collection; keyword arguments are passed to PyMongo.", "\t\thttp://api.mongodb.com/python/current/api/pymongo/collec...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the P API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted docum...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the P API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted docum...
Generate a MongoDB projection dictionary using the Django ORM style.
"Generate a MongoDB projection dictionary using the Django ORM style."
175
false
marrow/mongo
P
24,724
LDU_FT/alixnovosi/botskeleton/_setup_all_outputs
LDU_FT
[ "<BEGIN>\n## `cred_init`", "Initialize what requires credentials/secret files.", " :param secrets_dir: dir to expect credentials in and store logs/history in.\n :param log: logger to use for log output.\n :param bot_name: name of this bot,\n used for various kinds of labelling.\n...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _setup_all_outputs 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 _setup_all_outputs 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...
Set up all output methods. Provide them credentials and anything else they need.
"Set up all output methods. Provide them credentials and anything else they need."
69
false
alixnovosi/botskeleton
_setup_all_outputs
24,725
LDU_FT/venthur/gscholar/rename_file
LDU_FT
[ "<BEGIN>\n## `query`", "Query google scholar.", " This method queries google scholar and returns a list of citations.", " Parameters\n ----------\n searchstr : str\n the query\n outformat : int, optional\n the output format of the citations. Default is bibtex.\n allresults : bo...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the rename_file API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the rename_file API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
Attempt to rename pdf according to bibitem.
"Attempt to rename pdf according to bibitem."
24
false
venthur/gscholar
rename_file
24,726
LDU_FT/thespacedoctor/HMpTy/_list_crossmatch
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 _list_crossmatch API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _list_crossmatch API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
*to a finer grain crossmatch of the input coordinates and the database results.* **Key Arguments:** - ``dbRows`` -- the rows return from the database on first crossmatch pass. **Return:** - ``matchIndices1`` -- indices of the coordinate in the original ra and dec lists ...
"*to a finer grain crossmatch of the input coordinates and the database results.*\n\n **Key Arguments:**\n - ``dbRows`` -- the rows return from the database on first crossmatch pass.\n\n **Return:**\n - ``matchIndices1`` -- indices of the coordinate in the original ra and dec lists\n...
81
false
thespacedoctor/HMpTy
_list_crossmatch
24,727
LDU_FT/astrocatalogs/astrocats/merge_duplicates
LDU_FT
[ "<BEGIN>\n## `main`", "Primary entry point for all AstroCats catalogs.", " From this entry point, all internal catalogs can be accessed and their\n public methods executed (for example: import scripts).\n<END>", "<BEGIN>\n## `setup_user_config`", "Setup a configuration file in the user's home director...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the merge_duplicates API. 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 merge_duplicates API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Merge and remove duplicate entries. Compares each entry ('name') in `stubs` to all later entries to check for duplicates in name or alias. If a duplicate is found, they are merged and written to file.
"Merge and remove duplicate entries.\n\n Compares each entry ('name') in `stubs` to all later entries to check\n for duplicates in name or alias. If a duplicate is found, they are\n merged and written to file."
243
false
astrocatalogs/astrocats
merge_duplicates
24,728
LDU_FT/arviz-devs/arviz/plot_posterior
LDU_FT
[ "<BEGIN>\n## `generate_dims_coords`", "Generate default dimensions and coordinates for a variable.", " Parameters\n ----------\n shape : tuple[int]\n Shape of the variable\n var_name : str\n Name of the variable. Used in the default name, if necessary\n dims : list\n List of ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the plot_posterior API. 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 plot_posterior API. 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...
Plot Posterior densities in the style of John K. Kruschke's book. Parameters ---------- data : obj Any object that can be converted to an az.InferenceData object Refer to documentation of az.convert_to_dataset for details var_names : list of variable names Variables to be plotte...
"Plot Posterior densities in the style of John K. Kruschke's book.\n\n Parameters\n ----------\n data : obj\n Any object that can be converted to an az.InferenceData object\n Refer to documentation of az.convert_to_dataset for details\n var_names : list of variable names\n Variables to ...
674
false
arviz-devs/arviz
plot_posterior
24,729
LDU_FT/tomislater/RandomWords/load_dmails
LDU_FT
[ "<BEGIN>\n## `load_nouns`", "Load dict from file for random words.", " :param str file: filename\n<END>", "<BEGIN>\n## `load_dmails`", "Load list from file for random mails", " :param str file: filename\n<END>", "<BEGIN>\n## `load_nicknames`", "Load dict from file for random nicknames.",...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load_dmails API. 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 load_dmails API. 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...
Load list from file for random mails :param str file: filename
"Load list from file for random mails\n\n :param str file: filename"
24
false
tomislater/RandomWords
load_dmails
24,730
LDU_FT/observermedia/django-wordpress-rest/get_new_category
LDU_FT
[ "<BEGIN>\n## `load_post_webhook`", "Webhook to insert/update a WordPress.com post on the local Django site.\n Call this after making changes to the post in WP Admin.\n The post is processed asynchronously so that a response can be returned to WordPress.com immediately.", " :param request: Should contai...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_new_category API. 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_new_category API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Instantiate a new Category from api data. :param api_category: the api data for the Category :return: the new Category
"Instantiate a new Category from api data.\n\n :param api_category: the api data for the Category\n :return: the new Category"
100
false
observermedia/django-wordpress-rest
get_new_category
24,731
LDU_FT/yuma-m/pychord/note_to_chord
LDU_FT
[ "<BEGIN>\n## `get_components`", "Get components of chord quality", " :param str root: the root note of the chord\n :param bool visible: returns the name of notes if True\n :rtype: list[str|int]\n :return: components of chord quality\n<END>", "<BEGIN>\n## `append_on_chord`", "Appe...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the note_to_chord API. 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 note_to_chord API. 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...
Convert note list to chord list :param list[str] notes: list of note arranged from lower note. ex) ["C", "Eb", "G"] :rtype: list[pychord.Chord] :return: list of chord
"Convert note list to chord list\n\n :param list[str] notes: list of note arranged from lower note. ex) [\"C\", \"Eb\", \"G\"]\n :rtype: list[pychord.Chord]\n :return: list of chord"
51
false
yuma-m/pychord
note_to_chord
24,732
LDU_FT/richq/cmake-lint/DefaultRC
LDU_FT
[ "<BEGIN>\n## `DefaultRC`", "Check XDG_CONFIG_DIR before ~/.cmakelintrc\n<END>", "<BEGIN>\n## `CleanComments`", "quote means 'was in a quote starting this line' so that\n quoted lines can be eaten/removed.\n<END>", "<BEGIN>\n## `CheckLineLength`", "Check for lines longer than the recommended length\n<EN...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the DefaultRC API. 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 DefaultRC API. 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...
Check XDG_CONFIG_DIR before ~/.cmakelintrc
"Check XDG_CONFIG_DIR before ~/.cmakelintrc"
14
false
richq/cmake-lint
DefaultRC
24,733
LDU_FT/cdeboever3/cdpybio/read_external_annotation
LDU_FT
[ "<BEGIN>\n## `get_region_nt_counts`", "Get counts of each nucleotide from a bam file for a given region. If R1 and\n R2 reads both overlap a position, only one count will be added. If the R1\n and R2 reads disagree at a position they both overlap, that read pair is not\n used for that position. Can opti...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the read_external_annotation API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the read_external_annotation API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio...
Read file with junctions from some database. This does not have to be the same splice junction database used with STAR. Parameters ---------- fn : filename str File with splice junctions from annotation. The file should have a header and contain the following columns: 'gene', 'chrom', '...
"Read file with junctions from some database. This does not have to be the\n same splice junction database used with STAR.\n\n Parameters\n ----------\n fn : filename str\n File with splice junctions from annotation. The file should have a\n header and contain the following columns: 'gene', 'c...
387
false
cdeboever3/cdpybio
read_external_annotation
24,734
LDU_FT/vallis/libstempo/createGWB
LDU_FT
[ "<BEGIN>\n## `calczeta`", "Calculate the angular separation between position (phi1, theta1) and\n (phi2, theta2)\n<END>", "<BEGIN>\n## `dlmk`", "returns value of d^l_mk as defined in allen, ottewill 97.\n Called by Dlmk\n<END>", "<BEGIN>\n## `Dlmk`", "returns value of D^l_mk as defined in allen, ott...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the createGWB API. 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 createGWB API. 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...
Function to create GW-induced residuals from a stochastic GWB as defined in Chamberlin, Creighton, Demorest, et al. (2014). :param psr: pulsar object for single pulsar :param Amp: Amplitude of red noise in GW units :param gam: Red noise power law spectral index :param noCorr: Add red noise wit...
"Function to create GW-induced residuals from a stochastic GWB as defined\n in Chamberlin, Creighton, Demorest, et al. (2014).\n \n :param psr: pulsar object for single pulsar\n :param Amp: Amplitude of red noise in GW units \n :param gam: Red noise power law spectral index\n :param noCorr: Add red no...
160
false
vallis/libstempo
createGWB
24,735
LDU_FT/mapbox/rio-color/main
LDU_FT
[ "<BEGIN>\n## `sigmoidal`", "r\"\"\"\n Sigmoidal contrast is type of contrast control that\n adjusts the contrast without saturating highlights or shadows.\n It allows control over two factors:\n the contrast range from light to dark, and where the middle value\n of the mid-tones falls. The result i...
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...
Given a source image and a reference image, Find the rio color formula which results in an output with similar histogram to the reference image. Uses simulated annealing to determine optimal settings. Increase the --downsample option to speed things up. Increase the --steps to get better results (...
"Given a source image and a reference image,\n Find the rio color formula which results in an\n output with similar histogram to the reference image.\n\n Uses simulated annealing to determine optimal settings.\n\n Increase the --downsample option to speed things up.\n Increase the --steps to get better r...
56
false
mapbox/rio-color
main
24,736
LDU_FT/jelmer/python-fastimport/validate_parameters
LDU_FT
[ "<BEGIN>\n## `check_path`", "Check that a path is legal.", " :return: the path if all is OK\n :raise ValueError: if the path is illegal\n<END>", "<BEGIN>\n## `format_path`", "Format a path in utf8, quoting it if necessary.\n<END>", "<BEGIN>\n## `format_who_when`", "Format a tuple of name,email,sec...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the validate_parameters 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 validate_parameters 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...
Validate that the parameters are correctly specified.
"Validate that the parameters are correctly specified."
100
false
jelmer/python-fastimport
validate_parameters
24,737
LDU_FT/natea/django-deployer/init
LDU_FT
[ "<BEGIN>\n## `clone_git_repo`", "input: repo_url\n output: path of the cloned repository\n steps:\n 1. clone the repo\n 2. parse 'site' into for templating", " assumptions:\n repo_url = \"git@github.com:littleq0903/django-deployer-template-openshift-experiment.git\"\n repo_l...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the init API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the init API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
put site settings in the header of the script
"put site settings in the header of the script"
20
false
natea/django-deployer
init
24,738
LDU_FT/Robpol86/terminaltables/combine
LDU_FT
[ "<BEGIN>\n## `combine`", "Zip borders between items in `line`.", " e.g. ('l', '1', 'c', '2', 'c', '3', 'r')", " :param iter line: List to iterate.\n :param left: Left border.\n :param intersect: Column separator.\n :param right: Right border.", " :return: Yields combined objects.\n<END>", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the combine API. Each 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 combine API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
Zip borders between items in `line`. e.g. ('l', '1', 'c', '2', 'c', '3', 'r') :param iter line: List to iterate. :param left: Left border. :param intersect: Column separator. :param right: Right border. :return: Yields combined objects.
"Zip borders between items in `line`.\n\n e.g. ('l', '1', 'c', '2', 'c', '3', 'r')\n\n :param iter line: List to iterate.\n :param left: Left border.\n :param intersect: Column separator.\n :param right: Right border.\n\n :return: Yields combined objects."
88
false
Robpol86/terminaltables
combine
24,739
LDU_FT/trevorstephens/gplearn/hoist_mutation
LDU_FT
[ "<BEGIN>\n## `_parallel_evolve`", "Private function used to build a batch of programs within a job.\n<END>", "<BEGIN>\n## `_verbose_reporter`", "A report of the progress of the evolution process.", " Parameters\n ----------\n run_details : dict\n Information about the evoluti...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the hoist_mutation API. 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 hoist_mutation API. 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...
Perform the hoist mutation operation on the program. Hoist mutation selects a random subtree from the embedded program to be replaced. A random subtree of that subtree is then selected and this is 'hoisted' into the original subtrees location to form an offspring. This method helps to c...
"Perform the hoist mutation operation on the program.\n\n Hoist mutation selects a random subtree from the embedded program to\n be replaced. A random subtree of that subtree is then selected and this\n is 'hoisted' into the original subtrees location to form an offspring.\n This method help...
103
false
trevorstephens/gplearn
hoist_mutation
24,740
LDU_FT/chrippa/python-librtmp/create_stream
LDU_FT
[ "<BEGIN>\n## `read`", "Attempts to read data from the stream.", " :param size: int, The maximum amount of bytes to read.", " Raises :exc:`IOError` on error.\n<END>", "<BEGIN>\n## `write`", "Writes data to the stream.", " :param data: bytes, FLV data to write to the stream", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_stream API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_stream API. 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...
Prepares the session for streaming of audio/video and returns a :class:`RTMPStream` object. :param seek: int, Attempt to seek to this position. :param writeable: bool, Make the stream writeable instead of readable. :param update_buffer: bool, When enabled will attempt to speed up ...
"Prepares the session for streaming of audio/video\n and returns a :class:`RTMPStream` object.\n\n :param seek: int, Attempt to seek to this position.\n :param writeable: bool, Make the stream writeable instead of readable.\n :param update_buffer: bool, When enabled will attempt to speed ...
63
false
chrippa/python-librtmp
create_stream
24,741
LDU_FT/theislab/scanpy/compute_eigen
LDU_FT
[ "<BEGIN>\n## `filter_cells`", "Filter cell outliers based on counts and numbers of genes expressed.", " For instance, only keep cells with at least `min_counts` counts or\n `min_genes` genes expressed. This is to filter measurement outliers,\n i.e. “unreliable” observations.", " Only provide one o...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the compute_eigen API. 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 compute_eigen API. 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...
Compute eigen decomposition of transition matrix. Parameters ---------- n_comps : `int` Number of eigenvalues/vectors to be computed, set `n_comps = 0` if you need all eigenvectors. sym : `bool` Instead of computing the eigendecomposition of the assym...
"Compute eigen decomposition of transition matrix.\n\n Parameters\n ----------\n n_comps : `int`\n Number of eigenvalues/vectors to be computed, set `n_comps = 0` if\n you need all eigenvectors.\n sym : `bool`\n Instead of computing the eigendecomposition of ...
1,142
true
theislab/scanpy
compute_eigen
24,742
LDU_FT/redhat-cip/python-dciclient/list_results
LDU_FT
[ "<BEGIN>\n## `list`", "list(context, verbose)", " List all tags.", " >>> dcictl tag-list", " :param boolean verbose: Display verbose output\n<END>", "<BEGIN>\n## `create`", "create(context, name)", " Create a tag.", " >>> dcictl tag-create [OPTIONS]", " :param string name: Name o...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the list_results API. 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 list_results API. 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...
list_result(context, id) List all job results. >>> dcictl job-results [OPTIONS] :param string id: ID of the job to consult result for [required] :param string sort: Field to apply sort :param integer limit: Max number of rows to return
"list_result(context, id)\n\n List all job results.\n\n >>> dcictl job-results [OPTIONS]\n\n :param string id: ID of the job to consult result for [required]\n :param string sort: Field to apply sort\n :param integer limit: Max number of rows to return"
310
false
redhat-cip/python-dciclient
list_results
24,743
LDU_FT/wbond/asn1crypto/curve
LDU_FT
[ "<BEGIN>\n## `_pep425_version`", ":return:\n A tuple of integers representing the Python version number\n<END>", "<BEGIN>\n## `_pep425_supports_manylinux`", ":return:\n A boolean indicating if the machine can use manylinux1 packages\n<END>", "<BEGIN>\n## `_pep425_get_abi`", ":return:\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the curve API. Each 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 curve API. Each 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 information about the curve used for an EC key :raises: ValueError - when the key is not an EC key :return: A two-element tuple, with the first element being a unicode string of "implicit_ca", "specified" or "named". If the first element is "impl...
"Returns information about the curve used for an EC key\n\n :raises:\n ValueError - when the key is not an EC key\n\n :return:\n A two-element tuple, with the first element being a unicode string\n of \"implicit_ca\", \"specified\" or \"named\". If the first element is\n ...
739
false
wbond/asn1crypto
curve
24,744
LDU_FT/zsimic/runez/option
LDU_FT
[ "<BEGIN>\n## `same_type`", ":return bool: True if 't1' and 't2' are of equivalent types\n<END>", "<BEGIN>\n## `read_json`", ":param str|None path: Path to file to deserialize\n :param dict|list|None default: Default if file is not present, or if it's not json\n :param bool|None fatal: Abort execution on...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the option API. Each 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 option API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Args: func (function): Function defining this option *args: Optional extra short flag name **attrs: Optional attr overrides provided by caller Returns: function: Click decorator
"Args:\n func (function): Function defining this option\n *args: Optional extra short flag name\n **attrs: Optional attr overrides provided by caller\n\n Returns:\n function: Click decorator"
256
false
zsimic/runez
option
24,745
LDU_FT/thespacedoctor/polyglot/_tmp_html_file
LDU_FT
[ "<BEGIN>\n## `create`", "*create the webarchive object*", " **Key Arguments:**\n - ``url`` -- the url of the webpage to generate the webarchive for\n - ``pathToWebarchive`` -- tthe path to output the the webarchive file to ", " **Return:**\n - ``webarchive`` -- t...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _tmp_html_file API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _tmp_html_file API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
*create a tmp html file with some content used for the header or footer of the ebook* **Key Arguments:** - ``content`` -- the content to include in the HTML file.
"*create a tmp html file with some content used for the header or footer of the ebook*\n\n **Key Arguments:**\n - ``content`` -- the content to include in the HTML file."
170
false
thespacedoctor/polyglot
_tmp_html_file
24,746
LDU_FT/nkmathew/yasi-sexp-indenter/is_macro_name
LDU_FT
[ "<BEGIN>\n## `parse_options`", "Reads command-line arguments", " >>> parse_options('--indent-comments')\n<END>", "<BEGIN>\n## `read_file`", "read_file(fname : str) -> str", " >>> read_file(r'C:\\\\mine\\\\test.lisp')\n r'(print \"No, no, there\\'s \\\\r\\\\nlife in him!. \")\\\\r\\\\n\\\\r\\\\n'"...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_macro_name API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_macro_name API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
is_macro_name(func_name : str, dialect : str) -> bool >>> is_macro_name('yacc:define-parser') True Tests if a word is a macro using the language's/dialect's convention, e.g macros in Lisp usually start with 'def' and 'with' in Scheme. Saves the effort of finding all the macros in Lisp/Scheme/Cloju...
"is_macro_name(func_name : str, dialect : str) -> bool\n\n >>> is_macro_name('yacc:define-parser')\n True\n\n Tests if a word is a macro using the language's/dialect's convention,\n e.g macros in Lisp usually start with 'def' and 'with' in Scheme. Saves\n the effort of finding all the macros in Lisp/Sche...
73
false
nkmathew/yasi-sexp-indenter
is_macro_name
24,747
LDU_FT/miso-belica/sumy/normalized_term_frequency
LDU_FT
[ "<BEGIN>\n## `_compute_tf`", "Computes the normalized term frequency as explained in http://www.tfidf.com/\n<END>", "<BEGIN>\n## `f_score`", "Computation of F-Score measure. It is computed as\n F(E) = ( (W^2 + 1) * P(E) * R(E) ) / ( W^2 * P(E) + R(E) ), where:", " - P(E) is precision metrics of extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the normalized_term_frequency API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the normalized_term_frequency API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi...
Returns normalized frequency of term in document. http://nlp.stanford.edu/IR-book/html/htmledition/maximum-tf-normalization-1.html :parameter float smooth: 0.0 <= smooth <= 1.0, generally set to 0.4, although some early work used the value 0.5. The term is a smoothing term ...
"Returns normalized frequency of term in document.\n http://nlp.stanford.edu/IR-book/html/htmledition/maximum-tf-normalization-1.html\n\n :parameter float smooth:\n 0.0 <= smooth <= 1.0, generally set to 0.4, although some\n early work used the value 0.5. The term is a smoothing term...
66
false
miso-belica/sumy
normalized_term_frequency
24,748
LDU_FT/OnroerendErfgoed/language-tags/language
LDU_FT
[ "<BEGIN>\n## `types`", "Get the types of a subtag string (excludes redundant and grandfathered).", " :param str subtag: subtag.\n :return: list of types. The return list can be empty.\n<END>", "<BEGIN>\n## `subtags`", "Get a list of existing :class:`language_tags.Subtag.Subtag` objects given t...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the language API. 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 language API. 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 language :class:`language_tags.Subtag.Subtag` of the tag. :return: language :class:`language_tags.Subtag.Subtag` that is part of the tag. The return can be None.
"Get the language :class:`language_tags.Subtag.Subtag` of the tag.\n\n :return: language :class:`language_tags.Subtag.Subtag` that is part of the tag.\n The return can be None."
50
false
OnroerendErfgoed/language-tags
language
24,749
LDU_FT/cosven/feeluown-core/album_infos
LDU_FT
[ "<BEGIN>\n## `handle`", "NOTE: use tcp instead of udp because some operations need ack\n<END>", "<BEGIN>\n## `url`", "We will always check if this song file exists in local library,\n if true, we return the url of the local file.", " .. note::", " As netease song url will be expir...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the album_infos API. 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 album_infos API. 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...
:param album_id: :return: { code: int, album: { album } }
":param album_id:\n :return: {\n code: int,\n album: { album }\n }"
74
false
cosven/feeluown-core
album_infos
24,750
LDU_FT/BDNYC/astrodbkit/table_add
LDU_FT
[ "<BEGIN>\n## `dict_tovot`", "Converts dictionary table **tabdata** to a VOTable with name **tabname**", " Parameters\n ----------\n tabdata: list\n SQL query dictionary list from running query_dict.execute()\n tabname: str\n The name of the VOTable to be created\n phot: bool\n Para...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the table_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 extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the table_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 extract...
Function to parse dictionary list **data** and add the data to table **tab** for column **col** Parameters ---------- tab: Table class Table to store values data: list Dictionary list from the SQL query col: str Column name (ie, dictionary key) for the column to add
"Function to parse dictionary list **data** and add the data to table **tab** for column **col**\n\n Parameters\n ----------\n tab: Table class\n Table to store values\n data: list\n Dictionary list from the SQL query\n col: str\n Column name (ie, dictionary key) for the column to add"
166
false
BDNYC/astrodbkit
table_add
24,751
LDU_FT/riggsd/davies/OnSelChanged
LDU_FT
[ "<BEGIN>\n## `lint`", "Run verbose PyLint on source. Optionally specify fmt=html for HTML output.\n<END>", "<BEGIN>\n## `azm`", "Corrected azimuth, taking into account backsight, declination, and compass corrections.\n<END>", "<BEGIN>\n## `inc`", "Corrected inclination, taking into account backsight and c...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the OnSelChanged API. 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 OnSelChanged API. 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...
Method called when selected item is changed
"Method called when selected item is changed"
60
false
riggsd/davies
OnSelChanged
24,752
LDU_FT/Cadasta/django-tutelary/assign_user_policies
LDU_FT
[ "<BEGIN>\n## `permission_required`", "Permission checking decorator -- works like the\n ``permission_required`` decorator in the default Django\n authentication system, except that it takes a sequence of actions\n to check, an object must be supplied, and the user must have\n permission to perform all...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the assign_user_policies API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the assign_user_policies API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Assign a sequence of policies to a user (or the anonymous user is ``user`` is ``None``). (Also installed as ``assign_policies`` method on ``User`` model.
"Assign a sequence of policies to a user (or the anonymous user is\n ``user`` is ``None``). (Also installed as ``assign_policies``\n method on ``User`` model."
50
false
Cadasta/django-tutelary
assign_user_policies
24,753
LDU_FT/kootenpv/yagmail/send_unsent
LDU_FT
[ "<BEGIN>\n## `resolve_addresses`", "Handle the targets addresses, adding aliases when defined\n<END>", "<BEGIN>\n## `main`", "This is the function that is run from commandline with `yagmail`\n<END>", "<BEGIN>\n## `validate_email_with_regex`", "Note that this will only filter out syntax mistakes in emailad...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the send_unsent API. 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 send_unsent API. 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...
Emails that were not being able to send will be stored in :attr:`self.unsent`. Use this function to attempt to send these again
"Emails that were not being able to send will be stored in :attr:`self.unsent`.\n Use this function to attempt to send these again"
16
false
kootenpv/yagmail
send_unsent
24,754
LDU_FT/Duke-GCB/DukeDSClient/send_file_external
LDU_FT
[ "<BEGIN>\n## `_create_parser`", "Create a parser hooking up the command methods below to be run when chosen.\n :return: CommandParser parser with commands attached.\n<END>", "<BEGIN>\n## `_check_pypi_version`", "When the version is out of date or we have trouble retrieving it print a error to stderr an...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the send_file_external 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 send_file_external 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...
Send chunk to external store specified in url_json. Raises ValueError on upload failure. :param data_service: data service to use for sending chunk :param url_json: dict contains where/how to upload chunk :param chunk: data to be uploaded
"Send chunk to external store specified in url_json.\n Raises ValueError on upload failure.\n :param data_service: data service to use for sending chunk\n :param url_json: dict contains where/how to upload chunk\n :param chunk: data to be uploaded"
440
false
Duke-GCB/DukeDSClient
send_file_external
24,755
LDU_FT/juicer/juicer/_draw_line
LDU_FT
[ "<BEGIN>\n## `log_wrap`", "DRY: Use magic instead of code to get a string for the correct log\n level when calling ``print_log_msg``. Because writing the same\n boilerplate code in each log_XXX def was too painful to commit.\n<END>", "<BEGIN>\n## `add_repo`", "Build up repos", " `name` - Name o...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _draw_line API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _draw_line API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
Draw a line Loop over a single cell length, over all the cells
"Draw a line\n\n Loop over a single cell length, over all the cells"
243
false
juicer/juicer
_draw_line
24,756
LDU_FT/riggsd/davies/azm
LDU_FT
[ "<BEGIN>\n## `lint`", "Run verbose PyLint on source. Optionally specify fmt=html for HTML output.\n<END>", "<BEGIN>\n## `azm`", "Corrected azimuth, taking into account backsight, declination, and compass corrections.\n<END>", "<BEGIN>\n## `inc`", "Corrected inclination, taking into account backsight and c...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the azm API. Each 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 azm API. Each 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...
Corrected azimuth, taking into account backsight, declination, and compass corrections.
"Corrected azimuth, taking into account backsight, declination, and compass corrections."
60
false
riggsd/davies
azm
24,757
LDU_FT/frawau/aiolifx/get_color_zones
LDU_FT
[ "<BEGIN>\n## `mac_to_ipv6_linklocal`", "Translate a MAC address into an IPv6 address in the prefixed network.", " This function calculates the EUI (Extended Unique Identifier) from the given\n MAC address and prepend the needed prefix to come up with a valid IPv6 address.\n The default prefix is the li...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_color_zones API. 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_color_zones API. 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...
Convenience method to request the state of colour by zones from the device This method will request the information from the device and request that callb be executed when a response is received. :param start_index: Index of the start of the zone of interest :type start_index: ...
"Convenience method to request the state of colour by zones from the device\n\n This method will request the information from the device and request that callb\n be executed when a response is received.\n\n :param start_index: Index of the start of the zone of interest\n :type start_...
134
false
frawau/aiolifx
get_color_zones
24,758
LDU_FT/XuShaohua/bcloud/get_task_db
LDU_FT
[ "<BEGIN>\n## `display_files`", "重新格式化一下文件列表, 去除不需要的信息", " 这一操作主要是为了便于接下来的查找工作.\n 文件的path都被提取出来, 然后放到了一个list中.\n<END>", "<BEGIN>\n## `init_db`", "这个任务数据库只在程序开始时读入, 在程序关闭时导出.", " 因为Gtk没有像在Qt中那么方便的使用SQLite, 而必须将所有数据读入一个\n liststore中才行.\n<END>", "<BEGIN>\n## `get_task_db`", "从数...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_task_db API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_task_db API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
从数据库中查询source_path的信息. 如果存在的话, 就返回这条记录; 如果没有的话, 就返回None
"从数据库中查询source_path的信息.\n \n 如果存在的话, 就返回这条记录;\n 如果没有的话, 就返回None"
199
false
XuShaohua/bcloud
get_task_db
24,759
LDU_FT/IdentityPython/oidcendpoint/get_cookie_value
LDU_FT
[ "<BEGIN>\n## `client_authentication`", "Deal with client authentication", " :param request: The refresh access token request\n :param auth: Client authentication information\n :param kwargs: Extra keyword arguments\n :return: dictionary containing client id, client authentication met...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_cookie_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 ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_cookie_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 ...
Return information stored in a Cookie :param cookie: A cookie instance :param cookie_name: The name of the cookie I'm looking for :return: tuple (value, timestamp, type)
"Return information stored in a Cookie\n\n :param cookie: A cookie instance\n :param cookie_name: The name of the cookie I'm looking for\n :return: tuple (value, timestamp, type)"
180
false
IdentityPython/oidcendpoint
get_cookie_value
24,760
LDU_FT/aarongarrett/inspyred/constructor
LDU_FT
[ "<BEGIN>\n## `mutator`", "Return an inspyred mutator function based on the given function.", " This function generator takes a function that operates on only\n one candidate to produce a single mutated candidate. The generator \n handles the iteration over each candidate in the set to be mutated.", "...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the constructor API. 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 constructor API. 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 a candidate solution for an ant colony optimization.
"Return a candidate solution for an ant colony optimization."
390
false
aarongarrett/inspyred
constructor
24,761
LDU_FT/dacker-team/pyzure/send_to_azure_multi_threads
LDU_FT
[ "<BEGIN>\n## `send_to_azure`", "data = {\n \"table_name\" \t: 'name_of_the_azure_schema' + '.' + 'name_of_the_azure_table' #Must already exist,\n \"columns_name\" \t: [first_column_name,second_column_name,...,last_column_name],\n \"rows\"\t\t: [[first_raw_value,second_raw_value,...,last_raw_v...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the send_to_azure_multi_threads 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 send_to_azure_multi_threads API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclu...
data = { "table_name" : 'name_of_the_azure_schema' + '.' + 'name_of_the_azure_table' #Must already exist, "columns_name" : [first_column_name,second_column_name,...,last_column_name], "rows" : [[first_raw_value,second_raw_value,...,last_raw_value],...] }
"data = {\n \"table_name\" \t: 'name_of_the_azure_schema' + '.' + 'name_of_the_azure_table' #Must already exist,\n \"columns_name\" \t: [first_column_name,second_column_name,...,last_column_name],\n \"rows\"\t\t: [[first_raw_value,second_raw_value,...,last_raw_value],...]\n }"
10
false
dacker-team/pyzure
send_to_azure_multi_threads
24,762
LDU_FT/rbuffat/pyepw/extraterrestrial_direct_normal_radiation
LDU_FT
[ "<BEGIN>\n## `read`", "Read values.", " Args:\n vals (list): list of strings representing values\n<END>", "<BEGIN>\n## `city`", "Corresponds to IDD Field `city`", " Args:\n value (str): value for IDD Field `city`\n if `value` is None it will not be checke...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the extraterrestrial_direct_normal_radiation API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicat...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the extraterrestrial_direct_normal_radiation API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicat...
Corresponds to IDD Field `extraterrestrial_direct_normal_radiation` Args: value (float): value for IDD Field `extraterrestrial_direct_normal_radiation` Unit: Wh/m2 value >= 0.0 Missing value: 9999.0 if `value` is None it will not be ch...
"Corresponds to IDD Field `extraterrestrial_direct_normal_radiation`\n\n Args:\n value (float): value for IDD Field `extraterrestrial_direct_normal_radiation`\n Unit: Wh/m2\n value >= 0.0\n Missing value: 9999.0\n if `value` is None it will n...
675
false
rbuffat/pyepw
extraterrestrial_direct_normal_radiation
24,763
LDU_FT/ScienceLogic/amiuploader/wait_for_import_to_complete
LDU_FT
[ "<BEGIN>\n## `validate_args`", "Perform necessary validation checks\n :param args:\n :return:\n<END>", "<BEGIN>\n## `vmdk_to_ami`", "Calls methods to perform vmdk import\n :param args:\n :return:\n<END>", "<BEGIN>\n## `parse_image_json`", "parses response output of AWS describe commands and re...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the wait_for_import_to_complete 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 wait_for_import_to_complete API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclu...
Monitors the status of aws import, waiting for it to complete, or error out :param import_id: id of import task to monitor
"Monitors the status of aws import, waiting for it to complete, or error out\n :param import_id: id of import task to monitor"
34
false
ScienceLogic/amiuploader
wait_for_import_to_complete
24,764
LDU_FT/bhmm/bhmm/estimate_hmm
LDU_FT
[ "<BEGIN>\n## `_forward_backward`", "Estimation step: Runs the forward-back algorithm on trajectory with index itraj", " Parameters\n ----------\n itraj : int\n index of the observation trajectory to process", " Results\n -------\n logprob : float\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the estimate_hmm API. 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 estimate_hmm API. 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...
r""" Estimate maximum-likelihood HMM Generic maximum-likelihood estimation of HMMs Parameters ---------- observations : list of numpy arrays representing temporal data `observations[i]` is a 1d numpy array corresponding to the observed trajectory index `i` nstates : int The number ...
"r\"\"\" Estimate maximum-likelihood HMM\n\n Generic maximum-likelihood estimation of HMMs\n\n Parameters\n ----------\n observations : list of numpy arrays representing temporal data\n `observations[i]` is a 1d numpy array corresponding to the observed trajectory index `i`\n nstates : int\n ...
497
false
bhmm/bhmm
estimate_hmm
24,765
LDU_FT/base4sistemas/pyescpos/cut
LDU_FT
[ "<BEGIN>\n## `ean8`", "Render given ``data`` as **JAN-8/EAN-8** barcode symbology.\n<END>", "<BEGIN>\n## `ean13`", "Render given ``data`` as **JAN-13/EAN-13** barcode symbology.\n<END>", "<BEGIN>\n## `code128`", "Renders given ``data`` as **Code 128** barcode symbology.", " :param str codeset: Op...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the cut API. Each 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 cut API. Each 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...
Trigger cutter to perform partial (default) or full paper cut.
"Trigger cutter to perform partial (default) or full paper cut."
83
false
base4sistemas/pyescpos
cut
24,766
LDU_FT/obriencj/python-javatools/add_jar_entries
LDU_FT
[ "<BEGIN>\n## `compare`", "yields EVENT,ENTRY pairs describing the differences between left\n and right, which are filenames for a pair of zip files\n<END>", "<BEGIN>\n## `compare_zips`", "yields EVENT,ENTRY pairs describing the differences between left\n and right ZipFile instances\n<END>", "<BEGIN>\n...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_jar_entries API. 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_jar_entries API. 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...
Add manifest sections for all but signature-related entries of :param jar_file. :param digest_name The digest algorithm to use :return None TODO: join code with cli_create
"Add manifest sections for all but signature-related entries\n of :param jar_file.\n :param digest_name The digest algorithm to use\n :return None\n TODO: join code with cli_create"
357
false
obriencj/python-javatools
add_jar_entries
24,767
LDU_FT/sio2project/filetracker/logical_size
LDU_FT
[ "<BEGIN>\n## `get_file`", "Retrieves file identified by ``name``.", " The file is saved as ``save_to``. If ``add_to_cache`` is ``True``,\n the file is added to the local store. If ``force_refresh`` is\n ``True``, local cache is not examined if a remote store is\n configur...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the logical_size API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the logical_size API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
Returns the logical size (before compression) of file `name`.
"Returns the logical size (before compression) of file `name`."
84
false
sio2project/filetracker
logical_size
24,768
LDU_FT/saeschdivara/ArangoPy/near
LDU_FT
[ "<BEGIN>\n## `all`", "Returns all documents of the collection", " :param collection Collection instance\n :param skip The number of documents to skip in the query\n :param limit The maximal amount of documents to return. The skip is applied before the limit restriction.", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the near API. Each 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 near API. Each 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...
The default will find at most 100 documents near the given coordinate. The returned list is sorted according to the distance, with the nearest document being first in the list. If there are near documents of equal distance, documents are chosen randomly from this set until the limit ...
"The default will find at most 100 documents near the given coordinate.\n The returned list is sorted according to the distance, with the nearest document being first in the list.\n If there are near documents of equal distance, documents are chosen randomly from this set until\n the li...
115
false
saeschdivara/ArangoPy
near
24,769
LDU_FT/dwkim78/upsilon/get_period_uncertainty
LDU_FT
[ "<BEGIN>\n## `sigma_clipping`", "Remove any fluctuated data points by magnitudes.", " Parameters\n ----------\n date : array_like\n An array of dates.\n mag : array_like\n An array of magnitudes.\n err : array_like\n An array of magnitude errors.\n threshold : float, optio...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_period_uncertainty 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_period_uncertainty API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
Get uncertainty of a period. The uncertainty is defined as the half width of the frequencies around the peak, that becomes lower than average + standard deviation of the power spectrum. Since we may not have fine resolution around the peak, we do not assume it is gaussian. So, ...
"Get uncertainty of a period.\n\n The uncertainty is defined as the half width of the frequencies\n around the peak, that becomes lower than average + standard deviation\n of the power spectrum.\n\n Since we may not have fine resolution around the peak,\n we do not assume it is gaussi...
80
false
dwkim78/upsilon
get_period_uncertainty
24,770
LDU_FT/seb-m/pyinotify/process_default
LDU_FT
[ "<BEGIN>\n## `compatibility_mode`", "Use this function to turn on the compatibility mode. The compatibility\n mode is used to improve compatibility with Pyinotify 0.7.1 (or older)\n programs. The compatibility mode provides additional variables 'is_dir',\n 'event_name', 'EventsCodes.IN_*' and 'EventsCode...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the process_default API. 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 process_default API. 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...
Writes event string representation to file object provided to my_init(). @param event: Event to be processed. Can be of any type of events but IN_Q_OVERFLOW events (see method process_IN_Q_OVERFLOW). @type event: Event instance
"Writes event string representation to file object provided to\n my_init().\n\n @param event: Event to be processed. Can be of any type of events but\n IN_Q_OVERFLOW events (see method process_IN_Q_OVERFLOW).\n @type event: Event instance"
107
false
seb-m/pyinotify
process_default
24,771
LDU_FT/DarkEnergySurvey/ugali/galToCel
LDU_FT
[ "<BEGIN>\n## `integrate`", "Calculate the 2D integral of the 1D surface brightness profile \n (i.e, the flux) between rmin and rmax (elliptical radii). ", " Parameters:\n -----------\n rmin : minimum integration radius (deg)\n rmax : maximum integration radius (deg)", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the galToCel API. 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 galToCel API. 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...
Converts Galactic (deg) to Celestial J2000 (deg) coordinates
"Converts Galactic (deg) to Celestial J2000 (deg) coordinates"
614
false
DarkEnergySurvey/ugali
galToCel
24,772