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/baguette-io/baguette-messaging/database
LDU_FT
[ "<BEGIN>\n## `to_json`", "Convert a model into a json using the playhouse shortcut.\n<END>", "<BEGIN>\n## `run`", "Consume the event stream.\n :param timeout: Duration of the connection timeout.\n :type timeout: int\n :param limit: Number of events to consume.\n :type limit: int\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the database API. 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 database API. 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...
Before the callback is called, initialize the database if needed. :rtype: None
"Before the callback is called, initialize the database if needed.\n :rtype: None"
44
false
baguette-io/baguette-messaging
database
9,773
LDU_FT/data61/clkhash/validate_row_lengths
LDU_FT
[ "<BEGIN>\n## `convert_v1_to_v2`", "Convert v1 schema dict to v2 schema dict.\n :param dict: v1 schema dict\n :return: v2 schema dict\n<END>", "<BEGIN>\n## `from_json_dict`", "Create a Schema for v1 or v2 according to dct", " :param dct: This dictionary must have a `'features'`\n key spec...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the validate_row_lengths 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 validate_row_lengths API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Validate the `data` row lengths according to the specification in `fields`. :param fields: The `FieldSpec` objects forming the specification. :param data: The rows to check. :raises FormatError: When the number of entries in a row does not match expectation.
"Validate the `data` row lengths according to the specification\n in `fields`.\n\n :param fields: The `FieldSpec` objects forming the\n specification.\n :param data: The rows to check.\n :raises FormatError: When the number of entries in a row does\n not match expectati...
212
false
data61/clkhash
validate_row_lengths
9,774
LDU_FT/bioidiap/gridtk/format
LDU_FT
[ "<BEGIN>\n## `submit`", "Submits a job that will be executed on the local machine during a call to \"run\".\n All kwargs will simply be ignored.\n<END>", "<BEGIN>\n## `stop_jobs`", "Resets the status of the job to 'submitted' when they are labeled as 'executing'.\n<END>", "<BEGIN>\n## `stop_job`", "Res...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the format API. 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 format API. 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 ...
Formats the current job into a nicer string to fit into a table.
"Formats the current job into a nicer string to fit into a table."
163
false
bioidiap/gridtk
format
9,775
LDU_FT/scivision/histutils/getNeoParam
LDU_FT
[ "<BEGIN>\n## `cp_parents`", "This function requires Python >= 3.6.", " This acts like bash cp --parents in Python\n inspiration from\n http://stackoverflow.com/questions/15329223/copy-a-file-into-a-directory-with-its-original-leading-directories-appended", " example\n source: /tmp/e/f\n dest...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the getNeoParam API. 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 getNeoParam API. 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...
assumption is that this is a Neo sCMOS FITS/TIFF file, where Solis chooses to break up the recordings into smaller files. Verify if this timing estimate makes sense for your application! I did not want to do regexp on the filename or USERTXT1 as I felt this too prone to error. inputs: ------- cmosi...
"assumption is that this is a Neo sCMOS FITS/TIFF file, where Solis chooses to break up the recordings\n into smaller files. Verify if this timing estimate makes sense for your application!\n I did not want to do regexp on the filename or USERTXT1 as I felt this too prone to error.\n\n inputs:\n -------\n ...
58
false
scivision/histutils
getNeoParam
9,776
LDU_FT/MoseleyBioinformaticsLab/ctfile/add_data
LDU_FT
[ "<BEGIN>\n## `tokenizer`", "A lexical analyzer for the `CTfile` formatted files.", " :param str text: `CTfile` formatted text.\n :return: Tuples of data.\n :rtype: py:class:`~collections.namedtuple`\n<END>", "<BEGIN>\n## `_molfile`", "Process ``Molfile``.", " :param stream: Queue containing li...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_data API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_data API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
Add new data item. :param str id: Entry id within ``SDfile``. :param str key: Data item key. :param str value: Data item value. :return: None. :rtype: :py:obj:`None`.
"Add new data item.\n\n :param str id: Entry id within ``SDfile``.\n :param str key: Data item key.\n :param str value: Data item value.\n :return: None.\n :rtype: :py:obj:`None`."
93
false
MoseleyBioinformaticsLab/ctfile
add_data
9,777
LDU_FT/JasonKessler/scattertext/get_feats
LDU_FT
[ "<BEGIN>\n## `coarse_tag_str`", "Convert POS sequence to our coarse system, formatted as a string.\n<END>", "<BEGIN>\n## `extract_finditer`", "The \"GreedyFSA\" method in Handler et al. 2016.\n\tReturns token position spans of valid ngrams.\n<END>", "<BEGIN>\n## `extract_ngram_filter`", "The \"FilterFSA\"...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_feats API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_feats API. 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...
Parameters ---------- doc, Spacy Doc Returns ------- Counter noun chunk -> count
"Parameters\n\t\t----------\n\t\tdoc, Spacy Doc\n\n\t\tReturns\n\t\t-------\n\t\tCounter noun chunk -> count"
419
false
JasonKessler/scattertext
get_feats
9,778
LDU_FT/matthewgilbert/mapping/reindex
LDU_FT
[ "<BEGIN>\n## `plot_composition`", "Plot time series of generics and label underlying instruments which\n these series are composed of.", " Parameters:\n -----------\n df: pd.DataFrame\n DataFrame of time series to be plotted. Each column is a generic time\n series.\n intervals: pd.D...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the reindex API. 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 reindex API. 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...
Reindex a pd.Series of prices such that when instrument level returns are calculated they are compatible with a pd.MultiIndex of instrument weights in calc_rets(). This amount to reindexing the series by an augmented version of index which includes the preceding date for the first appearance of each ins...
"Reindex a pd.Series of prices such that when instrument level returns are\n calculated they are compatible with a pd.MultiIndex of instrument weights\n in calc_rets(). This amount to reindexing the series by an augmented\n version of index which includes the preceding date for the first appearance\n of eac...
92
false
matthewgilbert/mapping
reindex
9,779
LDU_FT/rkargon/pixelsorter/vertical_path
LDU_FT
[ "<BEGIN>\n## `hue`", "Returns the saturation of a pixel.\n Gray pixels have saturation 0.\n :param p: A tuple of (R,G,B) values\n :return: A saturation value between 0 and 360\n<END>", "<BEGIN>\n## `saturation`", "Returns the saturation of a pixel, defined as the ratio of chroma to value.\n :param...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the vertical_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 ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the vertical_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 ext...
Creates a generator for progressing vertically through an image. :param size: A tuple (width, height) of the image size :return: A generator that yields a set of columns through the image. Each column is a generator that yields pixel coordinates.
"Creates a generator for progressing vertically through an image.\n :param size: A tuple (width, height) of the image size\n :return: A generator that yields a set of columns through the image.\n Each column is a generator that yields pixel coordinates."
79
false
rkargon/pixelsorter
vertical_path
9,780
LDU_FT/datacratic/pymldb/_unary_arithmetic
LDU_FT
[ "<BEGIN>\n## `query`", "Shortcut for GET /v1/query, except with argument format='dataframe'\n (the default), in which case it will simply wrap the result of the GET\n query to /v1/query (with format='table') in a `pandas.DataFrame`.\n<END>", "<BEGIN>\n## `put_and_track`", "Put and track progress...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _unary_arithmetic API. 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 _unary_arithmetic API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Parameters ---------- unary: char Unary arithmetic operator (-, +) to be applied to this column Returns ------- self Notes ----- Returning self will allow the next object to use this column ops and concatenate something else
"Parameters\n ----------\n unary: char\n Unary arithmetic operator (-, +) to be applied to this column\n\n Returns\n -------\n self\n\n Notes\n -----\n Returning self will allow the next object to use this column ops and\n concatenate something e...
20
false
datacratic/pymldb
_unary_arithmetic
9,781
LDU_FT/CitrineInformatics/pypif-sdk/_create_compositional_array_
LDU_FT
[ "<BEGIN>\n## `replace_by_key`", "Replace values that match a key", " Deeply traverses the pif object, looking for `key` and\n replacing values in accordance with `subs`. If `new_key`\n is set, the replaced values are assigned to that key. If\n `remove` is `True`, the old `key` pairs are removed.\n...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _create_compositional_array_ API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its concl...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _create_compositional_array_ API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its concl...
Splits an expanded chemical formula string into an array of dictionaries containing information about each element :param expanded_chemical_formaula_string: a clean (not necessarily emperical, but without any special characters) chemical formula string, as returned by _expand_formula_() :return: an array of di...
"Splits an expanded chemical formula string into an array of dictionaries containing information about each element\n\n :param expanded_chemical_formaula_string: a clean (not necessarily emperical, but without any special characters) chemical formula string, as returned by _expand_formula_()\n :return: an array o...
61
false
CitrineInformatics/pypif-sdk
_create_compositional_array_
9,782
LDU_FT/etal/biocma/_parse_sequences
LDU_FT
[ "<BEGIN>\n## `maybe_open`", "Take a file name or a handle, and return a handle.", " Simplifies creating functions that automagically accept either a file name\n or an already opened file handle.\n<END>", "<BEGIN>\n## `from_block`", "Instantiate this class given a raw block (see parse_raw).\n<END>", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _parse_sequences API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _parse_sequences API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Parse the sequences in the current block. Sequence looks like: $3=227(209): >gi|15606894|ref|NP_214275.1| {|2(244)|<Aquificae(B)>}DNA polymerase III gamma subunit [Aquifex aeolicus VF5] >gi|2984127|gb|AAC07663.1| DNA polymerase III gamma subunit [Aquifex aeolicus VF5] >gi|75 {()YVPFARKYRPKFFREVIGQEAP...
"Parse the sequences in the current block.\n\n Sequence looks like:\n\n $3=227(209):\n >gi|15606894|ref|NP_214275.1| {|2(244)|<Aquificae(B)>}DNA polymerase III gamma subunit [Aquifex aeolicus VF5] >gi|2984127|gb|AAC07663.1| DNA polymerase III gamma subunit [Aquifex aeolicus VF5] >gi|75\n {()YVPFARKYRPKFFRE...
74
false
etal/biocma
_parse_sequences
9,783
LDU_FT/cohorte/cohorte-herald/run_spy
LDU_FT
[ "<BEGIN>\n## `main`", "Runs the framework", " :param http_port: HTTP port to listen to\n :param peer_name: Name of the peer\n :param node_name: Name (also, UID) of the node hosting the peer\n :param app_id: Application ID\n<END>", "<BEGIN>\n## `_get_link`", "Returns a link to the given peer", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the run_spy API. 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 run_spy API. 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...
Runs the multicast spy :param group: Multicast group :param port: Multicast port :param verbose: If True, prints more details
"Runs the multicast spy\n\n :param group: Multicast group\n :param port: Multicast port\n :param verbose: If True, prints more details"
110
false
cohorte/cohorte-herald
run_spy
9,784
LDU_FT/DistrictDataLabs/yellowbrick/dataset_exists
LDU_FT
[ "<BEGIN>\n## `download`", "Download the dataset from the hosted Yellowbrick data store and save\n it to the location specified by ``get_data_home``. The downloader\n verifies the download completed successfully and safely by comparing\n the expected signature with the SHA 256 signature of the...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the dataset_exists API. 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 dataset_exists API. 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...
Checks to see if a directory with the name of the specified dataset exists in the data home directory, found with ``get_data_home``. Parameters ---------- dataset : str The name of the dataset; should either be a folder in data home or specified in the yellowbrick.datasets.DATASETS vari...
"Checks to see if a directory with the name of the specified dataset exists\n in the data home directory, found with ``get_data_home``.\n\n Parameters\n ----------\n dataset : str\n The name of the dataset; should either be a folder in data home or\n specified in the yellowbrick.datasets.DATAS...
1,283
true
DistrictDataLabs/yellowbrick
dataset_exists
9,785
LDU_FT/m32/endesive/dashed_line
LDU_FT
[ "<BEGIN>\n## `load_elements`", "Initialize the internal element structures\n<END>", "<BEGIN>\n## `parse_csv`", "Parse template format csv file and create elements dict\n<END>", "<BEGIN>\n## `split_multicell`", "Divide (\\n) a string using a given element width\n<END>", "<BEGIN>\n## `set_auto_page_break`...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the dashed_line API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the dashed_line API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
Draw a dashed line. Same interface as line() except: - dash_length: Length of the dash - space_length: Length of the space between dashes
"Draw a dashed line. Same interface as line() except:\n - dash_length: Length of the dash\n - space_length: Length of the space between dashes"
23
false
m32/endesive
dashed_line
9,786
LDU_FT/ambitioninc/django-entity/sync_entities
LDU_FT
[ "<BEGIN>\n## `remove_duplicates`", "Remove any duplicates from the entity relationship table\n :param apps:\n :param schema_editor:\n :return:\n<END>", "<BEGIN>\n## `transaction_atomic_with_retry`", "This is a decorator that will wrap the decorated method in an atomic transaction and\n retry the t...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the sync_entities API. 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 sync_entities API. 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...
Syncs entities Args: model_objs (List[Model]): The model objects to sync. If empty, all entities will be synced
"Syncs entities\n\n Args:\n model_objs (List[Model]): The model objects to sync. If empty, all entities will be synced"
83
false
ambitioninc/django-entity
sync_entities
9,787
LDU_FT/stephen-bunn/file-config/dumps
LDU_FT
[ "<BEGIN>\n## `on_yaml_imported`", "The `pyyaml <https://pypi.org/project/pyyaml/>`_ import hook.", " :param module yaml: The ``yaml`` module\n<END>", "<BEGIN>\n## `on_yaml_dumps`", "The `pyyaml <https://pypi.org/project/pyyaml/>`_ dumps method.", " :param module yaml: The ``yaml`` module\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the dumps API. 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 dumps API. 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...
An abstract dumps method which dumps an instance into the subclasses format. :param class config: The config class of the instance :param object instance: The instance to dump :param str prefer: The preferred serialization module name :raises ValueError: If dump handler does not provide...
"An abstract dumps method which dumps an instance into the subclasses format.\n\n :param class config: The config class of the instance\n :param object instance: The instance to dump\n :param str prefer: The preferred serialization module name\n :raises ValueError: If dump handler does not p...
215
false
stephen-bunn/file-config
dumps
9,788
LDU_FT/TC01/calcpkg/write
LDU_FT
[ "<BEGIN>\n## `structureOutput`", "Formats the output of a list of packages\n<END>", "<BEGIN>\n## `count`", "Counts the number of ticalc.org files containing some search term, doesn't return them\n<END>", "<BEGIN>\n## `searchHierarchy`", "Core function to search directory structure for child files and fold...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the write API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the write API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
The write method for a CalcpkgOutput object- print the string
"The write method for a CalcpkgOutput object- print the string"
62
false
TC01/calcpkg
write
9,789
LDU_FT/Stranger6667/postmarker/bounces
LDU_FT
[ "<BEGIN>\n## `create`", "Creates a template.", " :param Name: Name of template\n :param Subject: The content to use for the Subject when this template is used to send email.\n :param HtmlBody: The content to use for the HtmlBody when this template is used to send email.\n :param Text...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the bounces API. 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 bounces API. 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 total counts of emails you’ve sent out that have been returned as bounced.
"Gets total counts of emails you’ve sent out that have been returned as bounced."
74
false
Stranger6667/postmarker
bounces
9,790
LDU_FT/array-split/array_split/set_split_extents_by_tile_shape
LDU_FT
[ "<BEGIN>\n## `read_readme`", "Reads part of the README.rst for use as long_description in setup().\n<END>", "<BEGIN>\n## `pad_with_object`", "Returns :samp:`sequence` :obj:`list` end-padded with :samp:`{obj}`\n elements so that the length of the returned list equals :samp:`{new_length}`.", " :type seq...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_split_extents_by_tile_shape API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its co...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_split_extents_by_tile_shape API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its co...
Sets split shape :attr:`split_shape` and split extents (:attr:`split_begs` and :attr:`split_ends`) from value of :attr:`tile_shape`.
"Sets split shape :attr:`split_shape` and\n split extents (:attr:`split_begs` and :attr:`split_ends`)\n from value of :attr:`tile_shape`."
67
false
array-split/array_split
set_split_extents_by_tile_shape
9,791
LDU_FT/byt3bl33d3r/CrackMapExec/create_ps_command
LDU_FT
[ "<BEGIN>\n## `add_computer`", "Check if this host has already been added to the database, if not add it in.\n<END>", "<BEGIN>\n## `remove_credentials`", "Removes a credential ID from the database\n<END>", "<BEGIN>\n## `options`", "SERVER IP of the SMB server\n NAME LNK file name\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_ps_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...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_ps_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...
if is_powershell_installed(): temp = tempfile.NamedTemporaryFile(prefix='cme_', suffix='.ps1', dir='/tmp') temp.write(command) temp.read() encoding_types = [1,2,3,4,5,6] while True: ...
"if is_powershell_installed():\n\n temp = tempfile.NamedTemporaryFile(prefix='cme_',\n suffix='.ps1',\n dir='/tmp')\n temp.write(command)\n temp.read()\n\n encoding_types = [1,2,3,4,5,6]\n while True:\...
77
false
byt3bl33d3r/CrackMapExec
create_ps_command
9,792
LDU_FT/xgvargas/smartside/setAsApplication
LDU_FT
[ "<BEGIN>\n## `setAsApplication`", "Tells Windows this is an independent application with an unique icon on task bar.", " id is an unique string to identify this application, like: 'mycompany.myproduct.subproduct.version'\n<END>", "<BEGIN>\n## `getBestTranslation`", "Find inside basedir the best translati...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the setAsApplication API. 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 setAsApplication API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Tells Windows this is an independent application with an unique icon on task bar. id is an unique string to identify this application, like: 'mycompany.myproduct.subproduct.version'
"Tells Windows this is an independent application with an unique icon on task bar.\n\n id is an unique string to identify this application, like: 'mycompany.myproduct.subproduct.version'"
28
false
xgvargas/smartside
setAsApplication
9,793
LDU_FT/altair-viz/pdvega/exec_then_eval
LDU_FT
[ "<BEGIN>\n## `infer_vegalite_type`", "From an array-like input, infer the correct vega typecode\n ('ordinal', 'nominal', 'quantitative', or 'temporal')", " Parameters\n ----------\n data: Numpy array or Pandas Series\n data for which the type will be inferred\n ordinal_threshold: integer (...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the exec_then_eval API. 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 exec_then_eval API. 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...
Exec a code block & return evaluation of the last line
"Exec a code block & return evaluation of the last line"
48
false
altair-viz/pdvega
exec_then_eval
9,794
LDU_FT/tasdikrahman/vocabulary/__parse_content
LDU_FT
[ "<BEGIN>\n## `__return_json`", "Returns JSON data which is returned by querying the API service\n Called by\n - meaning()\n - synonym()", " :param url: the complete formatted url which is then queried using requests\n :returns: json content being fed by the API\n<END>", "<...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the __parse_content API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the __parse_content API. 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...
parses the passed "tuc_content" for - meanings - synonym received by querying the glosbe API Called by - meaning() - synonym() :param tuc_content: passed on the calling Function. A list object :param content_to_be_parsed: data to be parsed from. Whet...
"parses the passed \"tuc_content\" for\n - meanings\n - synonym\n received by querying the glosbe API\n\n Called by\n - meaning()\n - synonym()\n\n :param tuc_content: passed on the calling Function. A list object\n :param content_to_be_parsed: data to be pars...
38
false
tasdikrahman/vocabulary
__parse_content
9,795
LDU_FT/scott-maddox/openbandparams/GaP_Eg_Gamma
LDU_FT
[ "<BEGIN>\n## `GaP_Eg_Gamma`", "Returns the Gamma-valley bandgap, Eg_Gamma, in electron Volts at a\n given temperature, T, in Kelvin (default: 300 K).", " GaP has a unique Gamma-gap temperature dependence.\n<END>", "<BEGIN>\n## `_has_x`", "Returns True if x is explicitly defined in kwargs\n<END>", "<...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the GaP_Eg_Gamma API. 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 GaP_Eg_Gamma API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
Returns the Gamma-valley bandgap, Eg_Gamma, in electron Volts at a given temperature, T, in Kelvin (default: 300 K). GaP has a unique Gamma-gap temperature dependence.
"Returns the Gamma-valley bandgap, Eg_Gamma, in electron Volts at a\n given temperature, T, in Kelvin (default: 300 K).\n\n GaP has a unique Gamma-gap temperature dependence."
68
false
scott-maddox/openbandparams
GaP_Eg_Gamma
9,796
LDU_FT/szastupov/aiotg/run_webhook
LDU_FT
[ "<BEGIN>\n## `loop`", "Return bot's main loop as coroutine. Use with asyncio.", " :Example:", " >>> loop = asyncio.get_event_loop()\n >>> loop.run_until_complete(bot.loop())", " or", " >>> loop = asyncio.get_event_loop()\n >>> loop.create_task(bot.loop())\n<END>",...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the run_webhook API. 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 run_webhook API. 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...
Convenience method for running bots in webhook mode :Example: >>> if __name__ == '__main__': >>> bot.run_webhook(webhook_url="https://yourserver.com/webhooktoken") Additional documentation on https://core.telegram.org/bots/api#setwebhook
"Convenience method for running bots in webhook mode\n\n :Example:\n\n >>> if __name__ == '__main__':\n >>> bot.run_webhook(webhook_url=\"https://yourserver.com/webhooktoken\")\n\n Additional documentation on https://core.telegram.org/bots/api#setwebhook"
134
false
szastupov/aiotg
run_webhook
9,797
LDU_FT/jaysonsantos/python-binary-memcached/authenticate
LDU_FT
[ "<BEGIN>\n## `str_to_bytes`", "Simply convert a string type to bytes if the value is a string\n and is an instance of six.string_types but not of six.binary_type\n in python2 struct.pack(\"<Q\") is both string_types and binary_type but\n in python3 struct.pack(\"<Q\") is binary_type but not a string_type...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the authenticate API. 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 authenticate API. 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...
Authenticate user on server. :param username: Username used to be authenticated. :type username: six.string_types :param password: Password used to be authenticated. :type password: six.string_types :return: True if successful. :raises: InvalidCredentials, Authentication...
"Authenticate user on server.\n\n :param username: Username used to be authenticated.\n :type username: six.string_types\n :param password: Password used to be authenticated.\n :type password: six.string_types\n :return: True if successful.\n :raises: InvalidCredentials, Authen...
132
false
jaysonsantos/python-binary-memcached
authenticate
9,798
LDU_FT/buildbot/buildbot/_determineVolumeSize
LDU_FT
[ "<BEGIN>\n## `parse`", "Parse messages sent by the 'buildbot-cvs-mail' program.\n<END>", "<BEGIN>\n## `parse`", "Parse messages sent by the svn 'commit-email.pl' trigger.\n<END>", "<BEGIN>\n## `parse`", "Parse branch notification messages sent by Launchpad.\n<END>", "<BEGIN>\n## `remote_write`", "Call...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _determineVolumeSize 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 _determineVolumeSize API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Determine the minimum size the volume needs to be for the source. Returns the size in GiB.
"Determine the minimum size the volume needs to be for the source.\n Returns the size in GiB."
518
false
buildbot/buildbot
_determineVolumeSize
9,799
LDU_FT/zsethna/OLGA/load_and_process_igor_model
LDU_FT
[ "<BEGIN>\n## `nt2aa`", "Translate a nucleotide sequence into an amino acid sequence.", " Parameters\n ----------\n ntseq : str\n Nucleotide sequence composed of A, C, G, or T (uppercase or lowercase)", " Returns\n -------\n aaseq : str\n Amino acid sequence", " Example\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load_and_process_igor_model API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclu...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load_and_process_igor_model API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclu...
Set attributes by reading a generative model from IGoR marginal file. Sets attributes PVJ, PdelV_given_V, PdelJ_given_J, PinsVJ, and Rvj. Parameters ---------- marginals_file_name : str File name for a IGoR model marginals file.
"Set attributes by reading a generative model from IGoR marginal file.\n \n Sets attributes PVJ, PdelV_given_V, PdelJ_given_J, PinsVJ, and Rvj.\n \n Parameters\n ----------\n marginals_file_name : str\n File name for a IGoR model marginals file."
287
false
zsethna/OLGA
load_and_process_igor_model
9,800
LDU_FT/mikedh/trimesh/voxelize_ray
LDU_FT
[ "<BEGIN>\n## `face_adjacency`", "Returns an (n,2) list of face indices.\n Each pair of faces in the list shares an edge, making them adjacent.", " Parameters\n ----------\n faces : (n, 3) int, or None\n List of vertex indices representing triangles\n mesh : Trimesh object\n If passe...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the voxelize_ray API. 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 voxelize_ray API. 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...
Voxelize a mesh using ray queries. Parameters ------------- mesh : Trimesh object Mesh to be voxelized pitch : float Length of voxel cube per_cell : (2,) int How many ray queries to make per cell Returns ------------- voxels : (...
"Voxelize a mesh using ray queries.\n\n Parameters\n -------------\n mesh : Trimesh object\n Mesh to be voxelized\n pitch : float\n Length of voxel cube\n per_cell : (2,) int\n How many ray queries to make per cell\n\n Returns\n -------------\n...
2,650
true
mikedh/trimesh
voxelize_ray
9,801
LDU_FT/acutesoftware/virtual-AI-simulator/display_map
LDU_FT
[ "<BEGIN>\n## `calc_basics`", "calculate various aspects of the structure\n<END>", "<BEGIN>\n## `bld_rafter_deflection`", "calculate rafter deflections - see test_calc_building_design.py for \n Sample values for equations below from Structures II course\n<END>", "<BEGIN>\n## `main`", "Prototype to see h...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the display_map API. 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 display_map API. 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...
view a text file (map) in high resolution
"view a text file (map) in high resolution"
86
false
acutesoftware/virtual-AI-simulator
display_map
9,802
LDU_FT/gebn/nibble/main
LDU_FT
[ "<BEGIN>\n## `_read_file`", "Read the contents of a file.", " :param name: The name of the file in the current directory.\n :param encoding: The encoding of the file; defaults to utf-8.\n :return: The contents of the file.\n<END>", "<BEGIN>\n## `_parse_args`", "Interpret command line arguments.", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the main API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the main API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
Nibble's entry point. :param args: Command-line arguments, with the program in position 0.
"Nibble's entry point.\n\n :param args: Command-line arguments, with the program in position 0."
45
false
gebn/nibble
main
9,803
LDU_FT/NORDUnet/python-norduniclient/get_nodes_by_value
LDU_FT
[ "<BEGIN>\n## `get_db_driver`", ":param uri: Bolt uri\n :type uri: str\n :param username: Neo4j username\n :type username: str\n :param password: Neo4j password\n :type password: str\n :param encrypted: Use TLS\n :type encrypted: Boolean\n :param max_pool_size: Maximum number of idle sessio...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_nodes_by_value API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_nodes_by_value API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
Traverses all nodes or nodes of specified label and compares the property/properties of the node with the supplied string. :param manager: Neo4jDBSessionManager :param value: Value to search for :param prop: Which property to look for value in :param node_type: :type value: str|list|bool|int ...
"Traverses all nodes or nodes of specified label and compares the property/properties of the node\n with the supplied string.\n\n :param manager: Neo4jDBSessionManager\n :param value: Value to search for\n :param prop: Which property to look for value in\n :param node_type:\n\n :type value: str|list|b...
71
false
NORDUnet/python-norduniclient
get_nodes_by_value
9,804
LDU_FT/nathankw/pulsarpy/find_by_or
LDU_FT
[ "<BEGIN>\n## `get_record_by_name`", "Searches for a single document in the given index on the 'name' field .\n Performs a case-insensitive search by utilizing Elasticsearch's `match_phrase` query.", " Args:\n index: `str`. The name of an Elasticsearch index (i.e. biosamples).\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_by_or API. 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 find_by_or API. 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...
Searches the model in question by OR joining the query parameters. Implements a Railsy way of looking for a record using a method by the same name and passing in the query as a string (for the OR operator joining to be specified). Only the first hit is returned, and there is not particular ord...
"Searches the model in question by OR joining the query parameters.\n\n Implements a Railsy way of looking for a record using a method by the same name and passing\n in the query as a string (for the OR operator joining to be specified).\n\n Only the first hit is returned, and there is not particul...
92
false
nathankw/pulsarpy
find_by_or
9,805
LDU_FT/asmodehn/filefinder2/find_spec
LDU_FT
[ "<BEGIN>\n## `strip_encoding_cookie`", "Generator to pull lines from a text-mode file, skipping the encoding\n cookie if it is found in the first two lines.\n<END>", "<BEGIN>\n## `source_to_unicode`", "Converts a bytes string with python source code to unicode.\n Unicode strings are passed through uncha...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_spec API. 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 find_spec API. 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...
Try to find a spec for the specified module. Returns the matching spec, or None if not found.
"Try to find a spec for the specified module. Returns the\n matching spec, or None if not found."
64
false
asmodehn/filefinder2
find_spec
9,806
LDU_FT/apacha/OMR-Datasets/extract_and_render_all_symbol_masks
LDU_FT
[ "<BEGIN>\n## `move_images`", "Moves png-files one directory up from path/image/*.png -> path/*.png\n<END>", "<BEGIN>\n## `create_images`", "Creates a visual representation of the Homus Dataset by parsing all text-files and the symbols as specified\n by the parameters by drawing lines that connect the p...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the extract_and_render_all_symbol_masks API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates it...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the extract_and_render_all_symbol_masks API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates it...
Extracts all symbols from the raw XML documents and generates individual symbols from the masks :param raw_data_directory: The directory, that contains the xml-files and matching images :param destination_directory: The directory, in which the symbols should be generated into. One sub-folder per ...
"Extracts all symbols from the raw XML documents and generates individual symbols from the masks\n\n :param raw_data_directory: The directory, that contains the xml-files and matching images\n :param destination_directory: The directory, in which the symbols should be generated into. One sub-folder per\n ...
53
false
apacha/OMR-Datasets
extract_and_render_all_symbol_masks
9,807
LDU_FT/datalib/StatsCounter/median_grouped
LDU_FT
[ "<BEGIN>\n## `_sum`", "_sum(data [, start]) -> value\n Return a high-precision sum of the given numeric data. If optional\n argument ``start`` is given, it is added to the total. If ``data`` is\n empty, ``start`` (defaulting to 0) is returned.\n Examples\n --------\n >>> _sum([3, 2.25, 4.5, -0.5...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the median_grouped API. 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 median_grouped API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
Return the 50th percentile (median) of grouped continuous data. >>> median_grouped([1, 2, 2, 3, 4, 4, 4, 4, 4, 5]) 3.7 >>> median_grouped([52, 52, 53, 54]) 52.5 This calculates the median as the 50th percentile, and should be used when your data is continuous and grouped. In the above example,...
"Return the 50th percentile (median) of grouped continuous data.\n\n >>> median_grouped([1, 2, 2, 3, 4, 4, 4, 4, 4, 5])\n 3.7\n >>> median_grouped([52, 52, 53, 54])\n 52.5\n\n This calculates the median as the 50th percentile, and should be\n used when your data is continuous and grouped. In the above...
31
false
datalib/StatsCounter
median_grouped
9,808
LDU_FT/baguette-io/baguette-messaging/send
LDU_FT
[ "<BEGIN>\n## `to_json`", "Convert a model into a json using the playhouse shortcut.\n<END>", "<BEGIN>\n## `run`", "Consume the event stream.\n :param timeout: Duration of the connection timeout.\n :type timeout: int\n :param limit: Number of events to consume.\n :type limit: int\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the send API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the send API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
Send the the `message` to the broker. :param message: The message to send. Its type depends on the serializer used. :type message: object :rtype: None
"Send the the `message` to the broker.\n\n :param message: The message to send. Its type depends on the serializer used.\n :type message: object\n :rtype: None"
44
false
baguette-io/baguette-messaging
send
9,809
LDU_FT/pyokagan/pyglreg/get_apis
LDU_FT
[ "<BEGIN>\n## `import_type`", "Import Type `name` and its dependencies from Registry `src`\n to Registry `dest`.", " :param Registry dest: Destination Registry\n :param Registry src: Source Registry\n :param str name: Name of type to import\n :param str api: Prefer to import Types with api Name `a...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_apis API. 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_apis API. 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...
Returns set of api names referenced in this Extension :return: set of api name strings
"Returns set of api names referenced in this Extension\n\n :return: set of api name strings"
84
false
pyokagan/pyglreg
get_apis
9,810
LDU_FT/fabric-bolt/fabric-bolt/get_queryset_configurations
LDU_FT
[ "<BEGIN>\n## `form_valid`", "After the form is valid lets let people know\n<END>", "<BEGIN>\n## `form_valid`", "First call the parent's form valid then let the user know it worked.\n<END>", "<BEGIN>\n## `post`", "Create the SSH file & then return the normal get method...\n<END>", "<BEGIN>\n## `web_hooks...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_queryset_configurations API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclu...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_queryset_configurations API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclu...
Really we just want to do a simple SQL statement like this (but oh the ORM): SELECT Distinct(Coalesce(stage.key, project.key)) AS key, (CASE WHEN stage.key IS NOT null THEN stage.data_type ELSE project.data_type END) AS data_type, (CASE WHEN stage.key IS NOT null THEN stage.value ELSE project.v...
"Really we just want to do a simple SQL statement like this (but oh the ORM):\n\n SELECT Distinct(Coalesce(stage.key, project.key)) AS key,\n (CASE WHEN stage.key IS NOT null THEN stage.data_type ELSE project.data_type END) AS data_type,\n (CASE WHEN stage.key IS NOT null THEN stage.value ELSE proj...
65
false
fabric-bolt/fabric-bolt
get_queryset_configurations
9,811
LDU_FT/silver-castle/mach9/get_request_body_chunk
LDU_FT
[ "<BEGIN>\n## `get_connect_message`", "http://channels.readthedocs.io/en/stable/asgi/www.html#connection\n<END>", "<BEGIN>\n## `get_receive_message`", "http://channels.readthedocs.io/en/stable/asgi/www.html#receive\n<END>", "<BEGIN>\n## `get_disconnect_message`", "http://channels.readthedocs.io/en/stable/a...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_request_body_chunk 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_request_body_chunk API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
http://channels.readthedocs.io/en/stable/asgi/www.html#request-body-chunk
"http://channels.readthedocs.io/en/stable/asgi/www.html#request-body-chunk"
78
false
silver-castle/mach9
get_request_body_chunk
9,812
LDU_FT/Varkal/chuda/send
LDU_FT
[ "<BEGIN>\n## `enrich_app`", "Add a new property to the app (with setattr)", " Args:\n name (str): the name of the new property\n value (any): the value of the new property\n<END>", "<BEGIN>\n## `autorun`", "Call the run method of the decorated class if the current file is the ma...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the send API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the send API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
Send text to stdin. Can only be used on non blocking commands Args: value (str): the text to write on stdin Raises: TypeError: If command is blocking Returns: ShellCommand: return this ShellCommand instance for chaining
"Send text to stdin. Can only be used on non blocking commands\n\n Args:\n value (str): the text to write on stdin\n Raises:\n TypeError: If command is blocking\n Returns:\n ShellCommand: return this ShellCommand instance for chaining"
44
false
Varkal/chuda
send
9,813
LDU_FT/philgyford/django-spectator/annual_event_counts
LDU_FT
[ "<BEGIN>\n## `generate_slug`", "A copy of spectator.core.models.SluggedModelMixin._generate_slug()\n<END>", "<BEGIN>\n## `set_slug`", "Create a slug for each Work already in the DB.\n<END>", "<BEGIN>\n## `get_kinds_data`", "Returns a dict of all the data about the kinds, keyed to the kind\n value. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the annual_event_counts 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 annual_event_counts 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 QuerySet of dicts, each one with these keys: * year - a date object representing the year * total - the number of events of `kind` that year kind - The Event `kind`, or 'all' for all kinds (default).
"Returns a QuerySet of dicts, each one with these keys:\n\n * year - a date object representing the year\n * total - the number of events of `kind` that year\n\n kind - The Event `kind`, or 'all' for all kinds (default)."
169
false
philgyford/django-spectator
annual_event_counts
9,814
LDU_FT/agoragames/haigha/connect
LDU_FT
[ "<BEGIN>\n## `commit`", "Commit the current transaction. Caller can specify a callback to use\n when the transaction is committed.\n<END>", "<BEGIN>\n## `rollback`", "Abandon all message publications and acks in the current transaction.\n Caller can specify a callback to use when the transactio...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the connect API. 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 connect API. 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...
Connect assuming a host and port tuple. :param tuple: A tuple containing host and port for a connection. :param klass: A implementation of socket.socket. :raises socket.gaierror: If no address can be resolved. :raises socket.error: If no connection can be made.
"Connect assuming a host and port tuple.\n\n :param tuple: A tuple containing host and port for a connection.\n :param klass: A implementation of socket.socket.\n :raises socket.gaierror: If no address can be resolved.\n :raises socket.error: If no connection can be made."
200
false
agoragames/haigha
connect
9,815
LDU_FT/hyde/fswrap/rename_to
LDU_FT
[ "<BEGIN>\n## `fully_expanded_path`", "Returns the absolutely absolute path. Calls os.(\n normpath, normcase, expandvars and expanduser).\n<END>", "<BEGIN>\n## `depth`", "Returns the number of ancestors of this directory.\n<END>", "<BEGIN>\n## `ancestors`", "Generates the parents until stop or the a...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the rename_to API. 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 rename_to API. 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...
Moves this directory to the given destination. Returns a Folder object that represents the moved directory.
"Moves this directory to the given destination. Returns a Folder object\n that represents the moved directory."
43
false
hyde/fswrap
rename_to
9,816
LDU_FT/Scoppio/RagnarokEngine3/set_default_pos
LDU_FT
[ "<BEGIN>\n## `set_default_pos`", "Set the default starting location of our character.\n<END>", "<BEGIN>\n## `__generate_location`", "Reset the location of the cloud once it has left the viewable area of the screen.\n<END>", "<BEGIN>\n## `load_character`", "Create an instance of the main character and retu...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_default_pos API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_default_pos API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
Set the default starting location of our character.
"Set the default starting location of our character."
165
false
Scoppio/RagnarokEngine3
set_default_pos
9,817
LDU_FT/marshmallow-code/webargs/_validated_locations
LDU_FT
[ "<BEGIN>\n## `dict2schema`", "Generate a `marshmallow.Schema` class given a dictionary of\n `Fields <marshmallow.fields.Field>`.\n<END>", "<BEGIN>\n## `is_json`", "Indicates if this mimetype is JSON or not. By default a request\n is considered to include JSON data if the mimetype is\n ``application/...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _validated_locations API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _validated_locations API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Ensure that the given locations argument is valid. :raises: ValueError if a given locations includes an invalid location.
"Ensure that the given locations argument is valid.\n\n :raises: ValueError if a given locations includes an invalid location."
108
false
marshmallow-code/webargs
_validated_locations
9,818
LDU_FT/opennode/waldur-core/get_actions
LDU_FT
[ "<BEGIN>\n## `subfield_get`", "Verbatim copy from:\n https://github.com/django/django/blob/1.9.13/django/db/models/fields/subclassing.py#L38\n<END>", "<BEGIN>\n## `_preprocess_kwargs`", "Replace generic key related attribute with filters by object_id and content_type fields\n<END>", "<BEGIN>\n## `list`",...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_actions API. 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_actions API. 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 metadata for resource-specific actions, such as start, stop, unlink
"Return metadata for resource-specific actions,\n such as start, stop, unlink"
526
false
opennode/waldur-core
get_actions
9,819
LDU_FT/gboeing/osmnx/truncate_graph_polygon
LDU_FT
[ "<BEGIN>\n## `config`", "Configure osmnx by setting the default global vars to desired values.", " Parameters\n ---------\n data_folder : string\n where to save and load data files\n logs_folder : string\n where to write the log files\n imgs_folder : string\n where to save fi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the truncate_graph_polygon 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 truncate_graph_polygon API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
Remove every node in graph that falls outside some shapely Polygon or MultiPolygon. Parameters ---------- G : networkx multidigraph polygon : Polygon or MultiPolygon only retain nodes in graph that lie within this geometry retain_all : bool if True, return the entire graph even ...
"Remove every node in graph that falls outside some shapely Polygon or\n MultiPolygon.\n\n Parameters\n ----------\n G : networkx multidigraph\n polygon : Polygon or MultiPolygon\n only retain nodes in graph that lie within this geometry\n retain_all : bool\n if True, return the entire g...
479
false
gboeing/osmnx
truncate_graph_polygon
9,820
LDU_FT/mugurbil/gnm/optimize
LDU_FT
[ "<BEGIN>\n## `update_params`", "Update parameters\n updates mean and precision to the step size\n Inputs:\n state :\n mu :\n mean\n L :\n cholesky factor of the precision matrix\n t : \n step size\n Outputs:\n mu :\n...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the optimize API. 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 optimize API. 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...
Third order approximation to find the minimum of the function f : function to be optimized over Inputs : t : previous step size f_0 : f(0), function value at 0 d_f_0: f'(0), the derivative of the function at 0 f_t : f(t), fun...
"Third order approximation to find the minimum of the function\n f : function to be optimized over\n Inputs : \n t : \n previous step size\n f_0 : f(0),\n function value at 0\n d_f_0: f'(0),\n the derivative of the function at 0\n f_t : f(t),\n ...
42
false
mugurbil/gnm
optimize
9,821
LDU_FT/atl/py-smartdc/stop
LDU_FT
[ "<BEGIN>\n## `priv`", "Quick and dirty method to find an IP on a private network given a correctly\n formatted IPv4 quad.\n<END>", "<BEGIN>\n## `_save`", "Take the data from a dict and commit them to appropriate attributes.\n<END>", "<BEGIN>\n## `refresh`", "::", " GET /:login/machines/:id...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the stop API. 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 stop API. 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...
:: POST /:login/machines/:id?action=stop Initiate shutdown of the remote machine.
"::\n \n POST /:login/machines/:id?action=stop\n \n Initiate shutdown of the remote machine."
290
false
atl/py-smartdc
stop
9,822
LDU_FT/cga-harvard/Hypermap-Registry/endpointlist_post_save
LDU_FT
[ "<BEGIN>\n## `update_schema`", "set the mapping in solr.\n :param catalog: core\n :return:\n<END>", "<BEGIN>\n## `create_layer_from_metadata_xml`", "Create a layer / keyword list from a metadata record if it does not already exist.\n<END>", "<BEGIN>\n## `create_service_from_endpoint`", "Crea...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the endpointlist_post_save API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the endpointlist_post_save API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
Used to process the lines of the endpoint list.
"Used to process the lines of the endpoint list."
132
false
cga-harvard/Hypermap-Registry
endpointlist_post_save
9,823
LDU_FT/mdgart/sentrylogs/parse_sentry_configuration
LDU_FT
[ "<BEGIN>\n## `process_arguments`", "Deal with arguments passed on the command line\n<END>", "<BEGIN>\n## `parse_sentry_configuration`", "Parse Sentry DSN out of an application or Sentry configuration file\n<END>", "<BEGIN>\n## `follow_tail`", "Read (tail and follow) the log file, parse entries and send me...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_sentry_configuration 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 parse_sentry_configuration API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclus...
Parse Sentry DSN out of an application or Sentry configuration file
"Parse Sentry DSN out of an application or Sentry configuration file"
12
false
mdgart/sentrylogs
parse_sentry_configuration
9,824
LDU_FT/joeferraro/mm/get_meta_type_by_name
LDU_FT
[ "<BEGIN>\n## `parse_json`", "Parse a JSON file\n First remove comments and then use the json module package\n Comments look like :\n // ...\n or\n /*\n ...\n */\n<END>", "<BEGIN>\n## `get_meta_type_by_dir`", "> quick and dirty fix for users expe...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_meta_type_by_name API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_meta_type_by_name API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
> quick and dirty fix for users experiencing issues with "newer" metadata types not properly tested by mm > if the project has a cached .describe, let's use that to detect metadata types
"> quick and dirty fix for users experiencing issues with \"newer\" metadata types not properly tested by mm\n > if the project has a cached .describe, let's use that to detect metadata types"
71
false
joeferraro/mm
get_meta_type_by_name
9,825
LDU_FT/GoogleCloudPlatform/appengine-gcs-client/delete
LDU_FT
[ "<BEGIN>\n## `check_status`", "Check HTTP response status is expected.", " Args:\n status: HTTP response status. int.\n expected: a list of expected statuses. A list of ints.\n path: filename or a path prefix.\n headers: HTTP request headers.\n resp_headers: HTTP response headers.\n body: HTT...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the delete API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the delete API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Delete a Google Cloud Storage file. Args: filename: A Google Cloud Storage filename of form '/bucket/filename'. retry_params: An api_utils.RetryParams for this call to GCS. If None, the default one is used. _account_id: Internal-use only. Raises: errors.NotFoundError: if the file doesn't exi...
"Delete a Google Cloud Storage file.\n\n Args:\n filename: A Google Cloud Storage filename of form '/bucket/filename'.\n retry_params: An api_utils.RetryParams for this call to GCS. If None,\n the default one is used.\n _account_id: Internal-use only.\n\n Raises:\n errors.NotFoundError: if the file d...
270
false
GoogleCloudPlatform/appengine-gcs-client
delete
9,826
LDU_FT/edublancas/sklearn-evaluation/_mapping_to_tuple_pairs
LDU_FT
[ "<BEGIN>\n## `feature_importances`", "Get and order feature importances from a scikit-learn model\n or from an array-like structure.", " If data is a scikit-learn model with sub-estimators (e.g. RandomForest,\n AdaBoost) the function will compute the standard deviation of each\n feature.", " Pa...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _mapping_to_tuple_pairs 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 _mapping_to_tuple_pairs API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion...
Convert a mapping object (such as a dictionary) to tuple pairs, using its keys and values to generate the pairs and then generating all possible combinations between those e.g. {1: (1,2,3)} -> (((1, 1),), ((1, 2),), ((1, 3),))
"Convert a mapping object (such as a dictionary) to tuple pairs,\n using its keys and values to generate the pairs and then generating\n all possible combinations between those\n e.g. {1: (1,2,3)} -> (((1, 1),), ((1, 2),), ((1, 3),))"
104
false
edublancas/sklearn-evaluation
_mapping_to_tuple_pairs
9,827
LDU_FT/zeaphoo/budoc/_fill_inheritance
LDU_FT
[ "<BEGIN>\n## `import_module`", "Imports a module. A single point of truth for importing modules to\n be documented by `pydoc`. In particular, it makes sure that the top\n module in `module_name` can be imported by using only the paths in\n `pydoc.import_path`.", " If a module has already been import...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _fill_inheritance API. 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 _fill_inheritance API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Traverses this class's ancestor list and attempts to fill in missing documentation from its ancestor's documentation. The first pass connects variables, methods and functions with their inherited couterparts. (The templates will decide how to display docstrings.) The second pass attempt...
"Traverses this class's ancestor list and attempts to fill in\n missing documentation from its ancestor's documentation.\n\n The first pass connects variables, methods and functions with\n their inherited couterparts. (The templates will decide how to\n display docstrings.) The second pass a...
54
false
zeaphoo/budoc
_fill_inheritance
9,828
LDU_FT/django-userena-ce/django-userena-ce/activate_retry
LDU_FT
[ "<BEGIN>\n## `activate`", "Activate a user with an activation key.", " The key is a SHA1 string. When the SHA1 is found with an\n :class:`UserenaSignup`, the :class:`User` of that account will be\n activated. After a successful activation the view will redirect to\n ``success_url``. If the SHA1 is...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the activate_retry API. 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 activate_retry API. 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...
Reissue a new ``activation_key`` for the user with the expired ``activation_key``. If ``activation_key`` does not exists, or ``USERENA_ACTIVATION_RETRY`` is set to False and for any other error condition user is redirected to :func:`activate` for error message display. :param activation_key: ...
"Reissue a new ``activation_key`` for the user with the expired\n ``activation_key``.\n\n If ``activation_key`` does not exists, or ``USERENA_ACTIVATION_RETRY`` is\n set to False and for any other error condition user is redirected to\n :func:`activate` for error message display.\n\n :param activation_ke...
241
false
django-userena-ce/django-userena-ce
activate_retry
9,829
LDU_FT/sprockets/sprockets/_configure_logging
LDU_FT
[ "<BEGIN>\n## `run`", "Evaluate the command line arguments, performing the appropriate\n actions so the application can be started.\n<END>", "<BEGIN>\n## `_add_cli_args`", "Add the cli arguments to the argument parser.\n<END>", "<BEGIN>\n## `_configure_logging`", "Configure logging for the applicati...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _configure_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. Th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _configure_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. Th...
Configure logging for the application, setting the appropriate verbosity and adding syslog if it's enabled. :param str application: The application module/package name :param int verbosity: 1 == INFO, 2 == DEBUG :param bool syslog: Enable the syslog handler
"Configure logging for the application, setting the appropriate\n verbosity and adding syslog if it's enabled.\n\n :param str application: The application module/package name\n :param int verbosity: 1 == INFO, 2 == DEBUG\n :param bool syslog: Enable the syslog handler"
19
false
sprockets/sprockets
_configure_logging
9,830
LDU_FT/venthur/python-debianbts/get_bugs
LDU_FT
[ "<BEGIN>\n## `get_status`", "Returns a list of Bugreport objects.", " Given a list of bugnumbers this method returns a list of Bugreport\n objects.", " Parameters\n ----------\n nrs : int or list of ints\n the bugnumbers", " Returns\n -------\n bugs : list of Bugreport objects...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_bugs API. 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_bugs API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
Get list of bugs matching certain criteria. The conditions are defined by key value pairs. Possible keys are: * "package": bugs for the given package * "submitter": bugs from the submitter * "maint": bugs belonging to a maintainer * "src": bugs belonging to a source package ...
"Get list of bugs matching certain criteria.\n\n The conditions are defined by key value pairs.\n\n Possible keys are:\n * \"package\": bugs for the given package\n * \"submitter\": bugs from the submitter\n * \"maint\": bugs belonging to a maintainer\n * \"src\": bugs belonging to a s...
35
false
venthur/python-debianbts
get_bugs
9,831
LDU_FT/amicks/Speculator/validate_db
LDU_FT
[ "<BEGIN>\n## `set_targets`", "Sets target market trend for a date", " Args:\n x: Pandas DataFrame of market features\n delta: Positive number defining a price buffer between what is\n classified as a bullish/bearish market for the training set.\n delta is equivalent to the...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the validate_db API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the validate_db API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
Checks if a DB is authorized and responding before executing the function
"Checks if a DB is authorized and responding before executing the function"
104
false
amicks/Speculator
validate_db
9,832
LDU_FT/RedisJSON/rejson-py/jsonarrlen
LDU_FT
[ "<BEGIN>\n## `bulk_of_jsons`", "Replace serialized JSON values with objects in a bulk array response (list)\n<END>", "<BEGIN>\n## `setEncoder`", "Sets the client's encoder\n ``encoder`` should be an instance of a ``json.JSONEncoder`` class\n<END>", "<BEGIN>\n## `setDecoder`", "Sets the client's dec...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the jsonarrlen API. 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 jsonarrlen API. 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...
Returns the length of the array JSON value under ``path`` at key ``name``
"Returns the length of the array JSON value under ``path`` at key\n ``name``"
43
false
RedisJSON/rejson-py
jsonarrlen
9,833
LDU_FT/MartijnBraam/pyElectronics/set_peripheral
LDU_FT
[ "<BEGIN>\n## `read`", "Read the pin state of an input pin.\n Make sure you put the pin in input modus with the IODIR* register or direction_* attribute first.", " :Example:", " >>> expander = MCP23017I2C(gw)\n >>> # Read the logic level on pin B3\n >>> expander.read('B3')\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_peripheral API. 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_peripheral API. 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...
Set the peripheral config at runtime. If a parameter is None then the config will not be changed. :param power: Set to True to enable the power supply or False to disable :param pullup: Set to True to enable the internal pull-up resistors. False to disable :param aux: Set the AUX pin ou...
"Set the peripheral config at runtime.\n If a parameter is None then the config will not be changed.\n\n :param power: Set to True to enable the power supply or False to disable\n :param pullup: Set to True to enable the internal pull-up resistors. False to disable\n :param aux: Set the AUX ...
88
false
MartijnBraam/pyElectronics
set_peripheral
9,834
LDU_FT/Cadene/pretrained-models.pytorch/resnet50
LDU_FT
[ "<BEGIN>\n## `bninception`", "r\"\"\"BNInception model architecture from <https://arxiv.org/pdf/1502.03167.pdf>`_ paper.\n<END>", "<BEGIN>\n## `resnet18`", "Constructs a ResNet-18 model.", " Args:\n pretrained (bool): If True, returns a model pre-trained on ImageNet\n<END>", "<BEGIN>\n## `resnet...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the resnet50 API. 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 resnet50 API. 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...
Constructs a ResNet-50 model. Args: pretrained (bool): If True, returns a model pre-trained on ImageNet
"Constructs a ResNet-50 model.\n\n Args:\n pretrained (bool): If True, returns a model pre-trained on ImageNet"
40
false
Cadene/pretrained-models.pytorch
resnet50
9,835
LDU_FT/costastf/toonlib/get_arguments
LDU_FT
[ "<BEGIN>\n## `get_arguments`", "This get us the cli arguments.", " Returns the args as parsed from the argsparser.\n<END>", "<BEGIN>\n## `setup_logging`", "This sets up the logging.", " Needs the args to get the log level supplied\n :param args: The command line arguments\n<END>", "<BEGIN>\n## ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_arguments API. 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 get_arguments API. 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...
This get us the cli arguments. Returns the args as parsed from the argsparser.
"This get us the cli arguments.\n\n Returns the args as parsed from the argsparser."
46
false
costastf/toonlib
get_arguments
9,836
LDU_FT/BlueBrain/hpcbench/get_subclass
LDU_FT
[ "<BEGIN>\n## `arguments`", "Dictionary providing the list of arguments for every\n benchmark\n<END>", "<BEGIN>\n## `run`", "Execute benchmarks on every node specified in arguments.\n If none are given, then execute benchmarks on every nodes\n specified in the ``network.nodes`` campaign co...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_subclass API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_subclass API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
Get Benchmark subclass by name :param name: name returned by ``Benchmark.name`` property :return: instance of ``Benchmark`` class
"Get Benchmark subclass by name\n :param name: name returned by ``Benchmark.name`` property\n :return: instance of ``Benchmark`` class"
216
false
BlueBrain/hpcbench
get_subclass
9,837
LDU_FT/daknuett/py_register_machine2/load_machine
LDU_FT
[ "<BEGIN>\n## `int_to_bytes`", ".. _int_to_bytes:", "\tConverts the ``int`` ``int_`` to a ``bytes`` object.\n\t``len(result) == width``.", "\tIf ``width`` is None, a number of bytes that is able to hold the\n\tnumber is choosen, depending on ``int_.bit_length()``.", "\tSee also: bytes_to_int_\n<END>", "<BE...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load_machine API. 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 load_machine API. 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...
Load a complete register machine. The descriptor is a map, unspecified values are loaded from the default values.
"Load a complete register machine.\n\t\t\tThe descriptor is a map, unspecified values are loaded from the default values."
154
false
daknuett/py_register_machine2
load_machine
9,838
LDU_FT/idlesign/django-sitecats/remove_from_category
LDU_FT
[ "<BEGIN>\n## `get_category_lists`", "Returns a list of CategoryList objects, associated with\n this model instance.", " :param dict|None init_kwargs:\n :param list|None additional_parents_aliases:\n :rtype: list|CategoryRequestHandler\n :return:\n<END>", "<BEGIN>\n## `enable...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the remove_from_category API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the remove_from_category API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Removes this object from a given category. :param Category category: :return:
"Removes this object from a given category.\n\n :param Category category:\n :return:"
73
false
idlesign/django-sitecats
remove_from_category
9,839
LDU_FT/wooga/play-deliver/download
LDU_FT
[ "<BEGIN>\n## `list`", "convinent access method for list.", " service_name describes the endpoint to call\n the `list` function on.", " images.list or apks.list.\n<END>", "<BEGIN>\n## `build_params`", "build a params dictionary with current editId and packageName.", " use opti...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the download API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the download API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
Download images from play store into folder herachy.
"Download images from play store into folder herachy."
27
false
wooga/play-deliver
download
9,840
LDU_FT/kmike/port-for/_unassigned_ports
LDU_FT
[ "<BEGIN>\n## `_write_unassigned_ranges`", "Downloads ports data from IANA & Wikipedia and converts\n it to a python module. This function is used to generate _ranges.py.\n<END>", "<BEGIN>\n## `_unassigned_ports`", "Returns a set of all unassigned ports (according to IANA and Wikipedia)\n<END>", "<BEGIN>\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _unassigned_ports API. 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 _unassigned_ports API. 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 a set of all unassigned ports (according to IANA and Wikipedia)
"Returns a set of all unassigned ports (according to IANA and Wikipedia)"
31
false
kmike/port-for
_unassigned_ports
9,841
LDU_FT/Yubico/python-pyhsm/keyhandles_fixup
LDU_FT
[ "<BEGIN>\n## `hexdump`", "Produce a string hexdump of src, for debug output.\n<END>", "<BEGIN>\n## `group`", "Split data into chunks of num chars each\n<END>", "<BEGIN>\n## `key_handle_to_int`", "Turn \"123\" into 123 and \"KSM1\" into 827151179\n (0x314d534b, 'K' = 0x4b, S = '0x53', M = 0x4d).", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the keyhandles_fixup API. 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 keyhandles_fixup API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Walk through the supplied key handles and normalize them, while keeping the input format too (as value in a dictionary). The input format is used in AEAD filename paths.
"Walk through the supplied key handles and normalize them, while keeping\n the input format too (as value in a dictionary). The input format is\n used in AEAD filename paths."
310
false
Yubico/python-pyhsm
keyhandles_fixup
9,842
LDU_FT/coldfix/udiskie/samefile
LDU_FT
[ "<BEGIN>\n## `_is_parent_of`", "Check whether the first device is the parent of the second device.\n<END>", "<BEGIN>\n## `prune_empty_node`", "Recursively remove empty branches and return whether this makes the node\n itself empty.", " The ``seen`` parameter is used to avoid infinite recursion due to ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the samefile API. 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 samefile API. 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...
Check if two pathes represent the same file.
"Check if two pathes represent the same file."
228
false
coldfix/udiskie
samefile
9,843
LDU_FT/pywbem/pywbem/stage_pywbem_result
LDU_FT
[ "<BEGIN>\n## `_hash_item`", "Hash an item (CIM value, CIM object), by delegating to its hash function.", " The item may be `None`.\n<END>", "<BEGIN>\n## `_stacklevel_above_module`", "Return the stack level (with 1 = caller of this function) of the first\n caller that is not defined in the specified mo...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the stage_pywbem_result API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the stage_pywbem_result API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
Set Result return info or exception info
"Set Result return info or exception info"
3,983
true
pywbem/pywbem
stage_pywbem_result
9,844
LDU_FT/zeromake/aiosqlite3/_fill_free_pool
LDU_FT
[ "<BEGIN>\n## `wait_closed`", "Wait for closing all pool's connections.\n<END>", "<BEGIN>\n## `_fill_free_pool`", "iterate over free connections and remove timeouted ones\n<END>", "<BEGIN>\n## `create_future`", "Compatibility wrapper for the loop.create_future() call introduced in\n 3.5.2.\n<END>", "<...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _fill_free_pool API. 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 _fill_free_pool API. 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...
iterate over free connections and remove timeouted ones
"iterate over free connections and remove timeouted ones"
18
false
zeromake/aiosqlite3
_fill_free_pool
9,845
LDU_FT/apache/incubator-superset/apply_limit_to_sql
LDU_FT
[ "<BEGIN>\n## `new`", "Creates a new, blank dashboard and redirects to it in edit mode\n<END>", "<BEGIN>\n## `import_datasource`", "Imports the datasource from the object to the database.", " Metrics and columns and datasource will be overrided if exists.\n This function can be used to import/export ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the apply_limit_to_sql 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 apply_limit_to_sql 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...
Alters the SQL statement to apply a LIMIT clause
"Alters the SQL statement to apply a LIMIT clause"
411
false
apache/incubator-superset
apply_limit_to_sql
9,846
LDU_FT/bwesterb/py-tarjan/_tarjan_body
LDU_FT
[ "<BEGIN>\n## `tc`", "Given a graph @g, returns the transitive closure of @g\n<END>", "<BEGIN>\n## `_tarjan_head`", "Used by @tarjan and @tarjan_iter. This is the head of the\n main iteration\n<END>", "<BEGIN>\n## `_tarjan_body`", "Used by @tarjan and @tarjan_iter. This is the body of the\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _tarjan_body API. 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 _tarjan_body API. 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...
Used by @tarjan and @tarjan_iter. This is the body of the main iteration
"Used by @tarjan and @tarjan_iter. This is the body of the\n main iteration"
14
false
bwesterb/py-tarjan
_tarjan_body
9,847
LDU_FT/Yelp/threat_intel/whois_domains
LDU_FT
[ "<BEGIN>\n## `init_poolmanager`", "Called to initialize the HTTPAdapter when no proxy is used.\n<END>", "<BEGIN>\n## `proxy_manager_for`", "Called to initialize the HTTPAdapter when a proxy is used.\n<END>", "<BEGIN>\n## `make_calls`", "Adds appropriate sleep to avoid making too many calls.", " A...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the whois_domains API. 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 whois_domains API. 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...
Calls WHOIS domain end point Args: domains: An enumerable of domains Returns: A dict of {domain: domain_result}
"Calls WHOIS domain end point\n\n Args:\n domains: An enumerable of domains\n Returns:\n A dict of {domain: domain_result}"
149
false
Yelp/threat_intel
whois_domains
9,848
LDU_FT/BDNYC/astrodbkit/photaddline
LDU_FT
[ "<BEGIN>\n## `dict_tovot`", "Converts dictionary table **tabdata** to a VOTable with name **tabname**", " Parameters\n ----------\n tabdata: list\n SQL query dictionary list from running query_dict.execute()\n tabname: str\n The name of the VOTable to be created\n phot: bool\n Para...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the photaddline API. 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 photaddline API. 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...
Loop through the dictionary list **tab** creating a line for the source specified in **sourceid** Parameters ---------- tab: Dictionary list of all the photometry data sourceid: ID of source in the photometry table (source_id) Returns ------- tmpdict: dict Dictionary wi...
"Loop through the dictionary list **tab** creating a line for the source specified in **sourceid**\n\n Parameters\n ----------\n tab:\n Dictionary list of all the photometry data\n sourceid:\n ID of source in the photometry table (source_id)\n\n Returns\n -------\n tmpdict: dict\n ...
166
false
BDNYC/astrodbkit
photaddline
9,849
LDU_FT/LeastAuthority/txkube/from_swagger
LDU_FT
[ "<BEGIN>\n## `pairwise`", "Generate consecutive pairs of elements from the given iterable.\n<END>", "<BEGIN>\n## `pick_cert_for_twisted`", "Pick the right client key/certificate to use for the given server and\n return it in the form Twisted wants.", " :param NetLocation netloc: The location of the se...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the from_swagger API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the from_swagger API. 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...
Create a new ``_ClassModel`` from a single Swagger definition. :param pclass_for_definition: A callable like ``Swagger.pclass_for_definition`` which can be used to resolve type references encountered in the definition. :param unicode name: The name of the definition. :...
"Create a new ``_ClassModel`` from a single Swagger definition.\n\n :param pclass_for_definition: A callable like\n ``Swagger.pclass_for_definition`` which can be used to resolve\n type references encountered in the definition.\n\n :param unicode name: The name of the definition.\n\n...
132
false
LeastAuthority/txkube
from_swagger
9,850
LDU_FT/sporsh/carnifex/connectSubsystem
LDU_FT
[ "<BEGIN>\n## `attr_string`", "Build a string consisting of 'key=value' substrings for each keyword\n argument in :kwargs:", " @param filterKeys: list of key names to ignore\n @param filterValues: list of values to ignore (e.g. None will ignore all\n key=value pairs that has that...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the connectSubsystem API. 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 connectSubsystem API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Connect a Protocol to a ssh subsystem channel
"Connect a Protocol to a ssh subsystem channel"
61
false
sporsh/carnifex
connectSubsystem
9,851
LDU_FT/vecnet/vecnet.openmalaria/add
LDU_FT
[ "<BEGIN>\n## `get_percentage_from_prob`", "Converted probability of being treated to total percentage of clinical cases treated\n<END>", "<BEGIN>\n## `get_schema_version_from_xml`", "Get schemaVersion attribute from OpenMalaria scenario file\n xml - open file or content of xml document to be processed\n<EN...
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 an intervention to intervention/human section. intervention is either ElementTree or xml snippet
"Add an intervention to intervention/human section.\n intervention is either ElementTree or xml snippet"
42
false
vecnet/vecnet.openmalaria
add
9,852
LDU_FT/erinxocon/requests-xml/xml
LDU_FT
[ "<BEGIN>\n## `raw_xml`", "Bytes representation of the XML content.\n (`learn more <http://www.diveintopython3.net/strings.html>`_).\n<END>", "<BEGIN>\n## `xml`", "Unicode representation of the XML content\n (`learn more <http://www.diveintopython3.net/strings.html>`_).\n<END>", "<BEGIN>\n## `p...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the xml API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the xml API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
Unicode representation of the XML content (`learn more <http://www.diveintopython3.net/strings.html>`_).
"Unicode representation of the XML content\n (`learn more <http://www.diveintopython3.net/strings.html>`_)."
33
false
erinxocon/requests-xml
xml
9,853
LDU_FT/Celeo/Preston/get_path
LDU_FT
[ "<BEGIN>\n## `_get_access_from_refresh`", "Uses the stored refresh token to get a new access token.", " This method assumes that the refresh token exists.", " Args:\n None", " Returns:\n new access token and expiration time (from now)\n<END>", "<BEGIN>\n## `_get_...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_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 extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_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 extracte...
Queries the ESI by an endpoint URL. This method is not marked "private" as it _can_ be used by consuming code, but it's probably easier to call the `get_op` method instead. Args: path: raw ESI URL path data: data to insert into the URL Returns: ...
"Queries the ESI by an endpoint URL.\n\n This method is not marked \"private\" as it _can_ be used\n by consuming code, but it's probably easier to call the\n `get_op` method instead.\n\n Args:\n path: raw ESI URL path\n data: data to insert into the URL\n\n Retu...
76
false
Celeo/Preston
get_path
9,854
LDU_FT/sprockets/sprockets.mixins.http/append_response
LDU_FT
[ "<BEGIN>\n## `append_response`", "Append the response to the stack of responses.", " :param tornado.httpclient.HTTPResponse response: The HTTP response\n<END>", "<BEGIN>\n## `body`", "Returns the HTTP response body, deserialized if possible.", " :rtype: mixed\n<END>", "<BEGIN>\n## `links`"...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the append_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 e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the append_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 e...
Append the response to the stack of responses. :param tornado.httpclient.HTTPResponse response: The HTTP response
"Append the response to the stack of responses.\n\n :param tornado.httpclient.HTTPResponse response: The HTTP response"
35
false
sprockets/sprockets.mixins.http
append_response
9,855
LDU_FT/atarashansky/self-assembling-manifold/save_anndata
LDU_FT
[ "<BEGIN>\n## `preprocess_data`", "Log-normalizes and filters the expression data.", " Parameters\n ----------", " div : float, optional, default 1\n The factor by which the gene expression will be divided prior to\n log normalization.", " downsample : float,...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the save_anndata API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the save_anndata API. 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...
Saves `adata_raw` to a .h5ad file (AnnData's native file format). Parameters ---------- fname - string The filename of the output file.
"Saves `adata_raw` to a .h5ad file (AnnData's native file format).\n\n Parameters\n ----------\n fname - string\n The filename of the output file."
125
false
atarashansky/self-assembling-manifold
save_anndata
9,856
LDU_FT/SBRG/ssbio/write
LDU_FT
[ "<BEGIN>\n## `search_ss_bonds`", "Searches S-S bonds based on distances\n between atoms in the structure (first model only).\n Average distance is 2.05A. Threshold is 3A default.\n Returns iterator with tuples of residues.", " ADAPTED FROM JOAO RODRIGUES' BIOPYTHON GSOC PROJECT (http...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the write API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the write API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
Writes a Structure in PDB format through PDBIO. Simplifies life..
"Writes a Structure in PDB format through PDBIO.\n Simplifies life.."
1,487
true
SBRG/ssbio
write
9,857
LDU_FT/ejeschke/ginga/add_offset_radec
LDU_FT
[ "<BEGIN>\n## `set_figure`", "Call this with the matplotlib Figure() object.\n<END>", "<BEGIN>\n## `render_image1`", "Render the image represented by (rgbobj) at dst_x, dst_y\n in the pixel space.", " NOTE: this version uses a Figure.FigImage to render the image.\n<END>", "<BEGIN>\n## `render...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_offset_radec API. 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 add_offset_radec API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Algorithm to compute RA/Dec from RA/Dec base position plus tangent plane offsets.
"Algorithm to compute RA/Dec from RA/Dec base position plus tangent\n plane offsets."
1,455
true
ejeschke/ginga
add_offset_radec
9,858
LDU_FT/pdkit/pdkit/fft_coefficient
LDU_FT
[ "<BEGIN>\n## `load`", "This is a general load data method where the format of data to load can be passed as a parameter,", " :param str filename: The path to load data from\n :param str format_file: format of the file. Default is CloudUPDRS. Set to mpower for mpower data.\n :ret...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the fft_coefficient API. 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 fft_coefficient API. 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...
As in tsfresh `fft_coefficient <https://github.com/blue-yonder/tsfresh/blob/master/tsfresh/feature_extraction/\ feature_calculators.py#L852>`_ \ Calculates the fourier coefficients of the one-dimensional discrete Fourier Transform for real input by fast \ fourier transformation algorithm ...
"As in tsfresh `fft_coefficient <https://github.com/blue-yonder/tsfresh/blob/master/tsfresh/feature_extraction/\\\n feature_calculators.py#L852>`_ \\\n Calculates the fourier coefficients of the one-dimensional discrete Fourier Transform for real input by fast \\\n fourier transformation algorithm\...
344
false
pdkit/pdkit
fft_coefficient
9,859
LDU_FT/DavidDoukhan/py_sonicvisualiser/set_data_from_iterable
LDU_FT
[ "<BEGIN>\n## `init_from_wave_file`", "Init a sonic visualiser environment structure based the analysis \n of the main audio file. The audio file have to be encoded in wave", " Args:\n wavpath(str): the full path to the wavfile\n<END>", "<BEGIN>\n## `add_spectrogram`", "add a spectrogr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_data_from_iterable 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_data_from_iterable API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
Initialize a dataset structure from iterable parameters :param x: The temporal indices of the dataset :param y: The values of the dataset :type x: iterable :type y: iterable
"Initialize a dataset structure from iterable parameters\n\n :param x: The temporal indices of the dataset\n :param y: The values of the dataset\n :type x: iterable\n :type y: iterable"
24
false
DavidDoukhan/py_sonicvisualiser
set_data_from_iterable
9,860
LDU_FT/deontologician/restnavigator/expand_link
LDU_FT
[ "<BEGIN>\n## `cache`", "Stores a navigator in the identity map for the current\n api. Can take a link or a bare uri\n<END>", "<BEGIN>\n## `get_cached`", "Retrieves a cached navigator from the id_map.", " Either a Link object or a bare uri string may be passed in.\n<END>", "<BEGIN>\n## `is_ca...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the expand_link API. 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 expand_link API. 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...
Expands with the given arguments and returns a new untemplated Link object
"Expands with the given arguments and returns a new\n untemplated Link object"
72
false
deontologician/restnavigator
expand_link
9,861
LDU_FT/thespacedoctor/sherlock/_remove_previous_ned_queries
LDU_FT
[ "<BEGIN>\n## `ingest`", "ingest the veron catalogue into the catalogues database", " See class docstring for usage.\n<END>", "<BEGIN>\n## `_create_dictionary_of_veron`", "create a list of dictionaries containing all the rows in the veron catalogue", " **Return:**\n - ``dictList`` ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _remove_previous_ned_queries API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its concl...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _remove_previous_ned_queries API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its concl...
iterate through the transient locations to see if we have recent local NED coverage of that area already **Key Arguments:** - ``coordinateList`` -- set of coordinate to check for previous queries **Return:** - ``updatedCoordinateList`` -- coordinate list with previous queries r...
"iterate through the transient locations to see if we have recent local NED coverage of that area already\n\n **Key Arguments:**\n - ``coordinateList`` -- set of coordinate to check for previous queries\n\n **Return:**\n - ``updatedCoordinateList`` -- coordinate list with previous qu...
348
false
thespacedoctor/sherlock
_remove_previous_ned_queries
9,862
LDU_FT/QualiSystems/vCenterShell/load_vm_uuid_by_name
LDU_FT
[ "<BEGIN>\n## `get_inventory`", "Will locate vm in vcenter and fill its uuid\n :type context: cloudshell.shell.core.context.ResourceCommandContext\n<END>", "<BEGIN>\n## `get_snapshots`", "Restores a virtual machine to a snapshot\n :param vim.ServiceInstance si: py_vmomi service instance\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load_vm_uuid_by_name API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load_vm_uuid_by_name API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Returns the vm uuid :param si: Service instance to the vcenter :param vcenter_data_model: vcenter data model :param vm_name: the vm name :return: str uuid
"Returns the vm uuid\n :param si: Service instance to the vcenter\n :param vcenter_data_model: vcenter data model\n :param vm_name: the vm name\n :return: str uuid"
231
false
QualiSystems/vCenterShell
load_vm_uuid_by_name
9,863
LDU_FT/ARMmbed/mbed-cloud-sdk-python/add_api_key
LDU_FT
[ "<BEGIN>\n## `add_resource_subscription`", "Subscribe to a resource path # noqa: E501", "The Device Management Connect eventing model consists of observable resources. This means that endpoints can deliver updated resource content, periodically or with a more sophisticated solution-dependent logic. The OMA LwM...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_api_key API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_api_key API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
Create new API key registered to organisation. :param str name: The name of the API key (Required) :param list groups: List of group IDs (`str`) :param str owner: User ID owning the API key :param str status: The status of the API key. Values: ACTIVE, INACTIVE :returns: Newly cr...
"Create new API key registered to organisation.\n\n :param str name: The name of the API key (Required)\n :param list groups: List of group IDs (`str`)\n :param str owner: User ID owning the API key\n :param str status: The status of the API key. Values: ACTIVE, INACTIVE\n :returns: N...
1,479
true
ARMmbed/mbed-cloud-sdk-python
add_api_key
9,864
LDU_FT/jepegit/cellpy/pre_process_data
LDU_FT
[ "<BEGIN>\n## `search_for_files`", "Searches for files (raw-data files and cellpy-files).", " Args:\n run_name(str): run-file identification.\n raw_extension(str): optional, extension of run-files (without the '.').\n cellpy_file_extension(str): optional, extension for cellpy files\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the pre_process_data API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the pre_process_data API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
perform some pre-processing of the data (i.e. interpolation)
"perform some pre-processing of the data (i.e. interpolation)"
393
false
jepegit/cellpy
pre_process_data
9,865
LDU_FT/brandonxiang/geojson-python-utils/_pnpoly
LDU_FT
[ "<BEGIN>\n## `linestrings_intersect`", "To valid whether linestrings from geojson are intersected with each other.\n reference: http://www.kevlindev.com/gui/math/intersection/Intersection.js", " Keyword arguments:\n line1 -- first line geojson object\n line2 -- second line geojson object", " if...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _pnpoly API. 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 _pnpoly API. 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 algorithm to judge whether the point is located in polygon reference: https://www.ecse.rpi.edu/~wrf/Research/Short_Notes/pnpoly.html#Explanation
"the algorithm to judge whether the point is located in polygon\n reference: https://www.ecse.rpi.edu/~wrf/Research/Short_Notes/pnpoly.html#Explanation"
70
false
brandonxiang/geojson-python-utils
_pnpoly
9,866
LDU_FT/kobejohn/PQHelper/_simulated_chain_result
LDU_FT
[ "<BEGIN>\n## `_create_board_image_cv`", "Return a cv image of the board or empty board if not provided.\n<END>", "<BEGIN>\n## `_draw_swap_cv`", "Add a white tile border to indicate the swap.\n<END>", "<BEGIN>\n## `_convert_cv_to_tk`", "Convert an OpenCV image to a tkinter PhotoImage\n<END>", "<BEGIN>\n#...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _simulated_chain_result API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _simulated_chain_result API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion...
Simulate any chain reactions. Arguments: potential_chain: a state to be tested for chain reactions already_used_bonus: boolean indicating whether a bonus turn was already applied during this action Return: final result state or None (if state is filtered out in capture) ...
"Simulate any chain reactions.\n\n Arguments:\n potential_chain: a state to be tested for chain reactions\n already_used_bonus: boolean indicating whether a bonus turn was already\n applied during this action\n\n Return: final result state or None (if state is filtered out in capt...
114
false
kobejohn/PQHelper
_simulated_chain_result
9,867
LDU_FT/maxpumperla/elephas/from_data_frame
LDU_FT
[ "<BEGIN>\n## `add_params`", "Add two lists of parameters one by one", " :param param_list_left: list of numpy arrays\n :param param_list_right: list of numpy arrays\n :return: list of numpy arrays\n<END>", "<BEGIN>\n## `subtract_params`", "Subtract two lists of parameters", " :param param_list...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the from_data_frame API. 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_data_frame API. 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 DataFrame back to pair of numpy arrays
"Convert DataFrame back to pair of numpy arrays"
87
false
maxpumperla/elephas
from_data_frame
9,868
LDU_FT/phac-nml/sistr_cmd/_recur_flatten
LDU_FT
[ "<BEGIN>\n## `parse_cgmlst_alleles`", "Parse cgMLST alleles from fasta file\n cgMLST FASTA file must have a header format of \">{marker name}|{allele name}\"", " Args:\n cgmlst_fasta (str): cgMLST fasta file path", " Returns:\n dict of list: Marker name to list of allele sequences\n<END...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _recur_flatten API. 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 _recur_flatten API. 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...
Helper function to flatten_dict Recursively flatten all nested values within a dict Args: key (str): parent key x (object): object to flatten or add to out dict out (dict): 1D output dict sep (str): flattened key separator string Returns: dict: flattene...
"Helper function to flatten_dict\n \n Recursively flatten all nested values within a dict\n \n Args:\n key (str): parent key\n x (object): object to flatten or add to out dict\n out (dict): 1D output dict\n sep (str): flattened key separator string\n \n Returns:\n di...
148
false
phac-nml/sistr_cmd
_recur_flatten
9,869
LDU_FT/XuShaohua/bcloud/natsort
LDU_FT
[ "<BEGIN>\n## `display_files`", "重新格式化一下文件列表, 去除不需要的信息", " 这一操作主要是为了便于接下来的查找工作.\n 文件的path都被提取出来, 然后放到了一个list中.\n<END>", "<BEGIN>\n## `init_db`", "这个任务数据库只在程序开始时读入, 在程序关闭时导出.", " 因为Gtk没有像在Qt中那么方便的使用SQLite, 而必须将所有数据读入一个\n liststore中才行.\n<END>", "<BEGIN>\n## `get_task_db`", "从数...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the natsort API. 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 natsort API. 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...
按照语言里的意义对字符串进行排序. 这个方法用于替换按照字符编码顺序对字符串进行排序. 相关链接: http://stackoverflow.com/questions/2545532/python-analog-of-natsort-function-sort-a-list-using-a-natural-order-algorithm http://www.codinghorror.com/blog/2007/12/sorting-for-humans-natural-sort-order.html
"按照语言里的意义对字符串进行排序.\n\n 这个方法用于替换按照字符编码顺序对字符串进行排序.\n 相关链接:\n http://stackoverflow.com/questions/2545532/python-analog-of-natsort-function-sort-a-list-using-a-natural-order-algorithm\n http://www.codinghorror.com/blog/2007/12/sorting-for-humans-natural-sort-order.html"
199
false
XuShaohua/bcloud
natsort
9,870
LDU_FT/Amsterdam/authorization_django/authorization_middleware
LDU_FT
[ "<BEGIN>\n## `_rectify`", "Rectify (and validate) the given settings using the functions in\n :data:`_settings_rectifiers`.\n<END>", "<BEGIN>\n## `settings`", "Fetch the middleware settings.", " :return dict: settings\n<END>", "<BEGIN>\n## `load`", "Parse a JWKSet and return a dictionary that maps...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the authorization_middleware 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 authorization_middleware API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio...
Django middleware to parse incoming access tokens, validate them and set an authorization function on the request. The decision to use a generic middleware rather than an AuthenticationMiddleware is explicitly made, because inctances of the latter come with a number of assumptions (i.e. that user.is_au...
"Django middleware to parse incoming access tokens, validate them and\n set an authorization function on the request.\n\n The decision to use a generic middleware rather than an\n AuthenticationMiddleware is explicitly made, because inctances of the\n latter come with a number of assumptions (i.e. that user...
17
false
Amsterdam/authorization_django
authorization_middleware
9,871
LDU_FT/toidi/hadoop-yarn-api-python-client/job
LDU_FT
[ "<BEGIN>\n## `node_applications`", "With the Applications API, you can obtain a collection of resources,\n each of which represents an application.", " :param str state: application state\n :param str user: user name\n :returns: API response object with JSON data\n :rtype: :py...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the job API. 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 job API. 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...
A Job resource contains information about a particular job identified by jobid. :param str job_id: The job id :returns: API response object with JSON data :rtype: :py:class:`yarn_api_client.base.Response`
"A Job resource contains information about a particular job identified\n by jobid.\n\n :param str job_id: The job id\n :returns: API response object with JSON data\n :rtype: :py:class:`yarn_api_client.base.Response`"
71
false
toidi/hadoop-yarn-api-python-client
job
9,872