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/ttinies/sc2common/midPoint
LDU_FT
[ "<BEGIN>\n## `relateObjectLocs`", "calculate the minimum distance to reach any iterable of entities with a loc\n<END>", "<BEGIN>\n## `gridSnap`", "cause the given point to snap to nearest X/Y grid point\n<END>", "<BEGIN>\n## `convertToMapPic`", "convert a bytestring into a 2D row x column array, represent...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the midPoint API. 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 midPoint API. 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...
identify the midpoint between two mapPoints
"identify the midpoint between two mapPoints"
22
false
ttinies/sc2common
midPoint
19,573
LDU_FT/jmurty/xml4h/xml
LDU_FT
[ "<BEGIN>\n## `ignore_whitespace_text_nodes`", "Find and delete any text nodes containing nothing but whitespace in\n in the given node and its descendents.", " This is useful for cleaning up excess low-value text nodes in a\n document DOM after parsing a pretty-printed XML document.\n<END>"...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the xml API. Each 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 xml API. Each 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...
:return: this node as XML text. Delegates to :meth:`write`
":return: this node as XML text.\n\n Delegates to :meth:`write`"
155
false
jmurty/xml4h
xml
19,574
LDU_FT/openfisca/openfisca-survey-manager/init_from_data
LDU_FT
[ "<BEGIN>\n## `read_dbf`", "Read a dbf file as a pandas.DataFrame, optionally selecting the index\n variable and which columns are to be loaded.", " __author__ = \"Dani Arribas-Bel <darribas@asu.edu> \"\n ...", " Arguments\n ---------\n dbf_path : str\n Path to the DBF fi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the init_from_data API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the init_from_data API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
Initialises a survey scenario from data. :param rebuild_input_data: Whether or not to clean, format and save data. Take a look at :func:`build_input_data` :param data: Contains the data, or metadata needed to know where to find it.
"Initialises a survey scenario from data.\n\n :param rebuild_input_data: Whether or not to clean, format and save data.\n Take a look at :func:`build_input_data`\n\n :param data: Contains the data, or metadata needed to know where to find it."
80
false
openfisca/openfisca-survey-manager
init_from_data
19,575
LDU_FT/gitpython-developers/smmap/force_map_handle_removal_win
LDU_FT
[ "<BEGIN>\n## `_copy_from`", "Copy all data from rhs into this instance, handles usage count\n<END>", "<BEGIN>\n## `use_region`", "Assure we point to a window which allows access to the given offset into the file", " :param offset: absolute offset in bytes into the file\n :param size: amount of...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the force_map_handle_removal_win API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its concl...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the force_map_handle_removal_win API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its concl...
ONLY AVAILABLE ON WINDOWS On windows removing files is not allowed if anybody still has it opened. If this process is ourselves, and if the whole process uses this memory manager (as far as the parent framework is concerned) we can enforce closing all memory maps whose path matches the g...
"ONLY AVAILABLE ON WINDOWS\n On windows removing files is not allowed if anybody still has it opened.\n If this process is ourselves, and if the whole process uses this memory\n manager (as far as the parent framework is concerned) we can enforce\n closing all memory maps whose path matches ...
49
false
gitpython-developers/smmap
force_map_handle_removal_win
19,576
LDU_FT/zakdoek/django-simple-resizer/_get_resized_name
LDU_FT
[ "<BEGIN>\n## `conditional_resize`", "Crop the image based on a ratio", " If upcrop is true, crops the images that have a higher ratio than the given\n ratio, if false crops the images that have a lower ratio\n<END>", "<BEGIN>\n## `_get_resized_name`", "Get the name of the resized file when assumed it ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_resized_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 _get_resized_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...
Get the name of the resized file when assumed it exists.
"Get the name of the resized file when assumed it exists."
11
false
zakdoek/django-simple-resizer
_get_resized_name
19,577
LDU_FT/ksbg/sparklanes/__validate_and_fix_spark_args
LDU_FT
[ "<BEGIN>\n## `build_lane_from_yaml`", "Builds a `sparklanes.Lane` object from a YAML definition file.", " Parameters\n ----------\n path: str\n Path to the YAML definition file", " Returns\n -------\n Lane\n Lane, built according to definition in YAML file\n<END>", "<BEGIN>\n...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the __validate_and_fix_spark_args API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the __validate_and_fix_spark_args API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conc...
Prepares spark arguments. In the command-line script, they are passed as for example `-s master=local[4] deploy-mode=client verbose`, which would be passed to spark-submit as `--master local[4] --deploy-mode client --verbose` Parameters ---------- spark_args (List): List of spark arguments Ret...
"Prepares spark arguments. In the command-line script, they are passed as for example\n `-s master=local[4] deploy-mode=client verbose`, which would be passed to spark-submit as\n `--master local[4] --deploy-mode client --verbose`\n\n Parameters\n ----------\n spark_args (List): List of spark arguments\n...
62
false
ksbg/sparklanes
__validate_and_fix_spark_args
19,578
LDU_FT/cortical-io/retina-sdk.py/getSimilarTermsForExpression
LDU_FT
[ "<BEGIN>\n## `getTerms`", "Get term objects\n Args:\n term, str: A term in the retina (optional)\n getFingerprint, bool: Configure if the fingerprint should be returned as part of the results (optional)\n startIndex, int: The start-index for pagination (optional)\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the getSimilarTermsForExpression API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its concl...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the getSimilarTermsForExpression API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its concl...
Get similar terms for the contexts of an expression Args: body, ExpressionOperation: The JSON encoded expression to be evaluated (required) contextId, int: The identifier of a context (optional) posType, str: Part of speech (optional) getFingerprint, bool: Configu...
"Get similar terms for the contexts of an expression\n Args:\n body, ExpressionOperation: The JSON encoded expression to be evaluated (required)\n contextId, int: The identifier of a context (optional)\n posType, str: Part of speech (optional)\n getFingerprint, bool: C...
64
false
cortical-io/retina-sdk.py
getSimilarTermsForExpression
19,579
LDU_FT/kdeldycke/chessboard/diagonals
LDU_FT
[ "<BEGIN>\n## `increment`", "Increment the last permutation we returned to the next.\n<END>", "<BEGIN>\n## `skip_branch`", "Abandon the branch at the provided level and skip to the next.", " When we call out to skip to the next branch of the search space, we\n push sublevel pieces to the maximu...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the diagonals API. 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 diagonals API. 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...
All diagonal squares from the piece's point of view. Returns a list of relative movements up to the board's bound.
"All diagonal squares from the piece's point of view.\n\n Returns a list of relative movements up to the board's bound."
53
false
kdeldycke/chessboard
diagonals
19,580
LDU_FT/DeVilhena-Paulo/KdQuery/interval_condition
LDU_FT
[ "<BEGIN>\n## `interval_condition`", "Checks if value belongs to the interval [inf - dist, sup + dist].\n<END>", "<BEGIN>\n## `nearest_point`", "Find the point in the tree that minimizes the distance to the query.", " This method implements the nearest_point query for any structure\n implementing a kd-...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the interval_condition 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 interval_condition 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...
Checks if value belongs to the interval [inf - dist, sup + dist].
"Checks if value belongs to the interval [inf - dist, sup + dist]."
22
false
DeVilhena-Paulo/KdQuery
interval_condition
19,581
LDU_FT/textX/textX/visit_assignment
LDU_FT
[ "<BEGIN>\n## `needs_to_be_resolved`", "This function determines, if a reference (CrossReference) needs to be\n resolved or not (while creating the model, while resolving references).", " Args:\n parent_obj: the object containing the attribute to be resolved.\n attr_name: the attribute identi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the visit_assignment API. 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 visit_assignment API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Create parser rule for assignments and register attribute types on metaclass.
"Create parser rule for assignments and register attribute types\n on metaclass."
140
false
textX/textX
visit_assignment
19,582
LDU_FT/GiulioRossetti/dynetx/add_interactions_from
LDU_FT
[ "<BEGIN>\n## `node_link_data`", "Return data in node-link format that is suitable for JSON serialization\n and use in Javascript documents.", " Parameters\n ----------\n G : DyNetx graph", " attrs : dict\n A dictionary that contains three keys 'id', 'source' and 'target'.\n The c...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_interactions_from 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_interactions_from API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Add all the interaction in ebunch at time t. Parameters ---------- ebunch : container of interaction Each interaction given in the container will be added to the graph. The interaction must be given as as 2-tuples (u,v) or 3-tuples (u,v,d) where d is a dictio...
"Add all the interaction in ebunch at time t.\n\n Parameters\n ----------\n ebunch : container of interaction\n Each interaction given in the container will be added to the\n graph. The interaction must be given as as 2-tuples (u,v) or\n 3-tuples (u,v,d) where d is ...
349
false
GiulioRossetti/dynetx
add_interactions_from
19,583
LDU_FT/thilux/tvdb_client/delete_user_rating
LDU_FT
[ "<BEGIN>\n## `__get_header_with_auth`", "This private method returns the HTTP heder filled with the Authorization information with the user token.\n The token validity is monitored whenever this function is called, so according to the swagger page of TheTVDB\n (https://api.thetvdb.com/swagger) the t...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the delete_user_rating 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 delete_user_rating 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...
Deletes from the list of rating of the current user, the rating provided for the specified element type. :param item_type: One of: series, episode, banner. :param item_id: The TheTVDB Id of the item. :return: a python dictionary with either the result of the search or an error from TheTVDB.
"Deletes from the list of rating of the current user, the rating provided for the specified element type.\n\n :param item_type: One of: series, episode, banner.\n :param item_id: The TheTVDB Id of the item.\n :return: a python dictionary with either the result of the search or an error from TheTVDB...
58
false
thilux/tvdb_client
delete_user_rating
19,584
LDU_FT/click-contrib/click-configfile/mkdir_p
LDU_FT
[ "<BEGIN>\n## `find_packages_by_root_package`", "Better than excluding everything that is not needed,\n collect only what is needed.\n<END>", "<BEGIN>\n## `make_long_description`", "click_ is a framework to simplify writing composable commands for\n command-line tools. This package extends the click_ fun...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the mkdir_p API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the mkdir_p API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
Like :meth:`mkdir`, but does not raise an exception if the directory already exists.
"Like :meth:`mkdir`, but does not raise an exception if the\n directory already exists."
181
false
click-contrib/click-configfile
mkdir_p
19,585
LDU_FT/djaodjin/djaodjin-deployutils/prepare
LDU_FT
[ "<BEGIN>\n## `filter`", "Adds user and remote_addr to the record.\n<END>", "<BEGIN>\n## `package_theme`", "Package resources and templates for a multi-tier environment\n into a zip file.", " Templates are pre-compiled into ``*build_dir*/*app_name*/templates``.\n Compilation means {% assets '*path*'...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the prepare API. Each 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 prepare API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
Returns *session_dict* as a base64 encrypted json string.
"Returns *session_dict* as a base64 encrypted json string."
82
false
djaodjin/djaodjin-deployutils
prepare
19,586
LDU_FT/jespino/anillo/_lineiter
LDU_FT
[ "<BEGIN>\n## `url`", "Simple helper for build a url, and return anillo\n url spec hash map (dictionary)", " It can be used in this way:", " urls = [\n url(\"/<int:year>\", index, methods=[\"get\", \"post\"]),\n url(\"/<int:year>\", index, methods=[\"get\", \"post\"])\n ]", " Thi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _lineiter API. 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 _lineiter API. 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...
Iterate over a binary file-like object line by line. Each line is returned as a (line, line_ending) tuple. If the line does not fit into self.buffer_size, line_ending is empty and the rest of the line is returned with the next iteration.
"Iterate over a binary file-like object line by line. Each line is\n returned as a (line, line_ending) tuple. If the line does not fit\n into self.buffer_size, line_ending is empty and the rest of the line\n is returned with the next iteration."
54
false
jespino/anillo
_lineiter
19,587
LDU_FT/guaix-ucm/numina/polfit_residuals_with_sigma_rejection
LDU_FT
[ "<BEGIN>\n## `combine`", "Combine HDUList objects using algorithm 'method\n<END>", "<BEGIN>\n## `logging_from_debugplot`", "Set debugging level based on debugplot value.", " Parameters\n ----------\n debugplot : int\n Debugging level for messages and plots. For details see\n '...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the polfit_residuals_with_sigma_rejection 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 polfit_residuals_with_sigma_rejection API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates ...
Polynomial fit with iterative rejection of points. This function makes use of function polfit_residuals for display purposes. Parameters ---------- x : 1d numpy array, float X coordinates of the data being fitted. y : 1d numpy array, float Y coordinates of the data being fitted...
"Polynomial fit with iterative rejection of points.\n\n This function makes use of function polfit_residuals for display\n purposes.\n\n Parameters\n ----------\n x : 1d numpy array, float\n X coordinates of the data being fitted.\n y : 1d numpy array, float\n Y coordinates of the data b...
605
false
guaix-ucm/numina
polfit_residuals_with_sigma_rejection
19,588
LDU_FT/scivision/gridaurora/getAtomic
LDU_FT
[ "<BEGIN>\n## `to_ut1unix`", "converts time inputs to UT1 seconds since Unix epoch\n<END>", "<BEGIN>\n## `chapman_profile`", "Z0: altitude [km] of intensity peak\n zKM: altitude grid [km]\n H: scale height [km]", " example:\n pz = chapman_profile(110,np.arange(90,200,1),20)\n<END>", "<BEGIN>\n#...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the getAtomic API. 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 getAtomic API. 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...
prompt atomic emissions (nm) 844.6 777.4
"prompt atomic emissions (nm)\n 844.6 777.4"
36
false
scivision/gridaurora
getAtomic
19,589
LDU_FT/molmod/molmod/_read
LDU_FT
[ "<BEGIN>\n## `atom_criteria`", "An auxiliary function to construct a dictionary of Criteria\n<END>", "<BEGIN>\n## `_check_symbols`", "the size must be the same as the length of the array numbers and all elements must be strings\n<END>", "<BEGIN>\n## `from_geometry`", "Construct a MolecularGraph object bas...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _read API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _read API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
Read all the requested fields Arguments: | ``filename`` -- the filename of the FCHK file | ``field_labels`` -- when given, only these fields are read
"Read all the requested fields\n\n Arguments:\n | ``filename`` -- the filename of the FCHK file\n | ``field_labels`` -- when given, only these fields are read"
657
false
molmod/molmod
_read
19,590
LDU_FT/chimera0/accel-brain-code/observe_reward_value
LDU_FT
[ "<BEGIN>\n## `draw`", "Draws samples from the `true` distribution.\r", " Returns:\r\n `np.ndarray` of samples.\n<END>", "<BEGIN>\n## `generate`", "Generate noise samples.\r", " Returns:\r\n `np.ndarray` of samples.\n<END>", "<BEGIN>\n## `generate`", "Draws samples f...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the observe_reward_value API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the observe_reward_value API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Compute the reward value. Args: state_key: The key of state. action_key: The key of action. Returns: Reward value.
"Compute the reward value.\n \n Args:\n state_key: The key of state.\n action_key: The key of action.\n \n Returns:\n Reward value."
550
false
chimera0/accel-brain-code
observe_reward_value
19,591
LDU_FT/Kronuz/pyScss/sprite_map_name
LDU_FT
[ "<BEGIN>\n## `mix`", "Mixes together two colors. Specifically, takes the average of each of the\n RGB components, optionally weighted by the given percentage.\n The opacity of the colors is also considered when weighting the components.", " Specifically, takes the average of each of the RGB components,...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the sprite_map_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 e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the sprite_map_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 e...
Returns the name of a sprite map The name is derived from the folder than contains the sprites.
"Returns the name of a sprite map The name is derived from the folder than\n contains the sprites."
205
false
Kronuz/pyScss
sprite_map_name
19,592
LDU_FT/HiPERCAM/hcam_widgets/update
LDU_FT
[ "<BEGIN>\n## `update`", "Adds a handler to save to a file. Includes debug stuff.\n<END>", "<BEGIN>\n## `saveJSON`", "Saves the current setup to disk.", " g : hcam_drivers.globals.Container\n Container with globals", " data : dict\n The current setup in JSON compatible dictionary format.", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Updates @ 10Hz to give smooth running clock, checks run status @0.2Hz to reduce load on servers.
"Updates @ 10Hz to give smooth running clock, checks\n run status @0.2Hz to reduce load on servers."
233
false
HiPERCAM/hcam_widgets
update
19,593
LDU_FT/peterbe/gg/parse_remote_url
LDU_FT
[ "<BEGIN>\n## `getback`", "Goes back to the master branch, deletes the current branch locally\n and remotely.\n<END>", "<BEGIN>\n## `get_summary`", "return a summary for this bug/issue. If it can't be found,\n return None.\n<END>", "<BEGIN>\n## `parse_remote_url`", "return a tuple of (org, repo) from...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_remote_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 ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_remote_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 ...
return a tuple of (org, repo) from the remote git URL
"return a tuple of (org, repo) from the remote git URL"
20
false
peterbe/gg
parse_remote_url
19,594
LDU_FT/joyent/python-manta/argv2line
LDU_FT
[ "<BEGIN>\n## `_request`", "Make a Manta request", " ...\n @returns (res, content)\n<END>", "<BEGIN>\n## `put_directory`", "PutDirectory\n https://apidocs.joyent.com/manta/api.html#PutDirectory", " @param mdir {str} A manta path, e.g. '/trent/stor/mydir'.\n<END>", "<BEGIN>\n##...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the argv2line API. 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 argv2line API. 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"""Put together the given argument vector into a command line. "argv" is the argument vector to process. >>> from cmdln import argv2line >>> argv2line(['foo']) 'foo' >>> argv2line(['foo', 'bar']) 'foo bar' >>> argv2line(['foo', 'bar baz']) 'foo "bar baz"' >>> argv2line(['foo"b...
"r\"\"\"Put together the given argument vector into a command line.\n\n \"argv\" is the argument vector to process.\n\n >>> from cmdln import argv2line\n >>> argv2line(['foo'])\n 'foo'\n >>> argv2line(['foo', 'bar'])\n 'foo bar'\n >>> argv2line(['foo', 'bar baz'])\n 'foo \"bar baz\"'\n >>...
203
false
joyent/python-manta
argv2line
19,595
LDU_FT/paylogic/halogen/from_validation_exception
LDU_FT
[ "<BEGIN>\n## `to_dict`", "Return a dictionary representation of the error.", " :return: A dict with the keys:\n - attr: Attribute which contains the error, or \"<root>\" if it refers to the schema root.\n - errors: A list of dictionary representations of the errors.\n<END>", "<BEG...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the from_validation_exception 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 from_validation_exception API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi...
Create an error from validation exception.
"Create an error from validation exception."
51
false
paylogic/halogen
from_validation_exception
19,596
LDU_FT/danpaquin/coinbasepro-python/coinbase_withdraw
LDU_FT
[ "<BEGIN>\n## `get_account_history`", "List account activity. Account activity either increases or\n decreases your account balance.", " Entry type indicates the reason for the account change.\n * transfer:\tFunds moved to/from Coinbase to cbpro\n * match:\tFunds moved as a result of ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the coinbase_withdraw API. 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 coinbase_withdraw API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Withdraw funds to a coinbase account. You can move funds between your Coinbase accounts and your cbpro trading accounts within your daily limits. Moving funds between Coinbase and cbpro is instant and free. See AuthenticatedClient.get_coinbase_accounts() to receive information ...
"Withdraw funds to a coinbase account.\n\n You can move funds between your Coinbase accounts and your cbpro\n trading accounts within your daily limits. Moving funds between\n Coinbase and cbpro is instant and free.\n\n See AuthenticatedClient.get_coinbase_accounts() to receive\n info...
127
false
danpaquin/coinbasepro-python
coinbase_withdraw
19,597
LDU_FT/pyannote/pyannote-metrics/plot_det_curve
LDU_FT
[ "<BEGIN>\n## `extrude`", "Extrude reference boundary collars from uem", " reference |----| |--------------| |-------------|\n uem |---------------------| |-------------------------------|\n extruded |--| |--| |---| |-----| |-| |-----| |-----------| |-----|", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the plot_det_curve API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the plot_det_curve API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
DET curve This function will create (and overwrite) the following files: - {save_to}.det.png - {save_to}.det.eps - {save_to}.det.txt Parameters ---------- y_true : (n_samples, ) array-like Boolean reference. scores : (n_samples, ) array-like Predicted score....
"DET curve\n\n This function will create (and overwrite) the following files:\n - {save_to}.det.png\n - {save_to}.det.eps\n - {save_to}.det.txt\n\n Parameters\n ----------\n y_true : (n_samples, ) array-like\n Boolean reference.\n scores : (n_samples, ) array-like\n Pre...
81
false
pyannote/pyannote-metrics
plot_det_curve
19,598
LDU_FT/kilometer-io/kilometer-python/add_event
LDU_FT
[ "<BEGIN>\n## `add_user`", "Creates a new identified user if he doesn't exist.", " :param str user_id: identified user's ID\n :param dict custom_properties: user properties\n :param dict headers: custom request headers (if isn't set default values are used)\n :param str endpoint_url: ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_event API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_event API. 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...
Send an identified event. If a user doesn't exist it will create one. :param str user_id: identified user's ID :param str event_name: event name (e.g. "visit_website") :param dict event_properties: properties that describe the event's details :param dict headers: custom request headers ...
"Send an identified event. If a user doesn't exist it will create one.\n\n :param str user_id: identified user's ID\n :param str event_name: event name (e.g. \"visit_website\")\n :param dict event_properties: properties that describe the event's details\n :param dict headers: custom request ...
20
false
kilometer-io/kilometer-python
add_event
19,599
LDU_FT/lablup/backend.ai-client-py/download
LDU_FT
[ "<BEGIN>\n## `generate_signature`", "Generates the API request signature from the given parameters.\n<END>", "<BEGIN>\n## `list_with_limit`", "Fetches the list of agents with the given status with limit and offset for\n pagination.", " :param limit: number of agents to get\n :param offs...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the download API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the download API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
Download a file from the virtual folder to the current working directory. The files with the same names will be overwirtten. \b NAME: Name of a virtual folder. FILENAMES: Paths of the files to be uploaded.
"Download a file from the virtual folder to the current working directory.\n The files with the same names will be overwirtten.\n\n \\b\n NAME: Name of a virtual folder.\n FILENAMES: Paths of the files to be uploaded."
207
false
lablup/backend.ai-client-py
download
19,600
LDU_FT/dingusdk/PythonIhcSdk/init_poolmanager
LDU_FT
[ "<BEGIN>\n## `authenticate`", "Authenticate and enable the registered notifications\n<END>", "<BEGIN>\n## `get_runtime_value`", "Get runtime value with re-authenticate if needed\n<END>", "<BEGIN>\n## `set_runtime_value_bool`", "Set bool runtime value with re-authenticate if needed\n<END>", "<BEGIN>\n## ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the init_poolmanager API. 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 init_poolmanager API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Initialize poolmanager with cipher and Tlsv1
"Initialize poolmanager with cipher and Tlsv1"
28
false
dingusdk/PythonIhcSdk
init_poolmanager
19,601
LDU_FT/ziwenxie/netease-dl/post_request
LDU_FT
[ "<BEGIN>\n## `download_song_by_search`", "Download a song by its name.", " :params song_name: song name.\n<END>", "<BEGIN>\n## `download_song_by_id`", "Download a song by id and save it to disk.", " :params song_id: song id.\n :params song_name: song name.\n :params folder: sto...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the post_request API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the post_request API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
Send a post request. :return: a dict or raise Exception.
"Send a post request.\n\n :return: a dict or raise Exception."
99
false
ziwenxie/netease-dl
post_request
19,602
LDU_FT/hobson/pug-ann/prepend_dataset_with_weather
LDU_FT
[ "<BEGIN>\n## `hourly`", "Get detailed (hourly) weather data for the requested days and location", " The Weather Underground URL for Fresno, CA on 1/1/2011 is:\n http://www.wunderground.com/history/airport/KFAT/2011/1/1/DailyHistory.html?MR=1&format=1", " This will fail periodically on Travis, b/c wun...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the prepend_dataset_with_weather API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its concl...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the prepend_dataset_with_weather API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its concl...
Prepend weather the values specified (e.g. Max TempF) to the samples[0..N]['input'] vectors samples[0..N]['target'] should have an index with the date timestamp If you use_cache for the curent year, you may not get the most recent data. Arguments: samples (list of dict): {'input': np.array(), 'ta...
"Prepend weather the values specified (e.g. Max TempF) to the samples[0..N]['input'] vectors\n\n samples[0..N]['target'] should have an index with the date timestamp\n\n If you use_cache for the curent year, you may not get the most recent data.\n\n Arguments:\n samples (list of dict): {'input': np.arra...
81
false
hobson/pug-ann
prepend_dataset_with_weather
19,603
LDU_FT/ponty/psidialogs/message
LDU_FT
[ "<BEGIN>\n## `askstring`", "Original doc: get a string from the user", " Arguments:", " title -- the dialog title\n prompt -- the label text\n **kw -- see SimpleDialog class", " Return value is a string\n<END>", "<BEGIN>\n## `message`", "Display a message", " :ref:`screen...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the message API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the message API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
Display a message :ref:`screenshots<message>` :param message: message to be displayed. :param title: window title :rtype: None
"Display a message\n\n :ref:`screenshots<message>`\n\n :param message: message to be displayed.\n :param title: window title\n :rtype: None"
110
false
ponty/psidialogs
message
19,604
LDU_FT/talentpair/featurevectormatrix/get_matrix
LDU_FT
[ "<BEGIN>\n## `default_to_hashed_rows`", "Gets the current setting with no parameters, sets it if a boolean is passed in", " :param default: the value to set\n :return: the current value, or new value if default is set to True or False\n<END>", "<BEGIN>\n## `_update_internal_column_state`", "Up...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_matrix API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_matrix API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
Use numpy to create a real matrix object from the data :return: the matrix representation of the fvm
"Use numpy to create a real matrix object from the data\n\n :return: the matrix representation of the fvm"
38
false
talentpair/featurevectormatrix
get_matrix
19,605
LDU_FT/rkhleics/wagtailmenus/get_for_site
LDU_FT
[ "<BEGIN>\n## `_get_specified_sub_menu_template_name`", "Called by get_sub_menu_template(). Iterates through the various ways in\n which developers can specify potential sub menu templates for a menu,\n and returns the name of the most suitable template for the\n ``current_level``. Values are ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_for_site API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_for_site API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
Return the 'main menu' instance for the provided site
"Return the 'main menu' instance for the provided site"
95
false
rkhleics/wagtailmenus
get_for_site
19,606
LDU_FT/christophertbrown/bioscripts/check_mismatches
LDU_FT
[ "<BEGIN>\n## `six_frame`", "translate each sequence into six reading frames\n<END>", "<BEGIN>\n## `best_model`", "determine the best model: archaea, bacteria, eukarya (best score)\n<END>", "<BEGIN>\n## `check_gaps`", "check for large gaps between alignment windows\n<END>", "<BEGIN>\n## `check_overlap`",...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the check_mismatches API. 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_mismatches API. 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 to see if the read maps with <= threshold number of mismatches - mm_option = 'one' or 'both' depending on whether or not one or both reads in a pair need to pass the mismatch threshold - pair can be False if read does not have a pair - make sure alignment score is not 0, which would indicate ...
"- check to see if the read maps with <= threshold number of mismatches\n - mm_option = 'one' or 'both' depending on whether or not one or both reads\n in a pair need to pass the mismatch threshold\n - pair can be False if read does not have a pair\n - make sure alignment score is not 0, which would indi...
219
false
christophertbrown/bioscripts
check_mismatches
19,607
LDU_FT/python-cmd2/cmd2/make_table_parser
LDU_FT
[ "<BEGIN>\n## `rmrf`", "Silently remove a list of directories or files\n<END>", "<BEGIN>\n## `livehtml`", "Launch webserver on http://localhost:8000 with rendered documentation\n<END>", "<BEGIN>\n## `validatetag`", "Check to make sure that a tag exists for the current HEAD and it looks like a valid version...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the make_table_parser API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the make_table_parser API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Create a unique instance of an argparse Argument parser for processing table arguments. NOTE: The two cmd2 argparse decorators require that each parser be unique, even if they are essentially a deep copy of each other. For cases like that, you can create a function to return a unique instance of a parser, whi...
"Create a unique instance of an argparse Argument parser for processing table arguments.\n\n NOTE: The two cmd2 argparse decorators require that each parser be unique, even if they are essentially a deep copy\n of each other. For cases like that, you can create a function to return a unique instance of a parser,...
425
false
python-cmd2/cmd2
make_table_parser
19,608
LDU_FT/industrial-optimization-group/DESDEO/round_off
LDU_FT
[ "<BEGIN>\n## `objective_bounds`", "Return objective bounds", " Returns\n -------\n lower : list of floats\n Lower boundaries for the objectives", " Upper : list of floats\n Upper boundaries for the objectives\n<END>", "<BEGIN>\n## `add_variables`", "Parame...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the round_off API. 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 round_off API. 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...
Round off an ideal/nadir estimate e.g. so that it's looks nicer when plotted. This function is careful to round so only ever move the values away from the contained range.
"Round off an ideal/nadir estimate e.g. so that it's looks nicer when\n plotted. This function is careful to round so only ever move the values\n away from the contained range."
57
false
industrial-optimization-group/DESDEO
round_off
19,609
LDU_FT/jazzband/django-axes/get_client_cache_key
LDU_FT
[ "<BEGIN>\n## `get_cool_off`", "Return the login cool off time interpreted from settings.AXES_COOLOFF_TIME.", " The return value is either None or timedelta.", " Notice that the settings.AXES_COOLOFF_TIME is either None, timedelta, or integer of hours,\n and this function offers a unified _timedelta o...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_client_cache_key API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_client_cache_key API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Build cache key name from request or AccessAttempt object. :param request_or_attempt: HttpRequest or AccessAttempt object :param credentials: credentials containing user information :return cache_key: Hash key that is usable for Django cache backends
"Build cache key name from request or AccessAttempt object.\n\n :param request_or_attempt: HttpRequest or AccessAttempt object\n :param credentials: credentials containing user information\n :return cache_key: Hash key that is usable for Django cache backends"
94
false
jazzband/django-axes
get_client_cache_key
19,610
LDU_FT/blockchain-certificates/cert-issuer/check_internet_off
LDU_FT
[ "<BEGIN>\n## `check_internet_off`", "If internet off and USB plugged in, returns true. Else, continues to wait...\n<END>", "<BEGIN>\n## `check_internet_on`", "If internet on and USB unplugged, returns true. Else, continues to wait...\n<END>", "<BEGIN>\n## `issue`", "Issue the certificates on the blockchai...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the check_internet_off 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 check_internet_off 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...
If internet off and USB plugged in, returns true. Else, continues to wait...
"If internet off and USB plugged in, returns true. Else, continues to wait..."
62
false
blockchain-certificates/cert-issuer
check_internet_off
19,611
LDU_FT/mapnik/Cascadenik/locally_cache_remote_file
LDU_FT
[ "<BEGIN>\n## `xindexes`", "Generate list of possible indexes into a list of slots.", " Best way to think of this is as a number where each digit might have a different radix.\n E.g.: (10, 10, 10) would return 10 x 10 x 10 = 1000 responses from (0, 0, 0) to (9, 9, 9),\n (2, 2, 2, 2) would re...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the locally_cache_remote_file 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 locally_cache_remote_file API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi...
Locally cache a remote resource using a predictable file name and awareness of modification date. Assume that files are "normal" which is to say they have filenames with extensions.
"Locally cache a remote resource using a predictable file name\n and awareness of modification date. Assume that files are \"normal\"\n which is to say they have filenames with extensions."
123
false
mapnik/Cascadenik
locally_cache_remote_file
19,612
LDU_FT/astropy/photutils/_nanmean
LDU_FT
[ "<BEGIN>\n## `_move_tuple_axes_first`", "Bottleneck can only take integer axis, not tuple, so this function\n takes all the axes to be operated on and combines them into the\n first dimension of the array so that we can then use axis=0\n<END>", "<BEGIN>\n## `_nanmean`", "Bottleneck nanmean function that...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _nanmean API. 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 _nanmean API. 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...
Bottleneck nanmean function that handle tuple axis.
"Bottleneck nanmean function that handle tuple axis."
1,397
true
astropy/photutils
_nanmean
19,613
LDU_FT/williballenthin/python-evtx/describe_root
LDU_FT
[ "<BEGIN>\n## `xml_records`", "If the second return value is not None, then it is an\n Exception encountered during parsing. The first return value\n will be the XML string.", " @type filename str\n @rtype: generator of (etree.Element or str), (None or Exception)\n<END>", "<BEGIN>\n## `templat...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the describe_root API. 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 describe_root API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
Args: record (Evtx.Record): indent (int):
"Args:\n record (Evtx.Record):\n indent (int):"
73
false
williballenthin/python-evtx
describe_root
19,614
LDU_FT/zeroSteiner/smoke-zephyr/now
LDU_FT
[ "<BEGIN>\n## `normalize_job_id`", "Convert a value to a job id.", "\t:param job_id: Value to convert.\n\t:type job_id: int, str\n\t:return: The job id.\n\t:rtype: :py:class:`uuid.UUID`\n<END>", "<BEGIN>\n## `now`", "Return a :py:class:`datetime.datetime` instance representing the current time.", "\t\t:rty...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the now API. Each 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 now API. Each 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...
Return a :py:class:`datetime.datetime` instance representing the current time. :rtype: :py:class:`datetime.datetime`
"Return a :py:class:`datetime.datetime` instance representing the current time.\n\n\t\t:rtype: :py:class:`datetime.datetime`"
116
false
zeroSteiner/smoke-zephyr
now
19,615
LDU_FT/chaimleib/intervaltree/prune
LDU_FT
[ "<BEGIN>\n## `refresh_balance`", "Recalculate self.balance and self.depth based on child node values.\n<END>", "<BEGIN>\n## `compute_depth`", "Recursively computes true depth of the subtree. Should only\n be needed for debugging. Unless something is wrong, the\n depth field should reflect the co...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the prune API. Each 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 prune API. Each 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...
On a subtree where the root node's s_center is empty, return a new subtree with no empty s_centers.
"On a subtree where the root node's s_center is empty,\n return a new subtree with no empty s_centers."
139
false
chaimleib/intervaltree
prune
19,616
LDU_FT/petl-developers/petl/selectle
LDU_FT
[ "<BEGIN>\n## `look`", "Format a portion of the table as text for inspection in an interactive\n session. E.g.::", " >>> import petl as etl\n >>> table1 = [['foo', 'bar'],\n ... ['a', 1],\n ... ['b', 2]]\n >>> etl.look(table1)\n +-----+-----+\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the selectle API. 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 selectle API. 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...
Select rows where the given field is less than or equal to the given value.
"Select rows where the given field is less than or equal to the given\n value."
789
false
petl-developers/petl
selectle
19,617
LDU_FT/FactoryBoy/factory_boy/stub_batch
LDU_FT
[ "<BEGIN>\n## `set_random_state`", "Force-set the state of factory.fuzzy's random generator.\n<END>", "<BEGIN>\n## `reseed_random`", "Reseed factory.fuzzy's random generator.\n<END>", "<BEGIN>\n## `_lazy_load_get_model`", "Lazy loading of get_model.", " get_model loads django.conf.settings, which may ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the stub_batch API. 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 stub_batch API. 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...
Stub a batch of instances of the given class, with overriden attrs. Args: size (int): the number of instances to stub Returns: object list: the stubbed instances
"Stub a batch of instances of the given class, with overriden attrs.\n\n Args:\n size (int): the number of instances to stub\n\n Returns:\n object list: the stubbed instances"
120
false
FactoryBoy/factory_boy
stub_batch
19,618
LDU_FT/coin-or/GiMPy/fifo_label_correcting
LDU_FT
[ "<BEGIN>\n## `add_root`", "API: add_root(self, root, **attrs)\n Description:\n Adds root node to the tree with name root and returns root Node\n instance.\n Input:\n root: Root node name.\n attrs: Root node attributes.\n Post:\n Changes s...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the fifo_label_correcting 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 fifo_label_correcting API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
API: fifo_label_correcting(self, source) Description: finds shortest path from source to every other node. Returns predecessor dictionary. If graph has a negative cycle, detects it and returns to it. Pre: (1) 'cost' attribute of arcs. It will b...
"API:\n fifo_label_correcting(self, source)\n Description:\n finds shortest path from source to every other node. Returns\n predecessor dictionary. If graph has a negative cycle, detects it\n and returns to it.\n Pre:\n (1) 'cost' attribute of arcs. I...
179
false
coin-or/GiMPy
fifo_label_correcting
19,619
LDU_FT/justquick/django-native-tags/apply_markup
LDU_FT
[ "<BEGIN>\n## `calendar`", "Creates a formatted ``HTMLCalendar``. \n Argument ``format`` can be one of ``month``, ``year``, or ``yearpage``\n Keyword arguments are collected and passed into ``HTMLCalendar.formatmonth``, \n ``HTMLCalendar.formatyear``, and ``HTMLCalendar.formatyearpage``", " Synta...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the apply_markup API. 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 apply_markup API. 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...
Applies text-to-HTML conversion. Takes an optional argument to specify the name of a filter to use.
"Applies text-to-HTML conversion.\n \n Takes an optional argument to specify the name of a filter to use."
161
false
justquick/django-native-tags
apply_markup
19,620
LDU_FT/collectiveacuity/jsonModel/_reconstruct
LDU_FT
[ "<BEGIN>\n## `tabulate`", "a function to add the tabulate method to a jsonModel object", " :param json_model: jsonModel object\n :return: jsonModel object\n<END>", "<BEGIN>\n## `_evaluate_field`", "a helper method for evaluating record values based upon query criteria", " :param record_dict: ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _reconstruct API. 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 _reconstruct API. 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...
a helper method for finding the schema endpoint from a path to root :param path_to_root: string with dot path to root from :return: list, dict, string, number, or boolean at path to root
"a helper method for finding the schema endpoint from a path to root\n\n :param path_to_root: string with dot path to root from\n :return: list, dict, string, number, or boolean at path to root"
65
false
collectiveacuity/jsonModel
_reconstruct
19,621
LDU_FT/openstack/python-scciclient/get
LDU_FT
[ "<BEGIN>\n## `scci_cmd`", "execute SCCI command", " This function calls SCCI server modules\n :param host: hostname or IP of iRMC\n :param userid: userid for iRMC with administrator privileges\n :param password: password for userid\n :param cmd: SCCI command\n :param port: port number of iRMC\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
Use PySNMP to perform an SNMP GET operation on a single object. :param oid: The OID of the object to get. :raises: SNMPFailure if an SNMP request fails. :returns: The value of the requested object.
"Use PySNMP to perform an SNMP GET operation on a single object.\n\n :param oid: The OID of the object to get.\n :raises: SNMPFailure if an SNMP request fails.\n :returns: The value of the requested object."
194
false
openstack/python-scciclient
get
19,622
LDU_FT/AshleySetter/optoanalysis/calc_gamma_from_variance_autocorrelation_fit
LDU_FT
[ "<BEGIN>\n## `InterpretWaveform`", "Take the raw binary from a file saved from the LeCroy, read from a file using \n the 2 lines:\n with open(filename, \"rb\") as file:\n raw = file.read()\n And extracts various properties of the saved time trace.", " Parameters\n -----...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the calc_gamma_from_variance_autocorrelation_fit API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> ind...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the calc_gamma_from_variance_autocorrelation_fit API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> ind...
Calculates the total damping, i.e. Gamma, by splitting the time trace into chunks of NumberOfOscillations oscillations and calculated the variance of each of these chunks. This array of varainces is then used for the autocorrleation. The autocorrelation is fitted with an exponential rel...
"Calculates the total damping, i.e. Gamma, by splitting the time trace\n into chunks of NumberOfOscillations oscillations and calculated the\n variance of each of these chunks. This array of varainces is then used\n for the autocorrleation. The autocorrelation is fitted with an exponential \n ...
402
false
AshleySetter/optoanalysis
calc_gamma_from_variance_autocorrelation_fit
19,623
LDU_FT/tango-controls/pytango/DbGetDevicePropertyHist
LDU_FT
[ "<BEGIN>\n## `get_object_executor`", "Returns the proper executor for the given object.", " If the object has *_executors* and *_green_mode* members it returns\n the submit callable for the executor corresponding to the green_mode.\n Otherwise it returns the global executor for the given green_mode.", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the DbGetDevicePropertyHist 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 DbGetDevicePropertyHist API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion...
Retrieve device property history :param argin: Str[0] = Device name Str[1] = Property name :type: tango.DevVarStringArray :return: Str[0] = Property name Str[1] = date Str[2] = Property value number (array case) Str[3] = Property value 1 Str[n] = Propert...
"Retrieve device property history\n\n :param argin: Str[0] = Device name\n Str[1] = Property name\n :type: tango.DevVarStringArray\n :return: Str[0] = Property name\n Str[1] = date\n Str[2] = Property value number (array case)\n Str[3] = Property value 1\n Str[n]...
577
false
tango-controls/pytango
DbGetDevicePropertyHist
19,624
LDU_FT/aamalev/aiohttp_apiset/deref
LDU_FT
[ "<BEGIN>\n## `url_for`", "Construct url for route with additional params.\n<END>", "<BEGIN>\n## `deref`", "Return dereference data\n :param data:\n :param spec:\n :return:\n<END>", "<BEGIN>\n## `build_swagger_data`", "Prepare data when schema loaded", " :param swagger_schema: loaded sche...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the deref API. Each 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 deref API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
Return dereference data :param data: :param spec: :return:
"Return dereference data\n :param data:\n :param spec:\n :return:"
48
false
aamalev/aiohttp_apiset
deref
19,625
LDU_FT/stuaxo/vext/addpackage
LDU_FT
[ "<BEGIN>\n## `do_enable`", "Uncomment any lines that start with #import in the .pth file\n<END>", "<BEGIN>\n## `do_disable`", "Comment any lines that start with import in the .pth file\n<END>", "<BEGIN>\n## `do_check`", "Attempt to import everything in the 'test-imports' section of specified\n vext_fil...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the addpackage API. 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 addpackage API. 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...
Wrapper for site.addpackage Try and work out which directories are added by the .pth and add them to the known_dirs set :param sys_sitedir: system site-packages directory :param pthfile: path file to add :param known_dirs: set of known directories
"Wrapper for site.addpackage\n\n Try and work out which directories are added by\n the .pth and add them to the known_dirs set\n\n :param sys_sitedir: system site-packages directory\n :param pthfile: path file to add\n :param known_dirs: set of known directories"
64
false
stuaxo/vext
addpackage
19,626
LDU_FT/klen/muffin-debugtoolbar/render_summary
LDU_FT
[ "<BEGIN>\n## `setup`", "Setup the plugin and prepare application.\n<END>", "<BEGIN>\n## `inject`", "Inject Debug Toolbar code to response body.\n<END>", "<BEGIN>\n## `get_current_traceback`", "Get the current exception info as `Traceback` object. Per default\n calling this method will reraise system e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the render_summary API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the render_summary API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
Render the traceback for the interactive console.
"Render the traceback for the interactive console."
12
false
klen/muffin-debugtoolbar
render_summary
19,627
LDU_FT/bjodah/pyodesys/post_process
LDU_FT
[ "<BEGIN>\n## `_is_autonomous`", "Whether the expressions for the dependent variables are autonomous.", " Note that the system may still behave as an autonomous system on the interface\n of :meth:`integrate` due to use of pre-/post-processors.\n<END>", "<BEGIN>\n## `symmetricsys`", "A factory function ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the post_process API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the post_process API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
Transforms internal values to output, used internally.
"Transforms internal values to output, used internally."
113
false
bjodah/pyodesys
post_process
19,628
LDU_FT/realestate-com-au/dashmat/load
LDU_FT
[ "<BEGIN>\n## `generate_dashboard_js`", "Given a dashboard, make the bundle javascript for it", " We also do some caching so we don't generate the javascript when nothing has changed", " First we generate the dashboard es6 content with dashboard.make_dashboard_module()\n we then write this to disk if ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
This function reads a string that contains the XML of an Atom Feed, then returns the data in a native Python structure (a ``dict`` or ``list``). If you also provide a tag name or path to match, only the matching sub-elements are loaded. :param text: The XML text to load. :type text: ``string`` ...
"This function reads a string that contains the XML of an Atom Feed, then\n returns the\n data in a native Python structure (a ``dict`` or ``list``). If you also\n provide a tag name or path to match, only the matching sub-elements are\n loaded.\n\n :param text: The XML text to load.\n :type text: ``s...
173
false
realestate-com-au/dashmat
load
19,629
LDU_FT/PyPSA/PyPSA/import_from_hdf5
LDU_FT
[ "<BEGIN>\n## `generate_dummy_graph`", "Generate a dummy graph to feed to the FIAS libraries.\n It adds the \"pos\" attribute and removes the 380 kV duplicate\n buses when the buses have been split, so that all load and generation\n is attached to the 220kV bus.\n<END>", "<BEGIN>\n## `voronoi_partition`...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the import_from_hdf5 API. 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 import_from_hdf5 API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Import network data from HDF5 store at `path`. Parameters ---------- path : string Name of HDF5 store skip_time : bool, default False Skip reading in time dependent attributes
"Import network data from HDF5 store at `path`.\n\n Parameters\n ----------\n path : string\n Name of HDF5 store\n skip_time : bool, default False\n Skip reading in time dependent attributes"
291
false
PyPSA/PyPSA
import_from_hdf5
19,630
LDU_FT/chengsoonong/wib/status
LDU_FT
[ "<BEGIN>\n## `track`", "Keep track of each file in list file_names.", " Tracking does not create or delete the actual file, it only tells the\n version control system whether to maintain versions (to keep track) of\n the file.\n<END>", "<BEGIN>\n## `untrack`", "Forget about tracking each file in th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the status API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the status API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
See which files have changed, checked in, and uploaded
"See which files have changed, checked in, and uploaded"
21
false
chengsoonong/wib
status
19,631
LDU_FT/vstconsulting/vstutils/get_json_props_for_response
LDU_FT
[ "<BEGIN>\n## `load_yaml`", "Load OpenAPI specification from yaml file. Path to file taking from command\n `vst_openapi`.\n :return:\n<END>", "<BEGIN>\n## `write`", "Add lines to ViewList, for further rendering.\n :param value: --line that would be added to render list\n :type value...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_json_props_for_response 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_json_props_for_response API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclu...
Prepare JSON section with detailed information about response :param var_type: --contains variable type :type var_type: , unicode :param option_value: --dictionary that contains information about property :type option_value: dict :return: dictionary that contains, title and all ...
"Prepare JSON section with detailed information about response\n\n :param var_type: --contains variable type\n :type var_type: , unicode\n :param option_value: --dictionary that contains information about property\n :type option_value: dict\n :return: dictionary that contains, title a...
68
false
vstconsulting/vstutils
get_json_props_for_response
19,632
LDU_FT/wistful/pympris/exception_wrapper
LDU_FT
[ "<BEGIN>\n## `register_signal_handler`", "register `handler_function` to receive `signal_name`.", " Uses class's dbus interface self.IFACE, objects name self.name\n and objects path self.OBJ_PATH to match signal.", " :param str signal_name: The signal name;\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the exception_wrapper API. 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 exception_wrapper API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Decorator to convert dbus exception to pympris exception.
"Decorator to convert dbus exception to pympris exception."
36
false
wistful/pympris
exception_wrapper
19,633
LDU_FT/ozgurgunes/django-manifest/clean
LDU_FT
[ "<BEGIN>\n## `create_user`", "A simple wrapper that creates a new :class:`User`.", " :param username:\n String containing the username of the new user.", " :param email:\n String containing the email address of the new user.", " :param password:\n String...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the clean API. Each 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 clean API. Each 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...
Checks for the identification and password. If the combination can't be found will raise an invalid sign in error.
"Checks for the identification and password.\n\n If the combination can't be found will raise an invalid sign in error."
121
false
ozgurgunes/django-manifest
clean
19,634
LDU_FT/chaoss/grimoirelab-elk/remove_commits
LDU_FT
[ "<BEGIN>\n## `__related_categories`", "Get all related categories to a given one\n<END>", "<BEGIN>\n## `__show_categories_tree`", "Show the category tree: list of categories and its subcategories\n<END>", "<BEGIN>\n## `fetch_track_items`", "The file format is:", " # Upstream contributions, bitergia w...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the remove_commits API. 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 remove_commits API. 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...
Delete documents that correspond to commits deleted in the Git repository :param items: target items to be deleted :param index: target index :param attribute: name of the term attribute to search items :param origin: name of the origin from where the items must be deleted
"Delete documents that correspond to commits deleted in the Git repository\n\n :param items: target items to be deleted\n :param index: target index\n :param attribute: name of the term attribute to search items\n :param origin: name of the origin from where the items must be deleted"
296
false
chaoss/grimoirelab-elk
remove_commits
19,635
LDU_FT/HDI-Project/ballet/check
LDU_FT
[ "<BEGIN>\n## `check`", "Check that the new file introduced is a python source file\n<END>", "<BEGIN>\n## `check`", "Check that the new file is within the contrib subdirectory\n<END>", "<BEGIN>\n## `check`", "Check that the name of the subpackage within contrib is valid", " The package name must m...
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...
Check that the dimensions of the transformed data are correct For input X, an n x p array, a n x q array should be produced, where q is the number of features produced by the logical feature.
"Check that the dimensions of the transformed data are correct\n\n For input X, an n x p array, a n x q array should be produced,\n where q is the number of features produced by the logical feature."
252
false
HDI-Project/ballet
check
19,636
LDU_FT/casouri/launchdman/remove
LDU_FT
[ "<BEGIN>\n## `flatten`", "Flatten a multi-deminision list and return a iterable", " Note that dict and str will not be expanded, instead, they will be kept as a single element.", " Args:\n l (list): The list needs to be flattened", " Returns:\n A iterable of flattened list. To have a ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the remove API. Each 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 remove API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
remove a calendar config. Args: *dic (dict): dictionary with format {'Day': 12, 'Hour': 34} Avaliable keys are Month, Day, Weekday, Hour, Minute. *Note the uppercase.* You can use gen(), genMix() to generate complex config dictionary.
"remove a calendar config.\n\n Args:\n *dic (dict): dictionary with format {'Day': 12, 'Hour': 34} Avaliable keys are Month, Day, Weekday, Hour, Minute. *Note the uppercase.* You can use gen(), genMix() to generate complex config dictionary."
90
false
casouri/launchdman
remove
19,637
LDU_FT/raphaelm/django-hierarkey/get_new_filename
LDU_FT
[ "<BEGIN>\n## `add_default`", "Adds a default value and a default type for a key.", " :param key: Key\n :param value: *Serialized* default value, i.e. a string or ``None``.\n :param default_type: The type to unserialize values for this key to, defaults to ``str``.\n<END>", "<BEGIN>\n## `ad...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_new_filename API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_new_filename API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Returns the file name to use based on the original filename of an uploaded file. By default, the file name is constructed as:: <model_name>-<attribute_name>/<primary_key>/<original_basename>.<random_nonce>.<extension>
"Returns the file name to use based on the original filename of an uploaded file.\n By default, the file name is constructed as::\n \n <model_name>-<attribute_name>/<primary_key>/<original_basename>.<random_nonce>.<extension>"
29
false
raphaelm/django-hierarkey
get_new_filename
19,638
LDU_FT/mistio/mist.client/_list_clouds
LDU_FT
[ "<BEGIN>\n## `request`", "The main purpose of this is to be a wrapper-like function to pass the api_token and all the other params to the\n requests that are being made", " :returns: An instance of RequestsHandler\n<END>", "<BEGIN>\n## `delete`", "Delete the cloud from the list of added clouds...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _list_clouds API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _list_clouds API. 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...
Request a list of all added clouds. Populates self._clouds dict with mist.client.model.Cloud instances
"Request a list of all added clouds.\n\n Populates self._clouds dict with mist.client.model.Cloud instances"
106
false
mistio/mist.client
_list_clouds
19,639
LDU_FT/tomnor/channelpack/name
LDU_FT
[ "<BEGIN>\n## `masked`", "Return a numpy array with values from a where elements in b are\n not False. Populate with numpy.nan where b is False. When plotting,\n those elements look like missing, which can be a desired result.\n<END>", "<BEGIN>\n## `duration_bool`", "Mask the parts in b being True but do...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the 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 extracted do...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the 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 extracted do...
Return channel name for ch. ch is the channel name or the index number for the channel name, 0-based. ch: str or int. The channel name or indexed number. firstwordonly: bool or "pattern". If True, return only the first non-spaced word in the name. If a strin...
"Return channel name for ch. ch is the channel name or the\n index number for the channel name, 0-based.\n\n ch: str or int.\n The channel name or indexed number.\n\n firstwordonly: bool or \"pattern\".\n If True, return only the first non-spaced word in the name.\n ...
253
false
tomnor/channelpack
name
19,640
LDU_FT/KnowledgeLinks/rdfframework/create_namespace
LDU_FT
[ "<BEGIN>\n## `get_obj_frm_str`", "Returns a python object from a python object string", " args:\n obj_str: python object path expamle\n \"rdfframework.connections.ConnManager[{param1}]\"", " kwargs:\n * kwargs used to format the 'obj_str'\n<END>", "<BEGIN>\n## `pyfile_...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_namespace API. 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 create_namespace API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
creates a namespace if it does not exist args: name: the name of the namespace ignore_errors(bool): Will ignore if a namespace already exists or there is an error creating the namespace returns: True if created False if not c...
"creates a namespace if it does not exist\r\n\r\n args:\r\n name: the name of the namespace\r\n ignore_errors(bool): Will ignore if a namespace already exists or\r\n there is an error creating the namespace\r\n\r\n returns:\r\n True if created\r\n ...
627
false
KnowledgeLinks/rdfframework
create_namespace
19,641
LDU_FT/ClimateImpactLab/DataFS/_search
LDU_FT
[ "<BEGIN>\n## `_generate_manager`", "Generate a manager from a manager_config dictionary", " Parameters\n ----------", " manager_config : dict\n Configuration with keys class, args, and kwargs\n used to generate a new datafs.manager object", " Returns\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _search API. Each 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 _search API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
Returns a list of Archive id's in the table on Dynamo
"Returns a list of Archive id's in the table on Dynamo"
318
false
ClimateImpactLab/DataFS
_search
19,642
LDU_FT/saulpw/visidata/asyncthread
LDU_FT
[ "<BEGIN>\n## `expand_cols_deep`", "expand all visible columns of containers to the given depth (0=fully)\n<END>", "<BEGIN>\n## `load_pyobj`", "Return Sheet object of appropriate type for given sources in `args`.\n<END>", "<BEGIN>\n## `getPublicAttrs`", "Return all public attributes (not methods or `_`-pre...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the asyncthread API. 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 asyncthread API. 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...
Function decorator, to make calls to `func()` spawn a separate thread if available.
"Function decorator, to make calls to `func()` spawn a separate thread if available."
249
false
saulpw/visidata
asyncthread
19,643
LDU_FT/nccgroup/Scout2/parse_identitie
LDU_FT
[ "<BEGIN>\n## `get_keys`", "Copies the value of keys from source object to dest object", " :param src:\n :param dst:\n :param keys:\n :return:\n<END>", "<BEGIN>\n## `no_camel`", "Converts CamelCase to camel_case", " :param name:\n :return:\n<END>", "<BEGIN>\n## `is_throttled`", "Deter...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_identitie API. 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 parse_identitie API. 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...
Parse a single identity and fetch additional attributes :param global_params: Parameters shared for all regions :param region: Name of the AWS region
"Parse a single identity and fetch additional attributes\n\n :param global_params: Parameters shared for all regions\n :param region: Name of the AWS region"
166
false
nccgroup/Scout2
parse_identitie
19,644
LDU_FT/shaunduncan/nosqlite/find_one
LDU_FT
[ "<BEGIN>\n## `_eq`", "Returns True if the value of a document field is equal to a given value\n<END>", "<BEGIN>\n## `_gt`", "Returns True if the value of a document field is greater than a given value\n<END>", "<BEGIN>\n## `_lt`", "Returns True if the value of a document field is less than a given value\n...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_one API. 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 find_one API. 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...
Equivalent to ``find(query, limit=1)[0]``
"Equivalent to ``find(query, limit=1)[0]``"
53
false
shaunduncan/nosqlite
find_one
19,645
LDU_FT/hendrix/hendrix/addGlobalServices
LDU_FT
[ "<BEGIN>\n## `save_chat_message`", "kwargs will always include:", " 'data': \n # will always be exactly what your client sent on the socket\n # in this case...\n {u'message': u'hi', u'sender': u'anonymous', u'channel': u'homepage'},", " 'dispatcher': \n # the dispatcher tha...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the addGlobalServices API. 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 addGlobalServices API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
This is where we put service that we don't want to be duplicated on worker subprocesses
"This is where we put service that we don't want to be duplicated on\n worker subprocesses"
119
false
hendrix/hendrix
addGlobalServices
19,646
LDU_FT/guyzmo/git-repo/request_fetch
LDU_FT
[ "<BEGIN>\n## `confirm`", "Method to show a CLI based confirmation message, waiting for a yes/no answer.\n \"what\" and \"where\" are used to better define the message.\n<END>", "<BEGIN>\n## `register_target`", "Decorator to register a class with an repo_service\n<END>", "<BEGIN>\n## `get_service`", "Ac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the request_fetch API. 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 request_fetch API. 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...
Fetches given request as a branch, and switch if pull is true :param repo: name of the repository to create Meant to be implemented by subclasses
"Fetches given request as a branch, and switch if pull is true\n\n :param repo: name of the repository to create\n\n Meant to be implemented by subclasses"
38
false
guyzmo/git-repo
request_fetch
19,647
LDU_FT/CygnusNetworks/pypureomapi/lookup_ip_host
LDU_FT
[ "<BEGIN>\n## `parse_chain`", "Creates a new parser that executes the passed parsers (args) with the\n\tprevious results and yields a tuple of the results.", "\t>>> list(parse_chain(lambda: (None, 1), lambda one: (None, 2)))\n\t[None, None, (1, 2)]", "\t@param args: parsers\n\t@returns: parser\n<END>", "<BEG...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the lookup_ip_host API. 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 lookup_ip_host API. 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...
Lookup a host object with with given mac address. @type mac: str @raises ValueError: @raises OmapiError: @raises OmapiErrorNotFound: if no lease object with the given mac could be found @raises OmapiErrorAttributeNotFound: if lease could be found, but objects lacks a ip @raises socket.error:
"Lookup a host object with with given mac address.\n\n\t\t@type mac: str\n\t\t@raises ValueError:\n\t\t@raises OmapiError:\n\t\t@raises OmapiErrorNotFound: if no lease object with the given mac could be found\n\t\t@raises OmapiErrorAttributeNotFound: if lease could be found, but objects lacks a ip\n\t\t@raises socket.e...
114
false
CygnusNetworks/pypureomapi
lookup_ip_host
19,648
LDU_FT/ajdavis/mongo-mockup-db/fail
LDU_FT
[ "<BEGIN>\n## `go`", "Launch an operation on a thread and get a handle to its future result.", " >>> from time import sleep\n >>> def print_sleep_print(duration):\n ... sleep(duration)\n ... print('hello from background thread')\n ... sleep(duration)\n ... print('goodbye from ba...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the fail API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the fail API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
Reply to a query with the QueryFailure flag and an '$err' key. Returns True so it is suitable as an `~MockupDB.autoresponds` handler.
"Reply to a query with the QueryFailure flag and an '$err' key.\n\n Returns True so it is suitable as an `~MockupDB.autoresponds` handler."
129
false
ajdavis/mongo-mockup-db
fail
19,649
LDU_FT/usrlocalben/pydux/apply_middleware
LDU_FT
[ "<BEGIN>\n## `log_middleware`", "log all actions to console as they are dispatched\n<END>", "<BEGIN>\n## `extend`", "shallow dictionary merge", " Args:\n a: dict to extend\n b: dict to apply to a", " Returns:\n new instance of the same type as _a_, with _a_ and _b_ merged.\n<END...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the apply_middleware API. 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 apply_middleware API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
creates an enhancer function composed of middleware Args: *middlewares: list of middleware functions to apply Returns: an enhancer for subsequent calls to create_store()
"creates an enhancer function composed of middleware\n\n Args:\n *middlewares: list of middleware functions to apply\n\n Returns:\n an enhancer for subsequent calls to create_store()"
25
false
usrlocalben/pydux
apply_middleware
19,650
LDU_FT/suurjaak/InputScope/start
LDU_FT
[ "<BEGIN>\n## `start`", "Starts the listener with incoming and outgoing queues.\n<END>", "<BEGIN>\n## `fetch`", "Convenience wrapper for database SELECT and fetch all.\n<END>", "<BEGIN>\n## `fetchone`", "Convenience wrapper for database SELECT and fetch one.\n<END>", "<BEGIN>\n## `insert`", "Convenienc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the start API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the start API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
Starts the listener with incoming and outgoing queues.
"Starts the listener with incoming and outgoing queues."
38
false
suurjaak/InputScope
start
19,651
LDU_FT/hovren/crisp/integrate_gyro_quaternion
LDU_FT
[ "<BEGIN>\n## `sync_camera_gyro`", "Get time offset that aligns image timestamps with gyro timestamps.", " Given an image sequence, and gyroscope data, with their respective timestamps,\n calculate the offset that aligns the image data with the gyro data.\n The timestamps must only differ by an offset, ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the integrate_gyro_quaternion 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 integrate_gyro_quaternion API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi...
Integrate angular velocities to rotations Parameters --------------- gyro_ts : ndarray Timestamps gyro_data : (3, N) ndarray Angular velocity measurements Returns --------------- rotations : (4, N) ndarray Rotation sequence as unit quaternions (f...
"Integrate angular velocities to rotations\n \n Parameters\n ---------------\n gyro_ts : ndarray\n Timestamps\n gyro_data : (3, N) ndarray\n Angular velocity measurements\n \n Returns\n ---------------\n rotations : (4, N) ndarray\n Rotation sequence as unit q...
252
false
hovren/crisp
integrate_gyro_quaternion
19,652
LDU_FT/sirrice/pygg/axis_labels
LDU_FT
[ "<BEGIN>\n## `_to_r`", "Helper function to convert python data structures to R equivalents", " TODO: a single model for transforming to r to handle\n * function args\n * lists as function args\n<END>", "<BEGIN>\n## `data_sql`", "Load file using RPostgreSQL", " Place to edit if want to add more...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the axis_labels API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the axis_labels API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
Helper function to create reasonable axis labels @param xtitle String for the title of the X axis. Automatically escaped @param ytitle String for the title of the Y axis. Automatically escaped @param xsuffix Suffix string appended to "scales_x_" to define the type of x axis Default: "continuou...
"Helper function to create reasonable axis labels\n\n @param xtitle String for the title of the X axis. Automatically escaped\n @param ytitle String for the title of the Y axis. Automatically escaped\n @param xsuffix Suffix string appended to \"scales_x_\" to define the type of x axis\n Default: \"...
56
false
sirrice/pygg
axis_labels
19,653
LDU_FT/erdc/RAPIDpy/open_csv
LDU_FT
[ "<BEGIN>\n## `generate_single_return_period`", "This function calculates a single return period for a single reach\n<END>", "<BEGIN>\n## `generate_return_periods`", "Generate return period from RAPID Qout file\n<END>", "<BEGIN>\n## `get_poly_area_geo`", "Calculates the area in meters squared of the indivi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the open_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 open_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...
Get mode depending on Python version Based on: http://stackoverflow.com/questions/29840849/writing-a-csv-file-in-python-that-works-for-both-python-2-7-and-python-3-3-in
"Get mode depending on Python version\n Based on: http://stackoverflow.com/questions/29840849/writing-a-csv-file-in-python-that-works-for-both-python-2-7-and-python-3-3-in"
502
false
erdc/RAPIDpy
open_csv
19,654
LDU_FT/LasLabs/python-five9/create_mapping
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_mapping API. 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 create_mapping API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
Create a field mapping for use in API updates and creates. Args: record (BaseModel): Record that should be mapped. keys (list[str]): Fields that should be mapped as keys. Returns: dict: Dictionary with keys: * ``field_mappings``: Field mappings as r...
"Create a field mapping for use in API updates and creates.\n\n Args:\n record (BaseModel): Record that should be mapped.\n keys (list[str]): Fields that should be mapped as keys.\n\n Returns:\n dict: Dictionary with keys:\n\n * ``field_mappings``: Field map...
74
false
LasLabs/python-five9
create_mapping
19,655
LDU_FT/wright-group/WrightTools/read
LDU_FT
[ "<BEGIN>\n## `flatten_list`", "Flatten an irregular sequence.", " Works generally but may be slower than it could\n be if you can make assumptions about your list.", " `Source`__", " __ https://stackoverflow.com/a/10824086", " Parameters\n ----------\n items : iterable\n The ir...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the read API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the read API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
Read from file. Parameters ---------- section : string Section. option : string Option. Returns ------- string Value.
"Read from file.\n\n Parameters\n ----------\n section : string\n Section.\n option : string\n Option.\n\n Returns\n -------\n string\n Value."
603
false
wright-group/WrightTools
read
19,656
LDU_FT/tensorflow/tensorboard/create_summary_metadata
LDU_FT
[ "<BEGIN>\n## `add_event`", "Adds an event to the event file.", " Args:\n event: An `Event` protocol buffer.\n<END>", "<BEGIN>\n## `write`", "Enqueue the given bytes to be written asychronously\n<END>", "<BEGIN>\n## `flush`", "Write all the enqueued bytestring before this flush call to di...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_summary_metadata API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_summary_metadata API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion...
Returns a summary metadata for the HParams plugin. Returns a summary_pb2.SummaryMetadata holding a copy of the given HParamsPluginData message in its plugin_data.content field. Sets the version field of the hparams_plugin_data_pb copy to PLUGIN_DATA_VERSION. Args: hparams_plugin_data_pb: the HParamsPlug...
"Returns a summary metadata for the HParams plugin.\n\n Returns a summary_pb2.SummaryMetadata holding a copy of the given\n HParamsPluginData message in its plugin_data.content field.\n Sets the version field of the hparams_plugin_data_pb copy to\n PLUGIN_DATA_VERSION.\n\n Args:\n hparams_plugin_data_pb: the HP...
1,768
true
tensorflow/tensorboard
create_summary_metadata
19,657
LDU_FT/GoogleCloudPlatform/google-cloud-datastore/_call_method
LDU_FT
[ "<BEGIN>\n## `get_default_connection`", "Returns the default datastore connection.", " Defaults endpoint to helper.get_project_endpoint_from_env() and\n credentials to helper.get_credentials_from_env().", " Use set_options to override defaults.\n<END>", "<BEGIN>\n## `get_all`", "Query for all Todo item...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _call_method API. 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 _call_method API. 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...
_call_method call the given RPC method over HTTP. It uses the given protobuf message request as the payload and returns the deserialized protobuf message response. Args: method: RPC method name to be called. req: protobuf message for the RPC request. resp_class: protobuf message class fo...
"_call_method call the given RPC method over HTTP.\n\n It uses the given protobuf message request as the payload and\n returns the deserialized protobuf message response.\n\n Args:\n method: RPC method name to be called.\n req: protobuf message for the RPC request.\n resp_class: protobuf message...
94
false
GoogleCloudPlatform/google-cloud-datastore
_call_method
19,658
LDU_FT/smira/py-numa/set_preferred
LDU_FT
[ "<BEGIN>\n## `get_node_size`", "Get size of memory on C{node}.", " @param node: node idx\n @type node: C{int}\n @return: free memory/total memory\n @rtype: C{tuple}(C{int}, C{int})\n<END>", "<BEGIN>\n## `node_to_cpus`", "Get CPUs available on C{node}.", " @return: set of CPU ids\n @rtype...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_preferred API. 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 set_preferred API. 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...
Sets the preferred node for the current thread to node. The preferred node is the node on which memory is preferably allocated before falling back to other nodes. The default is to use the node on which the process is currently running (local policy). @param node: node idx @type node: C{int}
"Sets the preferred node for the current thread to node.\n\n The preferred node is the node on which memory is preferably allocated before falling back to other\n nodes. The default is to use the node on which the process is currently running (local policy).\n\n @param node: node idx\n @type node: C{int}"
44
false
smira/py-numa
set_preferred
19,659
LDU_FT/alefnula/tea/open
LDU_FT
[ "<BEGIN>\n## `smart_text`", "Return a unicode object representing 's'.\r", " Treats bytes using the 'encoding' codec.\r", " If strings_only is True, don't convert (some) non-string-like objects.\n<END>", "<BEGIN>\n## `smart_bytes`", "Return a bytes version of 's' encoded as specified in 'encoding'.\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the open API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the open API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
Ensure we have a connection to the email server. Returns whether or not a new connection was required (True or False).
"Ensure we have a connection to the email server.\r\n\r\n Returns whether or not a new connection was required (True or False)."
240
false
alefnula/tea
open
19,660
LDU_FT/cloudera/impyla/get_table_column_statistics
LDU_FT
[ "<BEGIN>\n## `drop_database`", "Parameters:\n - name\n - deleteData\n - cascade\n<END>", "<BEGIN>\n## `get_fields`", "Parameters:\n - db_name\n - table_name\n<END>", "<BEGIN>\n## `get_fields_with_environment_context`", "Parameters:\n - db_name\n - table_name\n - environment...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_table_column_statistics 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_table_column_statistics API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclu...
Parameters: - db_name - tbl_name - col_name
"Parameters:\n - db_name\n - tbl_name\n - col_name"
206
false
cloudera/impyla
get_table_column_statistics
19,661
LDU_FT/CogSciUOS/StudDP/auth
LDU_FT
[ "<BEGIN>\n## `path`", "Path of this node on Studip. Looks like Coures/folder/folder/document. Respects the renaming policies defined in the namemap\n<END>", "<BEGIN>\n## `title`", "get title of this node. If an entry for this course is found in the configuration namemap it is used, otherwise the default\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the auth API. Each 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 auth API. Each 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...
tuple of (username, password). if use_keyring is set to true the password will be queried from the local keyring instead of taken from the configuration file.
"tuple of (username, password). if use_keyring is set to true the password will be queried from the local keyring instead of taken from the\n configuration file."
26
false
CogSciUOS/StudDP
auth
19,662
LDU_FT/chaoss/grimoirelab-sortinghat/__parse_blacklist
LDU_FT
[ "<BEGIN>\n## `run`", "List, add or delete entries from the blacklist.", " By default, it prints the list of entries available on\n the blacklist.\n<END>", "<BEGIN>\n## `add`", "Add entries to the blacklist.", " This method adds the given 'entry' to the blacklist.", " :param e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the __parse_blacklist API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the __parse_blacklist API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Parse blacklist entries using Sorting Hat format. The Sorting Hat blacklist format is a JSON stream that stores a list of blacklisted entries. Next, there is an example of a valid stream: { "blacklist": [ "John Doe", "John Smith", ...
"Parse blacklist entries using Sorting Hat format.\n\n The Sorting Hat blacklist format is a JSON stream that\n stores a list of blacklisted entries.\n\n Next, there is an example of a valid stream:\n\n {\n \"blacklist\": [\n \"John Doe\",\n \"John Sm...
700
false
chaoss/grimoirelab-sortinghat
__parse_blacklist
19,663
LDU_FT/radjkarl/fancyWidgets/findMenu
LDU_FT
[ "<BEGIN>\n## `contextMenuEvent`", "Add menu action:\n * 'Show line numbers'\n * 'Save to file'\n<END>", "<BEGIN>\n## `contextMenuEvent`", "Add menu action:\n * 'Show line numbers'\n * 'Save to file'\n<END>", "<BEGIN>\n## `findMenu`", "find a menu with a given title", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the findMenu API. 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 findMenu API. 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...
find a menu with a given title @type title: string @param title: English title of the menu @rtype: QMenu @return: None if no menu was found, else the menu with title
"find a menu with a given title\n\n @type title: string\n @param title: English title of the menu\n @rtype: QMenu\n @return: None if no menu was found, else the menu with title"
48
false
radjkarl/fancyWidgets
findMenu
19,664
LDU_FT/mdickinson/bigfloat/atanh
LDU_FT
[ "<BEGIN>\n## `build`", "Build the bigfloat library for in-place testing.\n<END>", "<BEGIN>\n## `_quotient_exponent`", "Given two positive finite MPFR instances x and y,\n find the exponent of x / y; that is, the unique\n integer e such that 2**(e-1) <= x / y < 2**e.\n<END>", "<BEGIN>\n## `mpfr_floordi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the atanh API. Each 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 atanh API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
Return the inverse hyperbolic tangent of x.
"Return the inverse hyperbolic tangent of x."
273
false
mdickinson/bigfloat
atanh
19,665
LDU_FT/limpyd/redis-limpyd-jobs/job_success
LDU_FT
[ "<BEGIN>\n## `_parse_queues`", "Parse the given parameter and return a list of queues.\n The parameter must be a list/tuple of strings, or a string with queues\n separated by a comma.\n<END>", "<BEGIN>\n## `_assert_correct_model`", "Helper that asserts the model_to_check is the model_reference o...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the job_success API. 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 job_success API. 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...
Called just after an execute call was successful. job_result is the value returned by the callback, if any.
"Called just after an execute call was successful.\n job_result is the value returned by the callback, if any."
122
false
limpyd/redis-limpyd-jobs
job_success
19,666
LDU_FT/Kozea/pygal/confidence_interval_continuous
LDU_FT
[ "<BEGIN>\n## `erfinv`", "Approximation of the inverse error function\n https://en.wikipedia.org/wiki/Error_function\n #Approximation_with_elementary_functions\n<END>", "<BEGIN>\n## `confidence_interval_continuous`", "Continuous confidence interval from sample size and standard error\n<END>", "<BEGIN>\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the confidence_interval_continuous API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its con...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the confidence_interval_continuous API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its con...
Continuous confidence interval from sample size and standard error
"Continuous confidence interval from sample size and standard error"
147
false
Kozea/pygal
confidence_interval_continuous
19,667
LDU_FT/wearpants/instrument/all
LDU_FT
[ "<BEGIN>\n## `_make_decorator`", "morass of closures for making decorators/descriptors\n<END>", "<BEGIN>\n## `all`", "Measure total time and item count for consuming an iterable", " :arg iterable: any iterable\n :arg function metric: f(name, count, total_time)\n :arg str name: name for the metric\n...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the all API. Each 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 all API. Each 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...
Measure total time and item count for consuming an iterable :arg iterable: any iterable :arg function metric: f(name, count, total_time) :arg str name: name for the metric
"Measure total time and item count for consuming an iterable\n\n :arg iterable: any iterable\n :arg function metric: f(name, count, total_time)\n :arg str name: name for the metric"
53
false
wearpants/instrument
all
19,668
LDU_FT/ransford/sllurp/decode_tve_parameter
LDU_FT
[ "<BEGIN>\n## `decode_tve_parameter`", "Generic byte decoding function for TVE parameters.", " Given an array of bytes, tries to interpret a TVE parameter from the\n beginning of the array. Returns the decoded data and the number of bytes\n it read.\n<END>", "<BEGIN>\n## `tagReportCallback`", "Func...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the decode_tve_parameter 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 decode_tve_parameter API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Generic byte decoding function for TVE parameters. Given an array of bytes, tries to interpret a TVE parameter from the beginning of the array. Returns the decoded data and the number of bytes it read.
"Generic byte decoding function for TVE parameters.\n\n Given an array of bytes, tries to interpret a TVE parameter from the\n beginning of the array. Returns the decoded data and the number of bytes\n it read."
59
false
ransford/sllurp
decode_tve_parameter
19,669
LDU_FT/eddiejessup/spatious/csep_periodic
LDU_FT
[ "<BEGIN>\n## `R_rot_2d`", "Return a 2-dimensional rotation matrix.", " Parameters\n ----------\n th: array, shape (n, 1)\n Angles about which to rotate.", " Returns\n -------\n R: array, shape (n, 2, 2)\n<END>", "<BEGIN>\n## `R_rot_3d`", "Return a 3-dimensional rotation matrix.", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the csep_periodic API. 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 csep_periodic API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
Return separation vectors between each pair of the two sets of points. Parameters ---------- ra, rb: float array-like, shape (n, d) and (m, d) in d dimensions. Two sets of points. L: float array, shape (d,) System lengths. Returns ------- csep: float array-like, shape (n, m...
"Return separation vectors between each pair of the two sets of points.\n\n Parameters\n ----------\n ra, rb: float array-like, shape (n, d) and (m, d) in d dimensions.\n Two sets of points.\n L: float array, shape (d,)\n System lengths.\n\n Returns\n -------\n csep: float array-like,...
112
false
eddiejessup/spatious
csep_periodic
19,670
LDU_FT/refnode/liquid/check
LDU_FT
[ "<BEGIN>\n## `text_coords`", "r\"\"\"\n Transform a simple index into a human-readable position in a string.", " This function accepts a string and an index, and will return a triple of\n `(lineno, columnno, line)` representing the position through the text. It's\n useful for displaying a string ind...
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...
See what :meth:`scan` would return without advancing the pointer. >>> s = Scanner("test string") >>> s.check('test ') 'test ' >>> s.pos 0
"See what :meth:`scan` would return without advancing the pointer.\n\n >>> s = Scanner(\"test string\")\n >>> s.check('test ')\n 'test '\n >>> s.pos\n 0"
54
false
refnode/liquid
check
19,671
LDU_FT/liampauling/betfair/list_available_events
LDU_FT
[ "<BEGIN>\n## `streaming_market_filter`", ":param list market_ids: filter market data to data pertaining to specific marketIds.\n :param list event_type_ids: filter market data to data pertaining to specific event_type ids.\n :param list event_ids: filter market data to data pertaining to specific event ids....
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the list_available_events 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 list_available_events API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Search for events that have live score data available. :param list event_ids: Optionally restricts the results to the specified event IDs :param list event_type_ids: Optionally restricts the results to the specified event type IDs :param list event_status: Optionally restricts the results to th...
"Search for events that have live score data available.\n\n :param list event_ids: Optionally restricts the results to the specified event IDs\n :param list event_type_ids: Optionally restricts the results to the specified event type IDs\n :param list event_status: Optionally restricts the results ...
224
false
liampauling/betfair
list_available_events
19,672