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/AshleySetter/optoanalysis/FitRadius
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 FitRadius API. 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 FitRadius API. 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...
Fits the dynamical potential to the Steady State Potential by varying the Radius. z : ndarray Position data SampleFreq : float frequency at which the position data was sampled Damping : float value of damping (in radians/second) HistBins : int number of...
"Fits the dynamical potential to the Steady \n State Potential by varying the Radius.\n \n z : ndarray\n Position data\n SampleFreq : float\n frequency at which the position data was \n sampled\n Damping : float\n value of damping (in radians/second)\n HistBins : int\n ...
402
false
AshleySetter/optoanalysis
FitRadius
3,573
LDU_FT/carlthome/python-audio-effects/compand
LDU_FT
[ "<BEGIN>\n## `equalizer`", "equalizer takes three parameters: filter center frequency in Hz, \"q\"\n or band-width (default=1.0), and a signed number for gain or\n attenuation in dB.", " Beware of clipping when using positive gain.\n<END>", "<BEGIN>\n## `bandpass`", "bandpass takes 2 pa...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the compand API. 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 compand API. 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...
compand takes 6 parameters: attack (seconds), decay (seconds), soft_knee (ex. 6 results in 6:1 compression ratio), threshold (a negative value in dB), the level below which the signal will NOT be companded (a negative value in dB), the level above which the signal will ...
"compand takes 6 parameters: \n \n attack (seconds), decay (seconds), soft_knee (ex. 6 results \n in 6:1 compression ratio), threshold (a negative value\n in dB), the level below which the signal will NOT be companded\n (a negative value in dB), the level above which the signal will\n...
53
false
carlthome/python-audio-effects
compand
3,574
LDU_FT/jasonlaska/spherecluster/fit
LDU_FT
[ "<BEGIN>\n## `sample_vMF`", "Generate num_samples N-dimensional samples from von Mises Fisher\n distribution around center mu \\in R^N with concentration kappa.\n<END>", "<BEGIN>\n## `_sample_weight`", "Rejection sampling scheme for sampling distance from center on\n surface of the sphere.\n<END>", "<...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the fit API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the fit API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
Compute k-means clustering. Parameters ---------- X : array-like or sparse matrix, shape=(n_samples, n_features) y : Ignored not used, present here for API consistency by convention. sample_weight : array-like, shape (n_samples,), optional The weights ...
"Compute k-means clustering.\n\n Parameters\n ----------\n\n X : array-like or sparse matrix, shape=(n_samples, n_features)\n\n y : Ignored\n not used, present here for API consistency by convention.\n\n sample_weight : array-like, shape (n_samples,), optional\n ...
93
false
jasonlaska/spherecluster
fit
3,575
LDU_FT/getfleety/coralillo/validate
LDU_FT
[ "<BEGIN>\n## `snake_case`", "Takes a string that represents for example a class name and returns\n the snake case version of it. It is used for model-to-key conversion\n<END>", "<BEGIN>\n## `value_or_default`", "Returns the given value or the specified default value for this\n field\n<END>", "<BEG...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the validate API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the validate API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
Validates data obtained from a request and returns it in the apropiate format
"Validates data obtained from a request and returns it in the apropiate\n format"
62
false
getfleety/coralillo
validate
3,576
LDU_FT/jvsteiner/merkletree/add_adjust
LDU_FT
[ "<BEGIN>\n## `check_chain`", "Verify a merkle chain to see if the Merkle root can be reproduced.\n<END>", "<BEGIN>\n## `check_hex_chain`", "Verify a merkle chain, with hashes hex encoded, to see if the Merkle root can be reproduced.\n<END>", "<BEGIN>\n## `add_hash`", "Add a Node based on a precomputed, he...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_adjust API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_adjust API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
Add a new leaf, and adjust the tree, without rebuilding the whole thing.
"Add a new leaf, and adjust the tree, without rebuilding the whole thing."
24
false
jvsteiner/merkletree
add_adjust
3,577
LDU_FT/joferkington/mplstereonet/density_grid
LDU_FT
[ "<BEGIN>\n## `subplots`", "Identical to matplotlib.pyplot.subplots, except that this will default to\n producing equal-area stereonet axes.", " This prevents constantly doing:", " >>> fig, ax = plt.subplot(subplot_kw=dict(projection='stereonet'))", " or", " >>> fig = plt.figure()\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the density_grid API. 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 density_grid API. 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...
Estimates point density of the given linear orientation measurements (Interpreted as poles, lines, rakes, or "raw" longitudes and latitudes based on the `measurement` keyword argument.). Returns a regular (in lat-long space) grid of density estimates over a hemispherical surface. Parameters -------...
"Estimates point density of the given linear orientation measurements\n (Interpreted as poles, lines, rakes, or \"raw\" longitudes and latitudes\n based on the `measurement` keyword argument.). Returns a regular (in\n lat-long space) grid of density estimates over a hemispherical surface.\n\n Parameters\n ...
362
false
joferkington/mplstereonet
density_grid
3,578
LDU_FT/c-w/gutenberg/_implementations
LDU_FT
[ "<BEGIN>\n## `_etextno_to_uri_subdirectory`", "Returns the subdirectory that an etextno will be found in a gutenberg\n mirror. Generally, one finds the subdirectory by separating out each digit\n of the etext number, and uses it for a directory. The exception here is for\n etext numbers less than 10, whi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _implementations API. 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 _implementations API. 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 all the concrete subclasses of MetadataExtractor.
"Returns all the concrete subclasses of MetadataExtractor."
70
false
c-w/gutenberg
_implementations
3,579
LDU_FT/hobson/pug-ann/trainer_results
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 trainer_results API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the trainer_results API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
Plot the performance of the Network and SupervisedDataSet in a pybrain Trainer DataSet target and output values are denormalized before plotting with: output * std + mean Which inverses the normalization (output - mean) / std Args: trainer (Trainer): a pybrain Trainer instance c...
"Plot the performance of the Network and SupervisedDataSet in a pybrain Trainer\n\n DataSet target and output values are denormalized before plotting with:\n\n output * std + mean\n\n Which inverses the normalization\n\n (output - mean) / std\n\n Args:\n trainer (Trainer): a pybrain Traine...
81
false
hobson/pug-ann
trainer_results
3,580
LDU_FT/admiralobvious/vyper/_find_config_file
LDU_FT
[ "<BEGIN>\n## `_get_env`", "Wrapper around os.getenv() which replaces characters\n in the original key. This allows env vars which have different keys\n than the config object keys.\n<END>", "<BEGIN>\n## `add_config_path`", "Add a path for Vyper to search for the config file in.\n Can be c...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _find_config_file API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _find_config_file API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Search all `config_paths` for any config file. Returns the first path that exists (and is a config file).
"Search all `config_paths` for any config file.\n Returns the first path that exists (and is a config file)."
38
false
admiralobvious/vyper
_find_config_file
3,581
LDU_FT/Dapid/tmscoring/_tm
LDU_FT
[ "<BEGIN>\n## `get_default_values`", "Make a crude estimation of the alignment using the center of mass\n and general C->N orientation.\n<END>", "<BEGIN>\n## `get_matrix`", "Build the rotation-translation matrix.", " It has the form:", " [ | dx ]\n [ R | dy ]\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _tm API. 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 _tm API. 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...
Compute the minimisation target, not normalised.
"Compute the minimisation target, not normalised."
15
false
Dapid/tmscoring
_tm
3,582
LDU_FT/sveetch/py-css-styleguide/remove_rule
LDU_FT
[ "<BEGIN>\n## `digest_prelude`", "Walk on rule prelude (aka CSS selector) tokens to return a string of\n the value name (from css selector).", " Actually only simple selector and selector with descendant combinator\n are supported. Using any other selector kind may leads to unexpected\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the remove_rule API. 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 remove_rule API. 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...
Remove a rule from attributes. Arguments: name (string): Rule name to remove.
"Remove a rule from attributes.\n\n Arguments:\n name (string): Rule name to remove."
98
false
sveetch/py-css-styleguide
remove_rule
3,583
LDU_FT/galaxyproject/pulsar/ensure_port_cleanup
LDU_FT
[ "<BEGIN>\n## `__posix_to_local_path`", "Converts a posix path (coming from Galaxy), to a local path (be it posix or Windows).", " >>> import ntpath\n >>> __posix_to_local_path('dataset_1_files/moo/cow', local_path_module=ntpath)\n 'dataset_1_files\\\\\\\\moo\\\\\\\\cow'\n >>> import posixpath\n >...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the ensure_port_cleanup API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the ensure_port_cleanup API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
This makes sure any open ports are closed. Does this by connecting to them until they give connection refused. Servers should call like:: import paste.script ensure_port_cleanup([80, 443])
"This makes sure any open ports are closed.\n\n Does this by connecting to them until they give connection\n refused. Servers should call like::\n\n import paste.script\n ensure_port_cleanup([80, 443])"
142
false
galaxyproject/pulsar
ensure_port_cleanup
3,584
LDU_FT/knagra/farnsworth/recount_view
LDU_FT
[ "<BEGIN>\n## `anonymous_login_view`", "View for an admin to log her/himself out and login the anonymous user.\n<END>", "<BEGIN>\n## `end_anonymous_session_view`", "End the anonymous session if the user is a superuser.\n<END>", "<BEGIN>\n## `list_managers_view`", "Show a list of manager positions with link...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the recount_view API. 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 recount_view API. 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...
Recount number_of_messages for all threads and number_of_responses for all requests. Also set the change_date for every thread to the post_date of the latest message associated with that thread.
"Recount number_of_messages for all threads and number_of_responses for all requests.\n Also set the change_date for every thread to the post_date of the latest message\n associated with that thread."
150
false
knagra/farnsworth
recount_view
3,585
LDU_FT/rigetti/pyquil/format_parameter
LDU_FT
[ "<BEGIN>\n## `to_latex`", "Translates a given pyquil Program to a TikZ picture in a Latex document.", " :param Program circuit: The circuit to be drawn, represented as a pyquil program.\n :param dict settings: An optional dictionary with settings for drawing the circuit. See `get_default_settings`\n i...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the format_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. The ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the format_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. The ...
Formats a particular parameter. Essentially the same as built-in formatting except using 'i' instead of 'j' for the imaginary number. :param element: {int, float, long, complex, Parameter} Formats a parameter for Quil output.
"Formats a particular parameter. Essentially the same as built-in formatting except using 'i' instead of 'j' for\n the imaginary number.\n\n :param element: {int, float, long, complex, Parameter} Formats a parameter for Quil output."
1,152
true
rigetti/pyquil
format_parameter
3,586
LDU_FT/dingusdk/PythonIhcSdk/set_runtime_value_int
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 set_runtime_value_int 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 set_runtime_value_int API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Set integer runtime value with re-authenticate if needed
"Set integer runtime value with re-authenticate if needed"
28
false
dingusdk/PythonIhcSdk
set_runtime_value_int
3,587
LDU_FT/awacha/sastool/readabt
LDU_FT
[ "<BEGIN>\n## `readB1logfile`", "Read B1 logfile (*.log)", " Inputs:\n filename: the file name", " Output: A dictionary.\n<END>", "<BEGIN>\n## `writeB1logfile`", "Write a header structure into a B1 logfile.", " Inputs:\n filename: name of the file.\n data: header dictionary"...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the readabt API. 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 readabt API. 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...
Read abt_*.fio type files from beamline B1, HASYLAB. Input: filename: the name of the file. dirs: directories to search for files in Output: A dictionary. The fields are self-explanatory.
"Read abt_*.fio type files from beamline B1, HASYLAB.\n\n Input:\n filename: the name of the file.\n dirs: directories to search for files in\n\n Output:\n A dictionary. The fields are self-explanatory."
426
false
awacha/sastool
readabt
3,588
LDU_FT/maceoutliner/django-fiction-outlines/story_root_for_new_outline
LDU_FT
[ "<BEGIN>\n## `mk_dropdown_tree`", "Override of ``treebeard`` method to enforce the same root.\n<END>", "<BEGIN>\n## `length_estimate`", "Calculates and estimated word count based on number of characters, locations,\n and arcs. For reference see:\n http://www.writingexcuses.com/2017/07/02/12-27-c...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the story_root_for_new_outline API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclus...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the story_root_for_new_outline API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclus...
If a new instance of a Outline is created, also create the root node of the story tree.
"If a new instance of a Outline is created, also create\n the root node of the story tree."
61
false
maceoutliner/django-fiction-outlines
story_root_for_new_outline
3,589
LDU_FT/bgyori/pykqml/gets
LDU_FT
[ "<BEGIN>\n## `translate_argv`", "Enables conversion from system arguments.", " Parameters\n ----------\n raw_args : list\n Arguments taken raw from the system input.", " Returns\n -------\n kwargs : dict\n The input arguments formatted as a kwargs dict.\n To use as input...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the gets API. 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 gets API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
Return the element of the list after the given keyword as string. Parameters ---------- keyword : str The keyword parameter to find in the list. Putting a colon before the keyword is optional, if no colon is given, it is added automatically (e.g. "keyword" wi...
"Return the element of the list after the given keyword as string.\n\n Parameters\n ----------\n keyword : str\n The keyword parameter to find in the list.\n Putting a colon before the keyword is optional, if no colon is\n given, it is added automatically (e.g. \"ke...
30
false
bgyori/pykqml
gets
3,590
LDU_FT/ZELLMECHANIK-DRESDEN/dclab/keyval_str2typ
LDU_FT
[ "<BEGIN>\n## `tdms2rtdc`", "Convert .tdms datasets to the hdf5-based .rtdc file format\n<END>", "<BEGIN>\n## `load_from_file`", "Load the configuration from a file", " Parameters\n ----------\n cfg_file: str\n Path to configuration file", " Returns\n -------\n cfg : CaseInsensitiv...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the keyval_str2typ API. 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 keyval_str2typ API. 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...
Convert a variable from a string to its correct type Parameters ---------- var: str The variable name val: str The value of the variable represented as a string Returns ------- varout: str Stripped lowercase `var` valout: any type The value converted fro...
"Convert a variable from a string to its correct type\n\n Parameters\n ----------\n var: str\n The variable name\n val: str\n The value of the variable represented as a string\n\n Returns\n -------\n varout: str\n Stripped lowercase `var`\n valout: any type\n The valu...
433
false
ZELLMECHANIK-DRESDEN/dclab
keyval_str2typ
3,591
LDU_FT/xym-tool/xym/warning
LDU_FT
[ "<BEGIN>\n## `hexdump`", "Hexdump function by sbz and 7h3rAm on Github:\n (https://gist.github.com/7h3rAm/5603718).\n :param src: Source, the string to be shown in hexadecimal format\n :param length: Number of hex characters to print in one row\n :param sep: Unprintable characters representation\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the warning API. 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 warning API. 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...
Prints out a warning message to stderr. :param s: The warning string to print :return: None
"Prints out a warning message to stderr.\n :param s: The warning string to print\n :return: None"
30
false
xym-tool/xym
warning
3,592
LDU_FT/touilleMan/mongopatcher/can_be_applied
LDU_FT
[ "<BEGIN>\n## `initialize`", "Initialize the manifest document in the given datamodel", " :param version: Actual version of the datamodel\n :param force: Replace manifest if it already exists\n<END>", "<BEGIN>\n## `update`", "Modify the datamodel's manifest", " :param version: New vers...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the can_be_applied API. 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 can_be_applied API. 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...
Check the current datamodel state fulfill the requirements to run this patch
"Check the current datamodel state fulfill the requirements\n to run this patch"
27
false
touilleMan/mongopatcher
can_be_applied
3,593
LDU_FT/arviz-devs/arviz/generate_dims_coords
LDU_FT
[ "<BEGIN>\n## `generate_dims_coords`", "Generate default dimensions and coordinates for a variable.", " Parameters\n ----------\n shape : tuple[int]\n Shape of the variable\n var_name : str\n Name of the variable. Used in the default name, if necessary\n dims : list\n List of ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the generate_dims_coords 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 generate_dims_coords API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Generate default dimensions and coordinates for a variable. Parameters ---------- shape : tuple[int] Shape of the variable var_name : str Name of the variable. Used in the default name, if necessary dims : list List of dimensions for the variable coords : dict[str] -> li...
"Generate default dimensions and coordinates for a variable.\n\n Parameters\n ----------\n shape : tuple[int]\n Shape of the variable\n var_name : str\n Name of the variable. Used in the default name, if necessary\n dims : list\n List of dimensions for the variable\n coords : dict...
674
false
arviz-devs/arviz
generate_dims_coords
3,594
LDU_FT/samuelcolvin/pydantic/get_flat_models_from_model
LDU_FT
[ "<BEGIN>\n## `validate_email`", "Brutally simple email address validation. Note unlike most email address validation\n * raw ip address (literal) domain parts are not allowed.\n * \"John Doe <local_part@domain.com>\" style \"pretty\" email addresses are processed\n * the local part check is extremely bas...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_flat_models_from_model API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclus...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_flat_models_from_model API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclus...
Take a single ``model`` and generate a set with itself and all the sub-models in the tree. I.e. if you pass model ``Foo`` (subclass of Pydantic ``BaseModel``) as ``model``, and it has a field of type ``Bar`` (also subclass of ``BaseModel``) and that model ``Bar`` has a field of type ``Baz`` (also subclass of ``...
"Take a single ``model`` and generate a set with itself and all the sub-models in the tree. I.e. if you pass\n model ``Foo`` (subclass of Pydantic ``BaseModel``) as ``model``, and it has a field of type ``Bar`` (also\n subclass of ``BaseModel``) and that model ``Bar`` has a field of type ``Baz`` (also subclass of...
113
false
samuelcolvin/pydantic
get_flat_models_from_model
3,595
LDU_FT/trolldbois/ctypeslib/include
LDU_FT
[ "<BEGIN>\n## `init_fundamental_types`", "Registers all fundamental typekind handlers\n<END>", "<BEGIN>\n## `_handle_fundamental_types`", "Handles POD types nodes.\n see init_fundamental_types for the registration.\n<END>", "<BEGIN>\n## `_array_handler`", "Handles all array types.\n Resolves ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the include API. 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 include API. 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...
This function replaces the *calling module* with a dynamic module that generates code on demand. The code is generated from type descriptions that are created by gccxml compiling the C code 'code'. If <persist> is True, generated code is appended to the module's source code, otherwise the generate...
"This function replaces the *calling module* with a dynamic\n module that generates code on demand. The code is generated from\n type descriptions that are created by gccxml compiling the C code\n 'code'.\n\n If <persist> is True, generated code is appended to the module's\n source code, otherwise the g...
88
false
trolldbois/ctypeslib
include
3,596
LDU_FT/rtlee9/serveit/make_response
LDU_FT
[ "<BEGIN>\n## `loader`", "Load image from URL, and preprocess for Resnet.\n<END>", "<BEGIN>\n## `json_numpy_loader`", "Load data from JSON request and convert to numpy array.\n<END>", "<BEGIN>\n## `get_bytes_to_image_callback`", "Return a callback to process image bytes for ImageNet.\n<END>", "<BEGIN>\n#...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the make_response API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the make_response API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
Make a jsonified response with specified message and status code.
"Make a jsonified response with specified message and status code."
20
false
rtlee9/serveit
make_response
3,597
LDU_FT/juergberinger/cmdhelper/run
LDU_FT
[ "<BEGIN>\n## `getLogLevelNo`", "Return numerical log level or raise ValueError.", " A valid level is either an integer or a string such as WARNING etc.\n<END>", "<BEGIN>\n## `cmdLine`", "Return full command line with any necessary quoting.\n<END>", "<BEGIN>\n## `handleError`", "Error handling utility...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the run API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the run API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
Run cmd and return (status,output,parsedOutput). Unless dryrun is set True, cmd is run using subprocess.Popen. It returns the exit status from cmd, its output, and any output found by searching for the regular expression parseForRegEx. cmd is logged at the debug level. The parameters are: cmd...
"Run cmd and return (status,output,parsedOutput).\n\n Unless dryrun is set True, cmd is run using subprocess.Popen. It\n returns the exit status from cmd, its output, and any output found\n by searching for the regular expression parseForRegEx. cmd is\n logged at the debug level.\n\n The parameters are:\...
43
false
juergberinger/cmdhelper
run
3,598
LDU_FT/coala/coala-decorators-USE-cOALA-UTILS-INSTEAD/generate_eq
LDU_FT
[ "<BEGIN>\n## `yield_once`", "Decorator to make an iterator returned by a method yield each result only\n once.", " >>> @yield_once\n ... def generate_list(foo):\n ... return foo\n >>> list(generate_list([1, 2, 1]))\n [1, 2]", " :param iterator: Any method that returns an iterator\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the generate_eq API. 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 generate_eq API. 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...
Decorator that generates equality and inequality operators for the decorated class. The given members as well as the type of self and other will be taken into account. Note that this decorator modifies the given class in place! :param members: A list of members to compare for equality.
"Decorator that generates equality and inequality operators for the\n decorated class. The given members as well as the type of self and other\n will be taken into account.\n\n Note that this decorator modifies the given class in place!\n\n :param members: A list of members to compare for equality."
35
false
coala/coala-decorators-USE-cOALA-UTILS-INSTEAD
generate_eq
3,599
LDU_FT/Geotab/mygeotab-python/remove_async
LDU_FT
[ "<BEGIN>\n## `object_deserializer`", "Helper to deserialize a raw result dict into a proper dict.", " :param obj: The dict.\n<END>", "<BEGIN>\n## `login`", "Logs into a MyGeotab server and stores the returned credentials.", " :param session: The current Session object.\n :param user: The username...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the remove_async API. 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 remove_async API. 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...
Removes an entity asynchronously using the API. Shortcut for using async_call() with the 'Remove' method. :param type_name: The type of entity. :param entity: The entity to remove. :raise MyGeotabException: Raises when an exception occurs on the MyGeotab server. :raise TimeoutException:...
"Removes an entity asynchronously using the API. Shortcut for using async_call() with the 'Remove' method.\n\n :param type_name: The type of entity.\n :param entity: The entity to remove.\n :raise MyGeotabException: Raises when an exception occurs on the MyGeotab server.\n :raise TimeoutExce...
96
false
Geotab/mygeotab-python
remove_async
3,600
LDU_FT/HIPS/autograd/init_net_params
LDU_FT
[ "<BEGIN>\n## `make_gp_funs`", "Functions that perform Gaussian process regression.\n cov_func has signature (cov_params, x, x')\n<END>", "<BEGIN>\n## `def_linear`", "Flags that a function is linear wrt all args\n<END>", "<BEGIN>\n## `project`", "Project the velocity field to be approximately mass-co...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the init_net_params API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the init_net_params API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
Build a (weights, biases) tuples for all layers.
"Build a (weights, biases) tuples for all layers."
79
false
HIPS/autograd
init_net_params
3,601
LDU_FT/astropy/photutils/segments
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 segments API. 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 segments API. 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...
A list of `Segment` objects. The list starts with the *non-zero* label. The returned list has a length equal to the number of labels and matches the order of the ``labels`` attribute.
"A list of `Segment` objects.\n\n The list starts with the *non-zero* label. The returned list\n has a length equal to the number of labels and matches the order\n of the ``labels`` attribute."
1,397
true
astropy/photutils
segments
3,602
LDU_FT/pyblish/pyblish-lite/_run
LDU_FT
[ "<BEGIN>\n## `paint`", "Paint checkbox and text\n _\n |_| My label\n<END>", "<BEGIN>\n## `paint`", "Paint checkbox and text", " _________________________________________\n | | label | duration |\n |toggle |_____________________| |\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _run API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _run API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
Process current pair and store next pair for next process Arguments: until (pyblish.api.Order, optional): Keep fetching next() until this order, default value is infinity. on_finished (callable, optional): What to do when finishing, defaults to doing noth...
"Process current pair and store next pair for next process\n\n Arguments:\n until (pyblish.api.Order, optional): Keep fetching next()\n until this order, default value is infinity.\n on_finished (callable, optional): What to do when finishing,\n defaults to doi...
33
false
pyblish/pyblish-lite
_run
3,603
LDU_FT/kootenpv/yagmail/resolve_addresses
LDU_FT
[ "<BEGIN>\n## `resolve_addresses`", "Handle the targets addresses, adding aliases when defined\n<END>", "<BEGIN>\n## `main`", "This is the function that is run from commandline with `yagmail`\n<END>", "<BEGIN>\n## `validate_email_with_regex`", "Note that this will only filter out syntax mistakes in emailad...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the resolve_addresses API. 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 resolve_addresses API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Handle the targets addresses, adding aliases when defined
"Handle the targets addresses, adding aliases when defined"
16
false
kootenpv/yagmail
resolve_addresses
3,604
LDU_FT/blockstack/pybitcoin/from_passphrase
LDU_FT
[ "<BEGIN>\n## `random_passphrase_from_wordlist`", "An extremely entropy efficient passphrase generator.", " This function:\n -Pulls entropy from the safer alternative to /dev/urandom: /dev/random\n -Doesn't rely on random.seed (words are selected right from the entropy)\n -Only requir...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the from_passphrase API. 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 from_passphrase API. 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...
Create keypair from a passphrase input (a brain wallet keypair).
"Create keypair from a passphrase input (a brain wallet keypair)."
79
false
blockstack/pybitcoin
from_passphrase
3,605
LDU_FT/JohnDoee/thomas/query_yes_no
LDU_FT
[ "<BEGIN>\n## `_get_rar_version`", "Check quickly whether file is rar archive.\n<END>", "<BEGIN>\n## `_find_all_first_files`", "Does not support the full range of ways rar can split\n as it'd require reading the file to ensure you are using the\n correct way.\n<END>", "<BEGIN>\n## `query_yes_no...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the query_yes_no API. 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 query_yes_no API. 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...
Ask a yes/no question via raw_input() and return their answer. "question" is a string that is presented to the user. "default" is the presumed answer if the user just hits <Enter>. It must be "yes" (the default), "no" or None (meaning an answer is required of the user). The "answer" return v...
"Ask a yes/no question via raw_input() and return their answer.\n \"question\" is a string that is presented to the user.\n \"default\" is the presumed answer if the user just hits <Enter>.\n It must be \"yes\" (the default), \"no\" or None (meaning\n an answer is required of the user).\n The \"a...
18
false
JohnDoee/thomas
query_yes_no
3,606
LDU_FT/remind101/stacker_blueprints/create_record_set_groups
LDU_FT
[ "<BEGIN>\n## `create_sqs_policy`", "This method creates the SQS policy needed for an SNS subscription. It\n also takes the ARN of the SQS queue and converts it to the URL needed\n for the subscription, as that takes a URL rather than the ARN.\n<END>", "<BEGIN>\n## `create_topic`", "Creates the S...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_record_set_groups API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_record_set_groups API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio...
Accept list of record_set_group dicts. Return list of record_set_group objects.
"Accept list of record_set_group dicts.\n Return list of record_set_group objects."
53
false
remind101/stacker_blueprints
create_record_set_groups
3,607
LDU_FT/inspirehep/refextract/tag_arxiv
LDU_FT
[ "<BEGIN>\n## `process_reference_line`", "After the phase of identifying and tagging citation instances\n in a reference line, this function is called to go through the\n line and the collected information about the recognised citations,\n and to transform the line into a string of MARC XML in wh...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the tag_arxiv API. 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 tag_arxiv API. 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...
Tag arxiv report numbers We handle arXiv in 2 ways: * starting with arXiv:1022.1111 * this format exactly 9999.9999 We also format the output to the standard arxiv notation: * arXiv:2007.12.1111 * arXiv:2007.12.1111v2
"Tag arxiv report numbers\n\n We handle arXiv in 2 ways:\n * starting with arXiv:1022.1111\n * this format exactly 9999.9999\n We also format the output to the standard arxiv notation:\n * arXiv:2007.12.1111\n * arXiv:2007.12.1111v2"
301
false
inspirehep/refextract
tag_arxiv
3,608
LDU_FT/rbarrois/django_xworkflows/value_to_string
LDU_FT
[ "<BEGIN>\n## `render`", "Handle a few expected values for rendering the current choice.", " Extracts the state name from StateWrapper and State object.\n<END>", "<BEGIN>\n## `contribute_to_class`", "Contribute the state to a Model.", " Attaches a StateFieldProperty to wrap the attribute.\n<E...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the value_to_string API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the value_to_string API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
Convert a field value to a string. Returns the state name.
"Convert a field value to a string.\n\n Returns the state name."
28
false
rbarrois/django_xworkflows
value_to_string
3,609
LDU_FT/timster/peewee-validates/convert_field
LDU_FT
[ "<BEGIN>\n## `validate_not_empty`", "Validate that a field is not empty (blank string).", " :raises: ``ValidationError('empty')``\n<END>", "<BEGIN>\n## `validate_length`", "Validate the length of a field with either low, high, or equal.\n Should work with anything that supports len().", " :param ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the convert_field API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the convert_field API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
Convert a single field from a Peewee model field to a validator field. :param name: Name of the field as defined on this validator. :param name: Peewee field instance. :return: Validator field.
"Convert a single field from a Peewee model field to a validator field.\n\n :param name: Name of the field as defined on this validator.\n :param name: Peewee field instance.\n :return: Validator field."
82
false
timster/peewee-validates
convert_field
3,610
LDU_FT/mogproject/mog-commons-python/execute_command
LDU_FT
[ "<BEGIN>\n## `_detect_encoding`", "Detect the default encoding for the terminal's output.\n :return: string: encoding string\n<END>", "<BEGIN>\n## `_get_restore_function`", "Return the binary function for restoring terminal attributes.\n :return: function (signal, frame) => None:\n<END>", "<BE...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the execute_command API. 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 execute_command API. 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...
Execute external command :param args: command line arguments : [unicode] :param shell: True when using shell : boolean :param cwd: working directory : string :param env: environment variables : dict :param stdin: standard input :param stdout: standard output :param stderr: standard error ...
"Execute external command\n :param args: command line arguments : [unicode]\n :param shell: True when using shell : boolean\n :param cwd: working directory : string\n :param env: environment variables : dict\n :param stdin: standard input\n :param stdout: standard output\n :param stderr: standard e...
49
false
mogproject/mog-commons-python
execute_command
3,611
LDU_FT/OLC-Bioinformatics/sipprverse/find_nuc_indel
LDU_FT
[ "<BEGIN>\n## `cmd2list`", "Executes a command through the operating system and returns the output\n as a list, or on error a string with the standard error.\n EXAMPLE:\n >>> from subprocess import Popen, PIPE\n >>> CMDout2array('ls -l')\n<END>", "<BEGIN>\n## `print_timers`", "PRINT EXECUTION TIM...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_nuc_indel API. 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 find_nuc_indel API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
This function finds the entire indel missing in from a gapped sequence compared to the indel_seqeunce. It is assumes that the sequences start with the first position of the gap.
"This function finds the entire indel missing in from a gapped sequence \n compared to the indel_seqeunce. It is assumes that the sequences start\n with the first position of the gap."
255
false
OLC-Bioinformatics/sipprverse
find_nuc_indel
3,612
LDU_FT/manahl/arctic/get_library
LDU_FT
[ "<BEGIN>\n## `delete`", "Delete all chunks for a symbol.", " Which are, for the moment, fully contained in the passed in\n date_range.", " Parameters\n ----------\n symbol : `str`\n symbol name for the item\n date_range : `date.DateRange`\n DateR...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_library API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_library API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
Return the library instance. Can generally use slicing to return the library: arctic_store[library] Parameters ---------- library : `str` The name of the library. e.g. 'library' or 'user.library'
"Return the library instance. Can generally use slicing to return the library:\n arctic_store[library]\n\n Parameters\n ----------\n library : `str`\n The name of the library. e.g. 'library' or 'user.library'"
429
false
manahl/arctic
get_library
3,613
LDU_FT/jic-dtool/dtool-http/generate_item_urls
LDU_FT
[ "<BEGIN>\n## `publish`", "Return access URL to HTTP enabled (published) dataset.", " Exits with error code 1 if the dataset_uri is not a dataset.\n Exits with error code 2 if the dataset cannot be HTTP enabled.\n<END>", "<BEGIN>\n## `cli`", "Command line utility to HTTP enable (publish) a dataset.\n<E...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the generate_item_urls 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 generate_item_urls API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
Return dict with identifier/URL pairs for the dataset items.
"Return dict with identifier/URL pairs for the dataset items."
27
false
jic-dtool/dtool-http
generate_item_urls
3,614
LDU_FT/devopshq/youtrack/get_user
LDU_FT
[ "<BEGIN>\n## `get_user`", "http://confluence.jetbrains.net/display/YTD2/GET+user\n<END>", "<BEGIN>\n## `import_users`", "Import users, returns import result (http://confluence.jetbrains.net/display/YTD2/Import+Users)\n Example: importUsers([{'login':'vadim', 'fullName':'vadim', 'email':'eee@ss.com'...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_user API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_user API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
http://confluence.jetbrains.net/display/YTD2/GET+user
"http://confluence.jetbrains.net/display/YTD2/GET+user"
21
false
devopshq/youtrack
get_user
3,615
LDU_FT/dronekit/dronekit-python/wait_for_alt
LDU_FT
[ "<BEGIN>\n## `condition_yaw`", "Send MAV_CMD_CONDITION_YAW message to point vehicle at a specified heading (in degrees).", " This method sets an absolute heading by default, but you can set the `relative` parameter\n to `True` to set yaw relative to the current yaw heading.", " By default the yaw of ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the wait_for_alt API. 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 wait_for_alt API. 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...
Wait for the vehicle to reach the specified altitude. Wait for the vehicle to get within epsilon meters of the given altitude. If rel is True (the default), use the global_relative_frame. If rel is False, use the global_frame. If timeout is nonzero, raise a TimeoutError if the specifie...
"Wait for the vehicle to reach the specified altitude.\n\n Wait for the vehicle to get within epsilon meters of the\n given altitude. If rel is True (the default), use the\n global_relative_frame. If rel is False, use the global_frame.\n If timeout is nonzero, raise a TimeoutError if the sp...
290
false
dronekit/dronekit-python
wait_for_alt
3,616
LDU_FT/eerimoq/bincopy/add
LDU_FT
[ "<BEGIN>\n## `crc_srec`", "Calculate the CRC for given Motorola S-Record hexstring.\n<END>", "<BEGIN>\n## `crc_ihex`", "Calculate the CRC for given Intel HEX hexstring.\n<END>", "<BEGIN>\n## `pack_srec`", "Create a Motorola S-Record record of given data.\n<END>", "<BEGIN>\n## `unpack_srec`", "Unpack g...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
Add given data string by guessing its format. The format must be Motorola S-Records, Intel HEX or TI-TXT. Set `overwrite` to ``True`` to allow already added data to be overwritten.
"Add given data string by guessing its format. The format must be\n Motorola S-Records, Intel HEX or TI-TXT. Set `overwrite` to\n ``True`` to allow already added data to be overwritten."
88
false
eerimoq/bincopy
add
3,617
LDU_FT/jspricke/python-remind/to_reminders
LDU_FT
[ "<BEGIN>\n## `rem2ics`", "Command line tool to convert from Remind to iCalendar\n<END>", "<BEGIN>\n## `ics2rem`", "Command line tool to convert from iCalendar to Remind\n<END>", "<BEGIN>\n## `_parse_remind`", "Calls remind and parses the output into a dict", " filename -- the remind file (include...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the to_reminders API. 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 to_reminders API. 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 Remind commands for all events of a iCalendar
"Return Remind commands for all events of a iCalendar"
47
false
jspricke/python-remind
to_reminders
3,618
LDU_FT/caffeinehit/django-oauth2-provider/authorization_code
LDU_FT
[ "<BEGIN>\n## `check`", "Check if a desired scope ``wants`` is part of an available scope ``has``.", " Returns ``False`` if not, return ``True`` if yes.", " :example:", " If a list of scopes such as", " ::", " READ = 1 << 1\n WRITE = 1 << 2\n READ_WRITE = READ | WRITE", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the authorization_code 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 authorization_code 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...
Handle ``grant_type=authorization_code`` requests as defined in :rfc:`4.1.3`.
"Handle ``grant_type=authorization_code`` requests as defined in\n :rfc:`4.1.3`."
74
false
caffeinehit/django-oauth2-provider
authorization_code
3,619
LDU_FT/FlaskGuys/Flask-Imagine/_heighten
LDU_FT
[ "<BEGIN>\n## `apply`", "Apply filter to resource\n :param resource: Image\n :return: Image\n<END>", "<BEGIN>\n## `get_item`", "Get resource item\n :param path: string\n :return: PIL.Image\n<END>", "<BEGIN>\n## `create_cached_item`", "Create cached resource item\n :param ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _heighten API. 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 _heighten API. 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...
Change image size by height :param resource: Image :return: Image
"Change image size by height\n :param resource: Image\n :return: Image"
66
false
FlaskGuys/Flask-Imagine
_heighten
3,620
LDU_FT/Aluriak/ACCC/_create_struct_table
LDU_FT
[ "<BEGIN>\n## `constructSpec`", "Return a language specification based on parameters.\n<END>", "<BEGIN>\n## `translated`", "Return code associated to given structure and values, \n translate with given language specification.\n<END>", "<BEGIN>\n## `cpp_spec`", "C++ specification, provided for example, a...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _create_struct_table 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_struct_table API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Create table identificator->vocabulary, and return it with size of an identificator
"Create table identificator->vocabulary, \n and return it with size of an identificator"
22
false
Aluriak/ACCC
_create_struct_table
3,621
LDU_FT/OCA/openupgradelib/rename_fields
LDU_FT
[ "<BEGIN>\n## `_adjust_merged_values_orm`", "This method deals with the values on the records to be merged +\n the target record, performing operations that makes sense on the meaning\n of the model.", " :param field_spec: Dictionary with field names as keys and forced operation\n to perform as val...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the rename_fields API. 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 rename_fields API. 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...
Rename fields. Typically called in the pre script. WARNING: If using this on base module, pass the argument ``no_deep`` with True value for avoiding the using of the environment (which is not yet loaded). This, in contrast of ``rename_columns``, performs all the steps for completely rename a field from...
"Rename fields. Typically called in the pre script. WARNING: If using\n this on base module, pass the argument ``no_deep`` with True value for\n avoiding the using of the environment (which is not yet loaded).\n\n This, in contrast of ``rename_columns``, performs all the steps for\n completely rename a fiel...
190
false
OCA/openupgradelib
rename_fields
3,622
LDU_FT/simodalla/pygmount/read_config
LDU_FT
[ "<BEGIN>\n## `kwargs_helper`", "This function preprocesses the kwargs dictionary to sanitize it.\n<END>", "<BEGIN>\n## `GetDate`", "Prompt the user for a date.", " This will raise a Zenity Calendar Dialog for the user to pick a date.\n It will return a datetime.date object with the date or None if the...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the read_config API. 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 read_config API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
Read a config filename into .ini format and return dict of shares. Keyword arguments: filename -- the path of config filename (default None) Return dict.
"Read a config filename into .ini format and return dict of shares.\n\n Keyword arguments:\n filename -- the path of config filename (default None)\n\n Return dict."
56
false
simodalla/pygmount
read_config
3,623
LDU_FT/mweb/appconfig/_format_message
LDU_FT
[ "<BEGIN>\n## `_get_type`", "Get the python type for a given string describtion for a type.", " @param stype: The string representing the type to return\n @return: The python type if available\n<END>", "<BEGIN>\n## `_format_message`", "Return a string with newlines so that the given string fits...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _format_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 e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _format_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 e...
Return a string with newlines so that the given string fits into this line length. At the start of the line the indent is added. This can be used for commenting the message out within a file or to indent your text. All \\t will be replaced with 4 spaces. @param value: The strin...
"Return a string with newlines so that the given string fits into this\n line length. At the start of the line the indent is added. This can\n be used for commenting the message out within a file or to indent your\n text.\n\n All \\\\t will be replaced with 4 spaces.\n\n @param value:...
35
false
mweb/appconfig
_format_message
3,624
LDU_FT/BreakingBytes/simkit/topological_sort
LDU_FT
[ "<BEGIN>\n## `register`", "Register outputs and metadata.", " * ``initial_value`` - used in dynamic calculations\n * ``size`` - number of elements per timestep\n * ``uncertainty`` - in percent of nominal value\n * ``variance`` - dictionary of covariances, diagonal is square of\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the topological_sort API. 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 topological_sort API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
topological sort :param dag: directed acyclic graph :type dag: dict .. seealso:: `Topographical Sorting <http://en.wikipedia.org/wiki/Topological_sorting>`_, `Directed Acyclic Graph (DAG) <https://en.wikipedia.org/wiki/Directed_acyclic_graph>`_
"topological sort\n\n :param dag: directed acyclic graph\n :type dag: dict\n\n .. seealso:: `Topographical Sorting\n <http://en.wikipedia.org/wiki/Topological_sorting>`_,\n `Directed Acyclic Graph (DAG)\n <https://en.wikipedia.org/wiki/Directed_acyclic_graph>`_"
227
false
BreakingBytes/simkit
topological_sort
3,625
LDU_FT/VasilyStepanov/pywidl/p_UnionMemberType_anyType
LDU_FT
[ "<BEGIN>\n## `p_Interface`", "Interface : interface IDENTIFIER Inheritance \"{\" InterfaceMembers \"}\" \";\"\n<END>", "<BEGIN>\n## `p_Dictionary`", "Dictionary : dictionary IDENTIFIER Inheritance \"{\" DictionaryMembers \"}\" \";\"\n<END>", "<BEGIN>\n## `p_DictionaryMember`", "DictionaryMember : Type IDE...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the p_UnionMemberType_anyType 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 p_UnionMemberType_anyType API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi...
UnionMemberType : any "[" "]" TypeSuffix
"UnionMemberType : any \"[\" \"]\" TypeSuffix"
34
false
VasilyStepanov/pywidl
p_UnionMemberType_anyType
3,626
LDU_FT/villebro/pyhtzee/score_x_of_a_kind_yahtzee
LDU_FT
[ "<BEGIN>\n## `score_x_of_a_kind_yahtzee`", "Return sum of dice if there are a minimum of equal min_same_faces dice, otherwise\n return zero. Only works for 3 or more min_same_faces.\n<END>", "<BEGIN>\n## `score_x_of_a_kind_yatzy`", "Similar to yahtzee, but only return the sum of the dice that satisfy min_s...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the score_x_of_a_kind_yahtzee 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 score_x_of_a_kind_yahtzee API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi...
Return sum of dice if there are a minimum of equal min_same_faces dice, otherwise return zero. Only works for 3 or more min_same_faces.
"Return sum of dice if there are a minimum of equal min_same_faces dice, otherwise\n return zero. Only works for 3 or more min_same_faces."
12
false
villebro/pyhtzee
score_x_of_a_kind_yahtzee
3,627
LDU_FT/naught101/sobol_seq/prime_ge
LDU_FT
[ "<BEGIN>\n## `i4_bit_hi1`", "i4_bit_hi1 returns the position of the high 1 bit base 2 in an integer.", " Example:\n +------+-------------+-----\n | N | Binary | BIT\n +------|-------------+-----\n | 0 | 0 | 0\n | 1 | 1 | 1\n | 2 | ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the prime_ge API. 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 prime_ge API. 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...
PRIME_GE returns the smallest prime greater than or equal to N. Example: +-----+--------- | N | PRIME_GE +-----+--------- | -10 | 2 | 1 | 2 | 2 | 2 | 3 | 3 | 4 | 5 | 5 | 5 | 6 | 7 | 7 ...
"PRIME_GE returns the smallest prime greater than or equal to N.\n\n Example:\n +-----+---------\n | N | PRIME_GE\n +-----+---------\n | -10 | 2\n | 1 | 2\n | 2 | 2\n | 3 | 3\n | 4 | 5\n | 5 | 5\n | 6 | 7...
49
false
naught101/sobol_seq
prime_ge
3,628
LDU_FT/Pelagicore/qface/reload
LDU_FT
[ "<BEGIN>\n## `open_ns`", "generates a open namespace from symbol namespace x { y { z {\n<END>", "<BEGIN>\n## `close_ns`", "generates a closing names statement from a symbol\n<END>", "<BEGIN>\n## `ns`", "generates a namespace x::y::z statement from a symbol\n<END>", "<BEGIN>\n## `app`", "Takes several ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the reload API. 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 reload API. 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 ...
reloads the generator script when the script files or the input files changes
"reloads the generator script when the script files\n or the input files changes"
56
false
Pelagicore/qface
reload
3,629
LDU_FT/ikumen/flask-cfg/_load_all_configs
LDU_FT
[ "<BEGIN>\n## `process_loaded_configs`", "Takes the loaded config values (from YAML files) and performs the\n following clean up steps:", " 1. remove all value keys that are not uppercase\n 2. resolve any keys with missing values", " Note: resolving missing values does not fail fast...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _load_all_configs API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _load_all_configs API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Loads configuration values for each of the files (from given paths), merging duplicate values (e.g. latter values with same keys override earlier values). @param paths list of config file paths to load @param values dictionary to store the loaded values
"Loads configuration values for each of the files (from given paths), merging\n duplicate values (e.g. latter values with same keys override earlier values).\n \n @param paths list of config file paths to load\n @param values dictionary to store the loaded values"
21
false
ikumen/flask-cfg
_load_all_configs
3,630
LDU_FT/uw-it-aca/uw-restclients-pws/get_person_by_regid
LDU_FT
[ "<BEGIN>\n## `get_person_by_regid`", "Returns a restclients.Person object for the given regid. If the\n regid isn't found, or if there is an error communicating with the PWS,\n a DataFailureException will be thrown.\n<END>", "<BEGIN>\n## `get_person_by_netid`", "Returns a restclients.Person obj...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_person_by_regid API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_person_by_regid API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
Returns a restclients.Person object for the given regid. If the regid isn't found, or if there is an error communicating with the PWS, a DataFailureException will be thrown.
"Returns a restclients.Person object for the given regid. If the\n regid isn't found, or if there is an error communicating with the PWS,\n a DataFailureException will be thrown."
16
false
uw-it-aca/uw-restclients-pws
get_person_by_regid
3,631
LDU_FT/aio-libs/aiomysql/fetchall
LDU_FT
[ "<BEGIN>\n## `terminate`", "Terminate pool.", " Close pool with instantly closing all acquired connections also.\n<END>", "<BEGIN>\n## `release`", "Release free connection back to the connection pool.", " This is **NOT** a coroutine.\n<END>", "<BEGIN>\n## `close`", "Closing a cursor just...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the fetchall API. 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 fetchall API. 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...
Fetch all rows, just like DB-API cursor.fetchall().
"Fetch all rows, just like DB-API cursor.fetchall()."
114
false
aio-libs/aiomysql
fetchall
3,632
LDU_FT/hendrix/hendrix/import_string
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 import_string API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the import_string API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
Import a dotted module path and return the attribute/class designated by the last name in the path. Raise ImportError if the import failed.
"Import a dotted module path and return the attribute/class designated by\n the last name in the path. Raise ImportError if the import failed."
119
false
hendrix/hendrix
import_string
3,633
LDU_FT/gebn/wood/from_path
LDU_FT
[ "<BEGIN>\n## `_normalise_path`", "Ensures a path is parsed.", " :param path: A path string or Path object.\n :return: The path as a Path object.\n<END>", "<BEGIN>\n## `root`", "Retrieve a root directory object from a path.", " :param path: The path string or Path object.\n :return: The created...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the from_path API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the from_path API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
Create an entity from a local path. :param path: The path to the entity, either a file or directory. :return: An entity instance representing the path.
"Create an entity from a local path.\n\n :param path: The path to the entity, either a file or directory.\n :return: An entity instance representing the path."
70
false
gebn/wood
from_path
3,634
LDU_FT/gorakhargosh/pepe/set_up_logging
LDU_FT
[ "<BEGIN>\n## `_evaluate`", "Evaluate the given expression string with the given context.", " .. WARNING:\n This runs eval() on a user string. This is unsafe.\n<END>", "<BEGIN>\n## `preprocess`", "Preprocesses the specified file.", " :param input_filename:\n The input path.\n :param ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_up_logging API. 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 set_up_logging API. 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...
Sets up logging for pepe. :param logger: The logger object to update. :param level: Logging level specified at command line. :param should_be_quiet: Boolean value for the -q option. :return: logging level ``int`` or None
"Sets up logging for pepe.\n\n :param logger:\n The logger object to update.\n :param level:\n Logging level specified at command line.\n :param should_be_quiet:\n Boolean value for the -q option.\n :return:\n logging level ``int`` or None"
49
false
gorakhargosh/pepe
set_up_logging
3,635
LDU_FT/jordanh/neurio-python/__append_url_params
LDU_FT
[ "<BEGIN>\n## `get_token`", "Performs Neurio API token authentication using provided key and secret.", " Note:\n This method is generally not called by hand; rather it is usually\n called as-needed by a Neurio Client object.", " Returns:\n string: the access token\n<END>", "<BEGIN>\n## `...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the __append_url_params API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the __append_url_params API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
Utility method formatting url request parameters.
"Utility method formatting url request parameters."
47
false
jordanh/neurio-python
__append_url_params
3,636
LDU_FT/krischer/mtspec/empty
LDU_FT
[ "<BEGIN>\n## `mtspec`", "Wrapper method for the mtspec subroutine in the library by German A.\n Prieto.", " This method estimates the adaptive weighted multitaper spectrum, as in\n Thomson 1982. This is done by estimating the DPSS (discrete prolate\n spheroidal sequences), multiplying each of the t...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the empty API. 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 empty API. 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...
A wrapper around np.empty which automatically sets the correct type and returns an empty array. :param shape: The shape of the array in np.empty format
"A wrapper around np.empty which automatically sets the correct type\n and returns an empty array.\n\n :param shape: The shape of the array in np.empty format"
98
false
krischer/mtspec
empty
3,637
LDU_FT/robinandeer/puzzle/_add_impact_severity
LDU_FT
[ "<BEGIN>\n## `individual_dict`", "Return a dict with ind_id as key and Individual as values.\n<END>", "<BEGIN>\n## `_get_genes`", "Add the genes for a variant", " Get the hgnc symbols from all transcripts and add them\n to the variant.", " Args:\n variant (dict): A variant ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _add_impact_severity 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_impact_severity 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 the impact severity for the most severe consequence Args: variant_obj (puzzle.models.Variant)
"Add the impact severity for the most severe consequence\n \n Args:\n variant_obj (puzzle.models.Variant)"
306
false
robinandeer/puzzle
_add_impact_severity
3,638
LDU_FT/pythonkc/pythonkc-meetups/get_upcoming_events
LDU_FT
[ "<BEGIN>\n## `parse_event`", "Parse a ``MeetupEvent`` from the given response data.", " Returns\n -------\n A ``pythonkc_meetups.types.MeetupEvent``.\n<END>", "<BEGIN>\n## `parse_venue`", "Parse a ``MeetupVenue`` from the given response data.", " Returns\n -------\n A `pythonkc_meetups.t...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_upcoming_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. T...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_upcoming_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. T...
Get upcoming PythonKC meetup events. Returns ------- List of ``pythonkc_meetups.types.MeetupEvent``, ordered by event time, ascending. Exceptions ---------- * PythonKCMeetupsBadJson * PythonKCMeetupsBadResponse * PythonKCMeetupsMeetupDown ...
"Get upcoming PythonKC meetup events.\n\n Returns\n -------\n List of ``pythonkc_meetups.types.MeetupEvent``, ordered by event time,\n ascending.\n\n Exceptions\n ----------\n * PythonKCMeetupsBadJson\n * PythonKCMeetupsBadResponse\n * PythonKCMeetupsMeetup...
54
false
pythonkc/pythonkc-meetups
get_upcoming_events
3,639
LDU_FT/MAVENSDC/cdflib/_convert_option
LDU_FT
[ "<BEGIN>\n## `encode`", "Encodes the epoch(s) into UTC string(s).", " For CDF_EPOCH:\n The input should be either a float or list of floats\n (in numpy, a np.float64 or a np.ndarray of np.float64)\n Each epoch is encoded, by default to a ISO 8601 form:\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _convert_option API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _convert_option API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
Determines how to convert CDF byte ordering to the system byte ordering.
"Determines how to convert CDF byte ordering to the system\n byte ordering."
229
false
MAVENSDC/cdflib
_convert_option
3,640
LDU_FT/Bystroushaak/pyDHTMLParser/_init_tag
LDU_FT
[ "<BEGIN>\n## `_raw_split`", "Parse HTML from text into array filled with tags end text.", " Source code is little bit unintutive, because it is state machine parser.", " For better understanding, look at http://bit.ly/1rXRcJj", " Example::", " >>> dhtmlparser._raw_split('<html><tag params=...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _init_tag API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _init_tag API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
True constructor, which really initializes the :class:`HTMLElement`. This is the function where all the preprocessing happens. Args: tag (str): HTML tag as string.
"True constructor, which really initializes the :class:`HTMLElement`.\n\n This is the function where all the preprocessing happens.\n\n Args:\n tag (str): HTML tag as string."
147
false
Bystroushaak/pyDHTMLParser
_init_tag
3,641
LDU_FT/Clarify/clarify_python/delete_bundle
LDU_FT
[ "<BEGIN>\n## `process_embed`", "Returns an embed field value based on the parameters.\n<END>", "<BEGIN>\n## `process_embed_override`", "Returns an embed field value based on the parameters.\n<END>", "<BEGIN>\n## `get_embedded_items`", "Given a result_collection (returned by a previous API call that\n r...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the delete_bundle API. 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 delete_bundle API. 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...
Delete a bundle. :param href: the relative href to the bundle. :type href: string, may not be None :return: nothing :raises APIException: If the response code is not 204.
"Delete a bundle.\n\n :param href: the relative href to the bundle.\n :type href: string, may not be None\n :return: nothing\n :raises APIException: If the response code is not 204."
137
false
Clarify/clarify_python
delete_bundle
3,642
LDU_FT/kentwait/nxsim/dump
LDU_FT
[ "<BEGIN>\n## `create_copy_without_data`", "Return a copy of the graph G with all the data removed\n<END>", "<BEGIN>\n## `dump`", "Store an object to file by pickling", " Parameters\n ----------\n stuff : object to be pickled\n filename : path\n verbose : bool\n protocol : 1,2,3 (default = ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the dump API. 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 dump API. 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...
Store an object to file by pickling Parameters ---------- stuff : object to be pickled filename : path verbose : bool protocol : 1,2,3 (default = 3) Protocol used by Pickler, higher number means more recent version of Python is needed to read the pickle produced. Default is prot...
"Store an object to file by pickling\n\n Parameters\n ----------\n stuff : object to be pickled\n filename : path\n verbose : bool\n protocol : 1,2,3 (default = 3)\n Protocol used by Pickler, higher number means more recent version of Python is needed to read the pickle\n produced. Defau...
27
false
kentwait/nxsim
dump
3,643
LDU_FT/econ-ark/HARK/readShocks
LDU_FT
[ "<BEGIN>\n## `calcLogSumChoiceProbs`", "Returns the final optimal value and choice probabilities given the choice\n specific value functions `Vals`. Probabilities are degenerate if sigma == 0.0.\n Parameters\n ----------\n Vals : [numpy.array]\n A numpy.array that holds choice specific values a...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the readShocks API. 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 readShocks API. 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...
A slight modification of AgentType.readShocks that makes sure that MrkvNow is int, not float. Parameters ---------- None Returns ------- None
"A slight modification of AgentType.readShocks that makes sure that MrkvNow is int, not float.\n\n Parameters\n ----------\n None\n\n Returns\n -------\n None"
1,253
true
econ-ark/HARK
readShocks
3,644
LDU_FT/pyecore/pyecore/insert
LDU_FT
[ "<BEGIN>\n## `insert`", "Adds an element at a dedicated position in an OrderedSet.", " This implementation is meant for the OrderedSet from the ordered_set\n package only.\n<END>", "<BEGIN>\n## `pop`", "Removes an element at the tail of the OrderedSet or at a dedicated\n position.", " This imp...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the insert API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the insert API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Adds an element at a dedicated position in an OrderedSet. This implementation is meant for the OrderedSet from the ordered_set package only.
"Adds an element at a dedicated position in an OrderedSet.\n\n This implementation is meant for the OrderedSet from the ordered_set\n package only."
15
false
pyecore/pyecore
insert
3,645
LDU_FT/rosenbrockc/acorn/_do_auto_predict
LDU_FT
[ "<BEGIN>\n## `cascade`", "Restores a sequence of string definitions using the first entry as the\n original and then applying a series of :func:`~acorn.logging.diff.restore`\n calls.", " Args:\n sequence (list): of results returned by\n :func:`~acorn.logging.diff.compress`, except that ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _do_auto_predict API. 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 _do_auto_predict API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Performs an automatic prediction for the specified machine and returns the predicted values.
"Performs an automatic prediction for the specified machine and returns\n the predicted values."
263
false
rosenbrockc/acorn
_do_auto_predict
3,646
LDU_FT/JoshAshby/pyRethinkORM/_grabData
LDU_FT
[ "<BEGIN>\n## `joinOn`", "Performs an eqJoin on with the given model. The resulting join will be\n accessible through the models name.\n<END>", "<BEGIN>\n## `joinOnAs`", "Like `joinOn` but allows setting the joined results name to access it\n from.", " Performs an eqJoin on with the give...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _grabData API. 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 _grabData API. 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...
Tries to find the existing document in the database, if it is found, then the objects _data is set to that document, and this returns `True`, otherwise this will return `False` :param key: The primary key of the object we're looking for :type key: Str :return: True if a documen...
"Tries to find the existing document in the database, if it is found,\n then the objects _data is set to that document, and this returns\n `True`, otherwise this will return `False`\n\n :param key: The primary key of the object we're looking for\n :type key: Str\n\n :return: True if a...
30
false
JoshAshby/pyRethinkORM
_grabData
3,647
LDU_FT/pyoceans/python-ctd/bindata
LDU_FT
[ "<BEGIN>\n## `from_bl`", "Read Seabird bottle-trip (bl) file", " Example\n -------\n >>> from pathlib import Path\n >>> import ctd\n >>> data_path = Path(__file__).parents[1].joinpath(\"tests\", \"data\")\n >>> df = ctd.from_bl(str(data_path.joinpath('bl', 'bottletest.bl')))\n >>> df._metad...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the bindata API. 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 bindata API. 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...
Bin average the index (usually pressure) to a given interval (default delta = 1).
"Bin average the index (usually pressure) to a given interval (default\n delta = 1)."
55
false
pyoceans/python-ctd
bindata
3,648
LDU_FT/erikrose/more-itertools/partitions
LDU_FT
[ "<BEGIN>\n## `first`", "Return the first item of *iterable*, or *default* if *iterable* is\n empty.", " >>> first([0, 1, 2, 3])\n 0\n >>> first([], 'some default')\n 'some default'", " If *default* is not provided and there are no items in the iterable,\n raise ``ValueErro...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the partitions API. 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 partitions API. 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...
Yield all possible partitions of *iterable*. This yields all the ways to split the iterable, starting with the full iterable, all splits into two pieces, all the splits into three pieces, and so on. Order is preserved and repeated elements are treated as distinct. >>> iterable = ['a', 'b', 'c', 'd'] ...
"Yield all possible partitions of *iterable*. This yields all the ways\n to split the iterable, starting with the full iterable, all splits into\n two pieces, all the splits into three pieces, and so on. Order is preserved\n and repeated elements are treated as distinct.\n\n >>> iterable = ['a', 'b', 'c', '...
342
false
erikrose/more-itertools
partitions
3,649
LDU_FT/zyga/guacamole/parse
LDU_FT
[ "<BEGIN>\n## `added`", "Ingredient method called before anything else.", " Here this method just builds the full command tree and stores it inside\n the context as the ``cmd_tree`` attribute. The structure of the tree is\n explained by the :func:`build_cmd_tree()` function.\n<END>", "<BEG...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse API. 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 parse API. 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...
Parse command line arguments. This method relies on ``context.argv`` and ``context.early_parser`` and produces ``context.args``. Note that ``.argv`` is modified by :meth:`preparse()` so it actually has _less_ things in it. The ``context.args`` object is the return value from argparse. ...
"Parse command line arguments.\n\n This method relies on ``context.argv`` and ``context.early_parser``\n and produces ``context.args``. Note that ``.argv`` is modified by\n :meth:`preparse()` so it actually has _less_ things in it.\n\n The ``context.args`` object is the return value from arg...
104
false
zyga/guacamole
parse
3,650
LDU_FT/dottedmag/pychm/GetDWORD
LDU_FT
[ "<BEGIN>\n## `LoadCHM`", "Loads a CHM archive.\n This function will also call GetArchiveInfo to obtain information\n such as the index file name and the topics file. It returns 1 on\n success, and 0 if it fails.\n<END>", "<BEGIN>\n## `CloseCHM`", "Closes the CHM archive.\n This fun...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the GetDWORD API. 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 GetDWORD API. 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...
Internal method. Reads a double word (4 bytes) from a buffer.
"Internal method.\n Reads a double word (4 bytes) from a buffer."
24
false
dottedmag/pychm
GetDWORD
3,651
LDU_FT/dslackw/slpkg/not_downgrade
LDU_FT
[ "<BEGIN>\n## `repos`", "View or enabled or disabled repositories\n<END>", "<BEGIN>\n## `reset`", "Reset slpkg.conf file with default values\n<END>", "<BEGIN>\n## `case_sensitive`", "Create dictionary from list with key in lower case\n and value with default\n<END>", "<BEGIN>\n## `package_name`", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the not_downgrade API. 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 not_downgrade API. 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...
Don't downgrade packages if repository version is lower than installed
"Don't downgrade packages if repository version is lower than\n installed"
168
false
dslackw/slpkg
not_downgrade
3,652
LDU_FT/ShopRunner/apparate/upload
LDU_FT
[ "<BEGIN>\n## `_update_value`", "creates (if needed) and updates the value of the key in the config with a\n value entered by the user", " Parameters\n ----------\n config: ConfigParser object\n existing configuration\n key: string\n key to update\n instruction: string\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the upload API. 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 upload API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
The egg that the provided path points to will be uploaded to Databricks.
"The egg that the provided path points to will be uploaded to Databricks."
44
false
ShopRunner/apparate
upload
3,653
LDU_FT/axialmarket/fsq/host_trigger_pull
LDU_FT
[ "<BEGIN>\n## `barf`", "Exit with a log message (usually a fatal error)\n<END>", "<BEGIN>\n## `done_item`", "Succeed or fail an item based on the return code of a program\n<END>", "<BEGIN>\n## `setenv`", "Set environment, based on item. Usually done in a baby fork\n<END>", "<BEGIN>\n## `shout`", "Log ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the host_trigger_pull API. 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 host_trigger_pull API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Write a non-blocking byte to a host trigger fifo, to cause a triggered scan
"Write a non-blocking byte to a host trigger fifo, to cause a triggered\n scan"
99
false
axialmarket/fsq
host_trigger_pull
3,654
LDU_FT/benoitkugler/abstractDataLibrary/append
LDU_FT
[ "<BEGIN>\n## `recherche`", "abstractSearch in fields of collection and reset rendering.\n Returns number of results.\n If in_all is True, call get_all before doing the search.\n<END>", "<BEGIN>\n## `launch_background_job`", "Launch the callable job in background thread.\n Succes or failur...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the append API. 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 append API. 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 ...
Append acces to list. Quite slow since it checks uniqueness. kwargs may set `info` for this acces.
"Append acces to list. Quite slow since it checks uniqueness.\n kwargs may set `info` for this acces."
131
false
benoitkugler/abstractDataLibrary
append
3,655
LDU_FT/mattja/sdeint/itoEuler
LDU_FT
[ "<BEGIN>\n## `broadcast_to`", "Broadcast an array to a new shape.", " Parameters\n ----------\n array : array_like\n The array to broadcast.\n shape : tuple\n The shape of the desired array.\n subok : bool, optional\n If True, then sub-classes will be passed-through, otherwis...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the itoEuler API. 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 itoEuler API. 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...
Use the Euler-Maruyama algorithm to integrate the Ito equation dy = f(y,t)dt + G(y,t) dW(t) where y is the d-dimensional state vector, f is a vector-valued function, G is an d x m matrix-valued function giving the noise coefficients and dW(t) = (dW_1, dW_2, ... dW_m) is a vector of independent Wiener i...
"Use the Euler-Maruyama algorithm to integrate the Ito equation\n dy = f(y,t)dt + G(y,t) dW(t)\n\n where y is the d-dimensional state vector, f is a vector-valued function,\n G is an d x m matrix-valued function giving the noise coefficients and\n dW(t) = (dW_1, dW_2, ... dW_m) is a vector of independent Wi...
118
false
mattja/sdeint
itoEuler
3,656
LDU_FT/sighingnow/parsec.py/sepBy1
LDU_FT
[ "<BEGIN>\n## `joint`", "Joint two or more parsers, implements the operator of `(+)`.\n<END>", "<BEGIN>\n## `times`", "Repeat a parser between `mint` and `maxt` times. DO AS MUCH MATCH AS IT CAN.\n Return a list of values.\n<END>", "<BEGIN>\n## `optional`", "`Make a parser as optional. If success, retur...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the sepBy1 API. 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 sepBy1 API. 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 ...
`sepBy1(p, sep)` parses one or more occurrences of `p`, separated by `sep`. Returns a list of values returned by `p`.
"`sepBy1(p, sep)` parses one or more occurrences of `p`, separated by\n `sep`. Returns a list of values returned by `p`."
50
false
sighingnow/parsec.py
sepBy1
3,657
LDU_FT/robehickman/simple-http-file-sync/write_dir_tree
LDU_FT
[ "<BEGIN>\n## `lock_access`", "Synchronise access to the user file between processes, this specifies\n which user is allowed write access at the current time\n<END>", "<BEGIN>\n## `can_aquire_user_lock`", "Allow a user to acquire the lock if no other user is currently using it, if the original\n user is ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the write_dir_tree API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the write_dir_tree API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
Recur through dir tree data structure and write it as a set of objects
"Recur through dir tree data structure and write it as a set of objects"
60
false
robehickman/simple-http-file-sync
write_dir_tree
3,658
LDU_FT/TaurusOlson/fntools/use
LDU_FT
[ "<BEGIN>\n## `use_with`", "Apply a function on the attributes of the data", " :param data: an object\n :param fn: a function\n :param attrs: some attributes of the object\n :returns: an object", " Let's create some data first::", " >>> from collections import namedtuple\n >>> Pe...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the use API. 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 use API. 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 the values of the attributes for the given data :param data: the data :param attrs: strings :returns: a list With a dict:: >>> band = {'name': 'Metallica', 'singer': 'James Hetfield', 'guitarist': 'Kirk Hammet'} >>> use(band, ('name', 'date', 'singer')) ['Metallica', No...
"Return the values of the attributes for the given data\n\n :param data: the data\n :param attrs: strings\n :returns: a list\n\n With a dict::\n\n >>> band = {'name': 'Metallica', 'singer': 'James Hetfield', 'guitarist': 'Kirk Hammet'}\n >>> use(band, ('name', 'date', 'singer'))\n ['Met...
134
false
TaurusOlson/fntools
use
3,659
LDU_FT/AnthonyBloomer/daftlistings/set_max_price
LDU_FT
[ "<BEGIN>\n## `set_address`", "Set the address.\n :param address:\n<END>", "<BEGIN>\n## `set_min_lease`", "Set the minimum lease period in months.\n :param min_lease: int\n<END>", "<BEGIN>\n## `set_added_since`", "Set this to retrieve ads that are a given number of days old.\n For exam...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_max_price API. 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_max_price API. 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...
The maximum price. :param max_price: :return:
"The maximum price.\n :param max_price:\n :return:"
96
false
AnthonyBloomer/daftlistings
set_max_price
3,660
LDU_FT/zyga/python-glibc/block
LDU_FT
[ "<BEGIN>\n## `_get_fd`", "Get a descriptor out of a file object.", " :param fileobj:\n An integer (existing descriptor) or any object having the `fileno()`\n method.\n :raises ValueError:\n if the descriptor cannot be obtained or if the descriptor is invalid\n :returns:\n fi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the block API. 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 block API. 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...
Use the masking function (``sigprocmask(2)`` or ``pthread_sigmask(3)``) to block signals. This method uses either ``SIG_SETMASK`` or ``SIG_BLOCK``, depending on how the object was constructed. After this method is called, the subsequent call to :meth:`unblock()` will undo its effects. ...
"Use the masking function (``sigprocmask(2)`` or ``pthread_sigmask(3)``)\n to block signals.\n\n This method uses either ``SIG_SETMASK`` or ``SIG_BLOCK``, depending on\n how the object was constructed. After this method is called, the\n subsequent call to :meth:`unblock()` will undo its effe...
106
false
zyga/python-glibc
block
3,661
LDU_FT/pschmitt/shortmomi/print_vm_info
LDU_FT
[ "<BEGIN>\n## `get_object_by_name`", "Get the vsphere object associated with a given text name\n Source: https://github.com/rreubenur/vmware-pyvmomi-examples/blob/master/create_template.py\n<END>", "<BEGIN>\n## `get_all`", "Get all items of a certain type\n Example: get_all(content, vim.Datastore) return...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the print_vm_info API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the print_vm_info API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
Print information for a particular virtual machine
"Print information for a particular virtual machine"
10
false
pschmitt/shortmomi
print_vm_info
3,662
LDU_FT/b-loyola/itglue-py/filter
LDU_FT
[ "<BEGIN>\n## `set_attributes`", "Set the value of multiple attributes.\n :param attributes_dict dict: a dictionary containing key-value pairs as attribute names and values to be set\n :returns: the resource itself\n<END>", "<BEGIN>\n## `save`", "Either creates a resource or updates it (if it alr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the filter API. 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 filter API. 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 ...
Gets all resources of the given type and parent (if provided) which match the given filters. This will trigger an api GET request. :param parent ResourceBase: the parent of the resource - used for nesting the request url, optional :param **filters: any number of keyword arguments to filter by, e...
"Gets all resources of the given type and parent (if provided) which match the given filters.\n This will trigger an api GET request.\n :param parent ResourceBase: the parent of the resource - used for nesting the request url, optional\n :param **filters: any number of keyword arguments to filter b...
22
false
b-loyola/itglue-py
filter
3,663
LDU_FT/aptivate/django-sortable-listview/get_sort_indicator
LDU_FT
[ "<BEGIN>\n## `get_querystring`", "Clean existing query string (GET parameters) by removing\n arguments that we don't want to preserve (sort parameter, 'page')\n<END>", "<BEGIN>\n## `set_sort`", "Take the sort parameter from the get parameters and split it into\n the field and the prefix\n<END>",...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_sort_indicator API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_sort_indicator 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...
Returns a sort class for the active sort only. That is, if field is not sort_field, then nothing will be returned becaues the sort is not active.
"Returns a sort class for the active sort only. That is, if field is not\n sort_field, then nothing will be returned becaues the sort is not\n active."
10
false
aptivate/django-sortable-listview
get_sort_indicator
3,664
LDU_FT/fmd/lazyconf/data_file
LDU_FT
[ "<BEGIN>\n## `data_file`", "Gets the full path to the file in which to save/load configured data.\n<END>", "<BEGIN>\n## `schema_file`", "Gets the full path to the file in which to load configuration schema.\n<END>", "<BEGIN>\n## `add_ignore`", "Writes a .gitignore file to ignore the generated data file.\n...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the data_file API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the data_file API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
Gets the full path to the file in which to save/load configured data.
"Gets the full path to the file in which to save/load configured data."
25
false
fmd/lazyconf
data_file
3,665
LDU_FT/shaded-enmity/docker-hica/_run_introspection
LDU_FT
[ "<BEGIN>\n## `_run_introspection`", "Figure out which objects are opened by a test binary and are matched by the white list. ", " :param runtime: The binary to run. \n :type runtime: str\n :param whitelist: A list of regular expressions describing acceptable library names\n :type whitelist: [str]\n<...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _run_introspection 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 _run_introspection 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...
Figure out which objects are opened by a test binary and are matched by the white list. :param runtime: The binary to run. :type runtime: str :param whitelist: A list of regular expressions describing acceptable library names :type whitelist: [str]
"Figure out which objects are opened by a test binary and are matched by the white list. \n\n :param runtime: The binary to run. \n :type runtime: str\n :param whitelist: A list of regular expressions describing acceptable library names\n :type whitelist: [str]"
15
false
shaded-enmity/docker-hica
_run_introspection
3,666
LDU_FT/okfn/ofs/read
LDU_FT
[ "<BEGIN>\n## `revert`", "Revert the state to the version stored on disc.\n<END>", "<BEGIN>\n## `sync`", "Synchronise and update the stored state to the in-memory state.\n<END>", "<BEGIN>\n## `del_stream`", "Will fail if the bucket or label don't exist\n<END>", "<BEGIN>\n## `authenticate_request`", "Au...
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 and return up to n bytes. If the argument is omitted, None, or negative, data is read and returned until EOF is reached..
"Read and return up to n bytes.\n If the argument is omitted, None, or negative, data is read and returned until EOF is reached.."
53
false
okfn/ofs
read
3,667
LDU_FT/hardbyte/python-can/_callback
LDU_FT
[ "<BEGIN>\n## `open`", "Opens a CAN connection using `CanalOpen()`.", " :param str configuration: the configuration: \"device_id; baudrate\"\n :param int flags: the flags to be set", " :raises can.CanError: if any error occurred\n :returns: Valid handle for CANAL API functions on su...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _callback API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _callback API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
Is called if a working event occurred. :param int handle: USB-CAN-Handle returned by the function :meth:`init_hardware`. :param int event: Event type. :param int channel: CAN channel (:data:`Channel.CHANNEL_CH0`, :data:`Channel.CHANNEL_CH1` or :data:`Channel.CHANNEL_ANY`). :...
"Is called if a working event occurred.\n\n :param int handle: USB-CAN-Handle returned by the function :meth:`init_hardware`.\n :param int event: Event type.\n :param int channel:\n CAN channel (:data:`Channel.CHANNEL_CH0`, :data:`Channel.CHANNEL_CH1` or :data:`Channel.CHANNEL_ANY`).\n ...
417
false
hardbyte/python-can
_callback
3,668
LDU_FT/glomex/gcdt/get_outputs_for_stack
LDU_FT
[ "<BEGIN>\n## `list_functions`", "List the deployed lambda functions and print configuration.", " :return: exit_code\n<END>", "<BEGIN>\n## `deploy_lambda`", "Create or update a lambda function.", " :param awsclient:\n :param function_name:\n :param role:\n :param handler_filename:\n :para...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_outputs_for_stack 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_outputs_for_stack API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Read environment from ENV and mangle it to a (lower case) representation Note: gcdt.servicediscovery get_outputs_for_stack((awsclient, stack_name) is used in many cloudformation.py templates! :param awsclient: :param stack_name: :return: dictionary containing the stack outputs
"Read environment from ENV and mangle it to a (lower case) representation\n Note: gcdt.servicediscovery get_outputs_for_stack((awsclient, stack_name)\n is used in many cloudformation.py templates!\n\n :param awsclient:\n :param stack_name:\n :return: dictionary containing the stack outputs"
301
false
glomex/gcdt
get_outputs_for_stack
3,669
LDU_FT/signetlabdei/sem/get_missing_simulations
LDU_FT
[ "<BEGIN>\n## `configure_and_build`", "Configure and build the ns-3 code.", " Args:\n show_progress (bool): whether or not to display a progress bar\n during compilation.\n optimized (bool): whether to use an optimized build. If False, use\n a standard ....
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_missing_simulations 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_missing_simulations API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion...
Return a list of the simulations among the required ones that are not available in the database. Args: param_list (list): a list of dictionaries containing all the parameters combinations. runs (int): an integer representing how many repetitions are wanted ...
"Return a list of the simulations among the required ones that are not\n available in the database.\n\n Args:\n param_list (list): a list of dictionaries containing all the\n parameters combinations.\n runs (int): an integer representing how many repetitions are wanted...
148
false
signetlabdei/sem
get_missing_simulations
3,670
LDU_FT/spotify/docker_interface/get_user_group
LDU_FT
[ "<BEGIN>\n## `abspath`", "Create an absolute path.", " Parameters\n ----------\n path : str\n absolute or relative path with respect to `ref`\n ref : str or None\n reference path if `path` is relative", " Returns\n -------\n path : str\n absolute path", " Raises\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_user_group API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_user_group API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
Get the user and group information. Parameters ---------- user : str User name or user id (default is the `os.getuid()`). group : str Group name or group id (default is the group of `user`). Returns ------- user : pwd.struct_passwd ...
"Get the user and group information.\n\n Parameters\n ----------\n user : str\n User name or user id (default is the `os.getuid()`).\n group : str\n Group name or group id (default is the group of `user`).\n\n Returns\n -------\n user : pwd.struct_p...
82
false
spotify/docker_interface
get_user_group
3,671
LDU_FT/EventTeam/beliefs/to_dotfile
LDU_FT
[ "<BEGIN>\n## `size`", "Size of LazyCell: the size of the intension plus accounting for\n excluded and included additions.", " The exclusions are assumed to be part of the set\n The inclusions are assumed to NOT be part of the intension\n<END>", "<BEGIN>\n## `update`", "Updates intensio...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the to_dotfile API. 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 to_dotfile API. 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...
Writes a DOT graphviz file of the domain structure, and returns the filename
"Writes a DOT graphviz file of the domain structure, and returns the filename"
158
false
EventTeam/beliefs
to_dotfile
3,672