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/keon/algorithms/get_longest_non_repeat_v1
LDU_FT
[ "<BEGIN>\n## `convert_to_list`", "converts a positive integer into a (reversed) linked list.\n for example: give 112\n result 2 -> 1 -> 1\n<END>", "<BEGIN>\n## `convert_to_str`", "converts the non-negative number list into a string.\n<END>", "<BEGIN>\n## `three_sum`", ":param array: List[int...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_longest_non_repeat_v1 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 get_longest_non_repeat_v1 API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi...
Find the length of the longest substring without repeating characters. Return max_len and the substring as a tuple
"Find the length of the longest substring\n without repeating characters.\n Return max_len and the substring as a tuple"
273
false
keon/algorithms
get_longest_non_repeat_v1
26,473
LDU_FT/baccuslab/shannon/entropy
LDU_FT
[ "<BEGIN>\n## `remove_symbol_from_dist`", "prob is a ndarray representing a probability distribution.\n index is a number between 0 and and the number of symbols ( len(prob)-1 )\n return the probability distribution if the element at 'index' was no longer available\n<END>", "<BEGIN>\n## `change_response`",...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the entropy API. 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 entropy API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
given a probability distribution (prob) or an interable of symbols (data) compute and return its entropy inputs: ------ data: iterable of symbols prob: iterable with probabilities tol: if prob is given, 'entropy' checks that the sum is about 1. ...
"given a probability distribution (prob) or an interable of symbols (data) compute and\n return its entropy\n\n inputs:\n ------\n data: iterable of symbols\n\n prob: iterable with probabilities\n\n tol: if prob is given, 'entropy' checks that the sum is about 1.\n ...
83
false
baccuslab/shannon
entropy
26,474
LDU_FT/reincubate/ricloud/print_prompt_values
LDU_FT
[ "<BEGIN>\n## `error_message_and_exit`", "Prints error messages in blue, the failed task result and quits.\n<END>", "<BEGIN>\n## `print_prompt_values`", "Prints prompt title and choices with a bit of formatting.\n<END>", "<BEGIN>\n## `prompt_for_input`", "Prints prompt instruction and does basic input pars...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the print_prompt_values 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 print_prompt_values 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...
Prints prompt title and choices with a bit of formatting.
"Prints prompt title and choices with a bit of formatting."
50
false
reincubate/ricloud
print_prompt_values
26,475
LDU_FT/bastibe/SoundFile/buffer_read
LDU_FT
[ "<BEGIN>\n## `read`", "Provide audio data from a sound file as NumPy array.", " By default, the whole file is read from the beginning, but the\n position to start reading can be specified with `start` and the\n number of frames to read can be specified with `frames`.\n Alternatively, a range can be ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the buffer_read API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the buffer_read API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
Read from the file and return data as buffer object. Reads the given number of `frames` in the given data format starting at the current read/write position. This advances the read/write position by the same number of frames. By default, all frames from the current read/write position ...
"Read from the file and return data as buffer object.\n\n Reads the given number of `frames` in the given data format\n starting at the current read/write position. This advances the\n read/write position by the same number of frames.\n By default, all frames from the current read/write pos...
139
false
bastibe/SoundFile
buffer_read
26,476
LDU_FT/klahnakoski/pyLibrary/jx_expression_to_function
LDU_FT
[ "<BEGIN>\n## `groupby`", ":param data:\n :param keys:\n :param size:\n :param min_size:\n :param max_size:\n :param contiguous: MAINTAIN THE ORDER OF THE DATA, STARTING THE NEW GROUP WHEN THE SELECTOR CHANGES\n :return: return list of (keys, values) PAIRS, WHERE\n keys IS IN LEAF...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the jx_expression_to_function 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 jx_expression_to_function API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi...
RETURN FUNCTION THAT REQUIRES PARAMETERS (row, rownum=None, rows=None):
"RETURN FUNCTION THAT REQUIRES PARAMETERS (row, rownum=None, rows=None):"
574
false
klahnakoski/pyLibrary
jx_expression_to_function
26,477
LDU_FT/etcher-be/epab/read_local_files
LDU_FT
[ "<BEGIN>\n## `cli`", "This is a tool that handles all the tasks to build a Python application", " This tool is installed as a setuptools entry point, which means it should be accessible from your terminal once\n this application is installed in develop mode.\n<END>", "<BEGIN>\n## `sort`", "Runs iSort ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the read_local_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 read_local_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 one or more text files and returns them joined together. A title is automatically created based on the file name. Args: *file_paths: list of files to aggregate Returns: content of files
"Reads one or more text files and returns them joined together.\n A title is automatically created based on the file name.\n\n Args:\n *file_paths: list of files to aggregate\n\n Returns: content of files"
133
false
etcher-be/epab
read_local_files
26,478
LDU_FT/fictorial/pygameui/get_value
LDU_FT
[ "<BEGIN>\n## `value_for_keypath`", "Get value from walking key path with start object obj.\n<END>", "<BEGIN>\n## `set_value_for_keypath`", "Set attribute value new_value at key path of start object obj.\n<END>", "<BEGIN>\n## `view_for_image_named`", "Create an ImageView for the given image.\n<END>", "<B...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_value API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_value API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
Get a single style attribute value for the given class.
"Get a single style attribute value for the given class."
53
false
fictorial/pygameui
get_value
26,479
LDU_FT/Sheeprider/BitBucket-api/finalize_oauth
LDU_FT
[ "<BEGIN>\n## `auth`", "Return credentials for current Bitbucket user.\n<END>", "<BEGIN>\n## `authorize`", "Call this with your consumer key, secret and callback URL, to\n generate a token for verification.\n<END>", "<BEGIN>\n## `verify`", "After converting the token into verifier, call this to fina...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the finalize_oauth API. 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 finalize_oauth API. 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...
Called internally once auth process is complete.
"Called internally once auth process is complete."
39
false
Sheeprider/BitBucket-api
finalize_oauth
26,480
LDU_FT/boakley/robotframework-hub/get_collections
LDU_FT
[ "<BEGIN>\n## `add`", "Add a folder, library (.py) or resource file (.robot, .tsv, .txt) to the database\n<END>", "<BEGIN>\n## `on_change`", "Respond to changes in the file system", " This method will be given the path to a file that\n has changed on disk. We need to reload the keywords\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_collections API. 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_collections API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
Get list of collections from kwdb, then add urls necessary for hyperlinks
"Get list of collections from kwdb, then add urls necessary for hyperlinks"
61
false
boakley/robotframework-hub
get_collections
26,481
LDU_FT/prompt-toolkit/pymux/bind_and_listen_on_posix_socket
LDU_FT
[ "<BEGIN>\n## `read_message_from_pipe`", "(coroutine)\n Read message from this pipe. Return text.\n<END>", "<BEGIN>\n## `read_message_bytes_from_pipe`", "(coroutine)\n Read message from this pipe. Return bytes.\n<END>", "<BEGIN>\n## `wait_for_event`", "Wraps a win32 event into a `Future` and wait for...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the bind_and_listen_on_posix_socket API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its co...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the bind_and_listen_on_posix_socket API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its co...
:param accept_callback: Called with `PosixSocketConnection` when a new connection is established.
":param accept_callback: Called with `PosixSocketConnection` when a new\n connection is established."
147
false
prompt-toolkit/pymux
bind_and_listen_on_posix_socket
26,482
LDU_FT/maxpumperla/elephas/train
LDU_FT
[ "<BEGIN>\n## `add_params`", "Add two lists of parameters one by one", " :param param_list_left: list of numpy arrays\n :param param_list_right: list of numpy arrays\n :return: list of numpy arrays\n<END>", "<BEGIN>\n## `subtract_params`", "Subtract two lists of parameters", " :param param_list...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the train API. 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 train API. 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...
Train a keras model on a worker and send asynchronous updates to parameter server
"Train a keras model on a worker and send asynchronous updates\n to parameter server"
87
false
maxpumperla/elephas
train
26,483
LDU_FT/laike9m/pdir2/methods
LDU_FT
[ "<BEGIN>\n## `search`", "Searches for names that match some pattern.", " Args:\n term: String used to match names. A name is returned if it matches\n the whole search term.\n case_sensitive: Boolean to match case or not, default is False\n (case insensitive...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the methods API. 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 methods API. 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 all methods of the inspected object. Note that "methods" can mean "functions" when inspecting a module.
"Returns all methods of the inspected object.\n\n Note that \"methods\" can mean \"functions\" when inspecting a module."
24
false
laike9m/pdir2
methods
26,484
LDU_FT/jbloomlab/phydms/DiscreteGamma
LDU_FT
[ "<BEGIN>\n## `maximizeLikelihood`", "Maximize the log likelihood.", " Maximizes log likelihood with respect to model parameters\n and potentially branch lengths depending on `optimize_brlen`.\n If optimizing the branch lengths, iterates between optimizing\n the model parameters and b...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the DiscreteGamma API. 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 DiscreteGamma API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
Returns category means for discretized gamma distribution. The distribution is evenly divided into categories, and the mean of each category is returned. Args: `alpha` (`float` > 0) Shape parameter of gamma distribution. `beta` (`float` > 0) Inverse scale parameter ...
"Returns category means for discretized gamma distribution.\n\n The distribution is evenly divided into categories, and the\n mean of each category is returned.\n\n Args:\n `alpha` (`float` > 0)\n Shape parameter of gamma distribution.\n `beta` (`float` > 0)\n Inverse scale ...
294
false
jbloomlab/phydms
DiscreteGamma
26,485
LDU_FT/samjabrahams/anchorhub/switch
LDU_FT
[ "<BEGIN>\n## `get`", "Extract the specified AnchorHub tag, as well as the portion of the\n line that should be converted from the ATX style Markdown header.", " :param file_lines: List of strings corresponding to lines in a text file\n :param index: index of file_lines corresponding to the ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the switch API. 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 switch API. 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 ...
Set the state of the switch. If the armed state is set to False, the function does nothing. :param val: Boolean. The value to set the switch state to. When None, the switch will be set to the opposite of its current state. :return: Boolean. Returns True if operation was successful (...
"Set the state of the switch. If the armed state is set to False,\n the function does nothing.\n\n :param val: Boolean. The value to set the switch state to. When None,\n the switch will be set to the opposite of its current state.\n :return: Boolean. Returns True if operation was succes...
148
false
samjabrahams/anchorhub
switch
26,486
LDU_FT/alan-turing-institute/topic-modelling-tools/query
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 query API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the query API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
Query docs with query_samples number of Gibbs sampling iterations.
"Query docs with query_samples number of Gibbs\n sampling iterations."
44
false
alan-turing-institute/topic-modelling-tools
query
26,487
LDU_FT/deep-compute/deeputil/set_file_limits
LDU_FT
[ "<BEGIN>\n## `FunctionTimer`", "To check execution time of a function\n borrowed from https://medium.com/pythonhive/python-decorator-to-measure-the-execution-time-of-methods-fa04cb6bb36d", " >>> def logger(details, args, kwargs): #some function that uses the time output\n ... print(details)\n .....
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_file_limits API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_file_limits API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
Set the limit on number of file descriptors that this process can open.
"Set the limit on number of file descriptors\n that this process can open."
68
false
deep-compute/deeputil
set_file_limits
26,488
LDU_FT/tjcsl/ion/get_authinfo
LDU_FT
[ "<BEGIN>\n## `student_visible`", "Return a list of groups that are student-visible.\n<END>", "<BEGIN>\n## `stdev`", "r\"\"\"Calculate standard deviation of data x[]:\n std = sqrt(\\sum_i (x_i - mean)^2 \\over n-1)\n https://wiki.python.org/moin/NumericAndScientificRecipes\n<END>", "<BEGIN>\n##...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_authinfo API. 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_authinfo API. 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...
Get authentication info from the encrypted message.
"Get authentication info from the encrypted message."
407
false
tjcsl/ion
get_authinfo
26,489
LDU_FT/mikeywaites/flask-arrested/dispatch_request
LDU_FT
[ "<BEGIN>\n## `process`", "Process the provided data and invoke :meth:`Handler.handle` method for this\n Handler class.", " :params data: The data being processed.\n :returns: self\n :rtype: :class:`Handler`", " .. code-block:: python", " def post(self, *args, **...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the dispatch_request API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the dispatch_request API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Dispatch the incoming HTTP request to the appropriate handler.
"Dispatch the incoming HTTP request to the appropriate handler."
99
false
mikeywaites/flask-arrested
dispatch_request
26,490
LDU_FT/EconForge/dolo/newton
LDU_FT
[ "<BEGIN>\n## `multidot_old`", "Implements tensor operation : tensor-times-matrices.\n If last dimensions of ten represent multilinear operations of the type : [X1,...,Xk]->B[X1,...,Xk]\n and mats contains matrices or vectors [A1,...Ak] the function returns an array representing operators :\n [X1,...,Xk]-...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the newton API. 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 newton API. 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 ...
Solve nonlinear system using safeguarded Newton iterations Parameters ---------- Return ------
"Solve nonlinear system using safeguarded Newton iterations\n\n\n Parameters\n ----------\n\n Return\n ------"
221
false
EconForge/dolo
newton
26,491
LDU_FT/kumar303/mohawk/get_bewit
LDU_FT
[ "<BEGIN>\n## `respond`", "Respond to the request.", " This generates the :attr:`mohawk.Receiver.response_header`\n attribute.", " :param content=EmptyValue: Byte string of response body that will be sent.\n :type content=EmptyValue: str", " :param content_type=EmptyValue: ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_bewit API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_bewit API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
Returns a bewit identifier for the resource as a string. :param resource: Resource to generate a bewit for :type resource: `mohawk.base.Resource`
"Returns a bewit identifier for the resource as a string.\n\n :param resource:\n Resource to generate a bewit for\n :type resource: `mohawk.base.Resource`"
42
false
kumar303/mohawk
get_bewit
26,492
LDU_FT/mfussenegger/cr8/get_lines
LDU_FT
[ "<BEGIN>\n## `to_int`", "converts a string to an integer", " >>> to_int('1_000_000')\n 1000000", " >>> to_int('1e6')\n 1000000", " >>> to_int('1000')\n 1000\n<END>", "<BEGIN>\n## `dicts_from_lines`", "returns a generator producing dicts from json lines", " 1 JSON object per line i...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_lines API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_lines API. 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...
Create an iterator that returns the lines of a utf-8 encoded file.
"Create an iterator that returns the lines of a utf-8 encoded file."
146
false
mfussenegger/cr8
get_lines
26,493
LDU_FT/OCHA-DAP/hdx-python-country/set_countriesdata
LDU_FT
[ "<BEGIN>\n## `script_dir`", "Get current script's directory", " Args:\n pyobject (Any): Any Python object in the script\n follow_symlinks (Optional[bool]): Follow symlinks or not. Defaults to True.", " Returns:\n str: Current script's directory\n<END>", "<BEGIN>\n## `script_dir_pl...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_countriesdata API. 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 set_countriesdata API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Set up countries data from data in form provided by UNStats and World Bank Args: countries (str): Countries data in HTML format provided by UNStats Returns: None
"Set up countries data from data in form provided by UNStats and World Bank\n\n Args:\n countries (str): Countries data in HTML format provided by UNStats\n\n Returns:\n None"
76
false
OCHA-DAP/hdx-python-country
set_countriesdata
26,494
LDU_FT/rootpy/rootpy/root_open
LDU_FT
[ "<BEGIN>\n## `total`", "Return the total yield and its associated statistical uncertainty.\n<END>", "<BEGIN>\n## `sys_names`", "Return a list of unique systematic names from OverallSys and HistoSys\n<END>", "<BEGIN>\n## `iter_sys`", "Iterate over sys_name, overall_sys, histo_sys.\n overall_sys or h...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the root_open API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the root_open API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
Open a ROOT file via ROOT's static ROOT.TFile.Open [1] function and return an asrootpy'd File. Parameters ---------- filename : string The absolute or relative path to the ROOT file. mode : string, optional (default='') Mode indicating how the file is to be opened. This can be ei...
"Open a ROOT file via ROOT's static ROOT.TFile.Open [1] function and return\n an asrootpy'd File.\n\n Parameters\n ----------\n\n filename : string\n The absolute or relative path to the ROOT file.\n\n mode : string, optional (default='')\n Mode indicating how the file is to be opened. Thi...
878
false
rootpy/rootpy
root_open
26,495
LDU_FT/openvax/topiary/rna_transcript_expression_dict_from_args
LDU_FT
[ "<BEGIN>\n## `transcript_sort_key`", "Key function used to sort transcripts. Taking the negative of\n protein sequence length and nucleotide sequence length so that\n the transcripts with longest sequences come first in the list. This couldn't\n be accomplished with `reverse=True` since we're also sortin...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the rna_transcript_expression_dict_from_args 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 rna_transcript_expression_dict_from_args API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicat...
Returns a dictionary mapping Ensembl transcript IDs to FPKM expression values or None if neither Cufflinks tracking file nor StringTie GTF file were specified.
"Returns a dictionary mapping Ensembl transcript IDs to FPKM expression\n values or None if neither Cufflinks tracking file nor StringTie GTF file\n were specified."
91
false
openvax/topiary
rna_transcript_expression_dict_from_args
26,496
LDU_FT/tetframework/Tonnikala/remove_locations
LDU_FT
[ "<BEGIN>\n## `merge_text_nodes_on`", "Merges all consecutive non-translatable text nodes into one\n<END>", "<BEGIN>\n## `push_state`", "Push a copy of the topmost state on top of the state stack,\n returns the new top.\n<END>", "<BEGIN>\n## `enter_node`", "Enter the given element; keeps track of `c...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the remove_locations API. 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 remove_locations API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Removes locations from the given AST tree completely
"Removes locations from the given AST tree completely"
39
false
tetframework/Tonnikala
remove_locations
26,497
LDU_FT/AirtestProject/Poco/get_instance
LDU_FT
[ "<BEGIN>\n## `jsonrpc_map`", "Map of json-rpc available calls.", " :return str:\n<END>", "<BEGIN>\n## `command`", "通过hunter调用gm指令,可调用hunter指令库中定义的所有指令,也可以调用text类型的gm指令\n gm指令相关功能请参考safaia GM指令扩展模块", " :param cmd: 指令\n :param type: 语言,默认text\n :return: None\n<END>", "<B...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_instance API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_instance API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
This is only a slot to store and get already initialized poco instance rather than initializing again. You can simply pass the ``current device instance`` provided by ``airtest`` to get the AndroidUiautomationPoco instance. If no such AndroidUiautomationPoco instance, a new instance will be created and ...
"This is only a slot to store and get already initialized poco instance rather than initializing again. You can\n simply pass the ``current device instance`` provided by ``airtest`` to get the AndroidUiautomationPoco instance.\n If no such AndroidUiautomationPoco instance, a new instance will be created a...
191
false
AirtestProject/Poco
get_instance
26,498
LDU_FT/ismms-himc/clustergrammer2/load_data_to_net
LDU_FT
[ "<BEGIN>\n## `run_norm`", "A dataframe (more accurately a dictionary of dataframes, e.g. mat,\n mat_up...) can be passed to run_norm and a normalization will be run (\n e.g. zscore) on either the rows or columns\n<END>", "<BEGIN>\n## `qn_df`", "do quantile normalization of a dataframe dictionary, does not w...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load_data_to_net API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load_data_to_net API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
load data into nodes and mat, also convert mat to numpy array
"load data into nodes and mat, also convert mat to numpy array"
90
false
ismms-himc/clustergrammer2
load_data_to_net
26,499
LDU_FT/craffel/mir_eval/detection
LDU_FT
[ "<BEGIN>\n## `_open`", "Either open a file handle, or use an existing file-like object.", " This will behave as the `open` function if `file_or_str` is a string.", " If `file_or_str` has the `read` attribute, it will return `file_or_str`.", " Otherwise, an `IOError` is raised.\n<END>", "<BEGIN>\n...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the detection API. 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 detection API. 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...
Boundary detection hit-rate. A hit is counted whenever an reference boundary is within ``window`` of a estimated boundary. Note that each boundary is matched at most once: this is achieved by computing the size of a maximal matching between reference and estimated boundary points, subject to the windo...
"Boundary detection hit-rate.\n\n A hit is counted whenever an reference boundary is within ``window`` of a\n estimated boundary. Note that each boundary is matched at most once: this\n is achieved by computing the size of a maximal matching between reference\n and estimated boundary points, subject to the...
1,001
false
craffel/mir_eval
detection
26,500
LDU_FT/nickstenning/honcho/add_process
LDU_FT
[ "<BEGIN>\n## `add_process`", "Add a process to this manager instance. The process will not be started\n until :func:`~honcho.manager.Manager.loop` is called.\n<END>", "<BEGIN>\n## `loop`", "Start all the added processes and multiplex their output onto the bound\n printer (which by default will p...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_process API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_process API. 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...
Add a process to this manager instance. The process will not be started until :func:`~honcho.manager.Manager.loop` is called.
"Add a process to this manager instance. The process will not be started\n until :func:`~honcho.manager.Manager.loop` is called."
15
false
nickstenning/honcho
add_process
26,501
LDU_FT/thombashi/SimpleSQLite/update
LDU_FT
[ "<BEGIN>\n## `set_log_level`", "Set logging level of this module. Using\n `logbook <https://logbook.readthedocs.io/en/stable/>`__ module for logging.", " :param int log_level:\n One of the log level of\n `logbook <https://logbook.readthedocs.io/en/stable/api/base.html>`__.\n Disabled ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Execute an UPDATE query. Args: table_name (|str|): Table name of executing the query. set_query (|str|): ``SET`` clause for the update query. where (|arg_where_type| , optional): ``WHERE`` clause for the update query. ...
"Execute an UPDATE query.\n\n Args:\n table_name (|str|):\n Table name of executing the query.\n set_query (|str|):\n ``SET`` clause for the update query.\n where (|arg_where_type| , optional):\n ``WHERE`` clause for the update query.\...
185
false
thombashi/SimpleSQLite
update
26,502
LDU_FT/timothyhahn/rui/remove_entity
LDU_FT
[ "<BEGIN>\n## `add_entity`", "Add entity to world.\n entity is of type Entity\n<END>", "<BEGIN>\n## `add_system`", "Add system to the world.\n All systems will be processed on World.process()\n system is of type System\n<END>", "<BEGIN>\n## `register_entity_to_group`", "Add entity ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the remove_entity API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the remove_entity API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
Removes entity from world and kills entity
"Removes entity from world and kills entity"
20
false
timothyhahn/rui
remove_entity
26,503
LDU_FT/jpscaletti/solution/as_select
LDU_FT
[ "<BEGIN>\n## `as_select`", "Render the field as a `<select>` element.", " :param **kwargs:\n Named paremeters used to generate the HTML attributes of each item.\n It follows the same rules as `get_html_attrs`\n<END>", "<BEGIN>\n## `_clean_data`", "This overwrite is neccesary for...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the as_select API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the as_select API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
Render the field as a `<select>` element. :param **kwargs: Named paremeters used to generate the HTML attributes of each item. It follows the same rules as `get_html_attrs`
"Render the field as a `<select>` element.\n\n :param **kwargs:\n Named paremeters used to generate the HTML attributes of each item.\n It follows the same rules as `get_html_attrs`"
57
false
jpscaletti/solution
as_select
26,504
LDU_FT/Brazelton-Lab/bio_utils/write
LDU_FT
[ "<BEGIN>\n## `binary_guesser`", "Raise error if file not likely binary", " Guesses if a file is binary, raises error if file is not likely binary,\n then returns to location in file when handle passed to binary_guesser.", " Args:\n handle (file): File handle of file thought to be binary", " ...
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...
Return SAM formatted string Returns: str: SAM formatted string containing entire SAM entry
"Return SAM formatted string\n\n Returns:\n str: SAM formatted string containing entire SAM entry"
158
false
Brazelton-Lab/bio_utils
write
26,505
LDU_FT/chaimleib/intervaltree/score
LDU_FT
[ "<BEGIN>\n## `refresh_balance`", "Recalculate self.balance and self.depth based on child node values.\n<END>", "<BEGIN>\n## `compute_depth`", "Recursively computes true depth of the subtree. Should only\n be needed for debugging. Unless something is wrong, the\n depth field should reflect the co...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the score API. 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 score API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
Returns a number between 0 and 1, indicating how suboptimal the tree is. The lower, the better. Roughly, this number represents the fraction of flawed Intervals in the tree. :rtype: float
"Returns a number between 0 and 1, indicating how suboptimal the tree\n is. The lower, the better. Roughly, this number represents the\n fraction of flawed Intervals in the tree.\n :rtype: float"
139
false
chaimleib/intervaltree
score
26,506
LDU_FT/Jaymon/prom/sort_field
LDU_FT
[ "<BEGIN>\n## `fields`", "return all the fields and their raw values for this Orm instance. This\n property returns a dict with the field names and their current values", " if you want to control the values for outputting to an api, use .jsonable()\n<END>", "<BEGIN>\n## `create`", "create an in...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the sort_field API. 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 sort_field API. 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...
sort this query by field_name in directrion field_name -- string -- the field to sort on direction -- integer -- negative for DESC, positive for ASC field_vals -- list -- the order the rows should be returned in
"sort this query by field_name in directrion\n\n field_name -- string -- the field to sort on\n direction -- integer -- negative for DESC, positive for ASC\n field_vals -- list -- the order the rows should be returned in"
241
false
Jaymon/prom
sort_field
26,507
LDU_FT/ets-labs/python-domain-models/check_include_exclude
LDU_FT
[ "<BEGIN>\n## `init_model`", "Init model with field.", " :param DomainModel model:\n :param object value:\n<END>", "<BEGIN>\n## `get_value`", "Return field's value.", " :param DomainModel model:\n :param object default:\n :rtype object:\n<END>", "<BEGIN>\n## `set_value`...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the check_include_exclude API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the check_include_exclude API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Check __include__ and __exclude__ attributes. :type attributes: dict
"Check __include__ and __exclude__ attributes.\n\n :type attributes: dict"
40
false
ets-labs/python-domain-models
check_include_exclude
26,508
LDU_FT/NLeSC/noodles/fold
LDU_FT
[ "<BEGIN>\n## `coroutine`", "A sink should be send `None` first, so that the coroutine arrives\n at the `yield` position. This wrapper takes care that this is done\n automatically when the coroutine is started.\n<END>", "<BEGIN>\n## `maybe`", "Calls `f` in a try/except block, returning a `Fail` object if...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the fold API. 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 fold API. 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...
Traverse an iterable object while performing stateful computations with the elements. It returns a :py:class:`PromisedObject` containing the result of the stateful computations. For a general definition of folding see: https://en.wikipedia.org/wiki/Fold_(higher-order_function) :param fun: stateful...
"Traverse an iterable object while performing stateful computations\n with the elements. It returns a :py:class:`PromisedObject` containing\n the result of the stateful computations.\n\n For a general definition of folding see:\n https://en.wikipedia.org/wiki/Fold_(higher-order_function)\n\n :param fun: ...
293
false
NLeSC/noodles
fold
26,509
LDU_FT/kdeldycke/maildir-deduplicate/canonical_path
LDU_FT
[ "<BEGIN>\n## `check_differences`", "In-depth check of mail differences.", " Compare all mails of the duplicate set with each other, both in size\n and content. Raise an error if we're not within the limits imposed by\n the threshold setting.\n<END>", "<BEGIN>\n## `diff`", "Return differ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the canonical_path API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the canonical_path API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
Return a normalized, canonical path to a file or folder. Removes all symbolic links encountered in the path to detect natural mail and maildir duplicates on the fly.
"Return a normalized, canonical path to a file or folder.\n\n Removes all symbolic links encountered in the path to detect natural\n mail and maildir duplicates on the fly."
68
false
kdeldycke/maildir-deduplicate
canonical_path
26,510
LDU_FT/openstack/pyghmi/get_hostname
LDU_FT
[ "<BEGIN>\n## `get_bootdev`", "Get current boot device override information.", " :raises: PyghmiException on error\n :returns: dict\n<END>", "<BEGIN>\n## `set_bootdev`", "Set boot device to use on next reboot", " :param bootdev:\n *network -- Request network boot...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_hostname API. 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_hostname API. 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...
Get the hostname used by the BMC in various contexts This can vary somewhat in interpretation, but generally speaking this should be the name that shows up on UIs and in DHCP requests and DNS registration requests, as applicable. :return: current hostname
"Get the hostname used by the BMC in various contexts\n\n This can vary somewhat in interpretation, but generally speaking\n this should be the name that shows up on UIs and in DHCP requests and\n DNS registration requests, as applicable.\n\n :return: current hostname"
273
false
openstack/pyghmi
get_hostname
26,511
LDU_FT/portantier/habu/send
LDU_FT
[ "<BEGIN>\n## `cmd_arp_poison`", "Send ARP 'is-at' packets to each victim, poisoning their\n ARP tables for send the traffic to your system.", " Note: If you want a full working Man In The Middle attack, you need\n to enable the packet forwarding on your operating system to act like a\n router. You c...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the send API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the send API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
Sends the given string or signal to std_in.
"Sends the given string or signal to std_in."
304
false
portantier/habu
send
26,512
LDU_FT/robertmartin8/PyPortfolioOpt/portfolio_lp
LDU_FT
[ "<BEGIN>\n## `negative_sharpe`", "Calculate the negative Sharpe ratio of a portfolio", " :param weights: asset weights of the portfolio\n :type weights: np.ndarray\n :param expected_returns: expected return of each asset\n :type expected_returns: pd.Series\n :param cov_matrix: the covariance matr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the portfolio_lp API. 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 portfolio_lp API. 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...
For a long only portfolio, convert the continuous weights to a discrete allocation using Mixed Integer Linear Programming. This can be thought of as a clever way to round the continuous weights to an integer number of shares :param weights: continuous weights generated from the ``efficient_frontier`` modul...
"For a long only portfolio, convert the continuous weights to a discrete allocation\n using Mixed Integer Linear Programming. This can be thought of as a clever way to round\n the continuous weights to an integer number of shares\n\n :param weights: continuous weights generated from the ``efficient_frontier`` ...
90
false
robertmartin8/PyPortfolioOpt
portfolio_lp
26,513
LDU_FT/addisonlynch/iexfinance/get_insider_roster
LDU_FT
[ "<BEGIN>\n## `_sanitize_dates`", "Return (datetime_start, datetime_end) tuple\r\n if start is None - default is 2015/01/01\r\n if end is None - default is today\n<END>", "<BEGIN>\n## `get_social_sentiment`", "Social Sentiment", " .. warning:: Unstable endpoint. May return unexpected results.", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_insider_roster API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_insider_roster 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...
Insider Roster Returns the top 10 insiders, with the most recent information. Reference: https://iexcloud.io/docs/api/#insider-roster Data Weighting: ``5000`` per symbol Returns ------- list or pandas.DataFrame Stocks Insider Roster Endpoint dat...
"Insider Roster\r\n\r\n Returns the top 10 insiders, with the most recent information.\r\n\r\n Reference: https://iexcloud.io/docs/api/#insider-roster\r\n\r\n Data Weighting: ``5000`` per symbol\r\n\r\n Returns\r\n -------\r\n list or pandas.DataFrame\r\n Stocks Insi...
129
false
addisonlynch/iexfinance
get_insider_roster
26,514
LDU_FT/davidblaisonneau-orange/foreman/getPayloadStruct
LDU_FT
[ "<BEGIN>\n## `importPuppetClasses`", "Function importPuppetClasses\n Force the reload of puppet classes", " @param smartProxyId: smartProxy Id\n @return RETURN: the API result\n<END>", "<BEGIN>\n## `enhance`", "Function enhance\n Enhance the object with new item or enhanced items...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the getPayloadStruct API. 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 getPayloadStruct API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Function getPayloadStruct Get the payload structure to do a creation or a modification @param key: The key to modify @param attribute: The data @param objType: NOT USED in this class @return RETURN: The API result
"Function getPayloadStruct\n Get the payload structure to do a creation or a modification\n\n @param key: The key to modify\n @param attribute: The data\n @param objType: NOT USED in this class\n @return RETURN: The API result"
118
false
davidblaisonneau-orange/foreman
getPayloadStruct
26,515
LDU_FT/Erotemic/utool/change_term_title
LDU_FT
[ "<BEGIN>\n## `comparison`", "r\"\"\"\n CommandLine:\n python -m utool.experimental.dynamic_connectivity comparison --profile\n python -m utool.experimental.dynamic_connectivity comparison\n<END>", "<BEGIN>\n## `join`", "r\"\"\"\n Args:\n other (?):", " CommandLine:\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the change_term_title API. 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 change_term_title API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
only works on unix systems only tested on Ubuntu GNOME changes text on terminal title for identifying debugging tasks. The title will remain until python exists Args: title (str): References: http://stackoverflow.com/questions/5343265/setting-title-for-tabs-in-terminator-console-appli...
"only works on unix systems only tested on Ubuntu GNOME changes text on\n terminal title for identifying debugging tasks.\n\n The title will remain until python exists\n\n Args:\n title (str):\n\n References:\n http://stackoverflow.com/questions/5343265/setting-title-for-tabs-in-terminator-con...
3,376
true
Erotemic/utool
change_term_title
26,516
LDU_FT/franciscogarate/pyliferisk/tqx
LDU_FT
[ "<BEGIN>\n## `qx`", "qx: Returns the probability that a life aged x dies before 1 year\n With the convention: the true probability is qx/1000\n Args:\n mt: the mortality table\n x: the age as integer number.\n<END>", "<BEGIN>\n## `lx`", "lx : Returns the number of survivors at begi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the tqx API. 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 tqx API. 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...
nqx : Returns the probability to die within n years at age x
"nqx : Returns the probability to die within n years at age x"
39
false
franciscogarate/pyliferisk
tqx
26,517
LDU_FT/vmagamedov/grpclib/recv_trailing_metadata
LDU_FT
[ "<BEGIN>\n## `extend`", "Extends services list with reflection service:", " .. code-block:: python3", " from grpclib.reflection.service import ServerReflection", " services = [Greeter()]\n services = ServerReflection.extend(services)", " server = Server(s...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the recv_trailing_metadata 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 recv_trailing_metadata API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
Coroutine to wait for trailers with trailing metadata from the server. .. note:: This coroutine will be called implicitly at exit from this call (context manager's exit), if not called before explicitly. May raise :py:class:`~grpclib.exceptions.GRPCError` if server returned ...
"Coroutine to wait for trailers with trailing metadata from the\n server.\n\n .. note:: This coroutine will be called implicitly at exit from\n this call (context manager's exit), if not called before explicitly.\n\n May raise :py:class:`~grpclib.exceptions.GRPCError` if server returned\...
106
false
vmagamedov/grpclib
recv_trailing_metadata
26,518
LDU_FT/shichao-an/115wangpan/_load_root_directory
LDU_FT
[ "<BEGIN>\n## `send`", "Send a formatted API request", " :param request: a formatted request object\n :type request: :class:`.Request`\n :param bool expect_json: if True, raise :class:`.InvalidAPIAccess` if\n response is not in JSON format\n :param bool ignore_content: whet...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _load_root_directory 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_root_directory API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Load root directory, which has a cid of 0
"Load root directory, which has a cid of 0"
100
false
shichao-an/115wangpan
_load_root_directory
26,519
LDU_FT/tbielawa/bitmath/system
LDU_FT
[ "<BEGIN>\n## `BitmathType`", "An 'argument type' for integrations with the argparse module.", "For more information, see\nhttps://docs.python.org/2/library/argparse.html#type Of particular\ninterest to us is this bit:", " ``type=`` can take any callable that takes a single string\n argument and returns th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the system API. 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 system API. 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 ...
The system of units used to measure an instance
"The system of units used to measure an instance"
93
false
tbielawa/bitmath
system
26,520
LDU_FT/Qiskit/qiskit-api-py/available_backend_simulators
LDU_FT
[ "<BEGIN>\n## `handle_407`", "Takes the given response and tries digest-auth, if needed.\n<END>", "<BEGIN>\n## `obtain_token`", "Obtain the token to access to QX Platform.", " Raises:\n CredentialsError: when token is invalid or the user has not\n accepted the license.\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the available_backend_simulators API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its concl...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the available_backend_simulators API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its concl...
Get the backend simulators available to use in the QX Platform
"Get the backend simulators available to use in the QX Platform"
30
false
Qiskit/qiskit-api-py
available_backend_simulators
26,521
LDU_FT/VasilyStepanov/pywidl/p_ExtendedAttributeNamedArgList
LDU_FT
[ "<BEGIN>\n## `p_Interface`", "Interface : interface IDENTIFIER Inheritance \"{\" InterfaceMembers \"}\" \";\"\n<END>", "<BEGIN>\n## `p_Dictionary`", "Dictionary : dictionary IDENTIFIER Inheritance \"{\" DictionaryMembers \"}\" \";\"\n<END>", "<BEGIN>\n## `p_DictionaryMember`", "DictionaryMember : Type IDE...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the p_ExtendedAttributeNamedArgList API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its co...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the p_ExtendedAttributeNamedArgList API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its co...
ExtendedAttributeNamedArgList : IDENTIFIER "=" IDENTIFIER "(" ArgumentList ")"
"ExtendedAttributeNamedArgList : IDENTIFIER \"=\" IDENTIFIER \"(\" ArgumentList \")\""
34
false
VasilyStepanov/pywidl
p_ExtendedAttributeNamedArgList
26,522
LDU_FT/Riffstation/flask-philo/update
LDU_FT
[ "<BEGIN>\n## `init_db_conn`", "Initialize a postgresql connection by each connection string\n defined in the configuration file\n<END>", "<BEGIN>\n## `initialize`", "If postgresql url is defined in configuration params a\n scoped session will be created\n<END>", "<BEGIN>\n## `set_request`", "Appends...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Finds record and update it based in serializer values
"Finds record and update it based in serializer values"
27
false
Riffstation/flask-philo
update
26,523
LDU_FT/rochacbruno/Flask-GoogleMaps/build_rectangle_dict
LDU_FT
[ "<BEGIN>\n## `build_rectangles`", "Process data to construct rectangles", " This method is built from the assumption that the rectangles parameter\n is a list of:\n lists :a list with 4 elements indicating [north, west, south, east]\n tuples:a tuple with 4 elements indicating...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the build_rectangle_dict API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the build_rectangle_dict API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Set a dictionary with the javascript class Rectangle parameters This function sets a default drawing configuration if the user just pass the rectangle bounds, but also allows to set each parameter individually if the user wish so. Args: north (float): The north latitude bou...
"Set a dictionary with the javascript class Rectangle parameters\n\n This function sets a default drawing configuration if the user just\n pass the rectangle bounds, but also allows to set each parameter\n individually if the user wish so.\n\n Args:\n north (float): The north lati...
78
false
rochacbruno/Flask-GoogleMaps
build_rectangle_dict
26,524
LDU_FT/nmdp-bioinformatics/SeqAnn/list_features
LDU_FT
[ "<BEGIN>\n## `search_seqs`", "search_seqs - method for annotating a BioPython sequence without alignment", " :param seqrec: The reference sequence\n :type seqrec: SeqRecord\n :param locus: The gene locus associated with the sequence.\n :type locus: str\n :param in_seq: The inp...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the list_features API. 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 list_features API. 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...
List the enumerated sequence features at a locus This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pp...
"List the enumerated sequence features at a locus\n \n\n This method makes a synchronous HTTP request by default. To make an\n asynchronous HTTP request, please define a `callback` function\n to be invoked when receiving the response.\n >>> def callback_function(response):\n >>...
112
false
nmdp-bioinformatics/SeqAnn
list_features
26,525
LDU_FT/gboeing/osmnx/remove_isolated_nodes
LDU_FT
[ "<BEGIN>\n## `config`", "Configure osmnx by setting the default global vars to desired values.", " Parameters\n ---------\n data_folder : string\n where to save and load data files\n logs_folder : string\n where to write the log files\n imgs_folder : string\n where to save fi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the remove_isolated_nodes 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 remove_isolated_nodes API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Remove from a graph all the nodes that have no incident edges (ie, node degree = 0). Parameters ---------- G : networkx multidigraph the graph from which to remove nodes Returns ------- networkx multidigraph
"Remove from a graph all the nodes that have no incident edges (ie, node\n degree = 0).\n\n Parameters\n ----------\n G : networkx multidigraph\n the graph from which to remove nodes\n\n Returns\n -------\n networkx multidigraph"
479
false
gboeing/osmnx
remove_isolated_nodes
26,526
LDU_FT/TheHive-Project/TheHive4py/__find_rows
LDU_FT
[ "<BEGIN>\n## `create`", "Create an instance of the Case class.\n :param title: Case title.\n :param description: Case description.\n :param kwargs: Additional arguments.", " :return: The created instance.\n<END>", "<BEGIN>\n## `update`", "Update a case. \n :param ca...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the __find_rows API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the __find_rows API. 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 find_url: URL of the find api :type find_url: string :return: The Response returned by requests including the list of documents based on find_url :rtype: Response object
":param find_url: URL of the find api\n :type find_url: string\n :return: The Response returned by requests including the list of documents based on find_url\n :rtype: Response object"
39
false
TheHive-Project/TheHive4py
__find_rows
26,527
LDU_FT/mkouhei/tonicdnscli/delete_zone
LDU_FT
[ "<BEGIN>\n## `check_infile`", "Check text file exisitense.", " Argument:", " filename: text file of bulk updating\n<END>", "<BEGIN>\n## `set_json`", "Convert text file to JSON.", " Arguments:", " domain: domain name of updating target\n action: True ; for PUT/POST HTTP m...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the delete_zone API. 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 delete_zone API. 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...
Delete zone. Argument: args: arguments object
"Delete zone.\n\n Argument:\n\n args: arguments object"
192
false
mkouhei/tonicdnscli
delete_zone
26,528
LDU_FT/ojarva/python-ledcontroller/batch_run
LDU_FT
[ "<BEGIN>\n## `execute`", "Execute a single command, and sets sleep times properly.", " - controller_id = index of controller, zero-based\n - command is normal LedController command as a string\n - *args and **kwargs are passed to command", " For example, .execute(0, \"on\", 1) send...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the batch_run API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the batch_run API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
Run batch of commands in sequence. Input is positional arguments with (function pointer, *args) tuples. This method is useful for executing commands to multiple groups with retries, without having too long delays. For example, - Set group 1 to red and brightness to 10%...
"Run batch of commands in sequence.\n\n Input is positional arguments with (function pointer, *args) tuples.\n\n This method is useful for executing commands to multiple groups with retries,\n without having too long delays. For example,\n\n - Set group 1 to red and brightnes...
49
false
ojarva/python-ledcontroller
batch_run
26,529
LDU_FT/thespacedoctor/frankenstein/_request_remaining_placeholders
LDU_FT
[ "<BEGIN>\n## `_copy_folder_and_get_directory_listings`", "*copy template folder to /tmp and get directory listings*\n<END>", "<BEGIN>\n## `_collect_placeholders_required`", "*collect placeholders required from filename etc*\n<END>", "<BEGIN>\n## `_join_all_filenames_and_text`", "*join all file names, drie...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _request_remaining_placeholders API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its co...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _request_remaining_placeholders API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its co...
*request remaining placeholders needing populated from the user*
"*request remaining placeholders needing populated from the user*"
20
false
thespacedoctor/frankenstein
_request_remaining_placeholders
26,530
LDU_FT/klmitch/aversion/quoted_split
LDU_FT
[ "<BEGIN>\n## `quoted_split`", "Split a string on the given separation character, but respecting\n double-quoted sections of the string. Returns an iterator.", " :param string: The string to split.\n :param sep: The character separating sections of the string.\n :param quotes: A string specifying al...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the quoted_split API. 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 quoted_split API. 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...
Split a string on the given separation character, but respecting double-quoted sections of the string. Returns an iterator. :param string: The string to split. :param sep: The character separating sections of the string. :param quotes: A string specifying all legal quote characters. :returns: An ...
"Split a string on the given separation character, but respecting\n double-quoted sections of the string. Returns an iterator.\n\n :param string: The string to split.\n :param sep: The character separating sections of the string.\n :param quotes: A string specifying all legal quote characters.\n\n :retu...
47
false
klmitch/aversion
quoted_split
26,531
LDU_FT/Feneric/doxypypy/_endCodeIfNeeded
LDU_FT
[ "<BEGIN>\n## `coroutine`", "Basic decorator to implement the coroutine pattern.\n<END>", "<BEGIN>\n## `main`", "Starts the parser on the file given by the filename as the first\n argument on the command line.\n<END>", "<BEGIN>\n## `_endCodeIfNeeded`", "Simple routine to append end code marker if needed...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _endCodeIfNeeded API. 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 _endCodeIfNeeded API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Simple routine to append end code marker if needed.
"Simple routine to append end code marker if needed."
46
false
Feneric/doxypypy
_endCodeIfNeeded
26,532
LDU_FT/andreasjansson/head-in-the-clouds/insert
LDU_FT
[ "<BEGIN>\n## `create`", "Create a new base with specified field names\r\n A keyword argument mode can be specified ; it is used if a file\r\n with the base name already exists\r\n - if mode = 'open' : open the existing base, ignore the fields\r\n - if mode = 'override' : erase the exis...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the insert API. 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 insert API. 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 ...
Insert a record in the database Parameters can be positional or keyword arguments. If positional they must be in the same order as in the create() method If some of the fields are missing the value is set to None Returns the record identifier
"Insert a record in the database\r\n Parameters can be positional or keyword arguments. If positional\r\n they must be in the same order as in the create() method\r\n If some of the fields are missing the value is set to None\r\n Returns the record identifier"
101
false
andreasjansson/head-in-the-clouds
insert
26,533
LDU_FT/hardbyte/python-can/start
LDU_FT
[ "<BEGIN>\n## `open`", "Opens a CAN connection using `CanalOpen()`.", " :param str configuration: the configuration: \"device_id; baudrate\"\n :param int flags: the flags to be set", " :raises can.CanError: if any error occurred\n :returns: Valid handle for CANAL API functions on su...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the start API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the start API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
Start transmitting message (add to list if needed).
"Start transmitting message (add to list if needed)."
417
false
hardbyte/python-can
start
26,534
LDU_FT/etesync/radicale_storage_etesync/delete
LDU_FT
[ "<BEGIN>\n## `discover`", "Discover a list of collections under the given ``path``.", " If ``depth`` is \"0\", only the actual object under ``path`` is\n returned.", " If ``depth`` is anything but \"0\", it is considered as \"1\" and direct\n children are included in the result.", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the delete API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the delete API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Delete an item. When ``href`` is ``None``, delete the collection.
"Delete an item.\n\n When ``href`` is ``None``, delete the collection."
33
false
etesync/radicale_storage_etesync
delete
26,535
LDU_FT/yychen/twd97/fromwgs84
LDU_FT
[ "<BEGIN>\n## `todegdec`", "Convert from [+/-]DDD°MMM'SSS.SSSS\" or [+/-]DDD°MMM.MMMM' to [+/-]DDD.DDDDD\n<END>", "<BEGIN>\n## `tomindec`", "Convert [+/-]DDD.DDDDD to a tuple (degrees, minutes)\n<END>", "<BEGIN>\n## `tomindecstr`", "Convert [+/-]DDD.DDDDD to [+/-]DDD°MMM.MMMM'\n<END>", "<BEGIN>\n## `todm...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the fromwgs84 API. 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 fromwgs84 API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
Convert coordintes from WGS84 to TWD97 pkm true for Penghu, Kinmen and Matsu area The latitude and longitude can be in the following formats: [+/-]DDD°MMM'SSS.SSSS" (unicode) [+/-]DDD°MMM.MMMM' (unicode) [+/-]DDD.DDDDD (string, unicode or float) The returned coordinates are in meter...
"Convert coordintes from WGS84 to TWD97\n\n pkm true for Penghu, Kinmen and Matsu area\n The latitude and longitude can be in the following formats:\n [+/-]DDD°MMM'SSS.SSSS\" (unicode)\n [+/-]DDD°MMM.MMMM' (unicode)\n [+/-]DDD.DDDDD (string, unicode or float)\n The returned coordinates are...
16
false
yychen/twd97
fromwgs84
26,536
LDU_FT/sprockets/sprockets.mixins.amqp/amqp_publish
LDU_FT
[ "<BEGIN>\n## `install`", "Call this to install AMQP for the Tornado application. Additional\n keyword arguments are passed through to the constructor of the AMQP\n object.", " :param tornado.web.Application application: The tornado application\n :param tornado.ioloop.IOLoop io_loop: The current IOLo...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the amqp_publish API. 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 amqp_publish API. 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...
Publish a message to RabbitMQ :param str exchange: The exchange to publish the message to :param str routing_key: The routing key to publish the message with :param bytes body: The message body to send :param dict properties: An optional dict of AMQP properties :rtype: tornado.c...
"Publish a message to RabbitMQ\n\n :param str exchange: The exchange to publish the message to\n :param str routing_key: The routing key to publish the message with\n :param bytes body: The message body to send\n :param dict properties: An optional dict of AMQP properties\n :rtype: to...
50
false
sprockets/sprockets.mixins.amqp
amqp_publish
26,537
LDU_FT/6809/MC6809/instruction_BMI
LDU_FT
[ "<BEGIN>\n## `instruction_RTS`", "Program control is returned from the subroutine to the calling program.\n The return address is pulled from the stack.", " source code forms: RTS", " CC bits \"HNZVC\": -----\n<END>", "<BEGIN>\n## `instruction_BSR_JSR`", "Program control is transferre...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the instruction_BMI API. 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 instruction_BMI API. 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...
Tests the state of the N (negative) bit and causes a branch if set. That is, branch if the sign of the twos complement result is negative. When used after an operation on signed binary values, this instruction will branch if the result is minus. It is generally preferred to use the LBLT...
"Tests the state of the N (negative) bit and causes a branch if set. That\n is, branch if the sign of the twos complement result is negative.\n\n When used after an operation on signed binary values, this instruction\n will branch if the result is minus. It is generally preferred to use the\n ...
224
false
6809/MC6809
instruction_BMI
26,538
LDU_FT/sphinx-gallery/sphinx-gallery/scan_used_functions
LDU_FT
[ "<BEGIN>\n## `extract_object_names_from_docs`", "Add matches from the text blocks (must be full names!)\n<END>", "<BEGIN>\n## `identify_names`", "Builds a codeobj summary by identifying and resolving used names.\n<END>", "<BEGIN>\n## `scan_used_functions`", "save variables so we can later add links to the...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the scan_used_functions 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 scan_used_functions 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...
save variables so we can later add links to the documentation
"save variables so we can later add links to the documentation"
169
false
sphinx-gallery/sphinx-gallery
scan_used_functions
26,539
LDU_FT/sibirrer/lenstronomy/ray_shooting
LDU_FT
[ "<BEGIN>\n## `array2image`", "maps a 1d array into a (nx, ny) 2d grid with array populating the idex_mask indices\n :param array: 1d array\n :param idex_mask: 1d array of length nx*ny\n :param nx: x-axis of 2d grid\n :param ny: y-axis of 2d grid\n :return:\n<END>", "<BEGIN>\n#...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the ray_shooting API. 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 ray_shooting API. 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...
maps image to source position (inverse deflection) :param x: x-position (preferentially arcsec) :type x: numpy array :param y: y-position (preferentially arcsec) :type y: numpy array :param kwargs: list of keyword arguments of lens model parameters matching the lens model classes...
"maps image to source position (inverse deflection)\n :param x: x-position (preferentially arcsec)\n :type x: numpy array\n :param y: y-position (preferentially arcsec)\n :type y: numpy array\n :param kwargs: list of keyword arguments of lens model parameters matching the lens model c...
886
false
sibirrer/lenstronomy
ray_shooting
26,540
LDU_FT/Robpol86/etaprogress/terminal_width
LDU_FT
[ "<BEGIN>\n## `terminal_width`", "Returns the terminal's width (number of character columns).\n<END>", "<BEGIN>\n## `get_remaining_width`", "Returns the number of characters available if sample string were to be printed in the terminal.", " Positional arguments:\n sample_string -- gets the length of th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the terminal_width API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the terminal_width API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
Returns the terminal's width (number of character columns).
"Returns the terminal's width (number of character columns)."
76
false
Robpol86/etaprogress
terminal_width
26,541
LDU_FT/Genida/archan/provider_from_dict
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 provider_from_dict API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the provider_from_dict API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
Return a provider instance from a dict object.
"Return a provider instance from a dict object."
127
false
Genida/archan
provider_from_dict
26,542
LDU_FT/Metatab/tableintuit/picture
LDU_FT
[ "<BEGIN>\n## `_resolved_type`", "Return the type for the columns, and a flag to indicate that the\n column has codes.\n<END>", "<BEGIN>\n## `promote_type`", "Given a table with an original type, decide whether a new determination of a new applicable type\n should overide the existing one\n<END>"...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the picture API. 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 picture API. 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...
Create a simplified character representation of the data row, which can be pattern matched with a regex
"Create a simplified character representation of the data row, which can be pattern matched\n with a regex"
20
false
Metatab/tableintuit
picture
26,543
LDU_FT/Cue/scales/htmlFormat
LDU_FT
[ "<BEGIN>\n## `lookup`", "Traverses the source, looking up each key. Returns None if can't find anything instead of raising an exception.\n<END>", "<BEGIN>\n## `connect`", "Connects to the Graphite server if not already connected.\n<END>", "<BEGIN>\n## `disconnect`", "Disconnect from the Graphite server i...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the htmlFormat API. 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 htmlFormat API. 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...
Formats as HTML, writing to the given object.
"Formats as HTML, writing to the given object."
72
false
Cue/scales
htmlFormat
26,544
LDU_FT/peterwittek/somoclu/cluster
LDU_FT
[ "<BEGIN>\n## `_check_cooling_parameters`", "Helper function to verify the cooling parameters of the training.\n<END>", "<BEGIN>\n## `_hexplot`", "Internal function to plot a hexagonal map.\n<END>", "<BEGIN>\n## `load_bmus`", "Load the best matching units from a file to the Somoclu object.", " :pa...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the cluster API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the cluster API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
Cluster the codebook. The clusters of the data instances can be assigned based on the BMUs. The method populates the class variable Somoclu.clusters. If viewing methods are called after clustering, but without colors for best matching units, colors will be automatically assigned based on...
"Cluster the codebook. The clusters of the data instances can be\n assigned based on the BMUs. The method populates the class variable\n Somoclu.clusters. If viewing methods are called after clustering, but\n without colors for best matching units, colors will be automatically\n assigned bas...
55
false
peterwittek/somoclu
cluster
26,545
LDU_FT/pavlin-policar/openTSNE/pca
LDU_FT
[ "<BEGIN>\n## `has_c_library`", "Check whether a C/C++ library is available on the system to the compiler.", " Parameters\n ----------\n library: str\n The library we want to check for e.g. if we are interested in FFTW3, we\n want to check for `fftw3.h`, so this parameter will be `fftw3`.\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the pca API. 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 pca API. 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...
Initialize an embedding using the top principal components. Parameters ---------- X: np.ndarray The data matrix. n_components: int The dimension of the embedding space. random_state: Union[int, RandomState] If the value is an int, random_state is the seed used by the rando...
"Initialize an embedding using the top principal components.\n\n Parameters\n ----------\n X: np.ndarray\n The data matrix.\n\n n_components: int\n The dimension of the embedding space.\n\n random_state: Union[int, RandomState]\n If the value is an int, random_state is the seed used ...
181
false
pavlin-policar/openTSNE
pca
26,546
LDU_FT/jelmer/python-fastimport/_name_value
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 _name_value API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _name_value API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
Parse a (name,value) tuple from 'name value-length value'.
"Parse a (name,value) tuple from 'name value-length value'."
100
false
jelmer/python-fastimport
_name_value
26,547
LDU_FT/instaloader/instaloader/format_filename
LDU_FT
[ "<BEGIN>\n## `save_structure_to_file`", "Saves a :class:`Post`, :class:`Profile` or :class:`StoryItem` to a '.json' or '.json.xz' file such that it can\n later be loaded by :func:`load_structure_from_file`.", " If the specified filename ends in '.xz', the file will be LZMA compressed. Otherwise, a pretty-...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the format_filename API. 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 format_filename API. 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...
Format filename of a :class:`Post` or :class:`StoryItem` according to ``filename-pattern`` parameter. .. versionadded:: 4.1
"Format filename of a :class:`Post` or :class:`StoryItem` according to ``filename-pattern`` parameter.\n\n .. versionadded:: 4.1"
227
false
instaloader/instaloader
format_filename
26,548
LDU_FT/tzutalin/labelImg/get_main_app
LDU_FT
[ "<BEGIN>\n## `newAction`", "Create a new action and assign callbacks, shortcuts, etc.\n<END>", "<BEGIN>\n## `natural_sort`", "Sort the list into natural alphanumeric order.\n<END>", "<BEGIN>\n## `mouseMoveEvent`", "Update line with last point and current coordinates.\n<END>", "<BEGIN>\n## `selectShapePo...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_main_app API. 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_main_app API. 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...
Standard boilerplate Qt application code. Do everything but app.exec_() -- so that we can test the application in one thread
"Standard boilerplate Qt application code.\n Do everything but app.exec_() -- so that we can test the application in one thread"
29
false
tzutalin/labelImg
get_main_app
26,549
LDU_FT/isambard-uob/ampal/start_optimisation
LDU_FT
[ "<BEGIN>\n## `write_pdb`", "Writes a pdb file for a list of residues.", " Parameters\n ----------\n residues : list\n List of Residue objects.\n chain_id : str\n String of the chain id, defaults to ' '.\n alt_states : bool, optional\n If true, include all occupancy states of ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the start_optimisation 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 start_optimisation 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...
Starts the loop fitting protocol. Parameters ---------- rounds : int The number of Monte Carlo moves to be evaluated. max_angle : float The maximum variation in rotation that can moved per step. max_distance : float The maximum dis...
"Starts the loop fitting protocol.\n\n Parameters\n ----------\n rounds : int\n The number of Monte Carlo moves to be evaluated.\n max_angle : float\n The maximum variation in rotation that can moved per\n step.\n max_distance : float\n The ...
84
false
isambard-uob/ampal
start_optimisation
26,550
LDU_FT/Kronuz/pyScss/from_filename
LDU_FT
[ "<BEGIN>\n## `mix`", "Mixes together two colors. Specifically, takes the average of each of the\n RGB components, optionally weighted by the given percentage.\n The opacity of the colors is also considered when weighting the components.", " Specifically, takes the average of each of the RGB components,...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the from_filename API. 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 from_filename API. 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...
Read Sass source from a String specifying the path
"Read Sass source from a String specifying the path"
205
false
Kronuz/pyScss
from_filename
26,551
LDU_FT/jeremymcrae/denovonear/get_cached_data
LDU_FT
[ "<BEGIN>\n## `get_cached_data`", "get cached data for a url if stored in the cache and not outdated", " Args:\n url: URL for the Ensembl REST service", " Returns:\n data if data in cache, else None\n<END>", "<BEGIN>\n## `cache_url_data`", "cache the data retrieved from ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_cached_data API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_cached_data API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
get cached data for a url if stored in the cache and not outdated Args: url: URL for the Ensembl REST service Returns: data if data in cache, else None
"get cached data for a url if stored in the cache and not outdated\n \n Args:\n url: URL for the Ensembl REST service\n \n Returns:\n data if data in cache, else None"
112
false
jeremymcrae/denovonear
get_cached_data
26,552
LDU_FT/ambitioninc/django-entity/get_membership_cache
LDU_FT
[ "<BEGIN>\n## `remove_duplicates`", "Remove any duplicates from the entity relationship table\n :param apps:\n :param schema_editor:\n :return:\n<END>", "<BEGIN>\n## `transaction_atomic_with_retry`", "This is a decorator that will wrap the decorated method in an atomic transaction and\n retry the t...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_membership_cache 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_membership_cache API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Build a dict cache with the group membership info. Keyed off the group id and the values are a 2 element list of entity id and entity kind id (same values as the membership model). If no group ids are passed, then all groups will be fetched :param is_active: Flag indicating whether to filter on...
"Build a dict cache with the group membership info. Keyed off the group id and the values are\n a 2 element list of entity id and entity kind id (same values as the membership model). If no group ids\n are passed, then all groups will be fetched\n\n :param is_active: Flag indicating whether to filt...
83
false
ambitioninc/django-entity
get_membership_cache
26,553
LDU_FT/volafiled/python-volapi/__add_prop
LDU_FT
[ "<BEGIN>\n## `register_callback`", "Register callback that we will have to wait for\n<END>", "<BEGIN>\n## `_handle_callback`", "Handle lain's callback. Only used with getFileinfo so far\n<END>", "<BEGIN>\n## `_handle_config`", "Handle initial config push and config changes\n<END>", "<BEGIN>\n## `find_ve...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the __add_prop API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the __add_prop API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
Add gettable and settable room config property during runtime
"Add gettable and settable room config property during runtime"
78
false
volafiled/python-volapi
__add_prop
26,554
LDU_FT/kytos/python-openflow/in_port
LDU_FT
[ "<BEGIN>\n## `in_port`", "Retrieve the 'in_port' that generated the PacketIn.", " This method will look for the OXM_TLV with type OFPXMT_OFB_IN_PORT on\n the `oxm_match_fields` field from `match` field and return its value,\n if the OXM exists.", " Returns:\n The integer...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the in_port API. 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 in_port API. 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...
Retrieve the 'in_port' that generated the PacketIn. This method will look for the OXM_TLV with type OFPXMT_OFB_IN_PORT on the `oxm_match_fields` field from `match` field and return its value, if the OXM exists. Returns: The integer number of the 'in_port' that generated the...
"Retrieve the 'in_port' that generated the PacketIn.\n\n This method will look for the OXM_TLV with type OFPXMT_OFB_IN_PORT on\n the `oxm_match_fields` field from `match` field and return its value,\n if the OXM exists.\n\n Returns:\n The integer number of the 'in_port' that gener...
348
false
kytos/python-openflow
in_port
26,555
LDU_FT/plandes/actioncli/parse_module_class
LDU_FT
[ "<BEGIN>\n## `populate`", "Set attributes in ``obj`` with ``setattr`` from the all values in\n ``section``.\n<END>", "<BEGIN>\n## `_get_calling_module`", "Get the last module in the call stack that is not this module or ``None`` if\n the call originated from this module.\n<END>", "<BEGIN>\n## ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_module_class API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_module_class API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
Parse the module and class name part of the fully qualifed class name.
"Parse the module and class name part of the fully qualifed class name."
67
false
plandes/actioncli
parse_module_class
26,556
LDU_FT/StanfordBioinformatics/loom/_get_inputs
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_inputs API. 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_inputs API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
Converts command line args into a list of template inputs
"Converts command line args into a list of template inputs"
93
false
StanfordBioinformatics/loom
_get_inputs
26,557
LDU_FT/bharadwaj-raju/libdesktop/get_config_file
LDU_FT
[ "<BEGIN>\n## `get_config_dir`", "Get the configuration directory.", "\tGet the configuration directories, optionally for a specific program.", "\tArgs:\n\t\t\tprogram\t(str) : The name of the program whose configuration directories have to be found.\n\t\t\tsystem_wide (bool): Gets the system-wide configuratio...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_config_file API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_config_file API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
Get the configuration file for a program. Gets the configuration file for a given program, assuming it stores it in a standard location. See also :func:`get_config_dir()`. Args: program (str): The program for which to get the configuration file. system_wide (bool):Whether to get the system-wide file for the...
"Get the configuration file for a program.\n\n\tGets the configuration file for a given program, assuming it stores it in\n\ta standard location. See also :func:`get_config_dir()`.\n\n\tArgs:\n\t\t\tprogram\t (str): The program for which to get the configuration file.\n\t\t\tsystem_wide (bool):Whether to get the system...
119
false
bharadwaj-raju/libdesktop
get_config_file
26,558
LDU_FT/Bachmann1234/diff-cover/_is_path_excluded
LDU_FT
[ "<BEGIN>\n## `_get_classes`", "Given a path and parsed xml_document provides class nodes\n with the relevant lines", " First, we look to see if xml_document contains a source\n node providing paths to search for", " If we don't have that we check each nodes filename attribute\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _is_path_excluded API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _is_path_excluded API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Check if a path is excluded. :param str path: Path to check against the exclude patterns. :returns: True if there are exclude patterns and the path matches, otherwise False.
"Check if a path is excluded.\n\n :param str path:\n Path to check against the exclude patterns.\n :returns:\n True if there are exclude patterns and the path matches,\n otherwise False."
146
false
Bachmann1234/diff-cover
_is_path_excluded
26,559
LDU_FT/edx/opaque-keys/_from_string
LDU_FT
[ "<BEGIN>\n## `parse_url`", "If it can be parsed as a version_guid with no preceding org + offering, returns a dict\n with key 'version_guid' and the value,", " If it can be parsed as a org + offering, returns a dict\n with key 'id' and optional keys 'branch' and 'version_guid'.", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _from_string API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _from_string API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
Return an instance of `cls` parsed from its `serialized` form. Args: cls: The :class:`OpaqueKey` subclass. serialized (unicode): A serialized :class:`OpaqueKey`, with namespace already removed. Raises: InvalidKeyError: Should be raised if `serialized` is not a valid...
"Return an instance of `cls` parsed from its `serialized` form.\n\n Args:\n cls: The :class:`OpaqueKey` subclass.\n serialized (unicode): A serialized :class:`OpaqueKey`, with namespace already removed.\n\n Raises:\n InvalidKeyError: Should be raised if `serialized` is not...
127
false
edx/opaque-keys
_from_string
26,560
LDU_FT/praekeltfoundation/seed-auth-api/get_queryset
LDU_FT
[ "<BEGIN>\n## `get_true_false_both`", "Tries to get and return a valid of true, false, or both from the field\n name in the query string, raises a ValidationError for invalid values.\n<END>", "<BEGIN>\n## `get_queryset`", "We want to still be able to modify archived organizations, but they\n shouldn'...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_queryset API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_queryset API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
We want to still be able to modify archived organizations, but they shouldn't show up on list views. We have an archived query param, where 'true' shows archived, 'false' omits them, and 'both' shows both. We also have the query params permission_contains and object_id, which a...
"We want to still be able to modify archived organizations, but they\n shouldn't show up on list views.\n\n We have an archived query param, where 'true' shows archived, 'false'\n omits them, and 'both' shows both.\n\n We also have the query params permission_contains and object_id, which\n ...
34
false
praekeltfoundation/seed-auth-api
get_queryset
26,561
LDU_FT/kennknowles/python-jsonpath-rw/find
LDU_FT
[ "<BEGIN>\n## `tokenize`", "Maps a string to an iterator over tokens. In other words: [char] -> [token]\n<END>", "<BEGIN>\n## `child`", "Equivalent to Child(self, next) but with some canonicalization\n<END>", "<BEGIN>\n## `id_pseudopath`", "Looks like a path, but with ids stuck in when available\n<END>", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
Extra special case: auto ids do not have children, so cut it off right now rather than auto id the auto id
"Extra special case: auto ids do not have children,\n so cut it off right now rather than auto id the auto id"
10
false
kennknowles/python-jsonpath-rw
find
26,562
LDU_FT/MKLab-ITI/reveal-graph-embedding/normalize_rows
LDU_FT
[ "<BEGIN>\n## `read_adjacency_matrix`", "Reads an edge list in csv format and returns the adjacency matrix in SciPy Sparse COOrdinate format.", " Inputs: - file_path: The path where the adjacency matrix is stored.\n - separator: The delimiter among values (e.g. \",\", \"\\t\", \" \")", " Out...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the normalize_rows API. 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 normalize_rows API. 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...
This performs row normalization to 1 of community embedding features. Input: - X in R^(nxC_n): The community indicator matrix. Output: - X_norm in R^(nxC_n): The row normalized community indicator matrix.
"This performs row normalization to 1 of community embedding features.\n\n Input: - X in R^(nxC_n): The community indicator matrix.\n\n Output: - X_norm in R^(nxC_n): The row normalized community indicator matrix."
151
false
MKLab-ITI/reveal-graph-embedding
normalize_rows
26,563
LDU_FT/schlamar/cov-core/start
LDU_FT
[ "<BEGIN>\n## `set_env`", "Put info about coverage into the env so that subprocesses can activate coverage.\n<END>", "<BEGIN>\n## `finish`", "Stop coverage, save data to file and set the list of coverage objects to report on.\n<END>", "<BEGIN>\n## `start`", "Ensure coverage rc file rsynced if appropriate.\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the start API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the start API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
Determine what data file and suffix to contribute to and start coverage.
"Determine what data file and suffix to contribute to and start coverage."
14
false
schlamar/cov-core
start
26,564
LDU_FT/AshleySetter/optoanalysis/multi_plot_PSD
LDU_FT
[ "<BEGIN>\n## `InterpretWaveform`", "Take the raw binary from a file saved from the LeCroy, read from a file using \n the 2 lines:\n with open(filename, \"rb\") as file:\n raw = file.read()\n And extracts various properties of the saved time trace.", " Parameters\n -----...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the multi_plot_PSD API. 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 multi_plot_PSD API. 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 the pulse spectral density for multiple data sets on the same axes. Parameters ---------- DataArray : array-like array of DataObject instances for which to plot the PSDs xlim : array-like, optional 2 element array specifying the lower and upper x limit for which to plot...
"plot the pulse spectral density for multiple data sets on the same\n axes.\n\n Parameters\n ----------\n DataArray : array-like\n array of DataObject instances for which to plot the PSDs\n xlim : array-like, optional\n 2 element array specifying the lower and upper x limit for which to\n ...
402
false
AshleySetter/optoanalysis
multi_plot_PSD
26,565
LDU_FT/nmdp-bioinformatics/SeqAnn/_breakup_gfe
LDU_FT
[ "<BEGIN>\n## `search_seqs`", "search_seqs - method for annotating a BioPython sequence without alignment", " :param seqrec: The reference sequence\n :type seqrec: SeqRecord\n :param locus: The gene locus associated with the sequence.\n :type locus: str\n :param in_seq: The inp...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _breakup_gfe API. 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 _breakup_gfe API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
creates GFE from HLA sequence and locus :param locus: string containing HLA locus. :param sequence: string containing sequence data. :return: GFEobject.
"creates GFE from HLA sequence and locus\n\n :param locus: string containing HLA locus.\n :param sequence: string containing sequence data.\n\n :return: GFEobject."
112
false
nmdp-bioinformatics/SeqAnn
_breakup_gfe
26,566
LDU_FT/urbn/Caesium/group_objects_by
LDU_FT
[ "<BEGIN>\n## `load_json`", "Load JSON from the request body and store them in\n self.request.arguments, like Tornado does by default for POSTed form\n parameters.", " If JSON cannot be decoded", " :raises ValueError: JSON Could not be decoded\n<END>", "<BEGIN>\n## `get_json_argum...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the group_objects_by API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the group_objects_by API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Generates a group object based on the attribute value on of the given attr value that is passed in. :param list list: A list of dictionary objects :param str attr: The attribute that the dictionaries should be sorted upon :param str valueLabel: What to call the key of the field we're sorting up...
"Generates a group object based on the attribute value on of the given attr value that is passed in.\n\n :param list list: A list of dictionary objects\n :param str attr: The attribute that the dictionaries should be sorted upon\n :param str valueLabel: What to call the key of the field we're sorti...
157
false
urbn/Caesium
group_objects_by
26,567
LDU_FT/vnmabus/dcor/_cdist
LDU_FT
[ "<BEGIN>\n## `_float_copy_to_out`", "Copy origin to out and return it.", " If ``out`` is None, a new copy (casted to floating point) is used. If\n ``out`` and ``origin`` are the same, we simply return it. Otherwise we\n copy the values.\n<END>", "<BEGIN>\n## `_double_centered_imp`", "Real implement...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _cdist API. 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 _cdist API. 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 ...
Pairwise distance between points in two sets. As Scipy converts every value to double, this wrapper uses a less efficient implementation if the original dtype can not be converted to double.
"Pairwise distance between points in two sets.\n\n As Scipy converts every value to double, this wrapper uses\n a less efficient implementation if the original dtype\n can not be converted to double."
201
false
vnmabus/dcor
_cdist
26,568
LDU_FT/twisted/txacme/head
LDU_FT
[ "<BEGIN>\n## `_parse_header_links`", "Parse the links from a Link: header field.", " .. todo:: Links with the same relation collide at the moment.", " :param bytes value: The header value.", " :rtype: `dict`\n :return: A dictionary of parsed links, keyed by ``rel`` or ``url``.\n<END>", "<BEGI...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the head API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the head API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
Send HEAD request without checking the response. Note that ``_check_response`` is not called, as there will be no response body to check. :param str url: The URL to make the request to.
"Send HEAD request without checking the response.\n\n Note that ``_check_response`` is not called, as there will be no\n response body to check.\n\n :param str url: The URL to make the request to."
150
false
twisted/txacme
head
26,569
LDU_FT/edelbluth/blackred/log_fail
LDU_FT
[ "<BEGIN>\n## `create_salt`", "Create a new salt", " :param int length: How many bytes should the salt be long?\n :return: The salt\n :rtype: bytes\n<END>", "<BEGIN>\n## `__get_connection`", "Get a Redis connection", " :return: Redis connection instance\n :rtype: redis.Redis\n<END>",...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the log_fail API. 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 log_fail API. 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...
Log a failed action for an item. If the fail count for this item reaches the threshold, the item is moved to the blacklist. :param str item: The item to log
"Log a failed action for an item. If the fail count for this item reaches the threshold, the item is moved to the\n blacklist.\n\n :param str item: The item to log"
24
false
edelbluth/blackred
log_fail
26,570
LDU_FT/hobson/pug-dj/getattribute
LDU_FT
[ "<BEGIN>\n## `instance`", "Creates an EC2 instance from an Ubuntu AMI and configures it as a Django server\n with nginx + gunicorn\n<END>", "<BEGIN>\n## `_run_task`", "Tasks a task from tasks.py and runs through the commands on the server\n<END>", "<BEGIN>\n## `_put_template`", "Same as _put() but it l...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the getattribute API. 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 getattribute API. 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...
Gets an attribute of an object dynamically from a string name
"Gets an attribute of an object dynamically from a string name"
300
false
hobson/pug-dj
getattribute
26,571
LDU_FT/eumis/pyviews/execute
LDU_FT
[ "<BEGIN>\n## `parse_expression`", "Returns tuple with expression type and expression body\n<END>", "<BEGIN>\n## `register_single`", "Generates resolver to return singleton value and adds it to global container\n<END>", "<BEGIN>\n## `wrap_with_scope`", "Wraps function with scope. If scope_name is None curr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the execute API. 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 execute API. 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...
Executes expression with passed parameters and returns result
"Executes expression with passed parameters and returns result"
34
false
eumis/pyviews
execute
26,572