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/python-fedex-devs/python-fedex/print_label
LDU_FT
[ "<BEGIN>\n## `transfer_config_dict`", "This is a utility function used in the certification modules to transfer\n the data dicts above to SOAP objects. This avoids repetition and allows\n us to store all of our variable configuration here rather than in\n each certification script.\n<END>", "<BEGIN>\n#...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the print_label API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the print_label API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
Prints all of a shipment's labels, or optionally just one. @type package_num: L{int} @param package_num: 0-based index of the package to print. This is only useful for shipments with more than one package.
"Prints all of a shipment's labels, or optionally just one.\n \n @type package_num: L{int}\n @param package_num: 0-based index of the package to print. This is\n only useful for shipments with more than one package."
92
false
python-fedex-devs/python-fedex
print_label
25,173
LDU_FT/Richienb/quilt/getdatetime
LDU_FT
[ "<BEGIN>\n## `userinput`", "Get the input of the user via a universally secure method.", " :type prompttext: string\n :param prompttext: The text to display while receiving the data.", " :type times: integer\n :param times: The amount of times to ask the user. If value is not 1, a list will be ret...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the getdatetime API. 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 getdatetime API. 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...
Get the current date or time in a specific format. :type timedateformat: string :param timedateformat: The type of date to query for. Can be: day, month, year, hour, minute, second, millisecond, yearmonthday, daymonthyear, hourminutesecond, secondminutehour, complete, datetime or timedate.
"Get the current date or time in a specific format.\n\n :type timedateformat: string\n :param timedateformat: The type of date to query for. Can be: day, month, year, hour, minute, second, millisecond, yearmonthday, daymonthyear, hourminutesecond, secondminutehour, complete, datetime or timedate."
210
false
Richienb/quilt
getdatetime
25,174
LDU_FT/noxdafox/clipspy/refresh
LDU_FT
[ "<BEGIN>\n## `accessible`", "True if the Slot is directly accessible.\n<END>", "<BEGIN>\n## `types`", "A tuple containing the value types for this Slot.", " The Python equivalent of the CLIPS slot-types function.\n<END>", "<BEGIN>\n## `sources`", "A tuple containing the names of the Class sources...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the refresh API. 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 refresh API. 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...
Refresh the Rule. The Python equivalent of the CLIPS refresh command.
"Refresh the Rule.\n\n The Python equivalent of the CLIPS refresh command."
209
false
noxdafox/clipspy
refresh
25,175
LDU_FT/davenquinn/Attitude/ellipse
LDU_FT
[ "<BEGIN>\n## `bingham_pdf`", "From the *Encyclopedia of Paleomagnetism*", " From Onstott, 1980:\n Vector resultant: R is analogous to eigenvectors\n of T.\n Eigenvalues are analogous to |R|/N.\n<END>", "<BEGIN>\n## `report`", "Outputs a standalone HTML 'report card' for a\n measurement (or se...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the ellipse API. 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 ellipse API. 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...
Get a parameterized set of vectors defining ellipse for a major and minor axis length. Resulting vector bundle has major axes along axes given.
"Get a parameterized set of vectors defining\n ellipse for a major and minor axis length.\n Resulting vector bundle has major axes\n along axes given."
138
false
davenquinn/Attitude
ellipse
25,176
LDU_FT/OLC-Bioinformatics/sipprverse/invert
LDU_FT
[ "<BEGIN>\n## `cmd2list`", "Executes a command through the operating system and returns the output\n as a list, or on error a string with the standard error.\n EXAMPLE:\n >>> from subprocess import Popen, PIPE\n >>> CMDout2array('ls -l')\n<END>", "<BEGIN>\n## `print_timers`", "PRINT EXECUTION TIM...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the invert API. 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 invert API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Return inverse mapping of dictionary with sorted values. USAGE >>> # Switch the keys and values >>> adv_dict({ ... 'A': [1, 2, 3], ... 'B': [4, 2], ... 'C': [1, 4], ... }).invert() {1: ['A', 'C'], 2: ['A', 'B'], 3: ['A'], 4: ['B', 'C']}
"Return inverse mapping of dictionary with sorted values.\n USAGE\n >>> # Switch the keys and values\n >>> adv_dict({\n ... 'A': [1, 2, 3],\n ... 'B': [4, 2],\n ... 'C': [1, 4],\n ... }).invert()\n {1: ['A', 'C'], 2: ['A', 'B'], 3: ['A'], 4: ['B',...
255
false
OLC-Bioinformatics/sipprverse
invert
25,177
LDU_FT/xolox/python-rotate-backups/find_preservation_criteria
LDU_FT
[ "<BEGIN>\n## `main`", "Command line interface for the ``rotate-backups`` program.\n<END>", "<BEGIN>\n## `coerce_location`", "Coerce a string to a :class:`Location` object.", " :param value: The value to coerce (a string or :class:`Location` object).\n :param options: Any keyword arguments are passed o...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_preservation_criteria API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclus...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_preservation_criteria API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclus...
Collect the criteria used to decide which backups to preserve. :param backups_by_frequency: A :class:`dict` in the format generated by :func:`group_backups()` which has been processed by :func:`apply_rotation_scheme()`. :returns:...
"Collect the criteria used to decide which backups to preserve.\n\n :param backups_by_frequency: A :class:`dict` in the format generated by\n :func:`group_backups()` which has been\n processed by :func:`apply_rotation_scheme()`.\n :re...
55
false
xolox/python-rotate-backups
find_preservation_criteria
25,178
LDU_FT/smarie/python-autoclass/method_already_there
LDU_FT
[ "<BEGIN>\n## `autohash`", "A decorator to makes objects of the class implement __hash__, so that they can be used correctly for example in\n sets.", " Parameters allow to customize the list of attributes that are taken into account in the hash.", " :param include: a tuple of explicit attribute names ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the method_already_there 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 method_already_there API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Returns True if method `method_name` is already implemented by object_type, that is, its implementation differs from the one in `object`. :param object_type: :param method_name: :param this_class_only: :return:
"Returns True if method `method_name` is already implemented by object_type, that is, its implementation differs from\n the one in `object`.\n\n :param object_type:\n :param method_name:\n :param this_class_only:\n :return:"
94
false
smarie/python-autoclass
method_already_there
25,179
LDU_FT/learningequality/iceqube/handle_worker_messages
LDU_FT
[ "<BEGIN>\n## `wait_for_job_update`", "Blocks until a job given by job_id has updated its state (canceled, completed, progress updated, etc.)\n if timeout is not None, then this function raises iceqube.exceptions.TimeoutError.", " :param job_id: the job's job_id to monitor for changes.\n :pa...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the handle_worker_messages API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the handle_worker_messages API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
Read messages that are placed in self.incoming_mailbox, and then update the job states corresponding to each message. Args: timeout: How long to wait for an incoming message, if the mailbox is empty right now. Returns: None
"Read messages that are placed in self.incoming_mailbox,\n and then update the job states corresponding to each message.\n\n Args:\n timeout: How long to wait for an incoming message, if the mailbox is empty right now.\n\n Returns: None"
93
false
learningequality/iceqube
handle_worker_messages
25,180
LDU_FT/ngmarchant/oasis/_sample_in_stratum
LDU_FT
[ "<BEGIN>\n## `update`", "Update the posterior and estimates after a label is sampled", " Parameters\n ----------\n ell : int\n sampled label: 0 or 1", " k : int\n index of stratum where label was sampled\n<END>", "<BEGIN>\n## `_sample_item`", "Sample an it...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _sample_in_stratum 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 _sample_in_stratum 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...
Sample an item uniformly from a stratum Parameters ---------- stratum_idx : int stratum index to sample from replace : bool, optional, default True whether to sample with replacement Returns ------- int location of the random...
"Sample an item uniformly from a stratum\n\n Parameters\n ----------\n stratum_idx : int\n stratum index to sample from\n\n replace : bool, optional, default True\n whether to sample with replacement\n\n Returns\n -------\n int\n location...
115
false
ngmarchant/oasis
_sample_in_stratum
25,181
LDU_FT/ternaris/marv/images
LDU_FT
[ "<BEGIN>\n## `encode_setid`", "Encode uint128 setid as stripped b32encoded string\n<END>", "<BEGIN>\n## `marvcli_cleanup`", "Cleanup unused tags and discarded datasets.\n<END>", "<BEGIN>\n## `marvcli_develop_server`", "Run development webserver.", " ATTENTION: By default it is only served on localhos...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the images API. 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 images API. 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 ...
Extract images from input stream to jpg files. Args: cam: Input stream of raw rosbag messages. Returns: File instances for images of input stream.
"Extract images from input stream to jpg files.\n\n Args:\n cam: Input stream of raw rosbag messages.\n\n Returns:\n File instances for images of input stream."
76
false
ternaris/marv
images
25,182
LDU_FT/thespacedoctor/qubits/setup
LDU_FT
[ "<BEGIN>\n## `setup`", "*setup the workspace in the requested location*", " **Return:**\n - ``None``\n<END>", "<BEGIN>\n## `random_redshift_array`", "*Generate a NumPy array of random distances given a sample number and distance limit*", " **Key Arguments:**\n - ``log`` -- logg...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the setup API. 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 setup API. 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...
*setup the workspace in the requested location* **Return:** - ``None``
"*setup the workspace in the requested location*\n\n **Return:**\n - ``None``"
152
false
thespacedoctor/qubits
setup
25,183
LDU_FT/klmitch/tendril/streamify
LDU_FT
[ "<BEGIN>\n## `send_frame`", "Sends a frame to the other end of the connection.\n<END>", "<BEGIN>\n## `start`", "Starts the TendrilManager.", " :param acceptor: If given, specifies a callable that will be\n called with each newly received Tendril;\n that...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the streamify API. 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 streamify API. 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...
Prepare frame for output as a length/frame stream.
"Prepare frame for output as a length/frame stream."
92
false
klmitch/tendril
streamify
25,184
LDU_FT/Vito2015/pyextend/haversine
LDU_FT
[ "<BEGIN>\n## `haversine`", "Compute km by geo-coordinates\n See also: haversine define https://en.wikipedia.org/wiki/Haversine_formula\n<END>", "<BEGIN>\n## `calc_distance`", "Calc distance (km) by geo-coordinates.\n @:param lng1: first coordinate.lng\n @:param lat1: first coordinate.lat\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the haversine API. 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 haversine API. 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...
Compute km by geo-coordinates See also: haversine define https://en.wikipedia.org/wiki/Haversine_formula
"Compute km by geo-coordinates\n See also: haversine define https://en.wikipedia.org/wiki/Haversine_formula"
42
false
Vito2015/pyextend
haversine
25,185
LDU_FT/PyGithub/PyGithub/accept_invitation
LDU_FT
[ "<BEGIN>\n## `add_membership`", ":calls: `PUT /teams/:id/memberships/:user <http://developer.github.com/v3/orgs/teams>`_\n :param member: :class:`github.Nameduser.NamedUser`\n :param role: string\n :rtype: None\n<END>", "<BEGIN>\n## `add_to_repos`", ":calls: `PUT /teams/:id/repos/:org/:re...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the accept_invitation API. 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 accept_invitation API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
:calls: `PATCH /user/repository_invitations/:invitation_id <https://developer.github.com/v3/repos/invitations/>` :param invitation: :class:`github.Invitation.Invitation` or int :rtype: None
":calls: `PATCH /user/repository_invitations/:invitation_id <https://developer.github.com/v3/repos/invitations/>`\n :param invitation: :class:`github.Invitation.Invitation` or int\n :rtype: None"
520
false
PyGithub/PyGithub
accept_invitation
25,186
LDU_FT/YuriyGuts/pygoose/map_embarrassingly_parallel
LDU_FT
[ "<BEGIN>\n## `split_into_batches`", "Break the input data into smaller batches, optionally saving each one to disk.", " Args:\n input_list: An input object that has a list-like interface (indexing and slicing).\n batch_size: The maximum number of input items in each batch.\n batch_storag...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the map_embarrassingly_parallel API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclu...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the map_embarrassingly_parallel API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclu...
Process items in a list in parallel (optionally, one smaller batch at a time). Args: input_list: An input object that has a list-like interface (indexing and slicing). mapper: A function to apply to each item of the input list. project: An instance of pygoose project. n_jobs: The nu...
"Process items in a list in parallel (optionally, one smaller batch at a time).\n\n Args:\n input_list: An input object that has a list-like interface (indexing and slicing).\n mapper: A function to apply to each item of the input list.\n project: An instance of pygoose project.\n n_jobs:...
72
false
YuriyGuts/pygoose
map_embarrassingly_parallel
25,187
LDU_FT/IDSIA/sacred/convert_to_nested_dict
LDU_FT
[ "<BEGIN>\n## `open_resource`", "Open a file and also save it as a resource.", " Opens a file, reports it to the observers as a resource, and returns\n the opened file.", " In Sacred terminology a resource is a file that the experiment needed\n to access during a run. In case of a M...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the convert_to_nested_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 convert_to_nested_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....
Convert a dict with dotted path keys to corresponding nested dict.
"Convert a dict with dotted path keys to corresponding nested dict."
284
false
IDSIA/sacred
convert_to_nested_dict
25,188
LDU_FT/Groundworkstech/pybfd/generate_supported_disassembler_header
LDU_FT
[ "<BEGIN>\n## `generate_source_files`", "Genertate source files to be used during the compile process of the\n extension module.\n This is better than just hardcoding the values on python files because\n header definitions might change along differente Binutils versions and\n we'll be a...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the generate_supported_disassembler_header API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the generate_supported_disassembler_header API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates...
Extract export symbols using binutils's nm utility from Binutils and generate a current header for PyBFD.
"Extract export symbols using binutils's nm utility from Binutils and\n generate a current header for PyBFD."
96
false
Groundworkstech/pybfd
generate_supported_disassembler_header
25,189
LDU_FT/noobermin/lspreader/getdim
LDU_FT
[ "<BEGIN>\n## `nearest_indices`", "Returns indices that perform nearest interpolation given a\n set of points. Similar to scipy.interpolate.griddata with\n method set to \"nearest\". In fact, it's construction is based\n on that function and related types.", " Parameters:\n -----------", " xs...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the getdim API. 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 getdim API. 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 ...
Obtain the dimensionality of a .lsp file. This should work for all well formatted .lsp files. Parameters: ----------- lsp : .lsp string Returns a list of dimensions.
"Obtain the dimensionality of a .lsp file. This should work for all well\n formatted .lsp files.\n\n Parameters:\n -----------\n lsp : .lsp string\n\n Returns a list of dimensions."
81
false
noobermin/lspreader
getdim
25,190
LDU_FT/paddycarey/dweepy/get_alert
LDU_FT
[ "<BEGIN>\n## `_request`", "Make HTTP request, raising an exception if it fails.\n<END>", "<BEGIN>\n## `dweet_for`", "Send a dweet to dweet.io for a thing with a known name\n<END>", "<BEGIN>\n## `remove_lock`", "Remove a lock (no matter what it's connected to).\n<END>", "<BEGIN>\n## `lock`", "Lock a th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_alert API. 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_alert API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
Set an alert on a thing with the given condition
"Set an alert on a thing with the given condition"
18
false
paddycarey/dweepy
get_alert
25,191
LDU_FT/blockstack/virtualchain/get_pubkey_hex
LDU_FT
[ "<BEGIN>\n## `lpad`", "Left-pad a given string (msg) with a character (symbol) for a given number of bytes (length).\n Return the padded string\n<END>", "<BEGIN>\n## `changebase`", "Change a string's characters from one base to another.\n Return the re-encoded string\n<END>", "<BEGIN>\n## `num_to_var_...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_pubkey_hex API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_pubkey_hex API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
Get the uncompressed hex form of a private key
"Get the uncompressed hex form of a private key"
491
false
blockstack/virtualchain
get_pubkey_hex
25,192
LDU_FT/bootphon/h5features/check
LDU_FT
[ "<BEGIN>\n## `init_group`", "Initializes a HDF5 group compliant with the stored data.", " This method creates the datasets 'items', 'labels', 'features'\n and 'index' and leaves them empty.", " :param h5py.Group group: The group to initializes.\n :param float chunk_size: The size o...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the check API. 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 check API. 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...
Raise IOError if labels are not correct `labels` must be a list of sorted numpy arrays of equal dimensions (must be 1D or 2D). In the case of 2D labels, the second axis must have the same shape for all labels.
"Raise IOError if labels are not correct\n\n `labels` must be a list of sorted numpy arrays of equal\n dimensions (must be 1D or 2D). In the case of 2D labels,\n the second axis must have the same shape for all labels."
119
false
bootphon/h5features
check
25,193
LDU_FT/basvandenbroek/gcloud_taskqueue/get_items_from_response
LDU_FT
[ "<BEGIN>\n## `get_items_from_response`", "Yield :class:`.taskqueue.task.Task` items from response.", " :type response: dict\n :param response: The JSON API response for a page of tasks.\n<END>", "<BEGIN>\n## `full_name`", "Fully-qualified name used in taskqueues / tasks APIs\n<END>", "<BEGIN...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_items_from_response 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_items_from_response API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion...
Yield :class:`.taskqueue.task.Task` items from response. :type response: dict :param response: The JSON API response for a page of tasks.
"Yield :class:`.taskqueue.task.Task` items from response.\n\n :type response: dict\n :param response: The JSON API response for a page of tasks."
74
false
basvandenbroek/gcloud_taskqueue
get_items_from_response
25,194
LDU_FT/kentwait/nxsim/add_edge
LDU_FT
[ "<BEGIN>\n## `create_copy_without_data`", "Return a copy of the graph G with all the data removed\n<END>", "<BEGIN>\n## `dump`", "Store an object to file by pickling", " Parameters\n ----------\n stuff : object to be pickled\n filename : path\n verbose : bool\n protocol : 1,2,3 (default = ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_edge API. 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 add_edge API. 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...
Add an edge between agent_id1 and agent_id2. agent_id1 and agent_id2 correspond to Networkx node IDs. This is a wrapper for the Networkx.Graph method `.add_edge`. Agents agent_id1 and agent_id2 will be automatically added if they are not already present in the graph. Edge attributes can be spe...
"Add an edge between agent_id1 and agent_id2. agent_id1 and agent_id2 correspond to Networkx node IDs.\n\n This is a wrapper for the Networkx.Graph method `.add_edge`.\n\n Agents agent_id1 and agent_id2 will be automatically added if they are not already present in the graph.\n Edge attributes can ...
27
false
kentwait/nxsim
add_edge
25,195
LDU_FT/GoogleCloudPlatform/datastore-ndb-python/queue_call
LDU_FT
[ "<BEGIN>\n## `get_event_loop`", "Return a EventLoop instance.", " A new instance is created for each new HTTP request. We determine\n that we're in a new request by inspecting os.environ, which is reset\n at the start of each request. Also, each thread gets its own loop.\n<END>", "<BEGIN>\n## `clear`", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the queue_call API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the queue_call API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
Schedule a function call at a specific time in the future.
"Schedule a function call at a specific time in the future."
569
false
GoogleCloudPlatform/datastore-ndb-python
queue_call
25,196
LDU_FT/amueller/word_cloud/get_single_color_func
LDU_FT
[ "<BEGIN>\n## `process_tokens`", "Normalize cases and remove plurals.", " Each word is represented by the most common case.\n If a word appears with an \"s\" on the end and without an \"s\" on the end,\n the version with \"s\" is assumed to be a plural and merged with the\n version without \"s\" (exc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_single_color_func 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_single_color_func API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Create a color function which returns a single hue and saturation with. different values (HSV). Accepted values are color strings as usable by PIL/Pillow. >>> color_func1 = get_single_color_func('deepskyblue') >>> color_func2 = get_single_color_func('#00b4d2')
"Create a color function which returns a single hue and saturation with.\n different values (HSV). Accepted values are color strings as usable by\n PIL/Pillow.\n\n >>> color_func1 = get_single_color_func('deepskyblue')\n >>> color_func2 = get_single_color_func('#00b4d2')"
45
false
amueller/word_cloud
get_single_color_func
25,197
LDU_FT/alecthomas/injector/bind
LDU_FT
[ "<BEGIN>\n## `provider`", "Decorator for :class:`Module` methods, registering a provider of a type.", " >>> class MyModule(Module):\n ... @provider\n ... def provide_name(self) -> str:\n ... return 'Bob'", " @provider-decoration implies @inject so you can omit it and things will\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the bind API. 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 bind API. 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...
Bind an interface to an implementation. :param interface: Interface or :func:`Key` to bind. :param to: Instance or class to bind to, or an explicit :class:`Provider` subclass. :param scope: Optional :class:`Scope` in which to bind.
"Bind an interface to an implementation.\n\n :param interface: Interface or :func:`Key` to bind.\n :param to: Instance or class to bind to, or an explicit\n :class:`Provider` subclass.\n :param scope: Optional :class:`Scope` in which to bind."
60
false
alecthomas/injector
bind
25,198
LDU_FT/bjodah/pycompilation/src2obj
LDU_FT
[ "<BEGIN>\n## `compile_sources`", "Compile source code files to object files.", " Parameters\n ----------\n files: iterable of path strings\n source files, if cwd is given, the paths are taken as relative.\n CompilerRunner_: CompilerRunner instance (optional)\n could be e.g. pycompilati...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the src2obj API. 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 src2obj API. 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...
Compiles a source code file to an object file. Files ending with '.pyx' assumed to be cython files and are dispatched to pyx2obj. Parameters ---------- srcpath: path string path to source file CompilerRunner_: pycompilation.CompilerRunner subclass (optional) Default: deduced fro...
"Compiles a source code file to an object file.\n Files ending with '.pyx' assumed to be cython files and\n are dispatched to pyx2obj.\n\n Parameters\n ----------\n srcpath: path string\n path to source file\n CompilerRunner_: pycompilation.CompilerRunner subclass (optional)\n Default: d...
71
false
bjodah/pycompilation
src2obj
25,199
LDU_FT/wummel/linkchecker/cwd
LDU_FT
[ "<BEGIN>\n## `start_output`", "Write start of checking info as gml comment.\n<END>", "<BEGIN>\n## `getaddresses`", "Return list of email addresses from given field value.\n<END>", "<BEGIN>\n## `build_url`", "Call super.build_url(), extract list of mail addresses from URL,\n and check their syntax.\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the cwd API. 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 cwd API. 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...
Change to URL parent directory. Return filename of last path component.
"Change to URL parent directory. Return filename of last path\n component."
1,377
true
wummel/linkchecker
cwd
25,200
LDU_FT/praekelt/panya/as_leaf_class
LDU_FT
[ "<BEGIN>\n## `smart_query_string`", "Outputs current GET query string with additions appended.\n Additions are provided in token pairs.\n<END>", "<BEGIN>\n## `_resolve_view_params`", "Resolves view params with least ammount of resistance.\n Firstly check for params on urls passed args, then on class...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the as_leaf_class API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the as_leaf_class API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
Returns the leaf class no matter where the calling instance is in the inheritance hierarchy. Inspired by http://www.djangosnippets.org/snippets/1031/
"Returns the leaf class no matter where the calling instance is in the inheritance hierarchy.\n Inspired by http://www.djangosnippets.org/snippets/1031/"
22
false
praekelt/panya
as_leaf_class
25,201
LDU_FT/googledatalab/pydatalab/explain_tabular
LDU_FT
[ "<BEGIN>\n## `ml`", "Implements the datalab cell magic for MLWorkbench operations.", " Args:\n line: the contents of the ml command line.\n Returns:\n The results of executing the cell.\n<END>", "<BEGIN>\n## `from_csv`", "Create a Metrics instance from csv file pattern.", " Args:\n input_c...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the explain_tabular API. 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 explain_tabular API. 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...
Explain categorical and numeric features for a prediction. It analyze the prediction by LIME, and returns a report of the most impactful tabular features contributing to certain labels. Args: trainset: a DataFrame representing the training features that LIME can use to decide ...
"Explain categorical and numeric features for a prediction.\n\n It analyze the prediction by LIME, and returns a report of the most impactful tabular\n features contributing to certain labels.\n\n Args:\n trainset: a DataFrame representing the training features that LIME can use to decide\...
1,652
true
googledatalab/pydatalab
explain_tabular
25,202
LDU_FT/nir0s/python-packer/build
LDU_FT
[ "<BEGIN>\n## `build`", "Executes a `packer build`", " :param bool parallel: Run builders in parallel\n :param bool debug: Run in debug mode\n :param bool force: Force artifact output even if exists\n :param bool machine_readable: Make output machine-readable\n<END>", "<BEGIN>\n## `...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the build API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the build API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
Executes a `packer build` :param bool parallel: Run builders in parallel :param bool debug: Run in debug mode :param bool force: Force artifact output even if exists :param bool machine_readable: Make output machine-readable
"Executes a `packer build`\n\n :param bool parallel: Run builders in parallel\n :param bool debug: Run in debug mode\n :param bool force: Force artifact output even if exists\n :param bool machine_readable: Make output machine-readable"
22
false
nir0s/python-packer
build
25,203
LDU_FT/drslump/pyshould/_init_matcher
LDU_FT
[ "<BEGIN>\n## `resolve`", "Resolve the current expression against the supplied value\n<END>", "<BEGIN>\n## `_assertion`", "Perform the actual assertion for the given matcher and value. Override\n this method to apply a special configuration when performing the assertion.\n If the assertio...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _init_matcher API. 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 _init_matcher API. 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...
Executes the current matcher appending it to the expression
"Executes the current matcher appending it to the expression"
26
false
drslump/pyshould
_init_matcher
25,204
LDU_FT/Laufire/ec/getDescendant
LDU_FT
[ "<BEGIN>\n## `registerExitCall`", "r\"\"\"Registers an exit call to start the core.", " The core would be started after the main module is loaded. Ec would be exited from the core.\n<END>", "<BEGIN>\n## `run`", "Excecutes the given command while transfering control, till the execution is complete.\n<END>...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the getDescendant API. 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 getDescendant API. 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...
r"""Resolves a descendant, of the given Ancestor, as pointed by the RouteParts.
"r\"\"\"Resolves a descendant, of the given Ancestor, as pointed by the RouteParts."
64
false
Laufire/ec
getDescendant
25,205
LDU_FT/xflr6/concepts/load_csv
LDU_FT
[ "<BEGIN>\n## `lattice`", "Return graphviz source for visualizing the lattice graph.\n<END>", "<BEGIN>\n## `load`", "Load and parse serialized objects, properties, bools from file.\n<END>", "<BEGIN>\n## `dump`", "Write serialized objects, properties, bools to file.\n<END>", "<BEGIN>\n## `load_csv`", "L...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load_csv API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load_csv API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
Load and return formal context from CSV file. Args: filename: Path to the CSV file to load the context from. dialect: Syntax variant of the CSV file (``'excel'``, ``'excel-tab'``). encoding (str): Encoding of the file (``'utf-8'``, ``'latin1'``, ``'ascii'``, ...). Example: >>> ...
"Load and return formal context from CSV file.\n\n Args:\n filename: Path to the CSV file to load the context from.\n dialect: Syntax variant of the CSV file (``'excel'``, ``'excel-tab'``).\n encoding (str): Encoding of the file (``'utf-8'``, ``'latin1'``, ``'ascii'``, ...).\n\n Example:\n ...
56
false
xflr6/concepts
load_csv
25,206
LDU_FT/davgeo/clear/_ParseShowList
LDU_FT
[ "<BEGIN>\n## `_SetGuide`", "Select guide corresponding to guideName", " Parameters\n ----------\n guideName : string\n Name of guide to use.", " Note\n ----------\n Supported guide names are: EPGUIDES\n<END>", "<BEGIN>\n## `_GetUniqueFileShowNames`", "Return a list containing al...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _ParseShowList API. 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 _ParseShowList API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
Read self._allShowList as csv file and make list of titles and IDs. Parameters ---------- checkOnly : boolean [optional : default = False] If checkOnly is True this will only check to ensure the column headers can be extracted correctly.
"Read self._allShowList as csv file and make list of titles and IDs.\n\n Parameters\n ----------\n checkOnly : boolean [optional : default = False]\n If checkOnly is True this will only check to ensure the column\n headers can be extracted correctly."
298
false
davgeo/clear
_ParseShowList
25,207
LDU_FT/albertz/py_better_exchook/fold_text_string
LDU_FT
[ "<BEGIN>\n## `parse_pkg_info`", ":param str fn:\n :rtype: dict[str,str]\n<END>", "<BEGIN>\n## `parse_py_statement`", ":param str line:\n :return: yields (type, value)\n :rtype: typing.Iterator[typing.Tuple[str,str]]\n<END>", "<BEGIN>\n## `grep_full_py_identifiers`", ":param typing.Iterable[(str,s...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the fold_text_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 ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the fold_text_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 ...
:param str prefix: :param str hidden: :param kwargs: passed to :func:`fold_text` :rtype: str
":param str prefix:\n :param str hidden:\n :param kwargs: passed to :func:`fold_text`\n :rtype: str"
75
false
albertz/py_better_exchook
fold_text_string
25,208
LDU_FT/rgs1/zk_shell/check_path_absent
LDU_FT
[ "<BEGIN>\n## `extract_acl`", "parse an individual ACL (i.e.: world:anyone:cdrwa)\n<END>", "<BEGIN>\n## `check_path_exists_foreach`", "check that paths exist (unless we are in a transaction)\n<END>", "<BEGIN>\n## `check_path_absent`", "check path doesn't exist (unless we are in a txn or it's sequential)", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the check_path_absent API. 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 check_path_absent API. 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 path doesn't exist (unless we are in a txn or it's sequential) note: when creating sequential znodes, a trailing slash means no prefix, i.e.: create(/some/path/, sequence=True) -> /some/path/0000001 for all other cases, it's dropped.
"check path doesn't exist (unless we are in a txn or it's sequential)\n\n note: when creating sequential znodes, a trailing slash means no prefix, i.e.:\n\n create(/some/path/, sequence=True) -> /some/path/0000001\n\n for all other cases, it's dropped."
379
false
rgs1/zk_shell
check_path_absent
25,209
LDU_FT/dschien/PyExcelModelingHelper/find_by_tag
LDU_FT
[ "<BEGIN>\n## `growth_coefficients`", "Build a matrix of growth factors according to the CAGR formula y'=y0 (1+a)^(t'-t0).", " a growth rate alpha\n t0 start date\n t' end date\n y' output\n y0 start value\n<END>", "<BEGIN>\n## `get_mean`", "Get the mean value for a distribution.\n If ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_by_tag API. 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_by_tag API. 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...
Get all registered dicts that are registered for a tag :param tag: str - single tag :return: a dict of {param name: set[Parameter]} that contains all ParameterScenarioSets for all parameter names with a given tag
"Get all registered dicts that are registered for a tag\n\n :param tag: str - single tag\n :return: a dict of {param name: set[Parameter]} that contains all ParameterScenarioSets for\n all parameter names with a given tag"
39
false
dschien/PyExcelModelingHelper
find_by_tag
25,210
LDU_FT/quantmind/pulsar/update
LDU_FT
[ "<BEGIN>\n## `slugify`", "Normalizes string, removes non-alpha characters,\n and converts spaces to ``separator`` character\n<END>", "<BEGIN>\n## `multi_bulk`", "Multi bulk encoding for list/tuple ``args``\n<END>", "<BEGIN>\n## `is_mainthread`", "Check if thread is the main thread.", " If ``thread...
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 ...
Update the :class:`zset` with an iterable over pairs of scores and values.
"Update the :class:`zset` with an iterable over pairs of\nscores and values."
643
false
quantmind/pulsar
update
25,211
LDU_FT/pyroscope/pyrocore/add_manifold_attribute
LDU_FT
[ "<BEGIN>\n## `resolve_slashed`", "Resolve symlinked directories if they end in a '/',\n remove trailing '/' otherwise.\n<END>", "<BEGIN>\n## `guarded`", "Catch exceptions thrown by filesystem calls, and don't really\n execute them in dry-run mode.\n<END>", "<BEGIN>\n## `_make_it_so`", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_manifold_attribute 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 add_manifold_attribute API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
Register a manifold engine attribute. @return: field definition object, or None if "name" isn't a manifold attribute.
"Register a manifold engine attribute.\n\n @return: field definition object, or None if \"name\" isn't a manifold attribute."
247
false
pyroscope/pyrocore
add_manifold_attribute
25,212
LDU_FT/Kitware/tangelo/module_reload_changed
LDU_FT
[ "<BEGIN>\n## `module_getmtime`", "Get the mtime associated with a module. If this is a .pyc or .pyo file and\n a corresponding .py file exists, the time of the .py file is returned.", " :param filename: filename of the module.\n :returns: mtime or None if the file doesn\"t exist.\n<END>", "<BEGIN>\n...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the module_reload_changed 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 module_reload_changed API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Reload a module if it has changed since we last imported it. This is necessary if module a imports script b, script b is changed, and then module c asks to import script b. :param key: our key used in the WatchList. :returns: True if reloaded.
"Reload a module if it has changed since we last imported it. This is\n necessary if module a imports script b, script b is changed, and then\n module c asks to import script b.\n\n :param key: our key used in the WatchList.\n :returns: True if reloaded."
34
false
Kitware/tangelo
module_reload_changed
25,213
LDU_FT/cloudnull/turbolift/_index_fs
LDU_FT
[ "<BEGIN>\n## `start`", "Return a list of objects from the API for a container.\n<END>", "<BEGIN>\n## `_cdn`", "Retrieve a long list of all files in a container.", " :return final_list, list_count, last_obj:\n<END>", "<BEGIN>\n## `remove_dirs`", "Delete a directory recursively.", " :param...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _index_fs API. 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 _index_fs API. 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 deque object full of local file system items. :returns: ``deque``
"Returns a deque object full of local file system items.\n\n :returns: ``deque``"
148
false
cloudnull/turbolift
_index_fs
25,214
LDU_FT/ellmetha/django-machina/get_success_url
LDU_FT
[ "<BEGIN>\n## `recurseforumcontents`", "Iterates over the content nodes and renders the contained forum block for each node.\n<END>", "<BEGIN>\n## `forum_list`", "Renders the considered forum list.", " This will render the given list of forums by respecting the order and the depth of each\n forum in th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_success_url API. 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_success_url API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
Returns the URL to redirect the user to upon valid form processing.
"Returns the URL to redirect the user to upon valid form processing."
293
false
ellmetha/django-machina
get_success_url
25,215
LDU_FT/ansible/molecule/_setup
LDU_FT
[ "<BEGIN>\n## `bake`", "Bake an ``ansible-playbook`` command so it's ready to execute and\n returns ``None``.", " :return: None\n<END>", "<BEGIN>\n## `execute`", "Executes ``ansible-playbook`` and returns a string.", " :return: str\n<END>", "<BEGIN>\n## `execute`", "Execute the act...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _setup API. 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 _setup API. 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 ...
Prepare the scenario for Molecule and returns None. :return: None
"Prepare the scenario for Molecule and returns None.\n\n :return: None"
234
false
ansible/molecule
_setup
25,216
LDU_FT/LasLabs/python-five9/create
LDU_FT
[ "<BEGIN>\n## `search`", "Search for a record on the remote and return the results.", " Args:\n five9 (five9.Five9): The authenticated Five9 remote.\n filters (dict): A dictionary of search parameters, keyed by the\n name of the field to search. This should conform to ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Create the data on the remote, optionally refreshing.
"Create the data on the remote, optionally refreshing."
74
false
LasLabs/python-five9
create
25,217
LDU_FT/datajoint/datajoint-python/lookup_class_name
LDU_FT
[ "<BEGIN>\n## `is_foreign_key`", ":param line: a line from the table definition\n :return: true if the line appears to be a foreign key definition\n<END>", "<BEGIN>\n## `compile_foreign_key`", ":param line: a line from a table definition\n :param context: namespace containing referenced objects\n :par...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the lookup_class_name API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the lookup_class_name API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
given a table name in the form `schema_name`.`table_name`, find its class in the context. :param name: `schema_name`.`table_name` :param context: dictionary representing the namespace :param depth: search depth into imported modules, helps avoid infinite recursion. :return: class name found in the conte...
"given a table name in the form `schema_name`.`table_name`, find its class in the context.\n :param name: `schema_name`.`table_name`\n :param context: dictionary representing the namespace\n :param depth: search depth into imported modules, helps avoid infinite recursion.\n :return: class name found in the ...
198
false
datajoint/datajoint-python
lookup_class_name
25,218
LDU_FT/kavdev/ldap-groups/get_children
LDU_FT
[ "<BEGIN>\n## `_get_valididty`", "Determines whether this AD Group is valid.\r", " :returns: True and \"\" if this group is valid or False and a string description\r\n with the reason why it isn't valid otherwise.\n<END>", "<BEGIN>\n## `get_attribute`", "Gets the passed attribute of t...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_children API. 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_children API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
Returns a list of this group's children. :param page_size (optional): Many servers have a limit on the number of results that can be returned. Paged searches circumvent that limit. Adjust the page_size to be below the server's size l...
"Returns a list of this group's children.\r\n\r\n :param page_size (optional): Many servers have a limit on the number of results that can be returned.\r\n Paged searches circumvent that limit. Adjust the page_size to be below the\r\n server...
59
false
kavdev/ldap-groups
get_children
25,219
LDU_FT/exekias/droplet/register
LDU_FT
[ "<BEGIN>\n## `install`", "Installation procedure, it writes basic smb.conf and uses samba-tool to\n provision the domain\n<END>", "<BEGIN>\n## `stop_other_daemons`", "Stop services already provided by main samba daemon\n<END>", "<BEGIN>\n## `set_euid`", "Set settings.DROPLET_USER effective UID for ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the register API. 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 register API. 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...
Register the given instance as implementation for a class interface
"Register the given instance as implementation for a class interface"
66
false
exekias/droplet
register
25,220
LDU_FT/mpg-age-bioinformatics/AGEpy/RdatasetsBM
LDU_FT
[ "<BEGIN>\n## `checkCytoscapeVersion`", "Checks cytoscape version", " :param host: cytoscape host address, default=cytoscape_host\n :param port: cytoscape port, default=1234", " :returns: cytoscape and api version\n<END>", "<BEGIN>\n## `cytoscape`", "General function for interacting with Cytoscape...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the RdatasetsBM API. 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 RdatasetsBM API. 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...
Lists BioMart datasets through a RPY2 connection. :param database: a database listed in RdatabasesBM() :param host: address of the host server, default='www.ensembl.org' :returns: nothing
"Lists BioMart datasets through a RPY2 connection.\n\n :param database: a database listed in RdatabasesBM()\n :param host: address of the host server, default='www.ensembl.org'\n\n :returns: nothing"
237
false
mpg-age-bioinformatics/AGEpy
RdatasetsBM
25,221
LDU_FT/bpython/curtsies/join
LDU_FT
[ "<BEGIN>\n## `tictactoe`", "Put two strategies to a classic battle of wits.\n<END>", "<BEGIN>\n## `memo`", "Return a function like f that remembers and reuses results of past calls.\n<END>", "<BEGIN>\n## `max_play`", "Play like Spock, except breaking ties by drunk_value.\n<END>", "<BEGIN>\n## `drunk_val...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the join API. 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 join API. 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...
Joins an iterable yielding strings or FmtStrs with self as separator
"Joins an iterable yielding strings or FmtStrs with self as separator"
163
false
bpython/curtsies
join
25,222
LDU_FT/HDI-Project/MLPrimitives/fit
LDU_FT
[ "<BEGIN>\n## `resample`", "pd.DataFrame.resample adapter.", " Call the `df.resample` method on the given time_index\n and afterwards call the indicated aggregation.", " Optionally group the dataframe by the indicated columns before\n performing the resampling.", " If groupby option is used, t...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the fit API. 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 fit API. 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...
Defines a spectral mask based on training data Args: X: Training data
"Defines a spectral mask based on training data\r\n\r\n Args:\r\n X: Training data"
96
false
HDI-Project/MLPrimitives
fit
25,223
LDU_FT/PonteIneptique/flask-github-proxy/dict
LDU_FT
[ "<BEGIN>\n## `AdvancedJsonify`", "Advanced Jsonify Response Maker", " :param data: Data\n :param status_code: Status_code\n :return: Response\n<END>", "<BEGIN>\n## `response`", "View representation of the object", " :param callback: Function to represent the error in view. Defa...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the dict API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the dict API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
Builds a dictionary representation of the object (eg: for JSON) :return: Dictionary representation of the object
"Builds a dictionary representation of the object (eg: for JSON)\n\n :return: Dictionary representation of the object"
52
false
PonteIneptique/flask-github-proxy
dict
25,224
LDU_FT/CamDavidsonPilon/lifetimes/expected_cumulative_transactions
LDU_FT
[ "<BEGIN>\n## `fit`", "Pareto/NBD model fitter.", " Parameters\n ----------\n frequency: array_like\n the frequency vector of customers' purchases\n (denoted x in literature).\n recency: array_like\n the recency vector of customers' purchases\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the expected_cumulative_transactions API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its c...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the expected_cumulative_transactions API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its c...
Get expected and actual repeated cumulative transactions. Parameters ---------- model: A fitted lifetimes model transactions: :obj: DataFrame a Pandas DataFrame containing the transactions history of the customer_id datetime_col: string the column in transactions that denote...
"Get expected and actual repeated cumulative transactions.\n\n Parameters\n ----------\n model:\n A fitted lifetimes model\n transactions: :obj: DataFrame\n a Pandas DataFrame containing the transactions history of the customer_id\n datetime_col: string\n the column in transactions t...
232
false
CamDavidsonPilon/lifetimes
expected_cumulative_transactions
25,225
LDU_FT/defunkt/pystache/_render_object
LDU_FT
[ "<BEGIN>\n## `render`", "Return the given template string rendered using the given context.\n<END>", "<BEGIN>\n## `_get_value`", "Retrieve a key's value from a context item.", " Returns _NOT_FOUND if the key does not exist.", " The ContextStack.get() docstring documents this function's intended beha...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _render_object API. 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 _render_object API. 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...
Render the template associated with the given object.
"Render the template associated with the given object."
177
false
defunkt/pystache
_render_object
25,226
LDU_FT/HacKanCuBa/passphrase-py/randbytes
LDU_FT
[ "<BEGIN>\n## `entropy_bits`", "Calculate the number of entropy bits in a list or tuple of elements.\n<END>", "<BEGIN>\n## `entropy_bits_nrange`", "Calculate the number of entropy bits in a range of numbers.\n<END>", "<BEGIN>\n## `password_length_needed`", "Calculate the length of a password for a given en...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the randbytes API. 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 randbytes API. 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...
r"""Return a random byte string containing *nbytes* bytes. Raises ValueError if nbytes <= 0, and TypeError if it's not an integer. >>> randbytes(16) #doctest:+SKIP b'\\xebr\\x17D*t\\xae\\xd4\\xe3S\\xb6\\xe2\\xebP1\\x8b'
"r\"\"\"Return a random byte string containing *nbytes* bytes.\n\n Raises ValueError if nbytes <= 0, and TypeError if it's not an integer.\n\n >>> randbytes(16) #doctest:+SKIP\n b'\\\\xebr\\\\x17D*t\\\\xae\\\\xd4\\\\xe3S\\\\xb6\\\\xe2\\\\xebP1\\\\x8b'"
77
false
HacKanCuBa/passphrase-py
randbytes
25,227
LDU_FT/cjhutto/vaderSentiment/negated
LDU_FT
[ "<BEGIN>\n## `negated`", "Determine if input contains negation words\n<END>", "<BEGIN>\n## `normalize`", "Normalize the score to be between -1 and 1 using an alpha that\n approximates the max expected value\n<END>", "<BEGIN>\n## `allcap_differential`", "Check whether just some words in the input are AL...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the negated API. 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 negated API. 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...
Determine if input contains negation words
"Determine if input contains negation words"
18
false
cjhutto/vaderSentiment
negated
25,228
LDU_FT/internetarchive/doublethink/unregister
LDU_FT
[ "<BEGIN>\n## `_server_whitelist`", "Returns list of servers that have not errored in the last five minutes.\n If all servers have errored in the last five minutes, returns list with\n one item, the server that errored least recently.\n<END>", "<BEGIN>\n## `parse_rethinkdb_url`", "Parses a url li...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the unregister API. 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 unregister API. 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...
Remove the service with id `id` from the service registry.
"Remove the service with id `id` from the service registry."
43
false
internetarchive/doublethink
unregister
25,229
LDU_FT/codenerix/django-codenerix-invoicing/buy_product
LDU_FT
[ "<BEGIN>\n## `buy_product`", "determina si el customer ha comprado un producto\n<END>", "<BEGIN>\n## `find`", "Get a valid CashDiary for today from the given POS, it will return:\n - None: if no CashDiary is available today and older one was already closed\n - New CashDiary: if no CashDi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the buy_product API. 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 buy_product API. 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...
determina si el customer ha comprado un producto
"determina si el customer ha comprado un producto"
38
false
codenerix/django-codenerix-invoicing
buy_product
25,230
LDU_FT/instaloader/instaloader/save_caption
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 save_caption API. 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 save_caption API. 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...
Updates picture caption / Post metadata info
"Updates picture caption / Post metadata info"
227
false
instaloader/instaloader
save_caption
25,231
LDU_FT/Josef-Friedrich/tmep/tmpl_asciify
LDU_FT
[ "<BEGIN>\n## `ex_literal`", "An int, float, long, bool, string, or None literal with the given\n value.\n<END>", "<BEGIN>\n## `ex_varassign`", "Assign an expression into a single variable. The expression may\n either be an `ast.expr` object or a value to be used as a literal.\n<END>", "<BEGIN>\n## `ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the tmpl_asciify API. 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 tmpl_asciify API. 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...
* synopsis: ``%asciify{text}`` * description: Translate non-ASCII characters to their ASCII \ equivalents. For example, “café” becomes “cafe”. Uses the mapping \ provided by the unidecode module.
"* synopsis: ``%asciify{text}``\n * description: Translate non-ASCII characters to their ASCII \\\n equivalents. For example, “café” becomes “cafe”. Uses the mapping \\\n provided by the unidecode module."
72
false
Josef-Friedrich/tmep
tmpl_asciify
25,232
LDU_FT/CyberReboot/vent/_auto_install
LDU_FT
[ "<BEGIN>\n## `gpu_queue`", "Queued up containers waiting for GPU resources\n<END>", "<BEGIN>\n## `file_queue`", "Processes files that have been added from the rq-worker, starts plugins\n that match the mime type for the new file.\n<END>", "<BEGIN>\n## `inventory`", "Return a dictionary of the inventory...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _auto_install API. 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 _auto_install API. 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...
Automatically detects images and installs them in the manifest if they are not there already
"Automatically detects images and installs them in the manifest if they\n are not there already"
141
false
CyberReboot/vent
_auto_install
25,233
LDU_FT/foobarbecue/afterflight/cross
LDU_FT
[ "<BEGIN>\n## `progress_bar_media`", "progress_bar_media simple tag", " return rendered script tag for javascript used by progress_bar\n<END>", "<BEGIN>\n## `upload_progress`", "Used by Ajax calls", " Return the upload progress and total length values\n<END>", "<BEGIN>\n## `upload_progress`", "AJ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the cross API. 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 cross API. 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...
From http://stackoverflow.com/questions/10475488/calculating-crossing-intercept-points-of-a-series-or-dataframe Given a Series returns all the index values where the data values equal the 'cross' value. Direction can be 'rising' (for rising edge), 'falling' (for only falling edge), or 'cross' for b...
"From http://stackoverflow.com/questions/10475488/calculating-crossing-intercept-points-of-a-series-or-dataframe\n\n Given a Series returns all the index values where the data values equal \n the 'cross' value. \n\n Direction can be 'rising' (for rising edge), 'falling' (for only falling \n edge), or 'cross...
15
false
foobarbecue/afterflight
cross
25,234
LDU_FT/davenquinn/Attitude/angle
LDU_FT
[ "<BEGIN>\n## `bingham_pdf`", "From the *Encyclopedia of Paleomagnetism*", " From Onstott, 1980:\n Vector resultant: R is analogous to eigenvectors\n of T.\n Eigenvalues are analogous to |R|/N.\n<END>", "<BEGIN>\n## `report`", "Outputs a standalone HTML 'report card' for a\n measurement (or se...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the angle API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the angle API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
Find the angle between two vectors. :param cos: If True, the cosine of the angle will be returned. False by default.
"Find the angle between two vectors.\n\n :param cos: If True, the cosine of the\n angle will be returned. False by default."
138
false
davenquinn/Attitude
angle
25,235
LDU_FT/karjaljo/hiisi/datasets
LDU_FT
[ "<BEGIN>\n## `attr_exists`", "Returns True if at least on instance of the attribute is found\n<END>", "<BEGIN>\n## `datasets`", "Method returns a list of dataset paths.", " Examples\n --------\n >>> for dataset in h5f.datasets():\n print(dataset)\n '/dataset1/data1...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the datasets API. 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 datasets API. 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...
Method returns a list of dataset paths. Examples -------- >>> for dataset in h5f.datasets(): print(dataset) '/dataset1/data1/data' '/dataset1/data2/data' '/dataset2/data1/data' '/dataset2/data2/data'
"Method returns a list of dataset paths.\n\n Examples\n --------\n >>> for dataset in h5f.datasets():\n print(dataset)\n '/dataset1/data1/data'\n '/dataset1/data2/data'\n '/dataset2/data1/data'\n '/dataset2/data2/data'"
53
false
karjaljo/hiisi
datasets
25,236
LDU_FT/kdeldycke/maildir-deduplicate/deduplicate
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 deduplicate API. 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 deduplicate API. 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...
Deduplicate mails from a set of maildir folders. Run a first pass computing the canonical hash of each encountered mail from their headers, then a second pass to apply the deletion strategy on each subset of duplicate mails. \b Removal strategies for each subsets of duplicate mails: - delete...
"Deduplicate mails from a set of maildir folders.\n\n Run a first pass computing the canonical hash of each encountered mail from\n their headers, then a second pass to apply the deletion strategy on each\n subset of duplicate mails.\n\n \\b\n Removal strategies for each subsets of duplicate mails:\n ...
68
false
kdeldycke/maildir-deduplicate
deduplicate
25,237
LDU_FT/jonathf/chaospy/sample
LDU_FT
[ "<BEGIN>\n## `call`", "Evaluate a polynomial along specified axes.", " Args:\n poly (Poly):\n Input polynomial.\n args (numpy.ndarray):\n Argument to be evaluated. Masked values keeps the variable intact.", " Returns:\n (Poly, numpy.ndarray):\n If ma...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the sample API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the sample API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Overwrite sample() function, because the constructed Dist that is based on the KDE is only working with the random sampling that is given by the KDE itself.
"Overwrite sample() function, because the constructed Dist that is\n based on the KDE is only working with the random sampling that is\n given by the KDE itself."
713
false
jonathf/chaospy
sample
25,238
LDU_FT/bmuller/kademlia/listen
LDU_FT
[ "<BEGIN>\n## `add_node`", "Add a C{Node} to the C{KBucket}. Return True if successful,\n False if the bucket is full.", " If the bucket is full, keep track of node in a replacement list,\n per section 4.1 of the paper.\n<END>", "<BEGIN>\n## `lonely_buckets`", "Get all of the buckets th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the listen API. 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 listen API. 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 ...
Start listening on the given port. Provide interface="::" to accept ipv6 address
"Start listening on the given port.\n\n Provide interface=\"::\" to accept ipv6 address"
62
false
bmuller/kademlia
listen
25,239
LDU_FT/specialunderwear/django-easymode/save
LDU_FT
[ "<BEGIN>\n## `serialize`", "Serialize a queryset.\n THE OUTPUT OF THIS SERIALIZER IS NOT MEANT TO BE SERIALIZED BACK\n INTO THE DB.\n<END>", "<BEGIN>\n## `start_serialization`", "Start serialization -- open the XML document and the root element.\n<END>", "<BEGIN>\n## `handle_field`", "Called...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the save API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the save API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
Override save method to also save the localised fields.
"Override save method to also save the localised fields."
136
false
specialunderwear/django-easymode
save
25,240
LDU_FT/cbclab/MOT/_get_parameter_signatures
LDU_FT
[ "<BEGIN>\n## `get_historical_data`", "Get the historical tank data.", " Args:\n nmr_problems (int): the number of problems", " Returns:\n tuple: (observations, nmr_tanks_ground_truth)\n<END>", "<BEGIN>\n## `get_simulated_data`", "Simulate some data.", " This returns the simulated ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_parameter_signatures 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_parameter_signatures API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi...
Get the signature of the parameters for the CL function declaration. This should return the list of signatures of the parameters for use inside the function signature. Returns: list: the signatures of the parameters for the use in the CL code.
"Get the signature of the parameters for the CL function declaration.\n\n This should return the list of signatures of the parameters for use inside the function signature.\n\n Returns:\n list: the signatures of the parameters for the use in the CL code."
445
false
cbclab/MOT
_get_parameter_signatures
25,241
LDU_FT/sixty-north/asq/pre_scan
LDU_FT
[ "<BEGIN>\n## `add_method`", "Add an existing function to a class as a method.\r", " Note: Consider using the extend decorator as a more readable alternative\r\n to using this function directly.\r", " Args:\r\n function: The function to be added to the class klass.\r", " klass: The...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the pre_scan API. 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 pre_scan API. 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...
An exclusive prefix sum which returns the cumulative application of the supplied function up to but excluding the current element. Args: func: An optional binary function which is commutative - that is, the order of the arguments is unimportant. Defaults to a ...
"An exclusive prefix sum which returns the cumulative application of the\n supplied function up to but excluding the current element.\n\n Args:\n func: An optional binary function which is commutative - that is,\n the order of the arguments is unimportant. Defaults to a\n ...
407
false
sixty-north/asq
pre_scan
25,242
LDU_FT/gebn/wood/from_path
LDU_FT
[ "<BEGIN>\n## `_normalise_path`", "Ensures a path is parsed.", " :param path: A path string or Path object.\n :return: The path as a Path object.\n<END>", "<BEGIN>\n## `root`", "Retrieve a root directory object from a path.", " :param path: The path string or Path object.\n :return: The created...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the from_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 extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the from_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 extract...
Create a directory entity from a directory path. :param path: The path of the directory. :return: A directory entity instance representing the directory. :raises ValueError: If the path does not point to a directory.
"Create a directory entity from a directory path.\n\n :param path: The path of the directory.\n :return: A directory entity instance representing the directory.\n :raises ValueError: If the path does not point to a directory."
70
false
gebn/wood
from_path
25,243
LDU_FT/FNNDSC/med2image/syslog_generate
LDU_FT
[ "<BEGIN>\n## `verbosity`", "get/set the verbosity level.", " The verbosity level filters messages that are output\n to the console. Only messages tagged with a verbosity\n less-than-or-equal-to the class verbosity are output.", " This does not affect output to non-console devices\n...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the syslog_generate API. 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 syslog_generate API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
Returns a string similar to: Tue Oct 9 10:49:53 2012 pretoria message.py[26873]: where 'pretoria' is the hostname, 'message.py' is the current process name and 26873 is the current process id.
"Returns a string similar to:\n\n Tue Oct 9 10:49:53 2012 pretoria message.py[26873]:\n\n where 'pretoria' is the hostname, 'message.py' is the current process\n name and 26873 is the current process id."
131
false
FNNDSC/med2image
syslog_generate
25,244
LDU_FT/steven-lang/bottr/_listen_inbox_messages
LDU_FT
[ "<BEGIN>\n## `stop`", "Stops this bot.", " Returns as soon as all running threads have finished processing.\n<END>", "<BEGIN>\n## `_listen_comments`", "Start listening to comments, using a separate thread.\n<END>", "<BEGIN>\n## `start`", "Starts this bot in a separate thread. Therefore, this call...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _listen_inbox_messages API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _listen_inbox_messages API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
Start listening to messages, using a separate thread.
"Start listening to messages, using a separate thread."
45
false
steven-lang/bottr
_listen_inbox_messages
25,245
LDU_FT/ladybug-tools/ladybug/_get_analysis_period_subset
LDU_FT
[ "<BEGIN>\n## `project`", "Return one vector projected on the vector other\n<END>", "<BEGIN>\n## `rotate_around`", "Return the vector rotated around axis through angle theta.", " Right hand rule applies.\n<END>", "<BEGIN>\n## `to_ip`", "Return values in IP and the units to which the values have be...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_analysis_period_subset API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclu...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_analysis_period_subset API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclu...
Return an analysis_period is always a subset of the Data Collection
"Return an analysis_period is always a subset of the Data Collection"
743
false
ladybug-tools/ladybug
_get_analysis_period_subset
25,246
LDU_FT/openego/eDisGo/combine_mv_and_lv
LDU_FT
[ "<BEGIN>\n## `one_storage_per_feeder`", "Allocates the given storage capacity to multiple smaller storages.", " For each feeder with load or voltage issues it is checked if integrating a\n storage will reduce peaks in the feeder, starting with the feeder with\n the highest theoretical grid expansion co...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the combine_mv_and_lv API. 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 combine_mv_and_lv API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Combine MV and LV grid topology in PyPSA format
"Combine MV and LV grid topology in PyPSA format"
764
false
openego/eDisGo
combine_mv_and_lv
25,247
LDU_FT/juicer/juicer/publish_repo
LDU_FT
[ "<BEGIN>\n## `log_wrap`", "DRY: Use magic instead of code to get a string for the correct log\n level when calling ``print_log_msg``. Because writing the same\n boilerplate code in each log_XXX def was too painful to commit.\n<END>", "<BEGIN>\n## `add_repo`", "Build up repos", " `name` - Name o...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the publish_repo API. 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 publish_repo API. 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...
`repo` - Repo name. `env` - Environment. Publish a repository. This action regenerates metadata.
"`repo` - Repo name.\n `env` - Environment.\n\n Publish a repository. This action regenerates metadata."
243
false
juicer/juicer
publish_repo
25,248
LDU_FT/laginha/django-mobileesp/detectWindowsMobile
LDU_FT
[ "<BEGIN>\n## `detectIphone`", "Return detection of an iPhone", " Detects if the current device is an iPhone.\n<END>", "<BEGIN>\n## `detectIphoneOrIpod`", "Return detection of an iPhone or iPod Touch", " Detects if the current device is an iPhone or iPod Touch.\n<END>", "<BEGIN>\n## `detect...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the detectWindowsMobile 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 detectWindowsMobile 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...
Return detection of Windows Mobile Detects if the current browser is a Windows Mobile device. Excludes Windows Phone 7 devices. Focuses on Windows Mobile 6.xx and earlier.
"Return detection of Windows Mobile\n\n Detects if the current browser is a Windows Mobile device.\n Excludes Windows Phone 7 devices.\n Focuses on Windows Mobile 6.xx and earlier."
111
false
laginha/django-mobileesp
detectWindowsMobile
25,249
LDU_FT/jorgenschaefer/elpy/rpc_fix_code_with_yapf
LDU_FT
[ "<BEGIN>\n## `get_pydoc_completions`", "Get possible completions for modulename for pydoc.", " Returns a list of possible values to be passed to pydoc.\n<END>", "<BEGIN>\n## `get_modules`", "Return a list of modules and packages under modulename.", " If modulename is not given, return a list of all ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the rpc_fix_code_with_yapf 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 rpc_fix_code_with_yapf API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
Formats Python code to conform to the PEP 8 style guide.
"Formats Python code to conform to the PEP 8 style guide."
97
false
jorgenschaefer/elpy
rpc_fix_code_with_yapf
25,250
LDU_FT/glue-viz/echo/_wrap
LDU_FT
[ "<BEGIN>\n## `add_callback`", "Attach a callback function to a property in an instance", " Parameters\n ----------\n instance\n The instance to add the callback to\n prop : str\n Name of callback property in `instance`\n callback : func\n The callback function to add\n ech...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _wrap API. 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 _wrap API. 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...
Given a function/method, this will automatically wrap a method using weakref to avoid circular references.
"Given a function/method, this will automatically wrap a method using\n weakref to avoid circular references."
88
false
glue-viz/echo
_wrap
25,251
LDU_FT/unixsurfer/anycast_healthchecker/configuration_check
LDU_FT
[ "<BEGIN>\n## `_update_bird_conf_file`", "Update BIRD configuration.", " It adds to or removes IP prefix from BIRD configuration. It also\n updates generation time stamp in the configuration file.", " Main program will exit if configuration file cant be read/written.", " Arguments...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the configuration_check 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 configuration_check API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
Perform a sanity check on configuration. First it performs a sanity check against settings for daemon and then against settings for each service check. Arguments: config (obj): A configparser object which holds our configuration. Returns: None if all checks are successfully passed oth...
"Perform a sanity check on configuration.\n\n First it performs a sanity check against settings for daemon\n and then against settings for each service check.\n\n Arguments:\n config (obj): A configparser object which holds our configuration.\n\n Returns:\n None if all checks are successfully ...
132
false
unixsurfer/anycast_healthchecker
configuration_check
25,252
LDU_FT/seperman/deepdiff/stringify_param
LDU_FT
[ "<BEGIN>\n## `__report_result`", "Add a detected change to the reference-style result dictionary.\n report_type will be added to level.\n (We'll create the text-style report from there later.)\n :param report_type: A well defined string key describing the type of change.\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the stringify_param API. 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 stringify_param API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
Convert param to a string. Return None if there is no string representation. This is called by get_param_repr() :param force: Bends the meaning of "no string representation". If None: Will strictly return Python-parsable expressions. The result those yield w...
"Convert param to a string. Return None if there is no string representation.\n This is called by get_param_repr()\n :param force: Bends the meaning of \"no string representation\".\n If None:\n Will strictly return Python-parsable expressions. The result those ...
46
false
seperman/deepdiff
stringify_param
25,253
LDU_FT/hotdoc/hotdoc/get_includes
LDU_FT
[ "<BEGIN>\n## `connect`", "@slot: The method to be called on signal emission", " Connects to @slot\n<END>", "<BEGIN>\n## `connect_after`", "@slot: The method to be called at last stage of signal emission", " Connects to the signal after the signals has been handled by other\n connect c...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_includes API. 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_includes API. 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 iterable sequence of FileInclusion objects that describe the sequence of inclusions in a translation unit. The first object in this sequence is always the input file. Note that this method will not recursively iterate over header files included through precompiled headers.
"Return an iterable sequence of FileInclusion objects that describe the\n sequence of inclusions in a translation unit. The first object in\n this sequence is always the input file. Note that this method will not\n recursively iterate over header files included through precompiled\n headers....
266
false
hotdoc/hotdoc
get_includes
25,254
LDU_FT/concordusapps/alchemist/shell
LDU_FT
[ "<BEGIN>\n## `shell`", "Runs the command-line client for the specified database.\n<END>", "<BEGIN>\n## `make_module_class`", "Takes the module referenced by name and make it a full class.\n<END>", "<BEGIN>\n## `_component_of`", "Get the root package or module of the passed module.\n<END>", "<BEGIN>\n## ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the shell API. 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 shell API. 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...
Runs the command-line client for the specified database.
"Runs the command-line client for the specified database."
27
false
concordusapps/alchemist
shell
25,255
LDU_FT/tophatmonocle/ims_lti_py/post_replace_result
LDU_FT
[ "<BEGIN>\n## `has_role`", "Check whether the Launch Paramters set the role.\n<END>", "<BEGIN>\n## `username`", "Return the full, given, or family name if set.\n<END>", "<BEGIN>\n## `post_replace_result`", "POSTs the given score to the Tool Consumer with a replaceResult.", " Returns OutcomeRespons...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the post_replace_result 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 post_replace_result 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...
POSTs the given score to the Tool Consumer with a replaceResult. Returns OutcomeResponse object and stores it in self.outcome_request OPTIONAL: result_data must be a dictionary Note: ONLY ONE of these values can be in the dict at a time, due to the Canvas specificat...
"POSTs the given score to the Tool Consumer with a replaceResult.\n\n Returns OutcomeResponse object and stores it in self.outcome_request\n\n OPTIONAL:\n result_data must be a dictionary\n Note: ONLY ONE of these values can be in the dict at a time,\n due to the Canvas sp...
46
false
tophatmonocle/ims_lti_py
post_replace_result
25,256
LDU_FT/cggh/scikit-allel/plot_variant_locator
LDU_FT
[ "<BEGIN>\n## `mean_pairwise_difference`", "Calculate for each variant the mean number of pairwise differences\n between chromosomes sampled from within a single population.", " Parameters\n ----------", " ac : array_like, int, shape (n_variants, n_alleles)\n Allele counts array.\n an : a...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the plot_variant_locator 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 plot_variant_locator API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Plot lines indicating the physical genome location of variants from a single chromosome/contig. By default the top x axis is in variant index space, and the bottom x axis is in genome position space. Parameters ---------- pos : array_like A sorted 1-dimensional array of genomic positions f...
"Plot lines indicating the physical genome location of variants from a\n single chromosome/contig. By default the top x axis is in variant index\n space, and the bottom x axis is in genome position space.\n\n Parameters\n ----------\n\n pos : array_like\n A sorted 1-dimensional array of genomic po...
1,142
true
cggh/scikit-allel
plot_variant_locator
25,257
LDU_FT/radjkarl/imgProcessor/localizedMaximum
LDU_FT
[ "<BEGIN>\n## `polynomial`", "replace all masked values\r\n calculate flatField from 2d-polynomal fit filling\r\n all high gradient areas within averaged fit-image\r", " returns flatField, average background level, fitted image, valid indices mask\n<END>", "<BEGIN>\n## `exampleSignals`", "std ... st...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the localizedMaximum API. 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 localizedMaximum API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Returns the local maximum of a given 2d array thresh -> if given, ignore all values below that value max_length -> limit length between value has to vary > min_increase >>> a = np.array([[0,1,2,3,2,1,0], \ [0,1,2,2,3,1,0], \ [0,1,1,2,2,3,0], \ ...
"Returns the local maximum of a given 2d array\r\n\r\n\r\n thresh -> if given, ignore all values below that value\r\n\r\n max_length -> limit length between value has to vary > min_increase\r\n\r\n >>> a = np.array([[0,1,2,3,2,1,0], \\\r\n [0,1,2,2,3,1,0], \\\r\n [0,1...
462
false
radjkarl/imgProcessor
localizedMaximum
25,258
LDU_FT/pyoceans/python-ctd/from_btl
LDU_FT
[ "<BEGIN>\n## `from_bl`", "Read Seabird bottle-trip (bl) file", " Example\n -------\n >>> from pathlib import Path\n >>> import ctd\n >>> data_path = Path(__file__).parents[1].joinpath(\"tests\", \"data\")\n >>> df = ctd.from_bl(str(data_path.joinpath('bl', 'bottletest.bl')))\n >>> df._metad...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the from_btl API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the from_btl API. 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...
DataFrame constructor to open Seabird CTD BTL-ASCII format. Examples -------- >>> from pathlib import Path >>> import ctd >>> data_path = Path(__file__).parents[1].joinpath("tests", "data") >>> bottles = ctd.from_btl(data_path.joinpath('btl', 'bottletest.btl'))
"DataFrame constructor to open Seabird CTD BTL-ASCII format.\n\n Examples\n --------\n >>> from pathlib import Path\n >>> import ctd\n >>> data_path = Path(__file__).parents[1].joinpath(\"tests\", \"data\")\n >>> bottles = ctd.from_btl(data_path.joinpath('btl', 'bottletest.btl'))"
55
false
pyoceans/python-ctd
from_btl
25,259
LDU_FT/johnnoone/aioconsul/lock
LDU_FT
[ "<BEGIN>\n## `extract_blocking`", "Extract index and watch from :class:`Blocking`", " Parameters:\n obj (Blocking): the blocking object\n Returns:\n tuple: index and watch\n<END>", "<BEGIN>\n## `consistency_middleware`", "Set consistency", " Order:", " 1. consistency request\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the lock API. 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 lock API. 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...
Locks the Key with the given Session. Parameters: key (str): Key to set value (Payload): Value to set, It will be encoded by flags session (ObjectID): Session ID flags (int): Flags to set with value Response: bool: ``True`` on success ...
"Locks the Key with the given Session.\n\n Parameters:\n key (str): Key to set\n value (Payload): Value to set, It will be encoded by flags\n session (ObjectID): Session ID\n flags (int): Flags to set with value\n Response:\n bool: ``True`` on success...
403
false
johnnoone/aioconsul
lock
25,260
LDU_FT/quantmind/ccy/todate
LDU_FT
[ "<BEGIN>\n## `countries`", "get country dictionar from pytz and add some extra.\n<END>", "<BEGIN>\n## `countryccys`", "Create a dictionary with keys given by countries ISO codes and values\n given by their currencies\n<END>", "<BEGIN>\n## `set_country_map`", "Set a mapping between a country code to ano...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the todate API. 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 todate API. 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 ...
Convert val to a datetime.date instance by trying several conversion algorithm. If it fails it raise a ValueError exception.
"Convert val to a datetime.date instance by trying several\n conversion algorithm.\n If it fails it raise a ValueError exception."
24
false
quantmind/ccy
todate
25,261
LDU_FT/PyCQA/astroid/visit_generatorexp
LDU_FT
[ "<BEGIN>\n## `_handle_blacklist`", "remove files/directories in the black list", " dirnames/filenames are usually from os.walk\n<END>", "<BEGIN>\n## `load_module_from_name`", "Load a Python module from its name.", " :type dotted_name: str\n :param dotted_name: python name of a module or package",...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the visit_generatorexp 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 visit_generatorexp 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...
visit a GeneratorExp node by returning a fresh instance of it
"visit a GeneratorExp node by returning a fresh instance of it"
1,051
true
PyCQA/astroid
visit_generatorexp
25,262
LDU_FT/uber/rides-python-sdk/get_driver_trips
LDU_FT
[ "<BEGIN>\n## `connect`", "Connect controller to handle token exchange and query Uber API.\n<END>", "<BEGIN>\n## `_adapt_response`", "Convert error responses to standardized ErrorDetails.\n<END>", "<BEGIN>\n## `_adapt_response`", "Convert various error responses to standardized ErrorDetails.\n<END>", "<B...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_driver_trips API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_driver_trips API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Get trips about the authorized Uber driver. Parameters offset (int) The integer offset for activity results. Offset the list of returned results by this amount. Default is zero. limit (int) Integer amount of results to return. Number of it...
"Get trips about the authorized Uber driver.\n\n Parameters\n offset (int)\n The integer offset for activity results. Offset the list of\n returned results by this amount. Default is zero.\n limit (int)\n Integer amount of results to return. Numb...
194
false
uber/rides-python-sdk
get_driver_trips
25,263
LDU_FT/peterservice-rnd/robotframework-jsonvalidator/pretty_print_json
LDU_FT
[ "<BEGIN>\n## `_validate_json`", "Validate JSON according to JSONSchema", " *Args*:\\n\n _checked_json_: validated JSON.\n _schema_: schema that used for validation.\n<END>", "<BEGIN>\n## `validate_jsonschema_from_file`", "Validate JSON according to schema, loaded from a file.", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the pretty_print_json API. 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 pretty_print_json API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Return formatted JSON string _json_string_.\n Using method json.dumps with settings: _indent=2, ensure_ascii=False_. *Args:*\n _json_string_ - JSON string. *Returns:*\n Formatted JSON string. *Example:*\n | *Settings* | *Value* | | Library | JsonVali...
"Return formatted JSON string _json_string_.\\n\n Using method json.dumps with settings: _indent=2, ensure_ascii=False_.\n\n *Args:*\\n\n _json_string_ - JSON string.\n\n *Returns:*\\n\n Formatted JSON string.\n\n *Example:*\\n\n | *Settings* | *Value* |\n | Libra...
67
false
peterservice-rnd/robotframework-jsonvalidator
pretty_print_json
25,264
LDU_FT/mezz64/pyHik/fetch_attributes
LDU_FT
[ "<BEGIN>\n## `_set_motion_detection`", "Set desired motion detection state on camera\n<END>", "<BEGIN>\n## `add_update_callback`", "Register as callback for when a matching device sensor changes.\n<END>", "<BEGIN>\n## `initialize`", "Initialize deviceInfo and available events.\n<END>", "<BEGIN>\n## `get...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the fetch_attributes API. 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 fetch_attributes API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Returns attribute list for a given event/channel.
"Returns attribute list for a given event/channel."
14
false
mezz64/pyHik
fetch_attributes
25,265
LDU_FT/moonso/extract_vcf/version_check
LDU_FT
[ "<BEGIN>\n## `split_strings`", "Split a string with arbitrary number of separators.\n Return a list with the splitted values", " Arguments:\n string (str): ex. \"a:1|2,b:2\"\n separators (list): ex. [',',':','|']", " Returns:\n results (list) : ex. ['a','1','2','b','2']\n<END>",...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the version_check API. 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 version_check API. 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...
Check if the version entry is in the proper format
"Check if the version entry is in the proper format"
28
false
moonso/extract_vcf
version_check
25,266
LDU_FT/cnobile2012/pololu-motors/_getPWMFrequency
LDU_FT
[ "<BEGIN>\n## `getError`", "Get the error message or value stored in the Qik 2s9v1 hardware.", " :Keywords:\n device : `int`\n The device is the integer number of the hardware devices ID and\n is only used with the Pololu Protocol. Defaults to the hardware's\n def...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _getPWMFrequency API. 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 _getPWMFrequency API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Get the PWM frequency stored on the hardware device. :Parameters: device : `int` The device is the integer number of the hardware devices ID and is only used with the Pololu Protocol. message : `bool` If set to `True` a text message will be returned, if s...
"Get the PWM frequency stored on the hardware device.\n\n :Parameters:\n device : `int`\n The device is the integer number of the hardware devices ID and\n is only used with the Pololu Protocol.\n message : `bool`\n If set to `True` a text message will be return...
97
false
cnobile2012/pololu-motors
_getPWMFrequency
25,267
LDU_FT/ANTsX/ANTsPy/image_to_cluster_images
LDU_FT
[ "<BEGIN>\n## `smooth_image`", "Smooth an image", " ANTsR function: `smoothImage`", " Arguments\n ---------\n image \n Image to smooth", " sigma \n Smoothing factor. Can be scalar, in which case the same sigma is applied to each dimension, or a vector of length dim(inimage) t...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the image_to_cluster_images 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 image_to_cluster_images API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion...
Converts an image to several independent images. Produces a unique image for each connected component 1 through N of size > min_cluster_size ANTsR function: `image2ClusterImages` Arguments --------- image : ANTsImage input image min_cluster_size : integer throw away clust...
"Converts an image to several independent images.\n\n Produces a unique image for each connected \n component 1 through N of size > min_cluster_size\n\n ANTsR function: `image2ClusterImages`\n\n Arguments\n ---------\n image : ANTsImage\n input image\n min_cluster_size : integer\n thr...
1,176
true
ANTsX/ANTsPy
image_to_cluster_images
25,268
LDU_FT/grangier/python-goose/remove_fewwords_paragraphs
LDU_FT
[ "<BEGIN>\n## `check_large_images`", "\\\n although slow the best way to determine the best image is to download\n them and check the actual dimensions of the image when on disk\n so we'll go through a phased approach...\n 1. get a list of ALL images from the parent node\n 2. fil...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the remove_fewwords_paragraphs API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclus...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the remove_fewwords_paragraphs API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclus...
\ remove paragraphs that have less than x number of words, would indicate that it's some sort of link
"\\\n remove paragraphs that have less than x number of words,\n would indicate that it's some sort of link"
51
false
grangier/python-goose
remove_fewwords_paragraphs
25,269
LDU_FT/yueyoum/social-oauth/COOKIES
LDU_FT
[ "<BEGIN>\n## `cookie_encode`", "Encode and sign a pickle-able object. Return a (byte) string\n<END>", "<BEGIN>\n## `cookie_decode`", "Verify and decode an encoded string. Return an object or None.\n<END>", "<BEGIN>\n## `load`", "Import a module or fetch an object from a module.", " * ``package.mo...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the COOKIES API. 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 COOKIES API. 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...
A dict-like SimpleCookie instance. This should not be used directly. See :meth:`set_cookie`.
"A dict-like SimpleCookie instance. This should not be used directly.\n See :meth:`set_cookie`."
63
false
yueyoum/social-oauth
COOKIES
25,270
LDU_FT/elehcimd/pynb/add_cell_params
LDU_FT
[ "<BEGIN>\n## `get_func`", "Get function from module\n :param func_name: function name\n :param module_pathname: pathname to module\n :return:\n<END>", "<BEGIN>\n## `cell_hash`", "Compute cell hash based on cell index and cell content\n :param cell: cell to be hashed\n :param cell_index...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_cell_params API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_cell_params API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
Add cell of Python parameters :param params: parameters to add :return:
"Add cell of Python parameters\n :param params: parameters to add\n :return:"
39
false
elehcimd/pynb
add_cell_params
25,271
LDU_FT/treyhunner/django-simple-history/save_model
LDU_FT
[ "<BEGIN>\n## `register`", "Create historical model for `model` and attach history manager to `model`.", " Keyword arguments:\n app -- App to install historical model into (defaults to model.__module__)\n manager_name -- class attribute name to use for historical manager\n records_class -- class to u...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the save_model API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the save_model API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
Set special model attribute to user for reference after save
"Set special model attribute to user for reference after save"
36
false
treyhunner/django-simple-history
save_model
25,272